';
+ };
+
+ /*
+
+ var zeros = [];
+ var groupSizes = [];
+ var groupBases = [];
+
+ var s = '';
+ var i = -1;
+ while (++i < BN.wordSize) {
+ zeros[i] = s;
+ s += '0';
+ }
+ groupSizes[0] = 0;
+ groupSizes[1] = 0;
+ groupBases[0] = 0;
+ groupBases[1] = 0;
+ var base = 2 - 1;
+ while (++base < 36 + 1) {
+ var groupSize = 0;
+ var groupBase = 1;
+ while (groupBase < (1 << BN.wordSize) / base) {
+ groupBase *= base;
+ groupSize += 1;
+ }
+ groupSizes[base] = groupSize;
+ groupBases[base] = groupBase;
+ }
+
+ */
+
+ var zeros = [
+ '',
+ '0',
+ '00',
+ '000',
+ '0000',
+ '00000',
+ '000000',
+ '0000000',
+ '00000000',
+ '000000000',
+ '0000000000',
+ '00000000000',
+ '000000000000',
+ '0000000000000',
+ '00000000000000',
+ '000000000000000',
+ '0000000000000000',
+ '00000000000000000',
+ '000000000000000000',
+ '0000000000000000000',
+ '00000000000000000000',
+ '000000000000000000000',
+ '0000000000000000000000',
+ '00000000000000000000000',
+ '000000000000000000000000',
+ '0000000000000000000000000'
+ ];
+
+ var groupSizes = [
+ 0, 0,
+ 25, 16, 12, 11, 10, 9, 8,
+ 8, 7, 7, 7, 7, 6, 6,
+ 6, 6, 6, 6, 6, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5
+ ];
+
+ var groupBases = [
+ 0, 0,
+ 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,
+ 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,
+ 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,
+ 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,
+ 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176
+ ];
+
+ BN.prototype.toString = function toString (base, padding) {
+ base = base || 10;
+ padding = padding | 0 || 1;
+
+ var out;
+ if (base === 16 || base === 'hex') {
+ out = '';
+ var off = 0;
+ var carry = 0;
+ for (var i = 0; i < this.length; i++) {
+ var w = this.words[i];
+ var word = (((w << off) | carry) & 0xffffff).toString(16);
+ carry = (w >>> (24 - off)) & 0xffffff;
+ if (carry !== 0 || i !== this.length - 1) {
+ out = zeros[6 - word.length] + word + out;
+ } else {
+ out = word + out;
+ }
+ off += 2;
+ if (off >= 26) {
+ off -= 26;
+ i--;
+ }
+ }
+ if (carry !== 0) {
+ out = carry.toString(16) + out;
+ }
+ while (out.length % padding !== 0) {
+ out = '0' + out;
+ }
+ if (this.negative !== 0) {
+ out = '-' + out;
+ }
+ return out;
+ }
+
+ if (base === (base | 0) && base >= 2 && base <= 36) {
+ // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));
+ var groupSize = groupSizes[base];
+ // var groupBase = Math.pow(base, groupSize);
+ var groupBase = groupBases[base];
+ out = '';
+ var c = this.clone();
+ c.negative = 0;
+ while (!c.isZero()) {
+ var r = c.modn(groupBase).toString(base);
+ c = c.idivn(groupBase);
+
+ if (!c.isZero()) {
+ out = zeros[groupSize - r.length] + r + out;
+ } else {
+ out = r + out;
+ }
+ }
+ if (this.isZero()) {
+ out = '0' + out;
+ }
+ while (out.length % padding !== 0) {
+ out = '0' + out;
+ }
+ if (this.negative !== 0) {
+ out = '-' + out;
+ }
+ return out;
+ }
+
+ assert(false, 'Base should be between 2 and 36');
+ };
+
+ BN.prototype.toNumber = function toNumber () {
+ var ret = this.words[0];
+ if (this.length === 2) {
+ ret += this.words[1] * 0x4000000;
+ } else if (this.length === 3 && this.words[2] === 0x01) {
+ // NOTE: at this stage it is known that the top bit is set
+ ret += 0x10000000000000 + (this.words[1] * 0x4000000);
+ } else if (this.length > 2) {
+ assert(false, 'Number can only safely store up to 53 bits');
+ }
+ return (this.negative !== 0) ? -ret : ret;
+ };
+
+ BN.prototype.toJSON = function toJSON () {
+ return this.toString(16);
+ };
+
+ BN.prototype.toBuffer = function toBuffer (endian, length) {
+ assert(typeof Buffer !== 'undefined');
+ return this.toArrayLike(Buffer, endian, length);
+ };
+
+ BN.prototype.toArray = function toArray (endian, length) {
+ return this.toArrayLike(Array, endian, length);
+ };
+
+ BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {
+ var byteLength = this.byteLength();
+ var reqLength = length || Math.max(1, byteLength);
+ assert(byteLength <= reqLength, 'byte array longer than desired length');
+ assert(reqLength > 0, 'Requested array length <= 0');
+
+ this.strip();
+ var littleEndian = endian === 'le';
+ var res = new ArrayType(reqLength);
+
+ var b, i;
+ var q = this.clone();
+ if (!littleEndian) {
+ // Assume big-endian
+ for (i = 0; i < reqLength - byteLength; i++) {
+ res[i] = 0;
+ }
+
+ for (i = 0; !q.isZero(); i++) {
+ b = q.andln(0xff);
+ q.iushrn(8);
+
+ res[reqLength - i - 1] = b;
+ }
+ } else {
+ for (i = 0; !q.isZero(); i++) {
+ b = q.andln(0xff);
+ q.iushrn(8);
+
+ res[i] = b;
+ }
+
+ for (; i < reqLength; i++) {
+ res[i] = 0;
+ }
+ }
+
+ return res;
+ };
+
+ if (Math.clz32) {
+ BN.prototype._countBits = function _countBits (w) {
+ return 32 - Math.clz32(w);
+ };
+ } else {
+ BN.prototype._countBits = function _countBits (w) {
+ var t = w;
+ var r = 0;
+ if (t >= 0x1000) {
+ r += 13;
+ t >>>= 13;
+ }
+ if (t >= 0x40) {
+ r += 7;
+ t >>>= 7;
+ }
+ if (t >= 0x8) {
+ r += 4;
+ t >>>= 4;
+ }
+ if (t >= 0x02) {
+ r += 2;
+ t >>>= 2;
+ }
+ return r + t;
+ };
+ }
+
+ BN.prototype._zeroBits = function _zeroBits (w) {
+ // Short-cut
+ if (w === 0) return 26;
+
+ var t = w;
+ var r = 0;
+ if ((t & 0x1fff) === 0) {
+ r += 13;
+ t >>>= 13;
+ }
+ if ((t & 0x7f) === 0) {
+ r += 7;
+ t >>>= 7;
+ }
+ if ((t & 0xf) === 0) {
+ r += 4;
+ t >>>= 4;
+ }
+ if ((t & 0x3) === 0) {
+ r += 2;
+ t >>>= 2;
+ }
+ if ((t & 0x1) === 0) {
+ r++;
+ }
+ return r;
+ };
+
+ // Return number of used bits in a BN
+ BN.prototype.bitLength = function bitLength () {
+ var w = this.words[this.length - 1];
+ var hi = this._countBits(w);
+ return (this.length - 1) * 26 + hi;
+ };
+
+ function toBitArray (num) {
+ var w = new Array(num.bitLength());
+
+ for (var bit = 0; bit < w.length; bit++) {
+ var off = (bit / 26) | 0;
+ var wbit = bit % 26;
+
+ w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;
+ }
+
+ return w;
+ }
+
+ // Number of trailing zero bits
+ BN.prototype.zeroBits = function zeroBits () {
+ if (this.isZero()) return 0;
+
+ var r = 0;
+ for (var i = 0; i < this.length; i++) {
+ var b = this._zeroBits(this.words[i]);
+ r += b;
+ if (b !== 26) break;
+ }
+ return r;
+ };
+
+ BN.prototype.byteLength = function byteLength () {
+ return Math.ceil(this.bitLength() / 8);
+ };
+
+ BN.prototype.toTwos = function toTwos (width) {
+ if (this.negative !== 0) {
+ return this.abs().inotn(width).iaddn(1);
+ }
+ return this.clone();
+ };
+
+ BN.prototype.fromTwos = function fromTwos (width) {
+ if (this.testn(width - 1)) {
+ return this.notn(width).iaddn(1).ineg();
+ }
+ return this.clone();
+ };
+
+ BN.prototype.isNeg = function isNeg () {
+ return this.negative !== 0;
+ };
+
+ // Return negative clone of `this`
+ BN.prototype.neg = function neg () {
+ return this.clone().ineg();
+ };
+
+ BN.prototype.ineg = function ineg () {
+ if (!this.isZero()) {
+ this.negative ^= 1;
+ }
+
+ return this;
+ };
+
+ // Or `num` with `this` in-place
+ BN.prototype.iuor = function iuor (num) {
+ while (this.length < num.length) {
+ this.words[this.length++] = 0;
+ }
+
+ for (var i = 0; i < num.length; i++) {
+ this.words[i] = this.words[i] | num.words[i];
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ior = function ior (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuor(num);
+ };
+
+ // Or `num` with `this`
+ BN.prototype.or = function or (num) {
+ if (this.length > num.length) return this.clone().ior(num);
+ return num.clone().ior(this);
+ };
+
+ BN.prototype.uor = function uor (num) {
+ if (this.length > num.length) return this.clone().iuor(num);
+ return num.clone().iuor(this);
+ };
+
+ // And `num` with `this` in-place
+ BN.prototype.iuand = function iuand (num) {
+ // b = min-length(num, this)
+ var b;
+ if (this.length > num.length) {
+ b = num;
+ } else {
+ b = this;
+ }
+
+ for (var i = 0; i < b.length; i++) {
+ this.words[i] = this.words[i] & num.words[i];
+ }
+
+ this.length = b.length;
+
+ return this.strip();
+ };
+
+ BN.prototype.iand = function iand (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuand(num);
+ };
+
+ // And `num` with `this`
+ BN.prototype.and = function and (num) {
+ if (this.length > num.length) return this.clone().iand(num);
+ return num.clone().iand(this);
+ };
+
+ BN.prototype.uand = function uand (num) {
+ if (this.length > num.length) return this.clone().iuand(num);
+ return num.clone().iuand(this);
+ };
+
+ // Xor `num` with `this` in-place
+ BN.prototype.iuxor = function iuxor (num) {
+ // a.length > b.length
+ var a;
+ var b;
+ if (this.length > num.length) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ for (var i = 0; i < b.length; i++) {
+ this.words[i] = a.words[i] ^ b.words[i];
+ }
+
+ if (this !== a) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ this.length = a.length;
+
+ return this.strip();
+ };
+
+ BN.prototype.ixor = function ixor (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuxor(num);
+ };
+
+ // Xor `num` with `this`
+ BN.prototype.xor = function xor (num) {
+ if (this.length > num.length) return this.clone().ixor(num);
+ return num.clone().ixor(this);
+ };
+
+ BN.prototype.uxor = function uxor (num) {
+ if (this.length > num.length) return this.clone().iuxor(num);
+ return num.clone().iuxor(this);
+ };
+
+ // Not ``this`` with ``width`` bitwidth
+ BN.prototype.inotn = function inotn (width) {
+ assert(typeof width === 'number' && width >= 0);
+
+ var bytesNeeded = Math.ceil(width / 26) | 0;
+ var bitsLeft = width % 26;
+
+ // Extend the buffer with leading zeroes
+ this._expand(bytesNeeded);
+
+ if (bitsLeft > 0) {
+ bytesNeeded--;
+ }
+
+ // Handle complete words
+ for (var i = 0; i < bytesNeeded; i++) {
+ this.words[i] = ~this.words[i] & 0x3ffffff;
+ }
+
+ // Handle the residue
+ if (bitsLeft > 0) {
+ this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));
+ }
+
+ // And remove leading zeroes
+ return this.strip();
+ };
+
+ BN.prototype.notn = function notn (width) {
+ return this.clone().inotn(width);
+ };
+
+ // Set `bit` of `this`
+ BN.prototype.setn = function setn (bit, val) {
+ assert(typeof bit === 'number' && bit >= 0);
+
+ var off = (bit / 26) | 0;
+ var wbit = bit % 26;
+
+ this._expand(off + 1);
+
+ if (val) {
+ this.words[off] = this.words[off] | (1 << wbit);
+ } else {
+ this.words[off] = this.words[off] & ~(1 << wbit);
+ }
+
+ return this.strip();
+ };
+
+ // Add `num` to `this` in-place
+ BN.prototype.iadd = function iadd (num) {
+ var r;
+
+ // negative + positive
+ if (this.negative !== 0 && num.negative === 0) {
+ this.negative = 0;
+ r = this.isub(num);
+ this.negative ^= 1;
+ return this._normSign();
+
+ // positive + negative
+ } else if (this.negative === 0 && num.negative !== 0) {
+ num.negative = 0;
+ r = this.isub(num);
+ num.negative = 1;
+ return r._normSign();
+ }
+
+ // a.length > b.length
+ var a, b;
+ if (this.length > num.length) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ var carry = 0;
+ for (var i = 0; i < b.length; i++) {
+ r = (a.words[i] | 0) + (b.words[i] | 0) + carry;
+ this.words[i] = r & 0x3ffffff;
+ carry = r >>> 26;
+ }
+ for (; carry !== 0 && i < a.length; i++) {
+ r = (a.words[i] | 0) + carry;
+ this.words[i] = r & 0x3ffffff;
+ carry = r >>> 26;
+ }
+
+ this.length = a.length;
+ if (carry !== 0) {
+ this.words[this.length] = carry;
+ this.length++;
+ // Copy the rest of the words
+ } else if (a !== this) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ return this;
+ };
+
+ // Add `num` to `this`
+ BN.prototype.add = function add (num) {
+ var res;
+ if (num.negative !== 0 && this.negative === 0) {
+ num.negative = 0;
+ res = this.sub(num);
+ num.negative ^= 1;
+ return res;
+ } else if (num.negative === 0 && this.negative !== 0) {
+ this.negative = 0;
+ res = num.sub(this);
+ this.negative = 1;
+ return res;
+ }
+
+ if (this.length > num.length) return this.clone().iadd(num);
+
+ return num.clone().iadd(this);
+ };
+
+ // Subtract `num` from `this` in-place
+ BN.prototype.isub = function isub (num) {
+ // this - (-num) = this + num
+ if (num.negative !== 0) {
+ num.negative = 0;
+ var r = this.iadd(num);
+ num.negative = 1;
+ return r._normSign();
+
+ // -this - num = -(this + num)
+ } else if (this.negative !== 0) {
+ this.negative = 0;
+ this.iadd(num);
+ this.negative = 1;
+ return this._normSign();
+ }
+
+ // At this point both numbers are positive
+ var cmp = this.cmp(num);
+
+ // Optimization - zeroify
+ if (cmp === 0) {
+ this.negative = 0;
+ this.length = 1;
+ this.words[0] = 0;
+ return this;
+ }
+
+ // a > b
+ var a, b;
+ if (cmp > 0) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ var carry = 0;
+ for (var i = 0; i < b.length; i++) {
+ r = (a.words[i] | 0) - (b.words[i] | 0) + carry;
+ carry = r >> 26;
+ this.words[i] = r & 0x3ffffff;
+ }
+ for (; carry !== 0 && i < a.length; i++) {
+ r = (a.words[i] | 0) + carry;
+ carry = r >> 26;
+ this.words[i] = r & 0x3ffffff;
+ }
+
+ // Copy rest of the words
+ if (carry === 0 && i < a.length && a !== this) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ this.length = Math.max(this.length, i);
+
+ if (a !== this) {
+ this.negative = 1;
+ }
+
+ return this.strip();
+ };
+
+ // Subtract `num` from `this`
+ BN.prototype.sub = function sub (num) {
+ return this.clone().isub(num);
+ };
+
+ function smallMulTo (self, num, out) {
+ out.negative = num.negative ^ self.negative;
+ var len = (self.length + num.length) | 0;
+ out.length = len;
+ len = (len - 1) | 0;
+
+ // Peel one iteration (compiler can't do it, because of code complexity)
+ var a = self.words[0] | 0;
+ var b = num.words[0] | 0;
+ var r = a * b;
+
+ var lo = r & 0x3ffffff;
+ var carry = (r / 0x4000000) | 0;
+ out.words[0] = lo;
+
+ for (var k = 1; k < len; k++) {
+ // Sum all words with the same `i + j = k` and accumulate `ncarry`,
+ // note that ncarry could be >= 0x3ffffff
+ var ncarry = carry >>> 26;
+ var rword = carry & 0x3ffffff;
+ var maxJ = Math.min(k, num.length - 1);
+ for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
+ var i = (k - j) | 0;
+ a = self.words[i] | 0;
+ b = num.words[j] | 0;
+ r = a * b + rword;
+ ncarry += (r / 0x4000000) | 0;
+ rword = r & 0x3ffffff;
+ }
+ out.words[k] = rword | 0;
+ carry = ncarry | 0;
+ }
+ if (carry !== 0) {
+ out.words[k] = carry | 0;
+ } else {
+ out.length--;
+ }
+
+ return out.strip();
+ }
+
+ // TODO(indutny): it may be reasonable to omit it for users who don't need
+ // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit
+ // multiplication (like elliptic secp256k1).
+ var comb10MulTo = function comb10MulTo (self, num, out) {
+ var a = self.words;
+ var b = num.words;
+ var o = out.words;
+ var c = 0;
+ var lo;
+ var mid;
+ var hi;
+ var a0 = a[0] | 0;
+ var al0 = a0 & 0x1fff;
+ var ah0 = a0 >>> 13;
+ var a1 = a[1] | 0;
+ var al1 = a1 & 0x1fff;
+ var ah1 = a1 >>> 13;
+ var a2 = a[2] | 0;
+ var al2 = a2 & 0x1fff;
+ var ah2 = a2 >>> 13;
+ var a3 = a[3] | 0;
+ var al3 = a3 & 0x1fff;
+ var ah3 = a3 >>> 13;
+ var a4 = a[4] | 0;
+ var al4 = a4 & 0x1fff;
+ var ah4 = a4 >>> 13;
+ var a5 = a[5] | 0;
+ var al5 = a5 & 0x1fff;
+ var ah5 = a5 >>> 13;
+ var a6 = a[6] | 0;
+ var al6 = a6 & 0x1fff;
+ var ah6 = a6 >>> 13;
+ var a7 = a[7] | 0;
+ var al7 = a7 & 0x1fff;
+ var ah7 = a7 >>> 13;
+ var a8 = a[8] | 0;
+ var al8 = a8 & 0x1fff;
+ var ah8 = a8 >>> 13;
+ var a9 = a[9] | 0;
+ var al9 = a9 & 0x1fff;
+ var ah9 = a9 >>> 13;
+ var b0 = b[0] | 0;
+ var bl0 = b0 & 0x1fff;
+ var bh0 = b0 >>> 13;
+ var b1 = b[1] | 0;
+ var bl1 = b1 & 0x1fff;
+ var bh1 = b1 >>> 13;
+ var b2 = b[2] | 0;
+ var bl2 = b2 & 0x1fff;
+ var bh2 = b2 >>> 13;
+ var b3 = b[3] | 0;
+ var bl3 = b3 & 0x1fff;
+ var bh3 = b3 >>> 13;
+ var b4 = b[4] | 0;
+ var bl4 = b4 & 0x1fff;
+ var bh4 = b4 >>> 13;
+ var b5 = b[5] | 0;
+ var bl5 = b5 & 0x1fff;
+ var bh5 = b5 >>> 13;
+ var b6 = b[6] | 0;
+ var bl6 = b6 & 0x1fff;
+ var bh6 = b6 >>> 13;
+ var b7 = b[7] | 0;
+ var bl7 = b7 & 0x1fff;
+ var bh7 = b7 >>> 13;
+ var b8 = b[8] | 0;
+ var bl8 = b8 & 0x1fff;
+ var bh8 = b8 >>> 13;
+ var b9 = b[9] | 0;
+ var bl9 = b9 & 0x1fff;
+ var bh9 = b9 >>> 13;
+
+ out.negative = self.negative ^ num.negative;
+ out.length = 19;
+ /* k = 0 */
+ lo = Math.imul(al0, bl0);
+ mid = Math.imul(al0, bh0);
+ mid = (mid + Math.imul(ah0, bl0)) | 0;
+ hi = Math.imul(ah0, bh0);
+ var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;
+ w0 &= 0x3ffffff;
+ /* k = 1 */
+ lo = Math.imul(al1, bl0);
+ mid = Math.imul(al1, bh0);
+ mid = (mid + Math.imul(ah1, bl0)) | 0;
+ hi = Math.imul(ah1, bh0);
+ lo = (lo + Math.imul(al0, bl1)) | 0;
+ mid = (mid + Math.imul(al0, bh1)) | 0;
+ mid = (mid + Math.imul(ah0, bl1)) | 0;
+ hi = (hi + Math.imul(ah0, bh1)) | 0;
+ var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;
+ w1 &= 0x3ffffff;
+ /* k = 2 */
+ lo = Math.imul(al2, bl0);
+ mid = Math.imul(al2, bh0);
+ mid = (mid + Math.imul(ah2, bl0)) | 0;
+ hi = Math.imul(ah2, bh0);
+ lo = (lo + Math.imul(al1, bl1)) | 0;
+ mid = (mid + Math.imul(al1, bh1)) | 0;
+ mid = (mid + Math.imul(ah1, bl1)) | 0;
+ hi = (hi + Math.imul(ah1, bh1)) | 0;
+ lo = (lo + Math.imul(al0, bl2)) | 0;
+ mid = (mid + Math.imul(al0, bh2)) | 0;
+ mid = (mid + Math.imul(ah0, bl2)) | 0;
+ hi = (hi + Math.imul(ah0, bh2)) | 0;
+ var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;
+ w2 &= 0x3ffffff;
+ /* k = 3 */
+ lo = Math.imul(al3, bl0);
+ mid = Math.imul(al3, bh0);
+ mid = (mid + Math.imul(ah3, bl0)) | 0;
+ hi = Math.imul(ah3, bh0);
+ lo = (lo + Math.imul(al2, bl1)) | 0;
+ mid = (mid + Math.imul(al2, bh1)) | 0;
+ mid = (mid + Math.imul(ah2, bl1)) | 0;
+ hi = (hi + Math.imul(ah2, bh1)) | 0;
+ lo = (lo + Math.imul(al1, bl2)) | 0;
+ mid = (mid + Math.imul(al1, bh2)) | 0;
+ mid = (mid + Math.imul(ah1, bl2)) | 0;
+ hi = (hi + Math.imul(ah1, bh2)) | 0;
+ lo = (lo + Math.imul(al0, bl3)) | 0;
+ mid = (mid + Math.imul(al0, bh3)) | 0;
+ mid = (mid + Math.imul(ah0, bl3)) | 0;
+ hi = (hi + Math.imul(ah0, bh3)) | 0;
+ var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;
+ w3 &= 0x3ffffff;
+ /* k = 4 */
+ lo = Math.imul(al4, bl0);
+ mid = Math.imul(al4, bh0);
+ mid = (mid + Math.imul(ah4, bl0)) | 0;
+ hi = Math.imul(ah4, bh0);
+ lo = (lo + Math.imul(al3, bl1)) | 0;
+ mid = (mid + Math.imul(al3, bh1)) | 0;
+ mid = (mid + Math.imul(ah3, bl1)) | 0;
+ hi = (hi + Math.imul(ah3, bh1)) | 0;
+ lo = (lo + Math.imul(al2, bl2)) | 0;
+ mid = (mid + Math.imul(al2, bh2)) | 0;
+ mid = (mid + Math.imul(ah2, bl2)) | 0;
+ hi = (hi + Math.imul(ah2, bh2)) | 0;
+ lo = (lo + Math.imul(al1, bl3)) | 0;
+ mid = (mid + Math.imul(al1, bh3)) | 0;
+ mid = (mid + Math.imul(ah1, bl3)) | 0;
+ hi = (hi + Math.imul(ah1, bh3)) | 0;
+ lo = (lo + Math.imul(al0, bl4)) | 0;
+ mid = (mid + Math.imul(al0, bh4)) | 0;
+ mid = (mid + Math.imul(ah0, bl4)) | 0;
+ hi = (hi + Math.imul(ah0, bh4)) | 0;
+ var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;
+ w4 &= 0x3ffffff;
+ /* k = 5 */
+ lo = Math.imul(al5, bl0);
+ mid = Math.imul(al5, bh0);
+ mid = (mid + Math.imul(ah5, bl0)) | 0;
+ hi = Math.imul(ah5, bh0);
+ lo = (lo + Math.imul(al4, bl1)) | 0;
+ mid = (mid + Math.imul(al4, bh1)) | 0;
+ mid = (mid + Math.imul(ah4, bl1)) | 0;
+ hi = (hi + Math.imul(ah4, bh1)) | 0;
+ lo = (lo + Math.imul(al3, bl2)) | 0;
+ mid = (mid + Math.imul(al3, bh2)) | 0;
+ mid = (mid + Math.imul(ah3, bl2)) | 0;
+ hi = (hi + Math.imul(ah3, bh2)) | 0;
+ lo = (lo + Math.imul(al2, bl3)) | 0;
+ mid = (mid + Math.imul(al2, bh3)) | 0;
+ mid = (mid + Math.imul(ah2, bl3)) | 0;
+ hi = (hi + Math.imul(ah2, bh3)) | 0;
+ lo = (lo + Math.imul(al1, bl4)) | 0;
+ mid = (mid + Math.imul(al1, bh4)) | 0;
+ mid = (mid + Math.imul(ah1, bl4)) | 0;
+ hi = (hi + Math.imul(ah1, bh4)) | 0;
+ lo = (lo + Math.imul(al0, bl5)) | 0;
+ mid = (mid + Math.imul(al0, bh5)) | 0;
+ mid = (mid + Math.imul(ah0, bl5)) | 0;
+ hi = (hi + Math.imul(ah0, bh5)) | 0;
+ var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;
+ w5 &= 0x3ffffff;
+ /* k = 6 */
+ lo = Math.imul(al6, bl0);
+ mid = Math.imul(al6, bh0);
+ mid = (mid + Math.imul(ah6, bl0)) | 0;
+ hi = Math.imul(ah6, bh0);
+ lo = (lo + Math.imul(al5, bl1)) | 0;
+ mid = (mid + Math.imul(al5, bh1)) | 0;
+ mid = (mid + Math.imul(ah5, bl1)) | 0;
+ hi = (hi + Math.imul(ah5, bh1)) | 0;
+ lo = (lo + Math.imul(al4, bl2)) | 0;
+ mid = (mid + Math.imul(al4, bh2)) | 0;
+ mid = (mid + Math.imul(ah4, bl2)) | 0;
+ hi = (hi + Math.imul(ah4, bh2)) | 0;
+ lo = (lo + Math.imul(al3, bl3)) | 0;
+ mid = (mid + Math.imul(al3, bh3)) | 0;
+ mid = (mid + Math.imul(ah3, bl3)) | 0;
+ hi = (hi + Math.imul(ah3, bh3)) | 0;
+ lo = (lo + Math.imul(al2, bl4)) | 0;
+ mid = (mid + Math.imul(al2, bh4)) | 0;
+ mid = (mid + Math.imul(ah2, bl4)) | 0;
+ hi = (hi + Math.imul(ah2, bh4)) | 0;
+ lo = (lo + Math.imul(al1, bl5)) | 0;
+ mid = (mid + Math.imul(al1, bh5)) | 0;
+ mid = (mid + Math.imul(ah1, bl5)) | 0;
+ hi = (hi + Math.imul(ah1, bh5)) | 0;
+ lo = (lo + Math.imul(al0, bl6)) | 0;
+ mid = (mid + Math.imul(al0, bh6)) | 0;
+ mid = (mid + Math.imul(ah0, bl6)) | 0;
+ hi = (hi + Math.imul(ah0, bh6)) | 0;
+ var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;
+ w6 &= 0x3ffffff;
+ /* k = 7 */
+ lo = Math.imul(al7, bl0);
+ mid = Math.imul(al7, bh0);
+ mid = (mid + Math.imul(ah7, bl0)) | 0;
+ hi = Math.imul(ah7, bh0);
+ lo = (lo + Math.imul(al6, bl1)) | 0;
+ mid = (mid + Math.imul(al6, bh1)) | 0;
+ mid = (mid + Math.imul(ah6, bl1)) | 0;
+ hi = (hi + Math.imul(ah6, bh1)) | 0;
+ lo = (lo + Math.imul(al5, bl2)) | 0;
+ mid = (mid + Math.imul(al5, bh2)) | 0;
+ mid = (mid + Math.imul(ah5, bl2)) | 0;
+ hi = (hi + Math.imul(ah5, bh2)) | 0;
+ lo = (lo + Math.imul(al4, bl3)) | 0;
+ mid = (mid + Math.imul(al4, bh3)) | 0;
+ mid = (mid + Math.imul(ah4, bl3)) | 0;
+ hi = (hi + Math.imul(ah4, bh3)) | 0;
+ lo = (lo + Math.imul(al3, bl4)) | 0;
+ mid = (mid + Math.imul(al3, bh4)) | 0;
+ mid = (mid + Math.imul(ah3, bl4)) | 0;
+ hi = (hi + Math.imul(ah3, bh4)) | 0;
+ lo = (lo + Math.imul(al2, bl5)) | 0;
+ mid = (mid + Math.imul(al2, bh5)) | 0;
+ mid = (mid + Math.imul(ah2, bl5)) | 0;
+ hi = (hi + Math.imul(ah2, bh5)) | 0;
+ lo = (lo + Math.imul(al1, bl6)) | 0;
+ mid = (mid + Math.imul(al1, bh6)) | 0;
+ mid = (mid + Math.imul(ah1, bl6)) | 0;
+ hi = (hi + Math.imul(ah1, bh6)) | 0;
+ lo = (lo + Math.imul(al0, bl7)) | 0;
+ mid = (mid + Math.imul(al0, bh7)) | 0;
+ mid = (mid + Math.imul(ah0, bl7)) | 0;
+ hi = (hi + Math.imul(ah0, bh7)) | 0;
+ var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;
+ w7 &= 0x3ffffff;
+ /* k = 8 */
+ lo = Math.imul(al8, bl0);
+ mid = Math.imul(al8, bh0);
+ mid = (mid + Math.imul(ah8, bl0)) | 0;
+ hi = Math.imul(ah8, bh0);
+ lo = (lo + Math.imul(al7, bl1)) | 0;
+ mid = (mid + Math.imul(al7, bh1)) | 0;
+ mid = (mid + Math.imul(ah7, bl1)) | 0;
+ hi = (hi + Math.imul(ah7, bh1)) | 0;
+ lo = (lo + Math.imul(al6, bl2)) | 0;
+ mid = (mid + Math.imul(al6, bh2)) | 0;
+ mid = (mid + Math.imul(ah6, bl2)) | 0;
+ hi = (hi + Math.imul(ah6, bh2)) | 0;
+ lo = (lo + Math.imul(al5, bl3)) | 0;
+ mid = (mid + Math.imul(al5, bh3)) | 0;
+ mid = (mid + Math.imul(ah5, bl3)) | 0;
+ hi = (hi + Math.imul(ah5, bh3)) | 0;
+ lo = (lo + Math.imul(al4, bl4)) | 0;
+ mid = (mid + Math.imul(al4, bh4)) | 0;
+ mid = (mid + Math.imul(ah4, bl4)) | 0;
+ hi = (hi + Math.imul(ah4, bh4)) | 0;
+ lo = (lo + Math.imul(al3, bl5)) | 0;
+ mid = (mid + Math.imul(al3, bh5)) | 0;
+ mid = (mid + Math.imul(ah3, bl5)) | 0;
+ hi = (hi + Math.imul(ah3, bh5)) | 0;
+ lo = (lo + Math.imul(al2, bl6)) | 0;
+ mid = (mid + Math.imul(al2, bh6)) | 0;
+ mid = (mid + Math.imul(ah2, bl6)) | 0;
+ hi = (hi + Math.imul(ah2, bh6)) | 0;
+ lo = (lo + Math.imul(al1, bl7)) | 0;
+ mid = (mid + Math.imul(al1, bh7)) | 0;
+ mid = (mid + Math.imul(ah1, bl7)) | 0;
+ hi = (hi + Math.imul(ah1, bh7)) | 0;
+ lo = (lo + Math.imul(al0, bl8)) | 0;
+ mid = (mid + Math.imul(al0, bh8)) | 0;
+ mid = (mid + Math.imul(ah0, bl8)) | 0;
+ hi = (hi + Math.imul(ah0, bh8)) | 0;
+ var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;
+ w8 &= 0x3ffffff;
+ /* k = 9 */
+ lo = Math.imul(al9, bl0);
+ mid = Math.imul(al9, bh0);
+ mid = (mid + Math.imul(ah9, bl0)) | 0;
+ hi = Math.imul(ah9, bh0);
+ lo = (lo + Math.imul(al8, bl1)) | 0;
+ mid = (mid + Math.imul(al8, bh1)) | 0;
+ mid = (mid + Math.imul(ah8, bl1)) | 0;
+ hi = (hi + Math.imul(ah8, bh1)) | 0;
+ lo = (lo + Math.imul(al7, bl2)) | 0;
+ mid = (mid + Math.imul(al7, bh2)) | 0;
+ mid = (mid + Math.imul(ah7, bl2)) | 0;
+ hi = (hi + Math.imul(ah7, bh2)) | 0;
+ lo = (lo + Math.imul(al6, bl3)) | 0;
+ mid = (mid + Math.imul(al6, bh3)) | 0;
+ mid = (mid + Math.imul(ah6, bl3)) | 0;
+ hi = (hi + Math.imul(ah6, bh3)) | 0;
+ lo = (lo + Math.imul(al5, bl4)) | 0;
+ mid = (mid + Math.imul(al5, bh4)) | 0;
+ mid = (mid + Math.imul(ah5, bl4)) | 0;
+ hi = (hi + Math.imul(ah5, bh4)) | 0;
+ lo = (lo + Math.imul(al4, bl5)) | 0;
+ mid = (mid + Math.imul(al4, bh5)) | 0;
+ mid = (mid + Math.imul(ah4, bl5)) | 0;
+ hi = (hi + Math.imul(ah4, bh5)) | 0;
+ lo = (lo + Math.imul(al3, bl6)) | 0;
+ mid = (mid + Math.imul(al3, bh6)) | 0;
+ mid = (mid + Math.imul(ah3, bl6)) | 0;
+ hi = (hi + Math.imul(ah3, bh6)) | 0;
+ lo = (lo + Math.imul(al2, bl7)) | 0;
+ mid = (mid + Math.imul(al2, bh7)) | 0;
+ mid = (mid + Math.imul(ah2, bl7)) | 0;
+ hi = (hi + Math.imul(ah2, bh7)) | 0;
+ lo = (lo + Math.imul(al1, bl8)) | 0;
+ mid = (mid + Math.imul(al1, bh8)) | 0;
+ mid = (mid + Math.imul(ah1, bl8)) | 0;
+ hi = (hi + Math.imul(ah1, bh8)) | 0;
+ lo = (lo + Math.imul(al0, bl9)) | 0;
+ mid = (mid + Math.imul(al0, bh9)) | 0;
+ mid = (mid + Math.imul(ah0, bl9)) | 0;
+ hi = (hi + Math.imul(ah0, bh9)) | 0;
+ var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;
+ w9 &= 0x3ffffff;
+ /* k = 10 */
+ lo = Math.imul(al9, bl1);
+ mid = Math.imul(al9, bh1);
+ mid = (mid + Math.imul(ah9, bl1)) | 0;
+ hi = Math.imul(ah9, bh1);
+ lo = (lo + Math.imul(al8, bl2)) | 0;
+ mid = (mid + Math.imul(al8, bh2)) | 0;
+ mid = (mid + Math.imul(ah8, bl2)) | 0;
+ hi = (hi + Math.imul(ah8, bh2)) | 0;
+ lo = (lo + Math.imul(al7, bl3)) | 0;
+ mid = (mid + Math.imul(al7, bh3)) | 0;
+ mid = (mid + Math.imul(ah7, bl3)) | 0;
+ hi = (hi + Math.imul(ah7, bh3)) | 0;
+ lo = (lo + Math.imul(al6, bl4)) | 0;
+ mid = (mid + Math.imul(al6, bh4)) | 0;
+ mid = (mid + Math.imul(ah6, bl4)) | 0;
+ hi = (hi + Math.imul(ah6, bh4)) | 0;
+ lo = (lo + Math.imul(al5, bl5)) | 0;
+ mid = (mid + Math.imul(al5, bh5)) | 0;
+ mid = (mid + Math.imul(ah5, bl5)) | 0;
+ hi = (hi + Math.imul(ah5, bh5)) | 0;
+ lo = (lo + Math.imul(al4, bl6)) | 0;
+ mid = (mid + Math.imul(al4, bh6)) | 0;
+ mid = (mid + Math.imul(ah4, bl6)) | 0;
+ hi = (hi + Math.imul(ah4, bh6)) | 0;
+ lo = (lo + Math.imul(al3, bl7)) | 0;
+ mid = (mid + Math.imul(al3, bh7)) | 0;
+ mid = (mid + Math.imul(ah3, bl7)) | 0;
+ hi = (hi + Math.imul(ah3, bh7)) | 0;
+ lo = (lo + Math.imul(al2, bl8)) | 0;
+ mid = (mid + Math.imul(al2, bh8)) | 0;
+ mid = (mid + Math.imul(ah2, bl8)) | 0;
+ hi = (hi + Math.imul(ah2, bh8)) | 0;
+ lo = (lo + Math.imul(al1, bl9)) | 0;
+ mid = (mid + Math.imul(al1, bh9)) | 0;
+ mid = (mid + Math.imul(ah1, bl9)) | 0;
+ hi = (hi + Math.imul(ah1, bh9)) | 0;
+ var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;
+ w10 &= 0x3ffffff;
+ /* k = 11 */
+ lo = Math.imul(al9, bl2);
+ mid = Math.imul(al9, bh2);
+ mid = (mid + Math.imul(ah9, bl2)) | 0;
+ hi = Math.imul(ah9, bh2);
+ lo = (lo + Math.imul(al8, bl3)) | 0;
+ mid = (mid + Math.imul(al8, bh3)) | 0;
+ mid = (mid + Math.imul(ah8, bl3)) | 0;
+ hi = (hi + Math.imul(ah8, bh3)) | 0;
+ lo = (lo + Math.imul(al7, bl4)) | 0;
+ mid = (mid + Math.imul(al7, bh4)) | 0;
+ mid = (mid + Math.imul(ah7, bl4)) | 0;
+ hi = (hi + Math.imul(ah7, bh4)) | 0;
+ lo = (lo + Math.imul(al6, bl5)) | 0;
+ mid = (mid + Math.imul(al6, bh5)) | 0;
+ mid = (mid + Math.imul(ah6, bl5)) | 0;
+ hi = (hi + Math.imul(ah6, bh5)) | 0;
+ lo = (lo + Math.imul(al5, bl6)) | 0;
+ mid = (mid + Math.imul(al5, bh6)) | 0;
+ mid = (mid + Math.imul(ah5, bl6)) | 0;
+ hi = (hi + Math.imul(ah5, bh6)) | 0;
+ lo = (lo + Math.imul(al4, bl7)) | 0;
+ mid = (mid + Math.imul(al4, bh7)) | 0;
+ mid = (mid + Math.imul(ah4, bl7)) | 0;
+ hi = (hi + Math.imul(ah4, bh7)) | 0;
+ lo = (lo + Math.imul(al3, bl8)) | 0;
+ mid = (mid + Math.imul(al3, bh8)) | 0;
+ mid = (mid + Math.imul(ah3, bl8)) | 0;
+ hi = (hi + Math.imul(ah3, bh8)) | 0;
+ lo = (lo + Math.imul(al2, bl9)) | 0;
+ mid = (mid + Math.imul(al2, bh9)) | 0;
+ mid = (mid + Math.imul(ah2, bl9)) | 0;
+ hi = (hi + Math.imul(ah2, bh9)) | 0;
+ var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;
+ w11 &= 0x3ffffff;
+ /* k = 12 */
+ lo = Math.imul(al9, bl3);
+ mid = Math.imul(al9, bh3);
+ mid = (mid + Math.imul(ah9, bl3)) | 0;
+ hi = Math.imul(ah9, bh3);
+ lo = (lo + Math.imul(al8, bl4)) | 0;
+ mid = (mid + Math.imul(al8, bh4)) | 0;
+ mid = (mid + Math.imul(ah8, bl4)) | 0;
+ hi = (hi + Math.imul(ah8, bh4)) | 0;
+ lo = (lo + Math.imul(al7, bl5)) | 0;
+ mid = (mid + Math.imul(al7, bh5)) | 0;
+ mid = (mid + Math.imul(ah7, bl5)) | 0;
+ hi = (hi + Math.imul(ah7, bh5)) | 0;
+ lo = (lo + Math.imul(al6, bl6)) | 0;
+ mid = (mid + Math.imul(al6, bh6)) | 0;
+ mid = (mid + Math.imul(ah6, bl6)) | 0;
+ hi = (hi + Math.imul(ah6, bh6)) | 0;
+ lo = (lo + Math.imul(al5, bl7)) | 0;
+ mid = (mid + Math.imul(al5, bh7)) | 0;
+ mid = (mid + Math.imul(ah5, bl7)) | 0;
+ hi = (hi + Math.imul(ah5, bh7)) | 0;
+ lo = (lo + Math.imul(al4, bl8)) | 0;
+ mid = (mid + Math.imul(al4, bh8)) | 0;
+ mid = (mid + Math.imul(ah4, bl8)) | 0;
+ hi = (hi + Math.imul(ah4, bh8)) | 0;
+ lo = (lo + Math.imul(al3, bl9)) | 0;
+ mid = (mid + Math.imul(al3, bh9)) | 0;
+ mid = (mid + Math.imul(ah3, bl9)) | 0;
+ hi = (hi + Math.imul(ah3, bh9)) | 0;
+ var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;
+ w12 &= 0x3ffffff;
+ /* k = 13 */
+ lo = Math.imul(al9, bl4);
+ mid = Math.imul(al9, bh4);
+ mid = (mid + Math.imul(ah9, bl4)) | 0;
+ hi = Math.imul(ah9, bh4);
+ lo = (lo + Math.imul(al8, bl5)) | 0;
+ mid = (mid + Math.imul(al8, bh5)) | 0;
+ mid = (mid + Math.imul(ah8, bl5)) | 0;
+ hi = (hi + Math.imul(ah8, bh5)) | 0;
+ lo = (lo + Math.imul(al7, bl6)) | 0;
+ mid = (mid + Math.imul(al7, bh6)) | 0;
+ mid = (mid + Math.imul(ah7, bl6)) | 0;
+ hi = (hi + Math.imul(ah7, bh6)) | 0;
+ lo = (lo + Math.imul(al6, bl7)) | 0;
+ mid = (mid + Math.imul(al6, bh7)) | 0;
+ mid = (mid + Math.imul(ah6, bl7)) | 0;
+ hi = (hi + Math.imul(ah6, bh7)) | 0;
+ lo = (lo + Math.imul(al5, bl8)) | 0;
+ mid = (mid + Math.imul(al5, bh8)) | 0;
+ mid = (mid + Math.imul(ah5, bl8)) | 0;
+ hi = (hi + Math.imul(ah5, bh8)) | 0;
+ lo = (lo + Math.imul(al4, bl9)) | 0;
+ mid = (mid + Math.imul(al4, bh9)) | 0;
+ mid = (mid + Math.imul(ah4, bl9)) | 0;
+ hi = (hi + Math.imul(ah4, bh9)) | 0;
+ var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;
+ w13 &= 0x3ffffff;
+ /* k = 14 */
+ lo = Math.imul(al9, bl5);
+ mid = Math.imul(al9, bh5);
+ mid = (mid + Math.imul(ah9, bl5)) | 0;
+ hi = Math.imul(ah9, bh5);
+ lo = (lo + Math.imul(al8, bl6)) | 0;
+ mid = (mid + Math.imul(al8, bh6)) | 0;
+ mid = (mid + Math.imul(ah8, bl6)) | 0;
+ hi = (hi + Math.imul(ah8, bh6)) | 0;
+ lo = (lo + Math.imul(al7, bl7)) | 0;
+ mid = (mid + Math.imul(al7, bh7)) | 0;
+ mid = (mid + Math.imul(ah7, bl7)) | 0;
+ hi = (hi + Math.imul(ah7, bh7)) | 0;
+ lo = (lo + Math.imul(al6, bl8)) | 0;
+ mid = (mid + Math.imul(al6, bh8)) | 0;
+ mid = (mid + Math.imul(ah6, bl8)) | 0;
+ hi = (hi + Math.imul(ah6, bh8)) | 0;
+ lo = (lo + Math.imul(al5, bl9)) | 0;
+ mid = (mid + Math.imul(al5, bh9)) | 0;
+ mid = (mid + Math.imul(ah5, bl9)) | 0;
+ hi = (hi + Math.imul(ah5, bh9)) | 0;
+ var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;
+ w14 &= 0x3ffffff;
+ /* k = 15 */
+ lo = Math.imul(al9, bl6);
+ mid = Math.imul(al9, bh6);
+ mid = (mid + Math.imul(ah9, bl6)) | 0;
+ hi = Math.imul(ah9, bh6);
+ lo = (lo + Math.imul(al8, bl7)) | 0;
+ mid = (mid + Math.imul(al8, bh7)) | 0;
+ mid = (mid + Math.imul(ah8, bl7)) | 0;
+ hi = (hi + Math.imul(ah8, bh7)) | 0;
+ lo = (lo + Math.imul(al7, bl8)) | 0;
+ mid = (mid + Math.imul(al7, bh8)) | 0;
+ mid = (mid + Math.imul(ah7, bl8)) | 0;
+ hi = (hi + Math.imul(ah7, bh8)) | 0;
+ lo = (lo + Math.imul(al6, bl9)) | 0;
+ mid = (mid + Math.imul(al6, bh9)) | 0;
+ mid = (mid + Math.imul(ah6, bl9)) | 0;
+ hi = (hi + Math.imul(ah6, bh9)) | 0;
+ var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;
+ w15 &= 0x3ffffff;
+ /* k = 16 */
+ lo = Math.imul(al9, bl7);
+ mid = Math.imul(al9, bh7);
+ mid = (mid + Math.imul(ah9, bl7)) | 0;
+ hi = Math.imul(ah9, bh7);
+ lo = (lo + Math.imul(al8, bl8)) | 0;
+ mid = (mid + Math.imul(al8, bh8)) | 0;
+ mid = (mid + Math.imul(ah8, bl8)) | 0;
+ hi = (hi + Math.imul(ah8, bh8)) | 0;
+ lo = (lo + Math.imul(al7, bl9)) | 0;
+ mid = (mid + Math.imul(al7, bh9)) | 0;
+ mid = (mid + Math.imul(ah7, bl9)) | 0;
+ hi = (hi + Math.imul(ah7, bh9)) | 0;
+ var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;
+ w16 &= 0x3ffffff;
+ /* k = 17 */
+ lo = Math.imul(al9, bl8);
+ mid = Math.imul(al9, bh8);
+ mid = (mid + Math.imul(ah9, bl8)) | 0;
+ hi = Math.imul(ah9, bh8);
+ lo = (lo + Math.imul(al8, bl9)) | 0;
+ mid = (mid + Math.imul(al8, bh9)) | 0;
+ mid = (mid + Math.imul(ah8, bl9)) | 0;
+ hi = (hi + Math.imul(ah8, bh9)) | 0;
+ var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;
+ w17 &= 0x3ffffff;
+ /* k = 18 */
+ lo = Math.imul(al9, bl9);
+ mid = Math.imul(al9, bh9);
+ mid = (mid + Math.imul(ah9, bl9)) | 0;
+ hi = Math.imul(ah9, bh9);
+ var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;
+ w18 &= 0x3ffffff;
+ o[0] = w0;
+ o[1] = w1;
+ o[2] = w2;
+ o[3] = w3;
+ o[4] = w4;
+ o[5] = w5;
+ o[6] = w6;
+ o[7] = w7;
+ o[8] = w8;
+ o[9] = w9;
+ o[10] = w10;
+ o[11] = w11;
+ o[12] = w12;
+ o[13] = w13;
+ o[14] = w14;
+ o[15] = w15;
+ o[16] = w16;
+ o[17] = w17;
+ o[18] = w18;
+ if (c !== 0) {
+ o[19] = c;
+ out.length++;
+ }
+ return out;
+ };
+
+ // Polyfill comb
+ if (!Math.imul) {
+ comb10MulTo = smallMulTo;
+ }
+
+ function bigMulTo (self, num, out) {
+ out.negative = num.negative ^ self.negative;
+ out.length = self.length + num.length;
+
+ var carry = 0;
+ var hncarry = 0;
+ for (var k = 0; k < out.length - 1; k++) {
+ // Sum all words with the same `i + j = k` and accumulate `ncarry`,
+ // note that ncarry could be >= 0x3ffffff
+ var ncarry = hncarry;
+ hncarry = 0;
+ var rword = carry & 0x3ffffff;
+ var maxJ = Math.min(k, num.length - 1);
+ for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
+ var i = k - j;
+ var a = self.words[i] | 0;
+ var b = num.words[j] | 0;
+ var r = a * b;
+
+ var lo = r & 0x3ffffff;
+ ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;
+ lo = (lo + rword) | 0;
+ rword = lo & 0x3ffffff;
+ ncarry = (ncarry + (lo >>> 26)) | 0;
+
+ hncarry += ncarry >>> 26;
+ ncarry &= 0x3ffffff;
+ }
+ out.words[k] = rword;
+ carry = ncarry;
+ ncarry = hncarry;
+ }
+ if (carry !== 0) {
+ out.words[k] = carry;
+ } else {
+ out.length--;
+ }
+
+ return out.strip();
+ }
+
+ function jumboMulTo (self, num, out) {
+ var fftm = new FFTM();
+ return fftm.mulp(self, num, out);
+ }
+
+ BN.prototype.mulTo = function mulTo (num, out) {
+ var res;
+ var len = this.length + num.length;
+ if (this.length === 10 && num.length === 10) {
+ res = comb10MulTo(this, num, out);
+ } else if (len < 63) {
+ res = smallMulTo(this, num, out);
+ } else if (len < 1024) {
+ res = bigMulTo(this, num, out);
+ } else {
+ res = jumboMulTo(this, num, out);
+ }
+
+ return res;
+ };
+
+ // Cooley-Tukey algorithm for FFT
+ // slightly revisited to rely on looping instead of recursion
+
+ function FFTM (x, y) {
+ this.x = x;
+ this.y = y;
+ }
+
+ FFTM.prototype.makeRBT = function makeRBT (N) {
+ var t = new Array(N);
+ var l = BN.prototype._countBits(N) - 1;
+ for (var i = 0; i < N; i++) {
+ t[i] = this.revBin(i, l, N);
+ }
+
+ return t;
+ };
+
+ // Returns binary-reversed representation of `x`
+ FFTM.prototype.revBin = function revBin (x, l, N) {
+ if (x === 0 || x === N - 1) return x;
+
+ var rb = 0;
+ for (var i = 0; i < l; i++) {
+ rb |= (x & 1) << (l - i - 1);
+ x >>= 1;
+ }
+
+ return rb;
+ };
+
+ // Performs "tweedling" phase, therefore 'emulating'
+ // behaviour of the recursive algorithm
+ FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {
+ for (var i = 0; i < N; i++) {
+ rtws[i] = rws[rbt[i]];
+ itws[i] = iws[rbt[i]];
+ }
+ };
+
+ FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {
+ this.permute(rbt, rws, iws, rtws, itws, N);
+
+ for (var s = 1; s < N; s <<= 1) {
+ var l = s << 1;
+
+ var rtwdf = Math.cos(2 * Math.PI / l);
+ var itwdf = Math.sin(2 * Math.PI / l);
+
+ for (var p = 0; p < N; p += l) {
+ var rtwdf_ = rtwdf;
+ var itwdf_ = itwdf;
+
+ for (var j = 0; j < s; j++) {
+ var re = rtws[p + j];
+ var ie = itws[p + j];
+
+ var ro = rtws[p + j + s];
+ var io = itws[p + j + s];
+
+ var rx = rtwdf_ * ro - itwdf_ * io;
+
+ io = rtwdf_ * io + itwdf_ * ro;
+ ro = rx;
+
+ rtws[p + j] = re + ro;
+ itws[p + j] = ie + io;
+
+ rtws[p + j + s] = re - ro;
+ itws[p + j + s] = ie - io;
+
+ /* jshint maxdepth : false */
+ if (j !== l) {
+ rx = rtwdf * rtwdf_ - itwdf * itwdf_;
+
+ itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;
+ rtwdf_ = rx;
+ }
+ }
+ }
+ }
+ };
+
+ FFTM.prototype.guessLen13b = function guessLen13b (n, m) {
+ var N = Math.max(m, n) | 1;
+ var odd = N & 1;
+ var i = 0;
+ for (N = N / 2 | 0; N; N = N >>> 1) {
+ i++;
+ }
+
+ return 1 << i + 1 + odd;
+ };
+
+ FFTM.prototype.conjugate = function conjugate (rws, iws, N) {
+ if (N <= 1) return;
+
+ for (var i = 0; i < N / 2; i++) {
+ var t = rws[i];
+
+ rws[i] = rws[N - i - 1];
+ rws[N - i - 1] = t;
+
+ t = iws[i];
+
+ iws[i] = -iws[N - i - 1];
+ iws[N - i - 1] = -t;
+ }
+ };
+
+ FFTM.prototype.normalize13b = function normalize13b (ws, N) {
+ var carry = 0;
+ for (var i = 0; i < N / 2; i++) {
+ var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +
+ Math.round(ws[2 * i] / N) +
+ carry;
+
+ ws[i] = w & 0x3ffffff;
+
+ if (w < 0x4000000) {
+ carry = 0;
+ } else {
+ carry = w / 0x4000000 | 0;
+ }
+ }
+
+ return ws;
+ };
+
+ FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {
+ var carry = 0;
+ for (var i = 0; i < len; i++) {
+ carry = carry + (ws[i] | 0);
+
+ rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;
+ rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;
+ }
+
+ // Pad with zeroes
+ for (i = 2 * len; i < N; ++i) {
+ rws[i] = 0;
+ }
+
+ assert(carry === 0);
+ assert((carry & ~0x1fff) === 0);
+ };
+
+ FFTM.prototype.stub = function stub (N) {
+ var ph = new Array(N);
+ for (var i = 0; i < N; i++) {
+ ph[i] = 0;
+ }
+
+ return ph;
+ };
+
+ FFTM.prototype.mulp = function mulp (x, y, out) {
+ var N = 2 * this.guessLen13b(x.length, y.length);
+
+ var rbt = this.makeRBT(N);
+
+ var _ = this.stub(N);
+
+ var rws = new Array(N);
+ var rwst = new Array(N);
+ var iwst = new Array(N);
+
+ var nrws = new Array(N);
+ var nrwst = new Array(N);
+ var niwst = new Array(N);
+
+ var rmws = out.words;
+ rmws.length = N;
+
+ this.convert13b(x.words, x.length, rws, N);
+ this.convert13b(y.words, y.length, nrws, N);
+
+ this.transform(rws, _, rwst, iwst, N, rbt);
+ this.transform(nrws, _, nrwst, niwst, N, rbt);
+
+ for (var i = 0; i < N; i++) {
+ var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];
+ iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];
+ rwst[i] = rx;
+ }
+
+ this.conjugate(rwst, iwst, N);
+ this.transform(rwst, iwst, rmws, _, N, rbt);
+ this.conjugate(rmws, _, N);
+ this.normalize13b(rmws, N);
+
+ out.negative = x.negative ^ y.negative;
+ out.length = x.length + y.length;
+ return out.strip();
+ };
+
+ // Multiply `this` by `num`
+ BN.prototype.mul = function mul (num) {
+ var out = new BN(null);
+ out.words = new Array(this.length + num.length);
+ return this.mulTo(num, out);
+ };
+
+ // Multiply employing FFT
+ BN.prototype.mulf = function mulf (num) {
+ var out = new BN(null);
+ out.words = new Array(this.length + num.length);
+ return jumboMulTo(this, num, out);
+ };
+
+ // In-place Multiplication
+ BN.prototype.imul = function imul (num) {
+ return this.clone().mulTo(num, this);
+ };
+
+ BN.prototype.imuln = function imuln (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+
+ // Carry
+ var carry = 0;
+ for (var i = 0; i < this.length; i++) {
+ var w = (this.words[i] | 0) * num;
+ var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);
+ carry >>= 26;
+ carry += (w / 0x4000000) | 0;
+ // NOTE: lo is 27bit maximum
+ carry += lo >>> 26;
+ this.words[i] = lo & 0x3ffffff;
+ }
+
+ if (carry !== 0) {
+ this.words[i] = carry;
+ this.length++;
+ }
+
+ return this;
+ };
+
+ BN.prototype.muln = function muln (num) {
+ return this.clone().imuln(num);
+ };
+
+ // `this` * `this`
+ BN.prototype.sqr = function sqr () {
+ return this.mul(this);
+ };
+
+ // `this` * `this` in-place
+ BN.prototype.isqr = function isqr () {
+ return this.imul(this.clone());
+ };
+
+ // Math.pow(`this`, `num`)
+ BN.prototype.pow = function pow (num) {
+ var w = toBitArray(num);
+ if (w.length === 0) return new BN(1);
+
+ // Skip leading zeroes
+ var res = this;
+ for (var i = 0; i < w.length; i++, res = res.sqr()) {
+ if (w[i] !== 0) break;
+ }
+
+ if (++i < w.length) {
+ for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {
+ if (w[i] === 0) continue;
+
+ res = res.mul(q);
+ }
+ }
+
+ return res;
+ };
+
+ // Shift-left in-place
+ BN.prototype.iushln = function iushln (bits) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var r = bits % 26;
+ var s = (bits - r) / 26;
+ var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);
+ var i;
+
+ if (r !== 0) {
+ var carry = 0;
+
+ for (i = 0; i < this.length; i++) {
+ var newCarry = this.words[i] & carryMask;
+ var c = ((this.words[i] | 0) - newCarry) << r;
+ this.words[i] = c | carry;
+ carry = newCarry >>> (26 - r);
+ }
+
+ if (carry) {
+ this.words[i] = carry;
+ this.length++;
+ }
+ }
+
+ if (s !== 0) {
+ for (i = this.length - 1; i >= 0; i--) {
+ this.words[i + s] = this.words[i];
+ }
+
+ for (i = 0; i < s; i++) {
+ this.words[i] = 0;
+ }
+
+ this.length += s;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ishln = function ishln (bits) {
+ // TODO(indutny): implement me
+ assert(this.negative === 0);
+ return this.iushln(bits);
+ };
+
+ // Shift-right in-place
+ // NOTE: `hint` is a lowest bit before trailing zeroes
+ // NOTE: if `extended` is present - it will be filled with destroyed bits
+ BN.prototype.iushrn = function iushrn (bits, hint, extended) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var h;
+ if (hint) {
+ h = (hint - (hint % 26)) / 26;
+ } else {
+ h = 0;
+ }
+
+ var r = bits % 26;
+ var s = Math.min((bits - r) / 26, this.length);
+ var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
+ var maskedWords = extended;
+
+ h -= s;
+ h = Math.max(0, h);
+
+ // Extended mode, copy masked part
+ if (maskedWords) {
+ for (var i = 0; i < s; i++) {
+ maskedWords.words[i] = this.words[i];
+ }
+ maskedWords.length = s;
+ }
+
+ if (s === 0) {
+ // No-op, we should not move anything at all
+ } else if (this.length > s) {
+ this.length -= s;
+ for (i = 0; i < this.length; i++) {
+ this.words[i] = this.words[i + s];
+ }
+ } else {
+ this.words[0] = 0;
+ this.length = 1;
+ }
+
+ var carry = 0;
+ for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {
+ var word = this.words[i] | 0;
+ this.words[i] = (carry << (26 - r)) | (word >>> r);
+ carry = word & mask;
+ }
+
+ // Push carried bits as a mask
+ if (maskedWords && carry !== 0) {
+ maskedWords.words[maskedWords.length++] = carry;
+ }
+
+ if (this.length === 0) {
+ this.words[0] = 0;
+ this.length = 1;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ishrn = function ishrn (bits, hint, extended) {
+ // TODO(indutny): implement me
+ assert(this.negative === 0);
+ return this.iushrn(bits, hint, extended);
+ };
+
+ // Shift-left
+ BN.prototype.shln = function shln (bits) {
+ return this.clone().ishln(bits);
+ };
+
+ BN.prototype.ushln = function ushln (bits) {
+ return this.clone().iushln(bits);
+ };
+
+ // Shift-right
+ BN.prototype.shrn = function shrn (bits) {
+ return this.clone().ishrn(bits);
+ };
+
+ BN.prototype.ushrn = function ushrn (bits) {
+ return this.clone().iushrn(bits);
+ };
+
+ // Test if n bit is set
+ BN.prototype.testn = function testn (bit) {
+ assert(typeof bit === 'number' && bit >= 0);
+ var r = bit % 26;
+ var s = (bit - r) / 26;
+ var q = 1 << r;
+
+ // Fast case: bit is much higher than all existing words
+ if (this.length <= s) return false;
+
+ // Check bit and return
+ var w = this.words[s];
+
+ return !!(w & q);
+ };
+
+ // Return only lowers bits of number (in-place)
+ BN.prototype.imaskn = function imaskn (bits) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var r = bits % 26;
+ var s = (bits - r) / 26;
+
+ assert(this.negative === 0, 'imaskn works only with positive numbers');
+
+ if (this.length <= s) {
+ return this;
+ }
+
+ if (r !== 0) {
+ s++;
+ }
+ this.length = Math.min(s, this.length);
+
+ if (r !== 0) {
+ var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
+ this.words[this.length - 1] &= mask;
+ }
+
+ return this.strip();
+ };
+
+ // Return only lowers bits of number
+ BN.prototype.maskn = function maskn (bits) {
+ return this.clone().imaskn(bits);
+ };
+
+ // Add plain number `num` to `this`
+ BN.prototype.iaddn = function iaddn (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+ if (num < 0) return this.isubn(-num);
+
+ // Possible sign change
+ if (this.negative !== 0) {
+ if (this.length === 1 && (this.words[0] | 0) < num) {
+ this.words[0] = num - (this.words[0] | 0);
+ this.negative = 0;
+ return this;
+ }
+
+ this.negative = 0;
+ this.isubn(num);
+ this.negative = 1;
+ return this;
+ }
+
+ // Add without checks
+ return this._iaddn(num);
+ };
+
+ BN.prototype._iaddn = function _iaddn (num) {
+ this.words[0] += num;
+
+ // Carry
+ for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {
+ this.words[i] -= 0x4000000;
+ if (i === this.length - 1) {
+ this.words[i + 1] = 1;
+ } else {
+ this.words[i + 1]++;
+ }
+ }
+ this.length = Math.max(this.length, i + 1);
+
+ return this;
+ };
+
+ // Subtract plain number `num` from `this`
+ BN.prototype.isubn = function isubn (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+ if (num < 0) return this.iaddn(-num);
+
+ if (this.negative !== 0) {
+ this.negative = 0;
+ this.iaddn(num);
+ this.negative = 1;
+ return this;
+ }
+
+ this.words[0] -= num;
+
+ if (this.length === 1 && this.words[0] < 0) {
+ this.words[0] = -this.words[0];
+ this.negative = 1;
+ } else {
+ // Carry
+ for (var i = 0; i < this.length && this.words[i] < 0; i++) {
+ this.words[i] += 0x4000000;
+ this.words[i + 1] -= 1;
+ }
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.addn = function addn (num) {
+ return this.clone().iaddn(num);
+ };
+
+ BN.prototype.subn = function subn (num) {
+ return this.clone().isubn(num);
+ };
+
+ BN.prototype.iabs = function iabs () {
+ this.negative = 0;
+
+ return this;
+ };
+
+ BN.prototype.abs = function abs () {
+ return this.clone().iabs();
+ };
+
+ BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {
+ var len = num.length + shift;
+ var i;
+
+ this._expand(len);
+
+ var w;
+ var carry = 0;
+ for (i = 0; i < num.length; i++) {
+ w = (this.words[i + shift] | 0) + carry;
+ var right = (num.words[i] | 0) * mul;
+ w -= right & 0x3ffffff;
+ carry = (w >> 26) - ((right / 0x4000000) | 0);
+ this.words[i + shift] = w & 0x3ffffff;
+ }
+ for (; i < this.length - shift; i++) {
+ w = (this.words[i + shift] | 0) + carry;
+ carry = w >> 26;
+ this.words[i + shift] = w & 0x3ffffff;
+ }
+
+ if (carry === 0) return this.strip();
+
+ // Subtraction overflow
+ assert(carry === -1);
+ carry = 0;
+ for (i = 0; i < this.length; i++) {
+ w = -(this.words[i] | 0) + carry;
+ carry = w >> 26;
+ this.words[i] = w & 0x3ffffff;
+ }
+ this.negative = 1;
+
+ return this.strip();
+ };
+
+ BN.prototype._wordDiv = function _wordDiv (num, mode) {
+ var shift = this.length - num.length;
+
+ var a = this.clone();
+ var b = num;
+
+ // Normalize
+ var bhi = b.words[b.length - 1] | 0;
+ var bhiBits = this._countBits(bhi);
+ shift = 26 - bhiBits;
+ if (shift !== 0) {
+ b = b.ushln(shift);
+ a.iushln(shift);
+ bhi = b.words[b.length - 1] | 0;
+ }
+
+ // Initialize quotient
+ var m = a.length - b.length;
+ var q;
+
+ if (mode !== 'mod') {
+ q = new BN(null);
+ q.length = m + 1;
+ q.words = new Array(q.length);
+ for (var i = 0; i < q.length; i++) {
+ q.words[i] = 0;
+ }
+ }
+
+ var diff = a.clone()._ishlnsubmul(b, 1, m);
+ if (diff.negative === 0) {
+ a = diff;
+ if (q) {
+ q.words[m] = 1;
+ }
+ }
+
+ for (var j = m - 1; j >= 0; j--) {
+ var qj = (a.words[b.length + j] | 0) * 0x4000000 +
+ (a.words[b.length + j - 1] | 0);
+
+ // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max
+ // (0x7ffffff)
+ qj = Math.min((qj / bhi) | 0, 0x3ffffff);
+
+ a._ishlnsubmul(b, qj, j);
+ while (a.negative !== 0) {
+ qj--;
+ a.negative = 0;
+ a._ishlnsubmul(b, 1, j);
+ if (!a.isZero()) {
+ a.negative ^= 1;
+ }
+ }
+ if (q) {
+ q.words[j] = qj;
+ }
+ }
+ if (q) {
+ q.strip();
+ }
+ a.strip();
+
+ // Denormalize
+ if (mode !== 'div' && shift !== 0) {
+ a.iushrn(shift);
+ }
+
+ return {
+ div: q || null,
+ mod: a
+ };
+ };
+
+ // NOTE: 1) `mode` can be set to `mod` to request mod only,
+ // to `div` to request div only, or be absent to
+ // request both div & mod
+ // 2) `positive` is true if unsigned mod is requested
+ BN.prototype.divmod = function divmod (num, mode, positive) {
+ assert(!num.isZero());
+
+ if (this.isZero()) {
+ return {
+ div: new BN(0),
+ mod: new BN(0)
+ };
+ }
+
+ var div, mod, res;
+ if (this.negative !== 0 && num.negative === 0) {
+ res = this.neg().divmod(num, mode);
+
+ if (mode !== 'mod') {
+ div = res.div.neg();
+ }
+
+ if (mode !== 'div') {
+ mod = res.mod.neg();
+ if (positive && mod.negative !== 0) {
+ mod.iadd(num);
+ }
+ }
+
+ return {
+ div: div,
+ mod: mod
+ };
+ }
+
+ if (this.negative === 0 && num.negative !== 0) {
+ res = this.divmod(num.neg(), mode);
+
+ if (mode !== 'mod') {
+ div = res.div.neg();
+ }
+
+ return {
+ div: div,
+ mod: res.mod
+ };
+ }
+
+ if ((this.negative & num.negative) !== 0) {
+ res = this.neg().divmod(num.neg(), mode);
+
+ if (mode !== 'div') {
+ mod = res.mod.neg();
+ if (positive && mod.negative !== 0) {
+ mod.isub(num);
+ }
+ }
+
+ return {
+ div: res.div,
+ mod: mod
+ };
+ }
+
+ // Both numbers are positive at this point
+
+ // Strip both numbers to approximate shift value
+ if (num.length > this.length || this.cmp(num) < 0) {
+ return {
+ div: new BN(0),
+ mod: this
+ };
+ }
+
+ // Very short reduction
+ if (num.length === 1) {
+ if (mode === 'div') {
+ return {
+ div: this.divn(num.words[0]),
+ mod: null
+ };
+ }
+
+ if (mode === 'mod') {
+ return {
+ div: null,
+ mod: new BN(this.modn(num.words[0]))
+ };
+ }
+
+ return {
+ div: this.divn(num.words[0]),
+ mod: new BN(this.modn(num.words[0]))
+ };
+ }
+
+ return this._wordDiv(num, mode);
+ };
+
+ // Find `this` / `num`
+ BN.prototype.div = function div (num) {
+ return this.divmod(num, 'div', false).div;
+ };
+
+ // Find `this` % `num`
+ BN.prototype.mod = function mod (num) {
+ return this.divmod(num, 'mod', false).mod;
+ };
+
+ BN.prototype.umod = function umod (num) {
+ return this.divmod(num, 'mod', true).mod;
+ };
+
+ // Find Round(`this` / `num`)
+ BN.prototype.divRound = function divRound (num) {
+ var dm = this.divmod(num);
+
+ // Fast case - exact division
+ if (dm.mod.isZero()) return dm.div;
+
+ var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;
+
+ var half = num.ushrn(1);
+ var r2 = num.andln(1);
+ var cmp = mod.cmp(half);
+
+ // Round down
+ if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;
+
+ // Round up
+ return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);
+ };
+
+ BN.prototype.modn = function modn (num) {
+ assert(num <= 0x3ffffff);
+ var p = (1 << 26) % num;
+
+ var acc = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ acc = (p * acc + (this.words[i] | 0)) % num;
+ }
+
+ return acc;
+ };
+
+ // In-place division by number
+ BN.prototype.idivn = function idivn (num) {
+ assert(num <= 0x3ffffff);
+
+ var carry = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ var w = (this.words[i] | 0) + carry * 0x4000000;
+ this.words[i] = (w / num) | 0;
+ carry = w % num;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.divn = function divn (num) {
+ return this.clone().idivn(num);
+ };
+
+ BN.prototype.egcd = function egcd (p) {
+ assert(p.negative === 0);
+ assert(!p.isZero());
+
+ var x = this;
+ var y = p.clone();
+
+ if (x.negative !== 0) {
+ x = x.umod(p);
+ } else {
+ x = x.clone();
+ }
+
+ // A * x + B * y = x
+ var A = new BN(1);
+ var B = new BN(0);
+
+ // C * x + D * y = y
+ var C = new BN(0);
+ var D = new BN(1);
+
+ var g = 0;
+
+ while (x.isEven() && y.isEven()) {
+ x.iushrn(1);
+ y.iushrn(1);
+ ++g;
+ }
+
+ var yp = y.clone();
+ var xp = x.clone();
+
+ while (!x.isZero()) {
+ for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
+ if (i > 0) {
+ x.iushrn(i);
+ while (i-- > 0) {
+ if (A.isOdd() || B.isOdd()) {
+ A.iadd(yp);
+ B.isub(xp);
+ }
+
+ A.iushrn(1);
+ B.iushrn(1);
+ }
+ }
+
+ for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
+ if (j > 0) {
+ y.iushrn(j);
+ while (j-- > 0) {
+ if (C.isOdd() || D.isOdd()) {
+ C.iadd(yp);
+ D.isub(xp);
+ }
+
+ C.iushrn(1);
+ D.iushrn(1);
+ }
+ }
+
+ if (x.cmp(y) >= 0) {
+ x.isub(y);
+ A.isub(C);
+ B.isub(D);
+ } else {
+ y.isub(x);
+ C.isub(A);
+ D.isub(B);
+ }
+ }
+
+ return {
+ a: C,
+ b: D,
+ gcd: y.iushln(g)
+ };
+ };
+
+ // This is reduced incarnation of the binary EEA
+ // above, designated to invert members of the
+ // _prime_ fields F(p) at a maximal speed
+ BN.prototype._invmp = function _invmp (p) {
+ assert(p.negative === 0);
+ assert(!p.isZero());
+
+ var a = this;
+ var b = p.clone();
+
+ if (a.negative !== 0) {
+ a = a.umod(p);
+ } else {
+ a = a.clone();
+ }
+
+ var x1 = new BN(1);
+ var x2 = new BN(0);
+
+ var delta = b.clone();
+
+ while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {
+ for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
+ if (i > 0) {
+ a.iushrn(i);
+ while (i-- > 0) {
+ if (x1.isOdd()) {
+ x1.iadd(delta);
+ }
+
+ x1.iushrn(1);
+ }
+ }
+
+ for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
+ if (j > 0) {
+ b.iushrn(j);
+ while (j-- > 0) {
+ if (x2.isOdd()) {
+ x2.iadd(delta);
+ }
+
+ x2.iushrn(1);
+ }
+ }
+
+ if (a.cmp(b) >= 0) {
+ a.isub(b);
+ x1.isub(x2);
+ } else {
+ b.isub(a);
+ x2.isub(x1);
+ }
+ }
+
+ var res;
+ if (a.cmpn(1) === 0) {
+ res = x1;
+ } else {
+ res = x2;
+ }
+
+ if (res.cmpn(0) < 0) {
+ res.iadd(p);
+ }
+
+ return res;
+ };
+
+ BN.prototype.gcd = function gcd (num) {
+ if (this.isZero()) return num.abs();
+ if (num.isZero()) return this.abs();
+
+ var a = this.clone();
+ var b = num.clone();
+ a.negative = 0;
+ b.negative = 0;
+
+ // Remove common factor of two
+ for (var shift = 0; a.isEven() && b.isEven(); shift++) {
+ a.iushrn(1);
+ b.iushrn(1);
+ }
+
+ do {
+ while (a.isEven()) {
+ a.iushrn(1);
+ }
+ while (b.isEven()) {
+ b.iushrn(1);
+ }
+
+ var r = a.cmp(b);
+ if (r < 0) {
+ // Swap `a` and `b` to make `a` always bigger than `b`
+ var t = a;
+ a = b;
+ b = t;
+ } else if (r === 0 || b.cmpn(1) === 0) {
+ break;
+ }
+
+ a.isub(b);
+ } while (true);
+
+ return b.iushln(shift);
+ };
+
+ // Invert number in the field F(num)
+ BN.prototype.invm = function invm (num) {
+ return this.egcd(num).a.umod(num);
+ };
+
+ BN.prototype.isEven = function isEven () {
+ return (this.words[0] & 1) === 0;
+ };
+
+ BN.prototype.isOdd = function isOdd () {
+ return (this.words[0] & 1) === 1;
+ };
+
+ // And first word and num
+ BN.prototype.andln = function andln (num) {
+ return this.words[0] & num;
+ };
+
+ // Increment at the bit position in-line
+ BN.prototype.bincn = function bincn (bit) {
+ assert(typeof bit === 'number');
+ var r = bit % 26;
+ var s = (bit - r) / 26;
+ var q = 1 << r;
+
+ // Fast case: bit is much higher than all existing words
+ if (this.length <= s) {
+ this._expand(s + 1);
+ this.words[s] |= q;
+ return this;
+ }
+
+ // Add bit and propagate, if needed
+ var carry = q;
+ for (var i = s; carry !== 0 && i < this.length; i++) {
+ var w = this.words[i] | 0;
+ w += carry;
+ carry = w >>> 26;
+ w &= 0x3ffffff;
+ this.words[i] = w;
+ }
+ if (carry !== 0) {
+ this.words[i] = carry;
+ this.length++;
+ }
+ return this;
+ };
+
+ BN.prototype.isZero = function isZero () {
+ return this.length === 1 && this.words[0] === 0;
+ };
+
+ BN.prototype.cmpn = function cmpn (num) {
+ var negative = num < 0;
+
+ if (this.negative !== 0 && !negative) return -1;
+ if (this.negative === 0 && negative) return 1;
+
+ this.strip();
+
+ var res;
+ if (this.length > 1) {
+ res = 1;
+ } else {
+ if (negative) {
+ num = -num;
+ }
+
+ assert(num <= 0x3ffffff, 'Number is too big');
+
+ var w = this.words[0] | 0;
+ res = w === num ? 0 : w < num ? -1 : 1;
+ }
+ if (this.negative !== 0) return -res | 0;
+ return res;
+ };
+
+ // Compare two numbers and return:
+ // 1 - if `this` > `num`
+ // 0 - if `this` == `num`
+ // -1 - if `this` < `num`
+ BN.prototype.cmp = function cmp (num) {
+ if (this.negative !== 0 && num.negative === 0) return -1;
+ if (this.negative === 0 && num.negative !== 0) return 1;
+
+ var res = this.ucmp(num);
+ if (this.negative !== 0) return -res | 0;
+ return res;
+ };
+
+ // Unsigned comparison
+ BN.prototype.ucmp = function ucmp (num) {
+ // At this point both numbers have the same sign
+ if (this.length > num.length) return 1;
+ if (this.length < num.length) return -1;
+
+ var res = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ var a = this.words[i] | 0;
+ var b = num.words[i] | 0;
+
+ if (a === b) continue;
+ if (a < b) {
+ res = -1;
+ } else if (a > b) {
+ res = 1;
+ }
+ break;
+ }
+ return res;
+ };
+
+ BN.prototype.gtn = function gtn (num) {
+ return this.cmpn(num) === 1;
+ };
+
+ BN.prototype.gt = function gt (num) {
+ return this.cmp(num) === 1;
+ };
+
+ BN.prototype.gten = function gten (num) {
+ return this.cmpn(num) >= 0;
+ };
+
+ BN.prototype.gte = function gte (num) {
+ return this.cmp(num) >= 0;
+ };
+
+ BN.prototype.ltn = function ltn (num) {
+ return this.cmpn(num) === -1;
+ };
+
+ BN.prototype.lt = function lt (num) {
+ return this.cmp(num) === -1;
+ };
+
+ BN.prototype.lten = function lten (num) {
+ return this.cmpn(num) <= 0;
+ };
+
+ BN.prototype.lte = function lte (num) {
+ return this.cmp(num) <= 0;
+ };
+
+ BN.prototype.eqn = function eqn (num) {
+ return this.cmpn(num) === 0;
+ };
+
+ BN.prototype.eq = function eq (num) {
+ return this.cmp(num) === 0;
+ };
+
+ //
+ // A reduce context, could be using montgomery or something better, depending
+ // on the `m` itself.
+ //
+ BN.red = function red (num) {
+ return new Red(num);
+ };
+
+ BN.prototype.toRed = function toRed (ctx) {
+ assert(!this.red, 'Already a number in reduction context');
+ assert(this.negative === 0, 'red works only with positives');
+ return ctx.convertTo(this)._forceRed(ctx);
+ };
+
+ BN.prototype.fromRed = function fromRed () {
+ assert(this.red, 'fromRed works only with numbers in reduction context');
+ return this.red.convertFrom(this);
+ };
+
+ BN.prototype._forceRed = function _forceRed (ctx) {
+ this.red = ctx;
+ return this;
+ };
+
+ BN.prototype.forceRed = function forceRed (ctx) {
+ assert(!this.red, 'Already a number in reduction context');
+ return this._forceRed(ctx);
+ };
+
+ BN.prototype.redAdd = function redAdd (num) {
+ assert(this.red, 'redAdd works only with red numbers');
+ return this.red.add(this, num);
+ };
+
+ BN.prototype.redIAdd = function redIAdd (num) {
+ assert(this.red, 'redIAdd works only with red numbers');
+ return this.red.iadd(this, num);
+ };
+
+ BN.prototype.redSub = function redSub (num) {
+ assert(this.red, 'redSub works only with red numbers');
+ return this.red.sub(this, num);
+ };
+
+ BN.prototype.redISub = function redISub (num) {
+ assert(this.red, 'redISub works only with red numbers');
+ return this.red.isub(this, num);
+ };
+
+ BN.prototype.redShl = function redShl (num) {
+ assert(this.red, 'redShl works only with red numbers');
+ return this.red.shl(this, num);
+ };
+
+ BN.prototype.redMul = function redMul (num) {
+ assert(this.red, 'redMul works only with red numbers');
+ this.red._verify2(this, num);
+ return this.red.mul(this, num);
+ };
+
+ BN.prototype.redIMul = function redIMul (num) {
+ assert(this.red, 'redMul works only with red numbers');
+ this.red._verify2(this, num);
+ return this.red.imul(this, num);
+ };
+
+ BN.prototype.redSqr = function redSqr () {
+ assert(this.red, 'redSqr works only with red numbers');
+ this.red._verify1(this);
+ return this.red.sqr(this);
+ };
+
+ BN.prototype.redISqr = function redISqr () {
+ assert(this.red, 'redISqr works only with red numbers');
+ this.red._verify1(this);
+ return this.red.isqr(this);
+ };
+
+ // Square root over p
+ BN.prototype.redSqrt = function redSqrt () {
+ assert(this.red, 'redSqrt works only with red numbers');
+ this.red._verify1(this);
+ return this.red.sqrt(this);
+ };
+
+ BN.prototype.redInvm = function redInvm () {
+ assert(this.red, 'redInvm works only with red numbers');
+ this.red._verify1(this);
+ return this.red.invm(this);
+ };
+
+ // Return negative clone of `this` % `red modulo`
+ BN.prototype.redNeg = function redNeg () {
+ assert(this.red, 'redNeg works only with red numbers');
+ this.red._verify1(this);
+ return this.red.neg(this);
+ };
+
+ BN.prototype.redPow = function redPow (num) {
+ assert(this.red && !num.red, 'redPow(normalNum)');
+ this.red._verify1(this);
+ return this.red.pow(this, num);
+ };
+
+ // Prime numbers with efficient reduction
+ var primes = {
+ k256: null,
+ p224: null,
+ p192: null,
+ p25519: null
+ };
+
+ // Pseudo-Mersenne prime
+ function MPrime (name, p) {
+ // P = 2 ^ N - K
+ this.name = name;
+ this.p = new BN(p, 16);
+ this.n = this.p.bitLength();
+ this.k = new BN(1).iushln(this.n).isub(this.p);
+
+ this.tmp = this._tmp();
+ }
+
+ MPrime.prototype._tmp = function _tmp () {
+ var tmp = new BN(null);
+ tmp.words = new Array(Math.ceil(this.n / 13));
+ return tmp;
+ };
+
+ MPrime.prototype.ireduce = function ireduce (num) {
+ // Assumes that `num` is less than `P^2`
+ // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)
+ var r = num;
+ var rlen;
+
+ do {
+ this.split(r, this.tmp);
+ r = this.imulK(r);
+ r = r.iadd(this.tmp);
+ rlen = r.bitLength();
+ } while (rlen > this.n);
+
+ var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
+ if (cmp === 0) {
+ r.words[0] = 0;
+ r.length = 1;
+ } else if (cmp > 0) {
+ r.isub(this.p);
+ } else {
+ if (r.strip !== undefined) {
+ // r is BN v4 instance
+ r.strip();
+ } else {
+ // r is BN v5 instance
+ r._strip();
+ }
+ }
+
+ return r;
+ };
+
+ MPrime.prototype.split = function split (input, out) {
+ input.iushrn(this.n, 0, out);
+ };
+
+ MPrime.prototype.imulK = function imulK (num) {
+ return num.imul(this.k);
+ };
+
+ function K256 () {
+ MPrime.call(
+ this,
+ 'k256',
+ 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');
+ }
+ inherits(K256, MPrime);
+
+ K256.prototype.split = function split (input, output) {
+ // 256 = 9 * 26 + 22
+ var mask = 0x3fffff;
+
+ var outLen = Math.min(input.length, 9);
+ for (var i = 0; i < outLen; i++) {
+ output.words[i] = input.words[i];
+ }
+ output.length = outLen;
+
+ if (input.length <= 9) {
+ input.words[0] = 0;
+ input.length = 1;
+ return;
+ }
+
+ // Shift by 9 limbs
+ var prev = input.words[9];
+ output.words[output.length++] = prev & mask;
+
+ for (i = 10; i < input.length; i++) {
+ var next = input.words[i] | 0;
+ input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);
+ prev = next;
+ }
+ prev >>>= 22;
+ input.words[i - 10] = prev;
+ if (prev === 0 && input.length > 10) {
+ input.length -= 10;
+ } else {
+ input.length -= 9;
+ }
+ };
+
+ K256.prototype.imulK = function imulK (num) {
+ // K = 0x1000003d1 = [ 0x40, 0x3d1 ]
+ num.words[num.length] = 0;
+ num.words[num.length + 1] = 0;
+ num.length += 2;
+
+ // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390
+ var lo = 0;
+ for (var i = 0; i < num.length; i++) {
+ var w = num.words[i] | 0;
+ lo += w * 0x3d1;
+ num.words[i] = lo & 0x3ffffff;
+ lo = w * 0x40 + ((lo / 0x4000000) | 0);
+ }
+
+ // Fast length reduction
+ if (num.words[num.length - 1] === 0) {
+ num.length--;
+ if (num.words[num.length - 1] === 0) {
+ num.length--;
+ }
+ }
+ return num;
+ };
+
+ function P224 () {
+ MPrime.call(
+ this,
+ 'p224',
+ 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');
+ }
+ inherits(P224, MPrime);
+
+ function P192 () {
+ MPrime.call(
+ this,
+ 'p192',
+ 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');
+ }
+ inherits(P192, MPrime);
+
+ function P25519 () {
+ // 2 ^ 255 - 19
+ MPrime.call(
+ this,
+ '25519',
+ '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');
+ }
+ inherits(P25519, MPrime);
+
+ P25519.prototype.imulK = function imulK (num) {
+ // K = 0x13
+ var carry = 0;
+ for (var i = 0; i < num.length; i++) {
+ var hi = (num.words[i] | 0) * 0x13 + carry;
+ var lo = hi & 0x3ffffff;
+ hi >>>= 26;
+
+ num.words[i] = lo;
+ carry = hi;
+ }
+ if (carry !== 0) {
+ num.words[num.length++] = carry;
+ }
+ return num;
+ };
+
+ // Exported mostly for testing purposes, use plain name instead
+ BN._prime = function prime (name) {
+ // Cached version of prime
+ if (primes[name]) return primes[name];
+
+ var prime;
+ if (name === 'k256') {
+ prime = new K256();
+ } else if (name === 'p224') {
+ prime = new P224();
+ } else if (name === 'p192') {
+ prime = new P192();
+ } else if (name === 'p25519') {
+ prime = new P25519();
+ } else {
+ throw new Error('Unknown prime ' + name);
+ }
+ primes[name] = prime;
+
+ return prime;
+ };
+
+ //
+ // Base reduction engine
+ //
+ function Red (m) {
+ if (typeof m === 'string') {
+ var prime = BN._prime(m);
+ this.m = prime.p;
+ this.prime = prime;
+ } else {
+ assert(m.gtn(1), 'modulus must be greater than 1');
+ this.m = m;
+ this.prime = null;
+ }
+ }
+
+ Red.prototype._verify1 = function _verify1 (a) {
+ assert(a.negative === 0, 'red works only with positives');
+ assert(a.red, 'red works only with red numbers');
+ };
+
+ Red.prototype._verify2 = function _verify2 (a, b) {
+ assert((a.negative | b.negative) === 0, 'red works only with positives');
+ assert(a.red && a.red === b.red,
+ 'red works only with red numbers');
+ };
+
+ Red.prototype.imod = function imod (a) {
+ if (this.prime) return this.prime.ireduce(a)._forceRed(this);
+ return a.umod(this.m)._forceRed(this);
+ };
+
+ Red.prototype.neg = function neg (a) {
+ if (a.isZero()) {
+ return a.clone();
+ }
+
+ return this.m.sub(a)._forceRed(this);
+ };
+
+ Red.prototype.add = function add (a, b) {
+ this._verify2(a, b);
+
+ var res = a.add(b);
+ if (res.cmp(this.m) >= 0) {
+ res.isub(this.m);
+ }
+ return res._forceRed(this);
+ };
+
+ Red.prototype.iadd = function iadd (a, b) {
+ this._verify2(a, b);
+
+ var res = a.iadd(b);
+ if (res.cmp(this.m) >= 0) {
+ res.isub(this.m);
+ }
+ return res;
+ };
+
+ Red.prototype.sub = function sub (a, b) {
+ this._verify2(a, b);
+
+ var res = a.sub(b);
+ if (res.cmpn(0) < 0) {
+ res.iadd(this.m);
+ }
+ return res._forceRed(this);
+ };
+
+ Red.prototype.isub = function isub (a, b) {
+ this._verify2(a, b);
+
+ var res = a.isub(b);
+ if (res.cmpn(0) < 0) {
+ res.iadd(this.m);
+ }
+ return res;
+ };
+
+ Red.prototype.shl = function shl (a, num) {
+ this._verify1(a);
+ return this.imod(a.ushln(num));
+ };
+
+ Red.prototype.imul = function imul (a, b) {
+ this._verify2(a, b);
+ return this.imod(a.imul(b));
+ };
+
+ Red.prototype.mul = function mul (a, b) {
+ this._verify2(a, b);
+ return this.imod(a.mul(b));
+ };
+
+ Red.prototype.isqr = function isqr (a) {
+ return this.imul(a, a.clone());
+ };
+
+ Red.prototype.sqr = function sqr (a) {
+ return this.mul(a, a);
+ };
+
+ Red.prototype.sqrt = function sqrt (a) {
+ if (a.isZero()) return a.clone();
+
+ var mod3 = this.m.andln(3);
+ assert(mod3 % 2 === 1);
+
+ // Fast case
+ if (mod3 === 3) {
+ var pow = this.m.add(new BN(1)).iushrn(2);
+ return this.pow(a, pow);
+ }
+
+ // Tonelli-Shanks algorithm (Totally unoptimized and slow)
+ //
+ // Find Q and S, that Q * 2 ^ S = (P - 1)
+ var q = this.m.subn(1);
+ var s = 0;
+ while (!q.isZero() && q.andln(1) === 0) {
+ s++;
+ q.iushrn(1);
+ }
+ assert(!q.isZero());
+
+ var one = new BN(1).toRed(this);
+ var nOne = one.redNeg();
+
+ // Find quadratic non-residue
+ // NOTE: Max is such because of generalized Riemann hypothesis.
+ var lpow = this.m.subn(1).iushrn(1);
+ var z = this.m.bitLength();
+ z = new BN(2 * z * z).toRed(this);
+
+ while (this.pow(z, lpow).cmp(nOne) !== 0) {
+ z.redIAdd(nOne);
+ }
+
+ var c = this.pow(z, q);
+ var r = this.pow(a, q.addn(1).iushrn(1));
+ var t = this.pow(a, q);
+ var m = s;
+ while (t.cmp(one) !== 0) {
+ var tmp = t;
+ for (var i = 0; tmp.cmp(one) !== 0; i++) {
+ tmp = tmp.redSqr();
+ }
+ assert(i < m);
+ var b = this.pow(c, new BN(1).iushln(m - i - 1));
+
+ r = r.redMul(b);
+ c = b.redSqr();
+ t = t.redMul(c);
+ m = i;
+ }
+
+ return r;
+ };
+
+ Red.prototype.invm = function invm (a) {
+ var inv = a._invmp(this.m);
+ if (inv.negative !== 0) {
+ inv.negative = 0;
+ return this.imod(inv).redNeg();
+ } else {
+ return this.imod(inv);
+ }
+ };
+
+ Red.prototype.pow = function pow (a, num) {
+ if (num.isZero()) return new BN(1).toRed(this);
+ if (num.cmpn(1) === 0) return a.clone();
+
+ var windowSize = 4;
+ var wnd = new Array(1 << windowSize);
+ wnd[0] = new BN(1).toRed(this);
+ wnd[1] = a;
+ for (var i = 2; i < wnd.length; i++) {
+ wnd[i] = this.mul(wnd[i - 1], a);
+ }
+
+ var res = wnd[0];
+ var current = 0;
+ var currentLen = 0;
+ var start = num.bitLength() % 26;
+ if (start === 0) {
+ start = 26;
+ }
+
+ for (i = num.length - 1; i >= 0; i--) {
+ var word = num.words[i];
+ for (var j = start - 1; j >= 0; j--) {
+ var bit = (word >> j) & 1;
+ if (res !== wnd[0]) {
+ res = this.sqr(res);
+ }
+
+ if (bit === 0 && current === 0) {
+ currentLen = 0;
+ continue;
+ }
+
+ current <<= 1;
+ current |= bit;
+ currentLen++;
+ if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;
+
+ res = this.mul(res, wnd[current]);
+ currentLen = 0;
+ current = 0;
+ }
+ start = 26;
+ }
+
+ return res;
+ };
+
+ Red.prototype.convertTo = function convertTo (num) {
+ var r = num.umod(this.m);
+
+ return r === num ? r.clone() : r;
+ };
+
+ Red.prototype.convertFrom = function convertFrom (num) {
+ var res = num.clone();
+ res.red = null;
+ return res;
+ };
+
+ //
+ // Montgomery method engine
+ //
+
+ BN.mont = function mont (num) {
+ return new Mont(num);
+ };
+
+ function Mont (m) {
+ Red.call(this, m);
+
+ this.shift = this.m.bitLength();
+ if (this.shift % 26 !== 0) {
+ this.shift += 26 - (this.shift % 26);
+ }
+
+ this.r = new BN(1).iushln(this.shift);
+ this.r2 = this.imod(this.r.sqr());
+ this.rinv = this.r._invmp(this.m);
+
+ this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);
+ this.minv = this.minv.umod(this.r);
+ this.minv = this.r.sub(this.minv);
+ }
+ inherits(Mont, Red);
+
+ Mont.prototype.convertTo = function convertTo (num) {
+ return this.imod(num.ushln(this.shift));
+ };
+
+ Mont.prototype.convertFrom = function convertFrom (num) {
+ var r = this.imod(num.mul(this.rinv));
+ r.red = null;
+ return r;
+ };
+
+ Mont.prototype.imul = function imul (a, b) {
+ if (a.isZero() || b.isZero()) {
+ a.words[0] = 0;
+ a.length = 1;
+ return a;
+ }
+
+ var t = a.imul(b);
+ var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
+ var u = t.isub(c).iushrn(this.shift);
+ var res = u;
+
+ if (u.cmp(this.m) >= 0) {
+ res = u.isub(this.m);
+ } else if (u.cmpn(0) < 0) {
+ res = u.iadd(this.m);
+ }
+
+ return res._forceRed(this);
+ };
+
+ Mont.prototype.mul = function mul (a, b) {
+ if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);
+
+ var t = a.mul(b);
+ var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
+ var u = t.isub(c).iushrn(this.shift);
+ var res = u;
+ if (u.cmp(this.m) >= 0) {
+ res = u.isub(this.m);
+ } else if (u.cmpn(0) < 0) {
+ res = u.iadd(this.m);
+ }
+
+ return res._forceRed(this);
+ };
+
+ Mont.prototype.invm = function invm (a) {
+ // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R
+ var res = this.imod(a._invmp(this.m).mul(this.r2));
+ return res._forceRed(this);
+ };
+})(typeof module === 'undefined' || module, this);
diff --git a/node_modules/diffie-hellman/node_modules/bn.js/package.json b/node_modules/diffie-hellman/node_modules/bn.js/package.json
new file mode 100644
index 00000000..396c608a
--- /dev/null
+++ b/node_modules/diffie-hellman/node_modules/bn.js/package.json
@@ -0,0 +1,64 @@
+{
+ "_from": "bn.js@^4.1.0",
+ "_id": "bn.js@4.12.0",
+ "_inBundle": false,
+ "_integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==",
+ "_location": "/diffie-hellman/bn.js",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "bn.js@^4.1.0",
+ "name": "bn.js",
+ "escapedName": "bn.js",
+ "rawSpec": "^4.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^4.1.0"
+ },
+ "_requiredBy": [
+ "/diffie-hellman"
+ ],
+ "_resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "_shasum": "775b3f278efbb9718eec7361f483fb36fbbfea88",
+ "_spec": "bn.js@^4.1.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/diffie-hellman",
+ "author": {
+ "name": "Fedor Indutny",
+ "email": "fedor@indutny.com"
+ },
+ "browser": {
+ "buffer": false
+ },
+ "bugs": {
+ "url": "https://github.com/indutny/bn.js/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Big number implementation in pure javascript",
+ "devDependencies": {
+ "istanbul": "^0.3.5",
+ "mocha": "^2.1.0",
+ "semistandard": "^7.0.4"
+ },
+ "homepage": "https://github.com/indutny/bn.js",
+ "keywords": [
+ "BN",
+ "BigNum",
+ "Big number",
+ "Modulo",
+ "Montgomery"
+ ],
+ "license": "MIT",
+ "main": "lib/bn.js",
+ "name": "bn.js",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/indutny/bn.js.git"
+ },
+ "scripts": {
+ "lint": "semistandard",
+ "test": "npm run lint && npm run unit",
+ "unit": "mocha --reporter=spec test/*-test.js"
+ },
+ "version": "4.12.0"
+}
diff --git a/node_modules/diffie-hellman/package.json b/node_modules/diffie-hellman/package.json
new file mode 100644
index 00000000..45864b22
--- /dev/null
+++ b/node_modules/diffie-hellman/package.json
@@ -0,0 +1,62 @@
+{
+ "_from": "diffie-hellman@^5.0.0",
+ "_id": "diffie-hellman@5.0.3",
+ "_inBundle": false,
+ "_integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==",
+ "_location": "/diffie-hellman",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "diffie-hellman@^5.0.0",
+ "name": "diffie-hellman",
+ "escapedName": "diffie-hellman",
+ "rawSpec": "^5.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^5.0.0"
+ },
+ "_requiredBy": [
+ "/crypto-browserify"
+ ],
+ "_resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz",
+ "_shasum": "40e8ee98f55a2149607146921c63e1ae5f3d2875",
+ "_spec": "diffie-hellman@^5.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/crypto-browserify",
+ "author": {
+ "name": "Calvin Metcalf"
+ },
+ "browser": "browser.js",
+ "bugs": {
+ "url": "https://github.com/crypto-browserify/diffie-hellman/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "bn.js": "^4.1.0",
+ "miller-rabin": "^4.0.0",
+ "randombytes": "^2.0.0"
+ },
+ "deprecated": false,
+ "description": "pure js diffie-hellman",
+ "devDependencies": {
+ "tap-spec": "^1.0.1",
+ "tape": "^3.0.1"
+ },
+ "homepage": "https://github.com/crypto-browserify/diffie-hellman",
+ "keywords": [
+ "diffie",
+ "hellman",
+ "diffiehellman",
+ "dh"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "diffie-hellman",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/crypto-browserify/diffie-hellman.git"
+ },
+ "scripts": {
+ "test": "node test.js | tspec"
+ },
+ "version": "5.0.3"
+}
diff --git a/node_modules/diffie-hellman/readme.md b/node_modules/diffie-hellman/readme.md
new file mode 100644
index 00000000..afba499d
--- /dev/null
+++ b/node_modules/diffie-hellman/readme.md
@@ -0,0 +1,4 @@
+diffie hellman [](https://travis-ci.org/crypto-browserify/diffie-hellman)
+====
+
+pure js diffie-hellman, same api as node, most hard parts thanks to [bn.js](https://www.npmjs.org/package/bn.js) by [@indutny](https://github.com/indutny). In node just returns an object with `crypto.createDiffieHellman` and `crypto.getDiffieHellman` in the browser returns a shim. To require the pure JavaScript one in node `require('diffie-hellman/browser');`;
\ No newline at end of file
diff --git a/node_modules/domain-browser/HISTORY.md b/node_modules/domain-browser/HISTORY.md
new file mode 100644
index 00000000..b4a285d4
--- /dev/null
+++ b/node_modules/domain-browser/HISTORY.md
@@ -0,0 +1,46 @@
+# History
+
+## v1.2.0 2018 January 26
+- `index.js` is now located at `source/index.js`
+- Updated base files
+
+## v1.1.7 2015 December 12
+- Revert minimum node version from 0.12 back to 0.4
+ - Thanks to [Alexander Sorokin](https://github.com/syrnick) for [this comment](https://github.com/bevry/domain-browser/commit/c66ee3445e87955e70d0d60d4515f2d26a81b9c4#commitcomment-14938325)
+
+## v1.1.6 2015 December 12
+- Fixed `assert-helpers` sneaking into `dependencies`
+ - Thanks to [Bogdan Chadkin](https://github.com/TrySound) for [Pull Request #8](https://github.com/bevry/domain-browser/pull/8)
+
+## v1.1.5 2015 December 9
+- Updated internal conventions
+- Added better jspm support
+ - Thanks to [Guy Bedford](https://github.com/guybedford) for [Pull Request #7](https://github.com/bevry/domain-browser/pull/7)
+
+## v1.1.4 2015 February 3
+- Added
+ - `domain.enter()`
+ - `domain.exit()`
+ - `domain.bind()`
+ - `domain.intercept()`
+
+## v1.1.3 2014 October 10
+- Added
+ - `domain.add()`
+ - `domain.remove()`
+
+## v1.1.2 2014 June 8
+- Added `domain.createDomain()` alias
+ - Thanks to [James Halliday](https://github.com/substack) for [Pull Request #1](https://github.com/bevry/domain-browser/pull/1)
+
+## v1.1.1 2013 December 27
+- Fixed `domain.create()` not returning anything
+
+## v1.1.0 2013 November 1
+- Dropped component.io and bower support, just use ender or browserify
+
+## v1.0.1 2013 September 18
+- Now called `domain-browser` everywhere
+
+## v1.0.0 2013 September 18
+- Initial release
diff --git a/node_modules/domain-browser/LICENSE.md b/node_modules/domain-browser/LICENSE.md
new file mode 100644
index 00000000..08d8802a
--- /dev/null
+++ b/node_modules/domain-browser/LICENSE.md
@@ -0,0 +1,23 @@
+
+
+License
+
+Unless stated otherwise all works are:
+
+
+
+and licensed under:
+
+
+
+MIT License
+
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+
+
diff --git a/node_modules/domain-browser/README.md b/node_modules/domain-browser/README.md
new file mode 100644
index 00000000..68c936bb
--- /dev/null
+++ b/node_modules/domain-browser/README.md
@@ -0,0 +1,121 @@
+
+
+domain-browser
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Node's domain module for the web browser. This is merely an evented try...catch with the same API as node, nothing more.
+
+
+
+
+
+
+Install
+
+NPM
+Install: npm install --save domain-browser
+Module: require('domain-browser')
+
+Browserify
+Install: npm install --save domain-browser
+Module: require('domain-browser')
+CDN URL: //wzrd.in/bundle/domain-browser@1.2.0
+
+Ender
+Install: ender add domain-browser
+Module: require('domain-browser')
+
+
+
+This package is published with the following editions:
+
+domain-browser
aliases domain-browser/source/index.js
+domain-browser/source/index.js
is Source + ES5 + Require
+
+
+
+
+
+
+History
+
+Discover the release history by heading on over to the HISTORY.md
file.
+
+
+
+
+
+
+Backers
+
+Maintainers
+
+These amazing people are maintaining this project:
+
+
+
+Sponsors
+
+No sponsors yet! Will you be the first?
+
+
+
+
+
+
+
+
+
+Contributors
+
+These amazing people have contributed code to this project:
+
+
+
+Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
+
+
+
+
+
+
+License
+
+Unless stated otherwise all works are:
+
+
+
+and licensed under:
+
+
+
+
diff --git a/node_modules/domain-browser/package.json b/node_modules/domain-browser/package.json
new file mode 100644
index 00000000..cce716cf
--- /dev/null
+++ b/node_modules/domain-browser/package.json
@@ -0,0 +1,172 @@
+{
+ "_from": "domain-browser@^1.2.0",
+ "_id": "domain-browser@1.2.0",
+ "_inBundle": false,
+ "_integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==",
+ "_location": "/domain-browser",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "domain-browser@^1.2.0",
+ "name": "domain-browser",
+ "escapedName": "domain-browser",
+ "rawSpec": "^1.2.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.2.0"
+ },
+ "_requiredBy": [
+ "/browserify"
+ ],
+ "_resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz",
+ "_shasum": "3d31f50191a6749dd1375a7f522e823d42e54eda",
+ "_spec": "domain-browser@^1.2.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/browserify",
+ "author": {
+ "name": "2013+ Bevry Pty Ltd",
+ "email": "us@bevry.me",
+ "url": "http://bevry.me"
+ },
+ "badges": {
+ "list": [
+ "travisci",
+ "npmversion",
+ "npmdownloads",
+ "daviddm",
+ "daviddmdev",
+ "---",
+ "patreon",
+ "opencollective",
+ "gratipay",
+ "flattr",
+ "paypal",
+ "bitcoin",
+ "wishlist",
+ "---",
+ "slackin"
+ ],
+ "config": {
+ "patreonUsername": "bevry",
+ "opencollectiveUsername": "bevry",
+ "gratipayUsername": "bevry",
+ "flattrUsername": "balupton",
+ "paypalURL": "https://bevry.me/paypal",
+ "bitcoinURL": "https://bevry.me/bitcoin",
+ "wishlistURL": "https://bevry.me/wishlist",
+ "slackinURL": "https://slack.bevry.me"
+ }
+ },
+ "browser": "source/index.js",
+ "bugs": {
+ "url": "https://github.com/bevry/domain-browser/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Benjamin Lupton",
+ "email": "b@lupton.cc",
+ "url": "http://balupton.com"
+ },
+ {
+ "name": "Evan Solomon",
+ "url": "http://evansolomon.me"
+ },
+ {
+ "name": "James Halliday",
+ "email": "substack@gmail.com",
+ "url": "http://substack.neocities.org/"
+ },
+ {
+ "name": "Guy Bedford",
+ "email": "guybedford@gmail.com",
+ "url": "twitter.com/guybedford"
+ },
+ {
+ "name": "Bogdan Chadkin",
+ "email": "trysound@yandex.ru",
+ "url": "https://github.com/TrySound"
+ }
+ ],
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Node's domain module for the web browser. This is merely an evented try...catch with the same API as node, nothing more.",
+ "devDependencies": {
+ "assert-helpers": "^4.5.0",
+ "eslint": "^4.16.0",
+ "joe": "^2.0.2",
+ "joe-reporter-console": "^2.0.1",
+ "projectz": "^1.4.0"
+ },
+ "editions": [
+ {
+ "description": "Source + ES5 + Require",
+ "directory": "source",
+ "entry": "index.js",
+ "syntaxes": [
+ "javascript",
+ "es5",
+ "require"
+ ]
+ }
+ ],
+ "engines": {
+ "node": ">=0.4",
+ "npm": ">=1.2"
+ },
+ "homepage": "https://github.com/bevry/domain-browser",
+ "jspm": {
+ "map": {
+ "source/index.js": {
+ "node": "@node/domain"
+ }
+ }
+ },
+ "keywords": [
+ "domain",
+ "trycatch",
+ "try",
+ "catch",
+ "node-compat",
+ "ender.js",
+ "component",
+ "component.io",
+ "umd",
+ "amd",
+ "require.js",
+ "browser"
+ ],
+ "license": "MIT",
+ "main": "source/index.js",
+ "maintainers": [
+ {
+ "name": "Benjamin Lupton",
+ "email": "b@lupton.cc",
+ "url": "http://balupton.com"
+ }
+ ],
+ "name": "domain-browser",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/bevry/domain-browser.git"
+ },
+ "scripts": {
+ "our:clean": "rm -Rf ./docs ./es2015 ./es5 ./out",
+ "our:compile": "echo no need for this project",
+ "our:meta": "npm run our:meta:projectz",
+ "our:meta:projectz": "projectz compile",
+ "our:release": "npm run our:release:prepare && npm run our:release:check && npm run our:release:tag && npm run our:release:push",
+ "our:release:check": "npm run our:release:check:changelog && npm run our:release:check:dirty",
+ "our:release:check:changelog": "cat ./HISTORY.md | grep v$npm_package_version || (echo add a changelog entry for v$npm_package_version && exit -1)",
+ "our:release:check:dirty": "git diff --exit-code",
+ "our:release:prepare": "npm run our:clean && npm run our:compile && npm run our:test && npm run our:meta",
+ "our:release:push": "git push origin master && git push origin --tags",
+ "our:release:tag": "export MESSAGE=$(cat ./HISTORY.md | sed -n \"/## v$npm_package_version/,/##/p\" | sed 's/## //' | awk 'NR>1{print buf}{buf = $0}') && test \"$MESSAGE\" || (echo 'proper changelog entry not found' && exit -1) && git tag v$npm_package_version -am \"$MESSAGE\"",
+ "our:setup": "npm run our:setup:npm",
+ "our:setup:npm": "npm install",
+ "our:test": "npm run our:verify && npm test",
+ "our:verify": "npm run our:verify:eslint",
+ "our:verify:eslint": "eslint --fix ./source",
+ "test": "node --harmony source/test.js --joe-reporter=console"
+ },
+ "version": "1.2.0"
+}
diff --git a/node_modules/domain-browser/source/index.js b/node_modules/domain-browser/source/index.js
new file mode 100644
index 00000000..e06b3a17
--- /dev/null
+++ b/node_modules/domain-browser/source/index.js
@@ -0,0 +1,70 @@
+// This file should be ES5 compatible
+/* eslint prefer-spread:0, no-var:0, prefer-reflect:0, no-magic-numbers:0 */
+'use strict'
+
+module.exports = (function () {
+ // Import Events
+ var events = require('events')
+
+ // Export Domain
+ var domain = {}
+ domain.createDomain = domain.create = function () {
+ var d = new events.EventEmitter()
+
+ function emitError (e) {
+ d.emit('error', e)
+ }
+
+ d.add = function (emitter) {
+ emitter.on('error', emitError)
+ }
+ d.remove = function (emitter) {
+ emitter.removeListener('error', emitError)
+ }
+ d.bind = function (fn) {
+ return function () {
+ var args = Array.prototype.slice.call(arguments)
+ try {
+ fn.apply(null, args)
+ }
+ catch (err) {
+ emitError(err)
+ }
+ }
+ }
+ d.intercept = function (fn) {
+ return function (err) {
+ if ( err ) {
+ emitError(err)
+ }
+ else {
+ var args = Array.prototype.slice.call(arguments, 1)
+ try {
+ fn.apply(null, args)
+ }
+ catch (err) {
+ emitError(err)
+ }
+ }
+ }
+ }
+ d.run = function (fn) {
+ try {
+ fn()
+ }
+ catch (err) {
+ emitError(err)
+ }
+ return this
+ }
+ d.dispose = function () {
+ this.removeAllListeners()
+ return this
+ }
+ d.enter = d.exit = function () {
+ return this
+ }
+ return d
+ }
+ return domain
+}).call(this)
diff --git a/node_modules/duplexer2/LICENSE.md b/node_modules/duplexer2/LICENSE.md
new file mode 100644
index 00000000..547189a6
--- /dev/null
+++ b/node_modules/duplexer2/LICENSE.md
@@ -0,0 +1,26 @@
+Copyright (c) 2013, Deoxxa Development
+======================================
+All rights reserved.
+--------------------
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. Neither the name of Deoxxa Development nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY DEOXXA DEVELOPMENT ''AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL DEOXXA DEVELOPMENT BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/duplexer2/README.md b/node_modules/duplexer2/README.md
new file mode 100644
index 00000000..f4a69573
--- /dev/null
+++ b/node_modules/duplexer2/README.md
@@ -0,0 +1,115 @@
+# duplexer2 [](https://travis-ci.org/deoxxa/duplexer2) [](https://coveralls.io/github/deoxxa/duplexer2?branch=master)
+
+Like [duplexer](https://github.com/Raynos/duplexer) but using Streams3
+
+```javascript
+var stream = require("stream");
+
+var duplexer2 = require("duplexer2");
+
+var writable = new stream.Writable({objectMode: true}),
+ readable = new stream.Readable({objectMode: true});
+
+writable._write = function _write(input, encoding, done) {
+ if (readable.push(input)) {
+ return done();
+ } else {
+ readable.once("drain", done);
+ }
+};
+
+readable._read = function _read(n) {
+ // no-op
+};
+
+// simulate the readable thing closing after a bit
+writable.once("finish", function() {
+ setTimeout(function() {
+ readable.push(null);
+ }, 500);
+});
+
+var duplex = duplexer2(writable, readable);
+
+duplex.on("data", function(e) {
+ console.log("got data", JSON.stringify(e));
+});
+
+duplex.on("finish", function() {
+ console.log("got finish event");
+});
+
+duplex.on("end", function() {
+ console.log("got end event");
+});
+
+duplex.write("oh, hi there", function() {
+ console.log("finished writing");
+});
+
+duplex.end(function() {
+ console.log("finished ending");
+});
+```
+
+```
+got data "oh, hi there"
+finished writing
+got finish event
+finished ending
+got end event
+```
+
+## Overview
+
+This is a reimplementation of [duplexer](https://www.npmjs.com/package/duplexer) using the
+Streams3 API which is standard in Node as of v4. Everything largely
+works the same.
+
+
+
+## Installation
+
+[Available via `npm`](https://docs.npmjs.com/cli/install):
+
+```
+$ npm i duplexer2
+```
+
+## API
+
+### duplexer2
+
+Creates a new `DuplexWrapper` object, which is the actual class that implements
+most of the fun stuff. All that fun stuff is hidden. DON'T LOOK.
+
+```javascript
+duplexer2([options], writable, readable)
+```
+
+```javascript
+const duplex = duplexer2(new stream.Writable(), new stream.Readable());
+```
+
+Arguments
+
+* __options__ - an object specifying the regular `stream.Duplex` options, as
+ well as the properties described below.
+* __writable__ - a writable stream
+* __readable__ - a readable stream
+
+Options
+
+* __bubbleErrors__ - a boolean value that specifies whether to bubble errors
+ from the underlying readable/writable streams. Default is `true`.
+
+
+## License
+
+3-clause BSD. [A copy](./LICENSE) is included with the source.
+
+## Contact
+
+* GitHub ([deoxxa](http://github.com/deoxxa))
+* Twitter ([@deoxxa](http://twitter.com/deoxxa))
+* Email ([deoxxa@fknsrs.biz](mailto:deoxxa@fknsrs.biz))
diff --git a/node_modules/duplexer2/index.js b/node_modules/duplexer2/index.js
new file mode 100644
index 00000000..a40ece9a
--- /dev/null
+++ b/node_modules/duplexer2/index.js
@@ -0,0 +1,76 @@
+"use strict";
+
+var stream = require("readable-stream");
+
+function DuplexWrapper(options, writable, readable) {
+ if (typeof readable === "undefined") {
+ readable = writable;
+ writable = options;
+ options = null;
+ }
+
+ stream.Duplex.call(this, options);
+
+ if (typeof readable.read !== "function") {
+ readable = (new stream.Readable(options)).wrap(readable);
+ }
+
+ this._writable = writable;
+ this._readable = readable;
+ this._waiting = false;
+
+ var self = this;
+
+ writable.once("finish", function() {
+ self.end();
+ });
+
+ this.once("finish", function() {
+ writable.end();
+ });
+
+ readable.on("readable", function() {
+ if (self._waiting) {
+ self._waiting = false;
+ self._read();
+ }
+ });
+
+ readable.once("end", function() {
+ self.push(null);
+ });
+
+ if (!options || typeof options.bubbleErrors === "undefined" || options.bubbleErrors) {
+ writable.on("error", function(err) {
+ self.emit("error", err);
+ });
+
+ readable.on("error", function(err) {
+ self.emit("error", err);
+ });
+ }
+}
+
+DuplexWrapper.prototype = Object.create(stream.Duplex.prototype, {constructor: {value: DuplexWrapper}});
+
+DuplexWrapper.prototype._write = function _write(input, encoding, done) {
+ this._writable.write(input, encoding, done);
+};
+
+DuplexWrapper.prototype._read = function _read() {
+ var buf;
+ var reads = 0;
+ while ((buf = this._readable.read()) !== null) {
+ this.push(buf);
+ reads++;
+ }
+ if (reads === 0) {
+ this._waiting = true;
+ }
+};
+
+module.exports = function duplex2(options, writable, readable) {
+ return new DuplexWrapper(options, writable, readable);
+};
+
+module.exports.DuplexWrapper = DuplexWrapper;
diff --git a/node_modules/duplexer2/package.json b/node_modules/duplexer2/package.json
new file mode 100644
index 00000000..1ea8c1bd
--- /dev/null
+++ b/node_modules/duplexer2/package.json
@@ -0,0 +1,66 @@
+{
+ "_from": "duplexer2@~0.1.2",
+ "_id": "duplexer2@0.1.4",
+ "_inBundle": false,
+ "_integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=",
+ "_location": "/duplexer2",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "duplexer2@~0.1.2",
+ "name": "duplexer2",
+ "escapedName": "duplexer2",
+ "rawSpec": "~0.1.2",
+ "saveSpec": null,
+ "fetchSpec": "~0.1.2"
+ },
+ "_requiredBy": [
+ "/browserify",
+ "/module-deps",
+ "/stream-combiner2"
+ ],
+ "_resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz",
+ "_shasum": "8b12dab878c0d69e3e7891051662a32fc6bddcc1",
+ "_spec": "duplexer2@~0.1.2",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/browserify",
+ "author": {
+ "name": "Conrad Pankoff",
+ "email": "deoxxa@fknsrs.biz",
+ "url": "http://www.fknsrs.biz/"
+ },
+ "bugs": {
+ "url": "https://github.com/deoxxa/duplexer2/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "readable-stream": "^2.0.2"
+ },
+ "deprecated": false,
+ "description": "Like duplexer but using streams3",
+ "devDependencies": {
+ "mocha": "^2.2.5"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/deoxxa/duplexer2#readme",
+ "keywords": [
+ "duplex",
+ "duplexer",
+ "stream",
+ "stream3",
+ "join",
+ "combine"
+ ],
+ "license": "BSD-3-Clause",
+ "name": "duplexer2",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/deoxxa/duplexer2.git"
+ },
+ "scripts": {
+ "test": "mocha -R tap"
+ },
+ "version": "0.1.4"
+}
diff --git a/node_modules/duration/.editorconfig b/node_modules/duration/.editorconfig
new file mode 100644
index 00000000..c24a6cd1
--- /dev/null
+++ b/node_modules/duration/.editorconfig
@@ -0,0 +1,14 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+
+[{*.json,*.yml}]
+indent_style = space
+indent_size = 2
diff --git a/node_modules/duration/CHANGELOG.md b/node_modules/duration/CHANGELOG.md
new file mode 100644
index 00000000..4d6edf68
--- /dev/null
+++ b/node_modules/duration/CHANGELOG.md
@@ -0,0 +1,24 @@
+# Change Log
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+
+## [0.2.2](https://github.com/medikoo/duration/compare/v0.2.1...v0.2.2) (2018-10-31)
+
+
+### Bug Fixes
+
+* fix duration.day calculation for uneven months ([c63bcfa](https://github.com/medikoo/duration/commit/c63bcfa))
+
+
+
+
+
+## [0.2.1](https://github.com/medikoo/duration/compare/v0.2.0...v0.2.1) (2018-08-31)
+
+- Fix spelling LICENCE - LICENSE (Addresses https://github.com/medikoo/duration/issues/5)
+- Reconfigure to use eslint
+
+## Old changelog
+
+See `CHANGES`
diff --git a/node_modules/duration/CHANGES b/node_modules/duration/CHANGES
new file mode 100644
index 00000000..4de9ffa7
--- /dev/null
+++ b/node_modules/duration/CHANGES
@@ -0,0 +1,24 @@
+-- For new changelog see CHANGELOG.md
+
+v0.2.0 -- 2014.04.27
+* Move main module from lib/duration.js to index.js
+* Remove Makefile (it's cross environment package)
+* Update to use latest versions of dependencies
+
+v0.1.4 -- 2013.01.03
+* Threshold option for default toString modes
+
+v0.1.3 -- 2013.01.02
+* Fix documentation of npm install command
+
+v0.1.2 -- 2012.11.10
+* Fix handling of negative durations (when to is older than from)
+
+v0.1.1 -- 2012.10.04
+Maintanance
+* Rename lib/index.js to lib/duration.js
+* Lint cleanup
+* Upgrade es5-ext
+
+v0.1.0 -- 2012.05.28
+* Initial version (derived from es5-ext project)
diff --git a/node_modules/duration/LICENSE b/node_modules/duration/LICENSE
new file mode 100644
index 00000000..381b09ef
--- /dev/null
+++ b/node_modules/duration/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2012-2018, Mariusz Nowak, @medikoo, medikoo.com
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/duration/README.md b/node_modules/duration/README.md
new file mode 100644
index 00000000..835fec36
--- /dev/null
+++ b/node_modules/duration/README.md
@@ -0,0 +1,187 @@
+[![*nix build status][nix-build-image]][nix-build-url]
+[![Windows build status][win-build-image]][win-build-url]
+![Transpilation status][transpilation-image]
+[![npm version][npm-image]][npm-url]
+
+# duration - Time duration utilities
+
+_Formerly part of [es5-ext](https://github.com/medikoo/es5-ext) project._
+
+## Installation
+
+### Node.js
+
+ $ npm install duration
+
+### Browser
+
+Can be bundled for browser with help of [modules-webmake](https://github.com/medikoo/modules-webmake)
+
+## Example usage:
+
+```javascript
+var Duration = require("duration");
+
+var duration = new Duration(new Date(2000, 6, 7), new Date(2010, 8, 13, 3, 23, 8, 456));
+
+console.log("Years: ", duration.years);
+console.log("Months: ", duration.months);
+console.log("Days: ", duration.days);
+console.log("Hours: ", duration.hours);
+console.log("Minutes: ", duration.minutes);
+console.log("Seconds: ", duration.seconds);
+console.log("Milliseconds: ", duration.milliseconds);
+
+console.log("Trailing months: ", duration.month);
+console.log("Trailing days: ", duration.day);
+console.log("Trailing hours: ", duration.hour);
+console.log("Trailing minutes: ", duration.minute);
+console.log("Trailing seconds: ", duration.second);
+console.log("Trailing milliseconds: ", duration.millisecond);
+
+console.log("Default string representation: ", duration.toString());
+console.log("Alternative string representation: ", duration.toString(1));
+console.log("Custom string representation: ", duration.toString("H: %Hs m: %M"));
+```
+
+Output:
+
+```
+Years: 10
+Months: 122
+Days: 3720
+Hours: 89283
+Minutes: 5357003
+Seconds: 321420188
+Milliseconds: 321420188456
+Trailing months: 2
+Trailing days: 6
+Trailing hours: 3
+Trailing minutes: 23
+Trailing seconds: 8
+Trailing milliseconds: 456
+Default string representation: 10y 2m 6d 03:23:08.456
+Alternative string representation: 10y 2m 6d 3h 23m 8s 456ms
+Custom string representation: H: 89283 m: 23
+```
+
+## Duration(from[, to])
+
+Main module is both constructor and factory method, and can be used either way.
+`from` and `to` are expected to be JavaScript Date objects. `to` is optional, and if not provided it defaults to current time.
+
+## Duration.prototype properties
+
+### years
+
+Returns full years of the duration
+
+### months
+
+Returns full months of the duration
+
+### days
+
+Returns full days of the duration
+
+### hours
+
+Returns full hours of the duration
+
+### seconds
+
+Returns full seconds of the duration
+
+### minutes
+
+Returns full minutes of the duration
+
+### milliseconds
+
+Returns milliseconds of the duration
+
+### year
+
+Same as `years`. Returns full years of the duration
+
+### month
+
+Returns trailing months of the duration
+
+### day
+
+Returns trailing days of the duration
+
+### hour
+
+Returns trailing hours of the duration
+
+### minute
+
+Returns trailing minutes of the duration
+
+### second
+
+Returns trailing seconds of the duration
+
+### millisecond
+
+Returns trailing seconds of the duration
+
+## valueOf()
+
+Same as `milliseconds`. Returns milliseconds of the duration
+
+## toString([mode[, threshold]])
+
+Returns readable representation of the duration.
+When invoked without arguments (defaults to _mode=0_), returns as:
+
+ 10y 2m 6d 03:23:08.456
+
+When invoked with mode `1`, returns alternative representation:
+
+ 10y 2m 6d 3h 23m 8s 456ms
+
+Representation returned by default modes can be customized with threshold setting that trims lowest units:
+
+```javascript
+duration.toString(); // 10y 2m 6d 03:23:08.456
+duration.toString(0, 1); // 10y 2m 6d 03:23:08
+duration.toString(0, 2); // 10y 2m 6d 03:23
+
+duration.toString(1); // 10y 2m 6d 3h 23m 8s 456ms
+duration.toString(1, 1); // 10y 2m 6d 3h 23m 8s
+duration.toString(1, 2); // 10y 2m 6d 3h 23m
+```
+
+## toString(format)
+
+When invoked with string, formats the duration according to given pattern, where:
+
+- `%y` - `duration.year`
+- `%m` - `duration.month`
+- `%d` - `duration.day`
+- `%H` - `duration.hour`
+- `%M` - `duration.minute`
+- `%S` - `duration.second`
+- `%L` - `duration.millisecond`
+- `%ms` - `duration.months`
+- `%ds` - `duration.days`
+- `%Hs` - `duration.hours`
+- `%Ms` - `duration.minutes`
+- `%Ss` - `duration.seconds`
+- `%Ls` - `duration.milliseconds`
+- `%sign` - If duration is negative outputs `-` otherwise empty string
+
+## Tests
+
+ $ npm test
+
+[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/duration/branches/master/shields_badge.svg
+[nix-build-url]: https://semaphoreci.com/medikoo-org/duration
+[win-build-image]: https://ci.appveyor.com/api/projects/status/nt9c72n1ay9coree?svg=true
+[win-build-url]: https://ci.appveyor.com/project/medikoo/duration
+[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg
+[npm-image]: https://img.shields.io/npm/v/duration.svg
+[npm-url]: https://www.npmjs.com/package/duration
diff --git a/node_modules/duration/index.js b/node_modules/duration/index.js
new file mode 100644
index 00000000..b8293ed8
--- /dev/null
+++ b/node_modules/duration/index.js
@@ -0,0 +1,175 @@
+"use strict";
+
+var d = require("d")
+ , pad = require("es5-ext/number/#/pad")
+ , date = require("es5-ext/date/valid-date")
+ , daysInMonth = require("es5-ext/date/#/days-in-month")
+ , copy = require("es5-ext/date/#/copy")
+ , dfloor = require("es5-ext/date/#/floor-day")
+ , mfloor = require("es5-ext/date/#/floor-month")
+ , yfloor = require("es5-ext/date/#/floor-year")
+ , toInteger = require("es5-ext/number/to-integer")
+ , toPosInt = require("es5-ext/number/to-pos-integer")
+ , isValue = require("es5-ext/object/is-value");
+
+var abs = Math.abs, format, toPrimitive, getYear, Duration, getCalcData;
+
+format = require("es5-ext/string/format-method")({
+ y: function () { return String(abs(this.year)); },
+ m: function () { return pad.call(abs(this.month), 2); },
+ d: function () { return pad.call(abs(this.day), 2); },
+ H: function () { return pad.call(abs(this.hour), 2); },
+ M: function () { return pad.call(abs(this.minute), 2); },
+ S: function () { return pad.call(abs(this.second), 2); },
+ L: function () { return pad.call(abs(this.millisecond), 3); },
+
+ ms: function () { return String(abs(this.months)); },
+ ds: function () { return String(abs(this.days)); },
+ Hs: function () { return String(abs(this.hours)); },
+ Ms: function () { return String(abs(this.minutes)); },
+ Ss: function () { return String(abs(this.seconds)); },
+ Ls: function () { return String(abs(this.milliseconds)); },
+
+ sign: function () { return this.to < this.from ? "-" : ""; }
+});
+
+getCalcData = function (duration) {
+ return duration.to < duration.from
+ ? { to: duration.from, from: duration.to, sign: -1 }
+ : { to: duration.to, from: duration.from, sign: 1 };
+};
+
+Duration = module.exports = function (from, to) {
+ // Make it both constructor and factory
+ if (!(this instanceof Duration)) return new Duration(from, to);
+
+ this.from = date(from);
+ this.to = isValue(to) ? date(to) : new Date();
+};
+
+Duration.prototype = Object.create(Object.prototype, {
+ valueOf: d((toPrimitive = function () { return this.to - this.from; })),
+ millisecond: d.gs(function () { return this.milliseconds % 1000; }),
+ second: d.gs(function () { return this.seconds % 60; }),
+ minute: d.gs(function () { return this.minutes % 60; }),
+ hour: d.gs(function () { return this.hours % 24; }),
+ day: d.gs(function () {
+ var data = getCalcData(this);
+ var toDays = data.to.getDate(), fromDays = data.from.getDate();
+ var isToLater =
+ data.to - dfloor.call(copy.call(data.to)) >=
+ data.from - dfloor.call(copy.call(data.from));
+ var result;
+ if (toDays > fromDays) {
+ result = toDays - fromDays;
+ if (!isToLater) --result;
+ return data.sign * result;
+ }
+ if (toDays === fromDays && isToLater) {
+ return 0;
+ }
+ result = isToLater ? toDays : toDays - 1;
+ result += daysInMonth.call(data.from) - data.from.getDate();
+ return data.sign * result;
+ }),
+ month: d.gs(function () {
+ var data = getCalcData(this);
+ return (
+ data.sign *
+ (((12 - data.from.getMonth() + data.to.getMonth()) % 12) -
+ (data.from - mfloor.call(copy.call(data.from)) >
+ data.to - mfloor.call(copy.call(data.to))))
+ );
+ }),
+ year: d.gs(
+ (getYear = function () {
+ var data = getCalcData(this);
+ return (
+ data.sign *
+ (data.to.getFullYear() -
+ data.from.getFullYear() -
+ (data.from - yfloor.call(copy.call(data.from)) >
+ data.to - yfloor.call(copy.call(data.to))))
+ );
+ })
+ ),
+
+ milliseconds: d.gs(toPrimitive, null),
+ seconds: d.gs(function () { return toInteger(this.valueOf() / 1000); }),
+ minutes: d.gs(function () { return toInteger(this.valueOf() / (1000 * 60)); }),
+ hours: d.gs(function () { return toInteger(this.valueOf() / (1000 * 60 * 60)); }),
+ days: d.gs(function () { return toInteger(this.valueOf() / (1000 * 60 * 60 * 24)); }),
+ months: d.gs(function () {
+ var data = getCalcData(this);
+ return (
+ data.sign *
+ ((data.to.getFullYear() - data.from.getFullYear()) * 12 +
+ data.to.getMonth() -
+ data.from.getMonth() -
+ (data.from - mfloor.call(copy.call(data.from)) >
+ data.to - mfloor.call(copy.call(data.to))))
+ );
+ }),
+ years: d.gs(getYear),
+
+ _resolveSign: d(function (isNonZero) {
+ if (!isNonZero) return "";
+ return this.to < this.from ? "-" : "";
+ }),
+ _toStringDefaultDate: d(function (threshold, s, isNonZero) {
+ if (!this.days && threshold < 0) return this._resolveSign(isNonZero) + s;
+ if (threshold-- <= 0) s = abs((isNonZero = this.day)) + "d" + (s ? " " : "") + s;
+ if (!this.months && threshold < 0) return this._resolveSign(isNonZero) + s;
+ if (threshold-- <= 0) s = abs((isNonZero = this.month)) + "m" + (s ? " " : "") + s;
+ if (this.years || threshold >= 0) {
+ s = abs((isNonZero = this.year)) + "y" + (s ? " " : "") + s;
+ }
+ return this._resolveSign(isNonZero) + s;
+ }),
+ _toStringDefault: d(function (threshold) {
+ var s = "", isNonZero;
+ if (threshold-- <= 0) s += "." + pad.call(abs((isNonZero = this.millisecond)), 3);
+ if (!this.seconds && threshold < 0) return this._resolveSign(isNonZero) + s;
+ if (threshold-- <= 0) {
+ isNonZero = this.second;
+ s = (this.minutes ? pad.call(abs(isNonZero), 2) : abs(isNonZero)) + s;
+ }
+ if (!this.minutes && threshold < 0) return this._resolveSign(isNonZero) + s;
+ if (threshold-- <= 0) {
+ isNonZero = this.minute;
+ s =
+ (this.hours || s ? pad.call(abs(isNonZero), 2) : abs(isNonZero)) +
+ (s ? ":" : "") +
+ s;
+ }
+ if (!this.hours && threshold < 0) return this._resolveSign(isNonZero) + s;
+ if (threshold-- <= 0) s = pad.call(abs((isNonZero = this.hour)), 2) + (s ? ":" : "") + s;
+ return this._toStringDefaultDate(threshold, s, isNonZero);
+ }),
+ _toString1: d(function (threshold) {
+ var tokens = [], isNonZero;
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.millisecond)) + "ms");
+ if (!this.seconds && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.second)) + "s");
+ if (!this.minutes && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.minute)) + "m");
+ if (!this.hours && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.hour)) + "h");
+ if (!this.days && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.day)) + "d");
+ if (!this.months && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ if (threshold-- <= 0) tokens.unshift(abs((isNonZero = this.month)) + "m");
+ if (!this.years && threshold < 0) return this._resolveSign(isNonZero) + tokens.join(" ");
+ tokens.unshift(abs((isNonZero = this.year)) + "y");
+ return this._resolveSign(isNonZero) + tokens.join(" ");
+ }),
+ toString: d(function (pattern/*, threshold*/) {
+ var threshold;
+ if (!isValue(pattern)) pattern = 0;
+ if (isNaN(pattern)) return format.call(this, pattern);
+ pattern = Number(pattern);
+ threshold = toPosInt(arguments[1]);
+ if (pattern === 1) return this._toString1(threshold);
+ return this._toStringDefault(threshold);
+ })
+});
diff --git a/node_modules/duration/package.json b/node_modules/duration/package.json
new file mode 100644
index 00000000..147799dd
--- /dev/null
+++ b/node_modules/duration/package.json
@@ -0,0 +1,79 @@
+{
+ "_from": "duration@^0.2.0",
+ "_id": "duration@0.2.2",
+ "_inBundle": false,
+ "_integrity": "sha512-06kgtea+bGreF5eKYgI/36A6pLXggY7oR4p1pq4SmdFBn1ReOL5D8RhG64VrqfTTKNucqqtBAwEj8aB88mcqrg==",
+ "_location": "/duration",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "duration@^0.2.0",
+ "name": "duration",
+ "escapedName": "duration",
+ "rawSpec": "^0.2.0",
+ "saveSpec": null,
+ "fetchSpec": "^0.2.0"
+ },
+ "_requiredBy": [
+ "/cucumber"
+ ],
+ "_resolved": "https://registry.npmjs.org/duration/-/duration-0.2.2.tgz",
+ "_shasum": "ddf149bc3bc6901150fe9017111d016b3357f529",
+ "_spec": "duration@^0.2.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/cucumber",
+ "author": {
+ "name": "Mariusz Nowak",
+ "email": "medyk@medikoo.com",
+ "url": "http://www.medikoo.com/"
+ },
+ "bugs": {
+ "url": "https://github.com/medikoo/duration/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "~0.10.46"
+ },
+ "deprecated": false,
+ "description": "Time duration utilities",
+ "devDependencies": {
+ "eslint": "^5.8",
+ "eslint-config-medikoo-es5": "^1.7.2",
+ "tad": "~0.2.8"
+ },
+ "eslintConfig": {
+ "extends": "medikoo-es5",
+ "root": true,
+ "rules": {
+ "consistent-return": "off",
+ "id-length": "off"
+ },
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines": "off",
+ "max-statements": "off"
+ }
+ }
+ ]
+ },
+ "homepage": "https://github.com/medikoo/duration#readme",
+ "keywords": [
+ "date",
+ "duration",
+ "time"
+ ],
+ "license": "ISC",
+ "name": "duration",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/medikoo/duration.git"
+ },
+ "scripts": {
+ "lint": "eslint --ignore-path=.gitignore .",
+ "test": "node ./node_modules/tad/bin/tad"
+ },
+ "version": "0.2.2"
+}
diff --git a/node_modules/duration/test/index.js b/node_modules/duration/test/index.js
new file mode 100644
index 00000000..b56478b1
--- /dev/null
+++ b/node_modules/duration/test/index.js
@@ -0,0 +1,664 @@
+"use strict";
+
+var copy = require("es5-ext/date/#/copy");
+
+module.exports = function (t) {
+ var d1 = new Date(Date.UTC(2001, 1, 2, 1, 1, 1, 1)), d, d2;
+
+ return {
+ "Second date is optional": function (a) {
+ var d3, m;
+ d2 = new Date();
+ d = t(d1);
+ d3 = new Date();
+ a.ok((m = d.milliseconds) >= t(d1, d2).milliseconds && m <= t(d1, d3).milliseconds);
+ },
+ "Milliseconds": function (a) {
+ // 11 milliseconds
+ d2 = copy.call(d1);
+ d2.setMilliseconds(d2.getMilliseconds() + 11);
+
+ d = t(d1, d2);
+ a(d.milliseconds, 11, "Milliseconds");
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, 0, "Seconds");
+ a(d.minutes, 0, "Minutes");
+ a(d.hours, 0, "Hours");
+ a(d.days, 0, "Days");
+ a(d.months, 0, "Months");
+ a(d.years, 0, "Years");
+
+ a(d.millisecond, 11, "Trailing milliseconds");
+ a(d.second, 0, "Trailing seconds");
+ a(d.minute, 0, "Trailing minutes");
+ a(d.hour, 0, "Trailing hours");
+ a(d.day, 0, "Trailing days");
+ a(d.month, 0, "Trailing months");
+ a(d.year, 0, "Trailing years");
+
+ a(d.toString(), ".011", "String presentation");
+ a(d.toString(0, 0), ".011", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "0", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "0", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Threshold #7");
+ a(d.toString(1), "11ms", "String presentation #2");
+ a(d.toString(1, 0), "11ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "0s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "0m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .011.11.00.0.00.0.00.0.00.0.00.0.0 ", "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(d.milliseconds, -11, "Milliseconds: Negative");
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, 0, "Seconds: Negative");
+ a(d.minutes, 0, "Minutes: Negative");
+ a(d.hours, 0, "Hours: Negative");
+ a(d.days, 0, "Day: Negatives");
+ a(d.months, 0, "Months: Negative");
+ a(d.years, 0, "Years: Negative");
+
+ a(d.millisecond, -11, "Trailing milliseconds: Negative");
+ a(d.second, 0, "Trailing seconds: Negative");
+ a(d.minute, 0, "Trailing minutes: Negative");
+ a(d.hour, 0, "Trailing hours: Negative");
+ a(d.day, 0, "Trailing days: Negative");
+ a(d.month, 0, "Trailing months: Negative");
+ a(d.year, 0, "Trailing years: Negative");
+
+ a(d.toString(), "-.011", "String presentation: Negative");
+ a(d.toString(0, 0), "-.011", "String presentation: Negative: Threshold #0");
+ a(d.toString(0, 1), "0", "String presentation: Negative: Threshold #1");
+ a(d.toString(0, 2), "0", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Negative: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Negative: Threshold #7");
+ a(d.toString(1), "-11ms", "String presentation #2: Negative");
+ a(d.toString(1, 0), "-11ms", "String presentation #2: Negative: Threshold #0");
+ a(d.toString(1, 1), "0s", "String presentation #2: Negative: Threshold #1");
+ a(d.toString(1, 2), "0m", "String presentation #2: Negative: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.011.11.00.0.00.0.00.0.00.0.00.0.0 ", "String presentation (custom): Negative"
+ );
+ },
+ "Seconds": function (a) {
+ // 7 seconds 123 milliseconds
+ d2 = copy.call(d1);
+ d2.setMilliseconds(d2.getMilliseconds() + 123);
+ d2.setSeconds(d2.getSeconds() + 7);
+
+ d = t(d1, d2);
+ a(d.milliseconds, 7 * 1000 + 123, "Milliseconds");
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, 7, "Seconds");
+ a(d.minutes, 0, "Minutes");
+ a(d.hours, 0, "Hours");
+ a(d.days, 0, "Days");
+ a(d.months, 0, "Months");
+ a(d.years, 0, "Years");
+
+ a(d.millisecond, 123, "Trailing milliseconds");
+ a(d.second, 7, "Trailing seconds");
+ a(d.minute, 0, "Trailing minutes");
+ a(d.hour, 0, "Trailing hours");
+ a(d.day, 0, "Trailing days");
+ a(d.month, 0, "Trailing months");
+ a(d.year, 0, "Trailing years");
+
+ a(d.toString(), "7.123", "String presentation");
+ a(d.toString(0, 0), "7.123", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "7", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "0", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Threshold #7");
+ a(d.toString(1), "7s 123ms", "String presentation #2");
+ a(d.toString(1, 0), "7s 123ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "7s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "0m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .123." + (7 * 1000 + 123) + ".07.7.00.0.00.0.00.0.00.0.0 ",
+ "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(d.milliseconds, -(7 * 1000 + 123), "Milliseconds: Negative");
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, -7, "Seconds: Negative");
+ a(d.minutes, 0, "Minutes: Negative");
+ a(d.hours, 0, "Hours: Negative");
+ a(d.days, 0, "Days: Negative");
+ a(d.months, 0, "Months: Negative");
+ a(d.years, 0, "Years: Negative");
+
+ a(d.millisecond, -123, "Trailing milliseconds: Negative");
+ a(d.second, -7, "Trailing seconds: Negative");
+ a(d.minute, 0, "Trailing minutes: Negative");
+ a(d.hour, 0, "Trailing hours: Negative");
+ a(d.day, 0, "Trailing days: Negative");
+ a(d.month, 0, "Trailing months: Negative");
+ a(d.year, 0, "Trailing years: Negative");
+
+ a(d.toString(), "-7.123", "String presentation: Negative");
+ a(d.toString(0, 0), "-7.123", "String presentation: Negative: Threshold #0");
+ a(d.toString(0, 1), "-7", "String presentation: Negative: Threshold #1");
+ a(d.toString(0, 2), "0", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Negative: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Negative: Threshold #7");
+ a(d.toString(1), "-7s 123ms", "String presentation #2: Negative");
+ a(d.toString(1, 0), "-7s 123ms", "String presentation #2: Negative: Threshold #0");
+ a(d.toString(1, 1), "-7s", "String presentation #2: Negative: Threshold #1");
+ a(d.toString(1, 2), "0m", "String presentation #2: Negative: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.123." + (7 * 1000 + 123) + ".07.7.00.0.00.0.00.0.00.0.0 ",
+ "String presentation (custom): Negative"
+ );
+ },
+ "Minutes": function (a) {
+ // 7 minutes 12 seconds 123 milliseconds
+ d2 = copy.call(d1);
+ d2.setMilliseconds(d2.getMilliseconds() + 123);
+ d2.setSeconds(d2.getSeconds() + 12);
+ d2.setMinutes(d2.getMinutes() + 7);
+
+ d = t(d1, d2);
+ a(d.milliseconds, 7 * 60 * 1000 + 12 * 1000 + 123, "Milliseconds");
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, 7 * 60 + 12, "Seconds");
+ a(d.minutes, 7, "Minutes");
+ a(d.hours, 0, "Hours");
+ a(d.days, 0, "Days");
+ a(d.months, 0, "Months");
+ a(d.years, 0, "Years");
+
+ a(d.millisecond, 123, "Trailing milliseconds");
+ a(d.second, 12, "Trailing seconds");
+ a(d.minute, 7, "Trailing minutes");
+ a(d.hour, 0, "Trailing hours");
+ a(d.day, 0, "Trailing days");
+ a(d.month, 0, "Trailing months");
+ a(d.year, 0, "Trailing years");
+
+ a(d.toString(), "07:12.123", "String presentation");
+ a(d.toString(0, 0), "07:12.123", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "07:12", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "7", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Threshold #7");
+ a(d.toString(1), "7m 12s 123ms", "String presentation #2");
+ a(d.toString(1, 0), "7m 12s 123ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "7m 12s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "7m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .123." +
+ (7 * 60 * 1000 + 12 * 1000 + 123) +
+ ".12." +
+ (7 * 60 + 12) +
+ ".07.7.00.0.00.0.00.0.0 ",
+ "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(d.milliseconds, -(7 * 60 * 1000 + 12 * 1000 + 123), "Milliseconds: Negative");
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, -(7 * 60 + 12), "Seconds: Negative");
+ a(d.minutes, -7, "Minutes: Negative");
+ a(d.hours, 0, "Hours: Negative");
+ a(d.days, 0, "Days: Negative");
+ a(d.months, 0, "Months: Negative");
+ a(d.years, 0, "Years: Negative");
+
+ a(d.millisecond, -123, "Trailing milliseconds: Negative");
+ a(d.second, -12, "Trailing seconds: Negative");
+ a(d.minute, -7, "Trailing minutes: Negative");
+ a(d.hour, 0, "Trailing hours: Negative");
+ a(d.day, 0, "Trailing days: Negative");
+ a(d.month, 0, "Trailing months: Negative");
+ a(d.year, 0, "Trailing years: Negative");
+
+ a(d.toString(), "-07:12.123", "String presentation: Negative");
+ a(d.toString(0, 0), "-07:12.123", "String presentation: Negative: Threshold #0");
+ a(d.toString(0, 1), "-07:12", "String presentation: Negative: Threshold #1");
+ a(d.toString(0, 2), "-7", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "00", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Negative: Threshold #6");
+ a(d.toString(1), "-7m 12s 123ms", "String presentation #2: Negative");
+ a(d.toString(1, 0), "-7m 12s 123ms", "String presentation #2: Negative: Threshold #0");
+ a(d.toString(1, 1), "-7m 12s", "String presentation #2: Negative: Threshold #1");
+ a(d.toString(1, 2), "-7m", "String presentation #2: Negative: Threshold #2");
+ a(d.toString(1, 3), "0h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.123." +
+ (7 * 60 * 1000 + 12 * 1000 + 123) +
+ ".12." +
+ (7 * 60 + 12) +
+ ".07.7.00.0.00.0.00.0.0 ",
+ "String presentation (custom): Negative"
+ );
+ },
+ "Hours": function (a) {
+ // 4 hours 7 minutes 12 seconds 123 milliseconds
+ d2 = copy.call(d1);
+ d2.setMilliseconds(d2.getMilliseconds() + 123);
+ d2.setSeconds(d2.getSeconds() + 12);
+ d2.setMinutes(d2.getMinutes() + 7);
+ d2.setHours(d2.getHours() + 4);
+
+ d = t(d1, d2);
+ a(d.milliseconds, 4 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123, "Milliseconds");
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, 4 * 60 * 60 + 7 * 60 + 12, "Seconds");
+ a(d.minutes, 4 * 60 + 7, "Minutes");
+ a(d.hours, 4, "Hours");
+ a(d.days, 0, "Days");
+ a(d.months, 0, "Months");
+ a(d.years, 0, "Years");
+
+ a(d.millisecond, 123, "Trailing milliseconds");
+ a(d.second, 12, "Trailing seconds");
+ a(d.minute, 7, "Trailing minutes");
+ a(d.hour, 4, "Trailing hours");
+ a(d.day, 0, "Trailing days");
+ a(d.month, 0, "Trailing months");
+ a(d.year, 0, "Trailing years");
+
+ a(d.toString(), "04:07:12.123", "String presentation");
+ a(d.toString(0, 0), "04:07:12.123", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "04:07:12", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "04:07", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "04", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Threshold #7");
+ a(d.toString(1), "4h 7m 12s 123ms", "String presentation #2");
+ a(d.toString(1, 0), "4h 7m 12s 123ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "4h 7m 12s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "4h 7m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "4h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .123." +
+ (4 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123) +
+ ".12." +
+ (4 * 60 * 60 + 7 * 60 + 12) +
+ ".07." +
+ (4 * 60 + 7) +
+ ".04.4.00.0.00.0.0 ",
+ "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(
+ d.milliseconds, -(4 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123),
+ "Milliseconds: Negative"
+ );
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, -(4 * 60 * 60 + 7 * 60 + 12), "Seconds: Negative");
+ a(d.minutes, -(4 * 60 + 7), "Minutes: Negative");
+ a(d.hours, -4, "Hours: Negative");
+ a(d.days, 0, "Days: Negative");
+ a(d.months, 0, "Months: Negative");
+ a(d.years, 0, "Years: Negative");
+
+ a(d.millisecond, -123, "Trailing milliseconds: Negative");
+ a(d.second, -12, "Trailing seconds: Negative");
+ a(d.minute, -7, "Trailing minutes: Negative");
+ a(d.hour, -4, "Trailing hours: Negative");
+ a(d.day, 0, "Trailing days: Negative");
+ a(d.month, 0, "Trailing months: Negative");
+ a(d.year, 0, "Trailing years: Negative");
+
+ a(d.toString(), "-04:07:12.123", "String presentation: Negative");
+ a(d.toString(0, 0), "-04:07:12.123", "String presentation: Negative: Threshold #0");
+ a(d.toString(0, 1), "-04:07:12", "String presentation: Negative: Threshold #1");
+ a(d.toString(0, 2), "-04:07", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "-04", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "0d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Negative: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Negative: Threshold #7");
+ a(d.toString(1), "-4h 7m 12s 123ms", "String presentation #2: Negative");
+ a(
+ d.toString(1, 0), "-4h 7m 12s 123ms",
+ "String presentation #2: Negative: Threshold #0"
+ );
+ a(d.toString(1, 1), "-4h 7m 12s", "String presentation #2: Negative: Threshold #1");
+ a(d.toString(1, 2), "-4h 7m", "String presentation #2: Negative: Threshold #2");
+ a(d.toString(1, 3), "-4h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "0d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.123." +
+ (4 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123) +
+ ".12." +
+ (4 * 60 * 60 + 7 * 60 + 12) +
+ ".07." +
+ (4 * 60 + 7) +
+ ".04.4.00.0.00.0.0 ",
+ "String presentation (custom): Negative"
+ );
+ },
+ "Days": function (a) {
+ // 2 days 14 hours 7 minutes 12 seconds 123 milliseconds
+ d2 = copy.call(d1);
+ d2.setMilliseconds(d2.getMilliseconds() + 123);
+ d2.setSeconds(d2.getSeconds() + 12);
+ d2.setMinutes(d2.getMinutes() + 7);
+ d2.setHours(d2.getHours() + 14);
+ d2.setDate(d2.getDate() + 2);
+
+ d = t(d1, d2);
+ a(
+ d.milliseconds,
+ 2 * 24 * 60 * 60 * 1000 + 14 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123,
+ "Milliseconds"
+ );
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, 2 * 24 * 60 * 60 + 14 * 60 * 60 + 7 * 60 + 12, "Seconds");
+ a(d.minutes, 2 * 24 * 60 + 14 * 60 + 7, "Minutes");
+ a(d.hours, 2 * 24 + 14, "Hours");
+ a(d.days, 2, "Days");
+ a(d.months, 0, "Months");
+ a(d.years, 0, "Years");
+
+ a(d.millisecond, 123, "Trailing milliseconds");
+ a(d.second, 12, "Trailing seconds");
+ a(d.minute, 7, "Trailing minutes");
+ a(d.hour, 14, "Trailing hours");
+ a(d.day, 2, "Trailing days");
+ a(d.month, 0, "Trailing months");
+ a(d.year, 0, "Trailing years");
+
+ a(d.toString(), "2d 14:07:12.123", "String presentation");
+ a(d.toString(0, 0), "2d 14:07:12.123", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "2d 14:07:12", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "2d 14:07", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "2d 14", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "2d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Threshold #7");
+ a(d.toString(1), "2d 14h 7m 12s 123ms", "String presentation #2");
+ a(d.toString(1, 0), "2d 14h 7m 12s 123ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "2d 14h 7m 12s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "2d 14h 7m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "2d 14h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "2d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .123." +
+ (2 * 24 * 60 * 60 * 1000 +
+ 14 * 60 * 60 * 1000 +
+ 7 * 60 * 1000 +
+ 12 * 1000 +
+ 123) +
+ ".12." +
+ (2 * 24 * 60 * 60 + 14 * 60 * 60 + 7 * 60 + 12) +
+ ".07." +
+ (2 * 24 * 60 + 14 * 60 + 7) +
+ ".14." +
+ (2 * 24 + 14) +
+ ".02.2.00.0.0 ",
+ "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(
+ d.milliseconds,
+ -(2 * 24 * 60 * 60 * 1000 + 14 * 60 * 60 * 1000 + 7 * 60 * 1000 + 12 * 1000 + 123),
+ "Milliseconds: Negative"
+ );
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, -(2 * 24 * 60 * 60 + 14 * 60 * 60 + 7 * 60 + 12), "Seconds: Negative");
+ a(d.minutes, -(2 * 24 * 60 + 14 * 60 + 7), "Minutes: Negative");
+ a(d.hours, -(2 * 24 + 14), "Hours: Negative");
+ a(d.days, -2, "Days: Negative");
+ a(d.months, 0, "Months: Negative");
+ a(d.years, 0, "Years: Negative");
+
+ a(d.millisecond, -123, "Trailing milliseconds: Negative");
+ a(d.second, -12, "Trailing seconds: Negative");
+ a(d.minute, -7, "Trailing minutes: Negative");
+ a(d.hour, -14, "Trailing hours: Negative");
+ a(d.day, -2, "Trailing days: Negative");
+ a(d.month, 0, "Trailing months: Negative");
+ a(d.year, 0, "Trailing years: Negative");
+
+ a(d.toString(), "-2d 14:07:12.123", "String presentation: Negative");
+ a(d.toString(0, 0), "-2d 14:07:12.123", "String presentation: Negative: Threshold #0");
+ a(d.toString(0, 1), "-2d 14:07:12", "String presentation: Negative: Threshold #1");
+ a(d.toString(0, 2), "-2d 14:07", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "-2d 14", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "-2d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "0m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "0y", "String presentation: Negative: Threshold #6");
+ a(d.toString(0, 7), "0y", "String presentation: Negative: Threshold #7");
+ a(d.toString(1), "-2d 14h 7m 12s 123ms", "String presentation #2: Negative");
+ a(
+ d.toString(1, 0), "-2d 14h 7m 12s 123ms",
+ "String presentation #2: Negative: Threshold #0"
+ );
+ a(d.toString(1, 1), "-2d 14h 7m 12s", "String presentation #2: Negative: Threshold #1");
+ a(d.toString(1, 2), "-2d 14h 7m", "String presentation #2: Negative: Threshold #2");
+ a(d.toString(1, 3), "-2d 14h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "-2d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "0m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "0y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "0y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.123." +
+ (2 * 24 * 60 * 60 * 1000 +
+ 14 * 60 * 60 * 1000 +
+ 7 * 60 * 1000 +
+ 12 * 1000 +
+ 123) +
+ ".12." +
+ (2 * 24 * 60 * 60 + 14 * 60 * 60 + 7 * 60 + 12) +
+ ".07." +
+ (2 * 24 * 60 + 14 * 60 + 7) +
+ ".14." +
+ (2 * 24 + 14) +
+ ".02.2.00.0.0 ",
+ "String presentation (custom): Negative"
+ );
+ },
+ "Large duration": function (a) {
+ // Few years, few months
+ var days = 365 * 2 + 28 + 31;
+ d2 = new Date(Date.UTC(2003, 3, 2, 1, 1, 1, 1));
+
+ d = t(d1, d2);
+ a(d.milliseconds, days * 24 * 60 * 60 * 1000, "Milliseconds");
+ a(d.valueOf(), d.milliseconds, "Value");
+ a(d.seconds, days * 24 * 60 * 60, "Seconds");
+ a(d.minutes, days * 24 * 60, "Minutes");
+ a(d.hours, days * 24, "Hours");
+ a(d.days, days, "Days");
+ a(d.months, 26, "Months");
+ a(d.years, 2, "Years");
+
+ a(d.millisecond, 0, "Trailing milliseconds");
+ a(d.second, 0, "Trailing seconds");
+ a(d.minute, 0, "Trailing minutes");
+ a(d.hour, 0, "Trailing hours");
+ a(d.day, 0, "Trailing days");
+ a(d.month, 2, "Trailing months");
+ a(d.year, 2, "Trailing years");
+
+ a(d.toString(), "2y 2m 0d 00:00:00.000", "String presentation");
+ a(d.toString(0, 0), "2y 2m 0d 00:00:00.000", "String presentation: Threshold #0");
+ a(d.toString(0, 1), "2y 2m 0d 00:00:00", "String presentation: Threshold #1");
+ a(d.toString(0, 2), "2y 2m 0d 00:00", "String presentation: Threshold #2");
+ a(d.toString(0, 3), "2y 2m 0d 00", "String presentation: Threshold #3");
+ a(d.toString(0, 4), "2y 2m 0d", "String presentation: Threshold #4");
+ a(d.toString(0, 5), "2y 2m", "String presentation: Threshold #5");
+ a(d.toString(0, 6), "2y", "String presentation: Threshold #6");
+ a(d.toString(0, 7), "2y", "String presentation: Threshold #7");
+ a(d.toString(1), "2y 2m 0d 0h 0m 0s 0ms", "String presentation #2");
+ a(d.toString(1, 0), "2y 2m 0d 0h 0m 0s 0ms", "String presentation #2: Threshold #0");
+ a(d.toString(1, 1), "2y 2m 0d 0h 0m 0s", "String presentation #2: Threshold #1");
+ a(d.toString(1, 2), "2y 2m 0d 0h 0m", "String presentation #2: Threshold #2");
+ a(d.toString(1, 3), "2y 2m 0d 0h", "String presentation #2: Threshold #3");
+ a(d.toString(1, 4), "2y 2m 0d", "String presentation #2: Threshold #4");
+ a(d.toString(1, 5), "2y 2m", "String presentation #2: Threshold #5");
+ a(d.toString(1, 6), "2y", "String presentation #2: Threshold #6");
+ a(d.toString(1, 7), "2y", "String presentation #2: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " .000." +
+ days * 24 * 60 * 60 * 1000 +
+ ".00." +
+ days * 24 * 60 * 60 +
+ ".00." +
+ days * 24 * 60 +
+ ".00." +
+ days * 24 +
+ ".00." +
+ days +
+ ".02." +
+ 26 +
+ ".2 ",
+ "String presentation (custom)"
+ );
+
+ d = t(d2, d1);
+ a(d.milliseconds, -(days * 24 * 60 * 60 * 1000), "Milliseconds: Negative");
+ a(d.valueOf(), d.milliseconds, "Value: Negative");
+ a(d.seconds, -(days * 24 * 60 * 60), "Seconds: Negative");
+ a(d.minutes, -(days * 24 * 60), "Minutes: Negative");
+ a(d.hours, -(days * 24), "Hours: Negative");
+ a(d.days, -days, "Days: Negative");
+ a(d.months, -26, "Months: Negative");
+ a(d.years, -2, "Years: Negative");
+
+ a(d.millisecond, 0, "Trailing milliseconds: Negative");
+ a(d.second, 0, "Trailing seconds: Negative");
+ a(d.minute, 0, "Trailing minutes: Negative");
+ a(d.hour, 0, "Trailing hours: Negative");
+ a(d.day, 0, "Trailing days: Negative");
+ a(d.month, -2, "Trailing months: Negative");
+ a(d.year, -2, "Trailing years: Negative");
+
+ a(d.toString(), "-2y 2m 0d 00:00:00.000", "String presentation: Negative");
+ a(
+ d.toString(0, 0), "-2y 2m 0d 00:00:00.000",
+ "String presentation: Negative: Threshold #0"
+ );
+ a(
+ d.toString(0, 1), "-2y 2m 0d 00:00:00",
+ "String presentation: Negative: Threshold #1"
+ );
+ a(d.toString(0, 2), "-2y 2m 0d 00:00", "String presentation: Negative: Threshold #2");
+ a(d.toString(0, 3), "-2y 2m 0d 00", "String presentation: Negative: Threshold #3");
+ a(d.toString(0, 4), "-2y 2m 0d", "String presentation: Negative: Threshold #4");
+ a(d.toString(0, 5), "-2y 2m", "String presentation: Negative: Threshold #5");
+ a(d.toString(0, 6), "-2y", "String presentation: Negative: Threshold #6");
+ a(d.toString(0, 7), "-2y", "String presentation: Negative: Threshold #7");
+ a(d.toString(1), "-2y 2m 0d 0h 0m 0s 0ms", "String presentation #2: Negative");
+ a(
+ d.toString(1, 0), "-2y 2m 0d 0h 0m 0s 0ms",
+ "String presentation #2: Negative: Threshold #0"
+ );
+ a(
+ d.toString(1, 1), "-2y 2m 0d 0h 0m 0s",
+ "String presentation #2: Negative: Threshold #1"
+ );
+ a(
+ d.toString(1, 2), "-2y 2m 0d 0h 0m",
+ "String presentation #2: Negative: Threshold #2"
+ );
+ a(d.toString(1, 3), "-2y 2m 0d 0h", "String presentation #2: Negative: Threshold #3");
+ a(d.toString(1, 4), "-2y 2m 0d", "String presentation #2: Negative: Threshold #4");
+ a(d.toString(1, 5), "-2y 2m", "String presentation #2: Negative: Threshold #5");
+ a(d.toString(1, 6), "-2y", "String presentation #2: Negative: Threshold #6");
+ a(d.toString(1, 7), "-2y", "String presentation #2: Negative: Threshold #7");
+ a(
+ d.toString(" %sign.%L.%Ls.%S.%Ss.%M.%Ms.%H.%Hs.%d.%ds.%m.%ms.%y "),
+ " -.000." +
+ days * 24 * 60 * 60 * 1000 +
+ ".00." +
+ days * 24 * 60 * 60 +
+ ".00." +
+ days * 24 * 60 +
+ ".00." +
+ days * 24 +
+ ".00." +
+ days +
+ ".02." +
+ 26 +
+ ".2 ",
+ "String presentation (custom): Negative"
+ );
+ },
+ "Special case": function (t, a) {
+ var dateFrom = new Date(1540999566129);
+ var dateTo = new Date(1577750400000);
+ d = t(dateFrom, dateTo);
+ a(d.day, 30);
+ }
+ };
+};
diff --git a/node_modules/electron-to-chromium/CHANGELOG.md b/node_modules/electron-to-chromium/CHANGELOG.md
new file mode 100644
index 00000000..1669c341
--- /dev/null
+++ b/node_modules/electron-to-chromium/CHANGELOG.md
@@ -0,0 +1,14 @@
+v1.3.0
+ * Additionally include chromium to electron mappings
+
+v1.2.0
+ * versions and full-versions are now separately importable.
+
+v1.1.0
+ * Both electronToChromium and electronToBrowserList now can accept strings as well as numbers.
+
+v1.0.1
+ Update documentation
+
+v1.0.0
+ Inititial release
diff --git a/node_modules/electron-to-chromium/LICENSE b/node_modules/electron-to-chromium/LICENSE
new file mode 100644
index 00000000..6c7b614d
--- /dev/null
+++ b/node_modules/electron-to-chromium/LICENSE
@@ -0,0 +1,5 @@
+Copyright 2018 Kilian Valkhof
+
+Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/electron-to-chromium/README.md b/node_modules/electron-to-chromium/README.md
new file mode 100644
index 00000000..a96ddf12
--- /dev/null
+++ b/node_modules/electron-to-chromium/README.md
@@ -0,0 +1,186 @@
+### Made by [@kilianvalkhof](https://twitter.com/kilianvalkhof)
+
+#### Other projects:
+
+- 💻 [Polypane](https://polypane.app) - Develop responsive websites and apps twice as fast on multiple screens at once
+- 🖌️ [Superposition](https://superposition.design) - Kickstart your design system by extracting design tokens from your website
+- 🗒️ [FromScratch](https://fromscratch.rocks) - A smart but simple autosaving scratchpad
+
+---
+
+# Electron-to-Chromium [](https://www.npmjs.com/package/electron-to-chromium) [](https://travis-ci.org/Kilian/electron-to-chromium) [](https://www.npmjs.com/package/electron-to-chromium) [](https://codecov.io/gh/Kilian/electron-to-chromium)[](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_shield)
+
+This repository provides a mapping of Electron versions to the Chromium version that it uses.
+
+This package is used in [Browserslist](https://github.com/ai/browserslist), so you can use e.g. `electron >= 1.4` in [Autoprefixer](https://github.com/postcss/autoprefixer), [Stylelint](https://github.com/stylelint/stylelint), [babel-preset-env](https://github.com/babel/babel-preset-env) and [eslint-plugin-compat](https://github.com/amilajack/eslint-plugin-compat).
+
+**Supported by:**
+
+
+
+
+
+
+## Install
+Install using `npm install electron-to-chromium`.
+
+## Usage
+To include Electron-to-Chromium, require it:
+
+```js
+var e2c = require('electron-to-chromium');
+```
+
+### Properties
+The Electron-to-Chromium object has 4 properties to use:
+
+#### `versions`
+An object of key-value pairs with a _major_ Electron version as the key, and the corresponding major Chromium version as the value.
+
+```js
+var versions = e2c.versions;
+console.log(versions['1.4']);
+// returns "53"
+```
+
+#### `fullVersions`
+An object of key-value pairs with a Electron version as the key, and the corresponding full Chromium version as the value.
+
+```js
+var versions = e2c.fullVersions;
+console.log(versions['1.4.11']);
+// returns "53.0.2785.143"
+```
+
+#### `chromiumVersions`
+An object of key-value pairs with a _major_ Chromium version as the key, and the corresponding major Electron version as the value.
+
+```js
+var versions = e2c.chromiumVersions;
+console.log(versions['54']);
+// returns "1.4"
+```
+
+#### `fullChromiumVersions`
+An object of key-value pairs with a Chromium version as the key, and an array of the corresponding major Electron versions as the value.
+
+```js
+var versions = e2c.fullChromiumVersions;
+console.log(versions['54.0.2840.101']);
+// returns ["1.5.1", "1.5.0"]
+```
+### Functions
+
+#### `electronToChromium(query)`
+Arguments:
+* Query: string or number, required. A major or full Electron version.
+
+A function that returns the corresponding Chromium version for a given Electron function. Returns a string.
+
+If you provide it with a major Electron version, it will return a major Chromium version:
+
+```js
+var chromeVersion = e2c.electronToChromium('1.4');
+// chromeVersion is "53"
+```
+
+If you provide it with a full Electron version, it will return the full Chromium version.
+
+```js
+var chromeVersion = e2c.electronToChromium('1.4.11');
+// chromeVersion is "53.0.2785.143"
+```
+
+If a query does not match a Chromium version, it will return `undefined`.
+
+```js
+var chromeVersion = e2c.electronToChromium('9000');
+// chromeVersion is undefined
+```
+
+#### `chromiumToElectron(query)`
+Arguments:
+* Query: string or number, required. A major or full Chromium version.
+
+Returns a string with the corresponding Electron version for a given Chromium query.
+
+If you provide it with a major Chromium version, it will return a major Electron version:
+
+```js
+var electronVersion = e2c.chromiumToElectron('54');
+// electronVersion is "1.4"
+```
+
+If you provide it with a full Chrome version, it will return an array of full Electron versions.
+
+```js
+var electronVersions = e2c.chromiumToElectron('56.0.2924.87');
+// electronVersions is ["1.6.3", "1.6.2", "1.6.1", "1.6.0"]
+```
+
+If a query does not match an Electron version, it will return `undefined`.
+
+```js
+var electronVersion = e2c.chromiumToElectron('10');
+// electronVersion is undefined
+```
+
+#### `electronToBrowserList(query)` **DEPRECATED**
+Arguments:
+* Query: string or number, required. A major Electron version.
+
+_**Deprecated**: Browserlist already includes electron-to-chromium._
+
+A function that returns a [Browserslist](https://github.com/ai/browserslist) query that matches the given major Electron version. Returns a string.
+
+If you provide it with a major Electron version, it will return a Browserlist query string that matches the Chromium capabilities:
+
+```js
+var query = e2c.electronToBrowserList('1.4');
+// query is "Chrome >= 53"
+```
+
+If a query does not match a Chromium version, it will return `undefined`.
+
+```js
+var query = e2c.electronToBrowserList('9000');
+// query is undefined
+```
+
+### Importing just versions, fullVersions, chromiumVersions and fullChromiumVersions
+All lists can be imported on their own, if file size is a concern.
+
+#### `versions`
+
+```js
+var versions = require('electron-to-chromium/versions');
+```
+
+#### `fullVersions`
+
+```js
+var fullVersions = require('electron-to-chromium/full-versions');
+```
+
+#### `chromiumVersions`
+
+```js
+var chromiumVersions = require('electron-to-chromium/chromium-versions');
+```
+
+#### `fullChromiumVersions`
+
+```js
+var fullChromiumVersions = require('electron-to-chromium/full-chromium-versions');
+```
+
+## Updating
+This package will be updated with each new Electron release.
+
+To update the list, run `npm run build.js`. Requires internet access as it downloads from the canonical list of Electron versions.
+
+To verify correct behaviour, run `npm test`.
+
+
+## License
+[](https://app.fossa.io/projects/git%2Bgithub.com%2FKilian%2Felectron-to-chromium?ref=badge_large)
diff --git a/node_modules/electron-to-chromium/chromium-versions.js b/node_modules/electron-to-chromium/chromium-versions.js
new file mode 100644
index 00000000..a5bb7317
--- /dev/null
+++ b/node_modules/electron-to-chromium/chromium-versions.js
@@ -0,0 +1,40 @@
+module.exports = {
+ "39": "0.20",
+ "40": "0.21",
+ "41": "0.21",
+ "42": "0.25",
+ "43": "0.27",
+ "44": "0.30",
+ "45": "0.31",
+ "47": "0.36",
+ "49": "0.37",
+ "50": "1.1",
+ "51": "1.2",
+ "52": "1.3",
+ "53": "1.4",
+ "54": "1.4",
+ "56": "1.6",
+ "58": "1.7",
+ "59": "1.8",
+ "61": "2.0",
+ "66": "3.0",
+ "69": "4.0",
+ "72": "5.0",
+ "73": "5.0",
+ "76": "6.0",
+ "78": "7.0",
+ "79": "8.0",
+ "80": "8.0",
+ "82": "9.0",
+ "83": "9.0",
+ "84": "10.0",
+ "85": "10.0",
+ "86": "11.0",
+ "87": "11.0",
+ "89": "12.0",
+ "90": "13.0",
+ "91": "13.0",
+ "92": "14.0",
+ "93": "14.0",
+ "94": "15.0"
+};
\ No newline at end of file
diff --git a/node_modules/electron-to-chromium/full-chromium-versions.js b/node_modules/electron-to-chromium/full-chromium-versions.js
new file mode 100644
index 00000000..8dcf470a
--- /dev/null
+++ b/node_modules/electron-to-chromium/full-chromium-versions.js
@@ -0,0 +1,1539 @@
+module.exports = {
+ "39.0.2171.65": [
+ "0.20.0",
+ "0.20.1",
+ "0.20.2",
+ "0.20.3",
+ "0.20.4",
+ "0.20.5",
+ "0.20.6",
+ "0.20.7",
+ "0.20.8"
+ ],
+ "40.0.2214.91": [
+ "0.21.0",
+ "0.21.1",
+ "0.21.2"
+ ],
+ "41.0.2272.76": [
+ "0.21.3",
+ "0.22.1",
+ "0.22.2",
+ "0.22.3",
+ "0.23.0",
+ "0.24.0"
+ ],
+ "42.0.2311.107": [
+ "0.25.0",
+ "0.25.1",
+ "0.25.2",
+ "0.25.3",
+ "0.26.0",
+ "0.26.1",
+ "0.27.0",
+ "0.27.1"
+ ],
+ "43.0.2357.65": [
+ "0.27.2",
+ "0.27.3",
+ "0.28.0",
+ "0.28.1",
+ "0.28.2",
+ "0.28.3",
+ "0.29.1",
+ "0.29.2"
+ ],
+ "44.0.2403.125": [
+ "0.30.4",
+ "0.31.0"
+ ],
+ "45.0.2454.85": [
+ "0.31.2",
+ "0.32.2",
+ "0.32.3",
+ "0.33.0",
+ "0.33.1",
+ "0.33.2",
+ "0.33.3",
+ "0.33.4",
+ "0.33.6",
+ "0.33.7",
+ "0.33.8",
+ "0.33.9",
+ "0.34.0",
+ "0.34.1",
+ "0.34.2",
+ "0.34.3",
+ "0.34.4",
+ "0.35.1",
+ "0.35.2",
+ "0.35.3",
+ "0.35.4",
+ "0.35.5"
+ ],
+ "47.0.2526.73": [
+ "0.36.0",
+ "0.36.2",
+ "0.36.3",
+ "0.36.4"
+ ],
+ "47.0.2526.110": [
+ "0.36.5",
+ "0.36.6",
+ "0.36.7",
+ "0.36.8",
+ "0.36.9",
+ "0.36.10",
+ "0.36.11",
+ "0.36.12"
+ ],
+ "49.0.2623.75": [
+ "0.37.0",
+ "0.37.1",
+ "0.37.3",
+ "0.37.4",
+ "0.37.5",
+ "0.37.6",
+ "0.37.7",
+ "0.37.8",
+ "1.0.0",
+ "1.0.1",
+ "1.0.2"
+ ],
+ "50.0.2661.102": [
+ "1.1.0",
+ "1.1.1",
+ "1.1.2",
+ "1.1.3"
+ ],
+ "51.0.2704.63": [
+ "1.2.0",
+ "1.2.1"
+ ],
+ "51.0.2704.84": [
+ "1.2.2",
+ "1.2.3"
+ ],
+ "51.0.2704.103": [
+ "1.2.4",
+ "1.2.5"
+ ],
+ "51.0.2704.106": [
+ "1.2.6",
+ "1.2.7",
+ "1.2.8"
+ ],
+ "52.0.2743.82": [
+ "1.3.0",
+ "1.3.1",
+ "1.3.2",
+ "1.3.3",
+ "1.3.4",
+ "1.3.5",
+ "1.3.6",
+ "1.3.7",
+ "1.3.9",
+ "1.3.10",
+ "1.3.13",
+ "1.3.14",
+ "1.3.15"
+ ],
+ "53.0.2785.113": [
+ "1.4.0",
+ "1.4.1",
+ "1.4.2",
+ "1.4.3",
+ "1.4.4",
+ "1.4.5"
+ ],
+ "53.0.2785.143": [
+ "1.4.6",
+ "1.4.7",
+ "1.4.8",
+ "1.4.10",
+ "1.4.11",
+ "1.4.13",
+ "1.4.14",
+ "1.4.15",
+ "1.4.16"
+ ],
+ "54.0.2840.51": [
+ "1.4.12"
+ ],
+ "54.0.2840.101": [
+ "1.5.0",
+ "1.5.1"
+ ],
+ "56.0.2924.87": [
+ "1.6.0",
+ "1.6.1",
+ "1.6.2",
+ "1.6.3",
+ "1.6.4",
+ "1.6.5",
+ "1.6.6",
+ "1.6.7",
+ "1.6.8",
+ "1.6.9",
+ "1.6.10",
+ "1.6.11",
+ "1.6.12",
+ "1.6.13",
+ "1.6.14",
+ "1.6.15",
+ "1.6.16",
+ "1.6.17",
+ "1.6.18"
+ ],
+ "58.0.3029.110": [
+ "1.7.0",
+ "1.7.1",
+ "1.7.2",
+ "1.7.3",
+ "1.7.4",
+ "1.7.5",
+ "1.7.6",
+ "1.7.7",
+ "1.7.8",
+ "1.7.9",
+ "1.7.10",
+ "1.7.11",
+ "1.7.12",
+ "1.7.13",
+ "1.7.14",
+ "1.7.15",
+ "1.7.16"
+ ],
+ "59.0.3071.115": [
+ "1.8.0",
+ "1.8.1",
+ "1.8.2-beta.1",
+ "1.8.2-beta.2",
+ "1.8.2-beta.3",
+ "1.8.2-beta.4",
+ "1.8.2-beta.5",
+ "1.8.2",
+ "1.8.3",
+ "1.8.4",
+ "1.8.5",
+ "1.8.6",
+ "1.8.7",
+ "1.8.8"
+ ],
+ "61.0.3163.100": [
+ "2.0.0-beta.1",
+ "2.0.0-beta.2",
+ "2.0.0-beta.3",
+ "2.0.0-beta.4",
+ "2.0.0-beta.5",
+ "2.0.0-beta.6",
+ "2.0.0-beta.7",
+ "2.0.0-beta.8",
+ "2.0.0",
+ "2.0.1",
+ "2.0.2",
+ "2.0.3",
+ "2.0.4",
+ "2.0.5",
+ "2.0.6",
+ "2.0.7",
+ "2.0.8-nightly.20180819",
+ "2.0.8-nightly.20180820",
+ "2.0.8",
+ "2.0.9",
+ "2.0.10",
+ "2.0.11",
+ "2.0.12",
+ "2.0.13",
+ "2.0.14",
+ "2.0.15",
+ "2.0.16",
+ "2.0.17",
+ "2.0.18",
+ "2.1.0-unsupported.20180809"
+ ],
+ "66.0.3359.181": [
+ "3.0.0-beta.1",
+ "3.0.0-beta.2",
+ "3.0.0-beta.3",
+ "3.0.0-beta.4",
+ "3.0.0-beta.5",
+ "3.0.0-beta.6",
+ "3.0.0-beta.7",
+ "3.0.0-beta.8",
+ "3.0.0-beta.9",
+ "3.0.0-beta.10",
+ "3.0.0-beta.11",
+ "3.0.0-beta.12",
+ "3.0.0-beta.13",
+ "3.0.0-nightly.20180818",
+ "3.0.0-nightly.20180821",
+ "3.0.0-nightly.20180823",
+ "3.0.0-nightly.20180904",
+ "3.0.0",
+ "3.0.1",
+ "3.0.2",
+ "3.0.3",
+ "3.0.4",
+ "3.0.5",
+ "3.0.6",
+ "3.0.7",
+ "3.0.8",
+ "3.0.9",
+ "3.0.10",
+ "3.0.11",
+ "3.0.12",
+ "3.0.13",
+ "3.0.14",
+ "3.0.15",
+ "3.0.16",
+ "3.1.0-beta.1",
+ "3.1.0-beta.2",
+ "3.1.0-beta.3",
+ "3.1.0-beta.4",
+ "3.1.0-beta.5",
+ "3.1.0",
+ "3.1.1",
+ "3.1.2",
+ "3.1.3",
+ "3.1.4",
+ "3.1.5",
+ "3.1.6",
+ "3.1.7",
+ "3.1.8",
+ "3.1.9",
+ "3.1.10",
+ "3.1.11",
+ "3.1.12",
+ "3.1.13",
+ "4.0.0-nightly.20180817",
+ "4.0.0-nightly.20180819",
+ "4.0.0-nightly.20180821"
+ ],
+ "69.0.3497.106": [
+ "4.0.0-beta.1",
+ "4.0.0-beta.2",
+ "4.0.0-beta.3",
+ "4.0.0-beta.4",
+ "4.0.0-beta.5",
+ "4.0.0-beta.6",
+ "4.0.0-beta.7",
+ "4.0.0-beta.8",
+ "4.0.0-beta.9",
+ "4.0.0-beta.10",
+ "4.0.0-beta.11",
+ "4.0.0-nightly.20181010",
+ "4.0.0",
+ "4.0.1",
+ "4.0.2",
+ "4.0.3",
+ "4.0.4",
+ "4.0.5",
+ "4.0.6"
+ ],
+ "67.0.3396.99": [
+ "4.0.0-nightly.20180929"
+ ],
+ "68.0.3440.128": [
+ "4.0.0-nightly.20181006"
+ ],
+ "69.0.3497.128": [
+ "4.0.7",
+ "4.0.8",
+ "4.1.0",
+ "4.1.1",
+ "4.1.2",
+ "4.1.3",
+ "4.1.4",
+ "4.1.5",
+ "4.2.0",
+ "4.2.1",
+ "4.2.2",
+ "4.2.3",
+ "4.2.4",
+ "4.2.5",
+ "4.2.6",
+ "4.2.7",
+ "4.2.8",
+ "4.2.9",
+ "4.2.10",
+ "4.2.11",
+ "4.2.12"
+ ],
+ "72.0.3626.52": [
+ "5.0.0-beta.1",
+ "5.0.0-beta.2"
+ ],
+ "73.0.3683.27": [
+ "5.0.0-beta.3"
+ ],
+ "73.0.3683.54": [
+ "5.0.0-beta.4"
+ ],
+ "73.0.3683.61": [
+ "5.0.0-beta.5"
+ ],
+ "73.0.3683.84": [
+ "5.0.0-beta.6"
+ ],
+ "73.0.3683.94": [
+ "5.0.0-beta.7"
+ ],
+ "73.0.3683.104": [
+ "5.0.0-beta.8"
+ ],
+ "73.0.3683.117": [
+ "5.0.0-beta.9"
+ ],
+ "70.0.3538.110": [
+ "5.0.0-nightly.20190107"
+ ],
+ "71.0.3578.98": [
+ "5.0.0-nightly.20190121",
+ "5.0.0-nightly.20190122"
+ ],
+ "73.0.3683.119": [
+ "5.0.0"
+ ],
+ "73.0.3683.121": [
+ "5.0.1",
+ "5.0.2",
+ "5.0.3",
+ "5.0.4",
+ "5.0.5",
+ "5.0.6",
+ "5.0.7",
+ "5.0.8",
+ "5.0.9",
+ "5.0.10",
+ "5.0.11",
+ "5.0.12",
+ "5.0.13"
+ ],
+ "76.0.3774.1": [
+ "6.0.0-beta.1"
+ ],
+ "76.0.3783.1": [
+ "6.0.0-beta.2",
+ "6.0.0-beta.3",
+ "6.0.0-beta.4"
+ ],
+ "76.0.3805.4": [
+ "6.0.0-beta.5"
+ ],
+ "76.0.3809.3": [
+ "6.0.0-beta.6"
+ ],
+ "76.0.3809.22": [
+ "6.0.0-beta.7"
+ ],
+ "76.0.3809.26": [
+ "6.0.0-beta.8",
+ "6.0.0-beta.9"
+ ],
+ "76.0.3809.37": [
+ "6.0.0-beta.10"
+ ],
+ "76.0.3809.42": [
+ "6.0.0-beta.11"
+ ],
+ "76.0.3809.54": [
+ "6.0.0-beta.12"
+ ],
+ "76.0.3809.60": [
+ "6.0.0-beta.13"
+ ],
+ "76.0.3809.68": [
+ "6.0.0-beta.14"
+ ],
+ "76.0.3809.74": [
+ "6.0.0-beta.15"
+ ],
+ "72.0.3626.107": [
+ "6.0.0-nightly.20190212"
+ ],
+ "72.0.3626.110": [
+ "6.0.0-nightly.20190213"
+ ],
+ "74.0.3724.8": [
+ "6.0.0-nightly.20190311"
+ ],
+ "76.0.3809.88": [
+ "6.0.0"
+ ],
+ "76.0.3809.102": [
+ "6.0.1"
+ ],
+ "76.0.3809.110": [
+ "6.0.2"
+ ],
+ "76.0.3809.126": [
+ "6.0.3"
+ ],
+ "76.0.3809.131": [
+ "6.0.4"
+ ],
+ "76.0.3809.136": [
+ "6.0.5"
+ ],
+ "76.0.3809.138": [
+ "6.0.6"
+ ],
+ "76.0.3809.139": [
+ "6.0.7"
+ ],
+ "76.0.3809.146": [
+ "6.0.8",
+ "6.0.9",
+ "6.0.10",
+ "6.0.11",
+ "6.0.12",
+ "6.1.0",
+ "6.1.1",
+ "6.1.2",
+ "6.1.3",
+ "6.1.4",
+ "6.1.5",
+ "6.1.6",
+ "6.1.7",
+ "6.1.8",
+ "6.1.9",
+ "6.1.10",
+ "6.1.11",
+ "6.1.12"
+ ],
+ "78.0.3866.0": [
+ "7.0.0-beta.1",
+ "7.0.0-beta.2",
+ "7.0.0-beta.3",
+ "7.0.0-nightly.20190727",
+ "7.0.0-nightly.20190728",
+ "7.0.0-nightly.20190729",
+ "7.0.0-nightly.20190730",
+ "7.0.0-nightly.20190731",
+ "8.0.0-nightly.20190801",
+ "8.0.0-nightly.20190802"
+ ],
+ "78.0.3896.6": [
+ "7.0.0-beta.4"
+ ],
+ "78.0.3905.1": [
+ "7.0.0-beta.5",
+ "7.0.0-beta.6",
+ "7.0.0-beta.7",
+ "7.0.0"
+ ],
+ "76.0.3784.0": [
+ "7.0.0-nightly.20190521"
+ ],
+ "76.0.3806.0": [
+ "7.0.0-nightly.20190529",
+ "7.0.0-nightly.20190530",
+ "7.0.0-nightly.20190531",
+ "7.0.0-nightly.20190602",
+ "7.0.0-nightly.20190603"
+ ],
+ "77.0.3814.0": [
+ "7.0.0-nightly.20190604"
+ ],
+ "77.0.3815.0": [
+ "7.0.0-nightly.20190605",
+ "7.0.0-nightly.20190606",
+ "7.0.0-nightly.20190607",
+ "7.0.0-nightly.20190608",
+ "7.0.0-nightly.20190609",
+ "7.0.0-nightly.20190611",
+ "7.0.0-nightly.20190612",
+ "7.0.0-nightly.20190613",
+ "7.0.0-nightly.20190615",
+ "7.0.0-nightly.20190616",
+ "7.0.0-nightly.20190618",
+ "7.0.0-nightly.20190619",
+ "7.0.0-nightly.20190622",
+ "7.0.0-nightly.20190623",
+ "7.0.0-nightly.20190624",
+ "7.0.0-nightly.20190627",
+ "7.0.0-nightly.20190629",
+ "7.0.0-nightly.20190630",
+ "7.0.0-nightly.20190701",
+ "7.0.0-nightly.20190702"
+ ],
+ "77.0.3843.0": [
+ "7.0.0-nightly.20190704",
+ "7.0.0-nightly.20190705"
+ ],
+ "77.0.3848.0": [
+ "7.0.0-nightly.20190719",
+ "7.0.0-nightly.20190720",
+ "7.0.0-nightly.20190721"
+ ],
+ "77.0.3864.0": [
+ "7.0.0-nightly.20190726"
+ ],
+ "78.0.3904.92": [
+ "7.0.1"
+ ],
+ "78.0.3904.94": [
+ "7.1.0"
+ ],
+ "78.0.3904.99": [
+ "7.1.1"
+ ],
+ "78.0.3904.113": [
+ "7.1.2"
+ ],
+ "78.0.3904.126": [
+ "7.1.3"
+ ],
+ "78.0.3904.130": [
+ "7.1.4",
+ "7.1.5",
+ "7.1.6",
+ "7.1.7",
+ "7.1.8",
+ "7.1.9",
+ "7.1.10",
+ "7.1.11",
+ "7.1.12",
+ "7.1.13",
+ "7.1.14",
+ "7.2.0",
+ "7.2.1",
+ "7.2.2",
+ "7.2.3",
+ "7.2.4",
+ "7.3.0",
+ "7.3.1",
+ "7.3.2",
+ "7.3.3"
+ ],
+ "79.0.3931.0": [
+ "8.0.0-beta.1",
+ "8.0.0-beta.2",
+ "8.0.0-nightly.20191019",
+ "8.0.0-nightly.20191020",
+ "8.0.0-nightly.20191021",
+ "8.0.0-nightly.20191023"
+ ],
+ "80.0.3955.0": [
+ "8.0.0-beta.3",
+ "8.0.0-beta.4"
+ ],
+ "80.0.3987.14": [
+ "8.0.0-beta.5"
+ ],
+ "80.0.3987.51": [
+ "8.0.0-beta.6"
+ ],
+ "80.0.3987.59": [
+ "8.0.0-beta.7"
+ ],
+ "80.0.3987.75": [
+ "8.0.0-beta.8",
+ "8.0.0-beta.9"
+ ],
+ "78.0.3871.0": [
+ "8.0.0-nightly.20190803",
+ "8.0.0-nightly.20190806",
+ "8.0.0-nightly.20190807",
+ "8.0.0-nightly.20190808",
+ "8.0.0-nightly.20190809",
+ "8.0.0-nightly.20190810",
+ "8.0.0-nightly.20190811",
+ "8.0.0-nightly.20190812",
+ "8.0.0-nightly.20190813",
+ "8.0.0-nightly.20190814",
+ "8.0.0-nightly.20190815"
+ ],
+ "78.0.3881.0": [
+ "8.0.0-nightly.20190816",
+ "8.0.0-nightly.20190817",
+ "8.0.0-nightly.20190818",
+ "8.0.0-nightly.20190819",
+ "8.0.0-nightly.20190820"
+ ],
+ "78.0.3892.0": [
+ "8.0.0-nightly.20190824",
+ "8.0.0-nightly.20190825",
+ "8.0.0-nightly.20190827",
+ "8.0.0-nightly.20190828",
+ "8.0.0-nightly.20190830",
+ "8.0.0-nightly.20190901",
+ "8.0.0-nightly.20190902",
+ "8.0.0-nightly.20190907",
+ "8.0.0-nightly.20190909",
+ "8.0.0-nightly.20190910",
+ "8.0.0-nightly.20190911",
+ "8.0.0-nightly.20190913",
+ "8.0.0-nightly.20190914",
+ "8.0.0-nightly.20190915",
+ "8.0.0-nightly.20190917"
+ ],
+ "79.0.3915.0": [
+ "8.0.0-nightly.20190919",
+ "8.0.0-nightly.20190920"
+ ],
+ "79.0.3919.0": [
+ "8.0.0-nightly.20190923",
+ "8.0.0-nightly.20190924",
+ "8.0.0-nightly.20190926",
+ "8.0.0-nightly.20190929",
+ "8.0.0-nightly.20190930",
+ "8.0.0-nightly.20191001",
+ "8.0.0-nightly.20191004",
+ "8.0.0-nightly.20191005",
+ "8.0.0-nightly.20191006",
+ "8.0.0-nightly.20191009",
+ "8.0.0-nightly.20191011",
+ "8.0.0-nightly.20191012",
+ "8.0.0-nightly.20191017"
+ ],
+ "80.0.3952.0": [
+ "8.0.0-nightly.20191101",
+ "8.0.0-nightly.20191105"
+ ],
+ "80.0.3987.86": [
+ "8.0.0",
+ "8.0.1",
+ "8.0.2"
+ ],
+ "80.0.3987.134": [
+ "8.0.3"
+ ],
+ "80.0.3987.137": [
+ "8.1.0"
+ ],
+ "80.0.3987.141": [
+ "8.1.1"
+ ],
+ "80.0.3987.158": [
+ "8.2.0"
+ ],
+ "80.0.3987.163": [
+ "8.2.1",
+ "8.2.2",
+ "8.2.3",
+ "8.5.3",
+ "8.5.4",
+ "8.5.5"
+ ],
+ "80.0.3987.165": [
+ "8.2.4",
+ "8.2.5",
+ "8.3.0",
+ "8.3.1",
+ "8.3.2",
+ "8.3.3",
+ "8.3.4",
+ "8.4.0",
+ "8.4.1",
+ "8.5.0",
+ "8.5.1",
+ "8.5.2"
+ ],
+ "82.0.4048.0": [
+ "9.0.0-beta.1",
+ "9.0.0-beta.2",
+ "9.0.0-beta.3",
+ "9.0.0-beta.4",
+ "9.0.0-beta.5"
+ ],
+ "82.0.4058.2": [
+ "9.0.0-beta.6",
+ "9.0.0-beta.7",
+ "9.0.0-beta.9"
+ ],
+ "82.0.4085.10": [
+ "9.0.0-beta.10"
+ ],
+ "82.0.4085.14": [
+ "9.0.0-beta.12",
+ "9.0.0-beta.13"
+ ],
+ "82.0.4085.27": [
+ "9.0.0-beta.14"
+ ],
+ "83.0.4102.3": [
+ "9.0.0-beta.15",
+ "9.0.0-beta.16"
+ ],
+ "83.0.4103.14": [
+ "9.0.0-beta.17"
+ ],
+ "83.0.4103.16": [
+ "9.0.0-beta.18"
+ ],
+ "83.0.4103.24": [
+ "9.0.0-beta.19"
+ ],
+ "83.0.4103.26": [
+ "9.0.0-beta.20",
+ "9.0.0-beta.21"
+ ],
+ "83.0.4103.34": [
+ "9.0.0-beta.22"
+ ],
+ "83.0.4103.44": [
+ "9.0.0-beta.23"
+ ],
+ "83.0.4103.45": [
+ "9.0.0-beta.24"
+ ],
+ "80.0.3954.0": [
+ "9.0.0-nightly.20191121",
+ "9.0.0-nightly.20191122",
+ "9.0.0-nightly.20191123",
+ "9.0.0-nightly.20191124",
+ "9.0.0-nightly.20191129",
+ "9.0.0-nightly.20191130",
+ "9.0.0-nightly.20191201",
+ "9.0.0-nightly.20191202",
+ "9.0.0-nightly.20191203",
+ "9.0.0-nightly.20191204",
+ "9.0.0-nightly.20191210"
+ ],
+ "81.0.3994.0": [
+ "9.0.0-nightly.20191220",
+ "9.0.0-nightly.20191221",
+ "9.0.0-nightly.20191222",
+ "9.0.0-nightly.20191223",
+ "9.0.0-nightly.20191224",
+ "9.0.0-nightly.20191225",
+ "9.0.0-nightly.20191226",
+ "9.0.0-nightly.20191228",
+ "9.0.0-nightly.20191229",
+ "9.0.0-nightly.20191230",
+ "9.0.0-nightly.20191231",
+ "9.0.0-nightly.20200101",
+ "9.0.0-nightly.20200103",
+ "9.0.0-nightly.20200104",
+ "9.0.0-nightly.20200105",
+ "9.0.0-nightly.20200106",
+ "9.0.0-nightly.20200108",
+ "9.0.0-nightly.20200109",
+ "9.0.0-nightly.20200110",
+ "9.0.0-nightly.20200111",
+ "9.0.0-nightly.20200113",
+ "9.0.0-nightly.20200115",
+ "9.0.0-nightly.20200116",
+ "9.0.0-nightly.20200117"
+ ],
+ "81.0.4030.0": [
+ "9.0.0-nightly.20200119",
+ "9.0.0-nightly.20200121"
+ ],
+ "83.0.4103.64": [
+ "9.0.0"
+ ],
+ "83.0.4103.94": [
+ "9.0.1",
+ "9.0.2"
+ ],
+ "83.0.4103.100": [
+ "9.0.3"
+ ],
+ "83.0.4103.104": [
+ "9.0.4"
+ ],
+ "83.0.4103.119": [
+ "9.0.5"
+ ],
+ "83.0.4103.122": [
+ "9.1.0",
+ "9.1.1",
+ "9.1.2",
+ "9.2.0",
+ "9.2.1",
+ "9.3.0",
+ "9.3.1",
+ "9.3.2",
+ "9.3.3",
+ "9.3.4",
+ "9.3.5",
+ "9.4.0",
+ "9.4.1",
+ "9.4.2",
+ "9.4.3",
+ "9.4.4"
+ ],
+ "84.0.4129.0": [
+ "10.0.0-beta.1",
+ "10.0.0-beta.2",
+ "10.0.0-nightly.20200501",
+ "10.0.0-nightly.20200504",
+ "10.0.0-nightly.20200505",
+ "10.0.0-nightly.20200506",
+ "10.0.0-nightly.20200507",
+ "10.0.0-nightly.20200508",
+ "10.0.0-nightly.20200511",
+ "10.0.0-nightly.20200512",
+ "10.0.0-nightly.20200513",
+ "10.0.0-nightly.20200514",
+ "10.0.0-nightly.20200515",
+ "10.0.0-nightly.20200518",
+ "10.0.0-nightly.20200519",
+ "10.0.0-nightly.20200520",
+ "10.0.0-nightly.20200521",
+ "11.0.0-nightly.20200525",
+ "11.0.0-nightly.20200526"
+ ],
+ "85.0.4161.2": [
+ "10.0.0-beta.3",
+ "10.0.0-beta.4"
+ ],
+ "85.0.4181.1": [
+ "10.0.0-beta.8",
+ "10.0.0-beta.9"
+ ],
+ "85.0.4183.19": [
+ "10.0.0-beta.10"
+ ],
+ "85.0.4183.20": [
+ "10.0.0-beta.11"
+ ],
+ "85.0.4183.26": [
+ "10.0.0-beta.12"
+ ],
+ "85.0.4183.39": [
+ "10.0.0-beta.13",
+ "10.0.0-beta.14",
+ "10.0.0-beta.15",
+ "10.0.0-beta.17",
+ "10.0.0-beta.19",
+ "10.0.0-beta.20",
+ "10.0.0-beta.21"
+ ],
+ "85.0.4183.70": [
+ "10.0.0-beta.23"
+ ],
+ "85.0.4183.78": [
+ "10.0.0-beta.24"
+ ],
+ "85.0.4183.80": [
+ "10.0.0-beta.25"
+ ],
+ "82.0.4050.0": [
+ "10.0.0-nightly.20200209",
+ "10.0.0-nightly.20200210",
+ "10.0.0-nightly.20200211",
+ "10.0.0-nightly.20200216",
+ "10.0.0-nightly.20200217",
+ "10.0.0-nightly.20200218",
+ "10.0.0-nightly.20200221",
+ "10.0.0-nightly.20200222",
+ "10.0.0-nightly.20200223",
+ "10.0.0-nightly.20200226",
+ "10.0.0-nightly.20200303"
+ ],
+ "82.0.4076.0": [
+ "10.0.0-nightly.20200304",
+ "10.0.0-nightly.20200305",
+ "10.0.0-nightly.20200306",
+ "10.0.0-nightly.20200309",
+ "10.0.0-nightly.20200310"
+ ],
+ "82.0.4083.0": [
+ "10.0.0-nightly.20200311"
+ ],
+ "83.0.4086.0": [
+ "10.0.0-nightly.20200316"
+ ],
+ "83.0.4087.0": [
+ "10.0.0-nightly.20200317",
+ "10.0.0-nightly.20200318",
+ "10.0.0-nightly.20200320",
+ "10.0.0-nightly.20200323",
+ "10.0.0-nightly.20200324",
+ "10.0.0-nightly.20200325",
+ "10.0.0-nightly.20200326",
+ "10.0.0-nightly.20200327",
+ "10.0.0-nightly.20200330",
+ "10.0.0-nightly.20200331",
+ "10.0.0-nightly.20200401",
+ "10.0.0-nightly.20200402",
+ "10.0.0-nightly.20200403",
+ "10.0.0-nightly.20200406"
+ ],
+ "83.0.4095.0": [
+ "10.0.0-nightly.20200408",
+ "10.0.0-nightly.20200410",
+ "10.0.0-nightly.20200413"
+ ],
+ "84.0.4114.0": [
+ "10.0.0-nightly.20200414"
+ ],
+ "84.0.4115.0": [
+ "10.0.0-nightly.20200415",
+ "10.0.0-nightly.20200416",
+ "10.0.0-nightly.20200417"
+ ],
+ "84.0.4121.0": [
+ "10.0.0-nightly.20200422",
+ "10.0.0-nightly.20200423"
+ ],
+ "84.0.4125.0": [
+ "10.0.0-nightly.20200427",
+ "10.0.0-nightly.20200428",
+ "10.0.0-nightly.20200429",
+ "10.0.0-nightly.20200430"
+ ],
+ "85.0.4183.84": [
+ "10.0.0"
+ ],
+ "85.0.4183.86": [
+ "10.0.1"
+ ],
+ "85.0.4183.87": [
+ "10.1.0"
+ ],
+ "85.0.4183.93": [
+ "10.1.1"
+ ],
+ "85.0.4183.98": [
+ "10.1.2"
+ ],
+ "85.0.4183.121": [
+ "10.1.3",
+ "10.1.4",
+ "10.1.5",
+ "10.1.6",
+ "10.1.7",
+ "10.2.0",
+ "10.3.0",
+ "10.3.1",
+ "10.3.2",
+ "10.4.0",
+ "10.4.1",
+ "10.4.2",
+ "10.4.3",
+ "10.4.4",
+ "10.4.5",
+ "10.4.6",
+ "10.4.7"
+ ],
+ "86.0.4234.0": [
+ "11.0.0-beta.1",
+ "11.0.0-beta.3",
+ "11.0.0-beta.4",
+ "11.0.0-beta.5",
+ "11.0.0-beta.6",
+ "11.0.0-beta.7",
+ "11.0.0-nightly.20200822",
+ "11.0.0-nightly.20200824",
+ "11.0.0-nightly.20200825",
+ "11.0.0-nightly.20200826",
+ "12.0.0-nightly.20200827",
+ "12.0.0-nightly.20200831",
+ "12.0.0-nightly.20200902",
+ "12.0.0-nightly.20200903",
+ "12.0.0-nightly.20200907",
+ "12.0.0-nightly.20200910",
+ "12.0.0-nightly.20200911",
+ "12.0.0-nightly.20200914"
+ ],
+ "87.0.4251.1": [
+ "11.0.0-beta.8",
+ "11.0.0-beta.9",
+ "11.0.0-beta.11"
+ ],
+ "87.0.4280.11": [
+ "11.0.0-beta.12",
+ "11.0.0-beta.13"
+ ],
+ "87.0.4280.27": [
+ "11.0.0-beta.16",
+ "11.0.0-beta.17",
+ "11.0.0-beta.18",
+ "11.0.0-beta.19"
+ ],
+ "87.0.4280.40": [
+ "11.0.0-beta.20"
+ ],
+ "87.0.4280.47": [
+ "11.0.0-beta.22",
+ "11.0.0-beta.23"
+ ],
+ "85.0.4156.0": [
+ "11.0.0-nightly.20200529"
+ ],
+ "85.0.4162.0": [
+ "11.0.0-nightly.20200602",
+ "11.0.0-nightly.20200603",
+ "11.0.0-nightly.20200604",
+ "11.0.0-nightly.20200609",
+ "11.0.0-nightly.20200610",
+ "11.0.0-nightly.20200611",
+ "11.0.0-nightly.20200615",
+ "11.0.0-nightly.20200616",
+ "11.0.0-nightly.20200617",
+ "11.0.0-nightly.20200618",
+ "11.0.0-nightly.20200619"
+ ],
+ "85.0.4179.0": [
+ "11.0.0-nightly.20200701",
+ "11.0.0-nightly.20200702",
+ "11.0.0-nightly.20200703",
+ "11.0.0-nightly.20200706",
+ "11.0.0-nightly.20200707",
+ "11.0.0-nightly.20200708",
+ "11.0.0-nightly.20200709"
+ ],
+ "86.0.4203.0": [
+ "11.0.0-nightly.20200716",
+ "11.0.0-nightly.20200717",
+ "11.0.0-nightly.20200720",
+ "11.0.0-nightly.20200721"
+ ],
+ "86.0.4209.0": [
+ "11.0.0-nightly.20200723",
+ "11.0.0-nightly.20200724",
+ "11.0.0-nightly.20200729",
+ "11.0.0-nightly.20200730",
+ "11.0.0-nightly.20200731",
+ "11.0.0-nightly.20200803",
+ "11.0.0-nightly.20200804",
+ "11.0.0-nightly.20200805",
+ "11.0.0-nightly.20200811",
+ "11.0.0-nightly.20200812"
+ ],
+ "87.0.4280.60": [
+ "11.0.0",
+ "11.0.1"
+ ],
+ "87.0.4280.67": [
+ "11.0.2",
+ "11.0.3",
+ "11.0.4"
+ ],
+ "87.0.4280.88": [
+ "11.0.5",
+ "11.1.0",
+ "11.1.1"
+ ],
+ "87.0.4280.141": [
+ "11.2.0",
+ "11.2.1",
+ "11.2.2",
+ "11.2.3",
+ "11.3.0",
+ "11.4.0",
+ "11.4.1",
+ "11.4.2",
+ "11.4.3",
+ "11.4.4",
+ "11.4.5",
+ "11.4.6",
+ "11.4.7",
+ "11.4.8",
+ "11.4.9",
+ "11.4.10",
+ "11.4.11",
+ "11.4.12",
+ "11.5.0"
+ ],
+ "89.0.4328.0": [
+ "12.0.0-beta.1",
+ "12.0.0-beta.3",
+ "12.0.0-beta.4",
+ "12.0.0-beta.5",
+ "12.0.0-beta.6",
+ "12.0.0-beta.7",
+ "12.0.0-beta.8",
+ "12.0.0-beta.9",
+ "12.0.0-beta.10",
+ "12.0.0-beta.11",
+ "12.0.0-beta.12",
+ "12.0.0-beta.14",
+ "13.0.0-nightly.20201119",
+ "13.0.0-nightly.20201123",
+ "13.0.0-nightly.20201124",
+ "13.0.0-nightly.20201126",
+ "13.0.0-nightly.20201127",
+ "13.0.0-nightly.20201130",
+ "13.0.0-nightly.20201201",
+ "13.0.0-nightly.20201202",
+ "13.0.0-nightly.20201203",
+ "13.0.0-nightly.20201204",
+ "13.0.0-nightly.20201207",
+ "13.0.0-nightly.20201208",
+ "13.0.0-nightly.20201209",
+ "13.0.0-nightly.20201210",
+ "13.0.0-nightly.20201211",
+ "13.0.0-nightly.20201214"
+ ],
+ "89.0.4348.1": [
+ "12.0.0-beta.16",
+ "12.0.0-beta.18",
+ "12.0.0-beta.19",
+ "12.0.0-beta.20"
+ ],
+ "89.0.4388.2": [
+ "12.0.0-beta.21",
+ "12.0.0-beta.22",
+ "12.0.0-beta.23",
+ "12.0.0-beta.24",
+ "12.0.0-beta.25",
+ "12.0.0-beta.26"
+ ],
+ "89.0.4389.23": [
+ "12.0.0-beta.27",
+ "12.0.0-beta.28",
+ "12.0.0-beta.29"
+ ],
+ "89.0.4389.58": [
+ "12.0.0-beta.30",
+ "12.0.0-beta.31"
+ ],
+ "87.0.4268.0": [
+ "12.0.0-nightly.20201013",
+ "12.0.0-nightly.20201014",
+ "12.0.0-nightly.20201015"
+ ],
+ "88.0.4292.0": [
+ "12.0.0-nightly.20201023",
+ "12.0.0-nightly.20201026"
+ ],
+ "88.0.4306.0": [
+ "12.0.0-nightly.20201030",
+ "12.0.0-nightly.20201102",
+ "12.0.0-nightly.20201103",
+ "12.0.0-nightly.20201104",
+ "12.0.0-nightly.20201105",
+ "12.0.0-nightly.20201106",
+ "12.0.0-nightly.20201111",
+ "12.0.0-nightly.20201112"
+ ],
+ "88.0.4324.0": [
+ "12.0.0-nightly.20201116"
+ ],
+ "89.0.4389.69": [
+ "12.0.0"
+ ],
+ "89.0.4389.82": [
+ "12.0.1"
+ ],
+ "89.0.4389.90": [
+ "12.0.2"
+ ],
+ "89.0.4389.114": [
+ "12.0.3",
+ "12.0.4"
+ ],
+ "89.0.4389.128": [
+ "12.0.5",
+ "12.0.6",
+ "12.0.7",
+ "12.0.8",
+ "12.0.9",
+ "12.0.10",
+ "12.0.11",
+ "12.0.12",
+ "12.0.13",
+ "12.0.14",
+ "12.0.15",
+ "12.0.16",
+ "12.0.17",
+ "12.0.18",
+ "12.1.0"
+ ],
+ "90.0.4402.0": [
+ "13.0.0-beta.2",
+ "13.0.0-beta.3",
+ "13.0.0-nightly.20210210",
+ "13.0.0-nightly.20210211",
+ "13.0.0-nightly.20210212",
+ "13.0.0-nightly.20210216",
+ "13.0.0-nightly.20210217",
+ "13.0.0-nightly.20210218",
+ "13.0.0-nightly.20210219",
+ "13.0.0-nightly.20210222",
+ "13.0.0-nightly.20210225",
+ "13.0.0-nightly.20210226",
+ "13.0.0-nightly.20210301",
+ "13.0.0-nightly.20210302",
+ "13.0.0-nightly.20210303",
+ "14.0.0-nightly.20210304"
+ ],
+ "90.0.4415.0": [
+ "13.0.0-beta.4",
+ "13.0.0-beta.5",
+ "13.0.0-beta.6",
+ "13.0.0-beta.7",
+ "13.0.0-beta.8",
+ "13.0.0-beta.9",
+ "13.0.0-beta.11",
+ "13.0.0-beta.12",
+ "13.0.0-beta.13",
+ "14.0.0-nightly.20210305",
+ "14.0.0-nightly.20210308",
+ "14.0.0-nightly.20210309",
+ "14.0.0-nightly.20210311",
+ "14.0.0-nightly.20210315",
+ "14.0.0-nightly.20210316",
+ "14.0.0-nightly.20210317",
+ "14.0.0-nightly.20210318",
+ "14.0.0-nightly.20210319",
+ "14.0.0-nightly.20210323",
+ "14.0.0-nightly.20210324",
+ "14.0.0-nightly.20210325",
+ "14.0.0-nightly.20210326",
+ "14.0.0-nightly.20210329",
+ "14.0.0-nightly.20210330"
+ ],
+ "91.0.4448.0": [
+ "13.0.0-beta.14",
+ "13.0.0-beta.16",
+ "13.0.0-beta.17",
+ "13.0.0-beta.18",
+ "13.0.0-beta.20",
+ "14.0.0-nightly.20210331",
+ "14.0.0-nightly.20210401",
+ "14.0.0-nightly.20210402",
+ "14.0.0-nightly.20210406",
+ "14.0.0-nightly.20210407",
+ "14.0.0-nightly.20210408",
+ "14.0.0-nightly.20210409",
+ "14.0.0-nightly.20210413"
+ ],
+ "91.0.4472.33": [
+ "13.0.0-beta.21",
+ "13.0.0-beta.22",
+ "13.0.0-beta.23"
+ ],
+ "91.0.4472.38": [
+ "13.0.0-beta.24",
+ "13.0.0-beta.26",
+ "13.0.0-beta.27",
+ "13.0.0-beta.28"
+ ],
+ "89.0.4349.0": [
+ "13.0.0-nightly.20201215",
+ "13.0.0-nightly.20201216",
+ "13.0.0-nightly.20201221",
+ "13.0.0-nightly.20201222"
+ ],
+ "89.0.4359.0": [
+ "13.0.0-nightly.20201223",
+ "13.0.0-nightly.20210104",
+ "13.0.0-nightly.20210108",
+ "13.0.0-nightly.20210111"
+ ],
+ "89.0.4386.0": [
+ "13.0.0-nightly.20210113",
+ "13.0.0-nightly.20210114",
+ "13.0.0-nightly.20210118",
+ "13.0.0-nightly.20210122",
+ "13.0.0-nightly.20210125"
+ ],
+ "89.0.4389.0": [
+ "13.0.0-nightly.20210127",
+ "13.0.0-nightly.20210128",
+ "13.0.0-nightly.20210129",
+ "13.0.0-nightly.20210201",
+ "13.0.0-nightly.20210202",
+ "13.0.0-nightly.20210203",
+ "13.0.0-nightly.20210205",
+ "13.0.0-nightly.20210208",
+ "13.0.0-nightly.20210209"
+ ],
+ "91.0.4472.69": [
+ "13.0.0",
+ "13.0.1"
+ ],
+ "91.0.4472.77": [
+ "13.1.0",
+ "13.1.1",
+ "13.1.2"
+ ],
+ "91.0.4472.106": [
+ "13.1.3",
+ "13.1.4"
+ ],
+ "91.0.4472.124": [
+ "13.1.5",
+ "13.1.6",
+ "13.1.7"
+ ],
+ "91.0.4472.164": [
+ "13.1.8",
+ "13.1.9",
+ "13.2.0",
+ "13.2.1",
+ "13.2.2",
+ "13.2.3",
+ "13.3.0"
+ ],
+ "92.0.4511.0": [
+ "14.0.0-beta.1",
+ "14.0.0-beta.2",
+ "14.0.0-beta.3",
+ "14.0.0-nightly.20210520",
+ "14.0.0-nightly.20210523",
+ "14.0.0-nightly.20210524",
+ "15.0.0-nightly.20210527",
+ "15.0.0-nightly.20210528",
+ "15.0.0-nightly.20210531",
+ "15.0.0-nightly.20210601",
+ "15.0.0-nightly.20210602"
+ ],
+ "93.0.4536.0": [
+ "14.0.0-beta.5",
+ "14.0.0-beta.6",
+ "14.0.0-beta.7",
+ "14.0.0-beta.8",
+ "15.0.0-nightly.20210609",
+ "15.0.0-nightly.20210610",
+ "15.0.0-nightly.20210611",
+ "15.0.0-nightly.20210614",
+ "15.0.0-nightly.20210615",
+ "15.0.0-nightly.20210616"
+ ],
+ "93.0.4539.0": [
+ "14.0.0-beta.9",
+ "14.0.0-beta.10",
+ "15.0.0-nightly.20210617",
+ "15.0.0-nightly.20210618",
+ "15.0.0-nightly.20210621",
+ "15.0.0-nightly.20210622"
+ ],
+ "93.0.4557.4": [
+ "14.0.0-beta.11",
+ "14.0.0-beta.12"
+ ],
+ "93.0.4566.0": [
+ "14.0.0-beta.13",
+ "14.0.0-beta.14",
+ "14.0.0-beta.15",
+ "14.0.0-beta.16",
+ "14.0.0-beta.17",
+ "15.0.0-alpha.1",
+ "15.0.0-alpha.2",
+ "15.0.0-nightly.20210706",
+ "15.0.0-nightly.20210707",
+ "15.0.0-nightly.20210708",
+ "15.0.0-nightly.20210709",
+ "15.0.0-nightly.20210712",
+ "15.0.0-nightly.20210713",
+ "15.0.0-nightly.20210714",
+ "15.0.0-nightly.20210715",
+ "15.0.0-nightly.20210716",
+ "15.0.0-nightly.20210719",
+ "15.0.0-nightly.20210720",
+ "15.0.0-nightly.20210721",
+ "16.0.0-nightly.20210722",
+ "16.0.0-nightly.20210723",
+ "16.0.0-nightly.20210726"
+ ],
+ "93.0.4577.15": [
+ "14.0.0-beta.18",
+ "14.0.0-beta.19",
+ "14.0.0-beta.20",
+ "14.0.0-beta.21"
+ ],
+ "93.0.4577.25": [
+ "14.0.0-beta.22",
+ "14.0.0-beta.23"
+ ],
+ "93.0.4577.51": [
+ "14.0.0-beta.24",
+ "14.0.0-beta.25"
+ ],
+ "92.0.4475.0": [
+ "14.0.0-nightly.20210426",
+ "14.0.0-nightly.20210427"
+ ],
+ "92.0.4488.0": [
+ "14.0.0-nightly.20210430",
+ "14.0.0-nightly.20210503"
+ ],
+ "92.0.4496.0": [
+ "14.0.0-nightly.20210505"
+ ],
+ "92.0.4498.0": [
+ "14.0.0-nightly.20210506"
+ ],
+ "92.0.4499.0": [
+ "14.0.0-nightly.20210507",
+ "14.0.0-nightly.20210510",
+ "14.0.0-nightly.20210511",
+ "14.0.0-nightly.20210512",
+ "14.0.0-nightly.20210513"
+ ],
+ "92.0.4505.0": [
+ "14.0.0-nightly.20210514",
+ "14.0.0-nightly.20210517",
+ "14.0.0-nightly.20210518",
+ "14.0.0-nightly.20210519"
+ ],
+ "93.0.4577.58": [
+ "14.0.0"
+ ],
+ "94.0.4584.0": [
+ "15.0.0-alpha.3",
+ "15.0.0-alpha.4",
+ "15.0.0-alpha.5",
+ "15.0.0-alpha.6",
+ "16.0.0-nightly.20210727",
+ "16.0.0-nightly.20210728",
+ "16.0.0-nightly.20210729",
+ "16.0.0-nightly.20210730",
+ "16.0.0-nightly.20210802",
+ "16.0.0-nightly.20210803",
+ "16.0.0-nightly.20210804",
+ "16.0.0-nightly.20210805",
+ "16.0.0-nightly.20210806",
+ "16.0.0-nightly.20210809",
+ "16.0.0-nightly.20210810",
+ "16.0.0-nightly.20210811"
+ ],
+ "94.0.4590.2": [
+ "15.0.0-alpha.7",
+ "15.0.0-alpha.8",
+ "15.0.0-alpha.9",
+ "16.0.0-nightly.20210812",
+ "16.0.0-nightly.20210813",
+ "16.0.0-nightly.20210816",
+ "16.0.0-nightly.20210817",
+ "16.0.0-nightly.20210818",
+ "16.0.0-nightly.20210819",
+ "16.0.0-nightly.20210820",
+ "16.0.0-nightly.20210823"
+ ],
+ "94.0.4606.12": [
+ "15.0.0-alpha.10"
+ ],
+ "94.0.4606.20": [
+ "15.0.0-beta.1"
+ ],
+ "93.0.4530.0": [
+ "15.0.0-nightly.20210603",
+ "15.0.0-nightly.20210604"
+ ],
+ "93.0.4535.0": [
+ "15.0.0-nightly.20210608"
+ ],
+ "93.0.4550.0": [
+ "15.0.0-nightly.20210623",
+ "15.0.0-nightly.20210624"
+ ],
+ "93.0.4552.0": [
+ "15.0.0-nightly.20210625",
+ "15.0.0-nightly.20210628",
+ "15.0.0-nightly.20210629"
+ ],
+ "93.0.4558.0": [
+ "15.0.0-nightly.20210630",
+ "15.0.0-nightly.20210701",
+ "15.0.0-nightly.20210702",
+ "15.0.0-nightly.20210705"
+ ],
+ "95.0.4612.5": [
+ "16.0.0-nightly.20210824",
+ "16.0.0-nightly.20210825",
+ "16.0.0-nightly.20210826",
+ "16.0.0-nightly.20210827",
+ "16.0.0-nightly.20210830",
+ "16.0.0-nightly.20210831",
+ "16.0.0-nightly.20210901"
+ ]
+};
\ No newline at end of file
diff --git a/node_modules/electron-to-chromium/full-versions.js b/node_modules/electron-to-chromium/full-versions.js
new file mode 100644
index 00000000..f965c422
--- /dev/null
+++ b/node_modules/electron-to-chromium/full-versions.js
@@ -0,0 +1,1107 @@
+module.exports = {
+ "0.20.0": "39.0.2171.65",
+ "0.20.1": "39.0.2171.65",
+ "0.20.2": "39.0.2171.65",
+ "0.20.3": "39.0.2171.65",
+ "0.20.4": "39.0.2171.65",
+ "0.20.5": "39.0.2171.65",
+ "0.20.6": "39.0.2171.65",
+ "0.20.7": "39.0.2171.65",
+ "0.20.8": "39.0.2171.65",
+ "0.21.0": "40.0.2214.91",
+ "0.21.1": "40.0.2214.91",
+ "0.21.2": "40.0.2214.91",
+ "0.21.3": "41.0.2272.76",
+ "0.22.1": "41.0.2272.76",
+ "0.22.2": "41.0.2272.76",
+ "0.22.3": "41.0.2272.76",
+ "0.23.0": "41.0.2272.76",
+ "0.24.0": "41.0.2272.76",
+ "0.25.0": "42.0.2311.107",
+ "0.25.1": "42.0.2311.107",
+ "0.25.2": "42.0.2311.107",
+ "0.25.3": "42.0.2311.107",
+ "0.26.0": "42.0.2311.107",
+ "0.26.1": "42.0.2311.107",
+ "0.27.0": "42.0.2311.107",
+ "0.27.1": "42.0.2311.107",
+ "0.27.2": "43.0.2357.65",
+ "0.27.3": "43.0.2357.65",
+ "0.28.0": "43.0.2357.65",
+ "0.28.1": "43.0.2357.65",
+ "0.28.2": "43.0.2357.65",
+ "0.28.3": "43.0.2357.65",
+ "0.29.1": "43.0.2357.65",
+ "0.29.2": "43.0.2357.65",
+ "0.30.4": "44.0.2403.125",
+ "0.31.0": "44.0.2403.125",
+ "0.31.2": "45.0.2454.85",
+ "0.32.2": "45.0.2454.85",
+ "0.32.3": "45.0.2454.85",
+ "0.33.0": "45.0.2454.85",
+ "0.33.1": "45.0.2454.85",
+ "0.33.2": "45.0.2454.85",
+ "0.33.3": "45.0.2454.85",
+ "0.33.4": "45.0.2454.85",
+ "0.33.6": "45.0.2454.85",
+ "0.33.7": "45.0.2454.85",
+ "0.33.8": "45.0.2454.85",
+ "0.33.9": "45.0.2454.85",
+ "0.34.0": "45.0.2454.85",
+ "0.34.1": "45.0.2454.85",
+ "0.34.2": "45.0.2454.85",
+ "0.34.3": "45.0.2454.85",
+ "0.34.4": "45.0.2454.85",
+ "0.35.1": "45.0.2454.85",
+ "0.35.2": "45.0.2454.85",
+ "0.35.3": "45.0.2454.85",
+ "0.35.4": "45.0.2454.85",
+ "0.35.5": "45.0.2454.85",
+ "0.36.0": "47.0.2526.73",
+ "0.36.2": "47.0.2526.73",
+ "0.36.3": "47.0.2526.73",
+ "0.36.4": "47.0.2526.73",
+ "0.36.5": "47.0.2526.110",
+ "0.36.6": "47.0.2526.110",
+ "0.36.7": "47.0.2526.110",
+ "0.36.8": "47.0.2526.110",
+ "0.36.9": "47.0.2526.110",
+ "0.36.10": "47.0.2526.110",
+ "0.36.11": "47.0.2526.110",
+ "0.36.12": "47.0.2526.110",
+ "0.37.0": "49.0.2623.75",
+ "0.37.1": "49.0.2623.75",
+ "0.37.3": "49.0.2623.75",
+ "0.37.4": "49.0.2623.75",
+ "0.37.5": "49.0.2623.75",
+ "0.37.6": "49.0.2623.75",
+ "0.37.7": "49.0.2623.75",
+ "0.37.8": "49.0.2623.75",
+ "1.0.0": "49.0.2623.75",
+ "1.0.1": "49.0.2623.75",
+ "1.0.2": "49.0.2623.75",
+ "1.1.0": "50.0.2661.102",
+ "1.1.1": "50.0.2661.102",
+ "1.1.2": "50.0.2661.102",
+ "1.1.3": "50.0.2661.102",
+ "1.2.0": "51.0.2704.63",
+ "1.2.1": "51.0.2704.63",
+ "1.2.2": "51.0.2704.84",
+ "1.2.3": "51.0.2704.84",
+ "1.2.4": "51.0.2704.103",
+ "1.2.5": "51.0.2704.103",
+ "1.2.6": "51.0.2704.106",
+ "1.2.7": "51.0.2704.106",
+ "1.2.8": "51.0.2704.106",
+ "1.3.0": "52.0.2743.82",
+ "1.3.1": "52.0.2743.82",
+ "1.3.2": "52.0.2743.82",
+ "1.3.3": "52.0.2743.82",
+ "1.3.4": "52.0.2743.82",
+ "1.3.5": "52.0.2743.82",
+ "1.3.6": "52.0.2743.82",
+ "1.3.7": "52.0.2743.82",
+ "1.3.9": "52.0.2743.82",
+ "1.3.10": "52.0.2743.82",
+ "1.3.13": "52.0.2743.82",
+ "1.3.14": "52.0.2743.82",
+ "1.3.15": "52.0.2743.82",
+ "1.4.0": "53.0.2785.113",
+ "1.4.1": "53.0.2785.113",
+ "1.4.2": "53.0.2785.113",
+ "1.4.3": "53.0.2785.113",
+ "1.4.4": "53.0.2785.113",
+ "1.4.5": "53.0.2785.113",
+ "1.4.6": "53.0.2785.143",
+ "1.4.7": "53.0.2785.143",
+ "1.4.8": "53.0.2785.143",
+ "1.4.10": "53.0.2785.143",
+ "1.4.11": "53.0.2785.143",
+ "1.4.12": "54.0.2840.51",
+ "1.4.13": "53.0.2785.143",
+ "1.4.14": "53.0.2785.143",
+ "1.4.15": "53.0.2785.143",
+ "1.4.16": "53.0.2785.143",
+ "1.5.0": "54.0.2840.101",
+ "1.5.1": "54.0.2840.101",
+ "1.6.0": "56.0.2924.87",
+ "1.6.1": "56.0.2924.87",
+ "1.6.2": "56.0.2924.87",
+ "1.6.3": "56.0.2924.87",
+ "1.6.4": "56.0.2924.87",
+ "1.6.5": "56.0.2924.87",
+ "1.6.6": "56.0.2924.87",
+ "1.6.7": "56.0.2924.87",
+ "1.6.8": "56.0.2924.87",
+ "1.6.9": "56.0.2924.87",
+ "1.6.10": "56.0.2924.87",
+ "1.6.11": "56.0.2924.87",
+ "1.6.12": "56.0.2924.87",
+ "1.6.13": "56.0.2924.87",
+ "1.6.14": "56.0.2924.87",
+ "1.6.15": "56.0.2924.87",
+ "1.6.16": "56.0.2924.87",
+ "1.6.17": "56.0.2924.87",
+ "1.6.18": "56.0.2924.87",
+ "1.7.0": "58.0.3029.110",
+ "1.7.1": "58.0.3029.110",
+ "1.7.2": "58.0.3029.110",
+ "1.7.3": "58.0.3029.110",
+ "1.7.4": "58.0.3029.110",
+ "1.7.5": "58.0.3029.110",
+ "1.7.6": "58.0.3029.110",
+ "1.7.7": "58.0.3029.110",
+ "1.7.8": "58.0.3029.110",
+ "1.7.9": "58.0.3029.110",
+ "1.7.10": "58.0.3029.110",
+ "1.7.11": "58.0.3029.110",
+ "1.7.12": "58.0.3029.110",
+ "1.7.13": "58.0.3029.110",
+ "1.7.14": "58.0.3029.110",
+ "1.7.15": "58.0.3029.110",
+ "1.7.16": "58.0.3029.110",
+ "1.8.0": "59.0.3071.115",
+ "1.8.1": "59.0.3071.115",
+ "1.8.2-beta.1": "59.0.3071.115",
+ "1.8.2-beta.2": "59.0.3071.115",
+ "1.8.2-beta.3": "59.0.3071.115",
+ "1.8.2-beta.4": "59.0.3071.115",
+ "1.8.2-beta.5": "59.0.3071.115",
+ "1.8.2": "59.0.3071.115",
+ "1.8.3": "59.0.3071.115",
+ "1.8.4": "59.0.3071.115",
+ "1.8.5": "59.0.3071.115",
+ "1.8.6": "59.0.3071.115",
+ "1.8.7": "59.0.3071.115",
+ "1.8.8": "59.0.3071.115",
+ "2.0.0-beta.1": "61.0.3163.100",
+ "2.0.0-beta.2": "61.0.3163.100",
+ "2.0.0-beta.3": "61.0.3163.100",
+ "2.0.0-beta.4": "61.0.3163.100",
+ "2.0.0-beta.5": "61.0.3163.100",
+ "2.0.0-beta.6": "61.0.3163.100",
+ "2.0.0-beta.7": "61.0.3163.100",
+ "2.0.0-beta.8": "61.0.3163.100",
+ "2.0.0": "61.0.3163.100",
+ "2.0.1": "61.0.3163.100",
+ "2.0.2": "61.0.3163.100",
+ "2.0.3": "61.0.3163.100",
+ "2.0.4": "61.0.3163.100",
+ "2.0.5": "61.0.3163.100",
+ "2.0.6": "61.0.3163.100",
+ "2.0.7": "61.0.3163.100",
+ "2.0.8-nightly.20180819": "61.0.3163.100",
+ "2.0.8-nightly.20180820": "61.0.3163.100",
+ "2.0.8": "61.0.3163.100",
+ "2.0.9": "61.0.3163.100",
+ "2.0.10": "61.0.3163.100",
+ "2.0.11": "61.0.3163.100",
+ "2.0.12": "61.0.3163.100",
+ "2.0.13": "61.0.3163.100",
+ "2.0.14": "61.0.3163.100",
+ "2.0.15": "61.0.3163.100",
+ "2.0.16": "61.0.3163.100",
+ "2.0.17": "61.0.3163.100",
+ "2.0.18": "61.0.3163.100",
+ "2.1.0-unsupported.20180809": "61.0.3163.100",
+ "3.0.0-beta.1": "66.0.3359.181",
+ "3.0.0-beta.2": "66.0.3359.181",
+ "3.0.0-beta.3": "66.0.3359.181",
+ "3.0.0-beta.4": "66.0.3359.181",
+ "3.0.0-beta.5": "66.0.3359.181",
+ "3.0.0-beta.6": "66.0.3359.181",
+ "3.0.0-beta.7": "66.0.3359.181",
+ "3.0.0-beta.8": "66.0.3359.181",
+ "3.0.0-beta.9": "66.0.3359.181",
+ "3.0.0-beta.10": "66.0.3359.181",
+ "3.0.0-beta.11": "66.0.3359.181",
+ "3.0.0-beta.12": "66.0.3359.181",
+ "3.0.0-beta.13": "66.0.3359.181",
+ "3.0.0-nightly.20180818": "66.0.3359.181",
+ "3.0.0-nightly.20180821": "66.0.3359.181",
+ "3.0.0-nightly.20180823": "66.0.3359.181",
+ "3.0.0-nightly.20180904": "66.0.3359.181",
+ "3.0.0": "66.0.3359.181",
+ "3.0.1": "66.0.3359.181",
+ "3.0.2": "66.0.3359.181",
+ "3.0.3": "66.0.3359.181",
+ "3.0.4": "66.0.3359.181",
+ "3.0.5": "66.0.3359.181",
+ "3.0.6": "66.0.3359.181",
+ "3.0.7": "66.0.3359.181",
+ "3.0.8": "66.0.3359.181",
+ "3.0.9": "66.0.3359.181",
+ "3.0.10": "66.0.3359.181",
+ "3.0.11": "66.0.3359.181",
+ "3.0.12": "66.0.3359.181",
+ "3.0.13": "66.0.3359.181",
+ "3.0.14": "66.0.3359.181",
+ "3.0.15": "66.0.3359.181",
+ "3.0.16": "66.0.3359.181",
+ "3.1.0-beta.1": "66.0.3359.181",
+ "3.1.0-beta.2": "66.0.3359.181",
+ "3.1.0-beta.3": "66.0.3359.181",
+ "3.1.0-beta.4": "66.0.3359.181",
+ "3.1.0-beta.5": "66.0.3359.181",
+ "3.1.0": "66.0.3359.181",
+ "3.1.1": "66.0.3359.181",
+ "3.1.2": "66.0.3359.181",
+ "3.1.3": "66.0.3359.181",
+ "3.1.4": "66.0.3359.181",
+ "3.1.5": "66.0.3359.181",
+ "3.1.6": "66.0.3359.181",
+ "3.1.7": "66.0.3359.181",
+ "3.1.8": "66.0.3359.181",
+ "3.1.9": "66.0.3359.181",
+ "3.1.10": "66.0.3359.181",
+ "3.1.11": "66.0.3359.181",
+ "3.1.12": "66.0.3359.181",
+ "3.1.13": "66.0.3359.181",
+ "4.0.0-beta.1": "69.0.3497.106",
+ "4.0.0-beta.2": "69.0.3497.106",
+ "4.0.0-beta.3": "69.0.3497.106",
+ "4.0.0-beta.4": "69.0.3497.106",
+ "4.0.0-beta.5": "69.0.3497.106",
+ "4.0.0-beta.6": "69.0.3497.106",
+ "4.0.0-beta.7": "69.0.3497.106",
+ "4.0.0-beta.8": "69.0.3497.106",
+ "4.0.0-beta.9": "69.0.3497.106",
+ "4.0.0-beta.10": "69.0.3497.106",
+ "4.0.0-beta.11": "69.0.3497.106",
+ "4.0.0-nightly.20180817": "66.0.3359.181",
+ "4.0.0-nightly.20180819": "66.0.3359.181",
+ "4.0.0-nightly.20180821": "66.0.3359.181",
+ "4.0.0-nightly.20180929": "67.0.3396.99",
+ "4.0.0-nightly.20181006": "68.0.3440.128",
+ "4.0.0-nightly.20181010": "69.0.3497.106",
+ "4.0.0": "69.0.3497.106",
+ "4.0.1": "69.0.3497.106",
+ "4.0.2": "69.0.3497.106",
+ "4.0.3": "69.0.3497.106",
+ "4.0.4": "69.0.3497.106",
+ "4.0.5": "69.0.3497.106",
+ "4.0.6": "69.0.3497.106",
+ "4.0.7": "69.0.3497.128",
+ "4.0.8": "69.0.3497.128",
+ "4.1.0": "69.0.3497.128",
+ "4.1.1": "69.0.3497.128",
+ "4.1.2": "69.0.3497.128",
+ "4.1.3": "69.0.3497.128",
+ "4.1.4": "69.0.3497.128",
+ "4.1.5": "69.0.3497.128",
+ "4.2.0": "69.0.3497.128",
+ "4.2.1": "69.0.3497.128",
+ "4.2.2": "69.0.3497.128",
+ "4.2.3": "69.0.3497.128",
+ "4.2.4": "69.0.3497.128",
+ "4.2.5": "69.0.3497.128",
+ "4.2.6": "69.0.3497.128",
+ "4.2.7": "69.0.3497.128",
+ "4.2.8": "69.0.3497.128",
+ "4.2.9": "69.0.3497.128",
+ "4.2.10": "69.0.3497.128",
+ "4.2.11": "69.0.3497.128",
+ "4.2.12": "69.0.3497.128",
+ "5.0.0-beta.1": "72.0.3626.52",
+ "5.0.0-beta.2": "72.0.3626.52",
+ "5.0.0-beta.3": "73.0.3683.27",
+ "5.0.0-beta.4": "73.0.3683.54",
+ "5.0.0-beta.5": "73.0.3683.61",
+ "5.0.0-beta.6": "73.0.3683.84",
+ "5.0.0-beta.7": "73.0.3683.94",
+ "5.0.0-beta.8": "73.0.3683.104",
+ "5.0.0-beta.9": "73.0.3683.117",
+ "5.0.0-nightly.20190107": "70.0.3538.110",
+ "5.0.0-nightly.20190121": "71.0.3578.98",
+ "5.0.0-nightly.20190122": "71.0.3578.98",
+ "5.0.0": "73.0.3683.119",
+ "5.0.1": "73.0.3683.121",
+ "5.0.2": "73.0.3683.121",
+ "5.0.3": "73.0.3683.121",
+ "5.0.4": "73.0.3683.121",
+ "5.0.5": "73.0.3683.121",
+ "5.0.6": "73.0.3683.121",
+ "5.0.7": "73.0.3683.121",
+ "5.0.8": "73.0.3683.121",
+ "5.0.9": "73.0.3683.121",
+ "5.0.10": "73.0.3683.121",
+ "5.0.11": "73.0.3683.121",
+ "5.0.12": "73.0.3683.121",
+ "5.0.13": "73.0.3683.121",
+ "6.0.0-beta.1": "76.0.3774.1",
+ "6.0.0-beta.2": "76.0.3783.1",
+ "6.0.0-beta.3": "76.0.3783.1",
+ "6.0.0-beta.4": "76.0.3783.1",
+ "6.0.0-beta.5": "76.0.3805.4",
+ "6.0.0-beta.6": "76.0.3809.3",
+ "6.0.0-beta.7": "76.0.3809.22",
+ "6.0.0-beta.8": "76.0.3809.26",
+ "6.0.0-beta.9": "76.0.3809.26",
+ "6.0.0-beta.10": "76.0.3809.37",
+ "6.0.0-beta.11": "76.0.3809.42",
+ "6.0.0-beta.12": "76.0.3809.54",
+ "6.0.0-beta.13": "76.0.3809.60",
+ "6.0.0-beta.14": "76.0.3809.68",
+ "6.0.0-beta.15": "76.0.3809.74",
+ "6.0.0-nightly.20190212": "72.0.3626.107",
+ "6.0.0-nightly.20190213": "72.0.3626.110",
+ "6.0.0-nightly.20190311": "74.0.3724.8",
+ "6.0.0": "76.0.3809.88",
+ "6.0.1": "76.0.3809.102",
+ "6.0.2": "76.0.3809.110",
+ "6.0.3": "76.0.3809.126",
+ "6.0.4": "76.0.3809.131",
+ "6.0.5": "76.0.3809.136",
+ "6.0.6": "76.0.3809.138",
+ "6.0.7": "76.0.3809.139",
+ "6.0.8": "76.0.3809.146",
+ "6.0.9": "76.0.3809.146",
+ "6.0.10": "76.0.3809.146",
+ "6.0.11": "76.0.3809.146",
+ "6.0.12": "76.0.3809.146",
+ "6.1.0": "76.0.3809.146",
+ "6.1.1": "76.0.3809.146",
+ "6.1.2": "76.0.3809.146",
+ "6.1.3": "76.0.3809.146",
+ "6.1.4": "76.0.3809.146",
+ "6.1.5": "76.0.3809.146",
+ "6.1.6": "76.0.3809.146",
+ "6.1.7": "76.0.3809.146",
+ "6.1.8": "76.0.3809.146",
+ "6.1.9": "76.0.3809.146",
+ "6.1.10": "76.0.3809.146",
+ "6.1.11": "76.0.3809.146",
+ "6.1.12": "76.0.3809.146",
+ "7.0.0-beta.1": "78.0.3866.0",
+ "7.0.0-beta.2": "78.0.3866.0",
+ "7.0.0-beta.3": "78.0.3866.0",
+ "7.0.0-beta.4": "78.0.3896.6",
+ "7.0.0-beta.5": "78.0.3905.1",
+ "7.0.0-beta.6": "78.0.3905.1",
+ "7.0.0-beta.7": "78.0.3905.1",
+ "7.0.0-nightly.20190521": "76.0.3784.0",
+ "7.0.0-nightly.20190529": "76.0.3806.0",
+ "7.0.0-nightly.20190530": "76.0.3806.0",
+ "7.0.0-nightly.20190531": "76.0.3806.0",
+ "7.0.0-nightly.20190602": "76.0.3806.0",
+ "7.0.0-nightly.20190603": "76.0.3806.0",
+ "7.0.0-nightly.20190604": "77.0.3814.0",
+ "7.0.0-nightly.20190605": "77.0.3815.0",
+ "7.0.0-nightly.20190606": "77.0.3815.0",
+ "7.0.0-nightly.20190607": "77.0.3815.0",
+ "7.0.0-nightly.20190608": "77.0.3815.0",
+ "7.0.0-nightly.20190609": "77.0.3815.0",
+ "7.0.0-nightly.20190611": "77.0.3815.0",
+ "7.0.0-nightly.20190612": "77.0.3815.0",
+ "7.0.0-nightly.20190613": "77.0.3815.0",
+ "7.0.0-nightly.20190615": "77.0.3815.0",
+ "7.0.0-nightly.20190616": "77.0.3815.0",
+ "7.0.0-nightly.20190618": "77.0.3815.0",
+ "7.0.0-nightly.20190619": "77.0.3815.0",
+ "7.0.0-nightly.20190622": "77.0.3815.0",
+ "7.0.0-nightly.20190623": "77.0.3815.0",
+ "7.0.0-nightly.20190624": "77.0.3815.0",
+ "7.0.0-nightly.20190627": "77.0.3815.0",
+ "7.0.0-nightly.20190629": "77.0.3815.0",
+ "7.0.0-nightly.20190630": "77.0.3815.0",
+ "7.0.0-nightly.20190701": "77.0.3815.0",
+ "7.0.0-nightly.20190702": "77.0.3815.0",
+ "7.0.0-nightly.20190704": "77.0.3843.0",
+ "7.0.0-nightly.20190705": "77.0.3843.0",
+ "7.0.0-nightly.20190719": "77.0.3848.0",
+ "7.0.0-nightly.20190720": "77.0.3848.0",
+ "7.0.0-nightly.20190721": "77.0.3848.0",
+ "7.0.0-nightly.20190726": "77.0.3864.0",
+ "7.0.0-nightly.20190727": "78.0.3866.0",
+ "7.0.0-nightly.20190728": "78.0.3866.0",
+ "7.0.0-nightly.20190729": "78.0.3866.0",
+ "7.0.0-nightly.20190730": "78.0.3866.0",
+ "7.0.0-nightly.20190731": "78.0.3866.0",
+ "7.0.0": "78.0.3905.1",
+ "7.0.1": "78.0.3904.92",
+ "7.1.0": "78.0.3904.94",
+ "7.1.1": "78.0.3904.99",
+ "7.1.2": "78.0.3904.113",
+ "7.1.3": "78.0.3904.126",
+ "7.1.4": "78.0.3904.130",
+ "7.1.5": "78.0.3904.130",
+ "7.1.6": "78.0.3904.130",
+ "7.1.7": "78.0.3904.130",
+ "7.1.8": "78.0.3904.130",
+ "7.1.9": "78.0.3904.130",
+ "7.1.10": "78.0.3904.130",
+ "7.1.11": "78.0.3904.130",
+ "7.1.12": "78.0.3904.130",
+ "7.1.13": "78.0.3904.130",
+ "7.1.14": "78.0.3904.130",
+ "7.2.0": "78.0.3904.130",
+ "7.2.1": "78.0.3904.130",
+ "7.2.2": "78.0.3904.130",
+ "7.2.3": "78.0.3904.130",
+ "7.2.4": "78.0.3904.130",
+ "7.3.0": "78.0.3904.130",
+ "7.3.1": "78.0.3904.130",
+ "7.3.2": "78.0.3904.130",
+ "7.3.3": "78.0.3904.130",
+ "8.0.0-beta.1": "79.0.3931.0",
+ "8.0.0-beta.2": "79.0.3931.0",
+ "8.0.0-beta.3": "80.0.3955.0",
+ "8.0.0-beta.4": "80.0.3955.0",
+ "8.0.0-beta.5": "80.0.3987.14",
+ "8.0.0-beta.6": "80.0.3987.51",
+ "8.0.0-beta.7": "80.0.3987.59",
+ "8.0.0-beta.8": "80.0.3987.75",
+ "8.0.0-beta.9": "80.0.3987.75",
+ "8.0.0-nightly.20190801": "78.0.3866.0",
+ "8.0.0-nightly.20190802": "78.0.3866.0",
+ "8.0.0-nightly.20190803": "78.0.3871.0",
+ "8.0.0-nightly.20190806": "78.0.3871.0",
+ "8.0.0-nightly.20190807": "78.0.3871.0",
+ "8.0.0-nightly.20190808": "78.0.3871.0",
+ "8.0.0-nightly.20190809": "78.0.3871.0",
+ "8.0.0-nightly.20190810": "78.0.3871.0",
+ "8.0.0-nightly.20190811": "78.0.3871.0",
+ "8.0.0-nightly.20190812": "78.0.3871.0",
+ "8.0.0-nightly.20190813": "78.0.3871.0",
+ "8.0.0-nightly.20190814": "78.0.3871.0",
+ "8.0.0-nightly.20190815": "78.0.3871.0",
+ "8.0.0-nightly.20190816": "78.0.3881.0",
+ "8.0.0-nightly.20190817": "78.0.3881.0",
+ "8.0.0-nightly.20190818": "78.0.3881.0",
+ "8.0.0-nightly.20190819": "78.0.3881.0",
+ "8.0.0-nightly.20190820": "78.0.3881.0",
+ "8.0.0-nightly.20190824": "78.0.3892.0",
+ "8.0.0-nightly.20190825": "78.0.3892.0",
+ "8.0.0-nightly.20190827": "78.0.3892.0",
+ "8.0.0-nightly.20190828": "78.0.3892.0",
+ "8.0.0-nightly.20190830": "78.0.3892.0",
+ "8.0.0-nightly.20190901": "78.0.3892.0",
+ "8.0.0-nightly.20190902": "78.0.3892.0",
+ "8.0.0-nightly.20190907": "78.0.3892.0",
+ "8.0.0-nightly.20190909": "78.0.3892.0",
+ "8.0.0-nightly.20190910": "78.0.3892.0",
+ "8.0.0-nightly.20190911": "78.0.3892.0",
+ "8.0.0-nightly.20190913": "78.0.3892.0",
+ "8.0.0-nightly.20190914": "78.0.3892.0",
+ "8.0.0-nightly.20190915": "78.0.3892.0",
+ "8.0.0-nightly.20190917": "78.0.3892.0",
+ "8.0.0-nightly.20190919": "79.0.3915.0",
+ "8.0.0-nightly.20190920": "79.0.3915.0",
+ "8.0.0-nightly.20190923": "79.0.3919.0",
+ "8.0.0-nightly.20190924": "79.0.3919.0",
+ "8.0.0-nightly.20190926": "79.0.3919.0",
+ "8.0.0-nightly.20190929": "79.0.3919.0",
+ "8.0.0-nightly.20190930": "79.0.3919.0",
+ "8.0.0-nightly.20191001": "79.0.3919.0",
+ "8.0.0-nightly.20191004": "79.0.3919.0",
+ "8.0.0-nightly.20191005": "79.0.3919.0",
+ "8.0.0-nightly.20191006": "79.0.3919.0",
+ "8.0.0-nightly.20191009": "79.0.3919.0",
+ "8.0.0-nightly.20191011": "79.0.3919.0",
+ "8.0.0-nightly.20191012": "79.0.3919.0",
+ "8.0.0-nightly.20191017": "79.0.3919.0",
+ "8.0.0-nightly.20191019": "79.0.3931.0",
+ "8.0.0-nightly.20191020": "79.0.3931.0",
+ "8.0.0-nightly.20191021": "79.0.3931.0",
+ "8.0.0-nightly.20191023": "79.0.3931.0",
+ "8.0.0-nightly.20191101": "80.0.3952.0",
+ "8.0.0-nightly.20191105": "80.0.3952.0",
+ "8.0.0": "80.0.3987.86",
+ "8.0.1": "80.0.3987.86",
+ "8.0.2": "80.0.3987.86",
+ "8.0.3": "80.0.3987.134",
+ "8.1.0": "80.0.3987.137",
+ "8.1.1": "80.0.3987.141",
+ "8.2.0": "80.0.3987.158",
+ "8.2.1": "80.0.3987.163",
+ "8.2.2": "80.0.3987.163",
+ "8.2.3": "80.0.3987.163",
+ "8.2.4": "80.0.3987.165",
+ "8.2.5": "80.0.3987.165",
+ "8.3.0": "80.0.3987.165",
+ "8.3.1": "80.0.3987.165",
+ "8.3.2": "80.0.3987.165",
+ "8.3.3": "80.0.3987.165",
+ "8.3.4": "80.0.3987.165",
+ "8.4.0": "80.0.3987.165",
+ "8.4.1": "80.0.3987.165",
+ "8.5.0": "80.0.3987.165",
+ "8.5.1": "80.0.3987.165",
+ "8.5.2": "80.0.3987.165",
+ "8.5.3": "80.0.3987.163",
+ "8.5.4": "80.0.3987.163",
+ "8.5.5": "80.0.3987.163",
+ "9.0.0-beta.1": "82.0.4048.0",
+ "9.0.0-beta.2": "82.0.4048.0",
+ "9.0.0-beta.3": "82.0.4048.0",
+ "9.0.0-beta.4": "82.0.4048.0",
+ "9.0.0-beta.5": "82.0.4048.0",
+ "9.0.0-beta.6": "82.0.4058.2",
+ "9.0.0-beta.7": "82.0.4058.2",
+ "9.0.0-beta.9": "82.0.4058.2",
+ "9.0.0-beta.10": "82.0.4085.10",
+ "9.0.0-beta.12": "82.0.4085.14",
+ "9.0.0-beta.13": "82.0.4085.14",
+ "9.0.0-beta.14": "82.0.4085.27",
+ "9.0.0-beta.15": "83.0.4102.3",
+ "9.0.0-beta.16": "83.0.4102.3",
+ "9.0.0-beta.17": "83.0.4103.14",
+ "9.0.0-beta.18": "83.0.4103.16",
+ "9.0.0-beta.19": "83.0.4103.24",
+ "9.0.0-beta.20": "83.0.4103.26",
+ "9.0.0-beta.21": "83.0.4103.26",
+ "9.0.0-beta.22": "83.0.4103.34",
+ "9.0.0-beta.23": "83.0.4103.44",
+ "9.0.0-beta.24": "83.0.4103.45",
+ "9.0.0-nightly.20191121": "80.0.3954.0",
+ "9.0.0-nightly.20191122": "80.0.3954.0",
+ "9.0.0-nightly.20191123": "80.0.3954.0",
+ "9.0.0-nightly.20191124": "80.0.3954.0",
+ "9.0.0-nightly.20191129": "80.0.3954.0",
+ "9.0.0-nightly.20191130": "80.0.3954.0",
+ "9.0.0-nightly.20191201": "80.0.3954.0",
+ "9.0.0-nightly.20191202": "80.0.3954.0",
+ "9.0.0-nightly.20191203": "80.0.3954.0",
+ "9.0.0-nightly.20191204": "80.0.3954.0",
+ "9.0.0-nightly.20191210": "80.0.3954.0",
+ "9.0.0-nightly.20191220": "81.0.3994.0",
+ "9.0.0-nightly.20191221": "81.0.3994.0",
+ "9.0.0-nightly.20191222": "81.0.3994.0",
+ "9.0.0-nightly.20191223": "81.0.3994.0",
+ "9.0.0-nightly.20191224": "81.0.3994.0",
+ "9.0.0-nightly.20191225": "81.0.3994.0",
+ "9.0.0-nightly.20191226": "81.0.3994.0",
+ "9.0.0-nightly.20191228": "81.0.3994.0",
+ "9.0.0-nightly.20191229": "81.0.3994.0",
+ "9.0.0-nightly.20191230": "81.0.3994.0",
+ "9.0.0-nightly.20191231": "81.0.3994.0",
+ "9.0.0-nightly.20200101": "81.0.3994.0",
+ "9.0.0-nightly.20200103": "81.0.3994.0",
+ "9.0.0-nightly.20200104": "81.0.3994.0",
+ "9.0.0-nightly.20200105": "81.0.3994.0",
+ "9.0.0-nightly.20200106": "81.0.3994.0",
+ "9.0.0-nightly.20200108": "81.0.3994.0",
+ "9.0.0-nightly.20200109": "81.0.3994.0",
+ "9.0.0-nightly.20200110": "81.0.3994.0",
+ "9.0.0-nightly.20200111": "81.0.3994.0",
+ "9.0.0-nightly.20200113": "81.0.3994.0",
+ "9.0.0-nightly.20200115": "81.0.3994.0",
+ "9.0.0-nightly.20200116": "81.0.3994.0",
+ "9.0.0-nightly.20200117": "81.0.3994.0",
+ "9.0.0-nightly.20200119": "81.0.4030.0",
+ "9.0.0-nightly.20200121": "81.0.4030.0",
+ "9.0.0": "83.0.4103.64",
+ "9.0.1": "83.0.4103.94",
+ "9.0.2": "83.0.4103.94",
+ "9.0.3": "83.0.4103.100",
+ "9.0.4": "83.0.4103.104",
+ "9.0.5": "83.0.4103.119",
+ "9.1.0": "83.0.4103.122",
+ "9.1.1": "83.0.4103.122",
+ "9.1.2": "83.0.4103.122",
+ "9.2.0": "83.0.4103.122",
+ "9.2.1": "83.0.4103.122",
+ "9.3.0": "83.0.4103.122",
+ "9.3.1": "83.0.4103.122",
+ "9.3.2": "83.0.4103.122",
+ "9.3.3": "83.0.4103.122",
+ "9.3.4": "83.0.4103.122",
+ "9.3.5": "83.0.4103.122",
+ "9.4.0": "83.0.4103.122",
+ "9.4.1": "83.0.4103.122",
+ "9.4.2": "83.0.4103.122",
+ "9.4.3": "83.0.4103.122",
+ "9.4.4": "83.0.4103.122",
+ "10.0.0-beta.1": "84.0.4129.0",
+ "10.0.0-beta.2": "84.0.4129.0",
+ "10.0.0-beta.3": "85.0.4161.2",
+ "10.0.0-beta.4": "85.0.4161.2",
+ "10.0.0-beta.8": "85.0.4181.1",
+ "10.0.0-beta.9": "85.0.4181.1",
+ "10.0.0-beta.10": "85.0.4183.19",
+ "10.0.0-beta.11": "85.0.4183.20",
+ "10.0.0-beta.12": "85.0.4183.26",
+ "10.0.0-beta.13": "85.0.4183.39",
+ "10.0.0-beta.14": "85.0.4183.39",
+ "10.0.0-beta.15": "85.0.4183.39",
+ "10.0.0-beta.17": "85.0.4183.39",
+ "10.0.0-beta.19": "85.0.4183.39",
+ "10.0.0-beta.20": "85.0.4183.39",
+ "10.0.0-beta.21": "85.0.4183.39",
+ "10.0.0-beta.23": "85.0.4183.70",
+ "10.0.0-beta.24": "85.0.4183.78",
+ "10.0.0-beta.25": "85.0.4183.80",
+ "10.0.0-nightly.20200209": "82.0.4050.0",
+ "10.0.0-nightly.20200210": "82.0.4050.0",
+ "10.0.0-nightly.20200211": "82.0.4050.0",
+ "10.0.0-nightly.20200216": "82.0.4050.0",
+ "10.0.0-nightly.20200217": "82.0.4050.0",
+ "10.0.0-nightly.20200218": "82.0.4050.0",
+ "10.0.0-nightly.20200221": "82.0.4050.0",
+ "10.0.0-nightly.20200222": "82.0.4050.0",
+ "10.0.0-nightly.20200223": "82.0.4050.0",
+ "10.0.0-nightly.20200226": "82.0.4050.0",
+ "10.0.0-nightly.20200303": "82.0.4050.0",
+ "10.0.0-nightly.20200304": "82.0.4076.0",
+ "10.0.0-nightly.20200305": "82.0.4076.0",
+ "10.0.0-nightly.20200306": "82.0.4076.0",
+ "10.0.0-nightly.20200309": "82.0.4076.0",
+ "10.0.0-nightly.20200310": "82.0.4076.0",
+ "10.0.0-nightly.20200311": "82.0.4083.0",
+ "10.0.0-nightly.20200316": "83.0.4086.0",
+ "10.0.0-nightly.20200317": "83.0.4087.0",
+ "10.0.0-nightly.20200318": "83.0.4087.0",
+ "10.0.0-nightly.20200320": "83.0.4087.0",
+ "10.0.0-nightly.20200323": "83.0.4087.0",
+ "10.0.0-nightly.20200324": "83.0.4087.0",
+ "10.0.0-nightly.20200325": "83.0.4087.0",
+ "10.0.0-nightly.20200326": "83.0.4087.0",
+ "10.0.0-nightly.20200327": "83.0.4087.0",
+ "10.0.0-nightly.20200330": "83.0.4087.0",
+ "10.0.0-nightly.20200331": "83.0.4087.0",
+ "10.0.0-nightly.20200401": "83.0.4087.0",
+ "10.0.0-nightly.20200402": "83.0.4087.0",
+ "10.0.0-nightly.20200403": "83.0.4087.0",
+ "10.0.0-nightly.20200406": "83.0.4087.0",
+ "10.0.0-nightly.20200408": "83.0.4095.0",
+ "10.0.0-nightly.20200410": "83.0.4095.0",
+ "10.0.0-nightly.20200413": "83.0.4095.0",
+ "10.0.0-nightly.20200414": "84.0.4114.0",
+ "10.0.0-nightly.20200415": "84.0.4115.0",
+ "10.0.0-nightly.20200416": "84.0.4115.0",
+ "10.0.0-nightly.20200417": "84.0.4115.0",
+ "10.0.0-nightly.20200422": "84.0.4121.0",
+ "10.0.0-nightly.20200423": "84.0.4121.0",
+ "10.0.0-nightly.20200427": "84.0.4125.0",
+ "10.0.0-nightly.20200428": "84.0.4125.0",
+ "10.0.0-nightly.20200429": "84.0.4125.0",
+ "10.0.0-nightly.20200430": "84.0.4125.0",
+ "10.0.0-nightly.20200501": "84.0.4129.0",
+ "10.0.0-nightly.20200504": "84.0.4129.0",
+ "10.0.0-nightly.20200505": "84.0.4129.0",
+ "10.0.0-nightly.20200506": "84.0.4129.0",
+ "10.0.0-nightly.20200507": "84.0.4129.0",
+ "10.0.0-nightly.20200508": "84.0.4129.0",
+ "10.0.0-nightly.20200511": "84.0.4129.0",
+ "10.0.0-nightly.20200512": "84.0.4129.0",
+ "10.0.0-nightly.20200513": "84.0.4129.0",
+ "10.0.0-nightly.20200514": "84.0.4129.0",
+ "10.0.0-nightly.20200515": "84.0.4129.0",
+ "10.0.0-nightly.20200518": "84.0.4129.0",
+ "10.0.0-nightly.20200519": "84.0.4129.0",
+ "10.0.0-nightly.20200520": "84.0.4129.0",
+ "10.0.0-nightly.20200521": "84.0.4129.0",
+ "10.0.0": "85.0.4183.84",
+ "10.0.1": "85.0.4183.86",
+ "10.1.0": "85.0.4183.87",
+ "10.1.1": "85.0.4183.93",
+ "10.1.2": "85.0.4183.98",
+ "10.1.3": "85.0.4183.121",
+ "10.1.4": "85.0.4183.121",
+ "10.1.5": "85.0.4183.121",
+ "10.1.6": "85.0.4183.121",
+ "10.1.7": "85.0.4183.121",
+ "10.2.0": "85.0.4183.121",
+ "10.3.0": "85.0.4183.121",
+ "10.3.1": "85.0.4183.121",
+ "10.3.2": "85.0.4183.121",
+ "10.4.0": "85.0.4183.121",
+ "10.4.1": "85.0.4183.121",
+ "10.4.2": "85.0.4183.121",
+ "10.4.3": "85.0.4183.121",
+ "10.4.4": "85.0.4183.121",
+ "10.4.5": "85.0.4183.121",
+ "10.4.6": "85.0.4183.121",
+ "10.4.7": "85.0.4183.121",
+ "11.0.0-beta.1": "86.0.4234.0",
+ "11.0.0-beta.3": "86.0.4234.0",
+ "11.0.0-beta.4": "86.0.4234.0",
+ "11.0.0-beta.5": "86.0.4234.0",
+ "11.0.0-beta.6": "86.0.4234.0",
+ "11.0.0-beta.7": "86.0.4234.0",
+ "11.0.0-beta.8": "87.0.4251.1",
+ "11.0.0-beta.9": "87.0.4251.1",
+ "11.0.0-beta.11": "87.0.4251.1",
+ "11.0.0-beta.12": "87.0.4280.11",
+ "11.0.0-beta.13": "87.0.4280.11",
+ "11.0.0-beta.16": "87.0.4280.27",
+ "11.0.0-beta.17": "87.0.4280.27",
+ "11.0.0-beta.18": "87.0.4280.27",
+ "11.0.0-beta.19": "87.0.4280.27",
+ "11.0.0-beta.20": "87.0.4280.40",
+ "11.0.0-beta.22": "87.0.4280.47",
+ "11.0.0-beta.23": "87.0.4280.47",
+ "11.0.0-nightly.20200525": "84.0.4129.0",
+ "11.0.0-nightly.20200526": "84.0.4129.0",
+ "11.0.0-nightly.20200529": "85.0.4156.0",
+ "11.0.0-nightly.20200602": "85.0.4162.0",
+ "11.0.0-nightly.20200603": "85.0.4162.0",
+ "11.0.0-nightly.20200604": "85.0.4162.0",
+ "11.0.0-nightly.20200609": "85.0.4162.0",
+ "11.0.0-nightly.20200610": "85.0.4162.0",
+ "11.0.0-nightly.20200611": "85.0.4162.0",
+ "11.0.0-nightly.20200615": "85.0.4162.0",
+ "11.0.0-nightly.20200616": "85.0.4162.0",
+ "11.0.0-nightly.20200617": "85.0.4162.0",
+ "11.0.0-nightly.20200618": "85.0.4162.0",
+ "11.0.0-nightly.20200619": "85.0.4162.0",
+ "11.0.0-nightly.20200701": "85.0.4179.0",
+ "11.0.0-nightly.20200702": "85.0.4179.0",
+ "11.0.0-nightly.20200703": "85.0.4179.0",
+ "11.0.0-nightly.20200706": "85.0.4179.0",
+ "11.0.0-nightly.20200707": "85.0.4179.0",
+ "11.0.0-nightly.20200708": "85.0.4179.0",
+ "11.0.0-nightly.20200709": "85.0.4179.0",
+ "11.0.0-nightly.20200716": "86.0.4203.0",
+ "11.0.0-nightly.20200717": "86.0.4203.0",
+ "11.0.0-nightly.20200720": "86.0.4203.0",
+ "11.0.0-nightly.20200721": "86.0.4203.0",
+ "11.0.0-nightly.20200723": "86.0.4209.0",
+ "11.0.0-nightly.20200724": "86.0.4209.0",
+ "11.0.0-nightly.20200729": "86.0.4209.0",
+ "11.0.0-nightly.20200730": "86.0.4209.0",
+ "11.0.0-nightly.20200731": "86.0.4209.0",
+ "11.0.0-nightly.20200803": "86.0.4209.0",
+ "11.0.0-nightly.20200804": "86.0.4209.0",
+ "11.0.0-nightly.20200805": "86.0.4209.0",
+ "11.0.0-nightly.20200811": "86.0.4209.0",
+ "11.0.0-nightly.20200812": "86.0.4209.0",
+ "11.0.0-nightly.20200822": "86.0.4234.0",
+ "11.0.0-nightly.20200824": "86.0.4234.0",
+ "11.0.0-nightly.20200825": "86.0.4234.0",
+ "11.0.0-nightly.20200826": "86.0.4234.0",
+ "11.0.0": "87.0.4280.60",
+ "11.0.1": "87.0.4280.60",
+ "11.0.2": "87.0.4280.67",
+ "11.0.3": "87.0.4280.67",
+ "11.0.4": "87.0.4280.67",
+ "11.0.5": "87.0.4280.88",
+ "11.1.0": "87.0.4280.88",
+ "11.1.1": "87.0.4280.88",
+ "11.2.0": "87.0.4280.141",
+ "11.2.1": "87.0.4280.141",
+ "11.2.2": "87.0.4280.141",
+ "11.2.3": "87.0.4280.141",
+ "11.3.0": "87.0.4280.141",
+ "11.4.0": "87.0.4280.141",
+ "11.4.1": "87.0.4280.141",
+ "11.4.2": "87.0.4280.141",
+ "11.4.3": "87.0.4280.141",
+ "11.4.4": "87.0.4280.141",
+ "11.4.5": "87.0.4280.141",
+ "11.4.6": "87.0.4280.141",
+ "11.4.7": "87.0.4280.141",
+ "11.4.8": "87.0.4280.141",
+ "11.4.9": "87.0.4280.141",
+ "11.4.10": "87.0.4280.141",
+ "11.4.11": "87.0.4280.141",
+ "11.4.12": "87.0.4280.141",
+ "11.5.0": "87.0.4280.141",
+ "12.0.0-beta.1": "89.0.4328.0",
+ "12.0.0-beta.3": "89.0.4328.0",
+ "12.0.0-beta.4": "89.0.4328.0",
+ "12.0.0-beta.5": "89.0.4328.0",
+ "12.0.0-beta.6": "89.0.4328.0",
+ "12.0.0-beta.7": "89.0.4328.0",
+ "12.0.0-beta.8": "89.0.4328.0",
+ "12.0.0-beta.9": "89.0.4328.0",
+ "12.0.0-beta.10": "89.0.4328.0",
+ "12.0.0-beta.11": "89.0.4328.0",
+ "12.0.0-beta.12": "89.0.4328.0",
+ "12.0.0-beta.14": "89.0.4328.0",
+ "12.0.0-beta.16": "89.0.4348.1",
+ "12.0.0-beta.18": "89.0.4348.1",
+ "12.0.0-beta.19": "89.0.4348.1",
+ "12.0.0-beta.20": "89.0.4348.1",
+ "12.0.0-beta.21": "89.0.4388.2",
+ "12.0.0-beta.22": "89.0.4388.2",
+ "12.0.0-beta.23": "89.0.4388.2",
+ "12.0.0-beta.24": "89.0.4388.2",
+ "12.0.0-beta.25": "89.0.4388.2",
+ "12.0.0-beta.26": "89.0.4388.2",
+ "12.0.0-beta.27": "89.0.4389.23",
+ "12.0.0-beta.28": "89.0.4389.23",
+ "12.0.0-beta.29": "89.0.4389.23",
+ "12.0.0-beta.30": "89.0.4389.58",
+ "12.0.0-beta.31": "89.0.4389.58",
+ "12.0.0-nightly.20200827": "86.0.4234.0",
+ "12.0.0-nightly.20200831": "86.0.4234.0",
+ "12.0.0-nightly.20200902": "86.0.4234.0",
+ "12.0.0-nightly.20200903": "86.0.4234.0",
+ "12.0.0-nightly.20200907": "86.0.4234.0",
+ "12.0.0-nightly.20200910": "86.0.4234.0",
+ "12.0.0-nightly.20200911": "86.0.4234.0",
+ "12.0.0-nightly.20200914": "86.0.4234.0",
+ "12.0.0-nightly.20201013": "87.0.4268.0",
+ "12.0.0-nightly.20201014": "87.0.4268.0",
+ "12.0.0-nightly.20201015": "87.0.4268.0",
+ "12.0.0-nightly.20201023": "88.0.4292.0",
+ "12.0.0-nightly.20201026": "88.0.4292.0",
+ "12.0.0-nightly.20201030": "88.0.4306.0",
+ "12.0.0-nightly.20201102": "88.0.4306.0",
+ "12.0.0-nightly.20201103": "88.0.4306.0",
+ "12.0.0-nightly.20201104": "88.0.4306.0",
+ "12.0.0-nightly.20201105": "88.0.4306.0",
+ "12.0.0-nightly.20201106": "88.0.4306.0",
+ "12.0.0-nightly.20201111": "88.0.4306.0",
+ "12.0.0-nightly.20201112": "88.0.4306.0",
+ "12.0.0-nightly.20201116": "88.0.4324.0",
+ "12.0.0": "89.0.4389.69",
+ "12.0.1": "89.0.4389.82",
+ "12.0.2": "89.0.4389.90",
+ "12.0.3": "89.0.4389.114",
+ "12.0.4": "89.0.4389.114",
+ "12.0.5": "89.0.4389.128",
+ "12.0.6": "89.0.4389.128",
+ "12.0.7": "89.0.4389.128",
+ "12.0.8": "89.0.4389.128",
+ "12.0.9": "89.0.4389.128",
+ "12.0.10": "89.0.4389.128",
+ "12.0.11": "89.0.4389.128",
+ "12.0.12": "89.0.4389.128",
+ "12.0.13": "89.0.4389.128",
+ "12.0.14": "89.0.4389.128",
+ "12.0.15": "89.0.4389.128",
+ "12.0.16": "89.0.4389.128",
+ "12.0.17": "89.0.4389.128",
+ "12.0.18": "89.0.4389.128",
+ "12.1.0": "89.0.4389.128",
+ "13.0.0-beta.2": "90.0.4402.0",
+ "13.0.0-beta.3": "90.0.4402.0",
+ "13.0.0-beta.4": "90.0.4415.0",
+ "13.0.0-beta.5": "90.0.4415.0",
+ "13.0.0-beta.6": "90.0.4415.0",
+ "13.0.0-beta.7": "90.0.4415.0",
+ "13.0.0-beta.8": "90.0.4415.0",
+ "13.0.0-beta.9": "90.0.4415.0",
+ "13.0.0-beta.11": "90.0.4415.0",
+ "13.0.0-beta.12": "90.0.4415.0",
+ "13.0.0-beta.13": "90.0.4415.0",
+ "13.0.0-beta.14": "91.0.4448.0",
+ "13.0.0-beta.16": "91.0.4448.0",
+ "13.0.0-beta.17": "91.0.4448.0",
+ "13.0.0-beta.18": "91.0.4448.0",
+ "13.0.0-beta.20": "91.0.4448.0",
+ "13.0.0-beta.21": "91.0.4472.33",
+ "13.0.0-beta.22": "91.0.4472.33",
+ "13.0.0-beta.23": "91.0.4472.33",
+ "13.0.0-beta.24": "91.0.4472.38",
+ "13.0.0-beta.26": "91.0.4472.38",
+ "13.0.0-beta.27": "91.0.4472.38",
+ "13.0.0-beta.28": "91.0.4472.38",
+ "13.0.0-nightly.20201119": "89.0.4328.0",
+ "13.0.0-nightly.20201123": "89.0.4328.0",
+ "13.0.0-nightly.20201124": "89.0.4328.0",
+ "13.0.0-nightly.20201126": "89.0.4328.0",
+ "13.0.0-nightly.20201127": "89.0.4328.0",
+ "13.0.0-nightly.20201130": "89.0.4328.0",
+ "13.0.0-nightly.20201201": "89.0.4328.0",
+ "13.0.0-nightly.20201202": "89.0.4328.0",
+ "13.0.0-nightly.20201203": "89.0.4328.0",
+ "13.0.0-nightly.20201204": "89.0.4328.0",
+ "13.0.0-nightly.20201207": "89.0.4328.0",
+ "13.0.0-nightly.20201208": "89.0.4328.0",
+ "13.0.0-nightly.20201209": "89.0.4328.0",
+ "13.0.0-nightly.20201210": "89.0.4328.0",
+ "13.0.0-nightly.20201211": "89.0.4328.0",
+ "13.0.0-nightly.20201214": "89.0.4328.0",
+ "13.0.0-nightly.20201215": "89.0.4349.0",
+ "13.0.0-nightly.20201216": "89.0.4349.0",
+ "13.0.0-nightly.20201221": "89.0.4349.0",
+ "13.0.0-nightly.20201222": "89.0.4349.0",
+ "13.0.0-nightly.20201223": "89.0.4359.0",
+ "13.0.0-nightly.20210104": "89.0.4359.0",
+ "13.0.0-nightly.20210108": "89.0.4359.0",
+ "13.0.0-nightly.20210111": "89.0.4359.0",
+ "13.0.0-nightly.20210113": "89.0.4386.0",
+ "13.0.0-nightly.20210114": "89.0.4386.0",
+ "13.0.0-nightly.20210118": "89.0.4386.0",
+ "13.0.0-nightly.20210122": "89.0.4386.0",
+ "13.0.0-nightly.20210125": "89.0.4386.0",
+ "13.0.0-nightly.20210127": "89.0.4389.0",
+ "13.0.0-nightly.20210128": "89.0.4389.0",
+ "13.0.0-nightly.20210129": "89.0.4389.0",
+ "13.0.0-nightly.20210201": "89.0.4389.0",
+ "13.0.0-nightly.20210202": "89.0.4389.0",
+ "13.0.0-nightly.20210203": "89.0.4389.0",
+ "13.0.0-nightly.20210205": "89.0.4389.0",
+ "13.0.0-nightly.20210208": "89.0.4389.0",
+ "13.0.0-nightly.20210209": "89.0.4389.0",
+ "13.0.0-nightly.20210210": "90.0.4402.0",
+ "13.0.0-nightly.20210211": "90.0.4402.0",
+ "13.0.0-nightly.20210212": "90.0.4402.0",
+ "13.0.0-nightly.20210216": "90.0.4402.0",
+ "13.0.0-nightly.20210217": "90.0.4402.0",
+ "13.0.0-nightly.20210218": "90.0.4402.0",
+ "13.0.0-nightly.20210219": "90.0.4402.0",
+ "13.0.0-nightly.20210222": "90.0.4402.0",
+ "13.0.0-nightly.20210225": "90.0.4402.0",
+ "13.0.0-nightly.20210226": "90.0.4402.0",
+ "13.0.0-nightly.20210301": "90.0.4402.0",
+ "13.0.0-nightly.20210302": "90.0.4402.0",
+ "13.0.0-nightly.20210303": "90.0.4402.0",
+ "13.0.0": "91.0.4472.69",
+ "13.0.1": "91.0.4472.69",
+ "13.1.0": "91.0.4472.77",
+ "13.1.1": "91.0.4472.77",
+ "13.1.2": "91.0.4472.77",
+ "13.1.3": "91.0.4472.106",
+ "13.1.4": "91.0.4472.106",
+ "13.1.5": "91.0.4472.124",
+ "13.1.6": "91.0.4472.124",
+ "13.1.7": "91.0.4472.124",
+ "13.1.8": "91.0.4472.164",
+ "13.1.9": "91.0.4472.164",
+ "13.2.0": "91.0.4472.164",
+ "13.2.1": "91.0.4472.164",
+ "13.2.2": "91.0.4472.164",
+ "13.2.3": "91.0.4472.164",
+ "13.3.0": "91.0.4472.164",
+ "14.0.0-beta.1": "92.0.4511.0",
+ "14.0.0-beta.2": "92.0.4511.0",
+ "14.0.0-beta.3": "92.0.4511.0",
+ "14.0.0-beta.5": "93.0.4536.0",
+ "14.0.0-beta.6": "93.0.4536.0",
+ "14.0.0-beta.7": "93.0.4536.0",
+ "14.0.0-beta.8": "93.0.4536.0",
+ "14.0.0-beta.9": "93.0.4539.0",
+ "14.0.0-beta.10": "93.0.4539.0",
+ "14.0.0-beta.11": "93.0.4557.4",
+ "14.0.0-beta.12": "93.0.4557.4",
+ "14.0.0-beta.13": "93.0.4566.0",
+ "14.0.0-beta.14": "93.0.4566.0",
+ "14.0.0-beta.15": "93.0.4566.0",
+ "14.0.0-beta.16": "93.0.4566.0",
+ "14.0.0-beta.17": "93.0.4566.0",
+ "14.0.0-beta.18": "93.0.4577.15",
+ "14.0.0-beta.19": "93.0.4577.15",
+ "14.0.0-beta.20": "93.0.4577.15",
+ "14.0.0-beta.21": "93.0.4577.15",
+ "14.0.0-beta.22": "93.0.4577.25",
+ "14.0.0-beta.23": "93.0.4577.25",
+ "14.0.0-beta.24": "93.0.4577.51",
+ "14.0.0-beta.25": "93.0.4577.51",
+ "14.0.0-nightly.20210304": "90.0.4402.0",
+ "14.0.0-nightly.20210305": "90.0.4415.0",
+ "14.0.0-nightly.20210308": "90.0.4415.0",
+ "14.0.0-nightly.20210309": "90.0.4415.0",
+ "14.0.0-nightly.20210311": "90.0.4415.0",
+ "14.0.0-nightly.20210315": "90.0.4415.0",
+ "14.0.0-nightly.20210316": "90.0.4415.0",
+ "14.0.0-nightly.20210317": "90.0.4415.0",
+ "14.0.0-nightly.20210318": "90.0.4415.0",
+ "14.0.0-nightly.20210319": "90.0.4415.0",
+ "14.0.0-nightly.20210323": "90.0.4415.0",
+ "14.0.0-nightly.20210324": "90.0.4415.0",
+ "14.0.0-nightly.20210325": "90.0.4415.0",
+ "14.0.0-nightly.20210326": "90.0.4415.0",
+ "14.0.0-nightly.20210329": "90.0.4415.0",
+ "14.0.0-nightly.20210330": "90.0.4415.0",
+ "14.0.0-nightly.20210331": "91.0.4448.0",
+ "14.0.0-nightly.20210401": "91.0.4448.0",
+ "14.0.0-nightly.20210402": "91.0.4448.0",
+ "14.0.0-nightly.20210406": "91.0.4448.0",
+ "14.0.0-nightly.20210407": "91.0.4448.0",
+ "14.0.0-nightly.20210408": "91.0.4448.0",
+ "14.0.0-nightly.20210409": "91.0.4448.0",
+ "14.0.0-nightly.20210413": "91.0.4448.0",
+ "14.0.0-nightly.20210426": "92.0.4475.0",
+ "14.0.0-nightly.20210427": "92.0.4475.0",
+ "14.0.0-nightly.20210430": "92.0.4488.0",
+ "14.0.0-nightly.20210503": "92.0.4488.0",
+ "14.0.0-nightly.20210505": "92.0.4496.0",
+ "14.0.0-nightly.20210506": "92.0.4498.0",
+ "14.0.0-nightly.20210507": "92.0.4499.0",
+ "14.0.0-nightly.20210510": "92.0.4499.0",
+ "14.0.0-nightly.20210511": "92.0.4499.0",
+ "14.0.0-nightly.20210512": "92.0.4499.0",
+ "14.0.0-nightly.20210513": "92.0.4499.0",
+ "14.0.0-nightly.20210514": "92.0.4505.0",
+ "14.0.0-nightly.20210517": "92.0.4505.0",
+ "14.0.0-nightly.20210518": "92.0.4505.0",
+ "14.0.0-nightly.20210519": "92.0.4505.0",
+ "14.0.0-nightly.20210520": "92.0.4511.0",
+ "14.0.0-nightly.20210523": "92.0.4511.0",
+ "14.0.0-nightly.20210524": "92.0.4511.0",
+ "14.0.0": "93.0.4577.58",
+ "15.0.0-alpha.1": "93.0.4566.0",
+ "15.0.0-alpha.2": "93.0.4566.0",
+ "15.0.0-alpha.3": "94.0.4584.0",
+ "15.0.0-alpha.4": "94.0.4584.0",
+ "15.0.0-alpha.5": "94.0.4584.0",
+ "15.0.0-alpha.6": "94.0.4584.0",
+ "15.0.0-alpha.7": "94.0.4590.2",
+ "15.0.0-alpha.8": "94.0.4590.2",
+ "15.0.0-alpha.9": "94.0.4590.2",
+ "15.0.0-alpha.10": "94.0.4606.12",
+ "15.0.0-beta.1": "94.0.4606.20",
+ "15.0.0-nightly.20210527": "92.0.4511.0",
+ "15.0.0-nightly.20210528": "92.0.4511.0",
+ "15.0.0-nightly.20210531": "92.0.4511.0",
+ "15.0.0-nightly.20210601": "92.0.4511.0",
+ "15.0.0-nightly.20210602": "92.0.4511.0",
+ "15.0.0-nightly.20210603": "93.0.4530.0",
+ "15.0.0-nightly.20210604": "93.0.4530.0",
+ "15.0.0-nightly.20210608": "93.0.4535.0",
+ "15.0.0-nightly.20210609": "93.0.4536.0",
+ "15.0.0-nightly.20210610": "93.0.4536.0",
+ "15.0.0-nightly.20210611": "93.0.4536.0",
+ "15.0.0-nightly.20210614": "93.0.4536.0",
+ "15.0.0-nightly.20210615": "93.0.4536.0",
+ "15.0.0-nightly.20210616": "93.0.4536.0",
+ "15.0.0-nightly.20210617": "93.0.4539.0",
+ "15.0.0-nightly.20210618": "93.0.4539.0",
+ "15.0.0-nightly.20210621": "93.0.4539.0",
+ "15.0.0-nightly.20210622": "93.0.4539.0",
+ "15.0.0-nightly.20210623": "93.0.4550.0",
+ "15.0.0-nightly.20210624": "93.0.4550.0",
+ "15.0.0-nightly.20210625": "93.0.4552.0",
+ "15.0.0-nightly.20210628": "93.0.4552.0",
+ "15.0.0-nightly.20210629": "93.0.4552.0",
+ "15.0.0-nightly.20210630": "93.0.4558.0",
+ "15.0.0-nightly.20210701": "93.0.4558.0",
+ "15.0.0-nightly.20210702": "93.0.4558.0",
+ "15.0.0-nightly.20210705": "93.0.4558.0",
+ "15.0.0-nightly.20210706": "93.0.4566.0",
+ "15.0.0-nightly.20210707": "93.0.4566.0",
+ "15.0.0-nightly.20210708": "93.0.4566.0",
+ "15.0.0-nightly.20210709": "93.0.4566.0",
+ "15.0.0-nightly.20210712": "93.0.4566.0",
+ "15.0.0-nightly.20210713": "93.0.4566.0",
+ "15.0.0-nightly.20210714": "93.0.4566.0",
+ "15.0.0-nightly.20210715": "93.0.4566.0",
+ "15.0.0-nightly.20210716": "93.0.4566.0",
+ "15.0.0-nightly.20210719": "93.0.4566.0",
+ "15.0.0-nightly.20210720": "93.0.4566.0",
+ "15.0.0-nightly.20210721": "93.0.4566.0",
+ "16.0.0-nightly.20210722": "93.0.4566.0",
+ "16.0.0-nightly.20210723": "93.0.4566.0",
+ "16.0.0-nightly.20210726": "93.0.4566.0",
+ "16.0.0-nightly.20210727": "94.0.4584.0",
+ "16.0.0-nightly.20210728": "94.0.4584.0",
+ "16.0.0-nightly.20210729": "94.0.4584.0",
+ "16.0.0-nightly.20210730": "94.0.4584.0",
+ "16.0.0-nightly.20210802": "94.0.4584.0",
+ "16.0.0-nightly.20210803": "94.0.4584.0",
+ "16.0.0-nightly.20210804": "94.0.4584.0",
+ "16.0.0-nightly.20210805": "94.0.4584.0",
+ "16.0.0-nightly.20210806": "94.0.4584.0",
+ "16.0.0-nightly.20210809": "94.0.4584.0",
+ "16.0.0-nightly.20210810": "94.0.4584.0",
+ "16.0.0-nightly.20210811": "94.0.4584.0",
+ "16.0.0-nightly.20210812": "94.0.4590.2",
+ "16.0.0-nightly.20210813": "94.0.4590.2",
+ "16.0.0-nightly.20210816": "94.0.4590.2",
+ "16.0.0-nightly.20210817": "94.0.4590.2",
+ "16.0.0-nightly.20210818": "94.0.4590.2",
+ "16.0.0-nightly.20210819": "94.0.4590.2",
+ "16.0.0-nightly.20210820": "94.0.4590.2",
+ "16.0.0-nightly.20210823": "94.0.4590.2",
+ "16.0.0-nightly.20210824": "95.0.4612.5",
+ "16.0.0-nightly.20210825": "95.0.4612.5",
+ "16.0.0-nightly.20210826": "95.0.4612.5",
+ "16.0.0-nightly.20210827": "95.0.4612.5",
+ "16.0.0-nightly.20210830": "95.0.4612.5",
+ "16.0.0-nightly.20210831": "95.0.4612.5",
+ "16.0.0-nightly.20210901": "95.0.4612.5"
+};
\ No newline at end of file
diff --git a/node_modules/electron-to-chromium/index.js b/node_modules/electron-to-chromium/index.js
new file mode 100644
index 00000000..1818281f
--- /dev/null
+++ b/node_modules/electron-to-chromium/index.js
@@ -0,0 +1,36 @@
+var versions = require('./versions');
+var fullVersions = require('./full-versions');
+var chromiumVersions = require('./chromium-versions');
+var fullChromiumVersions = require('./full-chromium-versions');
+
+var electronToChromium = function (query) {
+ var number = getQueryString(query);
+ return number.split('.').length > 2 ? fullVersions[number] : versions[number] || undefined;
+};
+
+var chromiumToElectron = function (query) {
+ var number = getQueryString(query);
+ return number.split('.').length > 2 ? fullChromiumVersions[number] : chromiumVersions[number] || undefined;
+};
+
+var electronToBrowserList = function (query) {
+ var number = getQueryString(query);
+ return versions[number] ? "Chrome >= " + versions[number] : undefined;
+};
+
+var getQueryString = function (query) {
+ var number = query;
+ if (query === 1) { number = "1.0" }
+ if (typeof query === 'number') { number += ''; }
+ return number;
+};
+
+module.exports = {
+ versions: versions,
+ fullVersions: fullVersions,
+ chromiumVersions: chromiumVersions,
+ fullChromiumVersions: fullChromiumVersions,
+ electronToChromium: electronToChromium,
+ electronToBrowserList: electronToBrowserList,
+ chromiumToElectron: chromiumToElectron
+};
diff --git a/node_modules/electron-to-chromium/package.json b/node_modules/electron-to-chromium/package.json
new file mode 100644
index 00000000..8b3af1e5
--- /dev/null
+++ b/node_modules/electron-to-chromium/package.json
@@ -0,0 +1,69 @@
+{
+ "_from": "electron-to-chromium@^1.3.811",
+ "_id": "electron-to-chromium@1.3.827",
+ "_inBundle": false,
+ "_integrity": "sha512-ye+4uQOY/jbjRutMcE/EmOcNwUeo1qo9aKL2tPyb09cU3lmxNeyDF4RWiemmkknW+p29h7dyDqy02higTxc9/A==",
+ "_location": "/electron-to-chromium",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "electron-to-chromium@^1.3.811",
+ "name": "electron-to-chromium",
+ "escapedName": "electron-to-chromium",
+ "rawSpec": "^1.3.811",
+ "saveSpec": null,
+ "fetchSpec": "^1.3.811"
+ },
+ "_requiredBy": [
+ "/browserslist"
+ ],
+ "_resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.827.tgz",
+ "_shasum": "c725e8db8c5be18b472a919e5f57904512df0fc1",
+ "_spec": "electron-to-chromium@^1.3.811",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/browserslist",
+ "author": {
+ "name": "Kilian Valkhof"
+ },
+ "bugs": {
+ "url": "https://github.com/kilian/electron-to-chromium/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Provides a list of electron-to-chromium version mappings",
+ "devDependencies": {
+ "ava": "^3.8.2",
+ "codecov": "^3.8.0",
+ "electron-releases": "^3.780.0",
+ "nyc": "^15.1.0",
+ "request": "^2.88.0",
+ "shelljs": "^0.8.4"
+ },
+ "files": [
+ "versions.js",
+ "full-versions.js",
+ "chromium-versions.js",
+ "full-chromium-versions.js",
+ "LICENSE"
+ ],
+ "homepage": "https://github.com/kilian/electron-to-chromium#readme",
+ "keywords": [
+ "electron",
+ "chrome",
+ "browserlist"
+ ],
+ "license": "ISC",
+ "main": "index.js",
+ "name": "electron-to-chromium",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/kilian/electron-to-chromium.git"
+ },
+ "scripts": {
+ "build": "node build.js",
+ "report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
+ "test": "nyc ava --verbose",
+ "update": "node automated-update.js"
+ },
+ "version": "1.3.827"
+}
diff --git a/node_modules/electron-to-chromium/versions.js b/node_modules/electron-to-chromium/versions.js
new file mode 100644
index 00000000..dfda8ac8
--- /dev/null
+++ b/node_modules/electron-to-chromium/versions.js
@@ -0,0 +1,73 @@
+module.exports = {
+ "0.20": "39",
+ "0.21": "41",
+ "0.22": "41",
+ "0.23": "41",
+ "0.24": "41",
+ "0.25": "42",
+ "0.26": "42",
+ "0.27": "43",
+ "0.28": "43",
+ "0.29": "43",
+ "0.30": "44",
+ "0.31": "45",
+ "0.32": "45",
+ "0.33": "45",
+ "0.34": "45",
+ "0.35": "45",
+ "0.36": "47",
+ "0.37": "49",
+ "1.0": "49",
+ "1.1": "50",
+ "1.2": "51",
+ "1.3": "52",
+ "1.4": "53",
+ "1.5": "54",
+ "1.6": "56",
+ "1.7": "58",
+ "1.8": "59",
+ "2.0": "61",
+ "2.1": "61",
+ "3.0": "66",
+ "3.1": "66",
+ "4.0": "69",
+ "4.1": "69",
+ "4.2": "69",
+ "5.0": "73",
+ "6.0": "76",
+ "6.1": "76",
+ "7.0": "78",
+ "7.1": "78",
+ "7.2": "78",
+ "7.3": "78",
+ "8.0": "80",
+ "8.1": "80",
+ "8.2": "80",
+ "8.3": "80",
+ "8.4": "80",
+ "8.5": "80",
+ "9.0": "83",
+ "9.1": "83",
+ "9.2": "83",
+ "9.3": "83",
+ "9.4": "83",
+ "10.0": "85",
+ "10.1": "85",
+ "10.2": "85",
+ "10.3": "85",
+ "10.4": "85",
+ "11.0": "87",
+ "11.1": "87",
+ "11.2": "87",
+ "11.3": "87",
+ "11.4": "87",
+ "11.5": "87",
+ "12.0": "89",
+ "12.1": "89",
+ "13.0": "91",
+ "13.1": "91",
+ "13.2": "91",
+ "13.3": "91",
+ "14.0": "93",
+ "15.0": "94"
+};
\ No newline at end of file
diff --git a/node_modules/elliptic/README.md b/node_modules/elliptic/README.md
new file mode 100644
index 00000000..96219e55
--- /dev/null
+++ b/node_modules/elliptic/README.md
@@ -0,0 +1,238 @@
+# Elliptic [](http://travis-ci.org/indutny/elliptic) [](https://coveralls.io/github/indutny/elliptic?branch=master) [](https://codeclimate.com/github/indutny/elliptic)
+
+[](https://saucelabs.com/u/gh-indutny-elliptic)
+
+Fast elliptic-curve cryptography in a plain javascript implementation.
+
+NOTE: Please take a look at http://safecurves.cr.yp.to/ before choosing a curve
+for your cryptography operations.
+
+## Incentive
+
+ECC is much slower than regular RSA cryptography, the JS implementations are
+even more slower.
+
+## Benchmarks
+
+```bash
+$ node benchmarks/index.js
+Benchmarking: sign
+elliptic#sign x 262 ops/sec ±0.51% (177 runs sampled)
+eccjs#sign x 55.91 ops/sec ±0.90% (144 runs sampled)
+------------------------
+Fastest is elliptic#sign
+========================
+Benchmarking: verify
+elliptic#verify x 113 ops/sec ±0.50% (166 runs sampled)
+eccjs#verify x 48.56 ops/sec ±0.36% (125 runs sampled)
+------------------------
+Fastest is elliptic#verify
+========================
+Benchmarking: gen
+elliptic#gen x 294 ops/sec ±0.43% (176 runs sampled)
+eccjs#gen x 62.25 ops/sec ±0.63% (129 runs sampled)
+------------------------
+Fastest is elliptic#gen
+========================
+Benchmarking: ecdh
+elliptic#ecdh x 136 ops/sec ±0.85% (156 runs sampled)
+------------------------
+Fastest is elliptic#ecdh
+========================
+```
+
+## API
+
+### ECDSA
+
+```javascript
+var EC = require('elliptic').ec;
+
+// Create and initialize EC context
+// (better do it once and reuse it)
+var ec = new EC('secp256k1');
+
+// Generate keys
+var key = ec.genKeyPair();
+
+// Sign the message's hash (input must be an array, or a hex-string)
+var msgHash = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
+var signature = key.sign(msgHash);
+
+// Export DER encoded signature in Array
+var derSign = signature.toDER();
+
+// Verify signature
+console.log(key.verify(msgHash, derSign));
+
+// CHECK WITH NO PRIVATE KEY
+
+var pubPoint = key.getPublic();
+var x = pubPoint.getX();
+var y = pubPoint.getY();
+
+// Public Key MUST be either:
+// 1) '04' + hex string of x + hex string of y; or
+// 2) object with two hex string properties (x and y); or
+// 3) object with two buffer properties (x and y)
+var pub = pubPoint.encode('hex'); // case 1
+var pub = { x: x.toString('hex'), y: y.toString('hex') }; // case 2
+var pub = { x: x.toBuffer(), y: y.toBuffer() }; // case 3
+var pub = { x: x.toArrayLike(Buffer), y: y.toArrayLike(Buffer) }; // case 3
+
+// Import public key
+var key = ec.keyFromPublic(pub, 'hex');
+
+// Signature MUST be either:
+// 1) DER-encoded signature as hex-string; or
+// 2) DER-encoded signature as buffer; or
+// 3) object with two hex-string properties (r and s); or
+// 4) object with two buffer properties (r and s)
+
+var signature = '3046022100...'; // case 1
+var signature = new Buffer('...'); // case 2
+var signature = { r: 'b1fc...', s: '9c42...' }; // case 3
+
+// Verify signature
+console.log(key.verify(msgHash, signature));
+```
+
+### EdDSA
+
+```javascript
+var EdDSA = require('elliptic').eddsa;
+
+// Create and initialize EdDSA context
+// (better do it once and reuse it)
+var ec = new EdDSA('ed25519');
+
+// Create key pair from secret
+var key = ec.keyFromSecret('693e3c...'); // hex string, array or Buffer
+
+// Sign the message's hash (input must be an array, or a hex-string)
+var msgHash = [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
+var signature = key.sign(msgHash).toHex();
+
+// Verify signature
+console.log(key.verify(msgHash, signature));
+
+// CHECK WITH NO PRIVATE KEY
+
+// Import public key
+var pub = '0a1af638...';
+var key = ec.keyFromPublic(pub, 'hex');
+
+// Verify signature
+var signature = '70bed1...';
+console.log(key.verify(msgHash, signature));
+```
+
+### ECDH
+
+```javascript
+var EC = require('elliptic').ec;
+var ec = new EC('curve25519');
+
+// Generate keys
+var key1 = ec.genKeyPair();
+var key2 = ec.genKeyPair();
+
+var shared1 = key1.derive(key2.getPublic());
+var shared2 = key2.derive(key1.getPublic());
+
+console.log('Both shared secrets are BN instances');
+console.log(shared1.toString(16));
+console.log(shared2.toString(16));
+```
+
+three and more members:
+```javascript
+var EC = require('elliptic').ec;
+var ec = new EC('curve25519');
+
+var A = ec.genKeyPair();
+var B = ec.genKeyPair();
+var C = ec.genKeyPair();
+
+var AB = A.getPublic().mul(B.getPrivate())
+var BC = B.getPublic().mul(C.getPrivate())
+var CA = C.getPublic().mul(A.getPrivate())
+
+var ABC = AB.mul(C.getPrivate())
+var BCA = BC.mul(A.getPrivate())
+var CAB = CA.mul(B.getPrivate())
+
+console.log(ABC.getX().toString(16))
+console.log(BCA.getX().toString(16))
+console.log(CAB.getX().toString(16))
+```
+
+NOTE: `.derive()` returns a [BN][1] instance.
+
+## Supported curves
+
+Elliptic.js support following curve types:
+
+* Short Weierstrass
+* Montgomery
+* Edwards
+* Twisted Edwards
+
+Following curve 'presets' are embedded into the library:
+
+* `secp256k1`
+* `p192`
+* `p224`
+* `p256`
+* `p384`
+* `p521`
+* `curve25519`
+* `ed25519`
+
+NOTE: That `curve25519` could not be used for ECDSA, use `ed25519` instead.
+
+### Implementation details
+
+ECDSA is using deterministic `k` value generation as per [RFC6979][0]. Most of
+the curve operations are performed on non-affine coordinates (either projective
+or extended), various windowing techniques are used for different cases.
+
+All operations are performed in reduction context using [bn.js][1], hashing is
+provided by [hash.js][2]
+
+### Related projects
+
+* [eccrypto][3]: isomorphic implementation of ECDSA, ECDH and ECIES for both
+ browserify and node (uses `elliptic` for browser and [secp256k1-node][4] for
+ node)
+
+#### LICENSE
+
+This software is licensed under the MIT License.
+
+Copyright Fedor Indutny, 2014.
+
+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.
+
+[0]: http://tools.ietf.org/html/rfc6979
+[1]: https://github.com/indutny/bn.js
+[2]: https://github.com/indutny/hash.js
+[3]: https://github.com/bitchan/eccrypto
+[4]: https://github.com/wanderer/secp256k1-node
diff --git a/node_modules/elliptic/lib/elliptic.js b/node_modules/elliptic/lib/elliptic.js
new file mode 100644
index 00000000..dfe2fe7d
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic.js
@@ -0,0 +1,13 @@
+'use strict';
+
+var elliptic = exports;
+
+elliptic.version = require('../package.json').version;
+elliptic.utils = require('./elliptic/utils');
+elliptic.rand = require('brorand');
+elliptic.curve = require('./elliptic/curve');
+elliptic.curves = require('./elliptic/curves');
+
+// Protocols
+elliptic.ec = require('./elliptic/ec');
+elliptic.eddsa = require('./elliptic/eddsa');
diff --git a/node_modules/elliptic/lib/elliptic/curve/base.js b/node_modules/elliptic/lib/elliptic/curve/base.js
new file mode 100644
index 00000000..8543fa80
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curve/base.js
@@ -0,0 +1,381 @@
+'use strict';
+
+var BN = require('bn.js');
+var utils = require('../utils');
+var getNAF = utils.getNAF;
+var getJSF = utils.getJSF;
+var assert = utils.assert;
+
+function BaseCurve(type, conf) {
+ this.type = type;
+ this.p = new BN(conf.p, 16);
+
+ // Use Montgomery, when there is no fast reduction for the prime
+ this.red = conf.prime ? BN.red(conf.prime) : BN.mont(this.p);
+
+ // Useful for many curves
+ this.zero = new BN(0).toRed(this.red);
+ this.one = new BN(1).toRed(this.red);
+ this.two = new BN(2).toRed(this.red);
+
+ // Curve configuration, optional
+ this.n = conf.n && new BN(conf.n, 16);
+ this.g = conf.g && this.pointFromJSON(conf.g, conf.gRed);
+
+ // Temporary arrays
+ this._wnafT1 = new Array(4);
+ this._wnafT2 = new Array(4);
+ this._wnafT3 = new Array(4);
+ this._wnafT4 = new Array(4);
+
+ this._bitLength = this.n ? this.n.bitLength() : 0;
+
+ // Generalized Greg Maxwell's trick
+ var adjustCount = this.n && this.p.div(this.n);
+ if (!adjustCount || adjustCount.cmpn(100) > 0) {
+ this.redN = null;
+ } else {
+ this._maxwellTrick = true;
+ this.redN = this.n.toRed(this.red);
+ }
+}
+module.exports = BaseCurve;
+
+BaseCurve.prototype.point = function point() {
+ throw new Error('Not implemented');
+};
+
+BaseCurve.prototype.validate = function validate() {
+ throw new Error('Not implemented');
+};
+
+BaseCurve.prototype._fixedNafMul = function _fixedNafMul(p, k) {
+ assert(p.precomputed);
+ var doubles = p._getDoubles();
+
+ var naf = getNAF(k, 1, this._bitLength);
+ var I = (1 << (doubles.step + 1)) - (doubles.step % 2 === 0 ? 2 : 1);
+ I /= 3;
+
+ // Translate into more windowed form
+ var repr = [];
+ var j;
+ var nafW;
+ for (j = 0; j < naf.length; j += doubles.step) {
+ nafW = 0;
+ for (var l = j + doubles.step - 1; l >= j; l--)
+ nafW = (nafW << 1) + naf[l];
+ repr.push(nafW);
+ }
+
+ var a = this.jpoint(null, null, null);
+ var b = this.jpoint(null, null, null);
+ for (var i = I; i > 0; i--) {
+ for (j = 0; j < repr.length; j++) {
+ nafW = repr[j];
+ if (nafW === i)
+ b = b.mixedAdd(doubles.points[j]);
+ else if (nafW === -i)
+ b = b.mixedAdd(doubles.points[j].neg());
+ }
+ a = a.add(b);
+ }
+ return a.toP();
+};
+
+BaseCurve.prototype._wnafMul = function _wnafMul(p, k) {
+ var w = 4;
+
+ // Precompute window
+ var nafPoints = p._getNAFPoints(w);
+ w = nafPoints.wnd;
+ var wnd = nafPoints.points;
+
+ // Get NAF form
+ var naf = getNAF(k, w, this._bitLength);
+
+ // Add `this`*(N+1) for every w-NAF index
+ var acc = this.jpoint(null, null, null);
+ for (var i = naf.length - 1; i >= 0; i--) {
+ // Count zeroes
+ for (var l = 0; i >= 0 && naf[i] === 0; i--)
+ l++;
+ if (i >= 0)
+ l++;
+ acc = acc.dblp(l);
+
+ if (i < 0)
+ break;
+ var z = naf[i];
+ assert(z !== 0);
+ if (p.type === 'affine') {
+ // J +- P
+ if (z > 0)
+ acc = acc.mixedAdd(wnd[(z - 1) >> 1]);
+ else
+ acc = acc.mixedAdd(wnd[(-z - 1) >> 1].neg());
+ } else {
+ // J +- J
+ if (z > 0)
+ acc = acc.add(wnd[(z - 1) >> 1]);
+ else
+ acc = acc.add(wnd[(-z - 1) >> 1].neg());
+ }
+ }
+ return p.type === 'affine' ? acc.toP() : acc;
+};
+
+BaseCurve.prototype._wnafMulAdd = function _wnafMulAdd(defW,
+ points,
+ coeffs,
+ len,
+ jacobianResult) {
+ var wndWidth = this._wnafT1;
+ var wnd = this._wnafT2;
+ var naf = this._wnafT3;
+
+ // Fill all arrays
+ var max = 0;
+ var i;
+ var j;
+ var p;
+ for (i = 0; i < len; i++) {
+ p = points[i];
+ var nafPoints = p._getNAFPoints(defW);
+ wndWidth[i] = nafPoints.wnd;
+ wnd[i] = nafPoints.points;
+ }
+
+ // Comb small window NAFs
+ for (i = len - 1; i >= 1; i -= 2) {
+ var a = i - 1;
+ var b = i;
+ if (wndWidth[a] !== 1 || wndWidth[b] !== 1) {
+ naf[a] = getNAF(coeffs[a], wndWidth[a], this._bitLength);
+ naf[b] = getNAF(coeffs[b], wndWidth[b], this._bitLength);
+ max = Math.max(naf[a].length, max);
+ max = Math.max(naf[b].length, max);
+ continue;
+ }
+
+ var comb = [
+ points[a], /* 1 */
+ null, /* 3 */
+ null, /* 5 */
+ points[b], /* 7 */
+ ];
+
+ // Try to avoid Projective points, if possible
+ if (points[a].y.cmp(points[b].y) === 0) {
+ comb[1] = points[a].add(points[b]);
+ comb[2] = points[a].toJ().mixedAdd(points[b].neg());
+ } else if (points[a].y.cmp(points[b].y.redNeg()) === 0) {
+ comb[1] = points[a].toJ().mixedAdd(points[b]);
+ comb[2] = points[a].add(points[b].neg());
+ } else {
+ comb[1] = points[a].toJ().mixedAdd(points[b]);
+ comb[2] = points[a].toJ().mixedAdd(points[b].neg());
+ }
+
+ var index = [
+ -3, /* -1 -1 */
+ -1, /* -1 0 */
+ -5, /* -1 1 */
+ -7, /* 0 -1 */
+ 0, /* 0 0 */
+ 7, /* 0 1 */
+ 5, /* 1 -1 */
+ 1, /* 1 0 */
+ 3, /* 1 1 */
+ ];
+
+ var jsf = getJSF(coeffs[a], coeffs[b]);
+ max = Math.max(jsf[0].length, max);
+ naf[a] = new Array(max);
+ naf[b] = new Array(max);
+ for (j = 0; j < max; j++) {
+ var ja = jsf[0][j] | 0;
+ var jb = jsf[1][j] | 0;
+
+ naf[a][j] = index[(ja + 1) * 3 + (jb + 1)];
+ naf[b][j] = 0;
+ wnd[a] = comb;
+ }
+ }
+
+ var acc = this.jpoint(null, null, null);
+ var tmp = this._wnafT4;
+ for (i = max; i >= 0; i--) {
+ var k = 0;
+
+ while (i >= 0) {
+ var zero = true;
+ for (j = 0; j < len; j++) {
+ tmp[j] = naf[j][i] | 0;
+ if (tmp[j] !== 0)
+ zero = false;
+ }
+ if (!zero)
+ break;
+ k++;
+ i--;
+ }
+ if (i >= 0)
+ k++;
+ acc = acc.dblp(k);
+ if (i < 0)
+ break;
+
+ for (j = 0; j < len; j++) {
+ var z = tmp[j];
+ p;
+ if (z === 0)
+ continue;
+ else if (z > 0)
+ p = wnd[j][(z - 1) >> 1];
+ else if (z < 0)
+ p = wnd[j][(-z - 1) >> 1].neg();
+
+ if (p.type === 'affine')
+ acc = acc.mixedAdd(p);
+ else
+ acc = acc.add(p);
+ }
+ }
+ // Zeroify references
+ for (i = 0; i < len; i++)
+ wnd[i] = null;
+
+ if (jacobianResult)
+ return acc;
+ else
+ return acc.toP();
+};
+
+function BasePoint(curve, type) {
+ this.curve = curve;
+ this.type = type;
+ this.precomputed = null;
+}
+BaseCurve.BasePoint = BasePoint;
+
+BasePoint.prototype.eq = function eq(/*other*/) {
+ throw new Error('Not implemented');
+};
+
+BasePoint.prototype.validate = function validate() {
+ return this.curve.validate(this);
+};
+
+BaseCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
+ bytes = utils.toArray(bytes, enc);
+
+ var len = this.p.byteLength();
+
+ // uncompressed, hybrid-odd, hybrid-even
+ if ((bytes[0] === 0x04 || bytes[0] === 0x06 || bytes[0] === 0x07) &&
+ bytes.length - 1 === 2 * len) {
+ if (bytes[0] === 0x06)
+ assert(bytes[bytes.length - 1] % 2 === 0);
+ else if (bytes[0] === 0x07)
+ assert(bytes[bytes.length - 1] % 2 === 1);
+
+ var res = this.point(bytes.slice(1, 1 + len),
+ bytes.slice(1 + len, 1 + 2 * len));
+
+ return res;
+ } else if ((bytes[0] === 0x02 || bytes[0] === 0x03) &&
+ bytes.length - 1 === len) {
+ return this.pointFromX(bytes.slice(1, 1 + len), bytes[0] === 0x03);
+ }
+ throw new Error('Unknown point format');
+};
+
+BasePoint.prototype.encodeCompressed = function encodeCompressed(enc) {
+ return this.encode(enc, true);
+};
+
+BasePoint.prototype._encode = function _encode(compact) {
+ var len = this.curve.p.byteLength();
+ var x = this.getX().toArray('be', len);
+
+ if (compact)
+ return [ this.getY().isEven() ? 0x02 : 0x03 ].concat(x);
+
+ return [ 0x04 ].concat(x, this.getY().toArray('be', len));
+};
+
+BasePoint.prototype.encode = function encode(enc, compact) {
+ return utils.encode(this._encode(compact), enc);
+};
+
+BasePoint.prototype.precompute = function precompute(power) {
+ if (this.precomputed)
+ return this;
+
+ var precomputed = {
+ doubles: null,
+ naf: null,
+ beta: null,
+ };
+ precomputed.naf = this._getNAFPoints(8);
+ precomputed.doubles = this._getDoubles(4, power);
+ precomputed.beta = this._getBeta();
+ this.precomputed = precomputed;
+
+ return this;
+};
+
+BasePoint.prototype._hasDoubles = function _hasDoubles(k) {
+ if (!this.precomputed)
+ return false;
+
+ var doubles = this.precomputed.doubles;
+ if (!doubles)
+ return false;
+
+ return doubles.points.length >= Math.ceil((k.bitLength() + 1) / doubles.step);
+};
+
+BasePoint.prototype._getDoubles = function _getDoubles(step, power) {
+ if (this.precomputed && this.precomputed.doubles)
+ return this.precomputed.doubles;
+
+ var doubles = [ this ];
+ var acc = this;
+ for (var i = 0; i < power; i += step) {
+ for (var j = 0; j < step; j++)
+ acc = acc.dbl();
+ doubles.push(acc);
+ }
+ return {
+ step: step,
+ points: doubles,
+ };
+};
+
+BasePoint.prototype._getNAFPoints = function _getNAFPoints(wnd) {
+ if (this.precomputed && this.precomputed.naf)
+ return this.precomputed.naf;
+
+ var res = [ this ];
+ var max = (1 << wnd) - 1;
+ var dbl = max === 1 ? null : this.dbl();
+ for (var i = 1; i < max; i++)
+ res[i] = res[i - 1].add(dbl);
+ return {
+ wnd: wnd,
+ points: res,
+ };
+};
+
+BasePoint.prototype._getBeta = function _getBeta() {
+ return null;
+};
+
+BasePoint.prototype.dblp = function dblp(k) {
+ var r = this;
+ for (var i = 0; i < k; i++)
+ r = r.dbl();
+ return r;
+};
diff --git a/node_modules/elliptic/lib/elliptic/curve/edwards.js b/node_modules/elliptic/lib/elliptic/curve/edwards.js
new file mode 100644
index 00000000..6e757c6d
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curve/edwards.js
@@ -0,0 +1,435 @@
+'use strict';
+
+var utils = require('../utils');
+var BN = require('bn.js');
+var inherits = require('inherits');
+var Base = require('./base');
+
+var assert = utils.assert;
+
+function EdwardsCurve(conf) {
+ // NOTE: Important as we are creating point in Base.call()
+ this.twisted = (conf.a | 0) !== 1;
+ this.mOneA = this.twisted && (conf.a | 0) === -1;
+ this.extended = this.mOneA;
+
+ Base.call(this, 'edwards', conf);
+
+ this.a = new BN(conf.a, 16).umod(this.red.m);
+ this.a = this.a.toRed(this.red);
+ this.c = new BN(conf.c, 16).toRed(this.red);
+ this.c2 = this.c.redSqr();
+ this.d = new BN(conf.d, 16).toRed(this.red);
+ this.dd = this.d.redAdd(this.d);
+
+ assert(!this.twisted || this.c.fromRed().cmpn(1) === 0);
+ this.oneC = (conf.c | 0) === 1;
+}
+inherits(EdwardsCurve, Base);
+module.exports = EdwardsCurve;
+
+EdwardsCurve.prototype._mulA = function _mulA(num) {
+ if (this.mOneA)
+ return num.redNeg();
+ else
+ return this.a.redMul(num);
+};
+
+EdwardsCurve.prototype._mulC = function _mulC(num) {
+ if (this.oneC)
+ return num;
+ else
+ return this.c.redMul(num);
+};
+
+// Just for compatibility with Short curve
+EdwardsCurve.prototype.jpoint = function jpoint(x, y, z, t) {
+ return this.point(x, y, z, t);
+};
+
+EdwardsCurve.prototype.pointFromX = function pointFromX(x, odd) {
+ x = new BN(x, 16);
+ if (!x.red)
+ x = x.toRed(this.red);
+
+ var x2 = x.redSqr();
+ var rhs = this.c2.redSub(this.a.redMul(x2));
+ var lhs = this.one.redSub(this.c2.redMul(this.d).redMul(x2));
+
+ var y2 = rhs.redMul(lhs.redInvm());
+ var y = y2.redSqrt();
+ if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)
+ throw new Error('invalid point');
+
+ var isOdd = y.fromRed().isOdd();
+ if (odd && !isOdd || !odd && isOdd)
+ y = y.redNeg();
+
+ return this.point(x, y);
+};
+
+EdwardsCurve.prototype.pointFromY = function pointFromY(y, odd) {
+ y = new BN(y, 16);
+ if (!y.red)
+ y = y.toRed(this.red);
+
+ // x^2 = (y^2 - c^2) / (c^2 d y^2 - a)
+ var y2 = y.redSqr();
+ var lhs = y2.redSub(this.c2);
+ var rhs = y2.redMul(this.d).redMul(this.c2).redSub(this.a);
+ var x2 = lhs.redMul(rhs.redInvm());
+
+ if (x2.cmp(this.zero) === 0) {
+ if (odd)
+ throw new Error('invalid point');
+ else
+ return this.point(this.zero, y);
+ }
+
+ var x = x2.redSqrt();
+ if (x.redSqr().redSub(x2).cmp(this.zero) !== 0)
+ throw new Error('invalid point');
+
+ if (x.fromRed().isOdd() !== odd)
+ x = x.redNeg();
+
+ return this.point(x, y);
+};
+
+EdwardsCurve.prototype.validate = function validate(point) {
+ if (point.isInfinity())
+ return true;
+
+ // Curve: A * X^2 + Y^2 = C^2 * (1 + D * X^2 * Y^2)
+ point.normalize();
+
+ var x2 = point.x.redSqr();
+ var y2 = point.y.redSqr();
+ var lhs = x2.redMul(this.a).redAdd(y2);
+ var rhs = this.c2.redMul(this.one.redAdd(this.d.redMul(x2).redMul(y2)));
+
+ return lhs.cmp(rhs) === 0;
+};
+
+function Point(curve, x, y, z, t) {
+ Base.BasePoint.call(this, curve, 'projective');
+ if (x === null && y === null && z === null) {
+ this.x = this.curve.zero;
+ this.y = this.curve.one;
+ this.z = this.curve.one;
+ this.t = this.curve.zero;
+ this.zOne = true;
+ } else {
+ this.x = new BN(x, 16);
+ this.y = new BN(y, 16);
+ this.z = z ? new BN(z, 16) : this.curve.one;
+ this.t = t && new BN(t, 16);
+ if (!this.x.red)
+ this.x = this.x.toRed(this.curve.red);
+ if (!this.y.red)
+ this.y = this.y.toRed(this.curve.red);
+ if (!this.z.red)
+ this.z = this.z.toRed(this.curve.red);
+ if (this.t && !this.t.red)
+ this.t = this.t.toRed(this.curve.red);
+ this.zOne = this.z === this.curve.one;
+
+ // Use extended coordinates
+ if (this.curve.extended && !this.t) {
+ this.t = this.x.redMul(this.y);
+ if (!this.zOne)
+ this.t = this.t.redMul(this.z.redInvm());
+ }
+ }
+}
+inherits(Point, Base.BasePoint);
+
+EdwardsCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
+ return Point.fromJSON(this, obj);
+};
+
+EdwardsCurve.prototype.point = function point(x, y, z, t) {
+ return new Point(this, x, y, z, t);
+};
+
+Point.fromJSON = function fromJSON(curve, obj) {
+ return new Point(curve, obj[0], obj[1], obj[2]);
+};
+
+Point.prototype.inspect = function inspect() {
+ if (this.isInfinity())
+ return '';
+ return '';
+};
+
+Point.prototype.isInfinity = function isInfinity() {
+ // XXX This code assumes that zero is always zero in red
+ return this.x.cmpn(0) === 0 &&
+ (this.y.cmp(this.z) === 0 ||
+ (this.zOne && this.y.cmp(this.curve.c) === 0));
+};
+
+Point.prototype._extDbl = function _extDbl() {
+ // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
+ // #doubling-dbl-2008-hwcd
+ // 4M + 4S
+
+ // A = X1^2
+ var a = this.x.redSqr();
+ // B = Y1^2
+ var b = this.y.redSqr();
+ // C = 2 * Z1^2
+ var c = this.z.redSqr();
+ c = c.redIAdd(c);
+ // D = a * A
+ var d = this.curve._mulA(a);
+ // E = (X1 + Y1)^2 - A - B
+ var e = this.x.redAdd(this.y).redSqr().redISub(a).redISub(b);
+ // G = D + B
+ var g = d.redAdd(b);
+ // F = G - C
+ var f = g.redSub(c);
+ // H = D - B
+ var h = d.redSub(b);
+ // X3 = E * F
+ var nx = e.redMul(f);
+ // Y3 = G * H
+ var ny = g.redMul(h);
+ // T3 = E * H
+ var nt = e.redMul(h);
+ // Z3 = F * G
+ var nz = f.redMul(g);
+ return this.curve.point(nx, ny, nz, nt);
+};
+
+Point.prototype._projDbl = function _projDbl() {
+ // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
+ // #doubling-dbl-2008-bbjlp
+ // #doubling-dbl-2007-bl
+ // and others
+ // Generally 3M + 4S or 2M + 4S
+
+ // B = (X1 + Y1)^2
+ var b = this.x.redAdd(this.y).redSqr();
+ // C = X1^2
+ var c = this.x.redSqr();
+ // D = Y1^2
+ var d = this.y.redSqr();
+
+ var nx;
+ var ny;
+ var nz;
+ var e;
+ var h;
+ var j;
+ if (this.curve.twisted) {
+ // E = a * C
+ e = this.curve._mulA(c);
+ // F = E + D
+ var f = e.redAdd(d);
+ if (this.zOne) {
+ // X3 = (B - C - D) * (F - 2)
+ nx = b.redSub(c).redSub(d).redMul(f.redSub(this.curve.two));
+ // Y3 = F * (E - D)
+ ny = f.redMul(e.redSub(d));
+ // Z3 = F^2 - 2 * F
+ nz = f.redSqr().redSub(f).redSub(f);
+ } else {
+ // H = Z1^2
+ h = this.z.redSqr();
+ // J = F - 2 * H
+ j = f.redSub(h).redISub(h);
+ // X3 = (B-C-D)*J
+ nx = b.redSub(c).redISub(d).redMul(j);
+ // Y3 = F * (E - D)
+ ny = f.redMul(e.redSub(d));
+ // Z3 = F * J
+ nz = f.redMul(j);
+ }
+ } else {
+ // E = C + D
+ e = c.redAdd(d);
+ // H = (c * Z1)^2
+ h = this.curve._mulC(this.z).redSqr();
+ // J = E - 2 * H
+ j = e.redSub(h).redSub(h);
+ // X3 = c * (B - E) * J
+ nx = this.curve._mulC(b.redISub(e)).redMul(j);
+ // Y3 = c * E * (C - D)
+ ny = this.curve._mulC(e).redMul(c.redISub(d));
+ // Z3 = E * J
+ nz = e.redMul(j);
+ }
+ return this.curve.point(nx, ny, nz);
+};
+
+Point.prototype.dbl = function dbl() {
+ if (this.isInfinity())
+ return this;
+
+ // Double in extended coordinates
+ if (this.curve.extended)
+ return this._extDbl();
+ else
+ return this._projDbl();
+};
+
+Point.prototype._extAdd = function _extAdd(p) {
+ // hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html
+ // #addition-add-2008-hwcd-3
+ // 8M
+
+ // A = (Y1 - X1) * (Y2 - X2)
+ var a = this.y.redSub(this.x).redMul(p.y.redSub(p.x));
+ // B = (Y1 + X1) * (Y2 + X2)
+ var b = this.y.redAdd(this.x).redMul(p.y.redAdd(p.x));
+ // C = T1 * k * T2
+ var c = this.t.redMul(this.curve.dd).redMul(p.t);
+ // D = Z1 * 2 * Z2
+ var d = this.z.redMul(p.z.redAdd(p.z));
+ // E = B - A
+ var e = b.redSub(a);
+ // F = D - C
+ var f = d.redSub(c);
+ // G = D + C
+ var g = d.redAdd(c);
+ // H = B + A
+ var h = b.redAdd(a);
+ // X3 = E * F
+ var nx = e.redMul(f);
+ // Y3 = G * H
+ var ny = g.redMul(h);
+ // T3 = E * H
+ var nt = e.redMul(h);
+ // Z3 = F * G
+ var nz = f.redMul(g);
+ return this.curve.point(nx, ny, nz, nt);
+};
+
+Point.prototype._projAdd = function _projAdd(p) {
+ // hyperelliptic.org/EFD/g1p/auto-twisted-projective.html
+ // #addition-add-2008-bbjlp
+ // #addition-add-2007-bl
+ // 10M + 1S
+
+ // A = Z1 * Z2
+ var a = this.z.redMul(p.z);
+ // B = A^2
+ var b = a.redSqr();
+ // C = X1 * X2
+ var c = this.x.redMul(p.x);
+ // D = Y1 * Y2
+ var d = this.y.redMul(p.y);
+ // E = d * C * D
+ var e = this.curve.d.redMul(c).redMul(d);
+ // F = B - E
+ var f = b.redSub(e);
+ // G = B + E
+ var g = b.redAdd(e);
+ // X3 = A * F * ((X1 + Y1) * (X2 + Y2) - C - D)
+ var tmp = this.x.redAdd(this.y).redMul(p.x.redAdd(p.y)).redISub(c).redISub(d);
+ var nx = a.redMul(f).redMul(tmp);
+ var ny;
+ var nz;
+ if (this.curve.twisted) {
+ // Y3 = A * G * (D - a * C)
+ ny = a.redMul(g).redMul(d.redSub(this.curve._mulA(c)));
+ // Z3 = F * G
+ nz = f.redMul(g);
+ } else {
+ // Y3 = A * G * (D - C)
+ ny = a.redMul(g).redMul(d.redSub(c));
+ // Z3 = c * F * G
+ nz = this.curve._mulC(f).redMul(g);
+ }
+ return this.curve.point(nx, ny, nz);
+};
+
+Point.prototype.add = function add(p) {
+ if (this.isInfinity())
+ return p;
+ if (p.isInfinity())
+ return this;
+
+ if (this.curve.extended)
+ return this._extAdd(p);
+ else
+ return this._projAdd(p);
+};
+
+Point.prototype.mul = function mul(k) {
+ if (this._hasDoubles(k))
+ return this.curve._fixedNafMul(this, k);
+ else
+ return this.curve._wnafMul(this, k);
+};
+
+Point.prototype.mulAdd = function mulAdd(k1, p, k2) {
+ return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, false);
+};
+
+Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) {
+ return this.curve._wnafMulAdd(1, [ this, p ], [ k1, k2 ], 2, true);
+};
+
+Point.prototype.normalize = function normalize() {
+ if (this.zOne)
+ return this;
+
+ // Normalize coordinates
+ var zi = this.z.redInvm();
+ this.x = this.x.redMul(zi);
+ this.y = this.y.redMul(zi);
+ if (this.t)
+ this.t = this.t.redMul(zi);
+ this.z = this.curve.one;
+ this.zOne = true;
+ return this;
+};
+
+Point.prototype.neg = function neg() {
+ return this.curve.point(this.x.redNeg(),
+ this.y,
+ this.z,
+ this.t && this.t.redNeg());
+};
+
+Point.prototype.getX = function getX() {
+ this.normalize();
+ return this.x.fromRed();
+};
+
+Point.prototype.getY = function getY() {
+ this.normalize();
+ return this.y.fromRed();
+};
+
+Point.prototype.eq = function eq(other) {
+ return this === other ||
+ this.getX().cmp(other.getX()) === 0 &&
+ this.getY().cmp(other.getY()) === 0;
+};
+
+Point.prototype.eqXToP = function eqXToP(x) {
+ var rx = x.toRed(this.curve.red).redMul(this.z);
+ if (this.x.cmp(rx) === 0)
+ return true;
+
+ var xc = x.clone();
+ var t = this.curve.redN.redMul(this.z);
+ for (;;) {
+ xc.iadd(this.curve.n);
+ if (xc.cmp(this.curve.p) >= 0)
+ return false;
+
+ rx.redIAdd(t);
+ if (this.x.cmp(rx) === 0)
+ return true;
+ }
+};
+
+// Compatibility with BaseCurve
+Point.prototype.toP = Point.prototype.normalize;
+Point.prototype.mixedAdd = Point.prototype.add;
diff --git a/node_modules/elliptic/lib/elliptic/curve/index.js b/node_modules/elliptic/lib/elliptic/curve/index.js
new file mode 100644
index 00000000..c589281d
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curve/index.js
@@ -0,0 +1,8 @@
+'use strict';
+
+var curve = exports;
+
+curve.base = require('./base');
+curve.short = require('./short');
+curve.mont = require('./mont');
+curve.edwards = require('./edwards');
diff --git a/node_modules/elliptic/lib/elliptic/curve/mont.js b/node_modules/elliptic/lib/elliptic/curve/mont.js
new file mode 100644
index 00000000..4b9f80fd
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curve/mont.js
@@ -0,0 +1,178 @@
+'use strict';
+
+var BN = require('bn.js');
+var inherits = require('inherits');
+var Base = require('./base');
+
+var utils = require('../utils');
+
+function MontCurve(conf) {
+ Base.call(this, 'mont', conf);
+
+ this.a = new BN(conf.a, 16).toRed(this.red);
+ this.b = new BN(conf.b, 16).toRed(this.red);
+ this.i4 = new BN(4).toRed(this.red).redInvm();
+ this.two = new BN(2).toRed(this.red);
+ this.a24 = this.i4.redMul(this.a.redAdd(this.two));
+}
+inherits(MontCurve, Base);
+module.exports = MontCurve;
+
+MontCurve.prototype.validate = function validate(point) {
+ var x = point.normalize().x;
+ var x2 = x.redSqr();
+ var rhs = x2.redMul(x).redAdd(x2.redMul(this.a)).redAdd(x);
+ var y = rhs.redSqrt();
+
+ return y.redSqr().cmp(rhs) === 0;
+};
+
+function Point(curve, x, z) {
+ Base.BasePoint.call(this, curve, 'projective');
+ if (x === null && z === null) {
+ this.x = this.curve.one;
+ this.z = this.curve.zero;
+ } else {
+ this.x = new BN(x, 16);
+ this.z = new BN(z, 16);
+ if (!this.x.red)
+ this.x = this.x.toRed(this.curve.red);
+ if (!this.z.red)
+ this.z = this.z.toRed(this.curve.red);
+ }
+}
+inherits(Point, Base.BasePoint);
+
+MontCurve.prototype.decodePoint = function decodePoint(bytes, enc) {
+ return this.point(utils.toArray(bytes, enc), 1);
+};
+
+MontCurve.prototype.point = function point(x, z) {
+ return new Point(this, x, z);
+};
+
+MontCurve.prototype.pointFromJSON = function pointFromJSON(obj) {
+ return Point.fromJSON(this, obj);
+};
+
+Point.prototype.precompute = function precompute() {
+ // No-op
+};
+
+Point.prototype._encode = function _encode() {
+ return this.getX().toArray('be', this.curve.p.byteLength());
+};
+
+Point.fromJSON = function fromJSON(curve, obj) {
+ return new Point(curve, obj[0], obj[1] || curve.one);
+};
+
+Point.prototype.inspect = function inspect() {
+ if (this.isInfinity())
+ return '';
+ return '';
+};
+
+Point.prototype.isInfinity = function isInfinity() {
+ // XXX This code assumes that zero is always zero in red
+ return this.z.cmpn(0) === 0;
+};
+
+Point.prototype.dbl = function dbl() {
+ // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#doubling-dbl-1987-m-3
+ // 2M + 2S + 4A
+
+ // A = X1 + Z1
+ var a = this.x.redAdd(this.z);
+ // AA = A^2
+ var aa = a.redSqr();
+ // B = X1 - Z1
+ var b = this.x.redSub(this.z);
+ // BB = B^2
+ var bb = b.redSqr();
+ // C = AA - BB
+ var c = aa.redSub(bb);
+ // X3 = AA * BB
+ var nx = aa.redMul(bb);
+ // Z3 = C * (BB + A24 * C)
+ var nz = c.redMul(bb.redAdd(this.curve.a24.redMul(c)));
+ return this.curve.point(nx, nz);
+};
+
+Point.prototype.add = function add() {
+ throw new Error('Not supported on Montgomery curve');
+};
+
+Point.prototype.diffAdd = function diffAdd(p, diff) {
+ // http://hyperelliptic.org/EFD/g1p/auto-montgom-xz.html#diffadd-dadd-1987-m-3
+ // 4M + 2S + 6A
+
+ // A = X2 + Z2
+ var a = this.x.redAdd(this.z);
+ // B = X2 - Z2
+ var b = this.x.redSub(this.z);
+ // C = X3 + Z3
+ var c = p.x.redAdd(p.z);
+ // D = X3 - Z3
+ var d = p.x.redSub(p.z);
+ // DA = D * A
+ var da = d.redMul(a);
+ // CB = C * B
+ var cb = c.redMul(b);
+ // X5 = Z1 * (DA + CB)^2
+ var nx = diff.z.redMul(da.redAdd(cb).redSqr());
+ // Z5 = X1 * (DA - CB)^2
+ var nz = diff.x.redMul(da.redISub(cb).redSqr());
+ return this.curve.point(nx, nz);
+};
+
+Point.prototype.mul = function mul(k) {
+ var t = k.clone();
+ var a = this; // (N / 2) * Q + Q
+ var b = this.curve.point(null, null); // (N / 2) * Q
+ var c = this; // Q
+
+ for (var bits = []; t.cmpn(0) !== 0; t.iushrn(1))
+ bits.push(t.andln(1));
+
+ for (var i = bits.length - 1; i >= 0; i--) {
+ if (bits[i] === 0) {
+ // N * Q + Q = ((N / 2) * Q + Q)) + (N / 2) * Q
+ a = a.diffAdd(b, c);
+ // N * Q = 2 * ((N / 2) * Q + Q))
+ b = b.dbl();
+ } else {
+ // N * Q = ((N / 2) * Q + Q) + ((N / 2) * Q)
+ b = a.diffAdd(b, c);
+ // N * Q + Q = 2 * ((N / 2) * Q + Q)
+ a = a.dbl();
+ }
+ }
+ return b;
+};
+
+Point.prototype.mulAdd = function mulAdd() {
+ throw new Error('Not supported on Montgomery curve');
+};
+
+Point.prototype.jumlAdd = function jumlAdd() {
+ throw new Error('Not supported on Montgomery curve');
+};
+
+Point.prototype.eq = function eq(other) {
+ return this.getX().cmp(other.getX()) === 0;
+};
+
+Point.prototype.normalize = function normalize() {
+ this.x = this.x.redMul(this.z.redInvm());
+ this.z = this.curve.one;
+ return this;
+};
+
+Point.prototype.getX = function getX() {
+ // Normalize coordinates
+ this.normalize();
+
+ return this.x.fromRed();
+};
diff --git a/node_modules/elliptic/lib/elliptic/curve/short.js b/node_modules/elliptic/lib/elliptic/curve/short.js
new file mode 100644
index 00000000..eec36ec5
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curve/short.js
@@ -0,0 +1,938 @@
+'use strict';
+
+var utils = require('../utils');
+var BN = require('bn.js');
+var inherits = require('inherits');
+var Base = require('./base');
+
+var assert = utils.assert;
+
+function ShortCurve(conf) {
+ Base.call(this, 'short', conf);
+
+ this.a = new BN(conf.a, 16).toRed(this.red);
+ this.b = new BN(conf.b, 16).toRed(this.red);
+ this.tinv = this.two.redInvm();
+
+ this.zeroA = this.a.fromRed().cmpn(0) === 0;
+ this.threeA = this.a.fromRed().sub(this.p).cmpn(-3) === 0;
+
+ // If the curve is endomorphic, precalculate beta and lambda
+ this.endo = this._getEndomorphism(conf);
+ this._endoWnafT1 = new Array(4);
+ this._endoWnafT2 = new Array(4);
+}
+inherits(ShortCurve, Base);
+module.exports = ShortCurve;
+
+ShortCurve.prototype._getEndomorphism = function _getEndomorphism(conf) {
+ // No efficient endomorphism
+ if (!this.zeroA || !this.g || !this.n || this.p.modn(3) !== 1)
+ return;
+
+ // Compute beta and lambda, that lambda * P = (beta * Px; Py)
+ var beta;
+ var lambda;
+ if (conf.beta) {
+ beta = new BN(conf.beta, 16).toRed(this.red);
+ } else {
+ var betas = this._getEndoRoots(this.p);
+ // Choose the smallest beta
+ beta = betas[0].cmp(betas[1]) < 0 ? betas[0] : betas[1];
+ beta = beta.toRed(this.red);
+ }
+ if (conf.lambda) {
+ lambda = new BN(conf.lambda, 16);
+ } else {
+ // Choose the lambda that is matching selected beta
+ var lambdas = this._getEndoRoots(this.n);
+ if (this.g.mul(lambdas[0]).x.cmp(this.g.x.redMul(beta)) === 0) {
+ lambda = lambdas[0];
+ } else {
+ lambda = lambdas[1];
+ assert(this.g.mul(lambda).x.cmp(this.g.x.redMul(beta)) === 0);
+ }
+ }
+
+ // Get basis vectors, used for balanced length-two representation
+ var basis;
+ if (conf.basis) {
+ basis = conf.basis.map(function(vec) {
+ return {
+ a: new BN(vec.a, 16),
+ b: new BN(vec.b, 16),
+ };
+ });
+ } else {
+ basis = this._getEndoBasis(lambda);
+ }
+
+ return {
+ beta: beta,
+ lambda: lambda,
+ basis: basis,
+ };
+};
+
+ShortCurve.prototype._getEndoRoots = function _getEndoRoots(num) {
+ // Find roots of for x^2 + x + 1 in F
+ // Root = (-1 +- Sqrt(-3)) / 2
+ //
+ var red = num === this.p ? this.red : BN.mont(num);
+ var tinv = new BN(2).toRed(red).redInvm();
+ var ntinv = tinv.redNeg();
+
+ var s = new BN(3).toRed(red).redNeg().redSqrt().redMul(tinv);
+
+ var l1 = ntinv.redAdd(s).fromRed();
+ var l2 = ntinv.redSub(s).fromRed();
+ return [ l1, l2 ];
+};
+
+ShortCurve.prototype._getEndoBasis = function _getEndoBasis(lambda) {
+ // aprxSqrt >= sqrt(this.n)
+ var aprxSqrt = this.n.ushrn(Math.floor(this.n.bitLength() / 2));
+
+ // 3.74
+ // Run EGCD, until r(L + 1) < aprxSqrt
+ var u = lambda;
+ var v = this.n.clone();
+ var x1 = new BN(1);
+ var y1 = new BN(0);
+ var x2 = new BN(0);
+ var y2 = new BN(1);
+
+ // NOTE: all vectors are roots of: a + b * lambda = 0 (mod n)
+ var a0;
+ var b0;
+ // First vector
+ var a1;
+ var b1;
+ // Second vector
+ var a2;
+ var b2;
+
+ var prevR;
+ var i = 0;
+ var r;
+ var x;
+ while (u.cmpn(0) !== 0) {
+ var q = v.div(u);
+ r = v.sub(q.mul(u));
+ x = x2.sub(q.mul(x1));
+ var y = y2.sub(q.mul(y1));
+
+ if (!a1 && r.cmp(aprxSqrt) < 0) {
+ a0 = prevR.neg();
+ b0 = x1;
+ a1 = r.neg();
+ b1 = x;
+ } else if (a1 && ++i === 2) {
+ break;
+ }
+ prevR = r;
+
+ v = u;
+ u = r;
+ x2 = x1;
+ x1 = x;
+ y2 = y1;
+ y1 = y;
+ }
+ a2 = r.neg();
+ b2 = x;
+
+ var len1 = a1.sqr().add(b1.sqr());
+ var len2 = a2.sqr().add(b2.sqr());
+ if (len2.cmp(len1) >= 0) {
+ a2 = a0;
+ b2 = b0;
+ }
+
+ // Normalize signs
+ if (a1.negative) {
+ a1 = a1.neg();
+ b1 = b1.neg();
+ }
+ if (a2.negative) {
+ a2 = a2.neg();
+ b2 = b2.neg();
+ }
+
+ return [
+ { a: a1, b: b1 },
+ { a: a2, b: b2 },
+ ];
+};
+
+ShortCurve.prototype._endoSplit = function _endoSplit(k) {
+ var basis = this.endo.basis;
+ var v1 = basis[0];
+ var v2 = basis[1];
+
+ var c1 = v2.b.mul(k).divRound(this.n);
+ var c2 = v1.b.neg().mul(k).divRound(this.n);
+
+ var p1 = c1.mul(v1.a);
+ var p2 = c2.mul(v2.a);
+ var q1 = c1.mul(v1.b);
+ var q2 = c2.mul(v2.b);
+
+ // Calculate answer
+ var k1 = k.sub(p1).sub(p2);
+ var k2 = q1.add(q2).neg();
+ return { k1: k1, k2: k2 };
+};
+
+ShortCurve.prototype.pointFromX = function pointFromX(x, odd) {
+ x = new BN(x, 16);
+ if (!x.red)
+ x = x.toRed(this.red);
+
+ var y2 = x.redSqr().redMul(x).redIAdd(x.redMul(this.a)).redIAdd(this.b);
+ var y = y2.redSqrt();
+ if (y.redSqr().redSub(y2).cmp(this.zero) !== 0)
+ throw new Error('invalid point');
+
+ // XXX Is there any way to tell if the number is odd without converting it
+ // to non-red form?
+ var isOdd = y.fromRed().isOdd();
+ if (odd && !isOdd || !odd && isOdd)
+ y = y.redNeg();
+
+ return this.point(x, y);
+};
+
+ShortCurve.prototype.validate = function validate(point) {
+ if (point.inf)
+ return true;
+
+ var x = point.x;
+ var y = point.y;
+
+ var ax = this.a.redMul(x);
+ var rhs = x.redSqr().redMul(x).redIAdd(ax).redIAdd(this.b);
+ return y.redSqr().redISub(rhs).cmpn(0) === 0;
+};
+
+ShortCurve.prototype._endoWnafMulAdd =
+ function _endoWnafMulAdd(points, coeffs, jacobianResult) {
+ var npoints = this._endoWnafT1;
+ var ncoeffs = this._endoWnafT2;
+ for (var i = 0; i < points.length; i++) {
+ var split = this._endoSplit(coeffs[i]);
+ var p = points[i];
+ var beta = p._getBeta();
+
+ if (split.k1.negative) {
+ split.k1.ineg();
+ p = p.neg(true);
+ }
+ if (split.k2.negative) {
+ split.k2.ineg();
+ beta = beta.neg(true);
+ }
+
+ npoints[i * 2] = p;
+ npoints[i * 2 + 1] = beta;
+ ncoeffs[i * 2] = split.k1;
+ ncoeffs[i * 2 + 1] = split.k2;
+ }
+ var res = this._wnafMulAdd(1, npoints, ncoeffs, i * 2, jacobianResult);
+
+ // Clean-up references to points and coefficients
+ for (var j = 0; j < i * 2; j++) {
+ npoints[j] = null;
+ ncoeffs[j] = null;
+ }
+ return res;
+ };
+
+function Point(curve, x, y, isRed) {
+ Base.BasePoint.call(this, curve, 'affine');
+ if (x === null && y === null) {
+ this.x = null;
+ this.y = null;
+ this.inf = true;
+ } else {
+ this.x = new BN(x, 16);
+ this.y = new BN(y, 16);
+ // Force redgomery representation when loading from JSON
+ if (isRed) {
+ this.x.forceRed(this.curve.red);
+ this.y.forceRed(this.curve.red);
+ }
+ if (!this.x.red)
+ this.x = this.x.toRed(this.curve.red);
+ if (!this.y.red)
+ this.y = this.y.toRed(this.curve.red);
+ this.inf = false;
+ }
+}
+inherits(Point, Base.BasePoint);
+
+ShortCurve.prototype.point = function point(x, y, isRed) {
+ return new Point(this, x, y, isRed);
+};
+
+ShortCurve.prototype.pointFromJSON = function pointFromJSON(obj, red) {
+ return Point.fromJSON(this, obj, red);
+};
+
+Point.prototype._getBeta = function _getBeta() {
+ if (!this.curve.endo)
+ return;
+
+ var pre = this.precomputed;
+ if (pre && pre.beta)
+ return pre.beta;
+
+ var beta = this.curve.point(this.x.redMul(this.curve.endo.beta), this.y);
+ if (pre) {
+ var curve = this.curve;
+ var endoMul = function(p) {
+ return curve.point(p.x.redMul(curve.endo.beta), p.y);
+ };
+ pre.beta = beta;
+ beta.precomputed = {
+ beta: null,
+ naf: pre.naf && {
+ wnd: pre.naf.wnd,
+ points: pre.naf.points.map(endoMul),
+ },
+ doubles: pre.doubles && {
+ step: pre.doubles.step,
+ points: pre.doubles.points.map(endoMul),
+ },
+ };
+ }
+ return beta;
+};
+
+Point.prototype.toJSON = function toJSON() {
+ if (!this.precomputed)
+ return [ this.x, this.y ];
+
+ return [ this.x, this.y, this.precomputed && {
+ doubles: this.precomputed.doubles && {
+ step: this.precomputed.doubles.step,
+ points: this.precomputed.doubles.points.slice(1),
+ },
+ naf: this.precomputed.naf && {
+ wnd: this.precomputed.naf.wnd,
+ points: this.precomputed.naf.points.slice(1),
+ },
+ } ];
+};
+
+Point.fromJSON = function fromJSON(curve, obj, red) {
+ if (typeof obj === 'string')
+ obj = JSON.parse(obj);
+ var res = curve.point(obj[0], obj[1], red);
+ if (!obj[2])
+ return res;
+
+ function obj2point(obj) {
+ return curve.point(obj[0], obj[1], red);
+ }
+
+ var pre = obj[2];
+ res.precomputed = {
+ beta: null,
+ doubles: pre.doubles && {
+ step: pre.doubles.step,
+ points: [ res ].concat(pre.doubles.points.map(obj2point)),
+ },
+ naf: pre.naf && {
+ wnd: pre.naf.wnd,
+ points: [ res ].concat(pre.naf.points.map(obj2point)),
+ },
+ };
+ return res;
+};
+
+Point.prototype.inspect = function inspect() {
+ if (this.isInfinity())
+ return '';
+ return '';
+};
+
+Point.prototype.isInfinity = function isInfinity() {
+ return this.inf;
+};
+
+Point.prototype.add = function add(p) {
+ // O + P = P
+ if (this.inf)
+ return p;
+
+ // P + O = P
+ if (p.inf)
+ return this;
+
+ // P + P = 2P
+ if (this.eq(p))
+ return this.dbl();
+
+ // P + (-P) = O
+ if (this.neg().eq(p))
+ return this.curve.point(null, null);
+
+ // P + Q = O
+ if (this.x.cmp(p.x) === 0)
+ return this.curve.point(null, null);
+
+ var c = this.y.redSub(p.y);
+ if (c.cmpn(0) !== 0)
+ c = c.redMul(this.x.redSub(p.x).redInvm());
+ var nx = c.redSqr().redISub(this.x).redISub(p.x);
+ var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
+ return this.curve.point(nx, ny);
+};
+
+Point.prototype.dbl = function dbl() {
+ if (this.inf)
+ return this;
+
+ // 2P = O
+ var ys1 = this.y.redAdd(this.y);
+ if (ys1.cmpn(0) === 0)
+ return this.curve.point(null, null);
+
+ var a = this.curve.a;
+
+ var x2 = this.x.redSqr();
+ var dyinv = ys1.redInvm();
+ var c = x2.redAdd(x2).redIAdd(x2).redIAdd(a).redMul(dyinv);
+
+ var nx = c.redSqr().redISub(this.x.redAdd(this.x));
+ var ny = c.redMul(this.x.redSub(nx)).redISub(this.y);
+ return this.curve.point(nx, ny);
+};
+
+Point.prototype.getX = function getX() {
+ return this.x.fromRed();
+};
+
+Point.prototype.getY = function getY() {
+ return this.y.fromRed();
+};
+
+Point.prototype.mul = function mul(k) {
+ k = new BN(k, 16);
+ if (this.isInfinity())
+ return this;
+ else if (this._hasDoubles(k))
+ return this.curve._fixedNafMul(this, k);
+ else if (this.curve.endo)
+ return this.curve._endoWnafMulAdd([ this ], [ k ]);
+ else
+ return this.curve._wnafMul(this, k);
+};
+
+Point.prototype.mulAdd = function mulAdd(k1, p2, k2) {
+ var points = [ this, p2 ];
+ var coeffs = [ k1, k2 ];
+ if (this.curve.endo)
+ return this.curve._endoWnafMulAdd(points, coeffs);
+ else
+ return this.curve._wnafMulAdd(1, points, coeffs, 2);
+};
+
+Point.prototype.jmulAdd = function jmulAdd(k1, p2, k2) {
+ var points = [ this, p2 ];
+ var coeffs = [ k1, k2 ];
+ if (this.curve.endo)
+ return this.curve._endoWnafMulAdd(points, coeffs, true);
+ else
+ return this.curve._wnafMulAdd(1, points, coeffs, 2, true);
+};
+
+Point.prototype.eq = function eq(p) {
+ return this === p ||
+ this.inf === p.inf &&
+ (this.inf || this.x.cmp(p.x) === 0 && this.y.cmp(p.y) === 0);
+};
+
+Point.prototype.neg = function neg(_precompute) {
+ if (this.inf)
+ return this;
+
+ var res = this.curve.point(this.x, this.y.redNeg());
+ if (_precompute && this.precomputed) {
+ var pre = this.precomputed;
+ var negate = function(p) {
+ return p.neg();
+ };
+ res.precomputed = {
+ naf: pre.naf && {
+ wnd: pre.naf.wnd,
+ points: pre.naf.points.map(negate),
+ },
+ doubles: pre.doubles && {
+ step: pre.doubles.step,
+ points: pre.doubles.points.map(negate),
+ },
+ };
+ }
+ return res;
+};
+
+Point.prototype.toJ = function toJ() {
+ if (this.inf)
+ return this.curve.jpoint(null, null, null);
+
+ var res = this.curve.jpoint(this.x, this.y, this.curve.one);
+ return res;
+};
+
+function JPoint(curve, x, y, z) {
+ Base.BasePoint.call(this, curve, 'jacobian');
+ if (x === null && y === null && z === null) {
+ this.x = this.curve.one;
+ this.y = this.curve.one;
+ this.z = new BN(0);
+ } else {
+ this.x = new BN(x, 16);
+ this.y = new BN(y, 16);
+ this.z = new BN(z, 16);
+ }
+ if (!this.x.red)
+ this.x = this.x.toRed(this.curve.red);
+ if (!this.y.red)
+ this.y = this.y.toRed(this.curve.red);
+ if (!this.z.red)
+ this.z = this.z.toRed(this.curve.red);
+
+ this.zOne = this.z === this.curve.one;
+}
+inherits(JPoint, Base.BasePoint);
+
+ShortCurve.prototype.jpoint = function jpoint(x, y, z) {
+ return new JPoint(this, x, y, z);
+};
+
+JPoint.prototype.toP = function toP() {
+ if (this.isInfinity())
+ return this.curve.point(null, null);
+
+ var zinv = this.z.redInvm();
+ var zinv2 = zinv.redSqr();
+ var ax = this.x.redMul(zinv2);
+ var ay = this.y.redMul(zinv2).redMul(zinv);
+
+ return this.curve.point(ax, ay);
+};
+
+JPoint.prototype.neg = function neg() {
+ return this.curve.jpoint(this.x, this.y.redNeg(), this.z);
+};
+
+JPoint.prototype.add = function add(p) {
+ // O + P = P
+ if (this.isInfinity())
+ return p;
+
+ // P + O = P
+ if (p.isInfinity())
+ return this;
+
+ // 12M + 4S + 7A
+ var pz2 = p.z.redSqr();
+ var z2 = this.z.redSqr();
+ var u1 = this.x.redMul(pz2);
+ var u2 = p.x.redMul(z2);
+ var s1 = this.y.redMul(pz2.redMul(p.z));
+ var s2 = p.y.redMul(z2.redMul(this.z));
+
+ var h = u1.redSub(u2);
+ var r = s1.redSub(s2);
+ if (h.cmpn(0) === 0) {
+ if (r.cmpn(0) !== 0)
+ return this.curve.jpoint(null, null, null);
+ else
+ return this.dbl();
+ }
+
+ var h2 = h.redSqr();
+ var h3 = h2.redMul(h);
+ var v = u1.redMul(h2);
+
+ var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
+ var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
+ var nz = this.z.redMul(p.z).redMul(h);
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype.mixedAdd = function mixedAdd(p) {
+ // O + P = P
+ if (this.isInfinity())
+ return p.toJ();
+
+ // P + O = P
+ if (p.isInfinity())
+ return this;
+
+ // 8M + 3S + 7A
+ var z2 = this.z.redSqr();
+ var u1 = this.x;
+ var u2 = p.x.redMul(z2);
+ var s1 = this.y;
+ var s2 = p.y.redMul(z2).redMul(this.z);
+
+ var h = u1.redSub(u2);
+ var r = s1.redSub(s2);
+ if (h.cmpn(0) === 0) {
+ if (r.cmpn(0) !== 0)
+ return this.curve.jpoint(null, null, null);
+ else
+ return this.dbl();
+ }
+
+ var h2 = h.redSqr();
+ var h3 = h2.redMul(h);
+ var v = u1.redMul(h2);
+
+ var nx = r.redSqr().redIAdd(h3).redISub(v).redISub(v);
+ var ny = r.redMul(v.redISub(nx)).redISub(s1.redMul(h3));
+ var nz = this.z.redMul(h);
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype.dblp = function dblp(pow) {
+ if (pow === 0)
+ return this;
+ if (this.isInfinity())
+ return this;
+ if (!pow)
+ return this.dbl();
+
+ var i;
+ if (this.curve.zeroA || this.curve.threeA) {
+ var r = this;
+ for (i = 0; i < pow; i++)
+ r = r.dbl();
+ return r;
+ }
+
+ // 1M + 2S + 1A + N * (4S + 5M + 8A)
+ // N = 1 => 6M + 6S + 9A
+ var a = this.curve.a;
+ var tinv = this.curve.tinv;
+
+ var jx = this.x;
+ var jy = this.y;
+ var jz = this.z;
+ var jz4 = jz.redSqr().redSqr();
+
+ // Reuse results
+ var jyd = jy.redAdd(jy);
+ for (i = 0; i < pow; i++) {
+ var jx2 = jx.redSqr();
+ var jyd2 = jyd.redSqr();
+ var jyd4 = jyd2.redSqr();
+ var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
+
+ var t1 = jx.redMul(jyd2);
+ var nx = c.redSqr().redISub(t1.redAdd(t1));
+ var t2 = t1.redISub(nx);
+ var dny = c.redMul(t2);
+ dny = dny.redIAdd(dny).redISub(jyd4);
+ var nz = jyd.redMul(jz);
+ if (i + 1 < pow)
+ jz4 = jz4.redMul(jyd4);
+
+ jx = nx;
+ jz = nz;
+ jyd = dny;
+ }
+
+ return this.curve.jpoint(jx, jyd.redMul(tinv), jz);
+};
+
+JPoint.prototype.dbl = function dbl() {
+ if (this.isInfinity())
+ return this;
+
+ if (this.curve.zeroA)
+ return this._zeroDbl();
+ else if (this.curve.threeA)
+ return this._threeDbl();
+ else
+ return this._dbl();
+};
+
+JPoint.prototype._zeroDbl = function _zeroDbl() {
+ var nx;
+ var ny;
+ var nz;
+ // Z = 1
+ if (this.zOne) {
+ // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
+ // #doubling-mdbl-2007-bl
+ // 1M + 5S + 14A
+
+ // XX = X1^2
+ var xx = this.x.redSqr();
+ // YY = Y1^2
+ var yy = this.y.redSqr();
+ // YYYY = YY^2
+ var yyyy = yy.redSqr();
+ // S = 2 * ((X1 + YY)^2 - XX - YYYY)
+ var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
+ s = s.redIAdd(s);
+ // M = 3 * XX + a; a = 0
+ var m = xx.redAdd(xx).redIAdd(xx);
+ // T = M ^ 2 - 2*S
+ var t = m.redSqr().redISub(s).redISub(s);
+
+ // 8 * YYYY
+ var yyyy8 = yyyy.redIAdd(yyyy);
+ yyyy8 = yyyy8.redIAdd(yyyy8);
+ yyyy8 = yyyy8.redIAdd(yyyy8);
+
+ // X3 = T
+ nx = t;
+ // Y3 = M * (S - T) - 8 * YYYY
+ ny = m.redMul(s.redISub(t)).redISub(yyyy8);
+ // Z3 = 2*Y1
+ nz = this.y.redAdd(this.y);
+ } else {
+ // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html
+ // #doubling-dbl-2009-l
+ // 2M + 5S + 13A
+
+ // A = X1^2
+ var a = this.x.redSqr();
+ // B = Y1^2
+ var b = this.y.redSqr();
+ // C = B^2
+ var c = b.redSqr();
+ // D = 2 * ((X1 + B)^2 - A - C)
+ var d = this.x.redAdd(b).redSqr().redISub(a).redISub(c);
+ d = d.redIAdd(d);
+ // E = 3 * A
+ var e = a.redAdd(a).redIAdd(a);
+ // F = E^2
+ var f = e.redSqr();
+
+ // 8 * C
+ var c8 = c.redIAdd(c);
+ c8 = c8.redIAdd(c8);
+ c8 = c8.redIAdd(c8);
+
+ // X3 = F - 2 * D
+ nx = f.redISub(d).redISub(d);
+ // Y3 = E * (D - X3) - 8 * C
+ ny = e.redMul(d.redISub(nx)).redISub(c8);
+ // Z3 = 2 * Y1 * Z1
+ nz = this.y.redMul(this.z);
+ nz = nz.redIAdd(nz);
+ }
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype._threeDbl = function _threeDbl() {
+ var nx;
+ var ny;
+ var nz;
+ // Z = 1
+ if (this.zOne) {
+ // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html
+ // #doubling-mdbl-2007-bl
+ // 1M + 5S + 15A
+
+ // XX = X1^2
+ var xx = this.x.redSqr();
+ // YY = Y1^2
+ var yy = this.y.redSqr();
+ // YYYY = YY^2
+ var yyyy = yy.redSqr();
+ // S = 2 * ((X1 + YY)^2 - XX - YYYY)
+ var s = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
+ s = s.redIAdd(s);
+ // M = 3 * XX + a
+ var m = xx.redAdd(xx).redIAdd(xx).redIAdd(this.curve.a);
+ // T = M^2 - 2 * S
+ var t = m.redSqr().redISub(s).redISub(s);
+ // X3 = T
+ nx = t;
+ // Y3 = M * (S - T) - 8 * YYYY
+ var yyyy8 = yyyy.redIAdd(yyyy);
+ yyyy8 = yyyy8.redIAdd(yyyy8);
+ yyyy8 = yyyy8.redIAdd(yyyy8);
+ ny = m.redMul(s.redISub(t)).redISub(yyyy8);
+ // Z3 = 2 * Y1
+ nz = this.y.redAdd(this.y);
+ } else {
+ // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-3.html#doubling-dbl-2001-b
+ // 3M + 5S
+
+ // delta = Z1^2
+ var delta = this.z.redSqr();
+ // gamma = Y1^2
+ var gamma = this.y.redSqr();
+ // beta = X1 * gamma
+ var beta = this.x.redMul(gamma);
+ // alpha = 3 * (X1 - delta) * (X1 + delta)
+ var alpha = this.x.redSub(delta).redMul(this.x.redAdd(delta));
+ alpha = alpha.redAdd(alpha).redIAdd(alpha);
+ // X3 = alpha^2 - 8 * beta
+ var beta4 = beta.redIAdd(beta);
+ beta4 = beta4.redIAdd(beta4);
+ var beta8 = beta4.redAdd(beta4);
+ nx = alpha.redSqr().redISub(beta8);
+ // Z3 = (Y1 + Z1)^2 - gamma - delta
+ nz = this.y.redAdd(this.z).redSqr().redISub(gamma).redISub(delta);
+ // Y3 = alpha * (4 * beta - X3) - 8 * gamma^2
+ var ggamma8 = gamma.redSqr();
+ ggamma8 = ggamma8.redIAdd(ggamma8);
+ ggamma8 = ggamma8.redIAdd(ggamma8);
+ ggamma8 = ggamma8.redIAdd(ggamma8);
+ ny = alpha.redMul(beta4.redISub(nx)).redISub(ggamma8);
+ }
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype._dbl = function _dbl() {
+ var a = this.curve.a;
+
+ // 4M + 6S + 10A
+ var jx = this.x;
+ var jy = this.y;
+ var jz = this.z;
+ var jz4 = jz.redSqr().redSqr();
+
+ var jx2 = jx.redSqr();
+ var jy2 = jy.redSqr();
+
+ var c = jx2.redAdd(jx2).redIAdd(jx2).redIAdd(a.redMul(jz4));
+
+ var jxd4 = jx.redAdd(jx);
+ jxd4 = jxd4.redIAdd(jxd4);
+ var t1 = jxd4.redMul(jy2);
+ var nx = c.redSqr().redISub(t1.redAdd(t1));
+ var t2 = t1.redISub(nx);
+
+ var jyd8 = jy2.redSqr();
+ jyd8 = jyd8.redIAdd(jyd8);
+ jyd8 = jyd8.redIAdd(jyd8);
+ jyd8 = jyd8.redIAdd(jyd8);
+ var ny = c.redMul(t2).redISub(jyd8);
+ var nz = jy.redAdd(jy).redMul(jz);
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype.trpl = function trpl() {
+ if (!this.curve.zeroA)
+ return this.dbl().add(this);
+
+ // hyperelliptic.org/EFD/g1p/auto-shortw-jacobian-0.html#tripling-tpl-2007-bl
+ // 5M + 10S + ...
+
+ // XX = X1^2
+ var xx = this.x.redSqr();
+ // YY = Y1^2
+ var yy = this.y.redSqr();
+ // ZZ = Z1^2
+ var zz = this.z.redSqr();
+ // YYYY = YY^2
+ var yyyy = yy.redSqr();
+ // M = 3 * XX + a * ZZ2; a = 0
+ var m = xx.redAdd(xx).redIAdd(xx);
+ // MM = M^2
+ var mm = m.redSqr();
+ // E = 6 * ((X1 + YY)^2 - XX - YYYY) - MM
+ var e = this.x.redAdd(yy).redSqr().redISub(xx).redISub(yyyy);
+ e = e.redIAdd(e);
+ e = e.redAdd(e).redIAdd(e);
+ e = e.redISub(mm);
+ // EE = E^2
+ var ee = e.redSqr();
+ // T = 16*YYYY
+ var t = yyyy.redIAdd(yyyy);
+ t = t.redIAdd(t);
+ t = t.redIAdd(t);
+ t = t.redIAdd(t);
+ // U = (M + E)^2 - MM - EE - T
+ var u = m.redIAdd(e).redSqr().redISub(mm).redISub(ee).redISub(t);
+ // X3 = 4 * (X1 * EE - 4 * YY * U)
+ var yyu4 = yy.redMul(u);
+ yyu4 = yyu4.redIAdd(yyu4);
+ yyu4 = yyu4.redIAdd(yyu4);
+ var nx = this.x.redMul(ee).redISub(yyu4);
+ nx = nx.redIAdd(nx);
+ nx = nx.redIAdd(nx);
+ // Y3 = 8 * Y1 * (U * (T - U) - E * EE)
+ var ny = this.y.redMul(u.redMul(t.redISub(u)).redISub(e.redMul(ee)));
+ ny = ny.redIAdd(ny);
+ ny = ny.redIAdd(ny);
+ ny = ny.redIAdd(ny);
+ // Z3 = (Z1 + E)^2 - ZZ - EE
+ var nz = this.z.redAdd(e).redSqr().redISub(zz).redISub(ee);
+
+ return this.curve.jpoint(nx, ny, nz);
+};
+
+JPoint.prototype.mul = function mul(k, kbase) {
+ k = new BN(k, kbase);
+
+ return this.curve._wnafMul(this, k);
+};
+
+JPoint.prototype.eq = function eq(p) {
+ if (p.type === 'affine')
+ return this.eq(p.toJ());
+
+ if (this === p)
+ return true;
+
+ // x1 * z2^2 == x2 * z1^2
+ var z2 = this.z.redSqr();
+ var pz2 = p.z.redSqr();
+ if (this.x.redMul(pz2).redISub(p.x.redMul(z2)).cmpn(0) !== 0)
+ return false;
+
+ // y1 * z2^3 == y2 * z1^3
+ var z3 = z2.redMul(this.z);
+ var pz3 = pz2.redMul(p.z);
+ return this.y.redMul(pz3).redISub(p.y.redMul(z3)).cmpn(0) === 0;
+};
+
+JPoint.prototype.eqXToP = function eqXToP(x) {
+ var zs = this.z.redSqr();
+ var rx = x.toRed(this.curve.red).redMul(zs);
+ if (this.x.cmp(rx) === 0)
+ return true;
+
+ var xc = x.clone();
+ var t = this.curve.redN.redMul(zs);
+ for (;;) {
+ xc.iadd(this.curve.n);
+ if (xc.cmp(this.curve.p) >= 0)
+ return false;
+
+ rx.redIAdd(t);
+ if (this.x.cmp(rx) === 0)
+ return true;
+ }
+};
+
+JPoint.prototype.inspect = function inspect() {
+ if (this.isInfinity())
+ return '';
+ return '';
+};
+
+JPoint.prototype.isInfinity = function isInfinity() {
+ // XXX This code assumes that zero is always zero in red
+ return this.z.cmpn(0) === 0;
+};
diff --git a/node_modules/elliptic/lib/elliptic/curves.js b/node_modules/elliptic/lib/elliptic/curves.js
new file mode 100644
index 00000000..6c36e037
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/curves.js
@@ -0,0 +1,206 @@
+'use strict';
+
+var curves = exports;
+
+var hash = require('hash.js');
+var curve = require('./curve');
+var utils = require('./utils');
+
+var assert = utils.assert;
+
+function PresetCurve(options) {
+ if (options.type === 'short')
+ this.curve = new curve.short(options);
+ else if (options.type === 'edwards')
+ this.curve = new curve.edwards(options);
+ else
+ this.curve = new curve.mont(options);
+ this.g = this.curve.g;
+ this.n = this.curve.n;
+ this.hash = options.hash;
+
+ assert(this.g.validate(), 'Invalid curve');
+ assert(this.g.mul(this.n).isInfinity(), 'Invalid curve, G*N != O');
+}
+curves.PresetCurve = PresetCurve;
+
+function defineCurve(name, options) {
+ Object.defineProperty(curves, name, {
+ configurable: true,
+ enumerable: true,
+ get: function() {
+ var curve = new PresetCurve(options);
+ Object.defineProperty(curves, name, {
+ configurable: true,
+ enumerable: true,
+ value: curve,
+ });
+ return curve;
+ },
+ });
+}
+
+defineCurve('p192', {
+ type: 'short',
+ prime: 'p192',
+ p: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',
+ a: 'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',
+ b: '64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',
+ n: 'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',
+ hash: hash.sha256,
+ gRed: false,
+ g: [
+ '188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012',
+ '07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811',
+ ],
+});
+
+defineCurve('p224', {
+ type: 'short',
+ prime: 'p224',
+ p: 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',
+ a: 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',
+ b: 'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',
+ n: 'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',
+ hash: hash.sha256,
+ gRed: false,
+ g: [
+ 'b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21',
+ 'bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34',
+ ],
+});
+
+defineCurve('p256', {
+ type: 'short',
+ prime: null,
+ p: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',
+ a: 'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',
+ b: '5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',
+ n: 'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',
+ hash: hash.sha256,
+ gRed: false,
+ g: [
+ '6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296',
+ '4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5',
+ ],
+});
+
+defineCurve('p384', {
+ type: 'short',
+ prime: null,
+ p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'fffffffe ffffffff 00000000 00000000 ffffffff',
+ a: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'fffffffe ffffffff 00000000 00000000 fffffffc',
+ b: 'b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f ' +
+ '5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef',
+ n: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 ' +
+ 'f4372ddf 581a0db2 48b0a77a ecec196a ccc52973',
+ hash: hash.sha384,
+ gRed: false,
+ g: [
+ 'aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 ' +
+ '5502f25d bf55296c 3a545e38 72760ab7',
+ '3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 ' +
+ '0a60b1ce 1d7e819d 7a431d7c 90ea0e5f',
+ ],
+});
+
+defineCurve('p521', {
+ type: 'short',
+ prime: null,
+ p: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'ffffffff ffffffff ffffffff ffffffff ffffffff',
+ a: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'ffffffff ffffffff ffffffff ffffffff fffffffc',
+ b: '00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b ' +
+ '99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd ' +
+ '3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00',
+ n: '000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ' +
+ 'ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 ' +
+ 'f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409',
+ hash: hash.sha512,
+ gRed: false,
+ g: [
+ '000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 ' +
+ '053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 ' +
+ 'a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66',
+ '00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 ' +
+ '579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 ' +
+ '3fad0761 353c7086 a272c240 88be9476 9fd16650',
+ ],
+});
+
+defineCurve('curve25519', {
+ type: 'mont',
+ prime: 'p25519',
+ p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
+ a: '76d06',
+ b: '1',
+ n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
+ hash: hash.sha256,
+ gRed: false,
+ g: [
+ '9',
+ ],
+});
+
+defineCurve('ed25519', {
+ type: 'edwards',
+ prime: 'p25519',
+ p: '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',
+ a: '-1',
+ c: '1',
+ // -121665 * (121666^(-1)) (mod P)
+ d: '52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',
+ n: '1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',
+ hash: hash.sha256,
+ gRed: false,
+ g: [
+ '216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a',
+
+ // 4/5
+ '6666666666666666666666666666666666666666666666666666666666666658',
+ ],
+});
+
+var pre;
+try {
+ pre = require('./precomputed/secp256k1');
+} catch (e) {
+ pre = undefined;
+}
+
+defineCurve('secp256k1', {
+ type: 'short',
+ prime: 'k256',
+ p: 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',
+ a: '0',
+ b: '7',
+ n: 'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',
+ h: '1',
+ hash: hash.sha256,
+
+ // Precomputed endomorphism
+ beta: '7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',
+ lambda: '5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',
+ basis: [
+ {
+ a: '3086d221a7d46bcde86c90e49284eb15',
+ b: '-e4437ed6010e88286f547fa90abfe4c3',
+ },
+ {
+ a: '114ca50f7a8e2f3f657c1108d9d44cfd8',
+ b: '3086d221a7d46bcde86c90e49284eb15',
+ },
+ ],
+
+ gRed: false,
+ g: [
+ '79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
+ '483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',
+ pre,
+ ],
+});
diff --git a/node_modules/elliptic/lib/elliptic/ec/index.js b/node_modules/elliptic/lib/elliptic/ec/index.js
new file mode 100644
index 00000000..8b58781f
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/ec/index.js
@@ -0,0 +1,243 @@
+'use strict';
+
+var BN = require('bn.js');
+var HmacDRBG = require('hmac-drbg');
+var utils = require('../utils');
+var curves = require('../curves');
+var rand = require('brorand');
+var assert = utils.assert;
+
+var KeyPair = require('./key');
+var Signature = require('./signature');
+
+function EC(options) {
+ if (!(this instanceof EC))
+ return new EC(options);
+
+ // Shortcut `elliptic.ec(curve-name)`
+ if (typeof options === 'string') {
+ assert(Object.prototype.hasOwnProperty.call(curves, options),
+ 'Unknown curve ' + options);
+
+ options = curves[options];
+ }
+
+ // Shortcut for `elliptic.ec(elliptic.curves.curveName)`
+ if (options instanceof curves.PresetCurve)
+ options = { curve: options };
+
+ this.curve = options.curve.curve;
+ this.n = this.curve.n;
+ this.nh = this.n.ushrn(1);
+ this.g = this.curve.g;
+
+ // Point on curve
+ this.g = options.curve.g;
+ this.g.precompute(options.curve.n.bitLength() + 1);
+
+ // Hash for function for DRBG
+ this.hash = options.hash || options.curve.hash;
+}
+module.exports = EC;
+
+EC.prototype.keyPair = function keyPair(options) {
+ return new KeyPair(this, options);
+};
+
+EC.prototype.keyFromPrivate = function keyFromPrivate(priv, enc) {
+ return KeyPair.fromPrivate(this, priv, enc);
+};
+
+EC.prototype.keyFromPublic = function keyFromPublic(pub, enc) {
+ return KeyPair.fromPublic(this, pub, enc);
+};
+
+EC.prototype.genKeyPair = function genKeyPair(options) {
+ if (!options)
+ options = {};
+
+ // Instantiate Hmac_DRBG
+ var drbg = new HmacDRBG({
+ hash: this.hash,
+ pers: options.pers,
+ persEnc: options.persEnc || 'utf8',
+ entropy: options.entropy || rand(this.hash.hmacStrength),
+ entropyEnc: options.entropy && options.entropyEnc || 'utf8',
+ nonce: this.n.toArray(),
+ });
+
+ var bytes = this.n.byteLength();
+ var ns2 = this.n.sub(new BN(2));
+ for (;;) {
+ var priv = new BN(drbg.generate(bytes));
+ if (priv.cmp(ns2) > 0)
+ continue;
+
+ priv.iaddn(1);
+ return this.keyFromPrivate(priv);
+ }
+};
+
+EC.prototype._truncateToN = function _truncateToN(msg, truncOnly) {
+ var delta = msg.byteLength() * 8 - this.n.bitLength();
+ if (delta > 0)
+ msg = msg.ushrn(delta);
+ if (!truncOnly && msg.cmp(this.n) >= 0)
+ return msg.sub(this.n);
+ else
+ return msg;
+};
+
+EC.prototype.sign = function sign(msg, key, enc, options) {
+ if (typeof enc === 'object') {
+ options = enc;
+ enc = null;
+ }
+ if (!options)
+ options = {};
+
+ key = this.keyFromPrivate(key, enc);
+ msg = this._truncateToN(new BN(msg, 16));
+
+ // Zero-extend key to provide enough entropy
+ var bytes = this.n.byteLength();
+ var bkey = key.getPrivate().toArray('be', bytes);
+
+ // Zero-extend nonce to have the same byte size as N
+ var nonce = msg.toArray('be', bytes);
+
+ // Instantiate Hmac_DRBG
+ var drbg = new HmacDRBG({
+ hash: this.hash,
+ entropy: bkey,
+ nonce: nonce,
+ pers: options.pers,
+ persEnc: options.persEnc || 'utf8',
+ });
+
+ // Number of bytes to generate
+ var ns1 = this.n.sub(new BN(1));
+
+ for (var iter = 0; ; iter++) {
+ var k = options.k ?
+ options.k(iter) :
+ new BN(drbg.generate(this.n.byteLength()));
+ k = this._truncateToN(k, true);
+ if (k.cmpn(1) <= 0 || k.cmp(ns1) >= 0)
+ continue;
+
+ var kp = this.g.mul(k);
+ if (kp.isInfinity())
+ continue;
+
+ var kpX = kp.getX();
+ var r = kpX.umod(this.n);
+ if (r.cmpn(0) === 0)
+ continue;
+
+ var s = k.invm(this.n).mul(r.mul(key.getPrivate()).iadd(msg));
+ s = s.umod(this.n);
+ if (s.cmpn(0) === 0)
+ continue;
+
+ var recoveryParam = (kp.getY().isOdd() ? 1 : 0) |
+ (kpX.cmp(r) !== 0 ? 2 : 0);
+
+ // Use complement of `s`, if it is > `n / 2`
+ if (options.canonical && s.cmp(this.nh) > 0) {
+ s = this.n.sub(s);
+ recoveryParam ^= 1;
+ }
+
+ return new Signature({ r: r, s: s, recoveryParam: recoveryParam });
+ }
+};
+
+EC.prototype.verify = function verify(msg, signature, key, enc) {
+ msg = this._truncateToN(new BN(msg, 16));
+ key = this.keyFromPublic(key, enc);
+ signature = new Signature(signature, 'hex');
+
+ // Perform primitive values validation
+ var r = signature.r;
+ var s = signature.s;
+ if (r.cmpn(1) < 0 || r.cmp(this.n) >= 0)
+ return false;
+ if (s.cmpn(1) < 0 || s.cmp(this.n) >= 0)
+ return false;
+
+ // Validate signature
+ var sinv = s.invm(this.n);
+ var u1 = sinv.mul(msg).umod(this.n);
+ var u2 = sinv.mul(r).umod(this.n);
+ var p;
+
+ if (!this.curve._maxwellTrick) {
+ p = this.g.mulAdd(u1, key.getPublic(), u2);
+ if (p.isInfinity())
+ return false;
+
+ return p.getX().umod(this.n).cmp(r) === 0;
+ }
+
+ // NOTE: Greg Maxwell's trick, inspired by:
+ // https://git.io/vad3K
+
+ p = this.g.jmulAdd(u1, key.getPublic(), u2);
+ if (p.isInfinity())
+ return false;
+
+ // Compare `p.x` of Jacobian point with `r`,
+ // this will do `p.x == r * p.z^2` instead of multiplying `p.x` by the
+ // inverse of `p.z^2`
+ return p.eqXToP(r);
+};
+
+EC.prototype.recoverPubKey = function(msg, signature, j, enc) {
+ assert((3 & j) === j, 'The recovery param is more than two bits');
+ signature = new Signature(signature, enc);
+
+ var n = this.n;
+ var e = new BN(msg);
+ var r = signature.r;
+ var s = signature.s;
+
+ // A set LSB signifies that the y-coordinate is odd
+ var isYOdd = j & 1;
+ var isSecondKey = j >> 1;
+ if (r.cmp(this.curve.p.umod(this.curve.n)) >= 0 && isSecondKey)
+ throw new Error('Unable to find sencond key candinate');
+
+ // 1.1. Let x = r + jn.
+ if (isSecondKey)
+ r = this.curve.pointFromX(r.add(this.curve.n), isYOdd);
+ else
+ r = this.curve.pointFromX(r, isYOdd);
+
+ var rInv = signature.r.invm(n);
+ var s1 = n.sub(e).mul(rInv).umod(n);
+ var s2 = s.mul(rInv).umod(n);
+
+ // 1.6.1 Compute Q = r^-1 (sR - eG)
+ // Q = r^-1 (sR + -eG)
+ return this.g.mulAdd(s1, r, s2);
+};
+
+EC.prototype.getKeyRecoveryParam = function(e, signature, Q, enc) {
+ signature = new Signature(signature, enc);
+ if (signature.recoveryParam !== null)
+ return signature.recoveryParam;
+
+ for (var i = 0; i < 4; i++) {
+ var Qprime;
+ try {
+ Qprime = this.recoverPubKey(e, signature, i);
+ } catch (e) {
+ continue;
+ }
+
+ if (Qprime.eq(Q))
+ return i;
+ }
+ throw new Error('Unable to find valid recovery factor');
+};
diff --git a/node_modules/elliptic/lib/elliptic/ec/key.js b/node_modules/elliptic/lib/elliptic/ec/key.js
new file mode 100644
index 00000000..55bf2991
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/ec/key.js
@@ -0,0 +1,121 @@
+'use strict';
+
+var BN = require('bn.js');
+var utils = require('../utils');
+var assert = utils.assert;
+
+function KeyPair(ec, options) {
+ this.ec = ec;
+ this.priv = null;
+ this.pub = null;
+
+ // KeyPair(ec, { priv: ..., pub: ... })
+ if (options.priv)
+ this._importPrivate(options.priv, options.privEnc);
+ if (options.pub)
+ this._importPublic(options.pub, options.pubEnc);
+}
+module.exports = KeyPair;
+
+KeyPair.fromPublic = function fromPublic(ec, pub, enc) {
+ if (pub instanceof KeyPair)
+ return pub;
+
+ return new KeyPair(ec, {
+ pub: pub,
+ pubEnc: enc,
+ });
+};
+
+KeyPair.fromPrivate = function fromPrivate(ec, priv, enc) {
+ if (priv instanceof KeyPair)
+ return priv;
+
+ return new KeyPair(ec, {
+ priv: priv,
+ privEnc: enc,
+ });
+};
+
+KeyPair.prototype.validate = function validate() {
+ var pub = this.getPublic();
+
+ if (pub.isInfinity())
+ return { result: false, reason: 'Invalid public key' };
+ if (!pub.validate())
+ return { result: false, reason: 'Public key is not a point' };
+ if (!pub.mul(this.ec.curve.n).isInfinity())
+ return { result: false, reason: 'Public key * N != O' };
+
+ return { result: true, reason: null };
+};
+
+KeyPair.prototype.getPublic = function getPublic(compact, enc) {
+ // compact is optional argument
+ if (typeof compact === 'string') {
+ enc = compact;
+ compact = null;
+ }
+
+ if (!this.pub)
+ this.pub = this.ec.g.mul(this.priv);
+
+ if (!enc)
+ return this.pub;
+
+ return this.pub.encode(enc, compact);
+};
+
+KeyPair.prototype.getPrivate = function getPrivate(enc) {
+ if (enc === 'hex')
+ return this.priv.toString(16, 2);
+ else
+ return this.priv;
+};
+
+KeyPair.prototype._importPrivate = function _importPrivate(key, enc) {
+ this.priv = new BN(key, enc || 16);
+
+ // Ensure that the priv won't be bigger than n, otherwise we may fail
+ // in fixed multiplication method
+ this.priv = this.priv.umod(this.ec.curve.n);
+};
+
+KeyPair.prototype._importPublic = function _importPublic(key, enc) {
+ if (key.x || key.y) {
+ // Montgomery points only have an `x` coordinate.
+ // Weierstrass/Edwards points on the other hand have both `x` and
+ // `y` coordinates.
+ if (this.ec.curve.type === 'mont') {
+ assert(key.x, 'Need x coordinate');
+ } else if (this.ec.curve.type === 'short' ||
+ this.ec.curve.type === 'edwards') {
+ assert(key.x && key.y, 'Need both x and y coordinate');
+ }
+ this.pub = this.ec.curve.point(key.x, key.y);
+ return;
+ }
+ this.pub = this.ec.curve.decodePoint(key, enc);
+};
+
+// ECDH
+KeyPair.prototype.derive = function derive(pub) {
+ if(!pub.validate()) {
+ assert(pub.validate(), 'public point not validated');
+ }
+ return pub.mul(this.priv).getX();
+};
+
+// ECDSA
+KeyPair.prototype.sign = function sign(msg, enc, options) {
+ return this.ec.sign(msg, this, enc, options);
+};
+
+KeyPair.prototype.verify = function verify(msg, signature) {
+ return this.ec.verify(msg, signature, this);
+};
+
+KeyPair.prototype.inspect = function inspect() {
+ return '';
+};
diff --git a/node_modules/elliptic/lib/elliptic/ec/signature.js b/node_modules/elliptic/lib/elliptic/ec/signature.js
new file mode 100644
index 00000000..539df6a2
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/ec/signature.js
@@ -0,0 +1,166 @@
+'use strict';
+
+var BN = require('bn.js');
+
+var utils = require('../utils');
+var assert = utils.assert;
+
+function Signature(options, enc) {
+ if (options instanceof Signature)
+ return options;
+
+ if (this._importDER(options, enc))
+ return;
+
+ assert(options.r && options.s, 'Signature without r or s');
+ this.r = new BN(options.r, 16);
+ this.s = new BN(options.s, 16);
+ if (options.recoveryParam === undefined)
+ this.recoveryParam = null;
+ else
+ this.recoveryParam = options.recoveryParam;
+}
+module.exports = Signature;
+
+function Position() {
+ this.place = 0;
+}
+
+function getLength(buf, p) {
+ var initial = buf[p.place++];
+ if (!(initial & 0x80)) {
+ return initial;
+ }
+ var octetLen = initial & 0xf;
+
+ // Indefinite length or overflow
+ if (octetLen === 0 || octetLen > 4) {
+ return false;
+ }
+
+ var val = 0;
+ for (var i = 0, off = p.place; i < octetLen; i++, off++) {
+ val <<= 8;
+ val |= buf[off];
+ val >>>= 0;
+ }
+
+ // Leading zeroes
+ if (val <= 0x7f) {
+ return false;
+ }
+
+ p.place = off;
+ return val;
+}
+
+function rmPadding(buf) {
+ var i = 0;
+ var len = buf.length - 1;
+ while (!buf[i] && !(buf[i + 1] & 0x80) && i < len) {
+ i++;
+ }
+ if (i === 0) {
+ return buf;
+ }
+ return buf.slice(i);
+}
+
+Signature.prototype._importDER = function _importDER(data, enc) {
+ data = utils.toArray(data, enc);
+ var p = new Position();
+ if (data[p.place++] !== 0x30) {
+ return false;
+ }
+ var len = getLength(data, p);
+ if (len === false) {
+ return false;
+ }
+ if ((len + p.place) !== data.length) {
+ return false;
+ }
+ if (data[p.place++] !== 0x02) {
+ return false;
+ }
+ var rlen = getLength(data, p);
+ if (rlen === false) {
+ return false;
+ }
+ var r = data.slice(p.place, rlen + p.place);
+ p.place += rlen;
+ if (data[p.place++] !== 0x02) {
+ return false;
+ }
+ var slen = getLength(data, p);
+ if (slen === false) {
+ return false;
+ }
+ if (data.length !== slen + p.place) {
+ return false;
+ }
+ var s = data.slice(p.place, slen + p.place);
+ if (r[0] === 0) {
+ if (r[1] & 0x80) {
+ r = r.slice(1);
+ } else {
+ // Leading zeroes
+ return false;
+ }
+ }
+ if (s[0] === 0) {
+ if (s[1] & 0x80) {
+ s = s.slice(1);
+ } else {
+ // Leading zeroes
+ return false;
+ }
+ }
+
+ this.r = new BN(r);
+ this.s = new BN(s);
+ this.recoveryParam = null;
+
+ return true;
+};
+
+function constructLength(arr, len) {
+ if (len < 0x80) {
+ arr.push(len);
+ return;
+ }
+ var octets = 1 + (Math.log(len) / Math.LN2 >>> 3);
+ arr.push(octets | 0x80);
+ while (--octets) {
+ arr.push((len >>> (octets << 3)) & 0xff);
+ }
+ arr.push(len);
+}
+
+Signature.prototype.toDER = function toDER(enc) {
+ var r = this.r.toArray();
+ var s = this.s.toArray();
+
+ // Pad values
+ if (r[0] & 0x80)
+ r = [ 0 ].concat(r);
+ // Pad values
+ if (s[0] & 0x80)
+ s = [ 0 ].concat(s);
+
+ r = rmPadding(r);
+ s = rmPadding(s);
+
+ while (!s[0] && !(s[1] & 0x80)) {
+ s = s.slice(1);
+ }
+ var arr = [ 0x02 ];
+ constructLength(arr, r.length);
+ arr = arr.concat(r);
+ arr.push(0x02);
+ constructLength(arr, s.length);
+ var backHalf = arr.concat(s);
+ var res = [ 0x30 ];
+ constructLength(res, backHalf.length);
+ res = res.concat(backHalf);
+ return utils.encode(res, enc);
+};
diff --git a/node_modules/elliptic/lib/elliptic/eddsa/index.js b/node_modules/elliptic/lib/elliptic/eddsa/index.js
new file mode 100644
index 00000000..d777983a
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/eddsa/index.js
@@ -0,0 +1,118 @@
+'use strict';
+
+var hash = require('hash.js');
+var curves = require('../curves');
+var utils = require('../utils');
+var assert = utils.assert;
+var parseBytes = utils.parseBytes;
+var KeyPair = require('./key');
+var Signature = require('./signature');
+
+function EDDSA(curve) {
+ assert(curve === 'ed25519', 'only tested with ed25519 so far');
+
+ if (!(this instanceof EDDSA))
+ return new EDDSA(curve);
+
+ curve = curves[curve].curve;
+ this.curve = curve;
+ this.g = curve.g;
+ this.g.precompute(curve.n.bitLength() + 1);
+
+ this.pointClass = curve.point().constructor;
+ this.encodingLength = Math.ceil(curve.n.bitLength() / 8);
+ this.hash = hash.sha512;
+}
+
+module.exports = EDDSA;
+
+/**
+* @param {Array|String} message - message bytes
+* @param {Array|String|KeyPair} secret - secret bytes or a keypair
+* @returns {Signature} - signature
+*/
+EDDSA.prototype.sign = function sign(message, secret) {
+ message = parseBytes(message);
+ var key = this.keyFromSecret(secret);
+ var r = this.hashInt(key.messagePrefix(), message);
+ var R = this.g.mul(r);
+ var Rencoded = this.encodePoint(R);
+ var s_ = this.hashInt(Rencoded, key.pubBytes(), message)
+ .mul(key.priv());
+ var S = r.add(s_).umod(this.curve.n);
+ return this.makeSignature({ R: R, S: S, Rencoded: Rencoded });
+};
+
+/**
+* @param {Array} message - message bytes
+* @param {Array|String|Signature} sig - sig bytes
+* @param {Array|String|Point|KeyPair} pub - public key
+* @returns {Boolean} - true if public key matches sig of message
+*/
+EDDSA.prototype.verify = function verify(message, sig, pub) {
+ message = parseBytes(message);
+ sig = this.makeSignature(sig);
+ var key = this.keyFromPublic(pub);
+ var h = this.hashInt(sig.Rencoded(), key.pubBytes(), message);
+ var SG = this.g.mul(sig.S());
+ var RplusAh = sig.R().add(key.pub().mul(h));
+ return RplusAh.eq(SG);
+};
+
+EDDSA.prototype.hashInt = function hashInt() {
+ var hash = this.hash();
+ for (var i = 0; i < arguments.length; i++)
+ hash.update(arguments[i]);
+ return utils.intFromLE(hash.digest()).umod(this.curve.n);
+};
+
+EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
+ return KeyPair.fromPublic(this, pub);
+};
+
+EDDSA.prototype.keyFromSecret = function keyFromSecret(secret) {
+ return KeyPair.fromSecret(this, secret);
+};
+
+EDDSA.prototype.makeSignature = function makeSignature(sig) {
+ if (sig instanceof Signature)
+ return sig;
+ return new Signature(this, sig);
+};
+
+/**
+* * https://tools.ietf.org/html/draft-josefsson-eddsa-ed25519-03#section-5.2
+*
+* EDDSA defines methods for encoding and decoding points and integers. These are
+* helper convenience methods, that pass along to utility functions implied
+* parameters.
+*
+*/
+EDDSA.prototype.encodePoint = function encodePoint(point) {
+ var enc = point.getY().toArray('le', this.encodingLength);
+ enc[this.encodingLength - 1] |= point.getX().isOdd() ? 0x80 : 0;
+ return enc;
+};
+
+EDDSA.prototype.decodePoint = function decodePoint(bytes) {
+ bytes = utils.parseBytes(bytes);
+
+ var lastIx = bytes.length - 1;
+ var normed = bytes.slice(0, lastIx).concat(bytes[lastIx] & ~0x80);
+ var xIsOdd = (bytes[lastIx] & 0x80) !== 0;
+
+ var y = utils.intFromLE(normed);
+ return this.curve.pointFromY(y, xIsOdd);
+};
+
+EDDSA.prototype.encodeInt = function encodeInt(num) {
+ return num.toArray('le', this.encodingLength);
+};
+
+EDDSA.prototype.decodeInt = function decodeInt(bytes) {
+ return utils.intFromLE(bytes);
+};
+
+EDDSA.prototype.isPoint = function isPoint(val) {
+ return val instanceof this.pointClass;
+};
diff --git a/node_modules/elliptic/lib/elliptic/eddsa/key.js b/node_modules/elliptic/lib/elliptic/eddsa/key.js
new file mode 100644
index 00000000..a00028f8
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/eddsa/key.js
@@ -0,0 +1,95 @@
+'use strict';
+
+var utils = require('../utils');
+var assert = utils.assert;
+var parseBytes = utils.parseBytes;
+var cachedProperty = utils.cachedProperty;
+
+/**
+* @param {EDDSA} eddsa - instance
+* @param {Object} params - public/private key parameters
+*
+* @param {Array} [params.secret] - secret seed bytes
+* @param {Point} [params.pub] - public key point (aka `A` in eddsa terms)
+* @param {Array} [params.pub] - public key point encoded as bytes
+*
+*/
+function KeyPair(eddsa, params) {
+ this.eddsa = eddsa;
+ this._secret = parseBytes(params.secret);
+ if (eddsa.isPoint(params.pub))
+ this._pub = params.pub;
+ else
+ this._pubBytes = parseBytes(params.pub);
+}
+
+KeyPair.fromPublic = function fromPublic(eddsa, pub) {
+ if (pub instanceof KeyPair)
+ return pub;
+ return new KeyPair(eddsa, { pub: pub });
+};
+
+KeyPair.fromSecret = function fromSecret(eddsa, secret) {
+ if (secret instanceof KeyPair)
+ return secret;
+ return new KeyPair(eddsa, { secret: secret });
+};
+
+KeyPair.prototype.secret = function secret() {
+ return this._secret;
+};
+
+cachedProperty(KeyPair, 'pubBytes', function pubBytes() {
+ return this.eddsa.encodePoint(this.pub());
+});
+
+cachedProperty(KeyPair, 'pub', function pub() {
+ if (this._pubBytes)
+ return this.eddsa.decodePoint(this._pubBytes);
+ return this.eddsa.g.mul(this.priv());
+});
+
+cachedProperty(KeyPair, 'privBytes', function privBytes() {
+ var eddsa = this.eddsa;
+ var hash = this.hash();
+ var lastIx = eddsa.encodingLength - 1;
+
+ var a = hash.slice(0, eddsa.encodingLength);
+ a[0] &= 248;
+ a[lastIx] &= 127;
+ a[lastIx] |= 64;
+
+ return a;
+});
+
+cachedProperty(KeyPair, 'priv', function priv() {
+ return this.eddsa.decodeInt(this.privBytes());
+});
+
+cachedProperty(KeyPair, 'hash', function hash() {
+ return this.eddsa.hash().update(this.secret()).digest();
+});
+
+cachedProperty(KeyPair, 'messagePrefix', function messagePrefix() {
+ return this.hash().slice(this.eddsa.encodingLength);
+});
+
+KeyPair.prototype.sign = function sign(message) {
+ assert(this._secret, 'KeyPair can only verify');
+ return this.eddsa.sign(message, this);
+};
+
+KeyPair.prototype.verify = function verify(message, sig) {
+ return this.eddsa.verify(message, sig, this);
+};
+
+KeyPair.prototype.getSecret = function getSecret(enc) {
+ assert(this._secret, 'KeyPair is public only');
+ return utils.encode(this.secret(), enc);
+};
+
+KeyPair.prototype.getPublic = function getPublic(enc) {
+ return utils.encode(this.pubBytes(), enc);
+};
+
+module.exports = KeyPair;
diff --git a/node_modules/elliptic/lib/elliptic/eddsa/signature.js b/node_modules/elliptic/lib/elliptic/eddsa/signature.js
new file mode 100644
index 00000000..30ebc920
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/eddsa/signature.js
@@ -0,0 +1,65 @@
+'use strict';
+
+var BN = require('bn.js');
+var utils = require('../utils');
+var assert = utils.assert;
+var cachedProperty = utils.cachedProperty;
+var parseBytes = utils.parseBytes;
+
+/**
+* @param {EDDSA} eddsa - eddsa instance
+* @param {Array|Object} sig -
+* @param {Array|Point} [sig.R] - R point as Point or bytes
+* @param {Array|bn} [sig.S] - S scalar as bn or bytes
+* @param {Array} [sig.Rencoded] - R point encoded
+* @param {Array} [sig.Sencoded] - S scalar encoded
+*/
+function Signature(eddsa, sig) {
+ this.eddsa = eddsa;
+
+ if (typeof sig !== 'object')
+ sig = parseBytes(sig);
+
+ if (Array.isArray(sig)) {
+ sig = {
+ R: sig.slice(0, eddsa.encodingLength),
+ S: sig.slice(eddsa.encodingLength),
+ };
+ }
+
+ assert(sig.R && sig.S, 'Signature without R or S');
+
+ if (eddsa.isPoint(sig.R))
+ this._R = sig.R;
+ if (sig.S instanceof BN)
+ this._S = sig.S;
+
+ this._Rencoded = Array.isArray(sig.R) ? sig.R : sig.Rencoded;
+ this._Sencoded = Array.isArray(sig.S) ? sig.S : sig.Sencoded;
+}
+
+cachedProperty(Signature, 'S', function S() {
+ return this.eddsa.decodeInt(this.Sencoded());
+});
+
+cachedProperty(Signature, 'R', function R() {
+ return this.eddsa.decodePoint(this.Rencoded());
+});
+
+cachedProperty(Signature, 'Rencoded', function Rencoded() {
+ return this.eddsa.encodePoint(this.R());
+});
+
+cachedProperty(Signature, 'Sencoded', function Sencoded() {
+ return this.eddsa.encodeInt(this.S());
+});
+
+Signature.prototype.toBytes = function toBytes() {
+ return this.Rencoded().concat(this.Sencoded());
+};
+
+Signature.prototype.toHex = function toHex() {
+ return utils.encode(this.toBytes(), 'hex').toUpperCase();
+};
+
+module.exports = Signature;
diff --git a/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js b/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js
new file mode 100644
index 00000000..01a7c4d2
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js
@@ -0,0 +1,780 @@
+module.exports = {
+ doubles: {
+ step: 4,
+ points: [
+ [
+ 'e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a',
+ 'f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821',
+ ],
+ [
+ '8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508',
+ '11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf',
+ ],
+ [
+ '175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739',
+ 'd3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695',
+ ],
+ [
+ '363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640',
+ '4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9',
+ ],
+ [
+ '8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c',
+ '4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36',
+ ],
+ [
+ '723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda',
+ '96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f',
+ ],
+ [
+ 'eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa',
+ '5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999',
+ ],
+ [
+ '100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0',
+ 'cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09',
+ ],
+ [
+ 'e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d',
+ '9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d',
+ ],
+ [
+ 'feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d',
+ 'e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088',
+ ],
+ [
+ 'da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1',
+ '9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d',
+ ],
+ [
+ '53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0',
+ '5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8',
+ ],
+ [
+ '8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047',
+ '10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a',
+ ],
+ [
+ '385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862',
+ '283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453',
+ ],
+ [
+ '6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7',
+ '7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160',
+ ],
+ [
+ '3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd',
+ '56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0',
+ ],
+ [
+ '85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83',
+ '7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6',
+ ],
+ [
+ '948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a',
+ '53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589',
+ ],
+ [
+ '6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8',
+ 'bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17',
+ ],
+ [
+ 'e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d',
+ '4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda',
+ ],
+ [
+ 'e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725',
+ '7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd',
+ ],
+ [
+ '213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754',
+ '4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2',
+ ],
+ [
+ '4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c',
+ '17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6',
+ ],
+ [
+ 'fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6',
+ '6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f',
+ ],
+ [
+ '76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39',
+ 'c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01',
+ ],
+ [
+ 'c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891',
+ '893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3',
+ ],
+ [
+ 'd895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b',
+ 'febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f',
+ ],
+ [
+ 'b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03',
+ '2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7',
+ ],
+ [
+ 'e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d',
+ 'eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78',
+ ],
+ [
+ 'a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070',
+ '7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1',
+ ],
+ [
+ '90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4',
+ 'e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150',
+ ],
+ [
+ '8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da',
+ '662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82',
+ ],
+ [
+ 'e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11',
+ '1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc',
+ ],
+ [
+ '8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e',
+ 'efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b',
+ ],
+ [
+ 'e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41',
+ '2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51',
+ ],
+ [
+ 'b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef',
+ '67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45',
+ ],
+ [
+ 'd68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8',
+ 'db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120',
+ ],
+ [
+ '324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d',
+ '648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84',
+ ],
+ [
+ '4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96',
+ '35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d',
+ ],
+ [
+ '9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd',
+ 'ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d',
+ ],
+ [
+ '6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5',
+ '9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8',
+ ],
+ [
+ 'a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266',
+ '40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8',
+ ],
+ [
+ '7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71',
+ '34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac',
+ ],
+ [
+ '928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac',
+ 'c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f',
+ ],
+ [
+ '85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751',
+ '1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962',
+ ],
+ [
+ 'ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e',
+ '493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907',
+ ],
+ [
+ '827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241',
+ 'c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec',
+ ],
+ [
+ 'eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3',
+ 'be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d',
+ ],
+ [
+ 'e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f',
+ '4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414',
+ ],
+ [
+ '1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19',
+ 'aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd',
+ ],
+ [
+ '146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be',
+ 'b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0',
+ ],
+ [
+ 'fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9',
+ '6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811',
+ ],
+ [
+ 'da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2',
+ '8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1',
+ ],
+ [
+ 'a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13',
+ '7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c',
+ ],
+ [
+ '174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c',
+ 'ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73',
+ ],
+ [
+ '959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba',
+ '2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd',
+ ],
+ [
+ 'd2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151',
+ 'e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405',
+ ],
+ [
+ '64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073',
+ 'd99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589',
+ ],
+ [
+ '8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458',
+ '38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e',
+ ],
+ [
+ '13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b',
+ '69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27',
+ ],
+ [
+ 'bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366',
+ 'd3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1',
+ ],
+ [
+ '8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa',
+ '40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482',
+ ],
+ [
+ '8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0',
+ '620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945',
+ ],
+ [
+ 'dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787',
+ '7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573',
+ ],
+ [
+ 'f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e',
+ 'ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82',
+ ],
+ ],
+ },
+ naf: {
+ wnd: 7,
+ points: [
+ [
+ 'f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9',
+ '388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672',
+ ],
+ [
+ '2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4',
+ 'd8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6',
+ ],
+ [
+ '5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc',
+ '6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da',
+ ],
+ [
+ 'acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe',
+ 'cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37',
+ ],
+ [
+ '774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb',
+ 'd984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b',
+ ],
+ [
+ 'f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8',
+ 'ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81',
+ ],
+ [
+ 'd7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e',
+ '581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58',
+ ],
+ [
+ 'defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34',
+ '4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77',
+ ],
+ [
+ '2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c',
+ '85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a',
+ ],
+ [
+ '352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5',
+ '321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c',
+ ],
+ [
+ '2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f',
+ '2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67',
+ ],
+ [
+ '9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714',
+ '73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402',
+ ],
+ [
+ 'daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729',
+ 'a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55',
+ ],
+ [
+ 'c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db',
+ '2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482',
+ ],
+ [
+ '6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4',
+ 'e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82',
+ ],
+ [
+ '1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5',
+ 'b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396',
+ ],
+ [
+ '605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479',
+ '2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49',
+ ],
+ [
+ '62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d',
+ '80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf',
+ ],
+ [
+ '80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f',
+ '1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a',
+ ],
+ [
+ '7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb',
+ 'd0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7',
+ ],
+ [
+ 'd528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9',
+ 'eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933',
+ ],
+ [
+ '49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963',
+ '758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a',
+ ],
+ [
+ '77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74',
+ '958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6',
+ ],
+ [
+ 'f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530',
+ 'e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37',
+ ],
+ [
+ '463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b',
+ '5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e',
+ ],
+ [
+ 'f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247',
+ 'cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6',
+ ],
+ [
+ 'caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1',
+ 'cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476',
+ ],
+ [
+ '2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120',
+ '4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40',
+ ],
+ [
+ '7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435',
+ '91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61',
+ ],
+ [
+ '754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18',
+ '673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683',
+ ],
+ [
+ 'e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8',
+ '59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5',
+ ],
+ [
+ '186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb',
+ '3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b',
+ ],
+ [
+ 'df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f',
+ '55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417',
+ ],
+ [
+ '5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143',
+ 'efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868',
+ ],
+ [
+ '290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba',
+ 'e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a',
+ ],
+ [
+ 'af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45',
+ 'f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6',
+ ],
+ [
+ '766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a',
+ '744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996',
+ ],
+ [
+ '59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e',
+ 'c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e',
+ ],
+ [
+ 'f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8',
+ 'e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d',
+ ],
+ [
+ '7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c',
+ '30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2',
+ ],
+ [
+ '948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519',
+ 'e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e',
+ ],
+ [
+ '7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab',
+ '100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437',
+ ],
+ [
+ '3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca',
+ 'ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311',
+ ],
+ [
+ 'd3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf',
+ '8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4',
+ ],
+ [
+ '1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610',
+ '68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575',
+ ],
+ [
+ '733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4',
+ 'f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d',
+ ],
+ [
+ '15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c',
+ 'd56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d',
+ ],
+ [
+ 'a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940',
+ 'edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629',
+ ],
+ [
+ 'e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980',
+ 'a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06',
+ ],
+ [
+ '311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3',
+ '66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374',
+ ],
+ [
+ '34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf',
+ '9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee',
+ ],
+ [
+ 'f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63',
+ '4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1',
+ ],
+ [
+ 'd7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448',
+ 'fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b',
+ ],
+ [
+ '32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf',
+ '5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661',
+ ],
+ [
+ '7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5',
+ '8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6',
+ ],
+ [
+ 'ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6',
+ '8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e',
+ ],
+ [
+ '16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5',
+ '5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d',
+ ],
+ [
+ 'eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99',
+ 'f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc',
+ ],
+ [
+ '78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51',
+ 'f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4',
+ ],
+ [
+ '494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5',
+ '42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c',
+ ],
+ [
+ 'a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5',
+ '204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b',
+ ],
+ [
+ 'c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997',
+ '4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913',
+ ],
+ [
+ '841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881',
+ '73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154',
+ ],
+ [
+ '5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5',
+ '39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865',
+ ],
+ [
+ '36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66',
+ 'd2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc',
+ ],
+ [
+ '336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726',
+ 'ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224',
+ ],
+ [
+ '8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede',
+ '6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e',
+ ],
+ [
+ '1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94',
+ '60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6',
+ ],
+ [
+ '85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31',
+ '3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511',
+ ],
+ [
+ '29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51',
+ 'b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b',
+ ],
+ [
+ 'a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252',
+ 'ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2',
+ ],
+ [
+ '4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5',
+ 'cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c',
+ ],
+ [
+ 'd24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b',
+ '6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3',
+ ],
+ [
+ 'ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4',
+ '322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d',
+ ],
+ [
+ 'af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f',
+ '6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700',
+ ],
+ [
+ 'e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889',
+ '2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4',
+ ],
+ [
+ '591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246',
+ 'b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196',
+ ],
+ [
+ '11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984',
+ '998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4',
+ ],
+ [
+ '3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a',
+ 'b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257',
+ ],
+ [
+ 'cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030',
+ 'bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13',
+ ],
+ [
+ 'c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197',
+ '6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096',
+ ],
+ [
+ 'c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593',
+ 'c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38',
+ ],
+ [
+ 'a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef',
+ '21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f',
+ ],
+ [
+ '347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38',
+ '60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448',
+ ],
+ [
+ 'da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a',
+ '49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a',
+ ],
+ [
+ 'c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111',
+ '5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4',
+ ],
+ [
+ '4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502',
+ '7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437',
+ ],
+ [
+ '3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea',
+ 'be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7',
+ ],
+ [
+ 'cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26',
+ '8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d',
+ ],
+ [
+ 'b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986',
+ '39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a',
+ ],
+ [
+ 'd4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e',
+ '62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54',
+ ],
+ [
+ '48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4',
+ '25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77',
+ ],
+ [
+ 'dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda',
+ 'ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517',
+ ],
+ [
+ '6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859',
+ 'cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10',
+ ],
+ [
+ 'e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f',
+ 'f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125',
+ ],
+ [
+ 'eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c',
+ '6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e',
+ ],
+ [
+ '13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942',
+ 'fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1',
+ ],
+ [
+ 'ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a',
+ '1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2',
+ ],
+ [
+ 'b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80',
+ '5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423',
+ ],
+ [
+ 'ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d',
+ '438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8',
+ ],
+ [
+ '8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1',
+ 'cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758',
+ ],
+ [
+ '52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63',
+ 'c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375',
+ ],
+ [
+ 'e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352',
+ '6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d',
+ ],
+ [
+ '7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193',
+ 'ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec',
+ ],
+ [
+ '5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00',
+ '9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0',
+ ],
+ [
+ '32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58',
+ 'ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c',
+ ],
+ [
+ 'e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7',
+ 'd3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4',
+ ],
+ [
+ '8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8',
+ 'c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f',
+ ],
+ [
+ '4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e',
+ '67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649',
+ ],
+ [
+ '3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d',
+ 'cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826',
+ ],
+ [
+ '674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b',
+ '299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5',
+ ],
+ [
+ 'd32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f',
+ 'f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87',
+ ],
+ [
+ '30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6',
+ '462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b',
+ ],
+ [
+ 'be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297',
+ '62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc',
+ ],
+ [
+ '93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a',
+ '7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c',
+ ],
+ [
+ 'b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c',
+ 'ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f',
+ ],
+ [
+ 'd5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52',
+ '4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a',
+ ],
+ [
+ 'd3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb',
+ 'bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46',
+ ],
+ [
+ '463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065',
+ 'bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f',
+ ],
+ [
+ '7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917',
+ '603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03',
+ ],
+ [
+ '74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9',
+ 'cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08',
+ ],
+ [
+ '30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3',
+ '553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8',
+ ],
+ [
+ '9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57',
+ '712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373',
+ ],
+ [
+ '176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66',
+ 'ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3',
+ ],
+ [
+ '75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8',
+ '9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8',
+ ],
+ [
+ '809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721',
+ '9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1',
+ ],
+ [
+ '1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180',
+ '4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9',
+ ],
+ ],
+ },
+};
diff --git a/node_modules/elliptic/lib/elliptic/utils.js b/node_modules/elliptic/lib/elliptic/utils.js
new file mode 100644
index 00000000..627a9f1a
--- /dev/null
+++ b/node_modules/elliptic/lib/elliptic/utils.js
@@ -0,0 +1,119 @@
+'use strict';
+
+var utils = exports;
+var BN = require('bn.js');
+var minAssert = require('minimalistic-assert');
+var minUtils = require('minimalistic-crypto-utils');
+
+utils.assert = minAssert;
+utils.toArray = minUtils.toArray;
+utils.zero2 = minUtils.zero2;
+utils.toHex = minUtils.toHex;
+utils.encode = minUtils.encode;
+
+// Represent num in a w-NAF form
+function getNAF(num, w, bits) {
+ var naf = new Array(Math.max(num.bitLength(), bits) + 1);
+ naf.fill(0);
+
+ var ws = 1 << (w + 1);
+ var k = num.clone();
+
+ for (var i = 0; i < naf.length; i++) {
+ var z;
+ var mod = k.andln(ws - 1);
+ if (k.isOdd()) {
+ if (mod > (ws >> 1) - 1)
+ z = (ws >> 1) - mod;
+ else
+ z = mod;
+ k.isubn(z);
+ } else {
+ z = 0;
+ }
+
+ naf[i] = z;
+ k.iushrn(1);
+ }
+
+ return naf;
+}
+utils.getNAF = getNAF;
+
+// Represent k1, k2 in a Joint Sparse Form
+function getJSF(k1, k2) {
+ var jsf = [
+ [],
+ [],
+ ];
+
+ k1 = k1.clone();
+ k2 = k2.clone();
+ var d1 = 0;
+ var d2 = 0;
+ var m8;
+ while (k1.cmpn(-d1) > 0 || k2.cmpn(-d2) > 0) {
+ // First phase
+ var m14 = (k1.andln(3) + d1) & 3;
+ var m24 = (k2.andln(3) + d2) & 3;
+ if (m14 === 3)
+ m14 = -1;
+ if (m24 === 3)
+ m24 = -1;
+ var u1;
+ if ((m14 & 1) === 0) {
+ u1 = 0;
+ } else {
+ m8 = (k1.andln(7) + d1) & 7;
+ if ((m8 === 3 || m8 === 5) && m24 === 2)
+ u1 = -m14;
+ else
+ u1 = m14;
+ }
+ jsf[0].push(u1);
+
+ var u2;
+ if ((m24 & 1) === 0) {
+ u2 = 0;
+ } else {
+ m8 = (k2.andln(7) + d2) & 7;
+ if ((m8 === 3 || m8 === 5) && m14 === 2)
+ u2 = -m24;
+ else
+ u2 = m24;
+ }
+ jsf[1].push(u2);
+
+ // Second phase
+ if (2 * d1 === u1 + 1)
+ d1 = 1 - d1;
+ if (2 * d2 === u2 + 1)
+ d2 = 1 - d2;
+ k1.iushrn(1);
+ k2.iushrn(1);
+ }
+
+ return jsf;
+}
+utils.getJSF = getJSF;
+
+function cachedProperty(obj, name, computer) {
+ var key = '_' + name;
+ obj.prototype[name] = function cachedProperty() {
+ return this[key] !== undefined ? this[key] :
+ this[key] = computer.call(this);
+ };
+}
+utils.cachedProperty = cachedProperty;
+
+function parseBytes(bytes) {
+ return typeof bytes === 'string' ? utils.toArray(bytes, 'hex') :
+ bytes;
+}
+utils.parseBytes = parseBytes;
+
+function intFromLE(bytes) {
+ return new BN(bytes, 'hex', 'le');
+}
+utils.intFromLE = intFromLE;
+
diff --git a/node_modules/elliptic/node_modules/bn.js/LICENSE b/node_modules/elliptic/node_modules/bn.js/LICENSE
new file mode 100644
index 00000000..c328f040
--- /dev/null
+++ b/node_modules/elliptic/node_modules/bn.js/LICENSE
@@ -0,0 +1,19 @@
+Copyright Fedor Indutny, 2015.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/elliptic/node_modules/bn.js/README.md b/node_modules/elliptic/node_modules/bn.js/README.md
new file mode 100644
index 00000000..aecc3ba0
--- /dev/null
+++ b/node_modules/elliptic/node_modules/bn.js/README.md
@@ -0,0 +1,200 @@
+#
+
+> BigNum in pure javascript
+
+[](http://travis-ci.org/indutny/bn.js)
+
+## Install
+`npm install --save bn.js`
+
+## Usage
+
+```js
+const BN = require('bn.js');
+
+var a = new BN('dead', 16);
+var b = new BN('101010', 2);
+
+var res = a.add(b);
+console.log(res.toString(10)); // 57047
+```
+
+**Note**: decimals are not supported in this library.
+
+## Notation
+
+### Prefixes
+
+There are several prefixes to instructions that affect the way the work. Here
+is the list of them in the order of appearance in the function name:
+
+* `i` - perform operation in-place, storing the result in the host object (on
+ which the method was invoked). Might be used to avoid number allocation costs
+* `u` - unsigned, ignore the sign of operands when performing operation, or
+ always return positive value. Second case applies to reduction operations
+ like `mod()`. In such cases if the result will be negative - modulo will be
+ added to the result to make it positive
+
+### Postfixes
+
+The only available postfix at the moment is:
+
+* `n` - which means that the argument of the function must be a plain JavaScript
+ Number. Decimals are not supported.
+
+### Examples
+
+* `a.iadd(b)` - perform addition on `a` and `b`, storing the result in `a`
+* `a.umod(b)` - reduce `a` modulo `b`, returning positive value
+* `a.iushln(13)` - shift bits of `a` left by 13
+
+## Instructions
+
+Prefixes/postfixes are put in parens at the of the line. `endian` - could be
+either `le` (little-endian) or `be` (big-endian).
+
+### Utilities
+
+* `a.clone()` - clone number
+* `a.toString(base, length)` - convert to base-string and pad with zeroes
+* `a.toNumber()` - convert to Javascript Number (limited to 53 bits)
+* `a.toJSON()` - convert to JSON compatible hex string (alias of `toString(16)`)
+* `a.toArray(endian, length)` - convert to byte `Array`, and optionally zero
+ pad to length, throwing if already exceeding
+* `a.toArrayLike(type, endian, length)` - convert to an instance of `type`,
+ which must behave like an `Array`
+* `a.toBuffer(endian, length)` - convert to Node.js Buffer (if available). For
+ compatibility with browserify and similar tools, use this instead:
+ `a.toArrayLike(Buffer, endian, length)`
+* `a.bitLength()` - get number of bits occupied
+* `a.zeroBits()` - return number of less-significant consequent zero bits
+ (example: `1010000` has 4 zero bits)
+* `a.byteLength()` - return number of bytes occupied
+* `a.isNeg()` - true if the number is negative
+* `a.isEven()` - no comments
+* `a.isOdd()` - no comments
+* `a.isZero()` - no comments
+* `a.cmp(b)` - compare numbers and return `-1` (a `<` b), `0` (a `==` b), or `1` (a `>` b)
+ depending on the comparison result (`ucmp`, `cmpn`)
+* `a.lt(b)` - `a` less than `b` (`n`)
+* `a.lte(b)` - `a` less than or equals `b` (`n`)
+* `a.gt(b)` - `a` greater than `b` (`n`)
+* `a.gte(b)` - `a` greater than or equals `b` (`n`)
+* `a.eq(b)` - `a` equals `b` (`n`)
+* `a.toTwos(width)` - convert to two's complement representation, where `width` is bit width
+* `a.fromTwos(width)` - convert from two's complement representation, where `width` is the bit width
+* `BN.isBN(object)` - returns true if the supplied `object` is a BN.js instance
+
+### Arithmetics
+
+* `a.neg()` - negate sign (`i`)
+* `a.abs()` - absolute value (`i`)
+* `a.add(b)` - addition (`i`, `n`, `in`)
+* `a.sub(b)` - subtraction (`i`, `n`, `in`)
+* `a.mul(b)` - multiply (`i`, `n`, `in`)
+* `a.sqr()` - square (`i`)
+* `a.pow(b)` - raise `a` to the power of `b`
+* `a.div(b)` - divide (`divn`, `idivn`)
+* `a.mod(b)` - reduct (`u`, `n`) (but no `umodn`)
+* `a.divRound(b)` - rounded division
+
+### Bit operations
+
+* `a.or(b)` - or (`i`, `u`, `iu`)
+* `a.and(b)` - and (`i`, `u`, `iu`, `andln`) (NOTE: `andln` is going to be replaced
+ with `andn` in future)
+* `a.xor(b)` - xor (`i`, `u`, `iu`)
+* `a.setn(b)` - set specified bit to `1`
+* `a.shln(b)` - shift left (`i`, `u`, `iu`)
+* `a.shrn(b)` - shift right (`i`, `u`, `iu`)
+* `a.testn(b)` - test if specified bit is set
+* `a.maskn(b)` - clear bits with indexes higher or equal to `b` (`i`)
+* `a.bincn(b)` - add `1 << b` to the number
+* `a.notn(w)` - not (for the width specified by `w`) (`i`)
+
+### Reduction
+
+* `a.gcd(b)` - GCD
+* `a.egcd(b)` - Extended GCD results (`{ a: ..., b: ..., gcd: ... }`)
+* `a.invm(b)` - inverse `a` modulo `b`
+
+## Fast reduction
+
+When doing lots of reductions using the same modulo, it might be beneficial to
+use some tricks: like [Montgomery multiplication][0], or using special algorithm
+for [Mersenne Prime][1].
+
+### Reduction context
+
+To enable this tricks one should create a reduction context:
+
+```js
+var red = BN.red(num);
+```
+where `num` is just a BN instance.
+
+Or:
+
+```js
+var red = BN.red(primeName);
+```
+
+Where `primeName` is either of these [Mersenne Primes][1]:
+
+* `'k256'`
+* `'p224'`
+* `'p192'`
+* `'p25519'`
+
+Or:
+
+```js
+var red = BN.mont(num);
+```
+
+To reduce numbers with [Montgomery trick][0]. `.mont()` is generally faster than
+`.red(num)`, but slower than `BN.red(primeName)`.
+
+### Converting numbers
+
+Before performing anything in reduction context - numbers should be converted
+to it. Usually, this means that one should:
+
+* Convert inputs to reducted ones
+* Operate on them in reduction context
+* Convert outputs back from the reduction context
+
+Here is how one may convert numbers to `red`:
+
+```js
+var redA = a.toRed(red);
+```
+Where `red` is a reduction context created using instructions above
+
+Here is how to convert them back:
+
+```js
+var a = redA.fromRed();
+```
+
+### Red instructions
+
+Most of the instructions from the very start of this readme have their
+counterparts in red context:
+
+* `a.redAdd(b)`, `a.redIAdd(b)`
+* `a.redSub(b)`, `a.redISub(b)`
+* `a.redShl(num)`
+* `a.redMul(b)`, `a.redIMul(b)`
+* `a.redSqr()`, `a.redISqr()`
+* `a.redSqrt()` - square root modulo reduction context's prime
+* `a.redInvm()` - modular inverse of the number
+* `a.redNeg()`
+* `a.redPow(b)` - modular exponentiation
+
+## LICENSE
+
+This software is licensed under the MIT License.
+
+[0]: https://en.wikipedia.org/wiki/Montgomery_modular_multiplication
+[1]: https://en.wikipedia.org/wiki/Mersenne_prime
diff --git a/node_modules/elliptic/node_modules/bn.js/lib/bn.js b/node_modules/elliptic/node_modules/bn.js/lib/bn.js
new file mode 100644
index 00000000..3a4371ea
--- /dev/null
+++ b/node_modules/elliptic/node_modules/bn.js/lib/bn.js
@@ -0,0 +1,3446 @@
+(function (module, exports) {
+ 'use strict';
+
+ // Utils
+ function assert (val, msg) {
+ if (!val) throw new Error(msg || 'Assertion failed');
+ }
+
+ // Could use `inherits` module, but don't want to move from single file
+ // architecture yet.
+ function inherits (ctor, superCtor) {
+ ctor.super_ = superCtor;
+ var TempCtor = function () {};
+ TempCtor.prototype = superCtor.prototype;
+ ctor.prototype = new TempCtor();
+ ctor.prototype.constructor = ctor;
+ }
+
+ // BN
+
+ function BN (number, base, endian) {
+ if (BN.isBN(number)) {
+ return number;
+ }
+
+ this.negative = 0;
+ this.words = null;
+ this.length = 0;
+
+ // Reduction context
+ this.red = null;
+
+ if (number !== null) {
+ if (base === 'le' || base === 'be') {
+ endian = base;
+ base = 10;
+ }
+
+ this._init(number || 0, base || 10, endian || 'be');
+ }
+ }
+ if (typeof module === 'object') {
+ module.exports = BN;
+ } else {
+ exports.BN = BN;
+ }
+
+ BN.BN = BN;
+ BN.wordSize = 26;
+
+ var Buffer;
+ try {
+ if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {
+ Buffer = window.Buffer;
+ } else {
+ Buffer = require('buffer').Buffer;
+ }
+ } catch (e) {
+ }
+
+ BN.isBN = function isBN (num) {
+ if (num instanceof BN) {
+ return true;
+ }
+
+ return num !== null && typeof num === 'object' &&
+ num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);
+ };
+
+ BN.max = function max (left, right) {
+ if (left.cmp(right) > 0) return left;
+ return right;
+ };
+
+ BN.min = function min (left, right) {
+ if (left.cmp(right) < 0) return left;
+ return right;
+ };
+
+ BN.prototype._init = function init (number, base, endian) {
+ if (typeof number === 'number') {
+ return this._initNumber(number, base, endian);
+ }
+
+ if (typeof number === 'object') {
+ return this._initArray(number, base, endian);
+ }
+
+ if (base === 'hex') {
+ base = 16;
+ }
+ assert(base === (base | 0) && base >= 2 && base <= 36);
+
+ number = number.toString().replace(/\s+/g, '');
+ var start = 0;
+ if (number[0] === '-') {
+ start++;
+ this.negative = 1;
+ }
+
+ if (start < number.length) {
+ if (base === 16) {
+ this._parseHex(number, start, endian);
+ } else {
+ this._parseBase(number, base, start);
+ if (endian === 'le') {
+ this._initArray(this.toArray(), base, endian);
+ }
+ }
+ }
+ };
+
+ BN.prototype._initNumber = function _initNumber (number, base, endian) {
+ if (number < 0) {
+ this.negative = 1;
+ number = -number;
+ }
+ if (number < 0x4000000) {
+ this.words = [ number & 0x3ffffff ];
+ this.length = 1;
+ } else if (number < 0x10000000000000) {
+ this.words = [
+ number & 0x3ffffff,
+ (number / 0x4000000) & 0x3ffffff
+ ];
+ this.length = 2;
+ } else {
+ assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)
+ this.words = [
+ number & 0x3ffffff,
+ (number / 0x4000000) & 0x3ffffff,
+ 1
+ ];
+ this.length = 3;
+ }
+
+ if (endian !== 'le') return;
+
+ // Reverse the bytes
+ this._initArray(this.toArray(), base, endian);
+ };
+
+ BN.prototype._initArray = function _initArray (number, base, endian) {
+ // Perhaps a Uint8Array
+ assert(typeof number.length === 'number');
+ if (number.length <= 0) {
+ this.words = [ 0 ];
+ this.length = 1;
+ return this;
+ }
+
+ this.length = Math.ceil(number.length / 3);
+ this.words = new Array(this.length);
+ for (var i = 0; i < this.length; i++) {
+ this.words[i] = 0;
+ }
+
+ var j, w;
+ var off = 0;
+ if (endian === 'be') {
+ for (i = number.length - 1, j = 0; i >= 0; i -= 3) {
+ w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);
+ this.words[j] |= (w << off) & 0x3ffffff;
+ this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;
+ off += 24;
+ if (off >= 26) {
+ off -= 26;
+ j++;
+ }
+ }
+ } else if (endian === 'le') {
+ for (i = 0, j = 0; i < number.length; i += 3) {
+ w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);
+ this.words[j] |= (w << off) & 0x3ffffff;
+ this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;
+ off += 24;
+ if (off >= 26) {
+ off -= 26;
+ j++;
+ }
+ }
+ }
+ return this.strip();
+ };
+
+ function parseHex4Bits (string, index) {
+ var c = string.charCodeAt(index);
+ // 'A' - 'F'
+ if (c >= 65 && c <= 70) {
+ return c - 55;
+ // 'a' - 'f'
+ } else if (c >= 97 && c <= 102) {
+ return c - 87;
+ // '0' - '9'
+ } else {
+ return (c - 48) & 0xf;
+ }
+ }
+
+ function parseHexByte (string, lowerBound, index) {
+ var r = parseHex4Bits(string, index);
+ if (index - 1 >= lowerBound) {
+ r |= parseHex4Bits(string, index - 1) << 4;
+ }
+ return r;
+ }
+
+ BN.prototype._parseHex = function _parseHex (number, start, endian) {
+ // Create possibly bigger array to ensure that it fits the number
+ this.length = Math.ceil((number.length - start) / 6);
+ this.words = new Array(this.length);
+ for (var i = 0; i < this.length; i++) {
+ this.words[i] = 0;
+ }
+
+ // 24-bits chunks
+ var off = 0;
+ var j = 0;
+
+ var w;
+ if (endian === 'be') {
+ for (i = number.length - 1; i >= start; i -= 2) {
+ w = parseHexByte(number, start, i) << off;
+ this.words[j] |= w & 0x3ffffff;
+ if (off >= 18) {
+ off -= 18;
+ j += 1;
+ this.words[j] |= w >>> 26;
+ } else {
+ off += 8;
+ }
+ }
+ } else {
+ var parseLength = number.length - start;
+ for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {
+ w = parseHexByte(number, start, i) << off;
+ this.words[j] |= w & 0x3ffffff;
+ if (off >= 18) {
+ off -= 18;
+ j += 1;
+ this.words[j] |= w >>> 26;
+ } else {
+ off += 8;
+ }
+ }
+ }
+
+ this.strip();
+ };
+
+ function parseBase (str, start, end, mul) {
+ var r = 0;
+ var len = Math.min(str.length, end);
+ for (var i = start; i < len; i++) {
+ var c = str.charCodeAt(i) - 48;
+
+ r *= mul;
+
+ // 'a'
+ if (c >= 49) {
+ r += c - 49 + 0xa;
+
+ // 'A'
+ } else if (c >= 17) {
+ r += c - 17 + 0xa;
+
+ // '0' - '9'
+ } else {
+ r += c;
+ }
+ }
+ return r;
+ }
+
+ BN.prototype._parseBase = function _parseBase (number, base, start) {
+ // Initialize as zero
+ this.words = [ 0 ];
+ this.length = 1;
+
+ // Find length of limb in base
+ for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {
+ limbLen++;
+ }
+ limbLen--;
+ limbPow = (limbPow / base) | 0;
+
+ var total = number.length - start;
+ var mod = total % limbLen;
+ var end = Math.min(total, total - mod) + start;
+
+ var word = 0;
+ for (var i = start; i < end; i += limbLen) {
+ word = parseBase(number, i, i + limbLen, base);
+
+ this.imuln(limbPow);
+ if (this.words[0] + word < 0x4000000) {
+ this.words[0] += word;
+ } else {
+ this._iaddn(word);
+ }
+ }
+
+ if (mod !== 0) {
+ var pow = 1;
+ word = parseBase(number, i, number.length, base);
+
+ for (i = 0; i < mod; i++) {
+ pow *= base;
+ }
+
+ this.imuln(pow);
+ if (this.words[0] + word < 0x4000000) {
+ this.words[0] += word;
+ } else {
+ this._iaddn(word);
+ }
+ }
+
+ this.strip();
+ };
+
+ BN.prototype.copy = function copy (dest) {
+ dest.words = new Array(this.length);
+ for (var i = 0; i < this.length; i++) {
+ dest.words[i] = this.words[i];
+ }
+ dest.length = this.length;
+ dest.negative = this.negative;
+ dest.red = this.red;
+ };
+
+ BN.prototype.clone = function clone () {
+ var r = new BN(null);
+ this.copy(r);
+ return r;
+ };
+
+ BN.prototype._expand = function _expand (size) {
+ while (this.length < size) {
+ this.words[this.length++] = 0;
+ }
+ return this;
+ };
+
+ // Remove leading `0` from `this`
+ BN.prototype.strip = function strip () {
+ while (this.length > 1 && this.words[this.length - 1] === 0) {
+ this.length--;
+ }
+ return this._normSign();
+ };
+
+ BN.prototype._normSign = function _normSign () {
+ // -0 = 0
+ if (this.length === 1 && this.words[0] === 0) {
+ this.negative = 0;
+ }
+ return this;
+ };
+
+ BN.prototype.inspect = function inspect () {
+ return (this.red ? '';
+ };
+
+ /*
+
+ var zeros = [];
+ var groupSizes = [];
+ var groupBases = [];
+
+ var s = '';
+ var i = -1;
+ while (++i < BN.wordSize) {
+ zeros[i] = s;
+ s += '0';
+ }
+ groupSizes[0] = 0;
+ groupSizes[1] = 0;
+ groupBases[0] = 0;
+ groupBases[1] = 0;
+ var base = 2 - 1;
+ while (++base < 36 + 1) {
+ var groupSize = 0;
+ var groupBase = 1;
+ while (groupBase < (1 << BN.wordSize) / base) {
+ groupBase *= base;
+ groupSize += 1;
+ }
+ groupSizes[base] = groupSize;
+ groupBases[base] = groupBase;
+ }
+
+ */
+
+ var zeros = [
+ '',
+ '0',
+ '00',
+ '000',
+ '0000',
+ '00000',
+ '000000',
+ '0000000',
+ '00000000',
+ '000000000',
+ '0000000000',
+ '00000000000',
+ '000000000000',
+ '0000000000000',
+ '00000000000000',
+ '000000000000000',
+ '0000000000000000',
+ '00000000000000000',
+ '000000000000000000',
+ '0000000000000000000',
+ '00000000000000000000',
+ '000000000000000000000',
+ '0000000000000000000000',
+ '00000000000000000000000',
+ '000000000000000000000000',
+ '0000000000000000000000000'
+ ];
+
+ var groupSizes = [
+ 0, 0,
+ 25, 16, 12, 11, 10, 9, 8,
+ 8, 7, 7, 7, 7, 6, 6,
+ 6, 6, 6, 6, 6, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, 5
+ ];
+
+ var groupBases = [
+ 0, 0,
+ 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,
+ 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,
+ 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,
+ 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,
+ 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176
+ ];
+
+ BN.prototype.toString = function toString (base, padding) {
+ base = base || 10;
+ padding = padding | 0 || 1;
+
+ var out;
+ if (base === 16 || base === 'hex') {
+ out = '';
+ var off = 0;
+ var carry = 0;
+ for (var i = 0; i < this.length; i++) {
+ var w = this.words[i];
+ var word = (((w << off) | carry) & 0xffffff).toString(16);
+ carry = (w >>> (24 - off)) & 0xffffff;
+ if (carry !== 0 || i !== this.length - 1) {
+ out = zeros[6 - word.length] + word + out;
+ } else {
+ out = word + out;
+ }
+ off += 2;
+ if (off >= 26) {
+ off -= 26;
+ i--;
+ }
+ }
+ if (carry !== 0) {
+ out = carry.toString(16) + out;
+ }
+ while (out.length % padding !== 0) {
+ out = '0' + out;
+ }
+ if (this.negative !== 0) {
+ out = '-' + out;
+ }
+ return out;
+ }
+
+ if (base === (base | 0) && base >= 2 && base <= 36) {
+ // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));
+ var groupSize = groupSizes[base];
+ // var groupBase = Math.pow(base, groupSize);
+ var groupBase = groupBases[base];
+ out = '';
+ var c = this.clone();
+ c.negative = 0;
+ while (!c.isZero()) {
+ var r = c.modn(groupBase).toString(base);
+ c = c.idivn(groupBase);
+
+ if (!c.isZero()) {
+ out = zeros[groupSize - r.length] + r + out;
+ } else {
+ out = r + out;
+ }
+ }
+ if (this.isZero()) {
+ out = '0' + out;
+ }
+ while (out.length % padding !== 0) {
+ out = '0' + out;
+ }
+ if (this.negative !== 0) {
+ out = '-' + out;
+ }
+ return out;
+ }
+
+ assert(false, 'Base should be between 2 and 36');
+ };
+
+ BN.prototype.toNumber = function toNumber () {
+ var ret = this.words[0];
+ if (this.length === 2) {
+ ret += this.words[1] * 0x4000000;
+ } else if (this.length === 3 && this.words[2] === 0x01) {
+ // NOTE: at this stage it is known that the top bit is set
+ ret += 0x10000000000000 + (this.words[1] * 0x4000000);
+ } else if (this.length > 2) {
+ assert(false, 'Number can only safely store up to 53 bits');
+ }
+ return (this.negative !== 0) ? -ret : ret;
+ };
+
+ BN.prototype.toJSON = function toJSON () {
+ return this.toString(16);
+ };
+
+ BN.prototype.toBuffer = function toBuffer (endian, length) {
+ assert(typeof Buffer !== 'undefined');
+ return this.toArrayLike(Buffer, endian, length);
+ };
+
+ BN.prototype.toArray = function toArray (endian, length) {
+ return this.toArrayLike(Array, endian, length);
+ };
+
+ BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {
+ var byteLength = this.byteLength();
+ var reqLength = length || Math.max(1, byteLength);
+ assert(byteLength <= reqLength, 'byte array longer than desired length');
+ assert(reqLength > 0, 'Requested array length <= 0');
+
+ this.strip();
+ var littleEndian = endian === 'le';
+ var res = new ArrayType(reqLength);
+
+ var b, i;
+ var q = this.clone();
+ if (!littleEndian) {
+ // Assume big-endian
+ for (i = 0; i < reqLength - byteLength; i++) {
+ res[i] = 0;
+ }
+
+ for (i = 0; !q.isZero(); i++) {
+ b = q.andln(0xff);
+ q.iushrn(8);
+
+ res[reqLength - i - 1] = b;
+ }
+ } else {
+ for (i = 0; !q.isZero(); i++) {
+ b = q.andln(0xff);
+ q.iushrn(8);
+
+ res[i] = b;
+ }
+
+ for (; i < reqLength; i++) {
+ res[i] = 0;
+ }
+ }
+
+ return res;
+ };
+
+ if (Math.clz32) {
+ BN.prototype._countBits = function _countBits (w) {
+ return 32 - Math.clz32(w);
+ };
+ } else {
+ BN.prototype._countBits = function _countBits (w) {
+ var t = w;
+ var r = 0;
+ if (t >= 0x1000) {
+ r += 13;
+ t >>>= 13;
+ }
+ if (t >= 0x40) {
+ r += 7;
+ t >>>= 7;
+ }
+ if (t >= 0x8) {
+ r += 4;
+ t >>>= 4;
+ }
+ if (t >= 0x02) {
+ r += 2;
+ t >>>= 2;
+ }
+ return r + t;
+ };
+ }
+
+ BN.prototype._zeroBits = function _zeroBits (w) {
+ // Short-cut
+ if (w === 0) return 26;
+
+ var t = w;
+ var r = 0;
+ if ((t & 0x1fff) === 0) {
+ r += 13;
+ t >>>= 13;
+ }
+ if ((t & 0x7f) === 0) {
+ r += 7;
+ t >>>= 7;
+ }
+ if ((t & 0xf) === 0) {
+ r += 4;
+ t >>>= 4;
+ }
+ if ((t & 0x3) === 0) {
+ r += 2;
+ t >>>= 2;
+ }
+ if ((t & 0x1) === 0) {
+ r++;
+ }
+ return r;
+ };
+
+ // Return number of used bits in a BN
+ BN.prototype.bitLength = function bitLength () {
+ var w = this.words[this.length - 1];
+ var hi = this._countBits(w);
+ return (this.length - 1) * 26 + hi;
+ };
+
+ function toBitArray (num) {
+ var w = new Array(num.bitLength());
+
+ for (var bit = 0; bit < w.length; bit++) {
+ var off = (bit / 26) | 0;
+ var wbit = bit % 26;
+
+ w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;
+ }
+
+ return w;
+ }
+
+ // Number of trailing zero bits
+ BN.prototype.zeroBits = function zeroBits () {
+ if (this.isZero()) return 0;
+
+ var r = 0;
+ for (var i = 0; i < this.length; i++) {
+ var b = this._zeroBits(this.words[i]);
+ r += b;
+ if (b !== 26) break;
+ }
+ return r;
+ };
+
+ BN.prototype.byteLength = function byteLength () {
+ return Math.ceil(this.bitLength() / 8);
+ };
+
+ BN.prototype.toTwos = function toTwos (width) {
+ if (this.negative !== 0) {
+ return this.abs().inotn(width).iaddn(1);
+ }
+ return this.clone();
+ };
+
+ BN.prototype.fromTwos = function fromTwos (width) {
+ if (this.testn(width - 1)) {
+ return this.notn(width).iaddn(1).ineg();
+ }
+ return this.clone();
+ };
+
+ BN.prototype.isNeg = function isNeg () {
+ return this.negative !== 0;
+ };
+
+ // Return negative clone of `this`
+ BN.prototype.neg = function neg () {
+ return this.clone().ineg();
+ };
+
+ BN.prototype.ineg = function ineg () {
+ if (!this.isZero()) {
+ this.negative ^= 1;
+ }
+
+ return this;
+ };
+
+ // Or `num` with `this` in-place
+ BN.prototype.iuor = function iuor (num) {
+ while (this.length < num.length) {
+ this.words[this.length++] = 0;
+ }
+
+ for (var i = 0; i < num.length; i++) {
+ this.words[i] = this.words[i] | num.words[i];
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ior = function ior (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuor(num);
+ };
+
+ // Or `num` with `this`
+ BN.prototype.or = function or (num) {
+ if (this.length > num.length) return this.clone().ior(num);
+ return num.clone().ior(this);
+ };
+
+ BN.prototype.uor = function uor (num) {
+ if (this.length > num.length) return this.clone().iuor(num);
+ return num.clone().iuor(this);
+ };
+
+ // And `num` with `this` in-place
+ BN.prototype.iuand = function iuand (num) {
+ // b = min-length(num, this)
+ var b;
+ if (this.length > num.length) {
+ b = num;
+ } else {
+ b = this;
+ }
+
+ for (var i = 0; i < b.length; i++) {
+ this.words[i] = this.words[i] & num.words[i];
+ }
+
+ this.length = b.length;
+
+ return this.strip();
+ };
+
+ BN.prototype.iand = function iand (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuand(num);
+ };
+
+ // And `num` with `this`
+ BN.prototype.and = function and (num) {
+ if (this.length > num.length) return this.clone().iand(num);
+ return num.clone().iand(this);
+ };
+
+ BN.prototype.uand = function uand (num) {
+ if (this.length > num.length) return this.clone().iuand(num);
+ return num.clone().iuand(this);
+ };
+
+ // Xor `num` with `this` in-place
+ BN.prototype.iuxor = function iuxor (num) {
+ // a.length > b.length
+ var a;
+ var b;
+ if (this.length > num.length) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ for (var i = 0; i < b.length; i++) {
+ this.words[i] = a.words[i] ^ b.words[i];
+ }
+
+ if (this !== a) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ this.length = a.length;
+
+ return this.strip();
+ };
+
+ BN.prototype.ixor = function ixor (num) {
+ assert((this.negative | num.negative) === 0);
+ return this.iuxor(num);
+ };
+
+ // Xor `num` with `this`
+ BN.prototype.xor = function xor (num) {
+ if (this.length > num.length) return this.clone().ixor(num);
+ return num.clone().ixor(this);
+ };
+
+ BN.prototype.uxor = function uxor (num) {
+ if (this.length > num.length) return this.clone().iuxor(num);
+ return num.clone().iuxor(this);
+ };
+
+ // Not ``this`` with ``width`` bitwidth
+ BN.prototype.inotn = function inotn (width) {
+ assert(typeof width === 'number' && width >= 0);
+
+ var bytesNeeded = Math.ceil(width / 26) | 0;
+ var bitsLeft = width % 26;
+
+ // Extend the buffer with leading zeroes
+ this._expand(bytesNeeded);
+
+ if (bitsLeft > 0) {
+ bytesNeeded--;
+ }
+
+ // Handle complete words
+ for (var i = 0; i < bytesNeeded; i++) {
+ this.words[i] = ~this.words[i] & 0x3ffffff;
+ }
+
+ // Handle the residue
+ if (bitsLeft > 0) {
+ this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));
+ }
+
+ // And remove leading zeroes
+ return this.strip();
+ };
+
+ BN.prototype.notn = function notn (width) {
+ return this.clone().inotn(width);
+ };
+
+ // Set `bit` of `this`
+ BN.prototype.setn = function setn (bit, val) {
+ assert(typeof bit === 'number' && bit >= 0);
+
+ var off = (bit / 26) | 0;
+ var wbit = bit % 26;
+
+ this._expand(off + 1);
+
+ if (val) {
+ this.words[off] = this.words[off] | (1 << wbit);
+ } else {
+ this.words[off] = this.words[off] & ~(1 << wbit);
+ }
+
+ return this.strip();
+ };
+
+ // Add `num` to `this` in-place
+ BN.prototype.iadd = function iadd (num) {
+ var r;
+
+ // negative + positive
+ if (this.negative !== 0 && num.negative === 0) {
+ this.negative = 0;
+ r = this.isub(num);
+ this.negative ^= 1;
+ return this._normSign();
+
+ // positive + negative
+ } else if (this.negative === 0 && num.negative !== 0) {
+ num.negative = 0;
+ r = this.isub(num);
+ num.negative = 1;
+ return r._normSign();
+ }
+
+ // a.length > b.length
+ var a, b;
+ if (this.length > num.length) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ var carry = 0;
+ for (var i = 0; i < b.length; i++) {
+ r = (a.words[i] | 0) + (b.words[i] | 0) + carry;
+ this.words[i] = r & 0x3ffffff;
+ carry = r >>> 26;
+ }
+ for (; carry !== 0 && i < a.length; i++) {
+ r = (a.words[i] | 0) + carry;
+ this.words[i] = r & 0x3ffffff;
+ carry = r >>> 26;
+ }
+
+ this.length = a.length;
+ if (carry !== 0) {
+ this.words[this.length] = carry;
+ this.length++;
+ // Copy the rest of the words
+ } else if (a !== this) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ return this;
+ };
+
+ // Add `num` to `this`
+ BN.prototype.add = function add (num) {
+ var res;
+ if (num.negative !== 0 && this.negative === 0) {
+ num.negative = 0;
+ res = this.sub(num);
+ num.negative ^= 1;
+ return res;
+ } else if (num.negative === 0 && this.negative !== 0) {
+ this.negative = 0;
+ res = num.sub(this);
+ this.negative = 1;
+ return res;
+ }
+
+ if (this.length > num.length) return this.clone().iadd(num);
+
+ return num.clone().iadd(this);
+ };
+
+ // Subtract `num` from `this` in-place
+ BN.prototype.isub = function isub (num) {
+ // this - (-num) = this + num
+ if (num.negative !== 0) {
+ num.negative = 0;
+ var r = this.iadd(num);
+ num.negative = 1;
+ return r._normSign();
+
+ // -this - num = -(this + num)
+ } else if (this.negative !== 0) {
+ this.negative = 0;
+ this.iadd(num);
+ this.negative = 1;
+ return this._normSign();
+ }
+
+ // At this point both numbers are positive
+ var cmp = this.cmp(num);
+
+ // Optimization - zeroify
+ if (cmp === 0) {
+ this.negative = 0;
+ this.length = 1;
+ this.words[0] = 0;
+ return this;
+ }
+
+ // a > b
+ var a, b;
+ if (cmp > 0) {
+ a = this;
+ b = num;
+ } else {
+ a = num;
+ b = this;
+ }
+
+ var carry = 0;
+ for (var i = 0; i < b.length; i++) {
+ r = (a.words[i] | 0) - (b.words[i] | 0) + carry;
+ carry = r >> 26;
+ this.words[i] = r & 0x3ffffff;
+ }
+ for (; carry !== 0 && i < a.length; i++) {
+ r = (a.words[i] | 0) + carry;
+ carry = r >> 26;
+ this.words[i] = r & 0x3ffffff;
+ }
+
+ // Copy rest of the words
+ if (carry === 0 && i < a.length && a !== this) {
+ for (; i < a.length; i++) {
+ this.words[i] = a.words[i];
+ }
+ }
+
+ this.length = Math.max(this.length, i);
+
+ if (a !== this) {
+ this.negative = 1;
+ }
+
+ return this.strip();
+ };
+
+ // Subtract `num` from `this`
+ BN.prototype.sub = function sub (num) {
+ return this.clone().isub(num);
+ };
+
+ function smallMulTo (self, num, out) {
+ out.negative = num.negative ^ self.negative;
+ var len = (self.length + num.length) | 0;
+ out.length = len;
+ len = (len - 1) | 0;
+
+ // Peel one iteration (compiler can't do it, because of code complexity)
+ var a = self.words[0] | 0;
+ var b = num.words[0] | 0;
+ var r = a * b;
+
+ var lo = r & 0x3ffffff;
+ var carry = (r / 0x4000000) | 0;
+ out.words[0] = lo;
+
+ for (var k = 1; k < len; k++) {
+ // Sum all words with the same `i + j = k` and accumulate `ncarry`,
+ // note that ncarry could be >= 0x3ffffff
+ var ncarry = carry >>> 26;
+ var rword = carry & 0x3ffffff;
+ var maxJ = Math.min(k, num.length - 1);
+ for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
+ var i = (k - j) | 0;
+ a = self.words[i] | 0;
+ b = num.words[j] | 0;
+ r = a * b + rword;
+ ncarry += (r / 0x4000000) | 0;
+ rword = r & 0x3ffffff;
+ }
+ out.words[k] = rword | 0;
+ carry = ncarry | 0;
+ }
+ if (carry !== 0) {
+ out.words[k] = carry | 0;
+ } else {
+ out.length--;
+ }
+
+ return out.strip();
+ }
+
+ // TODO(indutny): it may be reasonable to omit it for users who don't need
+ // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit
+ // multiplication (like elliptic secp256k1).
+ var comb10MulTo = function comb10MulTo (self, num, out) {
+ var a = self.words;
+ var b = num.words;
+ var o = out.words;
+ var c = 0;
+ var lo;
+ var mid;
+ var hi;
+ var a0 = a[0] | 0;
+ var al0 = a0 & 0x1fff;
+ var ah0 = a0 >>> 13;
+ var a1 = a[1] | 0;
+ var al1 = a1 & 0x1fff;
+ var ah1 = a1 >>> 13;
+ var a2 = a[2] | 0;
+ var al2 = a2 & 0x1fff;
+ var ah2 = a2 >>> 13;
+ var a3 = a[3] | 0;
+ var al3 = a3 & 0x1fff;
+ var ah3 = a3 >>> 13;
+ var a4 = a[4] | 0;
+ var al4 = a4 & 0x1fff;
+ var ah4 = a4 >>> 13;
+ var a5 = a[5] | 0;
+ var al5 = a5 & 0x1fff;
+ var ah5 = a5 >>> 13;
+ var a6 = a[6] | 0;
+ var al6 = a6 & 0x1fff;
+ var ah6 = a6 >>> 13;
+ var a7 = a[7] | 0;
+ var al7 = a7 & 0x1fff;
+ var ah7 = a7 >>> 13;
+ var a8 = a[8] | 0;
+ var al8 = a8 & 0x1fff;
+ var ah8 = a8 >>> 13;
+ var a9 = a[9] | 0;
+ var al9 = a9 & 0x1fff;
+ var ah9 = a9 >>> 13;
+ var b0 = b[0] | 0;
+ var bl0 = b0 & 0x1fff;
+ var bh0 = b0 >>> 13;
+ var b1 = b[1] | 0;
+ var bl1 = b1 & 0x1fff;
+ var bh1 = b1 >>> 13;
+ var b2 = b[2] | 0;
+ var bl2 = b2 & 0x1fff;
+ var bh2 = b2 >>> 13;
+ var b3 = b[3] | 0;
+ var bl3 = b3 & 0x1fff;
+ var bh3 = b3 >>> 13;
+ var b4 = b[4] | 0;
+ var bl4 = b4 & 0x1fff;
+ var bh4 = b4 >>> 13;
+ var b5 = b[5] | 0;
+ var bl5 = b5 & 0x1fff;
+ var bh5 = b5 >>> 13;
+ var b6 = b[6] | 0;
+ var bl6 = b6 & 0x1fff;
+ var bh6 = b6 >>> 13;
+ var b7 = b[7] | 0;
+ var bl7 = b7 & 0x1fff;
+ var bh7 = b7 >>> 13;
+ var b8 = b[8] | 0;
+ var bl8 = b8 & 0x1fff;
+ var bh8 = b8 >>> 13;
+ var b9 = b[9] | 0;
+ var bl9 = b9 & 0x1fff;
+ var bh9 = b9 >>> 13;
+
+ out.negative = self.negative ^ num.negative;
+ out.length = 19;
+ /* k = 0 */
+ lo = Math.imul(al0, bl0);
+ mid = Math.imul(al0, bh0);
+ mid = (mid + Math.imul(ah0, bl0)) | 0;
+ hi = Math.imul(ah0, bh0);
+ var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;
+ w0 &= 0x3ffffff;
+ /* k = 1 */
+ lo = Math.imul(al1, bl0);
+ mid = Math.imul(al1, bh0);
+ mid = (mid + Math.imul(ah1, bl0)) | 0;
+ hi = Math.imul(ah1, bh0);
+ lo = (lo + Math.imul(al0, bl1)) | 0;
+ mid = (mid + Math.imul(al0, bh1)) | 0;
+ mid = (mid + Math.imul(ah0, bl1)) | 0;
+ hi = (hi + Math.imul(ah0, bh1)) | 0;
+ var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;
+ w1 &= 0x3ffffff;
+ /* k = 2 */
+ lo = Math.imul(al2, bl0);
+ mid = Math.imul(al2, bh0);
+ mid = (mid + Math.imul(ah2, bl0)) | 0;
+ hi = Math.imul(ah2, bh0);
+ lo = (lo + Math.imul(al1, bl1)) | 0;
+ mid = (mid + Math.imul(al1, bh1)) | 0;
+ mid = (mid + Math.imul(ah1, bl1)) | 0;
+ hi = (hi + Math.imul(ah1, bh1)) | 0;
+ lo = (lo + Math.imul(al0, bl2)) | 0;
+ mid = (mid + Math.imul(al0, bh2)) | 0;
+ mid = (mid + Math.imul(ah0, bl2)) | 0;
+ hi = (hi + Math.imul(ah0, bh2)) | 0;
+ var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;
+ w2 &= 0x3ffffff;
+ /* k = 3 */
+ lo = Math.imul(al3, bl0);
+ mid = Math.imul(al3, bh0);
+ mid = (mid + Math.imul(ah3, bl0)) | 0;
+ hi = Math.imul(ah3, bh0);
+ lo = (lo + Math.imul(al2, bl1)) | 0;
+ mid = (mid + Math.imul(al2, bh1)) | 0;
+ mid = (mid + Math.imul(ah2, bl1)) | 0;
+ hi = (hi + Math.imul(ah2, bh1)) | 0;
+ lo = (lo + Math.imul(al1, bl2)) | 0;
+ mid = (mid + Math.imul(al1, bh2)) | 0;
+ mid = (mid + Math.imul(ah1, bl2)) | 0;
+ hi = (hi + Math.imul(ah1, bh2)) | 0;
+ lo = (lo + Math.imul(al0, bl3)) | 0;
+ mid = (mid + Math.imul(al0, bh3)) | 0;
+ mid = (mid + Math.imul(ah0, bl3)) | 0;
+ hi = (hi + Math.imul(ah0, bh3)) | 0;
+ var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;
+ w3 &= 0x3ffffff;
+ /* k = 4 */
+ lo = Math.imul(al4, bl0);
+ mid = Math.imul(al4, bh0);
+ mid = (mid + Math.imul(ah4, bl0)) | 0;
+ hi = Math.imul(ah4, bh0);
+ lo = (lo + Math.imul(al3, bl1)) | 0;
+ mid = (mid + Math.imul(al3, bh1)) | 0;
+ mid = (mid + Math.imul(ah3, bl1)) | 0;
+ hi = (hi + Math.imul(ah3, bh1)) | 0;
+ lo = (lo + Math.imul(al2, bl2)) | 0;
+ mid = (mid + Math.imul(al2, bh2)) | 0;
+ mid = (mid + Math.imul(ah2, bl2)) | 0;
+ hi = (hi + Math.imul(ah2, bh2)) | 0;
+ lo = (lo + Math.imul(al1, bl3)) | 0;
+ mid = (mid + Math.imul(al1, bh3)) | 0;
+ mid = (mid + Math.imul(ah1, bl3)) | 0;
+ hi = (hi + Math.imul(ah1, bh3)) | 0;
+ lo = (lo + Math.imul(al0, bl4)) | 0;
+ mid = (mid + Math.imul(al0, bh4)) | 0;
+ mid = (mid + Math.imul(ah0, bl4)) | 0;
+ hi = (hi + Math.imul(ah0, bh4)) | 0;
+ var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;
+ w4 &= 0x3ffffff;
+ /* k = 5 */
+ lo = Math.imul(al5, bl0);
+ mid = Math.imul(al5, bh0);
+ mid = (mid + Math.imul(ah5, bl0)) | 0;
+ hi = Math.imul(ah5, bh0);
+ lo = (lo + Math.imul(al4, bl1)) | 0;
+ mid = (mid + Math.imul(al4, bh1)) | 0;
+ mid = (mid + Math.imul(ah4, bl1)) | 0;
+ hi = (hi + Math.imul(ah4, bh1)) | 0;
+ lo = (lo + Math.imul(al3, bl2)) | 0;
+ mid = (mid + Math.imul(al3, bh2)) | 0;
+ mid = (mid + Math.imul(ah3, bl2)) | 0;
+ hi = (hi + Math.imul(ah3, bh2)) | 0;
+ lo = (lo + Math.imul(al2, bl3)) | 0;
+ mid = (mid + Math.imul(al2, bh3)) | 0;
+ mid = (mid + Math.imul(ah2, bl3)) | 0;
+ hi = (hi + Math.imul(ah2, bh3)) | 0;
+ lo = (lo + Math.imul(al1, bl4)) | 0;
+ mid = (mid + Math.imul(al1, bh4)) | 0;
+ mid = (mid + Math.imul(ah1, bl4)) | 0;
+ hi = (hi + Math.imul(ah1, bh4)) | 0;
+ lo = (lo + Math.imul(al0, bl5)) | 0;
+ mid = (mid + Math.imul(al0, bh5)) | 0;
+ mid = (mid + Math.imul(ah0, bl5)) | 0;
+ hi = (hi + Math.imul(ah0, bh5)) | 0;
+ var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;
+ w5 &= 0x3ffffff;
+ /* k = 6 */
+ lo = Math.imul(al6, bl0);
+ mid = Math.imul(al6, bh0);
+ mid = (mid + Math.imul(ah6, bl0)) | 0;
+ hi = Math.imul(ah6, bh0);
+ lo = (lo + Math.imul(al5, bl1)) | 0;
+ mid = (mid + Math.imul(al5, bh1)) | 0;
+ mid = (mid + Math.imul(ah5, bl1)) | 0;
+ hi = (hi + Math.imul(ah5, bh1)) | 0;
+ lo = (lo + Math.imul(al4, bl2)) | 0;
+ mid = (mid + Math.imul(al4, bh2)) | 0;
+ mid = (mid + Math.imul(ah4, bl2)) | 0;
+ hi = (hi + Math.imul(ah4, bh2)) | 0;
+ lo = (lo + Math.imul(al3, bl3)) | 0;
+ mid = (mid + Math.imul(al3, bh3)) | 0;
+ mid = (mid + Math.imul(ah3, bl3)) | 0;
+ hi = (hi + Math.imul(ah3, bh3)) | 0;
+ lo = (lo + Math.imul(al2, bl4)) | 0;
+ mid = (mid + Math.imul(al2, bh4)) | 0;
+ mid = (mid + Math.imul(ah2, bl4)) | 0;
+ hi = (hi + Math.imul(ah2, bh4)) | 0;
+ lo = (lo + Math.imul(al1, bl5)) | 0;
+ mid = (mid + Math.imul(al1, bh5)) | 0;
+ mid = (mid + Math.imul(ah1, bl5)) | 0;
+ hi = (hi + Math.imul(ah1, bh5)) | 0;
+ lo = (lo + Math.imul(al0, bl6)) | 0;
+ mid = (mid + Math.imul(al0, bh6)) | 0;
+ mid = (mid + Math.imul(ah0, bl6)) | 0;
+ hi = (hi + Math.imul(ah0, bh6)) | 0;
+ var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;
+ w6 &= 0x3ffffff;
+ /* k = 7 */
+ lo = Math.imul(al7, bl0);
+ mid = Math.imul(al7, bh0);
+ mid = (mid + Math.imul(ah7, bl0)) | 0;
+ hi = Math.imul(ah7, bh0);
+ lo = (lo + Math.imul(al6, bl1)) | 0;
+ mid = (mid + Math.imul(al6, bh1)) | 0;
+ mid = (mid + Math.imul(ah6, bl1)) | 0;
+ hi = (hi + Math.imul(ah6, bh1)) | 0;
+ lo = (lo + Math.imul(al5, bl2)) | 0;
+ mid = (mid + Math.imul(al5, bh2)) | 0;
+ mid = (mid + Math.imul(ah5, bl2)) | 0;
+ hi = (hi + Math.imul(ah5, bh2)) | 0;
+ lo = (lo + Math.imul(al4, bl3)) | 0;
+ mid = (mid + Math.imul(al4, bh3)) | 0;
+ mid = (mid + Math.imul(ah4, bl3)) | 0;
+ hi = (hi + Math.imul(ah4, bh3)) | 0;
+ lo = (lo + Math.imul(al3, bl4)) | 0;
+ mid = (mid + Math.imul(al3, bh4)) | 0;
+ mid = (mid + Math.imul(ah3, bl4)) | 0;
+ hi = (hi + Math.imul(ah3, bh4)) | 0;
+ lo = (lo + Math.imul(al2, bl5)) | 0;
+ mid = (mid + Math.imul(al2, bh5)) | 0;
+ mid = (mid + Math.imul(ah2, bl5)) | 0;
+ hi = (hi + Math.imul(ah2, bh5)) | 0;
+ lo = (lo + Math.imul(al1, bl6)) | 0;
+ mid = (mid + Math.imul(al1, bh6)) | 0;
+ mid = (mid + Math.imul(ah1, bl6)) | 0;
+ hi = (hi + Math.imul(ah1, bh6)) | 0;
+ lo = (lo + Math.imul(al0, bl7)) | 0;
+ mid = (mid + Math.imul(al0, bh7)) | 0;
+ mid = (mid + Math.imul(ah0, bl7)) | 0;
+ hi = (hi + Math.imul(ah0, bh7)) | 0;
+ var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;
+ w7 &= 0x3ffffff;
+ /* k = 8 */
+ lo = Math.imul(al8, bl0);
+ mid = Math.imul(al8, bh0);
+ mid = (mid + Math.imul(ah8, bl0)) | 0;
+ hi = Math.imul(ah8, bh0);
+ lo = (lo + Math.imul(al7, bl1)) | 0;
+ mid = (mid + Math.imul(al7, bh1)) | 0;
+ mid = (mid + Math.imul(ah7, bl1)) | 0;
+ hi = (hi + Math.imul(ah7, bh1)) | 0;
+ lo = (lo + Math.imul(al6, bl2)) | 0;
+ mid = (mid + Math.imul(al6, bh2)) | 0;
+ mid = (mid + Math.imul(ah6, bl2)) | 0;
+ hi = (hi + Math.imul(ah6, bh2)) | 0;
+ lo = (lo + Math.imul(al5, bl3)) | 0;
+ mid = (mid + Math.imul(al5, bh3)) | 0;
+ mid = (mid + Math.imul(ah5, bl3)) | 0;
+ hi = (hi + Math.imul(ah5, bh3)) | 0;
+ lo = (lo + Math.imul(al4, bl4)) | 0;
+ mid = (mid + Math.imul(al4, bh4)) | 0;
+ mid = (mid + Math.imul(ah4, bl4)) | 0;
+ hi = (hi + Math.imul(ah4, bh4)) | 0;
+ lo = (lo + Math.imul(al3, bl5)) | 0;
+ mid = (mid + Math.imul(al3, bh5)) | 0;
+ mid = (mid + Math.imul(ah3, bl5)) | 0;
+ hi = (hi + Math.imul(ah3, bh5)) | 0;
+ lo = (lo + Math.imul(al2, bl6)) | 0;
+ mid = (mid + Math.imul(al2, bh6)) | 0;
+ mid = (mid + Math.imul(ah2, bl6)) | 0;
+ hi = (hi + Math.imul(ah2, bh6)) | 0;
+ lo = (lo + Math.imul(al1, bl7)) | 0;
+ mid = (mid + Math.imul(al1, bh7)) | 0;
+ mid = (mid + Math.imul(ah1, bl7)) | 0;
+ hi = (hi + Math.imul(ah1, bh7)) | 0;
+ lo = (lo + Math.imul(al0, bl8)) | 0;
+ mid = (mid + Math.imul(al0, bh8)) | 0;
+ mid = (mid + Math.imul(ah0, bl8)) | 0;
+ hi = (hi + Math.imul(ah0, bh8)) | 0;
+ var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;
+ w8 &= 0x3ffffff;
+ /* k = 9 */
+ lo = Math.imul(al9, bl0);
+ mid = Math.imul(al9, bh0);
+ mid = (mid + Math.imul(ah9, bl0)) | 0;
+ hi = Math.imul(ah9, bh0);
+ lo = (lo + Math.imul(al8, bl1)) | 0;
+ mid = (mid + Math.imul(al8, bh1)) | 0;
+ mid = (mid + Math.imul(ah8, bl1)) | 0;
+ hi = (hi + Math.imul(ah8, bh1)) | 0;
+ lo = (lo + Math.imul(al7, bl2)) | 0;
+ mid = (mid + Math.imul(al7, bh2)) | 0;
+ mid = (mid + Math.imul(ah7, bl2)) | 0;
+ hi = (hi + Math.imul(ah7, bh2)) | 0;
+ lo = (lo + Math.imul(al6, bl3)) | 0;
+ mid = (mid + Math.imul(al6, bh3)) | 0;
+ mid = (mid + Math.imul(ah6, bl3)) | 0;
+ hi = (hi + Math.imul(ah6, bh3)) | 0;
+ lo = (lo + Math.imul(al5, bl4)) | 0;
+ mid = (mid + Math.imul(al5, bh4)) | 0;
+ mid = (mid + Math.imul(ah5, bl4)) | 0;
+ hi = (hi + Math.imul(ah5, bh4)) | 0;
+ lo = (lo + Math.imul(al4, bl5)) | 0;
+ mid = (mid + Math.imul(al4, bh5)) | 0;
+ mid = (mid + Math.imul(ah4, bl5)) | 0;
+ hi = (hi + Math.imul(ah4, bh5)) | 0;
+ lo = (lo + Math.imul(al3, bl6)) | 0;
+ mid = (mid + Math.imul(al3, bh6)) | 0;
+ mid = (mid + Math.imul(ah3, bl6)) | 0;
+ hi = (hi + Math.imul(ah3, bh6)) | 0;
+ lo = (lo + Math.imul(al2, bl7)) | 0;
+ mid = (mid + Math.imul(al2, bh7)) | 0;
+ mid = (mid + Math.imul(ah2, bl7)) | 0;
+ hi = (hi + Math.imul(ah2, bh7)) | 0;
+ lo = (lo + Math.imul(al1, bl8)) | 0;
+ mid = (mid + Math.imul(al1, bh8)) | 0;
+ mid = (mid + Math.imul(ah1, bl8)) | 0;
+ hi = (hi + Math.imul(ah1, bh8)) | 0;
+ lo = (lo + Math.imul(al0, bl9)) | 0;
+ mid = (mid + Math.imul(al0, bh9)) | 0;
+ mid = (mid + Math.imul(ah0, bl9)) | 0;
+ hi = (hi + Math.imul(ah0, bh9)) | 0;
+ var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;
+ w9 &= 0x3ffffff;
+ /* k = 10 */
+ lo = Math.imul(al9, bl1);
+ mid = Math.imul(al9, bh1);
+ mid = (mid + Math.imul(ah9, bl1)) | 0;
+ hi = Math.imul(ah9, bh1);
+ lo = (lo + Math.imul(al8, bl2)) | 0;
+ mid = (mid + Math.imul(al8, bh2)) | 0;
+ mid = (mid + Math.imul(ah8, bl2)) | 0;
+ hi = (hi + Math.imul(ah8, bh2)) | 0;
+ lo = (lo + Math.imul(al7, bl3)) | 0;
+ mid = (mid + Math.imul(al7, bh3)) | 0;
+ mid = (mid + Math.imul(ah7, bl3)) | 0;
+ hi = (hi + Math.imul(ah7, bh3)) | 0;
+ lo = (lo + Math.imul(al6, bl4)) | 0;
+ mid = (mid + Math.imul(al6, bh4)) | 0;
+ mid = (mid + Math.imul(ah6, bl4)) | 0;
+ hi = (hi + Math.imul(ah6, bh4)) | 0;
+ lo = (lo + Math.imul(al5, bl5)) | 0;
+ mid = (mid + Math.imul(al5, bh5)) | 0;
+ mid = (mid + Math.imul(ah5, bl5)) | 0;
+ hi = (hi + Math.imul(ah5, bh5)) | 0;
+ lo = (lo + Math.imul(al4, bl6)) | 0;
+ mid = (mid + Math.imul(al4, bh6)) | 0;
+ mid = (mid + Math.imul(ah4, bl6)) | 0;
+ hi = (hi + Math.imul(ah4, bh6)) | 0;
+ lo = (lo + Math.imul(al3, bl7)) | 0;
+ mid = (mid + Math.imul(al3, bh7)) | 0;
+ mid = (mid + Math.imul(ah3, bl7)) | 0;
+ hi = (hi + Math.imul(ah3, bh7)) | 0;
+ lo = (lo + Math.imul(al2, bl8)) | 0;
+ mid = (mid + Math.imul(al2, bh8)) | 0;
+ mid = (mid + Math.imul(ah2, bl8)) | 0;
+ hi = (hi + Math.imul(ah2, bh8)) | 0;
+ lo = (lo + Math.imul(al1, bl9)) | 0;
+ mid = (mid + Math.imul(al1, bh9)) | 0;
+ mid = (mid + Math.imul(ah1, bl9)) | 0;
+ hi = (hi + Math.imul(ah1, bh9)) | 0;
+ var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;
+ w10 &= 0x3ffffff;
+ /* k = 11 */
+ lo = Math.imul(al9, bl2);
+ mid = Math.imul(al9, bh2);
+ mid = (mid + Math.imul(ah9, bl2)) | 0;
+ hi = Math.imul(ah9, bh2);
+ lo = (lo + Math.imul(al8, bl3)) | 0;
+ mid = (mid + Math.imul(al8, bh3)) | 0;
+ mid = (mid + Math.imul(ah8, bl3)) | 0;
+ hi = (hi + Math.imul(ah8, bh3)) | 0;
+ lo = (lo + Math.imul(al7, bl4)) | 0;
+ mid = (mid + Math.imul(al7, bh4)) | 0;
+ mid = (mid + Math.imul(ah7, bl4)) | 0;
+ hi = (hi + Math.imul(ah7, bh4)) | 0;
+ lo = (lo + Math.imul(al6, bl5)) | 0;
+ mid = (mid + Math.imul(al6, bh5)) | 0;
+ mid = (mid + Math.imul(ah6, bl5)) | 0;
+ hi = (hi + Math.imul(ah6, bh5)) | 0;
+ lo = (lo + Math.imul(al5, bl6)) | 0;
+ mid = (mid + Math.imul(al5, bh6)) | 0;
+ mid = (mid + Math.imul(ah5, bl6)) | 0;
+ hi = (hi + Math.imul(ah5, bh6)) | 0;
+ lo = (lo + Math.imul(al4, bl7)) | 0;
+ mid = (mid + Math.imul(al4, bh7)) | 0;
+ mid = (mid + Math.imul(ah4, bl7)) | 0;
+ hi = (hi + Math.imul(ah4, bh7)) | 0;
+ lo = (lo + Math.imul(al3, bl8)) | 0;
+ mid = (mid + Math.imul(al3, bh8)) | 0;
+ mid = (mid + Math.imul(ah3, bl8)) | 0;
+ hi = (hi + Math.imul(ah3, bh8)) | 0;
+ lo = (lo + Math.imul(al2, bl9)) | 0;
+ mid = (mid + Math.imul(al2, bh9)) | 0;
+ mid = (mid + Math.imul(ah2, bl9)) | 0;
+ hi = (hi + Math.imul(ah2, bh9)) | 0;
+ var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;
+ w11 &= 0x3ffffff;
+ /* k = 12 */
+ lo = Math.imul(al9, bl3);
+ mid = Math.imul(al9, bh3);
+ mid = (mid + Math.imul(ah9, bl3)) | 0;
+ hi = Math.imul(ah9, bh3);
+ lo = (lo + Math.imul(al8, bl4)) | 0;
+ mid = (mid + Math.imul(al8, bh4)) | 0;
+ mid = (mid + Math.imul(ah8, bl4)) | 0;
+ hi = (hi + Math.imul(ah8, bh4)) | 0;
+ lo = (lo + Math.imul(al7, bl5)) | 0;
+ mid = (mid + Math.imul(al7, bh5)) | 0;
+ mid = (mid + Math.imul(ah7, bl5)) | 0;
+ hi = (hi + Math.imul(ah7, bh5)) | 0;
+ lo = (lo + Math.imul(al6, bl6)) | 0;
+ mid = (mid + Math.imul(al6, bh6)) | 0;
+ mid = (mid + Math.imul(ah6, bl6)) | 0;
+ hi = (hi + Math.imul(ah6, bh6)) | 0;
+ lo = (lo + Math.imul(al5, bl7)) | 0;
+ mid = (mid + Math.imul(al5, bh7)) | 0;
+ mid = (mid + Math.imul(ah5, bl7)) | 0;
+ hi = (hi + Math.imul(ah5, bh7)) | 0;
+ lo = (lo + Math.imul(al4, bl8)) | 0;
+ mid = (mid + Math.imul(al4, bh8)) | 0;
+ mid = (mid + Math.imul(ah4, bl8)) | 0;
+ hi = (hi + Math.imul(ah4, bh8)) | 0;
+ lo = (lo + Math.imul(al3, bl9)) | 0;
+ mid = (mid + Math.imul(al3, bh9)) | 0;
+ mid = (mid + Math.imul(ah3, bl9)) | 0;
+ hi = (hi + Math.imul(ah3, bh9)) | 0;
+ var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;
+ w12 &= 0x3ffffff;
+ /* k = 13 */
+ lo = Math.imul(al9, bl4);
+ mid = Math.imul(al9, bh4);
+ mid = (mid + Math.imul(ah9, bl4)) | 0;
+ hi = Math.imul(ah9, bh4);
+ lo = (lo + Math.imul(al8, bl5)) | 0;
+ mid = (mid + Math.imul(al8, bh5)) | 0;
+ mid = (mid + Math.imul(ah8, bl5)) | 0;
+ hi = (hi + Math.imul(ah8, bh5)) | 0;
+ lo = (lo + Math.imul(al7, bl6)) | 0;
+ mid = (mid + Math.imul(al7, bh6)) | 0;
+ mid = (mid + Math.imul(ah7, bl6)) | 0;
+ hi = (hi + Math.imul(ah7, bh6)) | 0;
+ lo = (lo + Math.imul(al6, bl7)) | 0;
+ mid = (mid + Math.imul(al6, bh7)) | 0;
+ mid = (mid + Math.imul(ah6, bl7)) | 0;
+ hi = (hi + Math.imul(ah6, bh7)) | 0;
+ lo = (lo + Math.imul(al5, bl8)) | 0;
+ mid = (mid + Math.imul(al5, bh8)) | 0;
+ mid = (mid + Math.imul(ah5, bl8)) | 0;
+ hi = (hi + Math.imul(ah5, bh8)) | 0;
+ lo = (lo + Math.imul(al4, bl9)) | 0;
+ mid = (mid + Math.imul(al4, bh9)) | 0;
+ mid = (mid + Math.imul(ah4, bl9)) | 0;
+ hi = (hi + Math.imul(ah4, bh9)) | 0;
+ var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;
+ w13 &= 0x3ffffff;
+ /* k = 14 */
+ lo = Math.imul(al9, bl5);
+ mid = Math.imul(al9, bh5);
+ mid = (mid + Math.imul(ah9, bl5)) | 0;
+ hi = Math.imul(ah9, bh5);
+ lo = (lo + Math.imul(al8, bl6)) | 0;
+ mid = (mid + Math.imul(al8, bh6)) | 0;
+ mid = (mid + Math.imul(ah8, bl6)) | 0;
+ hi = (hi + Math.imul(ah8, bh6)) | 0;
+ lo = (lo + Math.imul(al7, bl7)) | 0;
+ mid = (mid + Math.imul(al7, bh7)) | 0;
+ mid = (mid + Math.imul(ah7, bl7)) | 0;
+ hi = (hi + Math.imul(ah7, bh7)) | 0;
+ lo = (lo + Math.imul(al6, bl8)) | 0;
+ mid = (mid + Math.imul(al6, bh8)) | 0;
+ mid = (mid + Math.imul(ah6, bl8)) | 0;
+ hi = (hi + Math.imul(ah6, bh8)) | 0;
+ lo = (lo + Math.imul(al5, bl9)) | 0;
+ mid = (mid + Math.imul(al5, bh9)) | 0;
+ mid = (mid + Math.imul(ah5, bl9)) | 0;
+ hi = (hi + Math.imul(ah5, bh9)) | 0;
+ var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;
+ w14 &= 0x3ffffff;
+ /* k = 15 */
+ lo = Math.imul(al9, bl6);
+ mid = Math.imul(al9, bh6);
+ mid = (mid + Math.imul(ah9, bl6)) | 0;
+ hi = Math.imul(ah9, bh6);
+ lo = (lo + Math.imul(al8, bl7)) | 0;
+ mid = (mid + Math.imul(al8, bh7)) | 0;
+ mid = (mid + Math.imul(ah8, bl7)) | 0;
+ hi = (hi + Math.imul(ah8, bh7)) | 0;
+ lo = (lo + Math.imul(al7, bl8)) | 0;
+ mid = (mid + Math.imul(al7, bh8)) | 0;
+ mid = (mid + Math.imul(ah7, bl8)) | 0;
+ hi = (hi + Math.imul(ah7, bh8)) | 0;
+ lo = (lo + Math.imul(al6, bl9)) | 0;
+ mid = (mid + Math.imul(al6, bh9)) | 0;
+ mid = (mid + Math.imul(ah6, bl9)) | 0;
+ hi = (hi + Math.imul(ah6, bh9)) | 0;
+ var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;
+ w15 &= 0x3ffffff;
+ /* k = 16 */
+ lo = Math.imul(al9, bl7);
+ mid = Math.imul(al9, bh7);
+ mid = (mid + Math.imul(ah9, bl7)) | 0;
+ hi = Math.imul(ah9, bh7);
+ lo = (lo + Math.imul(al8, bl8)) | 0;
+ mid = (mid + Math.imul(al8, bh8)) | 0;
+ mid = (mid + Math.imul(ah8, bl8)) | 0;
+ hi = (hi + Math.imul(ah8, bh8)) | 0;
+ lo = (lo + Math.imul(al7, bl9)) | 0;
+ mid = (mid + Math.imul(al7, bh9)) | 0;
+ mid = (mid + Math.imul(ah7, bl9)) | 0;
+ hi = (hi + Math.imul(ah7, bh9)) | 0;
+ var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;
+ w16 &= 0x3ffffff;
+ /* k = 17 */
+ lo = Math.imul(al9, bl8);
+ mid = Math.imul(al9, bh8);
+ mid = (mid + Math.imul(ah9, bl8)) | 0;
+ hi = Math.imul(ah9, bh8);
+ lo = (lo + Math.imul(al8, bl9)) | 0;
+ mid = (mid + Math.imul(al8, bh9)) | 0;
+ mid = (mid + Math.imul(ah8, bl9)) | 0;
+ hi = (hi + Math.imul(ah8, bh9)) | 0;
+ var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;
+ w17 &= 0x3ffffff;
+ /* k = 18 */
+ lo = Math.imul(al9, bl9);
+ mid = Math.imul(al9, bh9);
+ mid = (mid + Math.imul(ah9, bl9)) | 0;
+ hi = Math.imul(ah9, bh9);
+ var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;
+ c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;
+ w18 &= 0x3ffffff;
+ o[0] = w0;
+ o[1] = w1;
+ o[2] = w2;
+ o[3] = w3;
+ o[4] = w4;
+ o[5] = w5;
+ o[6] = w6;
+ o[7] = w7;
+ o[8] = w8;
+ o[9] = w9;
+ o[10] = w10;
+ o[11] = w11;
+ o[12] = w12;
+ o[13] = w13;
+ o[14] = w14;
+ o[15] = w15;
+ o[16] = w16;
+ o[17] = w17;
+ o[18] = w18;
+ if (c !== 0) {
+ o[19] = c;
+ out.length++;
+ }
+ return out;
+ };
+
+ // Polyfill comb
+ if (!Math.imul) {
+ comb10MulTo = smallMulTo;
+ }
+
+ function bigMulTo (self, num, out) {
+ out.negative = num.negative ^ self.negative;
+ out.length = self.length + num.length;
+
+ var carry = 0;
+ var hncarry = 0;
+ for (var k = 0; k < out.length - 1; k++) {
+ // Sum all words with the same `i + j = k` and accumulate `ncarry`,
+ // note that ncarry could be >= 0x3ffffff
+ var ncarry = hncarry;
+ hncarry = 0;
+ var rword = carry & 0x3ffffff;
+ var maxJ = Math.min(k, num.length - 1);
+ for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {
+ var i = k - j;
+ var a = self.words[i] | 0;
+ var b = num.words[j] | 0;
+ var r = a * b;
+
+ var lo = r & 0x3ffffff;
+ ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;
+ lo = (lo + rword) | 0;
+ rword = lo & 0x3ffffff;
+ ncarry = (ncarry + (lo >>> 26)) | 0;
+
+ hncarry += ncarry >>> 26;
+ ncarry &= 0x3ffffff;
+ }
+ out.words[k] = rword;
+ carry = ncarry;
+ ncarry = hncarry;
+ }
+ if (carry !== 0) {
+ out.words[k] = carry;
+ } else {
+ out.length--;
+ }
+
+ return out.strip();
+ }
+
+ function jumboMulTo (self, num, out) {
+ var fftm = new FFTM();
+ return fftm.mulp(self, num, out);
+ }
+
+ BN.prototype.mulTo = function mulTo (num, out) {
+ var res;
+ var len = this.length + num.length;
+ if (this.length === 10 && num.length === 10) {
+ res = comb10MulTo(this, num, out);
+ } else if (len < 63) {
+ res = smallMulTo(this, num, out);
+ } else if (len < 1024) {
+ res = bigMulTo(this, num, out);
+ } else {
+ res = jumboMulTo(this, num, out);
+ }
+
+ return res;
+ };
+
+ // Cooley-Tukey algorithm for FFT
+ // slightly revisited to rely on looping instead of recursion
+
+ function FFTM (x, y) {
+ this.x = x;
+ this.y = y;
+ }
+
+ FFTM.prototype.makeRBT = function makeRBT (N) {
+ var t = new Array(N);
+ var l = BN.prototype._countBits(N) - 1;
+ for (var i = 0; i < N; i++) {
+ t[i] = this.revBin(i, l, N);
+ }
+
+ return t;
+ };
+
+ // Returns binary-reversed representation of `x`
+ FFTM.prototype.revBin = function revBin (x, l, N) {
+ if (x === 0 || x === N - 1) return x;
+
+ var rb = 0;
+ for (var i = 0; i < l; i++) {
+ rb |= (x & 1) << (l - i - 1);
+ x >>= 1;
+ }
+
+ return rb;
+ };
+
+ // Performs "tweedling" phase, therefore 'emulating'
+ // behaviour of the recursive algorithm
+ FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {
+ for (var i = 0; i < N; i++) {
+ rtws[i] = rws[rbt[i]];
+ itws[i] = iws[rbt[i]];
+ }
+ };
+
+ FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {
+ this.permute(rbt, rws, iws, rtws, itws, N);
+
+ for (var s = 1; s < N; s <<= 1) {
+ var l = s << 1;
+
+ var rtwdf = Math.cos(2 * Math.PI / l);
+ var itwdf = Math.sin(2 * Math.PI / l);
+
+ for (var p = 0; p < N; p += l) {
+ var rtwdf_ = rtwdf;
+ var itwdf_ = itwdf;
+
+ for (var j = 0; j < s; j++) {
+ var re = rtws[p + j];
+ var ie = itws[p + j];
+
+ var ro = rtws[p + j + s];
+ var io = itws[p + j + s];
+
+ var rx = rtwdf_ * ro - itwdf_ * io;
+
+ io = rtwdf_ * io + itwdf_ * ro;
+ ro = rx;
+
+ rtws[p + j] = re + ro;
+ itws[p + j] = ie + io;
+
+ rtws[p + j + s] = re - ro;
+ itws[p + j + s] = ie - io;
+
+ /* jshint maxdepth : false */
+ if (j !== l) {
+ rx = rtwdf * rtwdf_ - itwdf * itwdf_;
+
+ itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;
+ rtwdf_ = rx;
+ }
+ }
+ }
+ }
+ };
+
+ FFTM.prototype.guessLen13b = function guessLen13b (n, m) {
+ var N = Math.max(m, n) | 1;
+ var odd = N & 1;
+ var i = 0;
+ for (N = N / 2 | 0; N; N = N >>> 1) {
+ i++;
+ }
+
+ return 1 << i + 1 + odd;
+ };
+
+ FFTM.prototype.conjugate = function conjugate (rws, iws, N) {
+ if (N <= 1) return;
+
+ for (var i = 0; i < N / 2; i++) {
+ var t = rws[i];
+
+ rws[i] = rws[N - i - 1];
+ rws[N - i - 1] = t;
+
+ t = iws[i];
+
+ iws[i] = -iws[N - i - 1];
+ iws[N - i - 1] = -t;
+ }
+ };
+
+ FFTM.prototype.normalize13b = function normalize13b (ws, N) {
+ var carry = 0;
+ for (var i = 0; i < N / 2; i++) {
+ var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +
+ Math.round(ws[2 * i] / N) +
+ carry;
+
+ ws[i] = w & 0x3ffffff;
+
+ if (w < 0x4000000) {
+ carry = 0;
+ } else {
+ carry = w / 0x4000000 | 0;
+ }
+ }
+
+ return ws;
+ };
+
+ FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {
+ var carry = 0;
+ for (var i = 0; i < len; i++) {
+ carry = carry + (ws[i] | 0);
+
+ rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;
+ rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;
+ }
+
+ // Pad with zeroes
+ for (i = 2 * len; i < N; ++i) {
+ rws[i] = 0;
+ }
+
+ assert(carry === 0);
+ assert((carry & ~0x1fff) === 0);
+ };
+
+ FFTM.prototype.stub = function stub (N) {
+ var ph = new Array(N);
+ for (var i = 0; i < N; i++) {
+ ph[i] = 0;
+ }
+
+ return ph;
+ };
+
+ FFTM.prototype.mulp = function mulp (x, y, out) {
+ var N = 2 * this.guessLen13b(x.length, y.length);
+
+ var rbt = this.makeRBT(N);
+
+ var _ = this.stub(N);
+
+ var rws = new Array(N);
+ var rwst = new Array(N);
+ var iwst = new Array(N);
+
+ var nrws = new Array(N);
+ var nrwst = new Array(N);
+ var niwst = new Array(N);
+
+ var rmws = out.words;
+ rmws.length = N;
+
+ this.convert13b(x.words, x.length, rws, N);
+ this.convert13b(y.words, y.length, nrws, N);
+
+ this.transform(rws, _, rwst, iwst, N, rbt);
+ this.transform(nrws, _, nrwst, niwst, N, rbt);
+
+ for (var i = 0; i < N; i++) {
+ var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];
+ iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];
+ rwst[i] = rx;
+ }
+
+ this.conjugate(rwst, iwst, N);
+ this.transform(rwst, iwst, rmws, _, N, rbt);
+ this.conjugate(rmws, _, N);
+ this.normalize13b(rmws, N);
+
+ out.negative = x.negative ^ y.negative;
+ out.length = x.length + y.length;
+ return out.strip();
+ };
+
+ // Multiply `this` by `num`
+ BN.prototype.mul = function mul (num) {
+ var out = new BN(null);
+ out.words = new Array(this.length + num.length);
+ return this.mulTo(num, out);
+ };
+
+ // Multiply employing FFT
+ BN.prototype.mulf = function mulf (num) {
+ var out = new BN(null);
+ out.words = new Array(this.length + num.length);
+ return jumboMulTo(this, num, out);
+ };
+
+ // In-place Multiplication
+ BN.prototype.imul = function imul (num) {
+ return this.clone().mulTo(num, this);
+ };
+
+ BN.prototype.imuln = function imuln (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+
+ // Carry
+ var carry = 0;
+ for (var i = 0; i < this.length; i++) {
+ var w = (this.words[i] | 0) * num;
+ var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);
+ carry >>= 26;
+ carry += (w / 0x4000000) | 0;
+ // NOTE: lo is 27bit maximum
+ carry += lo >>> 26;
+ this.words[i] = lo & 0x3ffffff;
+ }
+
+ if (carry !== 0) {
+ this.words[i] = carry;
+ this.length++;
+ }
+
+ return this;
+ };
+
+ BN.prototype.muln = function muln (num) {
+ return this.clone().imuln(num);
+ };
+
+ // `this` * `this`
+ BN.prototype.sqr = function sqr () {
+ return this.mul(this);
+ };
+
+ // `this` * `this` in-place
+ BN.prototype.isqr = function isqr () {
+ return this.imul(this.clone());
+ };
+
+ // Math.pow(`this`, `num`)
+ BN.prototype.pow = function pow (num) {
+ var w = toBitArray(num);
+ if (w.length === 0) return new BN(1);
+
+ // Skip leading zeroes
+ var res = this;
+ for (var i = 0; i < w.length; i++, res = res.sqr()) {
+ if (w[i] !== 0) break;
+ }
+
+ if (++i < w.length) {
+ for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {
+ if (w[i] === 0) continue;
+
+ res = res.mul(q);
+ }
+ }
+
+ return res;
+ };
+
+ // Shift-left in-place
+ BN.prototype.iushln = function iushln (bits) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var r = bits % 26;
+ var s = (bits - r) / 26;
+ var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);
+ var i;
+
+ if (r !== 0) {
+ var carry = 0;
+
+ for (i = 0; i < this.length; i++) {
+ var newCarry = this.words[i] & carryMask;
+ var c = ((this.words[i] | 0) - newCarry) << r;
+ this.words[i] = c | carry;
+ carry = newCarry >>> (26 - r);
+ }
+
+ if (carry) {
+ this.words[i] = carry;
+ this.length++;
+ }
+ }
+
+ if (s !== 0) {
+ for (i = this.length - 1; i >= 0; i--) {
+ this.words[i + s] = this.words[i];
+ }
+
+ for (i = 0; i < s; i++) {
+ this.words[i] = 0;
+ }
+
+ this.length += s;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ishln = function ishln (bits) {
+ // TODO(indutny): implement me
+ assert(this.negative === 0);
+ return this.iushln(bits);
+ };
+
+ // Shift-right in-place
+ // NOTE: `hint` is a lowest bit before trailing zeroes
+ // NOTE: if `extended` is present - it will be filled with destroyed bits
+ BN.prototype.iushrn = function iushrn (bits, hint, extended) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var h;
+ if (hint) {
+ h = (hint - (hint % 26)) / 26;
+ } else {
+ h = 0;
+ }
+
+ var r = bits % 26;
+ var s = Math.min((bits - r) / 26, this.length);
+ var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
+ var maskedWords = extended;
+
+ h -= s;
+ h = Math.max(0, h);
+
+ // Extended mode, copy masked part
+ if (maskedWords) {
+ for (var i = 0; i < s; i++) {
+ maskedWords.words[i] = this.words[i];
+ }
+ maskedWords.length = s;
+ }
+
+ if (s === 0) {
+ // No-op, we should not move anything at all
+ } else if (this.length > s) {
+ this.length -= s;
+ for (i = 0; i < this.length; i++) {
+ this.words[i] = this.words[i + s];
+ }
+ } else {
+ this.words[0] = 0;
+ this.length = 1;
+ }
+
+ var carry = 0;
+ for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {
+ var word = this.words[i] | 0;
+ this.words[i] = (carry << (26 - r)) | (word >>> r);
+ carry = word & mask;
+ }
+
+ // Push carried bits as a mask
+ if (maskedWords && carry !== 0) {
+ maskedWords.words[maskedWords.length++] = carry;
+ }
+
+ if (this.length === 0) {
+ this.words[0] = 0;
+ this.length = 1;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.ishrn = function ishrn (bits, hint, extended) {
+ // TODO(indutny): implement me
+ assert(this.negative === 0);
+ return this.iushrn(bits, hint, extended);
+ };
+
+ // Shift-left
+ BN.prototype.shln = function shln (bits) {
+ return this.clone().ishln(bits);
+ };
+
+ BN.prototype.ushln = function ushln (bits) {
+ return this.clone().iushln(bits);
+ };
+
+ // Shift-right
+ BN.prototype.shrn = function shrn (bits) {
+ return this.clone().ishrn(bits);
+ };
+
+ BN.prototype.ushrn = function ushrn (bits) {
+ return this.clone().iushrn(bits);
+ };
+
+ // Test if n bit is set
+ BN.prototype.testn = function testn (bit) {
+ assert(typeof bit === 'number' && bit >= 0);
+ var r = bit % 26;
+ var s = (bit - r) / 26;
+ var q = 1 << r;
+
+ // Fast case: bit is much higher than all existing words
+ if (this.length <= s) return false;
+
+ // Check bit and return
+ var w = this.words[s];
+
+ return !!(w & q);
+ };
+
+ // Return only lowers bits of number (in-place)
+ BN.prototype.imaskn = function imaskn (bits) {
+ assert(typeof bits === 'number' && bits >= 0);
+ var r = bits % 26;
+ var s = (bits - r) / 26;
+
+ assert(this.negative === 0, 'imaskn works only with positive numbers');
+
+ if (this.length <= s) {
+ return this;
+ }
+
+ if (r !== 0) {
+ s++;
+ }
+ this.length = Math.min(s, this.length);
+
+ if (r !== 0) {
+ var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);
+ this.words[this.length - 1] &= mask;
+ }
+
+ return this.strip();
+ };
+
+ // Return only lowers bits of number
+ BN.prototype.maskn = function maskn (bits) {
+ return this.clone().imaskn(bits);
+ };
+
+ // Add plain number `num` to `this`
+ BN.prototype.iaddn = function iaddn (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+ if (num < 0) return this.isubn(-num);
+
+ // Possible sign change
+ if (this.negative !== 0) {
+ if (this.length === 1 && (this.words[0] | 0) < num) {
+ this.words[0] = num - (this.words[0] | 0);
+ this.negative = 0;
+ return this;
+ }
+
+ this.negative = 0;
+ this.isubn(num);
+ this.negative = 1;
+ return this;
+ }
+
+ // Add without checks
+ return this._iaddn(num);
+ };
+
+ BN.prototype._iaddn = function _iaddn (num) {
+ this.words[0] += num;
+
+ // Carry
+ for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {
+ this.words[i] -= 0x4000000;
+ if (i === this.length - 1) {
+ this.words[i + 1] = 1;
+ } else {
+ this.words[i + 1]++;
+ }
+ }
+ this.length = Math.max(this.length, i + 1);
+
+ return this;
+ };
+
+ // Subtract plain number `num` from `this`
+ BN.prototype.isubn = function isubn (num) {
+ assert(typeof num === 'number');
+ assert(num < 0x4000000);
+ if (num < 0) return this.iaddn(-num);
+
+ if (this.negative !== 0) {
+ this.negative = 0;
+ this.iaddn(num);
+ this.negative = 1;
+ return this;
+ }
+
+ this.words[0] -= num;
+
+ if (this.length === 1 && this.words[0] < 0) {
+ this.words[0] = -this.words[0];
+ this.negative = 1;
+ } else {
+ // Carry
+ for (var i = 0; i < this.length && this.words[i] < 0; i++) {
+ this.words[i] += 0x4000000;
+ this.words[i + 1] -= 1;
+ }
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.addn = function addn (num) {
+ return this.clone().iaddn(num);
+ };
+
+ BN.prototype.subn = function subn (num) {
+ return this.clone().isubn(num);
+ };
+
+ BN.prototype.iabs = function iabs () {
+ this.negative = 0;
+
+ return this;
+ };
+
+ BN.prototype.abs = function abs () {
+ return this.clone().iabs();
+ };
+
+ BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {
+ var len = num.length + shift;
+ var i;
+
+ this._expand(len);
+
+ var w;
+ var carry = 0;
+ for (i = 0; i < num.length; i++) {
+ w = (this.words[i + shift] | 0) + carry;
+ var right = (num.words[i] | 0) * mul;
+ w -= right & 0x3ffffff;
+ carry = (w >> 26) - ((right / 0x4000000) | 0);
+ this.words[i + shift] = w & 0x3ffffff;
+ }
+ for (; i < this.length - shift; i++) {
+ w = (this.words[i + shift] | 0) + carry;
+ carry = w >> 26;
+ this.words[i + shift] = w & 0x3ffffff;
+ }
+
+ if (carry === 0) return this.strip();
+
+ // Subtraction overflow
+ assert(carry === -1);
+ carry = 0;
+ for (i = 0; i < this.length; i++) {
+ w = -(this.words[i] | 0) + carry;
+ carry = w >> 26;
+ this.words[i] = w & 0x3ffffff;
+ }
+ this.negative = 1;
+
+ return this.strip();
+ };
+
+ BN.prototype._wordDiv = function _wordDiv (num, mode) {
+ var shift = this.length - num.length;
+
+ var a = this.clone();
+ var b = num;
+
+ // Normalize
+ var bhi = b.words[b.length - 1] | 0;
+ var bhiBits = this._countBits(bhi);
+ shift = 26 - bhiBits;
+ if (shift !== 0) {
+ b = b.ushln(shift);
+ a.iushln(shift);
+ bhi = b.words[b.length - 1] | 0;
+ }
+
+ // Initialize quotient
+ var m = a.length - b.length;
+ var q;
+
+ if (mode !== 'mod') {
+ q = new BN(null);
+ q.length = m + 1;
+ q.words = new Array(q.length);
+ for (var i = 0; i < q.length; i++) {
+ q.words[i] = 0;
+ }
+ }
+
+ var diff = a.clone()._ishlnsubmul(b, 1, m);
+ if (diff.negative === 0) {
+ a = diff;
+ if (q) {
+ q.words[m] = 1;
+ }
+ }
+
+ for (var j = m - 1; j >= 0; j--) {
+ var qj = (a.words[b.length + j] | 0) * 0x4000000 +
+ (a.words[b.length + j - 1] | 0);
+
+ // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max
+ // (0x7ffffff)
+ qj = Math.min((qj / bhi) | 0, 0x3ffffff);
+
+ a._ishlnsubmul(b, qj, j);
+ while (a.negative !== 0) {
+ qj--;
+ a.negative = 0;
+ a._ishlnsubmul(b, 1, j);
+ if (!a.isZero()) {
+ a.negative ^= 1;
+ }
+ }
+ if (q) {
+ q.words[j] = qj;
+ }
+ }
+ if (q) {
+ q.strip();
+ }
+ a.strip();
+
+ // Denormalize
+ if (mode !== 'div' && shift !== 0) {
+ a.iushrn(shift);
+ }
+
+ return {
+ div: q || null,
+ mod: a
+ };
+ };
+
+ // NOTE: 1) `mode` can be set to `mod` to request mod only,
+ // to `div` to request div only, or be absent to
+ // request both div & mod
+ // 2) `positive` is true if unsigned mod is requested
+ BN.prototype.divmod = function divmod (num, mode, positive) {
+ assert(!num.isZero());
+
+ if (this.isZero()) {
+ return {
+ div: new BN(0),
+ mod: new BN(0)
+ };
+ }
+
+ var div, mod, res;
+ if (this.negative !== 0 && num.negative === 0) {
+ res = this.neg().divmod(num, mode);
+
+ if (mode !== 'mod') {
+ div = res.div.neg();
+ }
+
+ if (mode !== 'div') {
+ mod = res.mod.neg();
+ if (positive && mod.negative !== 0) {
+ mod.iadd(num);
+ }
+ }
+
+ return {
+ div: div,
+ mod: mod
+ };
+ }
+
+ if (this.negative === 0 && num.negative !== 0) {
+ res = this.divmod(num.neg(), mode);
+
+ if (mode !== 'mod') {
+ div = res.div.neg();
+ }
+
+ return {
+ div: div,
+ mod: res.mod
+ };
+ }
+
+ if ((this.negative & num.negative) !== 0) {
+ res = this.neg().divmod(num.neg(), mode);
+
+ if (mode !== 'div') {
+ mod = res.mod.neg();
+ if (positive && mod.negative !== 0) {
+ mod.isub(num);
+ }
+ }
+
+ return {
+ div: res.div,
+ mod: mod
+ };
+ }
+
+ // Both numbers are positive at this point
+
+ // Strip both numbers to approximate shift value
+ if (num.length > this.length || this.cmp(num) < 0) {
+ return {
+ div: new BN(0),
+ mod: this
+ };
+ }
+
+ // Very short reduction
+ if (num.length === 1) {
+ if (mode === 'div') {
+ return {
+ div: this.divn(num.words[0]),
+ mod: null
+ };
+ }
+
+ if (mode === 'mod') {
+ return {
+ div: null,
+ mod: new BN(this.modn(num.words[0]))
+ };
+ }
+
+ return {
+ div: this.divn(num.words[0]),
+ mod: new BN(this.modn(num.words[0]))
+ };
+ }
+
+ return this._wordDiv(num, mode);
+ };
+
+ // Find `this` / `num`
+ BN.prototype.div = function div (num) {
+ return this.divmod(num, 'div', false).div;
+ };
+
+ // Find `this` % `num`
+ BN.prototype.mod = function mod (num) {
+ return this.divmod(num, 'mod', false).mod;
+ };
+
+ BN.prototype.umod = function umod (num) {
+ return this.divmod(num, 'mod', true).mod;
+ };
+
+ // Find Round(`this` / `num`)
+ BN.prototype.divRound = function divRound (num) {
+ var dm = this.divmod(num);
+
+ // Fast case - exact division
+ if (dm.mod.isZero()) return dm.div;
+
+ var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;
+
+ var half = num.ushrn(1);
+ var r2 = num.andln(1);
+ var cmp = mod.cmp(half);
+
+ // Round down
+ if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;
+
+ // Round up
+ return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);
+ };
+
+ BN.prototype.modn = function modn (num) {
+ assert(num <= 0x3ffffff);
+ var p = (1 << 26) % num;
+
+ var acc = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ acc = (p * acc + (this.words[i] | 0)) % num;
+ }
+
+ return acc;
+ };
+
+ // In-place division by number
+ BN.prototype.idivn = function idivn (num) {
+ assert(num <= 0x3ffffff);
+
+ var carry = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ var w = (this.words[i] | 0) + carry * 0x4000000;
+ this.words[i] = (w / num) | 0;
+ carry = w % num;
+ }
+
+ return this.strip();
+ };
+
+ BN.prototype.divn = function divn (num) {
+ return this.clone().idivn(num);
+ };
+
+ BN.prototype.egcd = function egcd (p) {
+ assert(p.negative === 0);
+ assert(!p.isZero());
+
+ var x = this;
+ var y = p.clone();
+
+ if (x.negative !== 0) {
+ x = x.umod(p);
+ } else {
+ x = x.clone();
+ }
+
+ // A * x + B * y = x
+ var A = new BN(1);
+ var B = new BN(0);
+
+ // C * x + D * y = y
+ var C = new BN(0);
+ var D = new BN(1);
+
+ var g = 0;
+
+ while (x.isEven() && y.isEven()) {
+ x.iushrn(1);
+ y.iushrn(1);
+ ++g;
+ }
+
+ var yp = y.clone();
+ var xp = x.clone();
+
+ while (!x.isZero()) {
+ for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
+ if (i > 0) {
+ x.iushrn(i);
+ while (i-- > 0) {
+ if (A.isOdd() || B.isOdd()) {
+ A.iadd(yp);
+ B.isub(xp);
+ }
+
+ A.iushrn(1);
+ B.iushrn(1);
+ }
+ }
+
+ for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
+ if (j > 0) {
+ y.iushrn(j);
+ while (j-- > 0) {
+ if (C.isOdd() || D.isOdd()) {
+ C.iadd(yp);
+ D.isub(xp);
+ }
+
+ C.iushrn(1);
+ D.iushrn(1);
+ }
+ }
+
+ if (x.cmp(y) >= 0) {
+ x.isub(y);
+ A.isub(C);
+ B.isub(D);
+ } else {
+ y.isub(x);
+ C.isub(A);
+ D.isub(B);
+ }
+ }
+
+ return {
+ a: C,
+ b: D,
+ gcd: y.iushln(g)
+ };
+ };
+
+ // This is reduced incarnation of the binary EEA
+ // above, designated to invert members of the
+ // _prime_ fields F(p) at a maximal speed
+ BN.prototype._invmp = function _invmp (p) {
+ assert(p.negative === 0);
+ assert(!p.isZero());
+
+ var a = this;
+ var b = p.clone();
+
+ if (a.negative !== 0) {
+ a = a.umod(p);
+ } else {
+ a = a.clone();
+ }
+
+ var x1 = new BN(1);
+ var x2 = new BN(0);
+
+ var delta = b.clone();
+
+ while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {
+ for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);
+ if (i > 0) {
+ a.iushrn(i);
+ while (i-- > 0) {
+ if (x1.isOdd()) {
+ x1.iadd(delta);
+ }
+
+ x1.iushrn(1);
+ }
+ }
+
+ for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);
+ if (j > 0) {
+ b.iushrn(j);
+ while (j-- > 0) {
+ if (x2.isOdd()) {
+ x2.iadd(delta);
+ }
+
+ x2.iushrn(1);
+ }
+ }
+
+ if (a.cmp(b) >= 0) {
+ a.isub(b);
+ x1.isub(x2);
+ } else {
+ b.isub(a);
+ x2.isub(x1);
+ }
+ }
+
+ var res;
+ if (a.cmpn(1) === 0) {
+ res = x1;
+ } else {
+ res = x2;
+ }
+
+ if (res.cmpn(0) < 0) {
+ res.iadd(p);
+ }
+
+ return res;
+ };
+
+ BN.prototype.gcd = function gcd (num) {
+ if (this.isZero()) return num.abs();
+ if (num.isZero()) return this.abs();
+
+ var a = this.clone();
+ var b = num.clone();
+ a.negative = 0;
+ b.negative = 0;
+
+ // Remove common factor of two
+ for (var shift = 0; a.isEven() && b.isEven(); shift++) {
+ a.iushrn(1);
+ b.iushrn(1);
+ }
+
+ do {
+ while (a.isEven()) {
+ a.iushrn(1);
+ }
+ while (b.isEven()) {
+ b.iushrn(1);
+ }
+
+ var r = a.cmp(b);
+ if (r < 0) {
+ // Swap `a` and `b` to make `a` always bigger than `b`
+ var t = a;
+ a = b;
+ b = t;
+ } else if (r === 0 || b.cmpn(1) === 0) {
+ break;
+ }
+
+ a.isub(b);
+ } while (true);
+
+ return b.iushln(shift);
+ };
+
+ // Invert number in the field F(num)
+ BN.prototype.invm = function invm (num) {
+ return this.egcd(num).a.umod(num);
+ };
+
+ BN.prototype.isEven = function isEven () {
+ return (this.words[0] & 1) === 0;
+ };
+
+ BN.prototype.isOdd = function isOdd () {
+ return (this.words[0] & 1) === 1;
+ };
+
+ // And first word and num
+ BN.prototype.andln = function andln (num) {
+ return this.words[0] & num;
+ };
+
+ // Increment at the bit position in-line
+ BN.prototype.bincn = function bincn (bit) {
+ assert(typeof bit === 'number');
+ var r = bit % 26;
+ var s = (bit - r) / 26;
+ var q = 1 << r;
+
+ // Fast case: bit is much higher than all existing words
+ if (this.length <= s) {
+ this._expand(s + 1);
+ this.words[s] |= q;
+ return this;
+ }
+
+ // Add bit and propagate, if needed
+ var carry = q;
+ for (var i = s; carry !== 0 && i < this.length; i++) {
+ var w = this.words[i] | 0;
+ w += carry;
+ carry = w >>> 26;
+ w &= 0x3ffffff;
+ this.words[i] = w;
+ }
+ if (carry !== 0) {
+ this.words[i] = carry;
+ this.length++;
+ }
+ return this;
+ };
+
+ BN.prototype.isZero = function isZero () {
+ return this.length === 1 && this.words[0] === 0;
+ };
+
+ BN.prototype.cmpn = function cmpn (num) {
+ var negative = num < 0;
+
+ if (this.negative !== 0 && !negative) return -1;
+ if (this.negative === 0 && negative) return 1;
+
+ this.strip();
+
+ var res;
+ if (this.length > 1) {
+ res = 1;
+ } else {
+ if (negative) {
+ num = -num;
+ }
+
+ assert(num <= 0x3ffffff, 'Number is too big');
+
+ var w = this.words[0] | 0;
+ res = w === num ? 0 : w < num ? -1 : 1;
+ }
+ if (this.negative !== 0) return -res | 0;
+ return res;
+ };
+
+ // Compare two numbers and return:
+ // 1 - if `this` > `num`
+ // 0 - if `this` == `num`
+ // -1 - if `this` < `num`
+ BN.prototype.cmp = function cmp (num) {
+ if (this.negative !== 0 && num.negative === 0) return -1;
+ if (this.negative === 0 && num.negative !== 0) return 1;
+
+ var res = this.ucmp(num);
+ if (this.negative !== 0) return -res | 0;
+ return res;
+ };
+
+ // Unsigned comparison
+ BN.prototype.ucmp = function ucmp (num) {
+ // At this point both numbers have the same sign
+ if (this.length > num.length) return 1;
+ if (this.length < num.length) return -1;
+
+ var res = 0;
+ for (var i = this.length - 1; i >= 0; i--) {
+ var a = this.words[i] | 0;
+ var b = num.words[i] | 0;
+
+ if (a === b) continue;
+ if (a < b) {
+ res = -1;
+ } else if (a > b) {
+ res = 1;
+ }
+ break;
+ }
+ return res;
+ };
+
+ BN.prototype.gtn = function gtn (num) {
+ return this.cmpn(num) === 1;
+ };
+
+ BN.prototype.gt = function gt (num) {
+ return this.cmp(num) === 1;
+ };
+
+ BN.prototype.gten = function gten (num) {
+ return this.cmpn(num) >= 0;
+ };
+
+ BN.prototype.gte = function gte (num) {
+ return this.cmp(num) >= 0;
+ };
+
+ BN.prototype.ltn = function ltn (num) {
+ return this.cmpn(num) === -1;
+ };
+
+ BN.prototype.lt = function lt (num) {
+ return this.cmp(num) === -1;
+ };
+
+ BN.prototype.lten = function lten (num) {
+ return this.cmpn(num) <= 0;
+ };
+
+ BN.prototype.lte = function lte (num) {
+ return this.cmp(num) <= 0;
+ };
+
+ BN.prototype.eqn = function eqn (num) {
+ return this.cmpn(num) === 0;
+ };
+
+ BN.prototype.eq = function eq (num) {
+ return this.cmp(num) === 0;
+ };
+
+ //
+ // A reduce context, could be using montgomery or something better, depending
+ // on the `m` itself.
+ //
+ BN.red = function red (num) {
+ return new Red(num);
+ };
+
+ BN.prototype.toRed = function toRed (ctx) {
+ assert(!this.red, 'Already a number in reduction context');
+ assert(this.negative === 0, 'red works only with positives');
+ return ctx.convertTo(this)._forceRed(ctx);
+ };
+
+ BN.prototype.fromRed = function fromRed () {
+ assert(this.red, 'fromRed works only with numbers in reduction context');
+ return this.red.convertFrom(this);
+ };
+
+ BN.prototype._forceRed = function _forceRed (ctx) {
+ this.red = ctx;
+ return this;
+ };
+
+ BN.prototype.forceRed = function forceRed (ctx) {
+ assert(!this.red, 'Already a number in reduction context');
+ return this._forceRed(ctx);
+ };
+
+ BN.prototype.redAdd = function redAdd (num) {
+ assert(this.red, 'redAdd works only with red numbers');
+ return this.red.add(this, num);
+ };
+
+ BN.prototype.redIAdd = function redIAdd (num) {
+ assert(this.red, 'redIAdd works only with red numbers');
+ return this.red.iadd(this, num);
+ };
+
+ BN.prototype.redSub = function redSub (num) {
+ assert(this.red, 'redSub works only with red numbers');
+ return this.red.sub(this, num);
+ };
+
+ BN.prototype.redISub = function redISub (num) {
+ assert(this.red, 'redISub works only with red numbers');
+ return this.red.isub(this, num);
+ };
+
+ BN.prototype.redShl = function redShl (num) {
+ assert(this.red, 'redShl works only with red numbers');
+ return this.red.shl(this, num);
+ };
+
+ BN.prototype.redMul = function redMul (num) {
+ assert(this.red, 'redMul works only with red numbers');
+ this.red._verify2(this, num);
+ return this.red.mul(this, num);
+ };
+
+ BN.prototype.redIMul = function redIMul (num) {
+ assert(this.red, 'redMul works only with red numbers');
+ this.red._verify2(this, num);
+ return this.red.imul(this, num);
+ };
+
+ BN.prototype.redSqr = function redSqr () {
+ assert(this.red, 'redSqr works only with red numbers');
+ this.red._verify1(this);
+ return this.red.sqr(this);
+ };
+
+ BN.prototype.redISqr = function redISqr () {
+ assert(this.red, 'redISqr works only with red numbers');
+ this.red._verify1(this);
+ return this.red.isqr(this);
+ };
+
+ // Square root over p
+ BN.prototype.redSqrt = function redSqrt () {
+ assert(this.red, 'redSqrt works only with red numbers');
+ this.red._verify1(this);
+ return this.red.sqrt(this);
+ };
+
+ BN.prototype.redInvm = function redInvm () {
+ assert(this.red, 'redInvm works only with red numbers');
+ this.red._verify1(this);
+ return this.red.invm(this);
+ };
+
+ // Return negative clone of `this` % `red modulo`
+ BN.prototype.redNeg = function redNeg () {
+ assert(this.red, 'redNeg works only with red numbers');
+ this.red._verify1(this);
+ return this.red.neg(this);
+ };
+
+ BN.prototype.redPow = function redPow (num) {
+ assert(this.red && !num.red, 'redPow(normalNum)');
+ this.red._verify1(this);
+ return this.red.pow(this, num);
+ };
+
+ // Prime numbers with efficient reduction
+ var primes = {
+ k256: null,
+ p224: null,
+ p192: null,
+ p25519: null
+ };
+
+ // Pseudo-Mersenne prime
+ function MPrime (name, p) {
+ // P = 2 ^ N - K
+ this.name = name;
+ this.p = new BN(p, 16);
+ this.n = this.p.bitLength();
+ this.k = new BN(1).iushln(this.n).isub(this.p);
+
+ this.tmp = this._tmp();
+ }
+
+ MPrime.prototype._tmp = function _tmp () {
+ var tmp = new BN(null);
+ tmp.words = new Array(Math.ceil(this.n / 13));
+ return tmp;
+ };
+
+ MPrime.prototype.ireduce = function ireduce (num) {
+ // Assumes that `num` is less than `P^2`
+ // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)
+ var r = num;
+ var rlen;
+
+ do {
+ this.split(r, this.tmp);
+ r = this.imulK(r);
+ r = r.iadd(this.tmp);
+ rlen = r.bitLength();
+ } while (rlen > this.n);
+
+ var cmp = rlen < this.n ? -1 : r.ucmp(this.p);
+ if (cmp === 0) {
+ r.words[0] = 0;
+ r.length = 1;
+ } else if (cmp > 0) {
+ r.isub(this.p);
+ } else {
+ if (r.strip !== undefined) {
+ // r is BN v4 instance
+ r.strip();
+ } else {
+ // r is BN v5 instance
+ r._strip();
+ }
+ }
+
+ return r;
+ };
+
+ MPrime.prototype.split = function split (input, out) {
+ input.iushrn(this.n, 0, out);
+ };
+
+ MPrime.prototype.imulK = function imulK (num) {
+ return num.imul(this.k);
+ };
+
+ function K256 () {
+ MPrime.call(
+ this,
+ 'k256',
+ 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');
+ }
+ inherits(K256, MPrime);
+
+ K256.prototype.split = function split (input, output) {
+ // 256 = 9 * 26 + 22
+ var mask = 0x3fffff;
+
+ var outLen = Math.min(input.length, 9);
+ for (var i = 0; i < outLen; i++) {
+ output.words[i] = input.words[i];
+ }
+ output.length = outLen;
+
+ if (input.length <= 9) {
+ input.words[0] = 0;
+ input.length = 1;
+ return;
+ }
+
+ // Shift by 9 limbs
+ var prev = input.words[9];
+ output.words[output.length++] = prev & mask;
+
+ for (i = 10; i < input.length; i++) {
+ var next = input.words[i] | 0;
+ input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);
+ prev = next;
+ }
+ prev >>>= 22;
+ input.words[i - 10] = prev;
+ if (prev === 0 && input.length > 10) {
+ input.length -= 10;
+ } else {
+ input.length -= 9;
+ }
+ };
+
+ K256.prototype.imulK = function imulK (num) {
+ // K = 0x1000003d1 = [ 0x40, 0x3d1 ]
+ num.words[num.length] = 0;
+ num.words[num.length + 1] = 0;
+ num.length += 2;
+
+ // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390
+ var lo = 0;
+ for (var i = 0; i < num.length; i++) {
+ var w = num.words[i] | 0;
+ lo += w * 0x3d1;
+ num.words[i] = lo & 0x3ffffff;
+ lo = w * 0x40 + ((lo / 0x4000000) | 0);
+ }
+
+ // Fast length reduction
+ if (num.words[num.length - 1] === 0) {
+ num.length--;
+ if (num.words[num.length - 1] === 0) {
+ num.length--;
+ }
+ }
+ return num;
+ };
+
+ function P224 () {
+ MPrime.call(
+ this,
+ 'p224',
+ 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');
+ }
+ inherits(P224, MPrime);
+
+ function P192 () {
+ MPrime.call(
+ this,
+ 'p192',
+ 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');
+ }
+ inherits(P192, MPrime);
+
+ function P25519 () {
+ // 2 ^ 255 - 19
+ MPrime.call(
+ this,
+ '25519',
+ '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');
+ }
+ inherits(P25519, MPrime);
+
+ P25519.prototype.imulK = function imulK (num) {
+ // K = 0x13
+ var carry = 0;
+ for (var i = 0; i < num.length; i++) {
+ var hi = (num.words[i] | 0) * 0x13 + carry;
+ var lo = hi & 0x3ffffff;
+ hi >>>= 26;
+
+ num.words[i] = lo;
+ carry = hi;
+ }
+ if (carry !== 0) {
+ num.words[num.length++] = carry;
+ }
+ return num;
+ };
+
+ // Exported mostly for testing purposes, use plain name instead
+ BN._prime = function prime (name) {
+ // Cached version of prime
+ if (primes[name]) return primes[name];
+
+ var prime;
+ if (name === 'k256') {
+ prime = new K256();
+ } else if (name === 'p224') {
+ prime = new P224();
+ } else if (name === 'p192') {
+ prime = new P192();
+ } else if (name === 'p25519') {
+ prime = new P25519();
+ } else {
+ throw new Error('Unknown prime ' + name);
+ }
+ primes[name] = prime;
+
+ return prime;
+ };
+
+ //
+ // Base reduction engine
+ //
+ function Red (m) {
+ if (typeof m === 'string') {
+ var prime = BN._prime(m);
+ this.m = prime.p;
+ this.prime = prime;
+ } else {
+ assert(m.gtn(1), 'modulus must be greater than 1');
+ this.m = m;
+ this.prime = null;
+ }
+ }
+
+ Red.prototype._verify1 = function _verify1 (a) {
+ assert(a.negative === 0, 'red works only with positives');
+ assert(a.red, 'red works only with red numbers');
+ };
+
+ Red.prototype._verify2 = function _verify2 (a, b) {
+ assert((a.negative | b.negative) === 0, 'red works only with positives');
+ assert(a.red && a.red === b.red,
+ 'red works only with red numbers');
+ };
+
+ Red.prototype.imod = function imod (a) {
+ if (this.prime) return this.prime.ireduce(a)._forceRed(this);
+ return a.umod(this.m)._forceRed(this);
+ };
+
+ Red.prototype.neg = function neg (a) {
+ if (a.isZero()) {
+ return a.clone();
+ }
+
+ return this.m.sub(a)._forceRed(this);
+ };
+
+ Red.prototype.add = function add (a, b) {
+ this._verify2(a, b);
+
+ var res = a.add(b);
+ if (res.cmp(this.m) >= 0) {
+ res.isub(this.m);
+ }
+ return res._forceRed(this);
+ };
+
+ Red.prototype.iadd = function iadd (a, b) {
+ this._verify2(a, b);
+
+ var res = a.iadd(b);
+ if (res.cmp(this.m) >= 0) {
+ res.isub(this.m);
+ }
+ return res;
+ };
+
+ Red.prototype.sub = function sub (a, b) {
+ this._verify2(a, b);
+
+ var res = a.sub(b);
+ if (res.cmpn(0) < 0) {
+ res.iadd(this.m);
+ }
+ return res._forceRed(this);
+ };
+
+ Red.prototype.isub = function isub (a, b) {
+ this._verify2(a, b);
+
+ var res = a.isub(b);
+ if (res.cmpn(0) < 0) {
+ res.iadd(this.m);
+ }
+ return res;
+ };
+
+ Red.prototype.shl = function shl (a, num) {
+ this._verify1(a);
+ return this.imod(a.ushln(num));
+ };
+
+ Red.prototype.imul = function imul (a, b) {
+ this._verify2(a, b);
+ return this.imod(a.imul(b));
+ };
+
+ Red.prototype.mul = function mul (a, b) {
+ this._verify2(a, b);
+ return this.imod(a.mul(b));
+ };
+
+ Red.prototype.isqr = function isqr (a) {
+ return this.imul(a, a.clone());
+ };
+
+ Red.prototype.sqr = function sqr (a) {
+ return this.mul(a, a);
+ };
+
+ Red.prototype.sqrt = function sqrt (a) {
+ if (a.isZero()) return a.clone();
+
+ var mod3 = this.m.andln(3);
+ assert(mod3 % 2 === 1);
+
+ // Fast case
+ if (mod3 === 3) {
+ var pow = this.m.add(new BN(1)).iushrn(2);
+ return this.pow(a, pow);
+ }
+
+ // Tonelli-Shanks algorithm (Totally unoptimized and slow)
+ //
+ // Find Q and S, that Q * 2 ^ S = (P - 1)
+ var q = this.m.subn(1);
+ var s = 0;
+ while (!q.isZero() && q.andln(1) === 0) {
+ s++;
+ q.iushrn(1);
+ }
+ assert(!q.isZero());
+
+ var one = new BN(1).toRed(this);
+ var nOne = one.redNeg();
+
+ // Find quadratic non-residue
+ // NOTE: Max is such because of generalized Riemann hypothesis.
+ var lpow = this.m.subn(1).iushrn(1);
+ var z = this.m.bitLength();
+ z = new BN(2 * z * z).toRed(this);
+
+ while (this.pow(z, lpow).cmp(nOne) !== 0) {
+ z.redIAdd(nOne);
+ }
+
+ var c = this.pow(z, q);
+ var r = this.pow(a, q.addn(1).iushrn(1));
+ var t = this.pow(a, q);
+ var m = s;
+ while (t.cmp(one) !== 0) {
+ var tmp = t;
+ for (var i = 0; tmp.cmp(one) !== 0; i++) {
+ tmp = tmp.redSqr();
+ }
+ assert(i < m);
+ var b = this.pow(c, new BN(1).iushln(m - i - 1));
+
+ r = r.redMul(b);
+ c = b.redSqr();
+ t = t.redMul(c);
+ m = i;
+ }
+
+ return r;
+ };
+
+ Red.prototype.invm = function invm (a) {
+ var inv = a._invmp(this.m);
+ if (inv.negative !== 0) {
+ inv.negative = 0;
+ return this.imod(inv).redNeg();
+ } else {
+ return this.imod(inv);
+ }
+ };
+
+ Red.prototype.pow = function pow (a, num) {
+ if (num.isZero()) return new BN(1).toRed(this);
+ if (num.cmpn(1) === 0) return a.clone();
+
+ var windowSize = 4;
+ var wnd = new Array(1 << windowSize);
+ wnd[0] = new BN(1).toRed(this);
+ wnd[1] = a;
+ for (var i = 2; i < wnd.length; i++) {
+ wnd[i] = this.mul(wnd[i - 1], a);
+ }
+
+ var res = wnd[0];
+ var current = 0;
+ var currentLen = 0;
+ var start = num.bitLength() % 26;
+ if (start === 0) {
+ start = 26;
+ }
+
+ for (i = num.length - 1; i >= 0; i--) {
+ var word = num.words[i];
+ for (var j = start - 1; j >= 0; j--) {
+ var bit = (word >> j) & 1;
+ if (res !== wnd[0]) {
+ res = this.sqr(res);
+ }
+
+ if (bit === 0 && current === 0) {
+ currentLen = 0;
+ continue;
+ }
+
+ current <<= 1;
+ current |= bit;
+ currentLen++;
+ if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;
+
+ res = this.mul(res, wnd[current]);
+ currentLen = 0;
+ current = 0;
+ }
+ start = 26;
+ }
+
+ return res;
+ };
+
+ Red.prototype.convertTo = function convertTo (num) {
+ var r = num.umod(this.m);
+
+ return r === num ? r.clone() : r;
+ };
+
+ Red.prototype.convertFrom = function convertFrom (num) {
+ var res = num.clone();
+ res.red = null;
+ return res;
+ };
+
+ //
+ // Montgomery method engine
+ //
+
+ BN.mont = function mont (num) {
+ return new Mont(num);
+ };
+
+ function Mont (m) {
+ Red.call(this, m);
+
+ this.shift = this.m.bitLength();
+ if (this.shift % 26 !== 0) {
+ this.shift += 26 - (this.shift % 26);
+ }
+
+ this.r = new BN(1).iushln(this.shift);
+ this.r2 = this.imod(this.r.sqr());
+ this.rinv = this.r._invmp(this.m);
+
+ this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);
+ this.minv = this.minv.umod(this.r);
+ this.minv = this.r.sub(this.minv);
+ }
+ inherits(Mont, Red);
+
+ Mont.prototype.convertTo = function convertTo (num) {
+ return this.imod(num.ushln(this.shift));
+ };
+
+ Mont.prototype.convertFrom = function convertFrom (num) {
+ var r = this.imod(num.mul(this.rinv));
+ r.red = null;
+ return r;
+ };
+
+ Mont.prototype.imul = function imul (a, b) {
+ if (a.isZero() || b.isZero()) {
+ a.words[0] = 0;
+ a.length = 1;
+ return a;
+ }
+
+ var t = a.imul(b);
+ var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
+ var u = t.isub(c).iushrn(this.shift);
+ var res = u;
+
+ if (u.cmp(this.m) >= 0) {
+ res = u.isub(this.m);
+ } else if (u.cmpn(0) < 0) {
+ res = u.iadd(this.m);
+ }
+
+ return res._forceRed(this);
+ };
+
+ Mont.prototype.mul = function mul (a, b) {
+ if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);
+
+ var t = a.mul(b);
+ var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);
+ var u = t.isub(c).iushrn(this.shift);
+ var res = u;
+ if (u.cmp(this.m) >= 0) {
+ res = u.isub(this.m);
+ } else if (u.cmpn(0) < 0) {
+ res = u.iadd(this.m);
+ }
+
+ return res._forceRed(this);
+ };
+
+ Mont.prototype.invm = function invm (a) {
+ // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R
+ var res = this.imod(a._invmp(this.m).mul(this.r2));
+ return res._forceRed(this);
+ };
+})(typeof module === 'undefined' || module, this);
diff --git a/node_modules/elliptic/node_modules/bn.js/package.json b/node_modules/elliptic/node_modules/bn.js/package.json
new file mode 100644
index 00000000..337c962f
--- /dev/null
+++ b/node_modules/elliptic/node_modules/bn.js/package.json
@@ -0,0 +1,64 @@
+{
+ "_from": "bn.js@^4.11.9",
+ "_id": "bn.js@4.12.0",
+ "_inBundle": false,
+ "_integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==",
+ "_location": "/elliptic/bn.js",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "bn.js@^4.11.9",
+ "name": "bn.js",
+ "escapedName": "bn.js",
+ "rawSpec": "^4.11.9",
+ "saveSpec": null,
+ "fetchSpec": "^4.11.9"
+ },
+ "_requiredBy": [
+ "/elliptic"
+ ],
+ "_resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz",
+ "_shasum": "775b3f278efbb9718eec7361f483fb36fbbfea88",
+ "_spec": "bn.js@^4.11.9",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/elliptic",
+ "author": {
+ "name": "Fedor Indutny",
+ "email": "fedor@indutny.com"
+ },
+ "browser": {
+ "buffer": false
+ },
+ "bugs": {
+ "url": "https://github.com/indutny/bn.js/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Big number implementation in pure javascript",
+ "devDependencies": {
+ "istanbul": "^0.3.5",
+ "mocha": "^2.1.0",
+ "semistandard": "^7.0.4"
+ },
+ "homepage": "https://github.com/indutny/bn.js",
+ "keywords": [
+ "BN",
+ "BigNum",
+ "Big number",
+ "Modulo",
+ "Montgomery"
+ ],
+ "license": "MIT",
+ "main": "lib/bn.js",
+ "name": "bn.js",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/indutny/bn.js.git"
+ },
+ "scripts": {
+ "lint": "semistandard",
+ "test": "npm run lint && npm run unit",
+ "unit": "mocha --reporter=spec test/*-test.js"
+ },
+ "version": "4.12.0"
+}
diff --git a/node_modules/elliptic/package.json b/node_modules/elliptic/package.json
new file mode 100644
index 00000000..a747074b
--- /dev/null
+++ b/node_modules/elliptic/package.json
@@ -0,0 +1,85 @@
+{
+ "_from": "elliptic@^6.5.3",
+ "_id": "elliptic@6.5.4",
+ "_inBundle": false,
+ "_integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
+ "_location": "/elliptic",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "elliptic@^6.5.3",
+ "name": "elliptic",
+ "escapedName": "elliptic",
+ "rawSpec": "^6.5.3",
+ "saveSpec": null,
+ "fetchSpec": "^6.5.3"
+ },
+ "_requiredBy": [
+ "/browserify-sign",
+ "/create-ecdh"
+ ],
+ "_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
+ "_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
+ "_spec": "elliptic@^6.5.3",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/browserify-sign",
+ "author": {
+ "name": "Fedor Indutny",
+ "email": "fedor@indutny.com"
+ },
+ "bugs": {
+ "url": "https://github.com/indutny/elliptic/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "bn.js": "^4.11.9",
+ "brorand": "^1.1.0",
+ "hash.js": "^1.0.0",
+ "hmac-drbg": "^1.0.1",
+ "inherits": "^2.0.4",
+ "minimalistic-assert": "^1.0.1",
+ "minimalistic-crypto-utils": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "EC cryptography",
+ "devDependencies": {
+ "brfs": "^2.0.2",
+ "coveralls": "^3.1.0",
+ "eslint": "^7.6.0",
+ "grunt": "^1.2.1",
+ "grunt-browserify": "^5.3.0",
+ "grunt-cli": "^1.3.2",
+ "grunt-contrib-connect": "^3.0.0",
+ "grunt-contrib-copy": "^1.0.0",
+ "grunt-contrib-uglify": "^5.0.0",
+ "grunt-mocha-istanbul": "^5.0.2",
+ "grunt-saucelabs": "^9.0.1",
+ "istanbul": "^0.4.5",
+ "mocha": "^8.0.1"
+ },
+ "files": [
+ "lib"
+ ],
+ "homepage": "https://github.com/indutny/elliptic",
+ "keywords": [
+ "EC",
+ "Elliptic",
+ "curve",
+ "Cryptography"
+ ],
+ "license": "MIT",
+ "main": "lib/elliptic.js",
+ "name": "elliptic",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/indutny/elliptic.git"
+ },
+ "scripts": {
+ "lint": "eslint lib test",
+ "lint:fix": "npm run lint -- --fix",
+ "test": "npm run lint && npm run unit",
+ "unit": "istanbul test _mocha --reporter=spec test/index.js",
+ "version": "grunt dist && git add dist/"
+ },
+ "version": "6.5.4"
+}
diff --git a/node_modules/error-ex/LICENSE b/node_modules/error-ex/LICENSE
new file mode 100644
index 00000000..0a5f461a
--- /dev/null
+++ b/node_modules/error-ex/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 JD Ballard
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/error-ex/README.md b/node_modules/error-ex/README.md
new file mode 100644
index 00000000..97f744af
--- /dev/null
+++ b/node_modules/error-ex/README.md
@@ -0,0 +1,144 @@
+# node-error-ex [](https://travis-ci.org/Qix-/node-error-ex) [](https://coveralls.io/r/Qix-/node-error-ex)
+> Easily subclass and customize new Error types
+
+## Examples
+To include in your project:
+```javascript
+var errorEx = require('error-ex');
+```
+
+To create an error message type with a specific name (note, that `ErrorFn.name`
+will not reflect this):
+```javascript
+var JSONError = errorEx('JSONError');
+
+var err = new JSONError('error');
+err.name; //-> JSONError
+throw err; //-> JSONError: error
+```
+
+To add a stack line:
+```javascript
+var JSONError = errorEx('JSONError', {fileName: errorEx.line('in %s')});
+
+var err = new JSONError('error')
+err.fileName = '/a/b/c/foo.json';
+throw err; //-> (line 2)-> in /a/b/c/foo.json
+```
+
+To append to the error message:
+```javascript
+var JSONError = errorEx('JSONError', {fileName: errorEx.append('in %s')});
+
+var err = new JSONError('error');
+err.fileName = '/a/b/c/foo.json';
+throw err; //-> JSONError: error in /a/b/c/foo.json
+```
+
+## API
+
+#### `errorEx([name], [properties])`
+Creates a new ErrorEx error type
+
+- `name`: the name of the new type (appears in the error message upon throw;
+ defaults to `Error.name`)
+- `properties`: if supplied, used as a key/value dictionary of properties to
+ use when building up the stack message. Keys are property names that are
+ looked up on the error message, and then passed to function values.
+ - `line`: if specified and is a function, return value is added as a stack
+ entry (error-ex will indent for you). Passed the property value given
+ the key.
+ - `stack`: if specified and is a function, passed the value of the property
+ using the key, and the raw stack lines as a second argument. Takes no
+ return value (but the stack can be modified directly).
+ - `message`: if specified and is a function, return value is used as new
+ `.message` value upon get. Passed the property value of the property named
+ by key, and the existing message is passed as the second argument as an
+ array of lines (suitable for multi-line messages).
+
+Returns a constructor (Function) that can be used just like the regular Error
+constructor.
+
+```javascript
+var errorEx = require('error-ex');
+
+var BasicError = errorEx();
+
+var NamedError = errorEx('NamedError');
+
+// --
+
+var AdvancedError = errorEx('AdvancedError', {
+ foo: {
+ line: function (value, stack) {
+ if (value) {
+ return 'bar ' + value;
+ }
+ return null;
+ }
+ }
+}
+
+var err = new AdvancedError('hello, world');
+err.foo = 'baz';
+throw err;
+
+/*
+ AdvancedError: hello, world
+ bar baz
+ at tryReadme() (readme.js:20:1)
+*/
+```
+
+#### `errorEx.line(str)`
+Creates a stack line using a delimiter
+
+> This is a helper function. It is to be used in lieu of writing a value object
+> for `properties` values.
+
+- `str`: The string to create
+ - Use the delimiter `%s` to specify where in the string the value should go
+
+```javascript
+var errorEx = require('error-ex');
+
+var FileError = errorEx('FileError', {fileName: errorEx.line('in %s')});
+
+var err = new FileError('problem reading file');
+err.fileName = '/a/b/c/d/foo.js';
+throw err;
+
+/*
+ FileError: problem reading file
+ in /a/b/c/d/foo.js
+ at tryReadme() (readme.js:7:1)
+*/
+```
+
+#### `errorEx.append(str)`
+Appends to the `error.message` string
+
+> This is a helper function. It is to be used in lieu of writing a value object
+> for `properties` values.
+
+- `str`: The string to append
+ - Use the delimiter `%s` to specify where in the string the value should go
+
+```javascript
+var errorEx = require('error-ex');
+
+var SyntaxError = errorEx('SyntaxError', {fileName: errorEx.append('in %s')});
+
+var err = new SyntaxError('improper indentation');
+err.fileName = '/a/b/c/d/foo.js';
+throw err;
+
+/*
+ SyntaxError: improper indentation in /a/b/c/d/foo.js
+ at tryReadme() (readme.js:7:1)
+*/
+```
+
+## License
+Licensed under the [MIT License](http://opensource.org/licenses/MIT).
+You can find a copy of it in [LICENSE](LICENSE).
diff --git a/node_modules/error-ex/index.js b/node_modules/error-ex/index.js
new file mode 100644
index 00000000..4fb20b48
--- /dev/null
+++ b/node_modules/error-ex/index.js
@@ -0,0 +1,141 @@
+'use strict';
+
+var util = require('util');
+var isArrayish = require('is-arrayish');
+
+var errorEx = function errorEx(name, properties) {
+ if (!name || name.constructor !== String) {
+ properties = name || {};
+ name = Error.name;
+ }
+
+ var errorExError = function ErrorEXError(message) {
+ if (!this) {
+ return new ErrorEXError(message);
+ }
+
+ message = message instanceof Error
+ ? message.message
+ : (message || this.message);
+
+ Error.call(this, message);
+ Error.captureStackTrace(this, errorExError);
+
+ this.name = name;
+
+ Object.defineProperty(this, 'message', {
+ configurable: true,
+ enumerable: false,
+ get: function () {
+ var newMessage = message.split(/\r?\n/g);
+
+ for (var key in properties) {
+ if (!properties.hasOwnProperty(key)) {
+ continue;
+ }
+
+ var modifier = properties[key];
+
+ if ('message' in modifier) {
+ newMessage = modifier.message(this[key], newMessage) || newMessage;
+ if (!isArrayish(newMessage)) {
+ newMessage = [newMessage];
+ }
+ }
+ }
+
+ return newMessage.join('\n');
+ },
+ set: function (v) {
+ message = v;
+ }
+ });
+
+ var overwrittenStack = null;
+
+ var stackDescriptor = Object.getOwnPropertyDescriptor(this, 'stack');
+ var stackGetter = stackDescriptor.get;
+ var stackValue = stackDescriptor.value;
+ delete stackDescriptor.value;
+ delete stackDescriptor.writable;
+
+ stackDescriptor.set = function (newstack) {
+ overwrittenStack = newstack;
+ };
+
+ stackDescriptor.get = function () {
+ var stack = (overwrittenStack || ((stackGetter)
+ ? stackGetter.call(this)
+ : stackValue)).split(/\r?\n+/g);
+
+ // starting in Node 7, the stack builder caches the message.
+ // just replace it.
+ if (!overwrittenStack) {
+ stack[0] = this.name + ': ' + this.message;
+ }
+
+ var lineCount = 1;
+ for (var key in properties) {
+ if (!properties.hasOwnProperty(key)) {
+ continue;
+ }
+
+ var modifier = properties[key];
+
+ if ('line' in modifier) {
+ var line = modifier.line(this[key]);
+ if (line) {
+ stack.splice(lineCount++, 0, ' ' + line);
+ }
+ }
+
+ if ('stack' in modifier) {
+ modifier.stack(this[key], stack);
+ }
+ }
+
+ return stack.join('\n');
+ };
+
+ Object.defineProperty(this, 'stack', stackDescriptor);
+ };
+
+ if (Object.setPrototypeOf) {
+ Object.setPrototypeOf(errorExError.prototype, Error.prototype);
+ Object.setPrototypeOf(errorExError, Error);
+ } else {
+ util.inherits(errorExError, Error);
+ }
+
+ return errorExError;
+};
+
+errorEx.append = function (str, def) {
+ return {
+ message: function (v, message) {
+ v = v || def;
+
+ if (v) {
+ message[0] += ' ' + str.replace('%s', v.toString());
+ }
+
+ return message;
+ }
+ };
+};
+
+errorEx.line = function (str, def) {
+ return {
+ line: function (v) {
+ v = v || def;
+
+ if (v) {
+ return str.replace('%s', v.toString());
+ }
+
+ return null;
+ }
+ };
+};
+
+module.exports = errorEx;
diff --git a/node_modules/error-ex/package.json b/node_modules/error-ex/package.json
new file mode 100644
index 00000000..7ff01200
--- /dev/null
+++ b/node_modules/error-ex/package.json
@@ -0,0 +1,86 @@
+{
+ "_from": "error-ex@^1.3.1",
+ "_id": "error-ex@1.3.2",
+ "_inBundle": false,
+ "_integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==",
+ "_location": "/error-ex",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "error-ex@^1.3.1",
+ "name": "error-ex",
+ "escapedName": "error-ex",
+ "rawSpec": "^1.3.1",
+ "saveSpec": null,
+ "fetchSpec": "^1.3.1"
+ },
+ "_requiredBy": [
+ "/parse-json"
+ ],
+ "_resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz",
+ "_shasum": "b4ac40648107fdcdcfae242f428bea8a14d4f1bf",
+ "_spec": "error-ex@^1.3.1",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/parse-json",
+ "bugs": {
+ "url": "https://github.com/qix-/node-error-ex/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "is-arrayish": "^0.2.1"
+ },
+ "deprecated": false,
+ "description": "Easy error subclassing and stack customization",
+ "devDependencies": {
+ "coffee-script": "^1.9.3",
+ "coveralls": "^2.11.2",
+ "istanbul": "^0.3.17",
+ "mocha": "^2.2.5",
+ "should": "^7.0.1",
+ "xo": "^0.7.1"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/qix-/node-error-ex#readme",
+ "keywords": [
+ "error",
+ "errors",
+ "extend",
+ "extending",
+ "extension",
+ "subclass",
+ "stack",
+ "custom"
+ ],
+ "license": "MIT",
+ "maintainers": [
+ {
+ "name": "Josh Junon",
+ "email": "i.am.qix@gmail.com",
+ "url": "github.com/qix-"
+ },
+ {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ }
+ ],
+ "name": "error-ex",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/qix-/node-error-ex.git"
+ },
+ "scripts": {
+ "pretest": "xo",
+ "test": "mocha --compilers coffee:coffee-script/register"
+ },
+ "version": "1.3.2",
+ "xo": {
+ "rules": {
+ "operator-linebreak": [
+ 0
+ ]
+ }
+ }
+}
diff --git a/node_modules/error-stack-parser/CHANGELOG.md b/node_modules/error-stack-parser/CHANGELOG.md
new file mode 100644
index 00000000..0ee22949
--- /dev/null
+++ b/node_modules/error-stack-parser/CHANGELOG.md
@@ -0,0 +1,53 @@
+## v2.0.0
+* Update stackframe dependency to v1.x. Stackframes are constructed and accessed differently.
+See the [stackframe CHANGELOG](https://github.com/stacktracejs/stackframe/blob/master/CHANGELOG.md#v10x) for details.
+
+## v1.3.6
+* Handle stack frames with no line/column information
+
+## v1.3.4
+* Avoid file names
+
+## v1.3.2
+* Handle Safari stack entries with no location information
+
+## v1.3.0
+* Significantly improved handling of eval()
+* Add many browsers to CI
+
+## v1.2.2
+* Handle native functions in V8 stack traces
+
+## v1.2.0
+* Propagate "(native)" locations instead of defaulting to `undefined`
+
+## v1.1.1
+* Make sure to include direct dependencies in distributed JS files
+
+## v1.1.0
+* Move polyfills to separate, optional file
+* Better docs
+
+## v1.0.0
+* Fully tested on old IEs, production-ready
+
+## v0.2.4
+* Fix moar boogs with Opera impl
+
+## v0.2.3
+* Fix boogs with Opera impl
+
+## v0.2.2
+* Name functions such that they can can be filtered out by stacktrace.js
+
+## v0.2.1
+* Provide standard distribution (minified and unminified).
+* Slimmer node package
+
+## v0.2.0
+* Remove constructor
+* Fix boogs
+
+## v0.1.0
+* Re-write from stacktrace.js
+
diff --git a/node_modules/error-stack-parser/LICENSE b/node_modules/error-stack-parser/LICENSE
new file mode 100644
index 00000000..5c09f1a0
--- /dev/null
+++ b/node_modules/error-stack-parser/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2017 Eric Wendelin and other contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/error-stack-parser/README.md b/node_modules/error-stack-parser/README.md
new file mode 100644
index 00000000..cafa8539
--- /dev/null
+++ b/node_modules/error-stack-parser/README.md
@@ -0,0 +1,44 @@
+error-stack-parser.js - Extract meaning from JS Errors
+===============
+[](https://travis-ci.org/stacktracejs/error-stack-parser)
+[](https://coveralls.io/r/stacktracejs/error-stack-parser?branch=master)
+[](https://opensource.org/licenses/MIT)
+[](https://github.com/stacktracejs/error-stack-parser/releases)
+[](https://github.com/stacktracejs/error-stack-parser/releases)
+[](https://github.com/stacktracejs/error-stack-parser/releases)
+[](http://todogroup.org/opencodeofconduct/#stacktrace.js/me@eriwen.com)
+[](https://www.jsdelivr.com/package/npm/error-stack-parser)
+
+Simple, cross-browser [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) parser.
+This library parses and extracts function names, URLs, line numbers, and column numbers from the given Error's `stack` as
+an Array of [StackFrame](http://git.io/stackframe)s.
+
+Once you have parsed out StackFrames, you can do much more interesting things. See [stacktrace-gps](http://git.io/stacktrace-gps).
+
+Note that in IE9 and earlier, `Error` objects don't have enough information to extract much of anything. In IE 10, `Error`s
+are given a `stack` once they're `throw`n.
+
+## Browser Support
+[](https://saucelabs.com/u/stacktracejs)
+
+## Usage
+```js
+ErrorStackParser.parse(new Error('BOOM'));
+
+=> [
+ StackFrame({functionName: 'foo', args: [], fileName: 'path/to/file.js', lineNumber: 35, columnNumber: 79, isNative: false, isEval: false}),
+ StackFrame({functionName: 'Bar', fileName: 'https://cdn.somewherefast.com/utils.min.js', lineNumber: 1, columnNumber: 832, isNative: false, isEval: false, isConstructor: true}),
+ StackFrame(... and so on ...)
+ ]
+```
+
+## Installation
+```bash
+npm install error-stack-parser
+bower install error-stack-parser
+https://raw.githubusercontent.com/stacktracejs/error-stack-parser/master/dist/error-stack-parser.min.js
+```
+
+## Contributing
+Want to be listed as a *Contributor*? Start with the [Contributing Guide](.github/CONTRIBUTING.md)!
+
diff --git a/node_modules/error-stack-parser/dist/error-stack-parser.js b/node_modules/error-stack-parser/dist/error-stack-parser.js
new file mode 100644
index 00000000..9de504ad
--- /dev/null
+++ b/node_modules/error-stack-parser/dist/error-stack-parser.js
@@ -0,0 +1,202 @@
+(function(root, factory) {
+ 'use strict';
+ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
+
+ /* istanbul ignore next */
+ if (typeof define === 'function' && define.amd) {
+ define('error-stack-parser', ['stackframe'], factory);
+ } else if (typeof exports === 'object') {
+ module.exports = factory(require('stackframe'));
+ } else {
+ root.ErrorStackParser = factory(root.StackFrame);
+ }
+}(this, function ErrorStackParser(StackFrame) {
+ 'use strict';
+
+ var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/;
+ var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m;
+ var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/;
+
+ return {
+ /**
+ * Given an Error object, extract the most information from it.
+ *
+ * @param {Error} error object
+ * @return {Array} of StackFrames
+ */
+ parse: function ErrorStackParser$$parse(error) {
+ if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') {
+ return this.parseOpera(error);
+ } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {
+ return this.parseV8OrIE(error);
+ } else if (error.stack) {
+ return this.parseFFOrSafari(error);
+ } else {
+ throw new Error('Cannot parse given Error object');
+ }
+ },
+
+ // Separate line and column numbers from a string of the form: (URI:Line:Column)
+ extractLocation: function ErrorStackParser$$extractLocation(urlLike) {
+ // Fail-fast but return locations like "(native)"
+ if (urlLike.indexOf(':') === -1) {
+ return [urlLike];
+ }
+
+ var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
+ var parts = regExp.exec(urlLike.replace(/[()]/g, ''));
+ return [parts[1], parts[2] || undefined, parts[3] || undefined];
+ },
+
+ parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !!line.match(CHROME_IE_STACK_REGEXP);
+ }, this);
+
+ return filtered.map(function(line) {
+ if (line.indexOf('(eval ') > -1) {
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
+ line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
+ }
+ var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(');
+
+ // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in
+ // case it has spaces in it, as the string is split on \s+ later on
+ var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/);
+
+ // remove the parenthesized location from the line, if it was matched
+ sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine;
+
+ var tokens = sanitizedLine.split(/\s+/).slice(1);
+ // if a location was matched, pass it to extractLocation() otherwise pop the last token
+ var locationParts = this.extractLocation(location ? location[1] : tokens.pop());
+ var functionName = tokens.join(' ') || undefined;
+ var fileName = ['eval', ''].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];
+
+ return new StackFrame({
+ functionName: functionName,
+ fileName: fileName,
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }, this);
+ },
+
+ parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !line.match(SAFARI_NATIVE_CODE_REGEXP);
+ }, this);
+
+ return filtered.map(function(line) {
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
+ if (line.indexOf(' > eval') > -1) {
+ line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1');
+ }
+
+ if (line.indexOf('@') === -1 && line.indexOf(':') === -1) {
+ // Safari eval frames only have function names and nothing else
+ return new StackFrame({
+ functionName: line
+ });
+ } else {
+ var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
+ var matches = line.match(functionNameRegex);
+ var functionName = matches && matches[1] ? matches[1] : undefined;
+ var locationParts = this.extractLocation(line.replace(functionNameRegex, ''));
+
+ return new StackFrame({
+ functionName: functionName,
+ fileName: locationParts[0],
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }
+ }, this);
+ },
+
+ parseOpera: function ErrorStackParser$$parseOpera(e) {
+ if (!e.stacktrace || (e.message.indexOf('\n') > -1 &&
+ e.message.split('\n').length > e.stacktrace.split('\n').length)) {
+ return this.parseOpera9(e);
+ } else if (!e.stack) {
+ return this.parseOpera10(e);
+ } else {
+ return this.parseOpera11(e);
+ }
+ },
+
+ parseOpera9: function ErrorStackParser$$parseOpera9(e) {
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
+ var lines = e.message.split('\n');
+ var result = [];
+
+ for (var i = 2, len = lines.length; i < len; i += 2) {
+ var match = lineRE.exec(lines[i]);
+ if (match) {
+ result.push(new StackFrame({
+ fileName: match[2],
+ lineNumber: match[1],
+ source: lines[i]
+ }));
+ }
+ }
+
+ return result;
+ },
+
+ parseOpera10: function ErrorStackParser$$parseOpera10(e) {
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
+ var lines = e.stacktrace.split('\n');
+ var result = [];
+
+ for (var i = 0, len = lines.length; i < len; i += 2) {
+ var match = lineRE.exec(lines[i]);
+ if (match) {
+ result.push(
+ new StackFrame({
+ functionName: match[3] || undefined,
+ fileName: match[2],
+ lineNumber: match[1],
+ source: lines[i]
+ })
+ );
+ }
+ }
+
+ return result;
+ },
+
+ // Opera 10.65+ Error.stack very similar to FF/Safari
+ parseOpera11: function ErrorStackParser$$parseOpera11(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);
+ }, this);
+
+ return filtered.map(function(line) {
+ var tokens = line.split('@');
+ var locationParts = this.extractLocation(tokens.pop());
+ var functionCall = (tokens.shift() || '');
+ var functionName = functionCall
+ .replace(//, '$2')
+ .replace(/\([^)]*\)/g, '') || undefined;
+ var argsRaw;
+ if (functionCall.match(/\(([^)]*)\)/)) {
+ argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1');
+ }
+ var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ?
+ undefined : argsRaw.split(',');
+
+ return new StackFrame({
+ functionName: functionName,
+ args: args,
+ fileName: locationParts[0],
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }, this);
+ }
+ };
+}));
diff --git a/node_modules/error-stack-parser/dist/error-stack-parser.min.js b/node_modules/error-stack-parser/dist/error-stack-parser.min.js
new file mode 100644
index 00000000..8087d26a
--- /dev/null
+++ b/node_modules/error-stack-parser/dist/error-stack-parser.min.js
@@ -0,0 +1,2 @@
+!function(e,t){"use strict";"function"==typeof define&&define.amd?define("stackframe",[],t):"object"==typeof exports?module.exports=t():e.StackFrame=t()}(this,function(){"use strict";function e(e){return e.charAt(0).toUpperCase()+e.substring(1)}function t(e){return function(){return this[e]}}var r=["isConstructor","isEval","isNative","isToplevel"],n=["columnNumber","lineNumber"],i=["fileName","functionName","source"],a=r.concat(n,i,["args"]);function o(t){if(t)for(var r=0;r-1&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(\),.*$)/g,""));var r=t.replace(/^\s+/,"").replace(/\(eval code/g,"("),n=r.match(/ (\((.+):(\d+):(\d+)\)$)/),i=(r=n?r.replace(n[0],""):r).split(/\s+/).slice(1),a=this.extractLocation(n?n[1]:i.pop()),o=i.join(" ")||void 0,s=["eval",""].indexOf(a[0])>-1?void 0:a[0];return new e({functionName:o,fileName:s,lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseFFOrSafari:function(t){return t.stack.split("\n").filter(function(e){return!e.match(n)},this).map(function(t){if(t.indexOf(" > eval")>-1&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),-1===t.indexOf("@")&&-1===t.indexOf(":"))return new e({functionName:t});var r=/((.*".+"[^@]*)?[^@]*)(?:@)/,n=t.match(r),i=n&&n[1]?n[1]:void 0,a=this.extractLocation(t.replace(r,""));return new e({functionName:i,fileName:a[0],lineNumber:a[1],columnNumber:a[2],source:t})},this)},parseOpera:function(e){return!e.stacktrace||e.message.indexOf("\n")>-1&&e.message.split("\n").length>e.stacktrace.split("\n").length?this.parseOpera9(e):e.stack?this.parseOpera11(e):this.parseOpera10(e)},parseOpera9:function(t){for(var r=/Line (\d+).*script (?:in )?(\S+)/i,n=t.message.split("\n"),i=[],a=2,o=n.length;a/,"$2").replace(/\([^)]*\)/g,"")||void 0;a.match(/\(([^)]*)\)/)&&(r=a.replace(/^[^(]+\(([^)]*)\)$/,"$1"));var s=void 0===r||"[arguments not available]"===r?void 0:r.split(",");return new e({functionName:o,args:s,fileName:i[0],lineNumber:i[1],columnNumber:i[2],source:t})},this)}}});
+//# sourceMappingURL=error-stack-parser.min.js.map
\ No newline at end of file
diff --git a/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map b/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map
new file mode 100644
index 00000000..c0109a6b
--- /dev/null
+++ b/node_modules/error-stack-parser/dist/error-stack-parser.min.js.map
@@ -0,0 +1 @@
+{"version":3,"sources":["node_modules/stackframe/stackframe.js","error-stack-parser.js"],"names":["root","factory","define","amd","exports","module","StackFrame","this","_capitalize","str","charAt","toUpperCase","substring","_getter","p","booleanProps","numericProps","stringProps","props","concat","obj","i","length","undefined","prototype","getArgs","args","setArgs","v","Object","toString","call","TypeError","getEvalOrigin","evalOrigin","setEvalOrigin","fileName","getFileName","lineNumber","getLineNumber","columnNumber","getColumnNumber","functionName","getFunctionName","getIsEval","fromString","argsStartIndex","indexOf","argsEndIndex","lastIndexOf","split","locationString","parts","exec","Boolean","j","n","isNaN","parseFloat","isFinite","Number","k","String","require","ErrorStackParser","FIREFOX_SAFARI_STACK_REGEXP","CHROME_IE_STACK_REGEXP","SAFARI_NATIVE_CODE_REGEXP","parse","error","stacktrace","parseOpera","stack","match","parseV8OrIE","parseFFOrSafari","Error","extractLocation","urlLike","replace","filter","line","map","sanitizedLine","location","tokens","slice","locationParts","pop","join","source","functionNameRegex","matches","e","message","parseOpera9","parseOpera11","parseOpera10","lineRE","lines","result","len","push","argsRaw","functionCall","shift"],"mappings":"CAAC,SAASA,EAAMC,GACZ,aAIsB,mBAAXC,QAAyBA,OAAOC,IACvCD,OAAO,gBAAkBD,GACC,iBAAZG,QACdC,OAAOD,QAAUH,IAEjBD,EAAKM,WAAaL,IAV1B,CAYEM,KAAM,WACJ,aAKA,SAASC,EAAYC,GACjB,OAAOA,EAAIC,OAAO,GAAGC,cAAgBF,EAAIG,UAAU,GAGvD,SAASC,EAAQC,GACb,OAAO,WACH,OAAOP,KAAKO,IAIpB,IAAIC,GAAgB,gBAAiB,SAAU,WAAY,cACvDC,GAAgB,eAAgB,cAChCC,GAAe,WAAY,eAAgB,UAG3CC,EAAQH,EAAaI,OAAOH,EAAcC,GAF5B,SAIlB,SAASX,EAAWc,GAChB,GAAKA,EACL,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAMI,OAAQD,SACRE,IAAlBH,EAAIF,EAAMG,KACVd,KAAK,MAAQC,EAAYU,EAAMG,KAAKD,EAAIF,EAAMG,KAK1Df,EAAWkB,WACPC,QAAS,WACL,OAAOlB,KAAKmB,MAEhBC,QAAS,SAASC,GACd,GAA0C,mBAAtCC,OAAOL,UAAUM,SAASC,KAAKH,GAC/B,MAAM,IAAII,UAAU,yBAExBzB,KAAKmB,KAAOE,GAGhBK,cAAe,WACX,OAAO1B,KAAK2B,YAEhBC,cAAe,SAASP,GACpB,GAAIA,aAAatB,EACbC,KAAK2B,WAAaN,MACf,CAAA,KAAIA,aAAaC,QAGpB,MAAM,IAAIG,UAAU,+CAFpBzB,KAAK2B,WAAa,IAAI5B,EAAWsB,KAMzCE,SAAU,WACN,IAAIM,EAAW7B,KAAK8B,eAAiB,GACjCC,EAAa/B,KAAKgC,iBAAmB,GACrCC,EAAejC,KAAKkC,mBAAqB,GACzCC,EAAenC,KAAKoC,mBAAqB,GAC7C,OAAIpC,KAAKqC,YACDR,EACO,WAAaA,EAAW,IAAME,EAAa,IAAME,EAAe,IAEpE,UAAYF,EAAa,IAAME,EAEtCE,EACOA,EAAe,KAAON,EAAW,IAAME,EAAa,IAAME,EAAe,IAE7EJ,EAAW,IAAME,EAAa,IAAME,IAInDlC,EAAWuC,WAAa,SAAgCpC,GACpD,IAAIqC,EAAiBrC,EAAIsC,QAAQ,KAC7BC,EAAevC,EAAIwC,YAAY,KAE/BP,EAAejC,EAAIG,UAAU,EAAGkC,GAChCpB,EAAOjB,EAAIG,UAAUkC,EAAiB,EAAGE,GAAcE,MAAM,KAC7DC,EAAiB1C,EAAIG,UAAUoC,EAAe,GAElD,GAAoC,IAAhCG,EAAeJ,QAAQ,KACvB,IAAIK,EAAQ,gCAAgCC,KAAKF,EAAgB,IAC7Df,EAAWgB,EAAM,GACjBd,EAAac,EAAM,GACnBZ,EAAeY,EAAM,GAG7B,OAAO,IAAI9C,GACPoC,aAAcA,EACdhB,KAAMA,QAAQH,EACda,SAAUA,EACVE,WAAYA,QAAcf,EAC1BiB,aAAcA,QAAgBjB,KAItC,IAAK,IAAIF,EAAI,EAAGA,EAAIN,EAAaO,OAAQD,IACrCf,EAAWkB,UAAU,MAAQhB,EAAYO,EAAaM,KAAOR,EAAQE,EAAaM,IAClFf,EAAWkB,UAAU,MAAQhB,EAAYO,EAAaM,KAAO,SAAUP,GACnE,OAAO,SAASc,GACZrB,KAAKO,GAAKwC,QAAQ1B,IAFmC,CAI1Db,EAAaM,IAGpB,IAAK,IAAIkC,EAAI,EAAGA,EAAIvC,EAAaM,OAAQiC,IACrCjD,EAAWkB,UAAU,MAAQhB,EAAYQ,EAAauC,KAAO1C,EAAQG,EAAauC,IAClFjD,EAAWkB,UAAU,MAAQhB,EAAYQ,EAAauC,KAAO,SAAUzC,GACnE,OAAO,SAASc,GACZ,GA7GO4B,EA6GQ5B,EA5Gf6B,MAAMC,WAAWF,MAAOG,SAASH,GA6G7B,MAAM,IAAIxB,UAAUlB,EAAI,qBA9GxC,IAAmB0C,EAgHPjD,KAAKO,GAAK8C,OAAOhC,IALoC,CAO1DZ,EAAauC,IAGpB,IAAK,IAAIM,EAAI,EAAGA,EAAI5C,EAAYK,OAAQuC,IACpCvD,EAAWkB,UAAU,MAAQhB,EAAYS,EAAY4C,KAAOhD,EAAQI,EAAY4C,IAChFvD,EAAWkB,UAAU,MAAQhB,EAAYS,EAAY4C,KAAO,SAAU/C,GAClE,OAAO,SAASc,GACZrB,KAAKO,GAAKgD,OAAOlC,IAFmC,CAIzDX,EAAY4C,IAGnB,OAAOvD,IC5IV,SAASN,EAAMC,GACZ,aAIsB,mBAAXC,QAAyBA,OAAOC,IACvCD,OAAO,sBAAuB,cAAeD,GACnB,iBAAZG,QACdC,OAAOD,QAAUH,EAAQ8D,QAAQ,eAEjC/D,EAAKgE,iBAAmB/D,EAAQD,EAAKM,YAV7C,CAYEC,KAAM,SAA0BD,GAC9B,aAEA,IAAI2D,EAA8B,eAC9BC,EAAyB,iCACzBC,EAA4B,8BAEhC,OAOIC,MAAO,SAAiCC,GACpC,QAAgC,IAArBA,EAAMC,iBAAkE,IAA7BD,EAAM,mBACxD,OAAO9D,KAAKgE,WAAWF,GACpB,GAAIA,EAAMG,OAASH,EAAMG,MAAMC,MAAMP,GACxC,OAAO3D,KAAKmE,YAAYL,GACrB,GAAIA,EAAMG,MACb,OAAOjE,KAAKoE,gBAAgBN,GAE5B,MAAM,IAAIO,MAAM,oCAKxBC,gBAAiB,SAA2CC,GAExD,IAA8B,IAA1BA,EAAQ/B,QAAQ,KAChB,OAAQ+B,GAGZ,IACI1B,EADS,+BACMC,KAAKyB,EAAQC,QAAQ,QAAS,KACjD,OAAQ3B,EAAM,GAAIA,EAAM,SAAM7B,EAAW6B,EAAM,SAAM7B,IAGzDmD,YAAa,SAAuCL,GAKhD,OAJeA,EAAMG,MAAMtB,MAAM,MAAM8B,OAAO,SAASC,GACnD,QAASA,EAAKR,MAAMP,IACrB3D,MAEa2E,IAAI,SAASD,GACrBA,EAAKlC,QAAQ,WAAa,IAE1BkC,EAAOA,EAAKF,QAAQ,aAAc,QAAQA,QAAQ,+BAAgC,KAEtF,IAAII,EAAgBF,EAAKF,QAAQ,OAAQ,IAAIA,QAAQ,eAAgB,KAIjEK,EAAWD,EAAcV,MAAM,4BAK/BY,GAFJF,EAAgBC,EAAWD,EAAcJ,QAAQK,EAAS,GAAI,IAAMD,GAEzCjC,MAAM,OAAOoC,MAAM,GAE1CC,EAAgBhF,KAAKsE,gBAAgBO,EAAWA,EAAS,GAAKC,EAAOG,OACrE9C,EAAe2C,EAAOI,KAAK,WAAQlE,EACnCa,GAAY,OAAQ,eAAeW,QAAQwC,EAAc,KAAO,OAAIhE,EAAYgE,EAAc,GAElG,OAAO,IAAIjF,GACPoC,aAAcA,EACdN,SAAUA,EACVE,WAAYiD,EAAc,GAC1B/C,aAAc+C,EAAc,GAC5BG,OAAQT,KAEb1E,OAGPoE,gBAAiB,SAA2CN,GAKxD,OAJeA,EAAMG,MAAMtB,MAAM,MAAM8B,OAAO,SAASC,GACnD,OAAQA,EAAKR,MAAMN,IACpB5D,MAEa2E,IAAI,SAASD,GAMzB,GAJIA,EAAKlC,QAAQ,YAAc,IAC3BkC,EAAOA,EAAKF,QAAQ,mDAAoD,SAGjD,IAAvBE,EAAKlC,QAAQ,OAAsC,IAAvBkC,EAAKlC,QAAQ,KAEzC,OAAO,IAAIzC,GACPoC,aAAcuC,IAGlB,IAAIU,EAAoB,6BACpBC,EAAUX,EAAKR,MAAMkB,GACrBjD,EAAekD,GAAWA,EAAQ,GAAKA,EAAQ,QAAKrE,EACpDgE,EAAgBhF,KAAKsE,gBAAgBI,EAAKF,QAAQY,EAAmB,KAEzE,OAAO,IAAIrF,GACPoC,aAAcA,EACdN,SAAUmD,EAAc,GACxBjD,WAAYiD,EAAc,GAC1B/C,aAAc+C,EAAc,GAC5BG,OAAQT,KAGjB1E,OAGPgE,WAAY,SAAsCsB,GAC9C,OAAKA,EAAEvB,YAAeuB,EAAEC,QAAQ/C,QAAQ,OAAS,GAC7C8C,EAAEC,QAAQ5C,MAAM,MAAM5B,OAASuE,EAAEvB,WAAWpB,MAAM,MAAM5B,OACjDf,KAAKwF,YAAYF,GAChBA,EAAErB,MAGHjE,KAAKyF,aAAaH,GAFlBtF,KAAK0F,aAAaJ,IAMjCE,YAAa,SAAuCF,GAKhD,IAJA,IAAIK,EAAS,oCACTC,EAAQN,EAAEC,QAAQ5C,MAAM,MACxBkD,KAEK/E,EAAI,EAAGgF,EAAMF,EAAM7E,OAAQD,EAAIgF,EAAKhF,GAAK,EAAG,CACjD,IAAIoD,EAAQyB,EAAO7C,KAAK8C,EAAM9E,IAC1BoD,GACA2B,EAAOE,KAAK,IAAIhG,GACZ8B,SAAUqC,EAAM,GAChBnC,WAAYmC,EAAM,GAClBiB,OAAQS,EAAM9E,MAK1B,OAAO+E,GAGXH,aAAc,SAAwCJ,GAKlD,IAJA,IAAIK,EAAS,6DACTC,EAAQN,EAAEvB,WAAWpB,MAAM,MAC3BkD,KAEK/E,EAAI,EAAGgF,EAAMF,EAAM7E,OAAQD,EAAIgF,EAAKhF,GAAK,EAAG,CACjD,IAAIoD,EAAQyB,EAAO7C,KAAK8C,EAAM9E,IAC1BoD,GACA2B,EAAOE,KACH,IAAIhG,GACAoC,aAAc+B,EAAM,SAAMlD,EAC1Ba,SAAUqC,EAAM,GAChBnC,WAAYmC,EAAM,GAClBiB,OAAQS,EAAM9E,MAM9B,OAAO+E,GAIXJ,aAAc,SAAwC3B,GAKlD,OAJeA,EAAMG,MAAMtB,MAAM,MAAM8B,OAAO,SAASC,GACnD,QAASA,EAAKR,MAAMR,KAAiCgB,EAAKR,MAAM,sBACjElE,MAEa2E,IAAI,SAASD,GACzB,IAMIsB,EANAlB,EAASJ,EAAK/B,MAAM,KACpBqC,EAAgBhF,KAAKsE,gBAAgBQ,EAAOG,OAC5CgB,EAAgBnB,EAAOoB,SAAW,GAClC/D,EAAe8D,EACdzB,QAAQ,iCAAkC,MAC1CA,QAAQ,aAAc,UAAOxD,EAE9BiF,EAAa/B,MAAM,iBACnB8B,EAAUC,EAAazB,QAAQ,qBAAsB,OAEzD,IAAIrD,OAAoBH,IAAZgF,GAAqC,8BAAZA,OACjChF,EAAYgF,EAAQrD,MAAM,KAE9B,OAAO,IAAI5C,GACPoC,aAAcA,EACdhB,KAAMA,EACNU,SAAUmD,EAAc,GACxBjD,WAAYiD,EAAc,GAC1B/C,aAAc+C,EAAc,GAC5BG,OAAQT,KAEb1E"}
\ No newline at end of file
diff --git a/node_modules/error-stack-parser/error-stack-parser.d.ts b/node_modules/error-stack-parser/error-stack-parser.d.ts
new file mode 100644
index 00000000..c5678396
--- /dev/null
+++ b/node_modules/error-stack-parser/error-stack-parser.d.ts
@@ -0,0 +1,66 @@
+// Type definitions for ErrorStackParser v2.0.0
+// Project: https://github.com/stacktracejs/error-stack-parser
+// Definitions by: Eric Wendelin
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
+declare module ErrorStackParser {
+ export interface StackFrame {
+ constructor(object: StackFrame): StackFrame;
+
+ isConstructor?: boolean;
+ getIsConstructor(): boolean;
+ setIsConstructor(): void;
+
+ isEval?: boolean;
+ getIsEval(): boolean;
+ setIsEval(): void;
+
+ isNative?: boolean;
+ getIsNative(): boolean;
+ setIsNative(): void;
+
+ isTopLevel?: boolean;
+ getIsTopLevel(): boolean;
+ setIsTopLevel(): void;
+
+ columnNumber?: number;
+ getColumnNumber(): number;
+ setColumnNumber(): void;
+
+ lineNumber?: number;
+ getLineNumber(): number;
+ setLineNumber(): void;
+
+ fileName?: string;
+ getFileName(): string;
+ setFileName(): void;
+
+ functionName?: string;
+ getFunctionName(): string;
+ setFunctionName(): void;
+
+ source?: string;
+ getSource(): string;
+ setSource(): void;
+
+ args?: any[];
+ getArgs(): any[];
+ setArgs(): void;
+
+ evalOrigin?: StackFrame;
+ getEvalOrigin(): StackFrame;
+ setEvalOrigin(): void;
+
+ toString(): string;
+ }
+
+ /**
+ * Given an Error object, extract the most information from it.
+ *
+ * @param {Error} error object
+ * @return {Array} of StackFrames
+ */
+ export function parse(error: Error): StackFrame[];
+}
+
+export = ErrorStackParser;
diff --git a/node_modules/error-stack-parser/error-stack-parser.js b/node_modules/error-stack-parser/error-stack-parser.js
new file mode 100644
index 00000000..9de504ad
--- /dev/null
+++ b/node_modules/error-stack-parser/error-stack-parser.js
@@ -0,0 +1,202 @@
+(function(root, factory) {
+ 'use strict';
+ // Universal Module Definition (UMD) to support AMD, CommonJS/Node.js, Rhino, and browsers.
+
+ /* istanbul ignore next */
+ if (typeof define === 'function' && define.amd) {
+ define('error-stack-parser', ['stackframe'], factory);
+ } else if (typeof exports === 'object') {
+ module.exports = factory(require('stackframe'));
+ } else {
+ root.ErrorStackParser = factory(root.StackFrame);
+ }
+}(this, function ErrorStackParser(StackFrame) {
+ 'use strict';
+
+ var FIREFOX_SAFARI_STACK_REGEXP = /(^|@)\S+:\d+/;
+ var CHROME_IE_STACK_REGEXP = /^\s*at .*(\S+:\d+|\(native\))/m;
+ var SAFARI_NATIVE_CODE_REGEXP = /^(eval@)?(\[native code])?$/;
+
+ return {
+ /**
+ * Given an Error object, extract the most information from it.
+ *
+ * @param {Error} error object
+ * @return {Array} of StackFrames
+ */
+ parse: function ErrorStackParser$$parse(error) {
+ if (typeof error.stacktrace !== 'undefined' || typeof error['opera#sourceloc'] !== 'undefined') {
+ return this.parseOpera(error);
+ } else if (error.stack && error.stack.match(CHROME_IE_STACK_REGEXP)) {
+ return this.parseV8OrIE(error);
+ } else if (error.stack) {
+ return this.parseFFOrSafari(error);
+ } else {
+ throw new Error('Cannot parse given Error object');
+ }
+ },
+
+ // Separate line and column numbers from a string of the form: (URI:Line:Column)
+ extractLocation: function ErrorStackParser$$extractLocation(urlLike) {
+ // Fail-fast but return locations like "(native)"
+ if (urlLike.indexOf(':') === -1) {
+ return [urlLike];
+ }
+
+ var regExp = /(.+?)(?::(\d+))?(?::(\d+))?$/;
+ var parts = regExp.exec(urlLike.replace(/[()]/g, ''));
+ return [parts[1], parts[2] || undefined, parts[3] || undefined];
+ },
+
+ parseV8OrIE: function ErrorStackParser$$parseV8OrIE(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !!line.match(CHROME_IE_STACK_REGEXP);
+ }, this);
+
+ return filtered.map(function(line) {
+ if (line.indexOf('(eval ') > -1) {
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
+ line = line.replace(/eval code/g, 'eval').replace(/(\(eval at [^()]*)|(\),.*$)/g, '');
+ }
+ var sanitizedLine = line.replace(/^\s+/, '').replace(/\(eval code/g, '(');
+
+ // capture and preseve the parenthesized location "(/foo/my bar.js:12:87)" in
+ // case it has spaces in it, as the string is split on \s+ later on
+ var location = sanitizedLine.match(/ (\((.+):(\d+):(\d+)\)$)/);
+
+ // remove the parenthesized location from the line, if it was matched
+ sanitizedLine = location ? sanitizedLine.replace(location[0], '') : sanitizedLine;
+
+ var tokens = sanitizedLine.split(/\s+/).slice(1);
+ // if a location was matched, pass it to extractLocation() otherwise pop the last token
+ var locationParts = this.extractLocation(location ? location[1] : tokens.pop());
+ var functionName = tokens.join(' ') || undefined;
+ var fileName = ['eval', ''].indexOf(locationParts[0]) > -1 ? undefined : locationParts[0];
+
+ return new StackFrame({
+ functionName: functionName,
+ fileName: fileName,
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }, this);
+ },
+
+ parseFFOrSafari: function ErrorStackParser$$parseFFOrSafari(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !line.match(SAFARI_NATIVE_CODE_REGEXP);
+ }, this);
+
+ return filtered.map(function(line) {
+ // Throw away eval information until we implement stacktrace.js/stackframe#8
+ if (line.indexOf(' > eval') > -1) {
+ line = line.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g, ':$1');
+ }
+
+ if (line.indexOf('@') === -1 && line.indexOf(':') === -1) {
+ // Safari eval frames only have function names and nothing else
+ return new StackFrame({
+ functionName: line
+ });
+ } else {
+ var functionNameRegex = /((.*".+"[^@]*)?[^@]*)(?:@)/;
+ var matches = line.match(functionNameRegex);
+ var functionName = matches && matches[1] ? matches[1] : undefined;
+ var locationParts = this.extractLocation(line.replace(functionNameRegex, ''));
+
+ return new StackFrame({
+ functionName: functionName,
+ fileName: locationParts[0],
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }
+ }, this);
+ },
+
+ parseOpera: function ErrorStackParser$$parseOpera(e) {
+ if (!e.stacktrace || (e.message.indexOf('\n') > -1 &&
+ e.message.split('\n').length > e.stacktrace.split('\n').length)) {
+ return this.parseOpera9(e);
+ } else if (!e.stack) {
+ return this.parseOpera10(e);
+ } else {
+ return this.parseOpera11(e);
+ }
+ },
+
+ parseOpera9: function ErrorStackParser$$parseOpera9(e) {
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)/i;
+ var lines = e.message.split('\n');
+ var result = [];
+
+ for (var i = 2, len = lines.length; i < len; i += 2) {
+ var match = lineRE.exec(lines[i]);
+ if (match) {
+ result.push(new StackFrame({
+ fileName: match[2],
+ lineNumber: match[1],
+ source: lines[i]
+ }));
+ }
+ }
+
+ return result;
+ },
+
+ parseOpera10: function ErrorStackParser$$parseOpera10(e) {
+ var lineRE = /Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i;
+ var lines = e.stacktrace.split('\n');
+ var result = [];
+
+ for (var i = 0, len = lines.length; i < len; i += 2) {
+ var match = lineRE.exec(lines[i]);
+ if (match) {
+ result.push(
+ new StackFrame({
+ functionName: match[3] || undefined,
+ fileName: match[2],
+ lineNumber: match[1],
+ source: lines[i]
+ })
+ );
+ }
+ }
+
+ return result;
+ },
+
+ // Opera 10.65+ Error.stack very similar to FF/Safari
+ parseOpera11: function ErrorStackParser$$parseOpera11(error) {
+ var filtered = error.stack.split('\n').filter(function(line) {
+ return !!line.match(FIREFOX_SAFARI_STACK_REGEXP) && !line.match(/^Error created at/);
+ }, this);
+
+ return filtered.map(function(line) {
+ var tokens = line.split('@');
+ var locationParts = this.extractLocation(tokens.pop());
+ var functionCall = (tokens.shift() || '');
+ var functionName = functionCall
+ .replace(//, '$2')
+ .replace(/\([^)]*\)/g, '') || undefined;
+ var argsRaw;
+ if (functionCall.match(/\(([^)]*)\)/)) {
+ argsRaw = functionCall.replace(/^[^(]+\(([^)]*)\)$/, '$1');
+ }
+ var args = (argsRaw === undefined || argsRaw === '[arguments not available]') ?
+ undefined : argsRaw.split(',');
+
+ return new StackFrame({
+ functionName: functionName,
+ args: args,
+ fileName: locationParts[0],
+ lineNumber: locationParts[1],
+ columnNumber: locationParts[2],
+ source: line
+ });
+ }, this);
+ }
+ };
+}));
diff --git a/node_modules/error-stack-parser/package.json b/node_modules/error-stack-parser/package.json
new file mode 100644
index 00000000..f605ec07
--- /dev/null
+++ b/node_modules/error-stack-parser/package.json
@@ -0,0 +1,102 @@
+{
+ "_from": "error-stack-parser@^2.0.6",
+ "_id": "error-stack-parser@2.0.6",
+ "_inBundle": false,
+ "_integrity": "sha512-d51brTeqC+BHlwF0BhPtcYgF5nlzf9ZZ0ZIUQNZpc9ZB9qw5IJ2diTrBY9jlCJkTLITYPjmiX6OWCwH+fuyNgQ==",
+ "_location": "/error-stack-parser",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "error-stack-parser@^2.0.6",
+ "name": "error-stack-parser",
+ "escapedName": "error-stack-parser",
+ "rawSpec": "^2.0.6",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.6"
+ },
+ "_requiredBy": [
+ "/stacktrace-js"
+ ],
+ "_resolved": "https://registry.npmjs.org/error-stack-parser/-/error-stack-parser-2.0.6.tgz",
+ "_shasum": "5a99a707bd7a4c58a797902d48d82803ede6aad8",
+ "_spec": "error-stack-parser@^2.0.6",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/stacktrace-js",
+ "bugs": {
+ "url": "https://github.com/stacktracejs/error-stack-parser/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "stackframe": "^1.1.1"
+ },
+ "deprecated": false,
+ "description": "Extract meaning from JS Errors",
+ "devDependencies": {
+ "eslint": "^6.8.0",
+ "jasmine": "^3.5.0",
+ "jasmine-core": "^3.5.0",
+ "karma": "^4.4.1",
+ "karma-chrome-launcher": "^3.1.0",
+ "karma-coverage": "^2.0.1",
+ "karma-coveralls": "^2.1.0",
+ "karma-firefox-launcher": "^1.2.0",
+ "karma-ie-launcher": "^1.0.0",
+ "karma-jasmine": "^1.1.2",
+ "karma-opera-launcher": "^1.0.0",
+ "karma-phantomjs-launcher": "^1.0.4",
+ "karma-safari-launcher": "^1.0.0",
+ "karma-sauce-launcher": "^2.0.2",
+ "karma-spec-reporter": "0.0.32",
+ "uglify-es": "^3.3.9"
+ },
+ "files": [
+ "LICENSE",
+ "README.md",
+ "error-stack-parser.js",
+ "error-stack-parser.d.ts",
+ "dist/"
+ ],
+ "homepage": "https://www.stacktracejs.com",
+ "keywords": [
+ "stacktrace",
+ "error",
+ "stack",
+ "parser"
+ ],
+ "license": "MIT",
+ "main": "./error-stack-parser.js",
+ "maintainers": [
+ {
+ "name": "Eric Wendelin",
+ "email": "me@eriwen.com",
+ "url": "https://www.eriwen.com"
+ },
+ {
+ "name": "Victor Homyakov",
+ "email": "vkhomyackov@gmail.com",
+ "url": "https://github.com/victor-homyakov"
+ },
+ {
+ "name": "Oliver Salzburg",
+ "url": "https://github.com/oliversalzburg"
+ },
+ {
+ "name": "Ben Gourley",
+ "url": "https://github.com/bengourley"
+ }
+ ],
+ "name": "error-stack-parser",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/stacktracejs/error-stack-parser.git"
+ },
+ "scripts": {
+ "lint": "eslint --fix .",
+ "prepare": "cp error-stack-parser.js dist/ && uglifyjs node_modules/stackframe/stackframe.js error-stack-parser.js -o dist/error-stack-parser.min.js --compress --mangle --source-map \"url=error-stack-parser.min.js.map\"",
+ "test": "karma start karma.conf.js --single-run",
+ "test-ci": "karma start karma.conf.ci.js --single-run",
+ "test-pr": "karma start karma.conf.js --single-run --browsers Firefox,Chrome_Travis"
+ },
+ "typings": "./error-stack-parser.d.ts",
+ "version": "2.0.6"
+}
diff --git a/node_modules/es5-ext/.editorconfig b/node_modules/es5-ext/.editorconfig
new file mode 100644
index 00000000..bd6d81ee
--- /dev/null
+++ b/node_modules/es5-ext/.editorconfig
@@ -0,0 +1,16 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+trim_trailing_whitespace = true
+
+[*.md]
+indent_size = 2
+indent_style = space
+trim_trailing_whitespace = false
diff --git a/node_modules/es5-ext/.github/FUNDING.yml b/node_modules/es5-ext/.github/FUNDING.yml
new file mode 100644
index 00000000..71426b07
--- /dev/null
+++ b/node_modules/es5-ext/.github/FUNDING.yml
@@ -0,0 +1 @@
+tidelift: "npm/es5-ext"
diff --git a/node_modules/es5-ext/CHANGELOG.md b/node_modules/es5-ext/CHANGELOG.md
new file mode 100644
index 00000000..0c5801d1
--- /dev/null
+++ b/node_modules/es5-ext/CHANGELOG.md
@@ -0,0 +1,325 @@
+# Changelog
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+### [0.10.53](https://github.com/medikoo/es5-ext/compare/v0.10.52...v0.10.53) (2019-11-21)
+
+### [0.10.52](https://github.com/medikoo/es5-ext/compare/v0.10.51...v0.10.52) (2019-10-29)
+
+### Bug Fixes
+
+- Fix global resolution for Safari ([00731d2](https://github.com/medikoo/es5-ext/commit/00731d2))
+- Keep support for old Node.js versions ([2fa2a11](https://github.com/medikoo/es5-ext/commit/2fa2a11))
+
+### [0.10.51](https://github.com/medikoo/es5-ext/compare/v0.10.50...v0.10.51) (2019-08-30)
+
+### Bug Fixes
+
+- Ensure Function.isFunction recognizes async functions ([6f06e66](https://github.com/medikoo/es5-ext/commit/6f06e66))
+
+### Tests
+
+- Fix after prettification changes ([dd6fc3f](https://github.com/medikoo/es5-ext/commit/dd6fc3f))
+
+## [0.10.50](https://github.com/medikoo/es5-ext/compare/v0.10.49...v0.10.50) (2019-04-30)
+
+### Bug Fixes
+
+- maximum time value reference ([708202d](https://github.com/medikoo/es5-ext/commit/708202d))
+
+### Features
+
+- ensure global resolves in strict mode ([c6a19d7](https://github.com/medikoo/es5-ext/commit/c6a19d7)), closes [#86](https://github.com/medikoo/es5-ext/issues/86)
+
+## [0.10.49](https://github.com/medikoo/es5-ext/compare/v0.10.48...v0.10.49) (2019-03-11)
+
+### Features
+
+- allow plain function usage of fn.compose ([2bafef7](https://github.com/medikoo/es5-ext/commit/2bafef7))
+
+## [0.10.48](https://github.com/medikoo/es5-ext/compare/v0.10.47...v0.10.48) (2019-02-22)
+
+### Features
+
+- Object.ensurePlainObject util ([f48fbcf](https://github.com/medikoo/es5-ext/commit/f48fbcf))
+
+
+
+## [0.10.47](https://github.com/medikoo/es5-ext/compare/v0.10.46...v0.10.47) (2019-01-16)
+
+### Features
+
+- Promise.prototype.finally shim ([4dadbc7](https://github.com/medikoo/es5-ext/commit/4dadbc7))
+
+
+
+## [0.10.46](https://github.com/medikoo/es5-ext/compare/v0.10.45...v0.10.46) (2018-08-13)
+
+### Bug Fixes
+
+- assign-deep to not modify following arguments ([bf43d57](https://github.com/medikoo/es5-ext/commit/bf43d57))
+
+
+
+## [0.10.45](https://github.com/medikoo/es5-ext/compare/v0.10.44...v0.10.45) (2018-06-01)
+
+### Bug Fixes
+
+- improve error message readbility ([adc91b9](https://github.com/medikoo/es5-ext/commit/adc91b9))
+
+
+
+## [0.10.44](https://github.com/medikoo/es5-ext/compare/v0.10.43...v0.10.44) (2018-05-30)
+
+### Features
+
+- add Object.entries ([51d2f43](https://github.com/medikoo/es5-ext/commit/51d2f43))
+
+
+
+## [0.10.43](https://github.com/medikoo/es5-ext/compare/v0.10.42...v0.10.43) (2018-05-28)
+
+### Features
+
+- improve patch string ([6a25b10](https://github.com/medikoo/es5-ext/commit/6a25b10))
+
+
+
+## [0.10.42](https://github.com/medikoo/es5-ext/compare/v0.10.41...v0.10.42) (2018-03-28)
+
+### Bug Fixes
+
+- Date.isDate to exclude NaN dates ([3b61bc6](https://github.com/medikoo/es5-ext/commit/3b61bc6))
+
+### Features
+
+- improve non-coercible string representation ([20bfb78](https://github.com/medikoo/es5-ext/commit/20bfb78))
+- improve non-stringifiable string representation ([2e4512d](https://github.com/medikoo/es5-ext/commit/2e4512d))
+
+
+
+## [0.10.41](https://github.com/medikoo/es5-ext/compare/v0.10.40...v0.10.41) (2018-03-16)
+
+### Features
+
+- Add function.microtaskDelay method ([66481c0](https://github.com/medikoo/es5-ext/commit/66481c0))
+- Add Object.isThenable ([8d5a45c](https://github.com/medikoo/es5-ext/commit/8d5a45c))
+- Add promise.asCallback method ([dcc1451](https://github.com/medikoo/es5-ext/commit/dcc1451))
+- Object.ensurePlainFunction ([2682be6](https://github.com/medikoo/es5-ext/commit/2682be6))
+
+
+
+## [0.10.40](https://github.com/medikoo/es5-ext/compare/v0.10.39...v0.10.40) (2018-03-09)
+
+### Features
+
+- **math:** decimal round, floor and ceil ([39290c6](https://github.com/medikoo/es5-ext/commit/39290c6))
+- **object:** isInteger and ensureInteger ([a5f7d04](https://github.com/medikoo/es5-ext/commit/a5f7d04))
+
+
+
+## [0.10.39](https://github.com/medikoo/es5-ext/compare/v0.10.38...v0.10.39) (2018-02-16)
+
+### Features
+
+- Promise.lazy ([7a30a78](https://github.com/medikoo/es5-ext/commit/7a30a78))
+
+
+
+## [0.10.38](https://github.com/medikoo/es5-ext/compare/v0.10.37...v0.10.38) (2018-01-16)
+
+### Features
+
+- Object.isNaturalNumber an Object.isNaturalNumberValue ([66a40af](https://github.com/medikoo/es5-ext/commit/66a40af))
+
+
+
+## [0.10.37](https://github.com/medikoo/es5-ext/compare/v0.10.36...v0.10.37) (2017-11-23)
+
+### Features
+
+- String.random util ([7c28739](https://github.com/medikoo/es5-ext/commit/7c28739))
+
+
+
+## [0.10.36](https://github.com/medikoo/es5-ext/compare/v0.10.35...v0.10.36) (2017-11-23)
+
+### Features
+
+- **date:** isTimeValue and ensureTimeValue utils ([7659dc5](https://github.com/medikoo/es5-ext/commit/7659dc5))
+
+
+
+## [0.10.35](https://github.com/medikoo/es5-ext/compare/v0.10.34...v0.10.35) (2017-10-13)
+
+### Bug Fixes
+
+- **Object.copy:** do not upgrade primitives to objects ([dd4d88f](https://github.com/medikoo/es5-ext/commit/dd4d88f))
+
+
+
+## [0.10.34](https://github.com/medikoo/es5-ext/compare/v0.10.33...v0.10.34) (2017-10-13)
+
+### Features
+
+- **copyDeep:** duplicate only recursive instances ([bba529a](https://github.com/medikoo/es5-ext/commit/bba529a))
+
+
+
+## [0.10.33](https://github.com/medikoo/es5-ext/compare/v0.10.32...v0.10.33) (2017-10-13)
+
+### Bug Fixes
+
+- **Object.assignDeep:** relax input validation ([1baf57d](https://github.com/medikoo/es5-ext/commit/1baf57d))
+
+
+
+## [0.10.32](https://github.com/medikoo/es5-ext/compare/v0.10.31...v0.10.32) (2017-10-13)
+
+### Features
+
+- Object.assignDeep ([2345e0b](https://github.com/medikoo/es5-ext/commit/2345e0b))
+
+
+
+## [0.10.31](https://github.com/medikoo/es5-ext/compare/v0.10.30...v0.10.31) (2017-10-09)
+
+### Features
+
+- Object.isPlainFunction utility ([031be0a](https://github.com/medikoo/es5-ext/commit/031be0a))
+
+
+
+## [0.10.30](https://github.com/medikoo/es5-ext/compare/v0.10.29...v0.10.30) (2017-08-25)
+
+### Bug Fixes
+
+- value stringification for error message ([37bb96b](https://github.com/medikoo/es5-ext/commit/37bb96b))
+
+
+
+## [0.10.29](https://github.com/medikoo/es5-ext/compare/v0.10.28...v0.10.29) (2017-08-18)
+
+### Bug Fixes
+
+- string.repeat after recent regression ([b02fab4](https://github.com/medikoo/es5-ext/commit/b02fab4))
+
+
+
+## [0.10.28](https://github.com/medikoo/es5-ext/compare/v0.10.27...v0.10.28) (2017-08-18)
+
+### Features
+
+- array.isEmpty method ([b0cfbdd](https://github.com/medikoo/es5-ext/commit/b0cfbdd))
+- improve new lines representation ([860fe8b](https://github.com/medikoo/es5-ext/commit/860fe8b))
+- Object.ensureArray util ([595c341](https://github.com/medikoo/es5-ext/commit/595c341))
+- toShortStringRepresentation util ([6842d06](https://github.com/medikoo/es5-ext/commit/6842d06))
+
+
+
+## [0.10.27](https://github.com/medikoo/es5-ext/compare/v0.10.26...v0.10.27) (2017-08-11)
+
+### Bug Fixes
+
+- isNumberValue should not crash on non-coercible values ([0db765e](https://github.com/medikoo/es5-ext/commit/0db765e))
+
+### Features
+
+- add Object.ensureFiniteNumber util ([11c67f5](https://github.com/medikoo/es5-ext/commit/11c67f5))
+- add Object.isFiniteNumber util ([fe5b55a](https://github.com/medikoo/es5-ext/commit/fe5b55a))
+
+
+
+## [0.10.26](https://github.com/medikoo/es5-ext/compare/v0.10.25...v0.10.26) (2017-08-02)
+
+### Bug Fixes
+
+- **general:** ensure optionalChaining in index ([3df879a](https://github.com/medikoo/es5-ext/commit/3df879a))
+
+
+
+## [0.10.25](https://github.com/medikoo/es5-ext/compare/v0.10.24...v0.10.25) (2017-08-02)
+
+### Features
+
+- **general:** optionalChaining utility ([26332b5](https://github.com/medikoo/es5-ext/commit/26332b5))
+
+
+
+## [0.10.24](https://github.com/medikoo/es5-ext/compare/v0.10.23...v0.10.24) (2017-07-10)
+
+### Features
+
+- resolve global with CSP safe method ([d386449](https://github.com/medikoo/es5-ext/commit/d386449))
+
+
+
+## [0.10.23](https://github.com/medikoo/es5-ext/compare/v0.10.22...v0.10.23) (2017-06-05)
+
+### Bug Fixes
+
+- **Error.custom:** allow non-string code ([e8db3a0](https://github.com/medikoo/es5-ext/commit/e8db3a0))
+- **Error.custom:** improve `ext` argument detection ([0edbfbc](https://github.com/medikoo/es5-ext/commit/0edbfbc))
+
+
+
+## [0.10.22](https://github.com/medikoo/es5-ext/compare/v0.10.21...v0.10.22) (2017-05-31)
+
+### Bug Fixes
+
+- ensure proper symbols stringification in early implementations ([ce51900](https://github.com/medikoo/es5-ext/commit/ce51900))
+
+
+
+## [0.10.21](https://github.com/medikoo/es5-ext/compare/v0.10.20...v0.10.21) (2017-05-22)
+
+### Features
+
+- support arrow functions in Function/#/to-tring-tokens.js ([ad3de1e](https://github.com/medikoo/es5-ext/commit/ad3de1e))
+
+
+
+## [0.10.20](https://github.com/medikoo/es5-ext/compare/v0.10.19...v0.10.20) (2017-05-17)
+
+### Features
+
+- if listed copy not only if own property ([d7e7cef](https://github.com/medikoo/es5-ext/commit/d7e7cef))
+- support `ensure` option in Object.copy ([295326f](https://github.com/medikoo/es5-ext/commit/295326f))
+
+
+
+## [0.10.19](https://github.com/medikoo/es5-ext/compare/v0.10.18...v0.10.19) (2017-05-17)
+
+### Features
+
+- support propertyNames option in Object.copy ([5442279](https://github.com/medikoo/es5-ext/commit/5442279))
+
+
+
+## [0.10.18](https://github.com/medikoo/es5-ext/compare/v0.10.17...v0.10.18) (2017-05-15)
+
+### Bug Fixes
+
+- take all changes in safeToString ([3c5cd12](https://github.com/medikoo/es5-ext/commit/3c5cd12))
+
+
+
+## [0.10.17](https://github.com/medikoo/es5-ext/compare/v0.10.16...v0.10.17) (2017-05-15)
+
+### Features
+
+- introduce Object.ensurePromise ([46a2f45](https://github.com/medikoo/es5-ext/commit/46a2f45))
+- introduce Object.isPromise ([27aecc8](https://github.com/medikoo/es5-ext/commit/27aecc8))
+- introduce safeToString ([0cc6a7b](https://github.com/medikoo/es5-ext/commit/0cc6a7b))
+
+
+
+## [0.10.16](https://github.com/medikoo/es5-ext/compare/v0.10.15...v0.10.16) (2017-05-09)
+
+### Features
+
+- add String.prototype.count ([2e53241](https://github.com/medikoo/es5-ext/commit/2e53241))
+
+## Changelog for previous versions
+
+See `CHANGES` file
diff --git a/node_modules/es5-ext/CHANGES b/node_modules/es5-ext/CHANGES
new file mode 100644
index 00000000..bb84baba
--- /dev/null
+++ b/node_modules/es5-ext/CHANGES
@@ -0,0 +1,650 @@
+For recent changelog see CHANGELOG.md
+
+-----
+
+v0.10.15 -- 2017.03.20
+* Fix Object.isValue (it was actually isNotValue)
+
+v0.10.14 -- 2017.03.15
+* Object.isValue util
+
+v0.10.13 -- 2017.03.13
+* Introduce JSON.safeStringify
+* Improve message handling in error/custom
+* Fix Array#concat shim
+* Improve Array#flatten algorithm so it's stack trace friendly
+* Make Object.isObject ES3 compatible
+
+v0.10.12 -- 2016.07.01
+* Ensure symbols are copied in Object.mixin
+* Prevent RangeError errors in array#flatten
+* Do not validate invalidate dates in validDate
+
+v0.10.11 -- 2015.12.18
+* Ensure that check for implementation of RegExp flags doesn't crash in V8 (thanks @mathiasbynens)
+
+v0.10.10 -- 2015.12.11
+* Add Object.isNumberValue util
+
+v0.10.9 -- 2015.12.01
+* Add Object.ensureNaturalNumber and Object.ensureNaturalNumberValue
+
+v0.10.8 -- 2015.10.02
+* Add Number.isNatural
+* Add Object.find and Object.findKey
+* Support arrays in Object.copyDeep
+* Fix iteration issue in forEachRight and someRight
+* Fix detection of native sinh
+* Depend on es6-symbol v3
+
+v0.10.7 -- 2015.04.22
+* New utlitities. They're convention differs from v0.10, as they were supposed to land in v1.
+ Still they're non breaking and start the conventions to be used in v1
+ * Object.validateArrayLike
+ * Object.validateArrayLikeObject
+ * Object.validateStringifiable
+ * Object.validateStringifiableValue
+ * Universal utilities for array-like/iterable objects
+ * Iterable.is
+ * Iterable.validate
+ * Iterable.validateObject
+ * Iterable.forEach
+* Fix camelToHyphen resolution, it must be absolutely reversable by hyphenToCamel
+* Fix calculations of large numbers in Math.tanh
+* Fix algorithm of Math.sinh
+* Fix indexes to not use real symbols
+* Fix length of String.fromCodePoint
+* Fix tests of Array#copyWithin
+* Update Travis CI configuration
+
+v0.10.6 -- 2015.02.02
+* Fix handling of infinite values in Math.trunc
+* Fix handling of getters in Object.normalizeOptions
+
+v0.10.5 -- 2015.01.20
+* Add Function#toStringTokens
+* Add Object.serialize and Object.unserialize
+* Add String.randomUniq
+* Fix Strin#camelToHyphen issue with tokens that end with digit
+* Optimise Number.isInteger logic
+* Improve documentation
+* Configure lint scripts
+* Fix spelling of LICENSE
+
+v0.10.4 -- 2014.04.30
+* Assure maximum spec compliance of Array.of and Array.from (thanks @mathiasbynens)
+* Improve documentations
+
+v0.10.3 -- 2014.04.29
+Provide accurate iterators handling:
+* Array.from improvements:
+ * Assure right unicode symbols resolution when processing strings in Array.from
+ * Rely on ES6 symbol shim and use native @@iterator Symbol if provided by environment
+* Add methods:
+ * Array.prototype.entries
+ * Array.prototype.keys
+ * Array.prototype.values
+ * Array.prototype[@@iterator]
+ * String.prototype[@@iterator]
+
+Improve documentation
+
+v0.10.2 -- 2014.04.24
+- Simplify and deprecate `isCallable`. It seems in ES5 based engines there are
+ no callable objects which are `typeof obj !== 'function'`
+- Update Array.from map callback signature (up to latest resolution of TC39)
+- Improve documentation
+
+v0.10.1 -- 2014.04.14
+Bump version for npm
+(Workaround for accidental premature publish & unpublish of v0.10.0 a while ago)
+
+v0.10.0 -- 2014.04.13
+Major update:
+- All methods and function specified for ECMAScript 6 are now introduced as
+ shims accompanied with functions through which (optionally) they can be
+ implementend on native objects
+- Filename convention was changed to shorter and strictly lower case names. e.g.
+ `lib/String/prototype/starts-with` became `string/#/starts-with`
+- Generated functions are guaranteed to have expected length
+- Objects with null prototype (created via `Object.create(null)`) are widely
+ supported (older version have crashed due to implied `obj.hasOwnProperty` and
+ related invocations)
+- Support array subclasses
+- When handling lists do not limit its length to Uint32 range
+- Use newly introduced `Object.eq` for strict equality in place of `Object.is`
+- Iteration of Object have been improved so properties that were hidden or
+ removed after iteration started are not iterated.
+
+Additions:
+- `Array.isPlainArray`
+- `Array.validArray`
+- `Array.prototype.concat` (as updated with ES6)
+- `Array.prototype.copyWithin` (as introduced with ES6)
+- `Array.prototype.fill` (as introduced with ES6)
+- `Array.prototype.filter` (as updated with ES6)
+- `Array.prototype.findIndex` (as introduced with ES6)
+- `Array.prototype.map` (as updated with ES6)
+- `Array.prototype.separate`
+- `Array.prototype.slice` (as updated with ES6)
+- `Array.prototype.splice` (as updated with ES6)
+- `Function.prototype.copy`
+- `Math.acosh` (as introduced with ES6)
+- `Math.atanh` (as introduced with ES6)
+- `Math.cbrt` (as introduced with ES6)
+- `Math.clz32` (as introduced with ES6)
+- `Math.cosh` (as introduced with ES6)
+- `Math.expm1` (as introduced with ES6)
+- `Math.fround` (as introduced with ES6)
+- `Math.hypot` (as introduced with ES6)
+- `Math.imul` (as introduced with ES6)
+- `Math.log2` (as introduced with ES6)
+- `Math.log10` (as introduced with ES6)
+- `Math.log1p` (as introduced with ES6)
+- `Math.sinh` (as introduced with ES6)
+- `Math.tanh` (as introduced with ES6)
+- `Math.trunc` (as introduced with ES6)
+- `Number.EPSILON` (as introduced with ES6)
+- `Number.MIN_SAFE_INTEGER` (as introduced with ES6)
+- `Number.MAX_SAFE_INTEGER` (as introduced with ES6)
+- `Number.isFinite` (as introduced with ES6)
+- `Number.isInteger` (as introduced with ES6)
+- `Number.isSafeInteger` (as introduced with ES6)
+- `Object.create` (with fix for V8 issue which disallows prototype turn of
+ objects derived from null
+- `Object.eq` - Less restrictive version of `Object.is` based on SameValueZero
+ algorithm
+- `Object.firstKey`
+- `Object.keys` (as updated with ES6)
+- `Object.mixinPrototypes`
+- `Object.primitiveSet`
+- `Object.setPrototypeOf` (as introduced with ES6)
+- `Object.validObject`
+- `RegExp.escape`
+- `RegExp.prototype.match` (as introduced with ES6)
+- `RegExp.prototype.replace` (as introduced with ES6)
+- `RegExp.prototype.search` (as introduced with ES6)
+- `RegExp.prototype.split` (as introduced with ES6)
+- `RegExp.prototype.sticky` (as introduced with ES6)
+- `RegExp.prototype.unicode` (as introduced with ES6)
+- `String.fromCodePoint` (as introduced with ES6)
+- `String.raw` (as introduced with ES6)
+- `String.prototype.at`
+- `String.prototype.codePointAt` (as introduced with ES6)
+- `String.prototype.normalize` (as introduced with ES6)
+- `String.prototype.plainReplaceAll`
+
+Removals:
+- `reserved` set
+- `Array.prototype.commonLeft`
+- `Function.insert`
+- `Function.remove`
+- `Function.prototype.silent`
+- `Function.prototype.wrap`
+- `Object.descriptor` Move to external `d` project.
+ See: https://github.com/medikoo/d
+- `Object.diff`
+- `Object.extendDeep`
+- `Object.reduce`
+- `Object.values`
+- `String.prototype.trimCommonLeft`
+
+Renames:
+- `Function.i` into `Function.identity`
+- `Function.k` into `Function.constant`
+- `Number.toInt` into `Number.toInteger`
+- `Number.toUint` into `Number.toPosInteger`
+- `Object.extend` into `Object.assign` (as introduced in ES 6)
+- `Object.extendProperties` into `Object.mixin`, with improved internal
+ handling, so it matches temporarily specified `Object.mixin` for ECMAScript 6
+- `Object.isList` into `Object.isArrayLike`
+- `Object.mapToArray` into `Object.toArray` (with fixed function length)
+- `Object.toPlainObject` into `Object.normalizeOptions` (as this is the real
+ use case where we use this function)
+- `Function.prototype.chain` into `Function.prototype.compose`
+- `Function.prototype.match` into `Function.prototype.spread`
+- `String.prototype.format` into `String.formatMethod`
+
+Improvements & Fixes:
+- Remove workaround for primitive values handling in object iterators
+- `Array.from`: Update so it follows ES 6 spec
+- `Array.prototype.compact`: filters just null and undefined values
+ (not all falsies)
+- `Array.prototype.eIndexOf` and `Array.prototype.eLastIndexOf`: fix position
+ handling, improve internals
+- `Array.prototype.find`: return undefined not null, in case of not found
+ (follow ES 6)
+- `Array.prototype.remove` fix function length
+- `Error.custom`: simplify, Custom class case is addressed by outer
+ `error-create` project -> https://github.com/medikoo/error-create
+- `Error.isError` true only for Error instances (remove detection of host
+ Exception objects)
+- `Number.prototype.pad`: Normalize negative pad
+- `Object.clear`: Handle errors same way as in `Object.assign`
+- `Object.compact`: filters just null and undefined values (not all falsies)
+- `Object.compare`: Take into account NaN values
+- `Object.copy`: Split into `Object.copy` and `Object.copyDeep`
+- `Object.isCopy`: Separate into `Object.isCopy` and `Object.isCopyDeep`, where
+ `isCopyDeep` handles nested plain objects and plain arrays only
+- `String.prototype.endsWith`: Adjust up to ES6 specification
+- `String.prototype.repeat`: Adjust up to ES6 specification and improve algorithm
+- `String.prototype.simpleReplace`: Rename into `String.prototype.plainReplace`
+- `String.prototype.startsWith`: Adjust up to ES6 specification
+- Update lint rules, and adjust code to that
+- Update Travis CI configuration
+- Remove Makefile (it's cross-env utility)
+
+v0.9.2 -- 2013.03.11
+Added:
+* Array.prototype.isCopy
+* Array.prototype.isUniq
+* Error.CustomError
+* Function.validFunction
+* Object.extendDeep
+* Object.descriptor.binder
+* Object.safeTraverse
+* RegExp.validRegExp
+* String.prototype.capitalize
+* String.prototype.simpleReplace
+
+Fixed:
+* Fix Array.prototype.diff for sparse arrays
+* Accept primitive objects as input values in Object iteration methods and
+ Object.clear, Object.count, Object.diff, Object.extend,
+ Object.getPropertyNames, Object.values
+* Pass expected arguments to callbacks of Object.filter, Object.mapKeys,
+ Object.mapToArray, Object.map
+* Improve callable callback support in Object.mapToArray
+
+v0.9.1 -- 2012.09.17
+* Object.reduce - reduce for hash-like collections
+* Accapt any callable object as callback in Object.filter, mapKeys and map
+* Convention cleanup
+
+v0.9.0 -- 2012.09.13
+We're getting to real solid API
+
+Removed:
+* Function#memoize - it's grown up to be external package, to be soon published
+ as 'memoizee'
+* String.guid - it doesn't fit es5-ext (extensions) concept, will be provided as
+ external package
+# Function.arguments - obsolete
+# Function.context - obsolete
+# Function#flip - not readable when used, so it was never used
+# Object.clone - obsolete and confusing
+
+Added:
+* String#camelToHyphen - String format convertion
+
+Renamed:
+* String#dashToCamelCase -> String#hyphenToCamel
+
+Fixes:
+* Object.isObject - Quote names in literals that match reserved keywords
+ (older implementations crashed on that)
+* String#repeat - Do not accept negative values (coerce them to 1)
+
+Improvements:
+* Array#remove - Accepts many arguments, we can now remove many values at once
+* Object iterators (forEach, map, some) - Compare function invoked with scope
+ object bound to this
+* Function#curry - Algorithm cleanup
+* Object.isCopy - Support for all types, not just plain objects
+* Object.isPlainObject - Support for cross-frame objects
+* Do not memoize any of the functions, it shouldn't be decided internally
+* Remove Object.freeze calls in reserved, it's not up to convention
+* Improved documentation
+* Better linting (hard-core approach using both JSLint mod and JSHint)
+* Optional arguments are now documented in funtions signature
+
+v0.8.2 -- 2012.06.22
+Fix errors in Array's intersection and exclusion methods, related to improper
+usage of contains method
+
+v0.8.1 -- 2012.06.13
+Reorganized internal logic of Function.prototype.memoize. So it's more safe now
+and clears cache properly. Additionally preventCache option was provided.
+
+v0.8.0 -- 2012.05.28
+Again, major overhaul. Probably last experimental stuff was trashed, all API
+looks more like standard extensions now.
+
+Changes:
+* Turn all Object.prototype extensions into functions and move them to Object
+namespace. We learned that extending Object.prototype is bad idea in any case.
+* Rename Function.prototype.curry into Function.prototype.partial. This function
+ is really doing partial application while currying is slightly different
+ concept.
+* Convert Function.prototype.ncurry to new implementation of
+ Function.prototype.curry, it now serves real curry concept additionaly it
+ covers use cases for aritize and hold, which were removed.
+* Rename Array's peek to last, and provide support for sparse arrays in it
+* Rename Date's monthDaysCount into daysInMonth
+* Simplify object iterators, now order of iteration can be configured with just
+ compareFn argument (no extra byKeys option)
+* Rename Object.isDuplicate to Object.isCopy
+* Rename Object.isEqual to Object.is which is compatible with future 'is'
+ keyword
+* Function.memoize is now Function.prototype.memoize. Additionally clear cache
+ functionality is added, and access to original arguments object.
+* Rename validation functions: assertNotNull to validValue, assertCallable to
+ validCallable. validValue was moved to Object namespace. On success they now
+ return validated value instead of true, it supports better composition.
+ Additionally created Date.validDate and Error.validError
+* All documentation is now held in README.md not in code files.
+* Move guid to String namespace. All guids now start with numbers.
+* Array.generate: fill argument is now optional
+* Object.toArray is now Array.from (as new ES6 specification draft suggests)
+* All methods that rely on indexOf or lastIndexOf, now rely on egal (Object.is)
+ versions of them (eIndexOf, eLastIndexOf)
+* Turn all get* functions that returned methods into actuall methods (get*
+ functionality can still be achieved with help of Function.prototype.partial).
+ So: Date.getFormat is now Date.prototype.format,
+ Number.getPad is now Number.prototype.pad,
+ String.getFormat is now String.prototype.format,
+ String.getIndent is now String.prototype.indent,
+ String.getPad is now String.prototype.pad
+* Refactored Object.descriptor, it is now just two functions, main one and
+ main.gs, main is for describing values, and gs for describing getters and
+ setters. Configuration is passed with first argument as string e.g. 'ce' for
+ configurable and enumerable. If no configuration string is provided then by
+ default it returns configurable and writable but not enumerable for value or
+ configurable but not enumerable for getter/setter
+* Function.prototype.silent now returns prepared function (it was
+ expected to be fixed for 0.7)
+* Reserved keywords map (reserved) is now array not hash.
+* Object.merge is now Object.extend (while former Object.extend was completely
+ removed) - 'extend' implies that we change object, not creating new one (as
+ 'merge' may imply). Similarily Object.mergeProperties was renamed to
+ Object.extendProperties
+* Position argument support in Array.prototype.contains and
+ String.prototype.contains (so it follows ES6 specification draft)
+* endPosition argument support in String.prototype.endsWith and fromPosition
+ argument support in String.prototype.startsWith (so it follows ES6
+ specification draft)
+* Better and cleaner String.prototype.indent implementation. No default value
+ for indent string argument, optional nest value (defaults to 1), remove
+ nostart argument
+* Correct length values for most methods (so they reflect length of similar
+ methods in standard)
+* Length argument is now optional in number and string pad methods.
+* Improve arguments validation in general, so it adheres to standard conventions
+* Fixed format of package.json
+
+Removed methods and functions:
+* Object.prototype.slice - Object is not ordered collection, so slice doesn't
+ make sense.
+* Function's rcurry, rncurry, s - too cumbersome for JS, not many use cases for
+ that
+* Function.prototype.aritize and Function.prototype.hold - same functionality
+ can be achieved with new Function.prototype.curry
+* Function.prototype.log - provided more generic Function.prototype.wrap for
+ same use case
+* getNextIdGenerator - no use case for that (String.guid should be used if
+ needed)
+* Object.toObject - Can be now acheived with Object(validValue(x))
+* Array.prototype.someValue - no real use case (personally used once and
+ case was already controversial)
+* Date.prototype.duration - moved to external package
+* Number.getAutoincrement - No real use case
+* Object.prototype.extend, Object.prototype.override,
+ Object.prototype.plainCreate, Object.prototype.plainExtend - It was probably
+ too complex, same should be achieved just with Object.create,
+ Object.descriptor and by saving references to super methods in local scope.
+* Object.getCompareBy - Functions should be created individually for each use
+ case
+* Object.get, Object.getSet, Object.set, Object.unset - Not many use cases and
+ same can be easily achieved with simple inline function
+* String.getPrefixWith - Not real use case for something that can be easily
+ achieved with '+' operator
+* Object.isPrimitive - It's just negation of Object.isObject
+* Number.prototype.isLess, Number.prototype.isLessOrEqual - they shouldn't be in
+ Number namespace and should rather be addressed with simple inline functions.
+* Number.prototype.subtract - Should rather be addressed with simple inline
+ function
+
+New methods and functions:
+* Array.prototype.lastIndex - Returns last declared index in array
+* String.prototype.last - last for strings
+* Function.prototype.wrap - Wrap function with other, it allows to specify
+ before and after behavior transform return value or prevent original function
+ from being called.
+* Math.sign - Returns sign of a number (already in ES6 specification draft)
+* Number.toInt - Converts value to integer (already in ES6 specification draft)
+* Number.isNaN - Returns true if value is NaN (already in ES6 specification
+ draft)
+* Number.toUint - Converts value to unsigned integer
+* Number.toUint32 - Converts value to 32bit unsigned integer
+* Array.prototype.eIndexOf, eLastIndexOf - Egal version (that uses Object.is) of
+ standard methods (all methods that were using native indexOf or lastIndexOf
+ now uses eIndexOf and elastIndexOf respectively)
+* Array.of - as it's specified for ES6
+
+Fixes:
+* Fixed binarySearch so it always returns valid list index
+* Object.isList - it failed on lists that are callable (e.g. NodeList in Nitro
+ engine)
+* Object.map now supports third argument for callback
+
+v0.7.1 -- 2012.01.05
+New methods:
+* Array.prototype.firstIndex - returns first valid index of array (for
+ sparse arrays it may not be '0'
+
+Improvements:
+* Array.prototype.first - now returns value for index returned by firstIndex
+* Object.prototype.mapToArray - can be called without callback, then array of
+ key-value pairs is returned
+
+Fixes
+* Array.prototype.forEachRight, object's length read through UInt32 conversion
+
+v0.7.0 -- 2011.12.27
+Major update.
+Stepped back from experimental ideas and introduced more standard approach
+taking example from how ES5 methods and functions are designed. One exceptions
+is that, we don’t refrain from declaring methods for Object.prototype - it’s up
+to developer whether how he decides to use it in his context (as function or as
+method).
+
+In general:
+* Removed any method 'functionalization' and functionalize method itself.
+ es5-ext declares plain methods, which can be configured to work as functions
+ with call.bind(method) - see documentation.
+* Removed separation of Object methods for ES5 (with descriptors) and
+ ES3 (plain) - we're following ES5 idea on that, some methods are intended just
+ for enumerable properties and some are for all properties, all are declared
+ for Object.prototype
+* Removed separation of Array generic (collected in List folder) and not generic
+ methods (collected in Array folder). Now all methods are generic and are in
+ Array/prototype folder. This separation also meant, that methods in Array are
+ usually destructive. We don’t do that separation now, there’s generally no use
+ case for destructive iterators, we should be fine with one version of each
+ method, (same as ES5 is fine with e.g. one, non destructive 'filter' method)
+* Folder structure resembles tree of native ES5 Objects
+* All methods are written with ES5 conventions in mind, it means that most
+ methods are generic and can be run on any object. In more detail:
+ ** Array.prototype and Object.prototype methods can be run on any object (any
+ not null or undefined value),
+ ** Date.prototype methods should be called only on Date instances.
+ ** Function.prototype methods can be called on any callable objects (not
+ necessarily functions)
+ ** Number.prototype & String.prototype methods can be called on any value, in
+ case of Number it it’ll be degraded to number, in case of string it’ll be
+ degraded to string.
+* Travis CI support (only for Node v0.6 branch, as v0.4 has buggy V8 version)
+
+Improvements for existing functions and methods:
+* Function.memoize (was Function.cache) is now fully generic, can operate on any
+ type of arguments and it’s NaN safe (all NaN objects are considered equal)
+* Method properties passed to Object.prototype.extend or
+ Object.prototype.override can aside of _super optionally take prototype object
+ via _proto argument
+* Object iterators: forEach, mapToArray and every can now iterate in specified
+ order
+* pluck, invoke and other functions that return reusable functions or methods
+ have now their results memoized.
+
+New methods:
+* Global: assertNotNull, getNextIdGenerator, guid, isEqual, isPrimitive,
+ toObject
+* Array: generate
+* Array.prototype: binarySearch, clear, contains, diff, exclusion, find, first,
+ forEachRight, group, indexesOf, intersection, remove, someRight, someValue
+* Boolean: isBoolean
+* Date: isDate
+* Function: arguments, context, insert, isArguments, remove
+* Function.prototype: not, silent
+* Number: getAutoincrement, isNumber
+* Number.prototype: isLessOrEqual, isLess, subtract
+* Object: assertCallable, descriptor (functions for clean descriptors),
+ getCompareBy, isCallable, isObject
+* Object.prototype: clone (real clone), compact, count, diff, empty,
+ getPropertyNames, get, keyOf, mapKeys, override, plainCreate, plainExtend,
+ slice, some, unset
+* RegExp: isRegExp
+* String: getPrefixWith, isString
+* String.prototype: caseInsensitiveCompare, contains, isNumeric
+
+Renamed methods:
+* Date.clone -> Date.prototype.copy
+* Date.format -> Date.getFormat
+* Date/day/floor -> Date.prototype.floorDay
+* Date/month/floor -> Date.prototype.floorMonth
+* Date/month/year -> Date.prototype.floorYear
+* Function.cache -> Function.memoize
+* Function.getApplyArg -> Function.prototype.match
+* Function.sequence -> Function.prototype.chain
+* List.findSameStartLength -> Array.prototype.commonLeft
+* Number.pad -> Number.getPad
+* Object/plain/clone -> Object.prototype.copy
+* Object/plain/elevate -> Object.prototype.flatten
+* Object/plain/same -> Object.prototype.isDuplicate
+* Object/plain/setValue -> Object.getSet
+* String.format -> String.getFormat
+* String.indent -> String.getIndent
+* String.pad -> String.getPad
+* String.trimLeftStr -> String.prototype.trimCommonLeft
+* Object.merge -> Object.prototype.mergeProperties
+* Object/plain/pluck -> Object.prototype.get
+* Array.clone is now Array.prototype.copy and can be used also on any array-like
+ objects
+* List.isList -> Object.isList
+* List.toArray -> Object.prototype.toArray
+* String/convert/dashToCamelCase -> String.prototype.dashToCamelCase
+
+Removed methods:
+* Array.compact - removed destructive version (that operated on same array), we
+ have now non destructive version as Array.prototype.compact.
+* Function.applyBind -> use apply.bind directly
+* Function.bindBind -> use bind.bind directly
+* Function.callBind -> use call.bind directly
+* Fuction.clone -> no valid use case
+* Function.dscope -> controversial approach, shouldn’t be considered seriously
+* Function.functionalize -> It was experimental but standards are standards
+* List/sort/length -> It can be easy obtained by Object.getCompareBy(‘length’)
+* List.concat -> Concat’s for array-like’s makes no sense, just convert to array
+ first
+* List.every -> Use Array.prototype.every directly
+* List.filter -> Use Array.prototype.filter directly
+* List.forEach -> User Array.prototype.forEach directly
+* List.isListObject -> No valid use case, do: isList(list) && (typeof list ===
+ 'object’)
+* List.map -> Use Array.prototype.map directly
+* List.reduce -> Use Array.prototype.reduce directly
+* List.shiftSame -> Use Array.prototype.commonLeft and do slice
+* List.slice -> Use Array.prototype.slice directly
+* List.some -> Use Array.prototype.some directly
+* Object.bindMethods -> it was version that considered descriptors, we have now
+ Object.prototype.bindMethods which operates only on enumerable properties
+* Object.every -> version that considered all properties, we have now
+ Object.prototype.every which iterates only enumerables
+* Object.invoke -> no use case
+* Object.mergeDeep -> no use case
+* Object.pluck -> no use case
+* Object.same -> it considered descriptors, now there’s only Object.isDuplicate
+ which compares only enumerable properties
+* Object.sameType -> no use case
+* Object.toDescriptor and Object.toDescriptors -> replaced by much nicer
+ Object.descriptor functions
+* Object/plain/link -> no use case (it was used internally only by
+ Object/plain/merge)
+* Object/plain/setTrue -> now easily configurable by more universal
+ Object.getSet(true)
+* String.trimRightStr -> Eventually String.prototype.trimCommonRight will be
+ added
+
+v0.6.3 -- 2011.12.12
+* Cleared npm warning for misnamed property in package.json
+
+v0.6.2 -- 2011.08.12
+* Calling String.indent without scope (global scope then) now treated as calling
+ it with null scope, it allows more direct invocations when using default nest
+ string: indent().call(str, nest)
+
+v0.6.1 -- 2011.08.08
+* Added TAD test suite to devDependencies, configured test commands.
+ Tests can be run with 'make test' or 'npm test'
+
+v0.6.0 -- 2011.08.07
+New methods:
+* Array: clone, compact (in place)
+* Date: format, duration, clone, monthDaysCount, day.floor, month.floor,
+ year.floor
+* Function: getApplyArg, , ncurry, rncurry, hold, cache, log
+* List: findSameStartLength, shiftSame, peek, isListObject
+* Number: pad
+* Object: sameType, toString, mapToArray, mergeDeep, toDescriptor,
+ toDescriptors, invoke
+* String: startsWith, endsWith, indent, trimLeftStr, trimRightStr, pad, format
+
+Fixed:
+* Object.extend does now prototypal extend as exptected
+* Object.merge now tries to overwrite only configurable properties
+* Function.flip
+
+Improved:
+* Faster List.toArray
+* Better global retrieval
+* Functionalized all Function methods
+* Renamed bindApply and bindCall to applyBind and callBind
+* Removed Function.inherit (as it's unintuitive curry clone)
+* Straightforward logic in Function.k
+* Fixed naming of some tests files (letter case issue)
+* Renamed Function.saturate into Function.lock
+* String.dashToCamelCase digits support
+* Strings now considered as List objects
+* Improved List.compact
+* Concise logic for List.concat
+* Test wit TAD in clean ES5 context
+
+v0.5.1 -- 2011.07.11
+* Function's bindBind, bindCall and bindApply now more versatile
+
+v0.5.0 -- 2011.07.07
+* Removed Object.is and List.apply
+* Renamed Object.plain.is to Object.plain.isPlainObject (keep naming convention
+ consistent)
+* Improved documentation
+
+v0.4.0 -- 2011.07.05
+* Take most functions on Object to Object.plain to keep them away from object
+ descriptors
+* Object functions with ES5 standard in mind (object descriptors)
+
+v0.3.0 -- 2011.06.24
+* New functions
+* Consistent file naming (dash instead of camelCase)
+
+v0.2.1 -- 2011.05.28
+* Renamed Functions.K and Function.S to to lowercase versions (use consistent
+ naming)
+
+v0.2.0 -- 2011.05.28
+* Renamed Array folder to List (as its generic functions for array-like objects)
+* Added Makefile
+* Added various functions
+
+v0.1.0 -- 2011.05.24
+* Initial version
diff --git a/node_modules/es5-ext/LICENSE b/node_modules/es5-ext/LICENSE
new file mode 100644
index 00000000..89a96eac
--- /dev/null
+++ b/node_modules/es5-ext/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2011-2019, Mariusz Nowak, @medikoo, medikoo.com
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/es5-ext/README.md b/node_modules/es5-ext/README.md
new file mode 100644
index 00000000..c7f09cd5
--- /dev/null
+++ b/node_modules/es5-ext/README.md
@@ -0,0 +1,1039 @@
+[![Build status][nix-build-image]][nix-build-url]
+[![Windows status][win-build-image]][win-build-url]
+![Transpilation status][transpilation-image]
+[![npm version][npm-image]][npm-url]
+
+# es5-ext
+
+## ECMAScript 5 extensions
+
+### (with respect to ECMAScript 6 standard)
+
+Shims for upcoming ES6 standard and other goodies implemented strictly with ECMAScript conventions in mind.
+
+It's designed to be used in compliant ECMAScript 5 or ECMAScript 6 environments. Older environments are not supported, although most of the features should work with correct ECMAScript 5 shim on board.
+
+When used in ECMAScript 6 environment, native implementation (if valid) takes precedence over shims.
+
+### Installation
+
+ $ npm install es5-ext
+
+To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
+
+### Usage
+
+#### ECMAScript 6 features
+
+You can force ES6 features to be implemented in your environment, e.g. following will assign `from` function to `Array` (only if it's not implemented already).
+
+```javascript
+require("es5-ext/array/from/implement");
+Array.from("foo"); // ['f', 'o', 'o']
+```
+
+You can also access shims directly, without fixing native objects. Following will return native `Array.from` if it's available and fallback to shim if it's not.
+
+```javascript
+var aFrom = require("es5-ext/array/from");
+aFrom("foo"); // ['f', 'o', 'o']
+```
+
+If you want to use shim unconditionally (even if native implementation exists) do:
+
+```javascript
+var aFrom = require("es5-ext/array/from/shim");
+aFrom("foo"); // ['f', 'o', 'o']
+```
+
+##### List of ES6 shims
+
+It's about properties introduced with ES6 and those that have been updated in new spec.
+
+- `Array.from` -> `require('es5-ext/array/from')`
+- `Array.of` -> `require('es5-ext/array/of')`
+- `Array.prototype.concat` -> `require('es5-ext/array/#/concat')`
+- `Array.prototype.copyWithin` -> `require('es5-ext/array/#/copy-within')`
+- `Array.prototype.entries` -> `require('es5-ext/array/#/entries')`
+- `Array.prototype.fill` -> `require('es5-ext/array/#/fill')`
+- `Array.prototype.filter` -> `require('es5-ext/array/#/filter')`
+- `Array.prototype.find` -> `require('es5-ext/array/#/find')`
+- `Array.prototype.findIndex` -> `require('es5-ext/array/#/find-index')`
+- `Array.prototype.keys` -> `require('es5-ext/array/#/keys')`
+- `Array.prototype.map` -> `require('es5-ext/array/#/map')`
+- `Array.prototype.slice` -> `require('es5-ext/array/#/slice')`
+- `Array.prototype.splice` -> `require('es5-ext/array/#/splice')`
+- `Array.prototype.values` -> `require('es5-ext/array/#/values')`
+- `Array.prototype[@@iterator]` -> `require('es5-ext/array/#/@@iterator')`
+- `Math.acosh` -> `require('es5-ext/math/acosh')`
+- `Math.asinh` -> `require('es5-ext/math/asinh')`
+- `Math.atanh` -> `require('es5-ext/math/atanh')`
+- `Math.cbrt` -> `require('es5-ext/math/cbrt')`
+- `Math.clz32` -> `require('es5-ext/math/clz32')`
+- `Math.cosh` -> `require('es5-ext/math/cosh')`
+- `Math.exmp1` -> `require('es5-ext/math/expm1')`
+- `Math.fround` -> `require('es5-ext/math/fround')`
+- `Math.hypot` -> `require('es5-ext/math/hypot')`
+- `Math.imul` -> `require('es5-ext/math/imul')`
+- `Math.log1p` -> `require('es5-ext/math/log1p')`
+- `Math.log2` -> `require('es5-ext/math/log2')`
+- `Math.log10` -> `require('es5-ext/math/log10')`
+- `Math.sign` -> `require('es5-ext/math/sign')`
+- `Math.signh` -> `require('es5-ext/math/signh')`
+- `Math.tanh` -> `require('es5-ext/math/tanh')`
+- `Math.trunc` -> `require('es5-ext/math/trunc')`
+- `Number.EPSILON` -> `require('es5-ext/number/epsilon')`
+- `Number.MAX_SAFE_INTEGER` -> `require('es5-ext/number/max-safe-integer')`
+- `Number.MIN_SAFE_INTEGER` -> `require('es5-ext/number/min-safe-integer')`
+- `Number.isFinite` -> `require('es5-ext/number/is-finite')`
+- `Number.isInteger` -> `require('es5-ext/number/is-integer')`
+- `Number.isNaN` -> `require('es5-ext/number/is-nan')`
+- `Number.isSafeInteger` -> `require('es5-ext/number/is-safe-integer')`
+- `Object.assign` -> `require('es5-ext/object/assign')`
+- `Object.keys` -> `require('es5-ext/object/keys')`
+- `Object.setPrototypeOf` -> `require('es5-ext/object/set-prototype-of')`
+- `Promise.prototype.finally` -> `require('es5-ext/promise/#/finally')`
+- `RegExp.prototype.match` -> `require('es5-ext/reg-exp/#/match')`
+- `RegExp.prototype.replace` -> `require('es5-ext/reg-exp/#/replace')`
+- `RegExp.prototype.search` -> `require('es5-ext/reg-exp/#/search')`
+- `RegExp.prototype.split` -> `require('es5-ext/reg-exp/#/split')`
+- `RegExp.prototype.sticky` -> Implement with `require('es5-ext/reg-exp/#/sticky/implement')`, use as function with `require('es5-ext/reg-exp/#/is-sticky')`
+- `RegExp.prototype.unicode` -> Implement with `require('es5-ext/reg-exp/#/unicode/implement')`, use as function with `require('es5-ext/reg-exp/#/is-unicode')`
+- `String.fromCodePoint` -> `require('es5-ext/string/from-code-point')`
+- `String.raw` -> `require('es5-ext/string/raw')`
+- `String.prototype.codePointAt` -> `require('es5-ext/string/#/code-point-at')`
+- `String.prototype.contains` -> `require('es5-ext/string/#/contains')`
+- `String.prototype.endsWith` -> `require('es5-ext/string/#/ends-with')`
+- `String.prototype.normalize` -> `require('es5-ext/string/#/normalize')`
+- `String.prototype.repeat` -> `require('es5-ext/string/#/repeat')`
+- `String.prototype.startsWith` -> `require('es5-ext/string/#/starts-with')`
+- `String.prototype[@@iterator]` -> `require('es5-ext/string/#/@@iterator')`
+
+#### Non ECMAScript standard features
+
+**es5-ext** provides also other utils, and implements them as if they were proposed for a standard. It mostly offers methods (not functions) which can directly be assigned to native prototypes:
+
+```javascript
+Object.defineProperty(Function.prototype, "partial", {
+ value: require("es5-ext/function/#/partial"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+});
+Object.defineProperty(Array.prototype, "flatten", {
+ value: require("es5-ext/array/#/flatten"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+});
+Object.defineProperty(String.prototype, "capitalize", {
+ value: require("es5-ext/string/#/capitalize"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+});
+```
+
+See [es5-extend](https://github.com/wookieb/es5-extend#es5-extend), a great utility that automatically will extend natives for you.
+
+**Important:** Remember to **not** extend natives in scope of generic reusable packages (e.g. ones you intend to publish to npm). Extending natives is fine **only** if you're the _owner_ of the global scope, so e.g. in final project you lead development of.
+
+When you're in situation when native extensions are not good idea, then you should use methods indirectly:
+
+```javascript
+var flatten = require("es5-ext/array/#/flatten");
+
+flatten.call([1, [2, [3, 4]]]); // [1, 2, 3, 4]
+```
+
+for better convenience you can turn methods into functions:
+
+```javascript
+var call = Function.prototype.call;
+var flatten = call.bind(require("es5-ext/array/#/flatten"));
+
+flatten([1, [2, [3, 4]]]); // [1, 2, 3, 4]
+```
+
+You can configure custom toolkit (like [underscorejs](http://underscorejs.org/)), and use it throughout your application
+
+```javascript
+var util = {};
+util.partial = call.bind(require("es5-ext/function/#/partial"));
+util.flatten = call.bind(require("es5-ext/array/#/flatten"));
+util.startsWith = call.bind(require("es5-ext/string/#/starts-with"));
+
+util.flatten([1, [2, [3, 4]]]); // [1, 2, 3, 4]
+```
+
+As with native ones most methods are generic and can be run on any type of object.
+
+## API
+
+### Global extensions
+
+#### global _(es5-ext/global)_
+
+Object that represents global scope
+
+### Array Constructor extensions
+
+#### from(arrayLike[, mapFn[, thisArg]]) _(es5-ext/array/from)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from).
+Returns array representation of _iterable_ or _arrayLike_. If _arrayLike_ is an instance of array, its copy is returned.
+
+#### generate([length[, …fill]]) _(es5-ext/array/generate)_
+
+Generate an array of pre-given _length_ built of repeated arguments.
+
+#### isPlainArray(x) _(es5-ext/array/is-plain-array)_
+
+Returns true if object is plain array (not instance of one of the Array's extensions).
+
+#### of([…items]) _(es5-ext/array/of)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.of).
+Create an array from given arguments.
+
+#### toArray(obj) _(es5-ext/array/to-array)_
+
+Returns array representation of `obj`. If `obj` is already an array, `obj` is returned back.
+
+#### validArray(obj) _(es5-ext/array/valid-array)_
+
+Returns `obj` if it's an array, otherwise throws `TypeError`
+
+### Array Prototype extensions
+
+#### arr.binarySearch(compareFn) _(es5-ext/array/#/binary-search)_
+
+In **sorted** list search for index of item for which _compareFn_ returns value closest to _0_.
+It's variant of binary search algorithm
+
+#### arr.clear() _(es5-ext/array/#/clear)_
+
+Clears the array
+
+#### arr.compact() _(es5-ext/array/#/compact)_
+
+Returns a copy of the context with all non-values (`null` or `undefined`) removed.
+
+#### arr.concat() _(es5-ext/array/#/concat)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.concat).
+ES6's version of `concat`. Supports `isConcatSpreadable` symbol, and returns array of same type as the context.
+
+#### arr.contains(searchElement[, position]) _(es5-ext/array/#/contains)_
+
+Whether list contains the given value.
+
+#### arr.copyWithin(target, start[, end]) _(es5-ext/array/#/copy-within)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.copywithin).
+
+#### arr.diff(other) _(es5-ext/array/#/diff)_
+
+Returns the array of elements that are present in context list but not present in other list.
+
+#### arr.eIndexOf(searchElement[, fromIndex]) _(es5-ext/array/#/e-index-of)_
+
+_egal_ version of `indexOf` method. [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) logic is used for comparision
+
+#### arr.eLastIndexOf(searchElement[, fromIndex]) _(es5-ext/array/#/e-last-index-of)_
+
+_egal_ version of `lastIndexOf` method. [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) logic is used for comparision
+
+#### arr.entries() _(es5-ext/array/#/entries)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.entries).
+Returns iterator object, which traverses the array. Each value is represented with an array, where first value is an index and second is corresponding to index value.
+
+#### arr.exclusion([…lists]]) _(es5-ext/array/#/exclusion)_
+
+Returns the array of elements that are found only in one of the lists (either context list or list provided in arguments).
+
+#### arr.fill(value[, start, end]) _(es5-ext/array/#/fill)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.fill).
+
+#### arr.filter(callback[, thisArg]) _(es5-ext/array/#/filter)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.filter).
+ES6's version of `filter`, returns array of same type as the context.
+
+#### arr.find(predicate[, thisArg]) _(es5-ext/array/#/find)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.find).
+Return first element for which given function returns true
+
+#### arr.findIndex(predicate[, thisArg]) _(es5-ext/array/#/find-index)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.findindex).
+Return first index for which given function returns true
+
+#### arr.first() _(es5-ext/array/#/first)_
+
+Returns value for first defined index
+
+#### arr.firstIndex() _(es5-ext/array/#/first-index)_
+
+Returns first declared index of the array
+
+#### arr.flatten() _(es5-ext/array/#/flatten)_
+
+Returns flattened version of the array
+
+#### arr.forEachRight(cb[, thisArg]) _(es5-ext/array/#/for-each-right)_
+
+`forEach` starting from last element
+
+#### arr.group(cb[, thisArg]) _(es5-ext/array/#/group)_
+
+Group list elements by value returned by _cb_ function
+
+#### arr.indexesOf(searchElement[, fromIndex]) _(es5-ext/array/#/indexes-of)_
+
+Returns array of all indexes of given value
+
+#### arr.intersection([…lists]) _(es5-ext/array/#/intersection)_
+
+Computes the array of values that are the intersection of all lists (context list and lists given in arguments)
+
+#### arr.isCopy(other) _(es5-ext/array/#/is-copy)_
+
+Returns true if both context and _other_ lists have same content
+
+#### arr.isUniq() _(es5-ext/array/#/is-uniq)_
+
+Returns true if all values in array are unique
+
+#### arr.keys() _(es5-ext/array/#/keys)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.keys).
+Returns iterator object, which traverses all array indexes.
+
+#### arr.last() _(es5-ext/array/#/last)_
+
+Returns value of last defined index
+
+#### arr.lastIndex() _(es5-ext/array/#/last)_
+
+Returns last defined index of the array
+
+#### arr.map(callback[, thisArg]) _(es5-ext/array/#/map)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.map).
+ES6's version of `map`, returns array of same type as the context.
+
+#### arr.remove(value[, …valuen]) _(es5-ext/array/#/remove)_
+
+Remove values from the array
+
+#### arr.separate(sep) _(es5-ext/array/#/separate)_
+
+Returns array with items separated with `sep` value
+
+#### arr.slice(callback[, thisArg]) _(es5-ext/array/#/slice)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.slice).
+ES6's version of `slice`, returns array of same type as the context.
+
+#### arr.someRight(cb[, thisArg]) _(es5-ext/array/#/someRight)_
+
+`some` starting from last element
+
+#### arr.splice(callback[, thisArg]) _(es5-ext/array/#/splice)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.splice).
+ES6's version of `splice`, returns array of same type as the context.
+
+#### arr.uniq() _(es5-ext/array/#/uniq)_
+
+Returns duplicate-free version of the array
+
+#### arr.values() _(es5-ext/array/#/values)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.values).
+Returns iterator object which traverses all array values.
+
+#### arr[@@iterator] _(es5-ext/array/#/@@iterator)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype-@@iterator).
+Returns iterator object which traverses all array values.
+
+### Boolean Constructor extensions
+
+#### isBoolean(x) _(es5-ext/boolean/is-boolean)_
+
+Whether value is boolean
+
+### Date Constructor extensions
+
+#### isDate(x) _(es5-ext/date/is-date)_
+
+Whether value is date instance
+
+#### validDate(x) _(es5-ext/date/valid-date)_
+
+If given object is not date throw TypeError in other case return it.
+
+### Date Prototype extensions
+
+#### date.copy(date) _(es5-ext/date/#/copy)_
+
+Returns a copy of the date object
+
+#### date.daysInMonth() _(es5-ext/date/#/days-in-month)_
+
+Returns number of days of date's month
+
+#### date.floorDay() _(es5-ext/date/#/floor-day)_
+
+Sets the date time to 00:00:00.000
+
+#### date.floorMonth() _(es5-ext/date/#/floor-month)_
+
+Sets date day to 1 and date time to 00:00:00.000
+
+#### date.floorYear() _(es5-ext/date/#/floor-year)_
+
+Sets date month to 0, day to 1 and date time to 00:00:00.000
+
+#### date.format(pattern) _(es5-ext/date/#/format)_
+
+Formats date up to given string. Supported patterns:
+
+- `%Y` - Year with century, 1999, 2003
+- `%y` - Year without century, 99, 03
+- `%m` - Month, 01..12
+- `%d` - Day of the month 01..31
+- `%H` - Hour (24-hour clock), 00..23
+- `%M` - Minute, 00..59
+- `%S` - Second, 00..59
+- `%L` - Milliseconds, 000..999
+
+### Error Constructor extensions
+
+#### custom(message/_, code, ext_/) _(es5-ext/error/custom)_
+
+Creates custom error object, optinally extended with `code` and other extension properties (provided with `ext` object)
+
+#### isError(x) _(es5-ext/error/is-error)_
+
+Whether value is an error (instance of `Error`).
+
+#### validError(x) _(es5-ext/error/valid-error)_
+
+If given object is not error throw TypeError in other case return it.
+
+### Error Prototype extensions
+
+#### err.throw() _(es5-ext/error/#/throw)_
+
+Throws error
+
+### Function Constructor extensions
+
+Some of the functions were inspired by [Functional JavaScript](http://osteele.com/sources/javascript/functional/) project by Olivier Steele
+
+#### constant(x) _(es5-ext/function/constant)_
+
+Returns a constant function that returns pregiven argument
+
+_k(x)(y) =def x_
+
+#### identity(x) _(es5-ext/function/identity)_
+
+Identity function. Returns first argument
+
+_i(x) =def x_
+
+#### invoke(name[, …args]) _(es5-ext/function/invoke)_
+
+Returns a function that takes an object as an argument, and applies object's
+_name_ method to arguments.
+_name_ can be name of the method or method itself.
+
+_invoke(name, …args)(object, …args2) =def object\[name\]\(…args, …args2\)_
+
+#### isArguments(x) _(es5-ext/function/is-arguments)_
+
+Whether value is arguments object
+
+#### isFunction(arg) _(es5-ext/function/is-function)_
+
+Whether value is instance of function
+
+#### noop() _(es5-ext/function/noop)_
+
+No operation function
+
+#### pluck(name) _(es5-ext/function/pluck)_
+
+Returns a function that takes an object, and returns the value of its _name_
+property
+
+_pluck(name)(obj) =def obj[name]_
+
+#### validFunction(arg) _(es5-ext/function/valid-function)_
+
+If given object is not function throw TypeError in other case return it.
+
+### Function Prototype extensions
+
+Some of the methods were inspired by [Functional JavaScript](http://osteele.com/sources/javascript/functional/) project by Olivier Steele
+
+#### fn.compose([…fns]) _(es5-ext/function/#/compose)_
+
+Applies the functions in reverse argument-list order.
+
+_f1.compose(f2, f3, f4)(…args) =def f1(f2(f3(f4(…arg))))_
+
+`compose` can also be used in plain function form as:
+
+_compose(f1, f2, f3, f4)(…args) =def f1(f2(f3(f4(…arg))))_
+
+#### fn.copy() _(es5-ext/function/#/copy)_
+
+Produces copy of given function
+
+#### fn.curry([n]) _(es5-ext/function/#/curry)_
+
+Invoking the function returned by this function only _n_ arguments are passed to the underlying function. If the underlying function is not saturated, the result is a function that passes all its arguments to the underlying function.
+If _n_ is not provided then it defaults to context function length
+
+_f.curry(4)(arg1, arg2)(arg3)(arg4) =def f(arg1, args2, arg3, arg4)_
+
+#### fn.lock([…args]) _(es5-ext/function/#/lock)_
+
+Returns a function that applies the underlying function to _args_, and ignores its own arguments.
+
+_f.lock(…args)(…args2) =def f(…args)_
+
+_Named after it's counterpart in Google Closure_
+
+#### fn.not() _(es5-ext/function/#/not)_
+
+Returns a function that returns boolean negation of value returned by underlying function.
+
+_f.not()(…args) =def !f(…args)_
+
+#### fn.partial([…args]) _(es5-ext/function/#/partial)_
+
+Returns a function that when called will behave like context function called with initially passed arguments. If more arguments are suplilied, they are appended to initial args.
+
+_f.partial(…args1)(…args2) =def f(…args1, …args2)_
+
+#### fn.spread() _(es5-ext/function/#/spread)_
+
+Returns a function that applies underlying function with first list argument
+
+_f.match()(args) =def f.apply(null, args)_
+
+#### fn.toStringTokens() _(es5-ext/function/#/to-string-tokens)_
+
+Serializes function into two (arguments and body) string tokens. Result is plain object with `args` and `body` properties.
+
+### Math extensions
+
+#### acosh(x) _(es5-ext/math/acosh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.acosh).
+
+#### asinh(x) _(es5-ext/math/asinh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.asinh).
+
+#### atanh(x) _(es5-ext/math/atanh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.atanh).
+
+#### cbrt(x) _(es5-ext/math/cbrt)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cbrt).
+
+#### clz32(x) _(es5-ext/math/clz32)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.clz32).
+
+#### cosh(x) _(es5-ext/math/cosh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cosh).
+
+#### expm1(x) _(es5-ext/math/expm1)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.expm1).
+
+#### fround(x) _(es5-ext/math/fround)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.fround).
+
+#### hypot([…values]) _(es5-ext/math/hypot)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot).
+
+#### imul(x, y) _(es5-ext/math/imul)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul).
+
+#### log1p(x) _(es5-ext/math/log1p)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log1p).
+
+#### log2(x) _(es5-ext/math/log2)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log2).
+
+#### log10(x) _(es5-ext/math/log10)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log10).
+
+#### sign(x) _(es5-ext/math/sign)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sign).
+
+#### sinh(x) _(es5-ext/math/sinh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sinh).
+
+#### tanh(x) _(es5-ext/math/tanh)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.tanh).
+
+#### trunc(x) _(es5-ext/math/trunc)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.trunc).
+
+### Number Constructor extensions
+
+#### EPSILON _(es5-ext/number/epsilon)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.epsilon).
+
+The difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately 2.2204460492503130808472633361816 x 10-16.
+
+#### isFinite(x) _(es5-ext/number/is-finite)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite).
+Whether value is finite. Differs from global isNaN that it doesn't do type coercion.
+
+#### isInteger(x) _(es5-ext/number/is-integer)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isinteger).
+Whether value is integer.
+
+#### isNaN(x) _(es5-ext/number/is-nan)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isnan).
+Whether value is NaN. Differs from global isNaN that it doesn't do type coercion.
+
+#### isNumber(x) _(es5-ext/number/is-number)_
+
+Whether given value is number
+
+#### isSafeInteger(x) _(es5-ext/number/is-safe-integer)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.issafeinteger).
+
+#### MAX*SAFE_INTEGER *(es5-ext/number/max-safe-integer)\_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.maxsafeinteger).
+The value of Number.MAX_SAFE_INTEGER is 9007199254740991.
+
+#### MIN*SAFE_INTEGER *(es5-ext/number/min-safe-integer)\_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.minsafeinteger).
+The value of Number.MIN_SAFE_INTEGER is -9007199254740991 (253-1).
+
+#### toInteger(x) _(es5-ext/number/to-integer)_
+
+Converts value to integer
+
+#### toPosInteger(x) _(es5-ext/number/to-pos-integer)_
+
+Converts value to positive integer. If provided value is less than 0, then 0 is returned
+
+#### toUint32(x) _(es5-ext/number/to-uint32)_
+
+Converts value to unsigned 32 bit integer. This type is used for array lengths.
+See: http://www.2ality.com/2012/02/js-integers.html
+
+### Number Prototype extensions
+
+#### num.pad(length[, precision]) _(es5-ext/number/#/pad)_
+
+Pad given number with zeros. Returns string
+
+### Object Constructor extensions
+
+#### assign(target, source[, …sourcen]) _(es5-ext/object/assign)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign).
+Extend _target_ by enumerable own properties of other objects. If properties are already set on target object, they will be overwritten.
+
+#### clear(obj) _(es5-ext/object/clear)_
+
+Remove all enumerable own properties of the object
+
+#### compact(obj) _(es5-ext/object/compact)_
+
+Returns copy of the object with all enumerable properties that have no falsy values
+
+#### compare(obj1, obj2) _(es5-ext/object/compare)_
+
+Universal cross-type compare function. To be used for e.g. array sort.
+
+#### copy(obj) _(es5-ext/object/copy)_
+
+Returns copy of the object with all enumerable properties.
+
+#### copyDeep(obj) _(es5-ext/object/copy-deep)_
+
+Returns deep copy of the object with all enumerable properties.
+
+#### count(obj) _(es5-ext/object/count)_
+
+Counts number of enumerable own properties on object
+
+#### create(obj[, properties]) _(es5-ext/object/create)_
+
+`Object.create` alternative that provides workaround for [V8 issue](http://code.google.com/p/v8/issues/detail?id=2804).
+
+When `null` is provided as a prototype, it's substituted with specially prepared object that derives from Object.prototype but has all Object.prototype properties shadowed with undefined.
+
+It's quirky solution that allows us to have plain objects with no truthy properties but with turnable prototype.
+
+Use only for objects that you plan to switch prototypes of and be aware of limitations of this workaround.
+
+#### eq(x, y) _(es5-ext/object/eq)_
+
+Whether two values are equal, using [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) algorithm.
+
+#### every(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/every)_
+
+Analogous to Array.prototype.every. Returns true if every key-value pair in this object satisfies the provided testing function.
+Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
+
+#### filter(obj, cb[, thisArg]) _(es5-ext/object/filter)_
+
+Analogous to Array.prototype.filter. Returns new object with properites for which _cb_ function returned truthy value.
+
+#### firstKey(obj) _(es5-ext/object/first-key)_
+
+Returns first enumerable key of the object, as keys are unordered by specification, it can be any key of an object.
+
+#### flatten(obj) _(es5-ext/object/flatten)_
+
+Returns new object, with flatten properties of input object
+
+_flatten({ a: { b: 1 }, c: { d: 1 } }) =def { b: 1, d: 1 }_
+
+#### forEach(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/for-each)_
+
+Analogous to Array.prototype.forEach. Calls a function for each key-value pair found in object
+Optionally _compareFn_ can be provided which assures that properties are iterated in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
+
+#### getPropertyNames() _(es5-ext/object/get-property-names)_
+
+Get all (not just own) property names of the object
+
+#### is(x, y) _(es5-ext/object/is)_
+
+Whether two values are equal, using [_SameValue_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) algorithm.
+
+#### isArrayLike(x) _(es5-ext/object/is-array-like)_
+
+Whether object is array-like object
+
+#### isCopy(x, y) _(es5-ext/object/is-copy)_
+
+Two values are considered a copy of same value when all of their own enumerable properties have same values.
+
+#### isCopyDeep(x, y) _(es5-ext/object/is-copy-deep)_
+
+Deep comparision of objects
+
+#### isEmpty(obj) _(es5-ext/object/is-empty)_
+
+True if object doesn't have any own enumerable property
+
+#### isObject(arg) _(es5-ext/object/is-object)_
+
+Whether value is not primitive
+
+#### isPlainObject(arg) _(es5-ext/object/is-plain-object)_
+
+Whether object is plain object, its protototype should be Object.prototype and it cannot be host object.
+
+#### keyOf(obj, searchValue) _(es5-ext/object/key-of)_
+
+Search object for value
+
+#### keys(obj) _(es5-ext/object/keys)_
+
+[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys).
+ES6's version of `keys`, doesn't throw on primitive input
+
+#### map(obj, cb[, thisArg]) _(es5-ext/object/map)_
+
+Analogous to Array.prototype.map. Creates a new object with properties which values are results of calling a provided function on every key-value pair in this object.
+
+#### mapKeys(obj, cb[, thisArg]) _(es5-ext/object/map-keys)_
+
+Create new object with same values, but remapped keys
+
+#### mixin(target, source) _(es5-ext/object/mixin)_
+
+Extend _target_ by all own properties of other objects. Properties found in both objects will be overwritten (unless they're not configurable and cannot be overwritten).
+_It was for a moment part of ECMAScript 6 draft._
+
+#### mixinPrototypes(target, …source]) _(es5-ext/object/mixin-prototypes)_
+
+Extends _target_, with all source and source's prototype properties.
+Useful as an alternative for `setPrototypeOf` in environments in which it cannot be shimmed (no `__proto__` support).
+
+#### normalizeOptions(options) _(es5-ext/object/normalize-options)_
+
+Normalizes options object into flat plain object.
+
+Useful for functions in which we either need to keep options object for future reference or need to modify it for internal use.
+
+- It never returns input `options` object back (always a copy is created)
+- `options` can be undefined in such case empty plain object is returned.
+- Copies all enumerable properties found down prototype chain.
+
+#### primitiveSet([…names]) _(es5-ext/object/primitive-set)_
+
+Creates `null` prototype based plain object, and sets on it all property names provided in arguments to true.
+
+#### safeTraverse(obj[, …names]) _(es5-ext/object/safe-traverse)_
+
+Safe navigation of object properties. See http://wiki.ecmascript.org/doku.php?id=strawman:existential_operator
+
+#### serialize(value) _(es5-ext/object/serialize)_
+
+Serialize value into string. Differs from [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that it serializes also dates, functions and regular expresssions.
+
+#### setPrototypeOf(object, proto) _(es5-ext/object/set-prototype-of)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof).
+If native version is not provided, it depends on existence of `__proto__` functionality, if it's missing, `null` instead of function is exposed.
+
+#### some(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/some)_
+
+Analogous to Array.prototype.some Returns true if any key-value pair satisfies the provided
+testing function.
+Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
+
+#### toArray(obj[, cb[, thisArg[, compareFn]]]) _(es5-ext/object/to-array)_
+
+Creates an array of results of calling a provided function on every key-value pair in this object.
+Optionally _compareFn_ can be provided which assures that results are added in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key).
+
+#### unserialize(str) _(es5-ext/object/unserialize)_
+
+Userializes value previously serialized with [serialize](#serializevalue-es5-extobjectserialize)
+
+#### validCallable(x) _(es5-ext/object/valid-callable)_
+
+If given object is not callable throw TypeError in other case return it.
+
+#### validObject(x) _(es5-ext/object/valid-object)_
+
+Throws error if given value is not an object, otherwise it is returned.
+
+#### validValue(x) _(es5-ext/object/valid-value)_
+
+Throws error if given value is `null` or `undefined`, otherwise returns value.
+
+### Promise Prototype extensions
+
+#### promise.finally(onFinally) _(es5-ext/promise/#/finally)_
+
+[_Introduced with ECMAScript 2018_](https://tc39.github.io/ecma262/#sec-promise.prototype.finally).
+
+### RegExp Constructor extensions
+
+#### escape(str) _(es5-ext/reg-exp/escape)_
+
+Escapes string to be used in regular expression
+
+#### isRegExp(x) _(es5-ext/reg-exp/is-reg-exp)_
+
+Whether object is regular expression
+
+#### validRegExp(x) _(es5-ext/reg-exp/valid-reg-exp)_
+
+If object is regular expression it is returned, otherwise TypeError is thrown.
+
+### RegExp Prototype extensions
+
+#### re.isSticky(x) _(es5-ext/reg-exp/#/is-sticky)_
+
+Whether regular expression has `sticky` flag.
+
+It's to be used as counterpart to [regExp.sticky](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-regexp.prototype.sticky) if it's not implemented.
+
+#### re.isUnicode(x) _(es5-ext/reg-exp/#/is-unicode)_
+
+Whether regular expression has `unicode` flag.
+
+It's to be used as counterpart to [regExp.unicode](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-regexp.prototype.unicode) if it's not implemented.
+
+#### re.match(string) _(es5-ext/reg-exp/#/match)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.match).
+
+#### re.replace(string, replaceValue) _(es5-ext/reg-exp/#/replace)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.replace).
+
+#### re.search(string) _(es5-ext/reg-exp/#/search)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.search).
+
+#### re.split(string) _(es5-ext/reg-exp/#/search)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.split).
+
+#### re.sticky _(es5-ext/reg-exp/#/sticky/implement)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.sticky).
+It's a getter, so only `implement` and `is-implemented` modules are provided.
+
+#### re.unicode _(es5-ext/reg-exp/#/unicode/implement)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.unicode).
+It's a getter, so only `implement` and `is-implemented` modules are provided.
+
+### String Constructor extensions
+
+#### formatMethod(fMap) _(es5-ext/string/format-method)_
+
+Creates format method. It's used e.g. to create `Date.prototype.format` method
+
+#### fromCodePoint([…codePoints]) _(es5-ext/string/from-code-point)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.fromcodepoint)
+
+#### isString(x) _(es5-ext/string/is-string)_
+
+Whether object is string
+
+#### randomUniq() _(es5-ext/string/random-uniq)_
+
+Returns randomly generated id, with guarantee of local uniqueness (no same id will be returned twice)
+
+#### raw(callSite[, …substitutions]) _(es5-ext/string/raw)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.raw)
+
+### String Prototype extensions
+
+#### str.at(pos) _(es5-ext/string/#/at)_
+
+_Proposed for ECMAScript 6/7 standard, but not (yet) in a draft_
+
+Returns a string at given position in Unicode-safe manner.
+Based on [implementation by Mathias Bynens](https://github.com/mathiasbynens/String.prototype.at).
+
+#### str.camelToHyphen() _(es5-ext/string/#/camel-to-hyphen)_
+
+Convert camelCase string to hyphen separated, e.g. one-two-three -> oneTwoThree.
+Useful when converting names from js property convention into filename convention.
+
+#### str.capitalize() _(es5-ext/string/#/capitalize)_
+
+Capitalize first character of a string
+
+#### str.caseInsensitiveCompare(str) _(es5-ext/string/#/case-insensitive-compare)_
+
+Case insensitive compare
+
+#### str.codePointAt(pos) _(es5-ext/string/#/code-point-at)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.codepointat)
+
+Based on [implementation by Mathias Bynens](https://github.com/mathiasbynens/String.prototype.codePointAt).
+
+#### str.contains(searchString[, position]) _(es5-ext/string/#/contains)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.contains)
+
+Whether string contains given string.
+
+#### str.endsWith(searchString[, endPosition]) _(es5-ext/string/#/ends-with)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.endswith).
+Whether strings ends with given string
+
+#### str.hyphenToCamel() _(es5-ext/string/#/hyphen-to-camel)_
+
+Convert hyphen separated string to camelCase, e.g. one-two-three -> oneTwoThree.
+Useful when converting names from filename convention to js property name convention.
+
+#### str.indent(str[, count]) _(es5-ext/string/#/indent)_
+
+Indents each line with provided _str_ (if _count_ given then _str_ is repeated _count_ times).
+
+#### str.last() _(es5-ext/string/#/last)_
+
+Return last character
+
+#### str.normalize([form]) _(es5-ext/string/#/normalize)_
+
+[_Introduced with ECMAScript 6_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize).
+Returns the Unicode Normalization Form of a given string.
+Based on Matsuza's version. Code used for integrated shim can be found at [github.com/walling/unorm](https://github.com/walling/unorm/blob/master/lib/unorm.js)
+
+#### str.pad(fill[, length]) _(es5-ext/string/#/pad)_
+
+Pad string with _fill_.
+If _length_ si given than _fill_ is reapated _length_ times.
+If _length_ is negative then pad is applied from right.
+
+#### str.repeat(n) _(es5-ext/string/#/repeat)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.repeat).
+Repeat given string _n_ times
+
+#### str.plainReplace(search, replace) _(es5-ext/string/#/plain-replace)_
+
+Simple `replace` version. Doesn't support regular expressions. Replaces just first occurrence of search string. Doesn't support insert patterns, therefore it is safe to replace text with text obtained programmatically (there's no need for additional _\$_ characters escape in such case).
+
+#### str.plainReplaceAll(search, replace) _(es5-ext/string/#/plain-replace-all)_
+
+Simple `replace` version. Doesn't support regular expressions. Replaces all occurrences of search string. Doesn't support insert patterns, therefore it is safe to replace text with text obtained programmatically (there's no need for additional _\$_ characters escape in such case).
+
+#### str.startsWith(searchString[, position]) _(es5-ext/string/#/starts-with)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.startswith).
+Whether strings starts with given string
+
+#### str[@@iterator] _(es5-ext/string/#/@@iterator)_
+
+[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype-@@iterator).
+Returns iterator object which traverses all string characters (with respect to unicode symbols)
+
+### Tests
+
+ $ npm test
+
+## Security contact information
+
+To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
+
+## es5-ext for enterprise
+
+Available as part of the Tidelift Subscription
+
+The maintainers of es5-ext and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-es5-ext?utm_source=npm-es5-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
+
+[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/es5-ext/branches/master/shields_badge.svg
+[nix-build-url]: https://semaphoreci.com/medikoo-org/es5-ext
+[win-build-image]: https://ci.appveyor.com/api/projects/status/3jox67ksw3p8hkwh/branch/master?svg=true
+[win-build-url]: https://ci.appveyor.com/project/medikoo/es5-ext
+[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg
+[npm-image]: https://img.shields.io/npm/v/es5-ext.svg
+[npm-url]: https://www.npmjs.com/package/es5-ext
diff --git a/node_modules/es5-ext/array/#/@@iterator/implement.js b/node_modules/es5-ext/array/#/@@iterator/implement.js
new file mode 100644
index 00000000..8073f2bc
--- /dev/null
+++ b/node_modules/es5-ext/array/#/@@iterator/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, require("es6-symbol").iterator, {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/@@iterator/index.js b/node_modules/es5-ext/array/#/@@iterator/index.js
new file mode 100644
index 00000000..1d0a3892
--- /dev/null
+++ b/node_modules/es5-ext/array/#/@@iterator/index.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = require("./is-implemented")()
+ ? Array.prototype[require("es6-symbol").iterator]
+ : require("./shim");
diff --git a/node_modules/es5-ext/array/#/@@iterator/is-implemented.js b/node_modules/es5-ext/array/#/@@iterator/is-implemented.js
new file mode 100644
index 00000000..6445c04e
--- /dev/null
+++ b/node_modules/es5-ext/array/#/@@iterator/is-implemented.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function () {
+ var arr = ["foo", 1], iterator, result;
+ if (typeof arr[iteratorSymbol] !== "function") return false;
+ iterator = arr[iteratorSymbol]();
+ if (!iterator) return false;
+ if (typeof iterator.next !== "function") return false;
+ result = iterator.next();
+ if (!result) return false;
+ if (result.value !== "foo") return false;
+ if (result.done !== false) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/array/#/@@iterator/shim.js b/node_modules/es5-ext/array/#/@@iterator/shim.js
new file mode 100644
index 00000000..307b1c0a
--- /dev/null
+++ b/node_modules/es5-ext/array/#/@@iterator/shim.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("../values/shim");
diff --git a/node_modules/es5-ext/array/#/_compare-by-length.js b/node_modules/es5-ext/array/#/_compare-by-length.js
new file mode 100644
index 00000000..db5a0400
--- /dev/null
+++ b/node_modules/es5-ext/array/#/_compare-by-length.js
@@ -0,0 +1,7 @@
+// Used internally to sort array of lists by length
+
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer");
+
+module.exports = function (arr1, arr2) { return toPosInt(arr1.length) - toPosInt(arr2.length); };
diff --git a/node_modules/es5-ext/array/#/binary-search.js b/node_modules/es5-ext/array/#/binary-search.js
new file mode 100644
index 00000000..bdabe272
--- /dev/null
+++ b/node_modules/es5-ext/array/#/binary-search.js
@@ -0,0 +1,27 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , callable = require("../../object/valid-callable")
+ , value = require("../../object/valid-value")
+ , floor = Math.floor;
+
+module.exports = function (compareFn) {
+ var length, low, high, middle;
+
+ value(this);
+ callable(compareFn);
+
+ length = toPosInt(this.length);
+ low = 0;
+ high = length - 1;
+
+ while (low <= high) {
+ middle = floor((low + high) / 2);
+ if (compareFn(this[middle]) < 0) high = middle - 1;
+ else low = middle + 1;
+ }
+
+ if (high < 0) return 0;
+ if (high >= length) return length - 1;
+ return high;
+};
diff --git a/node_modules/es5-ext/array/#/clear.js b/node_modules/es5-ext/array/#/clear.js
new file mode 100644
index 00000000..fd539c9b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/clear.js
@@ -0,0 +1,12 @@
+// Inspired by Google Closure:
+// http://closure-library.googlecode.com/svn/docs/
+// closure_goog_array_array.js.html#goog.array.clear
+
+"use strict";
+
+var value = require("../../object/valid-value");
+
+module.exports = function () {
+ value(this).length = 0;
+ return this;
+};
diff --git a/node_modules/es5-ext/array/#/compact.js b/node_modules/es5-ext/array/#/compact.js
new file mode 100644
index 00000000..462e100d
--- /dev/null
+++ b/node_modules/es5-ext/array/#/compact.js
@@ -0,0 +1,11 @@
+// Inspired by: http://documentcloud.github.com/underscore/#compact
+
+"use strict";
+
+var isValue = require("../../object/is-value");
+
+var filter = Array.prototype.filter;
+
+module.exports = function () {
+ return filter.call(this, function (val) { return isValue(val); });
+};
diff --git a/node_modules/es5-ext/array/#/concat/implement.js b/node_modules/es5-ext/array/#/concat/implement.js
new file mode 100644
index 00000000..714a3c1b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/concat/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "concat", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/concat/index.js b/node_modules/es5-ext/array/#/concat/index.js
new file mode 100644
index 00000000..deac0eee
--- /dev/null
+++ b/node_modules/es5-ext/array/#/concat/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.concat : require("./shim");
diff --git a/node_modules/es5-ext/array/#/concat/is-implemented.js b/node_modules/es5-ext/array/#/concat/is-implemented.js
new file mode 100644
index 00000000..ba5a1542
--- /dev/null
+++ b/node_modules/es5-ext/array/#/concat/is-implemented.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var SubArray = require("../../_sub-array-dummy-safe");
+
+module.exports = function () { return new SubArray().concat("foo") instanceof SubArray; };
diff --git a/node_modules/es5-ext/array/#/concat/shim.js b/node_modules/es5-ext/array/#/concat/shim.js
new file mode 100644
index 00000000..7e00f27a
--- /dev/null
+++ b/node_modules/es5-ext/array/#/concat/shim.js
@@ -0,0 +1,44 @@
+"use strict";
+
+var isPlainArray = require("../../is-plain-array")
+ , toPosInt = require("../../../number/to-pos-integer")
+ , isObject = require("../../../object/is-object")
+ , isConcatSpreadable = require("es6-symbol").isConcatSpreadable
+ , isArray = Array.isArray
+ , concat = Array.prototype.concat
+ , forEach = Array.prototype.forEach
+ , isSpreadable;
+
+isSpreadable = function (value) {
+ if (!value) return false;
+ if (!isObject(value)) return false;
+ if (value[isConcatSpreadable] !== undefined) {
+ return Boolean(value[isConcatSpreadable]);
+ }
+ return isArray(value);
+};
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (item/*, …items*/) {
+ var result;
+ if (!this || !isArray(this) || isPlainArray(this)) {
+ return concat.apply(this, arguments);
+ }
+ result = new this.constructor();
+ if (isSpreadable(this)) {
+ forEach.call(this, function (val, i) { result[i] = val; });
+ } else {
+ result[0] = this;
+ }
+ forEach.call(arguments, function (arg) {
+ var base;
+ if (isSpreadable(arg)) {
+ base = result.length;
+ result.length += toPosInt(arg.length);
+ forEach.call(arg, function (val, i) { result[base + i] = val; });
+ return;
+ }
+ result.push(arg);
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/contains.js b/node_modules/es5-ext/array/#/contains.js
new file mode 100644
index 00000000..cde6850e
--- /dev/null
+++ b/node_modules/es5-ext/array/#/contains.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var indexOf = require("./e-index-of");
+
+module.exports = function (searchElement/*, position*/) {
+ return indexOf.call(this, searchElement, arguments[1]) > -1;
+};
diff --git a/node_modules/es5-ext/array/#/copy-within/implement.js b/node_modules/es5-ext/array/#/copy-within/implement.js
new file mode 100644
index 00000000..4658fcb4
--- /dev/null
+++ b/node_modules/es5-ext/array/#/copy-within/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "copyWithin", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/copy-within/index.js b/node_modules/es5-ext/array/#/copy-within/index.js
new file mode 100644
index 00000000..37db0ece
--- /dev/null
+++ b/node_modules/es5-ext/array/#/copy-within/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.copyWithin : require("./shim");
diff --git a/node_modules/es5-ext/array/#/copy-within/is-implemented.js b/node_modules/es5-ext/array/#/copy-within/is-implemented.js
new file mode 100644
index 00000000..40c499e6
--- /dev/null
+++ b/node_modules/es5-ext/array/#/copy-within/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var arr = [1, 2, 3, 4, 5];
+ if (typeof arr.copyWithin !== "function") return false;
+ return String(arr.copyWithin(1, 3)) === "1,4,5,4,5";
+};
diff --git a/node_modules/es5-ext/array/#/copy-within/shim.js b/node_modules/es5-ext/array/#/copy-within/shim.js
new file mode 100644
index 00000000..6ed7e440
--- /dev/null
+++ b/node_modules/es5-ext/array/#/copy-within/shim.js
@@ -0,0 +1,45 @@
+// Taken from: https://github.com/paulmillr/es6-shim/
+
+"use strict";
+
+var toInteger = require("../../../number/to-integer")
+ , toPosInt = require("../../../number/to-pos-integer")
+ , validValue = require("../../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , max = Math.max
+ , min = Math.min;
+
+module.exports = function (target, start/*, end*/) {
+ var arr = validValue(this)
+ , end = arguments[2]
+ , length = toPosInt(arr.length)
+ , to
+ , from
+ , fin
+ , count
+ , direction;
+
+ target = toInteger(target);
+ start = toInteger(start);
+ end = end === undefined ? length : toInteger(end);
+
+ to = target < 0 ? max(length + target, 0) : min(target, length);
+ from = start < 0 ? max(length + start, 0) : min(start, length);
+ fin = end < 0 ? max(length + end, 0) : min(end, length);
+ count = min(fin - from, length - to);
+ direction = 1;
+
+ if (from < to && to < from + count) {
+ direction = -1;
+ from += count - 1;
+ to += count - 1;
+ }
+ while (count > 0) {
+ if (objHasOwnProperty.call(arr, from)) arr[to] = arr[from];
+ else delete arr[from];
+ from += direction;
+ to += direction;
+ count -= 1;
+ }
+ return arr;
+};
diff --git a/node_modules/es5-ext/array/#/diff.js b/node_modules/es5-ext/array/#/diff.js
new file mode 100644
index 00000000..002e6a33
--- /dev/null
+++ b/node_modules/es5-ext/array/#/diff.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var value = require("../../object/valid-value")
+ , contains = require("./contains")
+ , filter = Array.prototype.filter;
+
+module.exports = function (other) {
+ value(this);
+ value(other);
+ return filter.call(this, function (item) { return !contains.call(other, item); });
+};
diff --git a/node_modules/es5-ext/array/#/e-index-of.js b/node_modules/es5-ext/array/#/e-index-of.js
new file mode 100644
index 00000000..e3ed14e4
--- /dev/null
+++ b/node_modules/es5-ext/array/#/e-index-of.js
@@ -0,0 +1,28 @@
+"use strict";
+
+var numberIsNaN = require("../../number/is-nan")
+ , toPosInt = require("../../number/to-pos-integer")
+ , value = require("../../object/valid-value")
+ , indexOf = Array.prototype.indexOf
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , abs = Math.abs
+ , floor = Math.floor;
+
+module.exports = function (searchElement/*, fromIndex*/) {
+ var i, length, fromIndex, val;
+ if (!numberIsNaN(searchElement)) return indexOf.apply(this, arguments);
+
+ length = toPosInt(value(this).length);
+ fromIndex = arguments[1];
+ if (isNaN(fromIndex)) fromIndex = 0;
+ else if (fromIndex >= 0) fromIndex = floor(fromIndex);
+ else fromIndex = toPosInt(this.length) - floor(abs(fromIndex));
+
+ for (i = fromIndex; i < length; ++i) {
+ if (objHasOwnProperty.call(this, i)) {
+ val = this[i];
+ if (numberIsNaN(val)) return i; // Jslint: ignore
+ }
+ }
+ return -1;
+};
diff --git a/node_modules/es5-ext/array/#/e-last-index-of.js b/node_modules/es5-ext/array/#/e-last-index-of.js
new file mode 100644
index 00000000..2f6a38a1
--- /dev/null
+++ b/node_modules/es5-ext/array/#/e-last-index-of.js
@@ -0,0 +1,31 @@
+"use strict";
+
+var numberIsNaN = require("../../number/is-nan")
+ , toPosInt = require("../../number/to-pos-integer")
+ , value = require("../../object/valid-value")
+ , lastIndexOf = Array.prototype.lastIndexOf
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , abs = Math.abs
+ , floor = Math.floor;
+
+module.exports = function (searchElement/*, fromIndex*/) {
+ var i, fromIndex, val;
+ if (!numberIsNaN(searchElement)) {
+ // Jslint: ignore
+ return lastIndexOf.apply(this, arguments);
+ }
+
+ value(this);
+ fromIndex = arguments[1];
+ if (isNaN(fromIndex)) fromIndex = toPosInt(this.length) - 1;
+ else if (fromIndex >= 0) fromIndex = floor(fromIndex);
+ else fromIndex = toPosInt(this.length) - floor(abs(fromIndex));
+
+ for (i = fromIndex; i >= 0; --i) {
+ if (objHasOwnProperty.call(this, i)) {
+ val = this[i];
+ if (numberIsNaN(val)) return i; // Jslint: ignore
+ }
+ }
+ return -1;
+};
diff --git a/node_modules/es5-ext/array/#/entries/implement.js b/node_modules/es5-ext/array/#/entries/implement.js
new file mode 100644
index 00000000..b89ce44b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/entries/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "entries", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/entries/index.js b/node_modules/es5-ext/array/#/entries/index.js
new file mode 100644
index 00000000..e7588f71
--- /dev/null
+++ b/node_modules/es5-ext/array/#/entries/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.entries : require("./shim");
diff --git a/node_modules/es5-ext/array/#/entries/is-implemented.js b/node_modules/es5-ext/array/#/entries/is-implemented.js
new file mode 100644
index 00000000..335f1c20
--- /dev/null
+++ b/node_modules/es5-ext/array/#/entries/is-implemented.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function () {
+ var arr = [1, "foo"], iterator, result;
+ if (typeof arr.entries !== "function") return false;
+ iterator = arr.entries();
+ if (!iterator) return false;
+ if (typeof iterator.next !== "function") return false;
+ result = iterator.next();
+ if (!result || !result.value) return false;
+ if (result.value[0] !== 0) return false;
+ if (result.value[1] !== 1) return false;
+ if (result.done !== false) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/array/#/entries/shim.js b/node_modules/es5-ext/array/#/entries/shim.js
new file mode 100644
index 00000000..f47af86e
--- /dev/null
+++ b/node_modules/es5-ext/array/#/entries/shim.js
@@ -0,0 +1,4 @@
+"use strict";
+
+var ArrayIterator = require("es6-iterator/array");
+module.exports = function () { return new ArrayIterator(this, "key+value"); };
diff --git a/node_modules/es5-ext/array/#/exclusion.js b/node_modules/es5-ext/array/#/exclusion.js
new file mode 100644
index 00000000..4e9e71d8
--- /dev/null
+++ b/node_modules/es5-ext/array/#/exclusion.js
@@ -0,0 +1,25 @@
+"use strict";
+
+var value = require("../../object/valid-value")
+ , aFrom = require("../from")
+ , toArray = require("../to-array")
+ , contains = require("./contains")
+ , byLength = require("./_compare-by-length")
+ , filter = Array.prototype.filter
+ , push = Array.prototype.push;
+
+module.exports = function (/* …lists*/) {
+ var lists, seen, result;
+ if (!arguments.length) return aFrom(this);
+ push.apply((lists = [this]), arguments);
+ lists.forEach(value);
+ seen = [];
+ result = [];
+ lists.sort(byLength).forEach(function (list) {
+ result = result
+ .filter(function (item) { return !contains.call(list, item); })
+ .concat(filter.call(list, function (item) { return !contains.call(seen, item); }));
+ push.apply(seen, toArray(list));
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/fill/implement.js b/node_modules/es5-ext/array/#/fill/implement.js
new file mode 100644
index 00000000..0efad163
--- /dev/null
+++ b/node_modules/es5-ext/array/#/fill/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "fill", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/fill/index.js b/node_modules/es5-ext/array/#/fill/index.js
new file mode 100644
index 00000000..6a66ae14
--- /dev/null
+++ b/node_modules/es5-ext/array/#/fill/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.fill : require("./shim");
diff --git a/node_modules/es5-ext/array/#/fill/is-implemented.js b/node_modules/es5-ext/array/#/fill/is-implemented.js
new file mode 100644
index 00000000..5d6d02e1
--- /dev/null
+++ b/node_modules/es5-ext/array/#/fill/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var arr = [1, 2, 3, 4, 5, 6];
+ if (typeof arr.fill !== "function") return false;
+ return String(arr.fill(-1, -3)) === "1,2,3,-1,-1,-1";
+};
diff --git a/node_modules/es5-ext/array/#/fill/shim.js b/node_modules/es5-ext/array/#/fill/shim.js
new file mode 100644
index 00000000..2327d35b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/fill/shim.js
@@ -0,0 +1,25 @@
+// Taken from: https://github.com/paulmillr/es6-shim/
+
+"use strict";
+
+var toInteger = require("../../../number/to-integer")
+ , toPosInt = require("../../../number/to-pos-integer")
+ , validValue = require("../../../object/valid-value")
+ , max = Math.max
+ , min = Math.min;
+
+module.exports = function (value/*, start, end*/) {
+ var arr = validValue(this)
+ , start = arguments[1]
+ , end = arguments[2]
+ , length = toPosInt(arr.length)
+ , relativeStart
+ , i;
+
+ start = start === undefined ? 0 : toInteger(start);
+ end = end === undefined ? length : toInteger(end);
+
+ relativeStart = start < 0 ? max(length + start, 0) : min(start, length);
+ for (i = relativeStart; i < length && i < end; ++i) arr[i] = value;
+ return arr;
+};
diff --git a/node_modules/es5-ext/array/#/filter/implement.js b/node_modules/es5-ext/array/#/filter/implement.js
new file mode 100644
index 00000000..76f4a5ee
--- /dev/null
+++ b/node_modules/es5-ext/array/#/filter/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "filter", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/filter/index.js b/node_modules/es5-ext/array/#/filter/index.js
new file mode 100644
index 00000000..9a25c9be
--- /dev/null
+++ b/node_modules/es5-ext/array/#/filter/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.filter : require("./shim");
diff --git a/node_modules/es5-ext/array/#/filter/is-implemented.js b/node_modules/es5-ext/array/#/filter/is-implemented.js
new file mode 100644
index 00000000..6082513b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/filter/is-implemented.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var SubArray = require("../../_sub-array-dummy-safe")
+ , pass = function () { return true; };
+
+module.exports = function () { return new SubArray().filter(pass) instanceof SubArray; };
diff --git a/node_modules/es5-ext/array/#/filter/shim.js b/node_modules/es5-ext/array/#/filter/shim.js
new file mode 100644
index 00000000..d4ca0cd0
--- /dev/null
+++ b/node_modules/es5-ext/array/#/filter/shim.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var isPlainArray = require("../../is-plain-array")
+ , callable = require("../../../object/valid-callable")
+ , isArray = Array.isArray
+ , filter = Array.prototype.filter
+ , forEach = Array.prototype.forEach
+ , call = Function.prototype.call;
+
+module.exports = function (callbackFn/*, thisArg*/) {
+ var result, thisArg, i;
+ if (!this || !isArray(this) || isPlainArray(this)) {
+ return filter.apply(this, arguments);
+ }
+ callable(callbackFn);
+ thisArg = arguments[1];
+ result = new this.constructor();
+ i = 0;
+ forEach.call(this, function (val, j, self) {
+ if (call.call(callbackFn, thisArg, val, j, self)) result[i++] = val;
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/find-index/implement.js b/node_modules/es5-ext/array/#/find-index/implement.js
new file mode 100644
index 00000000..4e14e292
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find-index/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "findIndex", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/find-index/index.js b/node_modules/es5-ext/array/#/find-index/index.js
new file mode 100644
index 00000000..5e07d8de
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find-index/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.findIndex : require("./shim");
diff --git a/node_modules/es5-ext/array/#/find-index/is-implemented.js b/node_modules/es5-ext/array/#/find-index/is-implemented.js
new file mode 100644
index 00000000..72aa28f6
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find-index/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var fn = function (value) { return value > 3; };
+
+module.exports = function () {
+ var arr = [1, 2, 3, 4, 5, 6];
+ if (typeof arr.findIndex !== "function") return false;
+ return arr.findIndex(fn) === 3;
+};
diff --git a/node_modules/es5-ext/array/#/find-index/shim.js b/node_modules/es5-ext/array/#/find-index/shim.js
new file mode 100644
index 00000000..7db9bef7
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find-index/shim.js
@@ -0,0 +1,26 @@
+"use strict";
+
+var callable = require("../../../object/valid-callable")
+ , ensureValue = require("../../../object/valid-value")
+ , some = Array.prototype.some
+ , apply = Function.prototype.apply;
+
+module.exports = function (predicate/*, thisArg*/) {
+ var k, self;
+ self = Object(ensureValue(this));
+ callable(predicate);
+
+ return some.call(
+ self,
+ function (value, index) {
+ if (apply.call(predicate, this, arguments)) {
+ k = index;
+ return true;
+ }
+ return false;
+ },
+ arguments[1]
+ )
+ ? k
+ : -1;
+};
diff --git a/node_modules/es5-ext/array/#/find/implement.js b/node_modules/es5-ext/array/#/find/implement.js
new file mode 100644
index 00000000..66035a59
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "find", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/find/index.js b/node_modules/es5-ext/array/#/find/index.js
new file mode 100644
index 00000000..2f9d0d64
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.find : require("./shim");
diff --git a/node_modules/es5-ext/array/#/find/is-implemented.js b/node_modules/es5-ext/array/#/find/is-implemented.js
new file mode 100644
index 00000000..8fdacb12
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var fn = function (value) { return value > 3; };
+
+module.exports = function () {
+ var arr = [1, 2, 3, 4, 5, 6];
+ if (typeof arr.find !== "function") return false;
+ return arr.find(fn) === 4;
+};
diff --git a/node_modules/es5-ext/array/#/find/shim.js b/node_modules/es5-ext/array/#/find/shim.js
new file mode 100644
index 00000000..bbb04426
--- /dev/null
+++ b/node_modules/es5-ext/array/#/find/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var findIndex = require("../find-index/shim");
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (predicate/*, thisArg*/) {
+ var index = findIndex.apply(this, arguments);
+ return index === -1 ? undefined : this[index];
+};
diff --git a/node_modules/es5-ext/array/#/first-index.js b/node_modules/es5-ext/array/#/first-index.js
new file mode 100644
index 00000000..19bff541
--- /dev/null
+++ b/node_modules/es5-ext/array/#/first-index.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , value = require("../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+
+module.exports = function () {
+ var i, length;
+ if (!(length = toPosInt(value(this).length))) return null;
+ i = 0;
+ while (!objHasOwnProperty.call(this, i)) {
+ if (++i === length) return null;
+ }
+ return i;
+};
diff --git a/node_modules/es5-ext/array/#/first.js b/node_modules/es5-ext/array/#/first.js
new file mode 100644
index 00000000..ca76833b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/first.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var firstIndex = require("./first-index");
+
+module.exports = function () {
+ var i;
+ if ((i = firstIndex.call(this)) !== null) return this[i];
+ return undefined;
+};
diff --git a/node_modules/es5-ext/array/#/flatten.js b/node_modules/es5-ext/array/#/flatten.js
new file mode 100644
index 00000000..40167274
--- /dev/null
+++ b/node_modules/es5-ext/array/#/flatten.js
@@ -0,0 +1,40 @@
+// Stack grow safe implementation
+
+"use strict";
+
+var ensureValue = require("../../object/valid-value")
+ , isArray = Array.isArray
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+
+module.exports = function () {
+ var input = ensureValue(this), index = 0, remaining, remainingIndexes, length, i, result = [];
+ // Jslint: ignore
+ main: while (input) {
+ length = input.length;
+ for (i = index; i < length; ++i) {
+ if (!objHasOwnProperty.call(input, i)) continue;
+ if (isArray(input[i])) {
+ if (i < length - 1) {
+ // eslint-disable-next-line max-depth
+ if (!remaining) {
+ remaining = [];
+ remainingIndexes = [];
+ }
+ remaining.push(input);
+ remainingIndexes.push(i + 1);
+ }
+ input = input[i];
+ index = 0;
+ continue main;
+ }
+ result.push(input[i]);
+ }
+ if (remaining) {
+ input = remaining.pop();
+ index = remainingIndexes.pop();
+ } else {
+ input = null;
+ }
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/for-each-right.js b/node_modules/es5-ext/array/#/for-each-right.js
new file mode 100644
index 00000000..1c6bccce
--- /dev/null
+++ b/node_modules/es5-ext/array/#/for-each-right.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , callable = require("../../object/valid-callable")
+ , value = require("../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , call = Function.prototype.call;
+
+module.exports = function (cb/*, thisArg*/) {
+ var i, self, thisArg;
+
+ self = Object(value(this));
+ callable(cb);
+ thisArg = arguments[1];
+
+ for (i = toPosInt(self.length) - 1; i >= 0; --i) {
+ if (objHasOwnProperty.call(self, i)) call.call(cb, thisArg, self[i], i, self);
+ }
+};
diff --git a/node_modules/es5-ext/array/#/group.js b/node_modules/es5-ext/array/#/group.js
new file mode 100644
index 00000000..7f40e8a5
--- /dev/null
+++ b/node_modules/es5-ext/array/#/group.js
@@ -0,0 +1,28 @@
+// Inspired by Underscore's groupBy:
+// http://documentcloud.github.com/underscore/#groupBy
+
+"use strict";
+
+var callable = require("../../object/valid-callable")
+ , value = require("../../object/valid-value")
+ , forEach = Array.prototype.forEach
+ , apply = Function.prototype.apply;
+
+module.exports = function (cb/*, thisArg*/) {
+ var result;
+
+ value(this);
+ callable(cb);
+
+ result = Object.create(null);
+ forEach.call(
+ this,
+ function (item) {
+ var key = apply.call(cb, this, arguments);
+ if (!result[key]) result[key] = [];
+ result[key].push(item);
+ },
+ arguments[1]
+ );
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/index.js b/node_modules/es5-ext/array/#/index.js
new file mode 100644
index 00000000..596e83b5
--- /dev/null
+++ b/node_modules/es5-ext/array/#/index.js
@@ -0,0 +1,41 @@
+"use strict";
+
+module.exports = {
+ "@@iterator": require("./@@iterator"),
+ "binarySearch": require("./binary-search"),
+ "clear": require("./clear"),
+ "compact": require("./compact"),
+ "concat": require("./concat"),
+ "contains": require("./contains"),
+ "copyWithin": require("./copy-within"),
+ "diff": require("./diff"),
+ "eIndexOf": require("./e-index-of"),
+ "eLastIndexOf": require("./e-last-index-of"),
+ "entries": require("./entries"),
+ "exclusion": require("./exclusion"),
+ "fill": require("./fill"),
+ "filter": require("./filter"),
+ "find": require("./find"),
+ "findIndex": require("./find-index"),
+ "first": require("./first"),
+ "firstIndex": require("./first-index"),
+ "flatten": require("./flatten"),
+ "forEachRight": require("./for-each-right"),
+ "keys": require("./keys"),
+ "group": require("./group"),
+ "indexesOf": require("./indexes-of"),
+ "intersection": require("./intersection"),
+ "isCopy": require("./is-copy"),
+ "isEmpty": require("./is-empty"),
+ "isUniq": require("./is-uniq"),
+ "last": require("./last"),
+ "lastIndex": require("./last-index"),
+ "map": require("./map"),
+ "remove": require("./remove"),
+ "separate": require("./separate"),
+ "slice": require("./slice"),
+ "someRight": require("./some-right"),
+ "splice": require("./splice"),
+ "uniq": require("./uniq"),
+ "values": require("./values")
+};
diff --git a/node_modules/es5-ext/array/#/indexes-of.js b/node_modules/es5-ext/array/#/indexes-of.js
new file mode 100644
index 00000000..1b92132f
--- /dev/null
+++ b/node_modules/es5-ext/array/#/indexes-of.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var indexOf = require("./e-index-of");
+
+module.exports = function (value/*, fromIndex*/) {
+ var result = [], i, fromIndex = arguments[1];
+ while ((i = indexOf.call(this, value, fromIndex)) !== -1) {
+ result.push(i);
+ fromIndex = i + 1;
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/intersection.js b/node_modules/es5-ext/array/#/intersection.js
new file mode 100644
index 00000000..7dca9dca
--- /dev/null
+++ b/node_modules/es5-ext/array/#/intersection.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var value = require("../../object/valid-value")
+ , contains = require("./contains")
+ , byLength = require("./_compare-by-length")
+ , filter = Array.prototype.filter
+ , push = Array.prototype.push
+ , slice = Array.prototype.slice;
+
+module.exports = function (/* …list*/) {
+ var lists;
+ if (!arguments.length) slice.call(this);
+ push.apply((lists = [this]), arguments);
+ lists.forEach(value);
+ lists.sort(byLength);
+ return lists.reduce(function (list1, list2) {
+ return filter.call(list1, function (item) { return contains.call(list2, item); });
+ });
+};
diff --git a/node_modules/es5-ext/array/#/is-copy.js b/node_modules/es5-ext/array/#/is-copy.js
new file mode 100644
index 00000000..1413b95d
--- /dev/null
+++ b/node_modules/es5-ext/array/#/is-copy.js
@@ -0,0 +1,21 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , eq = require("../../object/eq")
+ , value = require("../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+
+module.exports = function (other) {
+ var i, length;
+ value(this);
+ value(other);
+ length = toPosInt(this.length);
+ if (length !== toPosInt(other.length)) return false;
+ for (i = 0; i < length; ++i) {
+ if (objHasOwnProperty.call(this, i) !== objHasOwnProperty.call(other, i)) {
+ return false;
+ }
+ if (!eq(this[i], other[i])) return false;
+ }
+ return true;
+};
diff --git a/node_modules/es5-ext/array/#/is-empty.js b/node_modules/es5-ext/array/#/is-empty.js
new file mode 100644
index 00000000..9b336fea
--- /dev/null
+++ b/node_modules/es5-ext/array/#/is-empty.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var ensureArray = require("../../object/ensure-array")
+ , firstIndex = require("./first-index");
+
+module.exports = function () { return firstIndex.call(ensureArray(this)) === null; };
diff --git a/node_modules/es5-ext/array/#/is-uniq.js b/node_modules/es5-ext/array/#/is-uniq.js
new file mode 100644
index 00000000..75f77348
--- /dev/null
+++ b/node_modules/es5-ext/array/#/is-uniq.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var indexOf = require("./e-index-of")
+ , every = Array.prototype.every
+ , isFirst;
+
+isFirst = function (value, index) { return indexOf.call(this, value) === index; };
+
+module.exports = function () { return every.call(this, isFirst, this); };
diff --git a/node_modules/es5-ext/array/#/keys/implement.js b/node_modules/es5-ext/array/#/keys/implement.js
new file mode 100644
index 00000000..101a5e39
--- /dev/null
+++ b/node_modules/es5-ext/array/#/keys/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "keys", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/keys/index.js b/node_modules/es5-ext/array/#/keys/index.js
new file mode 100644
index 00000000..c8753e51
--- /dev/null
+++ b/node_modules/es5-ext/array/#/keys/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.keys : require("./shim");
diff --git a/node_modules/es5-ext/array/#/keys/is-implemented.js b/node_modules/es5-ext/array/#/keys/is-implemented.js
new file mode 100644
index 00000000..70a171f6
--- /dev/null
+++ b/node_modules/es5-ext/array/#/keys/is-implemented.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function () {
+ var arr = [1, "foo"], iterator, result;
+ if (typeof arr.keys !== "function") return false;
+ iterator = arr.keys();
+ if (!iterator) return false;
+ if (typeof iterator.next !== "function") return false;
+ result = iterator.next();
+ if (!result) return false;
+ if (result.value !== 0) return false;
+ if (result.done !== false) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/array/#/keys/shim.js b/node_modules/es5-ext/array/#/keys/shim.js
new file mode 100644
index 00000000..8136cdca
--- /dev/null
+++ b/node_modules/es5-ext/array/#/keys/shim.js
@@ -0,0 +1,4 @@
+"use strict";
+
+var ArrayIterator = require("es6-iterator/array");
+module.exports = function () { return new ArrayIterator(this, "key"); };
diff --git a/node_modules/es5-ext/array/#/last-index.js b/node_modules/es5-ext/array/#/last-index.js
new file mode 100644
index 00000000..74aaba46
--- /dev/null
+++ b/node_modules/es5-ext/array/#/last-index.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , value = require("../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+
+module.exports = function () {
+ var i, length;
+ if (!(length = toPosInt(value(this).length))) return null;
+ i = length - 1;
+ while (!objHasOwnProperty.call(this, i)) {
+ if (--i === -1) return null;
+ }
+ return i;
+};
diff --git a/node_modules/es5-ext/array/#/last.js b/node_modules/es5-ext/array/#/last.js
new file mode 100644
index 00000000..38bb359b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/last.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var lastIndex = require("./last-index");
+
+module.exports = function () {
+ var i;
+ if ((i = lastIndex.call(this)) !== null) return this[i];
+ return undefined;
+};
diff --git a/node_modules/es5-ext/array/#/map/implement.js b/node_modules/es5-ext/array/#/map/implement.js
new file mode 100644
index 00000000..42e0b473
--- /dev/null
+++ b/node_modules/es5-ext/array/#/map/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "map", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/map/index.js b/node_modules/es5-ext/array/#/map/index.js
new file mode 100644
index 00000000..49e02676
--- /dev/null
+++ b/node_modules/es5-ext/array/#/map/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.map : require("./shim");
diff --git a/node_modules/es5-ext/array/#/map/is-implemented.js b/node_modules/es5-ext/array/#/map/is-implemented.js
new file mode 100644
index 00000000..f09bd7d9
--- /dev/null
+++ b/node_modules/es5-ext/array/#/map/is-implemented.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var identity = require("../../../function/identity")
+ , SubArray = require("../../_sub-array-dummy-safe");
+
+module.exports = function () { return new SubArray().map(identity) instanceof SubArray; };
diff --git a/node_modules/es5-ext/array/#/map/shim.js b/node_modules/es5-ext/array/#/map/shim.js
new file mode 100644
index 00000000..288be939
--- /dev/null
+++ b/node_modules/es5-ext/array/#/map/shim.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var isPlainArray = require("../../is-plain-array")
+ , callable = require("../../../object/valid-callable")
+ , isArray = Array.isArray
+ , map = Array.prototype.map
+ , forEach = Array.prototype.forEach
+ , call = Function.prototype.call;
+
+module.exports = function (callbackFn/*, thisArg*/) {
+ var result, thisArg;
+ if (!this || !isArray(this) || isPlainArray(this)) {
+ return map.apply(this, arguments);
+ }
+ callable(callbackFn);
+ thisArg = arguments[1];
+ result = new this.constructor(this.length);
+ forEach.call(this, function (val, i, self) {
+ result[i] = call.call(callbackFn, thisArg, val, i, self);
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/remove.js b/node_modules/es5-ext/array/#/remove.js
new file mode 100644
index 00000000..7e12664d
--- /dev/null
+++ b/node_modules/es5-ext/array/#/remove.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var indexOf = require("./e-index-of")
+ , forEach = Array.prototype.forEach
+ , splice = Array.prototype.splice;
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (itemToRemove/*, …item*/) {
+ forEach.call(
+ arguments,
+ function (item) {
+ var index = indexOf.call(this, item);
+ if (index !== -1) splice.call(this, index, 1);
+ },
+ this
+ );
+};
diff --git a/node_modules/es5-ext/array/#/separate.js b/node_modules/es5-ext/array/#/separate.js
new file mode 100644
index 00000000..248662f8
--- /dev/null
+++ b/node_modules/es5-ext/array/#/separate.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var forEach = Array.prototype.forEach;
+
+module.exports = function (sep) {
+ var result = [];
+ forEach.call(this, function (val) { result.push(val, sep); });
+ result.pop();
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/slice/implement.js b/node_modules/es5-ext/array/#/slice/implement.js
new file mode 100644
index 00000000..113d34dc
--- /dev/null
+++ b/node_modules/es5-ext/array/#/slice/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "slice", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/slice/index.js b/node_modules/es5-ext/array/#/slice/index.js
new file mode 100644
index 00000000..716b7e04
--- /dev/null
+++ b/node_modules/es5-ext/array/#/slice/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.slice : require("./shim");
diff --git a/node_modules/es5-ext/array/#/slice/is-implemented.js b/node_modules/es5-ext/array/#/slice/is-implemented.js
new file mode 100644
index 00000000..4c83bfa2
--- /dev/null
+++ b/node_modules/es5-ext/array/#/slice/is-implemented.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var SubArray = require("../../_sub-array-dummy-safe");
+
+module.exports = function () { return new SubArray().slice() instanceof SubArray; };
diff --git a/node_modules/es5-ext/array/#/slice/shim.js b/node_modules/es5-ext/array/#/slice/shim.js
new file mode 100644
index 00000000..ff13085b
--- /dev/null
+++ b/node_modules/es5-ext/array/#/slice/shim.js
@@ -0,0 +1,36 @@
+"use strict";
+
+var toInteger = require("../../../number/to-integer")
+ , toPosInt = require("../../../number/to-pos-integer")
+ , isPlainArray = require("../../is-plain-array")
+ , isArray = Array.isArray
+ , slice = Array.prototype.slice
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , max = Math.max;
+
+module.exports = function (start, end) {
+ var length, result, i;
+ if (!this || !isArray(this) || isPlainArray(this)) {
+ return slice.apply(this, arguments);
+ }
+ length = toPosInt(this.length);
+ start = toInteger(start);
+ if (start < 0) start = max(length + start, 0);
+ else if (start > length) start = length;
+ if (end === undefined) {
+ end = length;
+ } else {
+ end = toInteger(end);
+ if (end < 0) end = max(length + end, 0);
+ else if (end > length) end = length;
+ }
+ if (start > end) start = end;
+ result = new this.constructor(end - start);
+ i = 0;
+ while (start !== end) {
+ if (objHasOwnProperty.call(this, start)) result[i] = this[start];
+ ++i;
+ ++start;
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/some-right.js b/node_modules/es5-ext/array/#/some-right.js
new file mode 100644
index 00000000..3baaf76e
--- /dev/null
+++ b/node_modules/es5-ext/array/#/some-right.js
@@ -0,0 +1,21 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , callable = require("../../object/valid-callable")
+ , value = require("../../object/valid-value")
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , call = Function.prototype.call;
+
+module.exports = function (cb/*, thisArg*/) {
+ var i, self, thisArg;
+ self = Object(value(this));
+ callable(cb);
+ thisArg = arguments[1];
+
+ for (i = toPosInt(self.length) - 1; i >= 0; --i) {
+ if (objHasOwnProperty.call(self, i) && call.call(cb, thisArg, self[i], i, self)) {
+ return true;
+ }
+ }
+ return false;
+};
diff --git a/node_modules/es5-ext/array/#/splice/implement.js b/node_modules/es5-ext/array/#/splice/implement.js
new file mode 100644
index 00000000..236b1cb7
--- /dev/null
+++ b/node_modules/es5-ext/array/#/splice/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "splice", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/splice/index.js b/node_modules/es5-ext/array/#/splice/index.js
new file mode 100644
index 00000000..cd5c3ec9
--- /dev/null
+++ b/node_modules/es5-ext/array/#/splice/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.splice : require("./shim");
diff --git a/node_modules/es5-ext/array/#/splice/is-implemented.js b/node_modules/es5-ext/array/#/splice/is-implemented.js
new file mode 100644
index 00000000..085cba57
--- /dev/null
+++ b/node_modules/es5-ext/array/#/splice/is-implemented.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var SubArray = require("../../_sub-array-dummy-safe");
+
+module.exports = function () { return new SubArray().splice(0) instanceof SubArray; };
diff --git a/node_modules/es5-ext/array/#/splice/shim.js b/node_modules/es5-ext/array/#/splice/shim.js
new file mode 100644
index 00000000..a9c53ead
--- /dev/null
+++ b/node_modules/es5-ext/array/#/splice/shim.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var isPlainArray = require("../../is-plain-array")
+ , isArray = Array.isArray
+ , splice = Array.prototype.splice
+ , forEach = Array.prototype.forEach;
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (start, deleteCount/*, …items*/) {
+ var arr = splice.apply(this, arguments), result;
+ if (!this || !isArray(this) || isPlainArray(this)) return arr;
+ result = new this.constructor(arr.length);
+ forEach.call(arr, function (val, i) { result[i] = val; });
+ return result;
+};
diff --git a/node_modules/es5-ext/array/#/uniq.js b/node_modules/es5-ext/array/#/uniq.js
new file mode 100644
index 00000000..2d28bf52
--- /dev/null
+++ b/node_modules/es5-ext/array/#/uniq.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var indexOf = require("./e-index-of")
+ , filter = Array.prototype.filter
+ , isFirst;
+
+isFirst = function (value, index) { return indexOf.call(this, value) === index; };
+
+module.exports = function () { return filter.call(this, isFirst, this); };
diff --git a/node_modules/es5-ext/array/#/values/implement.js b/node_modules/es5-ext/array/#/values/implement.js
new file mode 100644
index 00000000..dce17aca
--- /dev/null
+++ b/node_modules/es5-ext/array/#/values/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array.prototype, "values", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/#/values/index.js b/node_modules/es5-ext/array/#/values/index.js
new file mode 100644
index 00000000..30a50bae
--- /dev/null
+++ b/node_modules/es5-ext/array/#/values/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.prototype.values : require("./shim");
diff --git a/node_modules/es5-ext/array/#/values/is-implemented.js b/node_modules/es5-ext/array/#/values/is-implemented.js
new file mode 100644
index 00000000..8b72568a
--- /dev/null
+++ b/node_modules/es5-ext/array/#/values/is-implemented.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function () {
+ var arr = ["foo", 1], iterator, result;
+ if (typeof arr.values !== "function") return false;
+ iterator = arr.values();
+ if (!iterator) return false;
+ if (typeof iterator.next !== "function") return false;
+ result = iterator.next();
+ if (!result) return false;
+ if (result.value !== "foo") return false;
+ if (result.done !== false) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/array/#/values/shim.js b/node_modules/es5-ext/array/#/values/shim.js
new file mode 100644
index 00000000..5d013abe
--- /dev/null
+++ b/node_modules/es5-ext/array/#/values/shim.js
@@ -0,0 +1,4 @@
+"use strict";
+
+var ArrayIterator = require("es6-iterator/array");
+module.exports = function () { return new ArrayIterator(this, "value"); };
diff --git a/node_modules/es5-ext/array/_is-extensible.js b/node_modules/es5-ext/array/_is-extensible.js
new file mode 100644
index 00000000..c4757112
--- /dev/null
+++ b/node_modules/es5-ext/array/_is-extensible.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = (function () {
+ var SubArray = require("./_sub-array-dummy")
+ , arr;
+
+ if (!SubArray) return false;
+ arr = new SubArray();
+ if (!Array.isArray(arr)) return false;
+ if (!(arr instanceof SubArray)) return false;
+
+ arr[34] = "foo";
+ return arr.length === 35;
+})();
diff --git a/node_modules/es5-ext/array/_sub-array-dummy-safe.js b/node_modules/es5-ext/array/_sub-array-dummy-safe.js
new file mode 100644
index 00000000..bef50bed
--- /dev/null
+++ b/node_modules/es5-ext/array/_sub-array-dummy-safe.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var setPrototypeOf = require("../object/set-prototype-of")
+ , isExtensible = require("./_is-extensible");
+
+module.exports = (function () {
+ var SubArray;
+
+ if (isExtensible) return require("./_sub-array-dummy");
+
+ if (!setPrototypeOf) return null;
+ SubArray = function () {
+ var arr = Array.apply(this, arguments);
+ setPrototypeOf(arr, SubArray.prototype);
+ return arr;
+ };
+ setPrototypeOf(SubArray, Array);
+ SubArray.prototype = Object.create(Array.prototype, {
+ constructor: { value: SubArray, enumerable: false, writable: true, configurable: true }
+ });
+ return SubArray;
+})();
diff --git a/node_modules/es5-ext/array/_sub-array-dummy.js b/node_modules/es5-ext/array/_sub-array-dummy.js
new file mode 100644
index 00000000..5969309e
--- /dev/null
+++ b/node_modules/es5-ext/array/_sub-array-dummy.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var setPrototypeOf = require("../object/set-prototype-of");
+
+module.exports = (function () {
+ var SubArray;
+
+ if (!setPrototypeOf) return null;
+ SubArray = function () { Array.apply(this, arguments); };
+ setPrototypeOf(SubArray, Array);
+ SubArray.prototype = Object.create(Array.prototype, {
+ constructor: { value: SubArray, enumerable: false, writable: true, configurable: true }
+ });
+ return SubArray;
+})();
diff --git a/node_modules/es5-ext/array/from/implement.js b/node_modules/es5-ext/array/from/implement.js
new file mode 100644
index 00000000..c08d4074
--- /dev/null
+++ b/node_modules/es5-ext/array/from/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array, "from", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/from/index.js b/node_modules/es5-ext/array/from/index.js
new file mode 100644
index 00000000..81cf8d9f
--- /dev/null
+++ b/node_modules/es5-ext/array/from/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.from : require("./shim");
diff --git a/node_modules/es5-ext/array/from/is-implemented.js b/node_modules/es5-ext/array/from/is-implemented.js
new file mode 100644
index 00000000..a786c767
--- /dev/null
+++ b/node_modules/es5-ext/array/from/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function () {
+ var from = Array.from, arr, result;
+ if (typeof from !== "function") return false;
+ arr = ["raz", "dwa"];
+ result = from(arr);
+ return Boolean(result && result !== arr && result[1] === "dwa");
+};
diff --git a/node_modules/es5-ext/array/from/shim.js b/node_modules/es5-ext/array/from/shim.js
new file mode 100644
index 00000000..4a2a59a6
--- /dev/null
+++ b/node_modules/es5-ext/array/from/shim.js
@@ -0,0 +1,119 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , isArguments = require("../../function/is-arguments")
+ , isFunction = require("../../function/is-function")
+ , toPosInt = require("../../number/to-pos-integer")
+ , callable = require("../../object/valid-callable")
+ , validValue = require("../../object/valid-value")
+ , isValue = require("../../object/is-value")
+ , isString = require("../../string/is-string")
+ , isArray = Array.isArray
+ , call = Function.prototype.call
+ , desc = { configurable: true, enumerable: true, writable: true, value: null }
+ , defineProperty = Object.defineProperty;
+
+// eslint-disable-next-line complexity, max-lines-per-function
+module.exports = function (arrayLike/*, mapFn, thisArg*/) {
+ var mapFn = arguments[1]
+ , thisArg = arguments[2]
+ , Context
+ , i
+ , j
+ , arr
+ , length
+ , code
+ , iterator
+ , result
+ , getIterator
+ , value;
+
+ arrayLike = Object(validValue(arrayLike));
+
+ if (isValue(mapFn)) callable(mapFn);
+ if (!this || this === Array || !isFunction(this)) {
+ // Result: Plain array
+ if (!mapFn) {
+ if (isArguments(arrayLike)) {
+ // Source: Arguments
+ length = arrayLike.length;
+ if (length !== 1) return Array.apply(null, arrayLike);
+ arr = new Array(1);
+ arr[0] = arrayLike[0];
+ return arr;
+ }
+ if (isArray(arrayLike)) {
+ // Source: Array
+ arr = new Array((length = arrayLike.length));
+ for (i = 0; i < length; ++i) arr[i] = arrayLike[i];
+ return arr;
+ }
+ }
+ arr = [];
+ } else {
+ // Result: Non plain array
+ Context = this;
+ }
+
+ if (!isArray(arrayLike)) {
+ if ((getIterator = arrayLike[iteratorSymbol]) !== undefined) {
+ // Source: Iterator
+ iterator = callable(getIterator).call(arrayLike);
+ if (Context) arr = new Context();
+ result = iterator.next();
+ i = 0;
+ while (!result.done) {
+ value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value;
+ if (Context) {
+ desc.value = value;
+ defineProperty(arr, i, desc);
+ } else {
+ arr[i] = value;
+ }
+ result = iterator.next();
+ ++i;
+ }
+ length = i;
+ } else if (isString(arrayLike)) {
+ // Source: String
+ length = arrayLike.length;
+ if (Context) arr = new Context();
+ for (i = 0, j = 0; i < length; ++i) {
+ value = arrayLike[i];
+ if (i + 1 < length) {
+ code = value.charCodeAt(0);
+ // eslint-disable-next-line max-depth
+ if (code >= 0xd800 && code <= 0xdbff) value += arrayLike[++i];
+ }
+ value = mapFn ? call.call(mapFn, thisArg, value, j) : value;
+ if (Context) {
+ desc.value = value;
+ defineProperty(arr, j, desc);
+ } else {
+ arr[j] = value;
+ }
+ ++j;
+ }
+ length = j;
+ }
+ }
+ if (length === undefined) {
+ // Source: array or array-like
+ length = toPosInt(arrayLike.length);
+ if (Context) arr = new Context(length);
+ for (i = 0; i < length; ++i) {
+ value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i];
+ if (Context) {
+ desc.value = value;
+ defineProperty(arr, i, desc);
+ } else {
+ arr[i] = value;
+ }
+ }
+ }
+ if (Context) {
+ desc.value = null;
+ arr.length = length;
+ }
+ return arr;
+};
diff --git a/node_modules/es5-ext/array/generate.js b/node_modules/es5-ext/array/generate.js
new file mode 100644
index 00000000..b99160ec
--- /dev/null
+++ b/node_modules/es5-ext/array/generate.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var toPosInt = require("../number/to-pos-integer")
+ , value = require("../object/valid-value")
+ , slice = Array.prototype.slice;
+
+module.exports = function (length/*, …fill*/) {
+ var arr, currentLength;
+ length = toPosInt(value(length));
+ if (length === 0) return [];
+
+ arr = arguments.length < 2 ? [undefined] : slice.call(arguments, 1, 1 + length);
+
+ while ((currentLength = arr.length) < length) {
+ arr = arr.concat(arr.slice(0, length - currentLength));
+ }
+ return arr;
+};
diff --git a/node_modules/es5-ext/array/index.js b/node_modules/es5-ext/array/index.js
new file mode 100644
index 00000000..49ff58ee
--- /dev/null
+++ b/node_modules/es5-ext/array/index.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "from": require("./from"),
+ "generate": require("./generate"),
+ "isPlainArray": require("./is-plain-array"),
+ "of": require("./of"),
+ "toArray": require("./to-array"),
+ "validArray": require("./valid-array")
+};
diff --git a/node_modules/es5-ext/array/is-plain-array.js b/node_modules/es5-ext/array/is-plain-array.js
new file mode 100644
index 00000000..ca3d25bb
--- /dev/null
+++ b/node_modules/es5-ext/array/is-plain-array.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var isArray = Array.isArray, getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (obj) {
+ var proto;
+ if (!obj || !isArray(obj)) return false;
+ proto = getPrototypeOf(obj);
+ if (!isArray(proto)) return false;
+ return !isArray(getPrototypeOf(proto));
+};
diff --git a/node_modules/es5-ext/array/of/implement.js b/node_modules/es5-ext/array/of/implement.js
new file mode 100644
index 00000000..6665c77d
--- /dev/null
+++ b/node_modules/es5-ext/array/of/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Array, "of", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/array/of/index.js b/node_modules/es5-ext/array/of/index.js
new file mode 100644
index 00000000..503c749b
--- /dev/null
+++ b/node_modules/es5-ext/array/of/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Array.of : require("./shim");
diff --git a/node_modules/es5-ext/array/of/is-implemented.js b/node_modules/es5-ext/array/of/is-implemented.js
new file mode 100644
index 00000000..3f232ca5
--- /dev/null
+++ b/node_modules/es5-ext/array/of/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function () {
+ var of = Array.of, result;
+ if (typeof of !== "function") return false;
+ result = of("foo", "bar");
+ return Boolean(result && result[1] === "bar");
+};
diff --git a/node_modules/es5-ext/array/of/shim.js b/node_modules/es5-ext/array/of/shim.js
new file mode 100644
index 00000000..0202a8af
--- /dev/null
+++ b/node_modules/es5-ext/array/of/shim.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var isFunction = require("../../function/is-function")
+ , slice = Array.prototype.slice
+ , defineProperty = Object.defineProperty
+ , desc = { configurable: true, enumerable: true, writable: true, value: null };
+
+module.exports = function (/* …items*/) {
+ var result, i, length;
+ if (!this || this === Array || !isFunction(this)) return slice.call(arguments);
+ result = new this((length = arguments.length));
+ for (i = 0; i < length; ++i) {
+ desc.value = arguments[i];
+ defineProperty(result, i, desc);
+ }
+ desc.value = null;
+ result.length = length;
+ return result;
+};
diff --git a/node_modules/es5-ext/array/to-array.js b/node_modules/es5-ext/array/to-array.js
new file mode 100644
index 00000000..2515e024
--- /dev/null
+++ b/node_modules/es5-ext/array/to-array.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var from = require("./from")
+ , isArray = Array.isArray;
+
+module.exports = function (arrayLike) { return isArray(arrayLike) ? arrayLike : from(arrayLike); };
diff --git a/node_modules/es5-ext/array/valid-array.js b/node_modules/es5-ext/array/valid-array.js
new file mode 100644
index 00000000..1e58c39a
--- /dev/null
+++ b/node_modules/es5-ext/array/valid-array.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isArray = Array.isArray;
+
+module.exports = function (value) {
+ if (isArray(value)) return value;
+ throw new TypeError(value + " is not an array");
+};
diff --git a/node_modules/es5-ext/boolean/index.js b/node_modules/es5-ext/boolean/index.js
new file mode 100644
index 00000000..35136423
--- /dev/null
+++ b/node_modules/es5-ext/boolean/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { isBoolean: require("./is-boolean") };
diff --git a/node_modules/es5-ext/boolean/is-boolean.js b/node_modules/es5-ext/boolean/is-boolean.js
new file mode 100644
index 00000000..394845f6
--- /dev/null
+++ b/node_modules/es5-ext/boolean/is-boolean.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call(true);
+
+module.exports = function (value) {
+ return (
+ typeof value === "boolean" ||
+ (typeof value === "object" && (value instanceof Boolean || objToString.call(value) === id))
+ );
+};
diff --git a/node_modules/es5-ext/date/#/copy.js b/node_modules/es5-ext/date/#/copy.js
new file mode 100644
index 00000000..1262ae02
--- /dev/null
+++ b/node_modules/es5-ext/date/#/copy.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var getTime = Date.prototype.getTime;
+
+module.exports = function () { return new Date(getTime.call(this)); };
diff --git a/node_modules/es5-ext/date/#/days-in-month.js b/node_modules/es5-ext/date/#/days-in-month.js
new file mode 100644
index 00000000..731d4d5f
--- /dev/null
+++ b/node_modules/es5-ext/date/#/days-in-month.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var getMonth = Date.prototype.getMonth;
+
+module.exports = function () {
+ switch (getMonth.call(this)) {
+ case 1:
+ return this.getFullYear() % 4 ? 28 : 29;
+ case 3:
+ case 5:
+ case 8:
+ case 10:
+ return 30;
+ default:
+ return 31;
+ }
+};
diff --git a/node_modules/es5-ext/date/#/floor-day.js b/node_modules/es5-ext/date/#/floor-day.js
new file mode 100644
index 00000000..db696d38
--- /dev/null
+++ b/node_modules/es5-ext/date/#/floor-day.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var setHours = Date.prototype.setHours;
+
+module.exports = function () {
+ setHours.call(this, 0, 0, 0, 0);
+ return this;
+};
diff --git a/node_modules/es5-ext/date/#/floor-month.js b/node_modules/es5-ext/date/#/floor-month.js
new file mode 100644
index 00000000..c9c0460b
--- /dev/null
+++ b/node_modules/es5-ext/date/#/floor-month.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var floorDay = require("./floor-day");
+
+module.exports = function () {
+ floorDay.call(this).setDate(1);
+ return this;
+};
diff --git a/node_modules/es5-ext/date/#/floor-year.js b/node_modules/es5-ext/date/#/floor-year.js
new file mode 100644
index 00000000..e9b6f0fe
--- /dev/null
+++ b/node_modules/es5-ext/date/#/floor-year.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var floorMonth = require("./floor-month");
+
+module.exports = function () {
+ floorMonth.call(this).setMonth(0);
+ return this;
+};
diff --git a/node_modules/es5-ext/date/#/format.js b/node_modules/es5-ext/date/#/format.js
new file mode 100644
index 00000000..8474dbb9
--- /dev/null
+++ b/node_modules/es5-ext/date/#/format.js
@@ -0,0 +1,20 @@
+/* eslint id-length: "off" */
+
+"use strict";
+
+var pad = require("../../number/#/pad")
+ , date = require("../valid-date")
+ , format;
+
+format = require("../../string/format-method")({
+ Y: function () { return String(this.getFullYear()); },
+ y: function () { return String(this.getFullYear()).slice(-2); },
+ m: function () { return pad.call(this.getMonth() + 1, 2); },
+ d: function () { return pad.call(this.getDate(), 2); },
+ H: function () { return pad.call(this.getHours(), 2); },
+ M: function () { return pad.call(this.getMinutes(), 2); },
+ S: function () { return pad.call(this.getSeconds(), 2); },
+ L: function () { return pad.call(this.getMilliseconds(), 3); }
+});
+
+module.exports = function (pattern) { return format.call(date(this), pattern); };
diff --git a/node_modules/es5-ext/date/#/index.js b/node_modules/es5-ext/date/#/index.js
new file mode 100644
index 00000000..1781e218
--- /dev/null
+++ b/node_modules/es5-ext/date/#/index.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = {
+ copy: require("./copy"),
+ daysInMonth: require("./days-in-month"),
+ floorDay: require("./floor-day"),
+ floorMonth: require("./floor-month"),
+ floorYear: require("./floor-year"),
+ format: require("./format")
+};
diff --git a/node_modules/es5-ext/date/ensure-time-value.js b/node_modules/es5-ext/date/ensure-time-value.js
new file mode 100644
index 00000000..09f5afcf
--- /dev/null
+++ b/node_modules/es5-ext/date/ensure-time-value.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var safeToString = require("../safe-to-string")
+ , toInteger = require("../number/to-integer")
+ , isTimeValue = require("./is-time-value");
+
+module.exports = function (value) {
+ if (isTimeValue(value)) return toInteger(value);
+ throw new TypeError(safeToString(value) + " is not a valid time value");
+};
diff --git a/node_modules/es5-ext/date/index.js b/node_modules/es5-ext/date/index.js
new file mode 100644
index 00000000..c1431497
--- /dev/null
+++ b/node_modules/es5-ext/date/index.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "ensureTimeValue": require("./ensure-time-value"),
+ "isDate": require("./is-date"),
+ "isTimeValue": require("./is-time-value"),
+ "validDate": require("./valid-date")
+};
diff --git a/node_modules/es5-ext/date/is-date.js b/node_modules/es5-ext/date/is-date.js
new file mode 100644
index 00000000..f45bde46
--- /dev/null
+++ b/node_modules/es5-ext/date/is-date.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call(new Date());
+
+module.exports = function (value) {
+ return (
+ (value && !isNaN(value) && (value instanceof Date || objToString.call(value) === id)) ||
+ false
+ );
+};
diff --git a/node_modules/es5-ext/date/is-time-value.js b/node_modules/es5-ext/date/is-time-value.js
new file mode 100644
index 00000000..0deb0b97
--- /dev/null
+++ b/node_modules/es5-ext/date/is-time-value.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (value) {
+ try { value = Number(value); }
+ catch (e) { return false; }
+ if (isNaN(value)) return false;
+ if (Math.abs(value) > 8.64e15) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/date/valid-date.js b/node_modules/es5-ext/date/valid-date.js
new file mode 100644
index 00000000..0c73dc5d
--- /dev/null
+++ b/node_modules/es5-ext/date/valid-date.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isDate = require("./is-date");
+
+module.exports = function (value) {
+ if (!isDate(value)) throw new TypeError(value + " is not valid Date object");
+ return value;
+};
diff --git a/node_modules/es5-ext/error/#/index.js b/node_modules/es5-ext/error/#/index.js
new file mode 100644
index 00000000..973a9d43
--- /dev/null
+++ b/node_modules/es5-ext/error/#/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { throw: require("./throw") };
diff --git a/node_modules/es5-ext/error/#/throw.js b/node_modules/es5-ext/error/#/throw.js
new file mode 100644
index 00000000..3eb196df
--- /dev/null
+++ b/node_modules/es5-ext/error/#/throw.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var error = require("../valid-error");
+
+module.exports = function () { throw error(this); };
diff --git a/node_modules/es5-ext/error/custom.js b/node_modules/es5-ext/error/custom.js
new file mode 100644
index 00000000..416d5711
--- /dev/null
+++ b/node_modules/es5-ext/error/custom.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var assign = require("../object/assign")
+ , isObject = require("../object/is-object")
+ , isValue = require("../object/is-value")
+ , captureStackTrace = Error.captureStackTrace;
+
+module.exports = function (message/*, code, ext*/) {
+ var err = new Error(message), code = arguments[1], ext = arguments[2];
+ if (!isValue(ext)) {
+ if (isObject(code)) {
+ ext = code;
+ code = null;
+ }
+ }
+ if (isValue(ext)) assign(err, ext);
+ if (isValue(code)) err.code = code;
+ if (captureStackTrace) captureStackTrace(err, module.exports);
+ return err;
+};
diff --git a/node_modules/es5-ext/error/index.js b/node_modules/es5-ext/error/index.js
new file mode 100644
index 00000000..cb7054a2
--- /dev/null
+++ b/node_modules/es5-ext/error/index.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "custom": require("./custom"),
+ "isError": require("./is-error"),
+ "validError": require("./valid-error")
+};
diff --git a/node_modules/es5-ext/error/is-error.js b/node_modules/es5-ext/error/is-error.js
new file mode 100644
index 00000000..aad67ed9
--- /dev/null
+++ b/node_modules/es5-ext/error/is-error.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call(new Error());
+
+module.exports = function (value) {
+ return (value && (value instanceof Error || objToString.call(value) === id)) || false;
+};
diff --git a/node_modules/es5-ext/error/valid-error.js b/node_modules/es5-ext/error/valid-error.js
new file mode 100644
index 00000000..432f7ba2
--- /dev/null
+++ b/node_modules/es5-ext/error/valid-error.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isError = require("./is-error");
+
+module.exports = function (value) {
+ if (!isError(value)) throw new TypeError(value + " is not an Error object");
+ return value;
+};
diff --git a/node_modules/es5-ext/function/#/compose.js b/node_modules/es5-ext/function/#/compose.js
new file mode 100644
index 00000000..c1d37b4b
--- /dev/null
+++ b/node_modules/es5-ext/function/#/compose.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var isValue = require("../../object/is-value")
+ , callable = require("../../object/valid-callable")
+ , aFrom = require("../../array/from");
+
+var apply = Function.prototype.apply
+ , call = Function.prototype.call
+ , callFn = function (arg, fn) { return call.call(fn, this, arg); };
+
+module.exports = function (fnIgnored/*, …fnn*/) {
+ var fns, first;
+ var args = aFrom(arguments);
+ fns = isValue(this) ? [this].concat(args) : args;
+ fns.forEach(callable);
+ fns = fns.reverse();
+ first = fns[0];
+ fns = fns.slice(1);
+ return function (argIgnored) { return fns.reduce(callFn, apply.call(first, this, arguments)); };
+};
diff --git a/node_modules/es5-ext/function/#/copy.js b/node_modules/es5-ext/function/#/copy.js
new file mode 100644
index 00000000..81ae7838
--- /dev/null
+++ b/node_modules/es5-ext/function/#/copy.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var mixin = require("../../object/mixin")
+ , validFunction = require("../valid-function")
+ , re = /^\s*function\s*([\0-')-\uffff]+)*\s*\(([\0-(*-\uffff]*)\)\s*\{/;
+
+module.exports = function () {
+ var match = String(validFunction(this)).match(re), fn;
+
+ // eslint-disable-next-line no-new-func
+ fn = new Function(
+ "fn",
+ "return function " +
+ match[1].trim() +
+ "(" +
+ match[2] +
+ ") { return fn.apply(this, arguments); };"
+ )(this);
+ try { mixin(fn, this); }
+ catch (ignore) {}
+ return fn;
+};
diff --git a/node_modules/es5-ext/function/#/curry.js b/node_modules/es5-ext/function/#/curry.js
new file mode 100644
index 00000000..9296458a
--- /dev/null
+++ b/node_modules/es5-ext/function/#/curry.js
@@ -0,0 +1,25 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , callable = require("../../object/valid-callable")
+ , defineLength = require("../_define-length")
+ , slice = Array.prototype.slice
+ , apply = Function.prototype.apply
+ , curry;
+
+curry = function self(fn, length, preArgs) {
+ return defineLength(
+ function () {
+ var args = preArgs
+ ? preArgs.concat(slice.call(arguments, 0, length - preArgs.length))
+ : slice.call(arguments, 0, length);
+ return args.length === length ? apply.call(fn, this, args) : self(fn, length, args);
+ },
+ preArgs ? length - preArgs.length : length
+ );
+};
+
+module.exports = function (/* Length*/) {
+ var length = arguments[0];
+ return curry(callable(this), isNaN(length) ? toPosInt(this.length) : toPosInt(length));
+};
diff --git a/node_modules/es5-ext/function/#/index.js b/node_modules/es5-ext/function/#/index.js
new file mode 100644
index 00000000..02ae9f49
--- /dev/null
+++ b/node_modules/es5-ext/function/#/index.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = {
+ compose: require("./compose"),
+ copy: require("./copy"),
+ curry: require("./curry"),
+ lock: require("./lock"),
+ microtaskDelay: require("./microtask-delay"),
+ not: require("./not"),
+ partial: require("./partial"),
+ spread: require("./spread"),
+ toStringTokens: require("./to-string-tokens")
+};
diff --git a/node_modules/es5-ext/function/#/lock.js b/node_modules/es5-ext/function/#/lock.js
new file mode 100644
index 00000000..afd83b97
--- /dev/null
+++ b/node_modules/es5-ext/function/#/lock.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var callable = require("../../object/valid-callable")
+ , apply = Function.prototype.apply;
+
+module.exports = function (/* …args*/) {
+ var fn = callable(this), args = arguments;
+
+ return function () { return apply.call(fn, this, args); };
+};
diff --git a/node_modules/es5-ext/function/#/microtask-delay.js b/node_modules/es5-ext/function/#/microtask-delay.js
new file mode 100644
index 00000000..3741ebe5
--- /dev/null
+++ b/node_modules/es5-ext/function/#/microtask-delay.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var ensurePlainFunction = require("../../object/ensure-plain-function")
+ , defineLength = require("../_define-length")
+ , nextTick = require("next-tick");
+
+var apply = Function.prototype.apply;
+
+module.exports = function () {
+ var src = ensurePlainFunction(this);
+ return defineLength(function () { nextTick(apply.bind(src, this, arguments)); }, this.length);
+};
diff --git a/node_modules/es5-ext/function/#/not.js b/node_modules/es5-ext/function/#/not.js
new file mode 100644
index 00000000..b3b7d620
--- /dev/null
+++ b/node_modules/es5-ext/function/#/not.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var callable = require("../../object/valid-callable")
+ , defineLength = require("../_define-length")
+ , apply = Function.prototype.apply;
+
+module.exports = function () {
+ var fn = callable(this);
+
+ return defineLength(function () { return !apply.call(fn, this, arguments); }, fn.length);
+};
diff --git a/node_modules/es5-ext/function/#/partial.js b/node_modules/es5-ext/function/#/partial.js
new file mode 100644
index 00000000..8f09c4f7
--- /dev/null
+++ b/node_modules/es5-ext/function/#/partial.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var callable = require("../../object/valid-callable")
+ , aFrom = require("../../array/from")
+ , defineLength = require("../_define-length")
+ , apply = Function.prototype.apply;
+
+module.exports = function (/* …args*/) {
+ var fn = callable(this), args = aFrom(arguments);
+
+ return defineLength(function () {
+ return apply.call(fn, this, args.concat(aFrom(arguments)));
+ }, fn.length - args.length);
+};
diff --git a/node_modules/es5-ext/function/#/spread.js b/node_modules/es5-ext/function/#/spread.js
new file mode 100644
index 00000000..555d9912
--- /dev/null
+++ b/node_modules/es5-ext/function/#/spread.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var callable = require("../../object/valid-callable")
+ , apply = Function.prototype.apply;
+
+module.exports = function () {
+ var fn = callable(this);
+ return function (args) { return apply.call(fn, this, args); };
+};
diff --git a/node_modules/es5-ext/function/#/to-string-tokens.js b/node_modules/es5-ext/function/#/to-string-tokens.js
new file mode 100644
index 00000000..4ce026a5
--- /dev/null
+++ b/node_modules/es5-ext/function/#/to-string-tokens.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var validFunction = require("../valid-function");
+
+var re1 = /^\s*function[\0-')-\uffff]*\(([\0-(*-\uffff]*)\)\s*\{([\0-\uffff]*)\}\s*$/
+ , re2 = /^\s*\(?([\0-'*-\uffff]*)\)?\s*=>\s*(\{?[\0-\uffff]*\}?)\s*$/;
+
+module.exports = function () {
+ var str = String(validFunction(this)), data = str.match(re1);
+ if (!data) {
+ data = str.match(re2);
+ if (!data) throw new Error("Unrecognized string format");
+ data[1] = data[1].trim();
+ if (data[2][0] === "{") data[2] = data[2].trim().slice(1, -1);
+ }
+ return { args: data[1], body: data[2] };
+};
diff --git a/node_modules/es5-ext/function/_define-length.js b/node_modules/es5-ext/function/_define-length.js
new file mode 100644
index 00000000..d77a433f
--- /dev/null
+++ b/node_modules/es5-ext/function/_define-length.js
@@ -0,0 +1,54 @@
+"use strict";
+
+var toPosInt = require("../number/to-pos-integer");
+
+var test = function (arg1, arg2) { return arg2; };
+
+var desc, defineProperty, generate, mixin;
+
+try {
+ Object.defineProperty(test, "length", {
+ configurable: true,
+ writable: false,
+ enumerable: false,
+ value: 1
+ });
+}
+catch (ignore) {}
+
+if (test.length === 1) {
+ // ES6
+ desc = { configurable: true, writable: false, enumerable: false };
+ defineProperty = Object.defineProperty;
+ module.exports = function (fn, length) {
+ length = toPosInt(length);
+ if (fn.length === length) return fn;
+ desc.value = length;
+ return defineProperty(fn, "length", desc);
+ };
+} else {
+ mixin = require("../object/mixin");
+ generate = (function () {
+ var cache = [];
+ return function (length) {
+ var args, i = 0;
+ if (cache[length]) return cache[length];
+ args = [];
+ while (length--) args.push("a" + (++i).toString(36));
+ // eslint-disable-next-line no-new-func
+ return new Function(
+ "fn",
+ "return function (" + args.join(", ") + ") { return fn.apply(this, arguments); };"
+ );
+ };
+ })();
+ module.exports = function (src, length) {
+ var target;
+ length = toPosInt(length);
+ if (src.length === length) return src;
+ target = generate(length)(src);
+ try { mixin(target, src); }
+ catch (ignore) {}
+ return target;
+ };
+}
diff --git a/node_modules/es5-ext/function/constant.js b/node_modules/es5-ext/function/constant.js
new file mode 100644
index 00000000..79d81e4a
--- /dev/null
+++ b/node_modules/es5-ext/function/constant.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (value) {
+ return function () { return value; };
+};
diff --git a/node_modules/es5-ext/function/identity.js b/node_modules/es5-ext/function/identity.js
new file mode 100644
index 00000000..cde213f8
--- /dev/null
+++ b/node_modules/es5-ext/function/identity.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (value) { return value; };
diff --git a/node_modules/es5-ext/function/index.js b/node_modules/es5-ext/function/index.js
new file mode 100644
index 00000000..1574fbbb
--- /dev/null
+++ b/node_modules/es5-ext/function/index.js
@@ -0,0 +1,15 @@
+// Export all modules.
+
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "constant": require("./constant"),
+ "identity": require("./identity"),
+ "invoke": require("./invoke"),
+ "isArguments": require("./is-arguments"),
+ "isFunction": require("./is-function"),
+ "noop": require("./noop"),
+ "pluck": require("./pluck"),
+ "validFunction": require("./valid-function")
+};
diff --git a/node_modules/es5-ext/function/invoke.js b/node_modules/es5-ext/function/invoke.js
new file mode 100644
index 00000000..fcec0a7b
--- /dev/null
+++ b/node_modules/es5-ext/function/invoke.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var isCallable = require("../object/is-callable")
+ , value = require("../object/valid-value")
+ , slice = Array.prototype.slice
+ , apply = Function.prototype.apply;
+
+module.exports = function (name/*, …args*/) {
+ var args = slice.call(arguments, 1), isFn = isCallable(name);
+ return function (obj) {
+ value(obj);
+ return apply.call(isFn ? name : obj[name], obj, args.concat(slice.call(arguments, 1)));
+ };
+};
diff --git a/node_modules/es5-ext/function/is-arguments.js b/node_modules/es5-ext/function/is-arguments.js
new file mode 100644
index 00000000..833a7479
--- /dev/null
+++ b/node_modules/es5-ext/function/is-arguments.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var objToString = Object.prototype.toString
+ , id = objToString.call((function () { return arguments; })());
+
+module.exports = function (value) { return objToString.call(value) === id; };
diff --git a/node_modules/es5-ext/function/is-function.js b/node_modules/es5-ext/function/is-function.js
new file mode 100644
index 00000000..0d7cab33
--- /dev/null
+++ b/node_modules/es5-ext/function/is-function.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var objToString = Object.prototype.toString
+ , isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);
+
+module.exports = function (value) {
+ return typeof value === "function" && isFunctionStringTag(objToString.call(value));
+};
diff --git a/node_modules/es5-ext/function/noop.js b/node_modules/es5-ext/function/noop.js
new file mode 100644
index 00000000..6174f033
--- /dev/null
+++ b/node_modules/es5-ext/function/noop.js
@@ -0,0 +1,4 @@
+"use strict";
+
+// eslint-disable-next-line no-empty-function
+module.exports = function () {};
diff --git a/node_modules/es5-ext/function/pluck.js b/node_modules/es5-ext/function/pluck.js
new file mode 100644
index 00000000..432cd464
--- /dev/null
+++ b/node_modules/es5-ext/function/pluck.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var value = require("../object/valid-value");
+
+module.exports = function (name) {
+ return function (obj) { return value(obj)[name]; };
+};
diff --git a/node_modules/es5-ext/function/valid-function.js b/node_modules/es5-ext/function/valid-function.js
new file mode 100644
index 00000000..060bd645
--- /dev/null
+++ b/node_modules/es5-ext/function/valid-function.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isFunction = require("./is-function");
+
+module.exports = function (value) {
+ if (!isFunction(value)) throw new TypeError(value + " is not a function");
+ return value;
+};
diff --git a/node_modules/es5-ext/global.js b/node_modules/es5-ext/global.js
new file mode 100644
index 00000000..61071e64
--- /dev/null
+++ b/node_modules/es5-ext/global.js
@@ -0,0 +1,35 @@
+var naiveFallback = function () {
+ if (typeof self === "object" && self) return self;
+ if (typeof window === "object" && window) return window;
+ throw new Error("Unable to resolve global `this`");
+};
+
+module.exports = (function () {
+ if (this) return this;
+
+ // Unexpected strict mode (may happen if e.g. bundled into ESM module)
+
+ // Fallback to standard globalThis if available
+ if (typeof globalThis === "object" && globalThis) return globalThis;
+
+ // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis
+ // In all ES5+ engines global object inherits from Object.prototype
+ // (if you approached one that doesn't please report)
+ try {
+ Object.defineProperty(Object.prototype, "__global__", {
+ get: function () { return this; },
+ configurable: true
+ });
+ } catch (error) {
+ // Unfortunate case of updates to Object.prototype being restricted
+ // via preventExtensions, seal or freeze
+ return naiveFallback();
+ }
+ try {
+ // Safari case (window.__global__ works, but __global__ does not)
+ if (!__global__) return naiveFallback();
+ return __global__;
+ } finally {
+ delete Object.prototype.__global__;
+ }
+})();
diff --git a/node_modules/es5-ext/index.js b/node_modules/es5-ext/index.js
new file mode 100644
index 00000000..0919764e
--- /dev/null
+++ b/node_modules/es5-ext/index.js
@@ -0,0 +1,22 @@
+"use strict";
+
+module.exports = {
+ global: require("./global"),
+ optionalChaining: require("./optional-chaining"),
+ safeToString: require("./safe-to-string"),
+ toShortStringRepresentation: require("./to-short-string-representation"),
+
+ array: require("./array"),
+ boolean: require("./boolean"),
+ date: require("./date"),
+ error: require("./error"),
+ function: require("./function"),
+ iterable: require("./iterable"),
+ json: require("./json"),
+ math: require("./math"),
+ number: require("./number"),
+ object: require("./object"),
+ promise: require("./promise"),
+ regExp: require("./reg-exp"),
+ string: require("./string")
+};
diff --git a/node_modules/es5-ext/iterable/for-each.js b/node_modules/es5-ext/iterable/for-each.js
new file mode 100644
index 00000000..60638226
--- /dev/null
+++ b/node_modules/es5-ext/iterable/for-each.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var forOf = require("es6-iterator/for-of")
+ , isIterable = require("es6-iterator/is-iterable")
+ , iterable = require("./validate")
+ , forEach = Array.prototype.forEach;
+
+module.exports = function (target, cb/*, thisArg*/) {
+ if (isIterable(iterable(target))) forOf(target, cb, arguments[2]);
+ else forEach.call(target, cb, arguments[2]);
+};
diff --git a/node_modules/es5-ext/iterable/index.js b/node_modules/es5-ext/iterable/index.js
new file mode 100644
index 00000000..4b898fc8
--- /dev/null
+++ b/node_modules/es5-ext/iterable/index.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+ forEach: require("./for-each"),
+ is: require("./is"),
+ validate: require("./validate"),
+ validateObject: require("./validate-object")
+};
diff --git a/node_modules/es5-ext/iterable/is.js b/node_modules/es5-ext/iterable/is.js
new file mode 100644
index 00000000..aa5a9b9e
--- /dev/null
+++ b/node_modules/es5-ext/iterable/is.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , isValue = require("../object/is-value")
+ , isArrayLike = require("../object/is-array-like");
+
+module.exports = function (value) {
+ if (!isValue(value)) return false;
+ if (typeof value[iteratorSymbol] === "function") return true;
+ return isArrayLike(value);
+};
diff --git a/node_modules/es5-ext/iterable/validate-object.js b/node_modules/es5-ext/iterable/validate-object.js
new file mode 100644
index 00000000..26e622b5
--- /dev/null
+++ b/node_modules/es5-ext/iterable/validate-object.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var isObject = require("../object/is-object")
+ , is = require("./is");
+
+module.exports = function (value) {
+ if (is(value) && isObject(value)) return value;
+ throw new TypeError(value + " is not an iterable or array-like object");
+};
diff --git a/node_modules/es5-ext/iterable/validate.js b/node_modules/es5-ext/iterable/validate.js
new file mode 100644
index 00000000..94a91c47
--- /dev/null
+++ b/node_modules/es5-ext/iterable/validate.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var is = require("./is");
+
+module.exports = function (value) {
+ if (is(value)) return value;
+ throw new TypeError(value + " is not an iterable or array-like");
+};
diff --git a/node_modules/es5-ext/json/index.js b/node_modules/es5-ext/json/index.js
new file mode 100644
index 00000000..d26ac565
--- /dev/null
+++ b/node_modules/es5-ext/json/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { safeStringify: require("./safe-stringify") };
diff --git a/node_modules/es5-ext/json/safe-stringify.js b/node_modules/es5-ext/json/safe-stringify.js
new file mode 100644
index 00000000..b996a626
--- /dev/null
+++ b/node_modules/es5-ext/json/safe-stringify.js
@@ -0,0 +1,37 @@
+"use strict";
+
+var compact = require("../array/#/compact")
+ , isObject = require("../object/is-object")
+ , toArray = require("../object/to-array")
+ , isArray = Array.isArray
+ , stringify = JSON.stringify;
+
+module.exports = function self(value/*, replacer, space*/) {
+ var replacer = arguments[1], space = arguments[2];
+ try {
+ return stringify(value, replacer, space);
+ } catch (e) {
+ if (!isObject(value)) return null;
+ if (typeof value.toJSON === "function") return null;
+ if (isArray(value)) {
+ return (
+ "[" +
+ compact.call(value.map(function (item) { return self(item, replacer, space); })) +
+ "]"
+ );
+ }
+ return (
+ "{" +
+ compact
+ .call(
+ toArray(value, function (item, key) {
+ item = self(item, replacer, space);
+ if (!item) return null;
+ return stringify(key) + ":" + item;
+ })
+ )
+ .join(",") +
+ "}"
+ );
+ }
+};
diff --git a/node_modules/es5-ext/math/_decimal-adjust.js b/node_modules/es5-ext/math/_decimal-adjust.js
new file mode 100644
index 00000000..fd0b0025
--- /dev/null
+++ b/node_modules/es5-ext/math/_decimal-adjust.js
@@ -0,0 +1,29 @@
+// Credit:
+// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round
+// #Decimal_rounding
+
+"use strict";
+
+var isValue = require("../object/is-value")
+ , ensureInteger = require("../object/ensure-integer");
+
+var split = String.prototype.split;
+
+module.exports = function (type) {
+ return function (value/*, exp*/) {
+ value = Number(value);
+ var exp = arguments[1];
+ if (isValue(exp)) exp = ensureInteger(exp);
+ if (!value) return value;
+ if (!exp) return Math[type](value);
+ if (!isFinite(value)) return value;
+
+ // Shift
+ var tokens = split.call(value, "e");
+ value = Math[type](tokens[0] + "e" + ((tokens[1] || 0) - exp));
+
+ // Shift back
+ tokens = value.toString().split("e");
+ return Number(tokens[0] + "e" + (Number(tokens[1] || 0) + exp));
+ };
+};
diff --git a/node_modules/es5-ext/math/_pack-ieee754.js b/node_modules/es5-ext/math/_pack-ieee754.js
new file mode 100644
index 00000000..b3edf8d1
--- /dev/null
+++ b/node_modules/es5-ext/math/_pack-ieee754.js
@@ -0,0 +1,88 @@
+/* eslint no-bitwise: "off" */
+// Credit: https://github.com/paulmillr/es6-shim/
+
+"use strict";
+
+var abs = Math.abs
+ , floor = Math.floor
+ , log = Math.log
+ , min = Math.min
+ , pow = Math.pow
+ , LN2 = Math.LN2
+ , roundToEven;
+
+roundToEven = function (num) {
+ var whole = floor(num), fraction = num - whole;
+ if (fraction < 0.5) return whole;
+ if (fraction > 0.5) return whole + 1;
+ return whole % 2 ? whole + 1 : whole;
+};
+
+// eslint-disable-next-line max-statements, max-lines-per-function
+module.exports = function (value, ebits, fbits) {
+ var bias = (1 << (ebits - 1)) - 1, sign, e, fraction, i, bits, str, bytes;
+
+ // Compute sign, exponent, fraction
+ if (isNaN(value)) {
+ // NaN
+ // http://dev.w3.org/2006/webapi/WebIDL/#es-type-mapping
+ e = (1 << ebits) - 1;
+ fraction = pow(2, fbits - 1);
+ sign = 0;
+ } else if (value === Infinity || value === -Infinity) {
+ e = (1 << ebits) - 1;
+ fraction = 0;
+ sign = value < 0 ? 1 : 0;
+ } else if (value === 0) {
+ e = 0;
+ fraction = 0;
+ sign = 1 / value === -Infinity ? 1 : 0;
+ } else {
+ sign = value < 0;
+ value = abs(value);
+
+ if (value >= pow(2, 1 - bias)) {
+ e = min(floor(log(value) / LN2), 1023);
+ fraction = roundToEven((value / pow(2, e)) * pow(2, fbits));
+ if (fraction / pow(2, fbits) >= 2) {
+ e += 1;
+ fraction = 1;
+ }
+ if (e > bias) {
+ // Overflow
+ e = (1 << ebits) - 1;
+ fraction = 0;
+ } else {
+ // Normal
+ e += bias;
+ fraction -= pow(2, fbits);
+ }
+ } else {
+ // Subnormal
+ e = 0;
+ fraction = roundToEven(value / pow(2, 1 - bias - fbits));
+ }
+ }
+
+ // Pack sign, exponent, fraction
+ bits = [];
+ for (i = fbits; i; i -= 1) {
+ bits.push(fraction % 2 ? 1 : 0);
+ fraction = floor(fraction / 2);
+ }
+ for (i = ebits; i; i -= 1) {
+ bits.push(e % 2 ? 1 : 0);
+ e = floor(e / 2);
+ }
+ bits.push(sign ? 1 : 0);
+ bits.reverse();
+ str = bits.join("");
+
+ // Bits to bytes
+ bytes = [];
+ while (str.length) {
+ bytes.push(parseInt(str.substring(0, 8), 2));
+ str = str.substring(8);
+ }
+ return bytes;
+};
diff --git a/node_modules/es5-ext/math/_unpack-ieee754.js b/node_modules/es5-ext/math/_unpack-ieee754.js
new file mode 100644
index 00000000..83fa9475
--- /dev/null
+++ b/node_modules/es5-ext/math/_unpack-ieee754.js
@@ -0,0 +1,33 @@
+/* eslint no-bitwise: "off" */
+// Credit: https://github.com/paulmillr/es6-shim/
+
+"use strict";
+
+var pow = Math.pow;
+
+module.exports = function (bytes, ebits, fbits) {
+ // Bytes to bits
+ var bits = [], i, j, bit, str, bias, sign, e, fraction;
+
+ for (i = bytes.length; i; i -= 1) {
+ bit = bytes[i - 1];
+ for (j = 8; j; j -= 1) {
+ bits.push(bit % 2 ? 1 : 0);
+ bit >>= 1;
+ }
+ }
+ bits.reverse();
+ str = bits.join("");
+
+ // Unpack sign, exponent, fraction
+ bias = (1 << (ebits - 1)) - 1;
+ sign = parseInt(str.substring(0, 1), 2) ? -1 : 1;
+ e = parseInt(str.substring(1, 1 + ebits), 2);
+ fraction = parseInt(str.substring(1 + ebits), 2);
+
+ // Produce number
+ if (e === (1 << ebits) - 1) return fraction === 0 ? sign * Infinity : NaN;
+ if (e > 0) return sign * pow(2, e - bias) * (1 + fraction / pow(2, fbits));
+ if (fraction !== 0) return sign * pow(2, -(bias - 1)) * (fraction / pow(2, fbits));
+ return sign < 0 ? -0 : 0;
+};
diff --git a/node_modules/es5-ext/math/acosh/implement.js b/node_modules/es5-ext/math/acosh/implement.js
new file mode 100644
index 00000000..9e4582fe
--- /dev/null
+++ b/node_modules/es5-ext/math/acosh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "acosh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/acosh/index.js b/node_modules/es5-ext/math/acosh/index.js
new file mode 100644
index 00000000..da176cb8
--- /dev/null
+++ b/node_modules/es5-ext/math/acosh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.acosh : require("./shim");
diff --git a/node_modules/es5-ext/math/acosh/is-implemented.js b/node_modules/es5-ext/math/acosh/is-implemented.js
new file mode 100644
index 00000000..2e973013
--- /dev/null
+++ b/node_modules/es5-ext/math/acosh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var acosh = Math.acosh;
+ if (typeof acosh !== "function") return false;
+ return acosh(2) === 1.3169578969248166;
+};
diff --git a/node_modules/es5-ext/math/acosh/shim.js b/node_modules/es5-ext/math/acosh/shim.js
new file mode 100644
index 00000000..3e632ffb
--- /dev/null
+++ b/node_modules/es5-ext/math/acosh/shim.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var log = Math.log, sqrt = Math.sqrt;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value < 1) return NaN;
+ if (value === 1) return 0;
+ if (value === Infinity) return value;
+ return log(value + sqrt(value * value - 1));
+};
diff --git a/node_modules/es5-ext/math/asinh/implement.js b/node_modules/es5-ext/math/asinh/implement.js
new file mode 100644
index 00000000..1c0d7e40
--- /dev/null
+++ b/node_modules/es5-ext/math/asinh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "asinh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/asinh/index.js b/node_modules/es5-ext/math/asinh/index.js
new file mode 100644
index 00000000..8ca30262
--- /dev/null
+++ b/node_modules/es5-ext/math/asinh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.asinh : require("./shim");
diff --git a/node_modules/es5-ext/math/asinh/is-implemented.js b/node_modules/es5-ext/math/asinh/is-implemented.js
new file mode 100644
index 00000000..a7e0f20f
--- /dev/null
+++ b/node_modules/es5-ext/math/asinh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var asinh = Math.asinh;
+ if (typeof asinh !== "function") return false;
+ return asinh(2) === 1.4436354751788103;
+};
diff --git a/node_modules/es5-ext/math/asinh/shim.js b/node_modules/es5-ext/math/asinh/shim.js
new file mode 100644
index 00000000..30ce2e4d
--- /dev/null
+++ b/node_modules/es5-ext/math/asinh/shim.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var log = Math.log, sqrt = Math.sqrt;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (!isFinite(value)) return value;
+ if (value < 0) {
+ value = -value;
+ return -log(value + sqrt(value * value + 1));
+ }
+ return log(value + sqrt(value * value + 1));
+};
diff --git a/node_modules/es5-ext/math/atanh/implement.js b/node_modules/es5-ext/math/atanh/implement.js
new file mode 100644
index 00000000..53f58710
--- /dev/null
+++ b/node_modules/es5-ext/math/atanh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "atanh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/atanh/index.js b/node_modules/es5-ext/math/atanh/index.js
new file mode 100644
index 00000000..feff0a72
--- /dev/null
+++ b/node_modules/es5-ext/math/atanh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.atanh : require("./shim");
diff --git a/node_modules/es5-ext/math/atanh/is-implemented.js b/node_modules/es5-ext/math/atanh/is-implemented.js
new file mode 100644
index 00000000..4787c4fa
--- /dev/null
+++ b/node_modules/es5-ext/math/atanh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var atanh = Math.atanh;
+ if (typeof atanh !== "function") return false;
+ return Math.round(atanh(0.5) * 1e15) === 549306144334055;
+};
diff --git a/node_modules/es5-ext/math/atanh/shim.js b/node_modules/es5-ext/math/atanh/shim.js
new file mode 100644
index 00000000..9383e971
--- /dev/null
+++ b/node_modules/es5-ext/math/atanh/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var log = Math.log;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value < -1) return NaN;
+ if (value > 1) return NaN;
+ if (value === -1) return -Infinity;
+ if (value === 1) return Infinity;
+ if (value === 0) return value;
+ return 0.5 * log((1 + value) / (1 - value));
+};
diff --git a/node_modules/es5-ext/math/cbrt/implement.js b/node_modules/es5-ext/math/cbrt/implement.js
new file mode 100644
index 00000000..826314c6
--- /dev/null
+++ b/node_modules/es5-ext/math/cbrt/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "cbrt", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/cbrt/index.js b/node_modules/es5-ext/math/cbrt/index.js
new file mode 100644
index 00000000..a6c71c65
--- /dev/null
+++ b/node_modules/es5-ext/math/cbrt/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.cbrt : require("./shim");
diff --git a/node_modules/es5-ext/math/cbrt/is-implemented.js b/node_modules/es5-ext/math/cbrt/is-implemented.js
new file mode 100644
index 00000000..a8ac0db2
--- /dev/null
+++ b/node_modules/es5-ext/math/cbrt/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var cbrt = Math.cbrt;
+ if (typeof cbrt !== "function") return false;
+ return cbrt(2) === 1.2599210498948732;
+};
diff --git a/node_modules/es5-ext/math/cbrt/shim.js b/node_modules/es5-ext/math/cbrt/shim.js
new file mode 100644
index 00000000..8871c552
--- /dev/null
+++ b/node_modules/es5-ext/math/cbrt/shim.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var pow = Math.pow;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (!isFinite(value)) return value;
+ if (value < 0) return -pow(-value, 1 / 3);
+ return pow(value, 1 / 3);
+};
diff --git a/node_modules/es5-ext/math/ceil-10.js b/node_modules/es5-ext/math/ceil-10.js
new file mode 100644
index 00000000..351221f6
--- /dev/null
+++ b/node_modules/es5-ext/math/ceil-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_decimal-adjust")("ceil");
diff --git a/node_modules/es5-ext/math/clz32/implement.js b/node_modules/es5-ext/math/clz32/implement.js
new file mode 100644
index 00000000..70562df5
--- /dev/null
+++ b/node_modules/es5-ext/math/clz32/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "clz32", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/clz32/index.js b/node_modules/es5-ext/math/clz32/index.js
new file mode 100644
index 00000000..23803359
--- /dev/null
+++ b/node_modules/es5-ext/math/clz32/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.clz32 : require("./shim");
diff --git a/node_modules/es5-ext/math/clz32/is-implemented.js b/node_modules/es5-ext/math/clz32/is-implemented.js
new file mode 100644
index 00000000..ee6d8828
--- /dev/null
+++ b/node_modules/es5-ext/math/clz32/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var clz32 = Math.clz32;
+ if (typeof clz32 !== "function") return false;
+ return clz32(1000) === 22;
+};
diff --git a/node_modules/es5-ext/math/clz32/shim.js b/node_modules/es5-ext/math/clz32/shim.js
new file mode 100644
index 00000000..2b526c2c
--- /dev/null
+++ b/node_modules/es5-ext/math/clz32/shim.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (value) {
+ // eslint-disable-next-line no-bitwise
+ value >>>= 0;
+ return value ? 32 - value.toString(2).length : 32;
+};
diff --git a/node_modules/es5-ext/math/cosh/implement.js b/node_modules/es5-ext/math/cosh/implement.js
new file mode 100644
index 00000000..74e7eea3
--- /dev/null
+++ b/node_modules/es5-ext/math/cosh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "cosh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/cosh/index.js b/node_modules/es5-ext/math/cosh/index.js
new file mode 100644
index 00000000..c7a71673
--- /dev/null
+++ b/node_modules/es5-ext/math/cosh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.cosh : require("./shim");
diff --git a/node_modules/es5-ext/math/cosh/is-implemented.js b/node_modules/es5-ext/math/cosh/is-implemented.js
new file mode 100644
index 00000000..7173054c
--- /dev/null
+++ b/node_modules/es5-ext/math/cosh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var cosh = Math.cosh;
+ if (typeof cosh !== "function") return false;
+ return cosh(1) === 1.5430806348152437;
+};
diff --git a/node_modules/es5-ext/math/cosh/shim.js b/node_modules/es5-ext/math/cosh/shim.js
new file mode 100644
index 00000000..c762c84d
--- /dev/null
+++ b/node_modules/es5-ext/math/cosh/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var exp = Math.exp;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return 1;
+ if (!isFinite(value)) return Infinity;
+ return (exp(value) + exp(-value)) / 2;
+};
diff --git a/node_modules/es5-ext/math/expm1/implement.js b/node_modules/es5-ext/math/expm1/implement.js
new file mode 100644
index 00000000..9739bf5a
--- /dev/null
+++ b/node_modules/es5-ext/math/expm1/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "expm1", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/expm1/index.js b/node_modules/es5-ext/math/expm1/index.js
new file mode 100644
index 00000000..daf43951
--- /dev/null
+++ b/node_modules/es5-ext/math/expm1/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.expm1 : require("./shim");
diff --git a/node_modules/es5-ext/math/expm1/is-implemented.js b/node_modules/es5-ext/math/expm1/is-implemented.js
new file mode 100644
index 00000000..dfd056e0
--- /dev/null
+++ b/node_modules/es5-ext/math/expm1/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var expm1 = Math.expm1;
+ if (typeof expm1 !== "function") return false;
+ return expm1(1).toFixed(15) === "1.718281828459045";
+};
diff --git a/node_modules/es5-ext/math/expm1/shim.js b/node_modules/es5-ext/math/expm1/shim.js
new file mode 100644
index 00000000..6daf2bfd
--- /dev/null
+++ b/node_modules/es5-ext/math/expm1/shim.js
@@ -0,0 +1,16 @@
+// Thanks: https://github.com/monolithed/ECMAScript-6
+
+"use strict";
+
+var exp = Math.exp;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (value === Infinity) return Infinity;
+ if (value === -Infinity) return -1;
+
+ if (value > -1.0e-6 && value < 1.0e-6) return value + (value * value) / 2;
+ return exp(value) - 1;
+};
diff --git a/node_modules/es5-ext/math/floor-10.js b/node_modules/es5-ext/math/floor-10.js
new file mode 100644
index 00000000..3cb0c119
--- /dev/null
+++ b/node_modules/es5-ext/math/floor-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_decimal-adjust")("floor");
diff --git a/node_modules/es5-ext/math/fround/implement.js b/node_modules/es5-ext/math/fround/implement.js
new file mode 100644
index 00000000..9ce9cf27
--- /dev/null
+++ b/node_modules/es5-ext/math/fround/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "fround", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/fround/index.js b/node_modules/es5-ext/math/fround/index.js
new file mode 100644
index 00000000..9f0dbc05
--- /dev/null
+++ b/node_modules/es5-ext/math/fround/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.fround : require("./shim");
diff --git a/node_modules/es5-ext/math/fround/is-implemented.js b/node_modules/es5-ext/math/fround/is-implemented.js
new file mode 100644
index 00000000..ad2b705d
--- /dev/null
+++ b/node_modules/es5-ext/math/fround/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var fround = Math.fround;
+ if (typeof fround !== "function") return false;
+ return fround(1.337) === 1.3370000123977661;
+};
diff --git a/node_modules/es5-ext/math/fround/shim.js b/node_modules/es5-ext/math/fround/shim.js
new file mode 100644
index 00000000..b0dfaabc
--- /dev/null
+++ b/node_modules/es5-ext/math/fround/shim.js
@@ -0,0 +1,33 @@
+/* global Float32Array */
+
+// Credit: https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js
+
+"use strict";
+
+var toFloat32;
+
+if (typeof Float32Array === "undefined") {
+ toFloat32 = (function () {
+ var pack = require("../_pack-ieee754")
+ , unpack = require("../_unpack-ieee754");
+
+ return function (value) { return unpack(pack(value, 8, 23), 8, 23); };
+ })();
+} else {
+ toFloat32 = (function () {
+ var float32Array = new Float32Array(1);
+ return function (num) {
+ float32Array[0] = num;
+ return float32Array[0];
+ };
+ })();
+}
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (!isFinite(value)) return value;
+
+ return toFloat32(value);
+};
diff --git a/node_modules/es5-ext/math/hypot/implement.js b/node_modules/es5-ext/math/hypot/implement.js
new file mode 100644
index 00000000..e051add1
--- /dev/null
+++ b/node_modules/es5-ext/math/hypot/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "hypot", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/hypot/index.js b/node_modules/es5-ext/math/hypot/index.js
new file mode 100644
index 00000000..f8de46b2
--- /dev/null
+++ b/node_modules/es5-ext/math/hypot/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.hypot : require("./shim");
diff --git a/node_modules/es5-ext/math/hypot/is-implemented.js b/node_modules/es5-ext/math/hypot/is-implemented.js
new file mode 100644
index 00000000..d317bc7e
--- /dev/null
+++ b/node_modules/es5-ext/math/hypot/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var hypot = Math.hypot;
+ if (typeof hypot !== "function") return false;
+ return hypot(3, 4) === 5;
+};
diff --git a/node_modules/es5-ext/math/hypot/shim.js b/node_modules/es5-ext/math/hypot/shim.js
new file mode 100644
index 00000000..201ba7a2
--- /dev/null
+++ b/node_modules/es5-ext/math/hypot/shim.js
@@ -0,0 +1,37 @@
+// Thanks for hints: https://github.com/paulmillr/es6-shim
+
+"use strict";
+
+var some = Array.prototype.some
+ , abs = Math.abs
+ , sqrt = Math.sqrt
+ , compare = function (val1, val2) { return val2 - val1; }
+ , divide = function (value) { return value / this; }
+ , add = function (sum, number) { return sum + number * number; };
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (val1, val2/*, …valn*/) {
+ var result, numbers;
+ if (!arguments.length) return 0;
+ some.call(arguments, function (val) {
+ if (isNaN(val)) {
+ result = NaN;
+ return false;
+ }
+ if (!isFinite(val)) {
+ result = Infinity;
+ return true;
+ }
+ if (result !== undefined) return false;
+ val = Number(val);
+ if (val === 0) return false;
+ if (numbers) numbers.push(abs(val));
+ else numbers = [abs(val)];
+ return false;
+ });
+ if (result !== undefined) return result;
+ if (!numbers) return 0;
+
+ numbers.sort(compare);
+ return numbers[0] * sqrt(numbers.map(divide, numbers[0]).reduce(add, 0));
+};
diff --git a/node_modules/es5-ext/math/imul/implement.js b/node_modules/es5-ext/math/imul/implement.js
new file mode 100644
index 00000000..3aff4798
--- /dev/null
+++ b/node_modules/es5-ext/math/imul/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "imul", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/imul/index.js b/node_modules/es5-ext/math/imul/index.js
new file mode 100644
index 00000000..969124ce
--- /dev/null
+++ b/node_modules/es5-ext/math/imul/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.imul : require("./shim");
diff --git a/node_modules/es5-ext/math/imul/is-implemented.js b/node_modules/es5-ext/math/imul/is-implemented.js
new file mode 100644
index 00000000..0f329198
--- /dev/null
+++ b/node_modules/es5-ext/math/imul/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var imul = Math.imul;
+ if (typeof imul !== "function") return false;
+ return imul(-1, 8) === -8;
+};
diff --git a/node_modules/es5-ext/math/imul/shim.js b/node_modules/es5-ext/math/imul/shim.js
new file mode 100644
index 00000000..7511707a
--- /dev/null
+++ b/node_modules/es5-ext/math/imul/shim.js
@@ -0,0 +1,17 @@
+/* eslint no-bitwise: "off" */
+
+// Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference
+// /Global_Objects/Math/imul
+
+"use strict";
+
+module.exports = function (val1, val2) {
+ var xh = (val1 >>> 16) & 0xffff
+ , xl = val1 & 0xffff
+ , yh = (val2 >>> 16) & 0xffff
+ , yl = val2 & 0xffff;
+
+ // The shift by 0 fixes the sign on the high part
+ // the final |0 converts the unsigned value into a signed value
+ return (xl * yl + (((xh * yl + xl * yh) << 16) >>> 0)) | 0;
+};
diff --git a/node_modules/es5-ext/math/index.js b/node_modules/es5-ext/math/index.js
new file mode 100644
index 00000000..a59269cc
--- /dev/null
+++ b/node_modules/es5-ext/math/index.js
@@ -0,0 +1,24 @@
+"use strict";
+
+module.exports = {
+ acosh: require("./acosh"),
+ asinh: require("./asinh"),
+ atanh: require("./atanh"),
+ cbrt: require("./cbrt"),
+ ceil10: require("./ceil-10"),
+ clz32: require("./clz32"),
+ cosh: require("./cosh"),
+ expm1: require("./expm1"),
+ floor10: require("./floor-10"),
+ fround: require("./fround"),
+ hypot: require("./hypot"),
+ imul: require("./imul"),
+ log10: require("./log10"),
+ log2: require("./log2"),
+ log1p: require("./log1p"),
+ round10: require("./round-10"),
+ sign: require("./sign"),
+ sinh: require("./sinh"),
+ tanh: require("./tanh"),
+ trunc: require("./trunc")
+};
diff --git a/node_modules/es5-ext/math/log10/implement.js b/node_modules/es5-ext/math/log10/implement.js
new file mode 100644
index 00000000..f6153c14
--- /dev/null
+++ b/node_modules/es5-ext/math/log10/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "log10", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/log10/index.js b/node_modules/es5-ext/math/log10/index.js
new file mode 100644
index 00000000..abda55b8
--- /dev/null
+++ b/node_modules/es5-ext/math/log10/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.log10 : require("./shim");
diff --git a/node_modules/es5-ext/math/log10/is-implemented.js b/node_modules/es5-ext/math/log10/is-implemented.js
new file mode 100644
index 00000000..f2217597
--- /dev/null
+++ b/node_modules/es5-ext/math/log10/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var log10 = Math.log10;
+ if (typeof log10 !== "function") return false;
+ return log10(2) === 0.3010299956639812;
+};
diff --git a/node_modules/es5-ext/math/log10/shim.js b/node_modules/es5-ext/math/log10/shim.js
new file mode 100644
index 00000000..e8599a26
--- /dev/null
+++ b/node_modules/es5-ext/math/log10/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var log = Math.log, LOG10E = Math.LOG10E;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value < 0) return NaN;
+ if (value === 0) return -Infinity;
+ if (value === 1) return 0;
+ if (value === Infinity) return Infinity;
+
+ return log(value) * LOG10E;
+};
diff --git a/node_modules/es5-ext/math/log1p/implement.js b/node_modules/es5-ext/math/log1p/implement.js
new file mode 100644
index 00000000..21e94e6c
--- /dev/null
+++ b/node_modules/es5-ext/math/log1p/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "log1p", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/log1p/index.js b/node_modules/es5-ext/math/log1p/index.js
new file mode 100644
index 00000000..76eacc53
--- /dev/null
+++ b/node_modules/es5-ext/math/log1p/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.log1p : require("./shim");
diff --git a/node_modules/es5-ext/math/log1p/is-implemented.js b/node_modules/es5-ext/math/log1p/is-implemented.js
new file mode 100644
index 00000000..7626ab47
--- /dev/null
+++ b/node_modules/es5-ext/math/log1p/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var log1p = Math.log1p;
+ if (typeof log1p !== "function") return false;
+ return log1p(1) === 0.6931471805599453;
+};
diff --git a/node_modules/es5-ext/math/log1p/shim.js b/node_modules/es5-ext/math/log1p/shim.js
new file mode 100644
index 00000000..15f1182f
--- /dev/null
+++ b/node_modules/es5-ext/math/log1p/shim.js
@@ -0,0 +1,17 @@
+// Thanks: https://github.com/monolithed/ECMAScript-6/blob/master/ES6.js
+
+"use strict";
+
+var log = Math.log;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value < -1) return NaN;
+ if (value === -1) return -Infinity;
+ if (value === 0) return value;
+ if (value === Infinity) return Infinity;
+
+ if (value > -1.0e-8 && value < 1.0e-8) return value - (value * value) / 2;
+ return log(1 + value);
+};
diff --git a/node_modules/es5-ext/math/log2/implement.js b/node_modules/es5-ext/math/log2/implement.js
new file mode 100644
index 00000000..91c06b1c
--- /dev/null
+++ b/node_modules/es5-ext/math/log2/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "log2", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/log2/index.js b/node_modules/es5-ext/math/log2/index.js
new file mode 100644
index 00000000..a5619770
--- /dev/null
+++ b/node_modules/es5-ext/math/log2/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.log2 : require("./shim");
diff --git a/node_modules/es5-ext/math/log2/is-implemented.js b/node_modules/es5-ext/math/log2/is-implemented.js
new file mode 100644
index 00000000..c70963f6
--- /dev/null
+++ b/node_modules/es5-ext/math/log2/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var log2 = Math.log2;
+ if (typeof log2 !== "function") return false;
+ return log2(3).toFixed(15) === "1.584962500721156";
+};
diff --git a/node_modules/es5-ext/math/log2/shim.js b/node_modules/es5-ext/math/log2/shim.js
new file mode 100644
index 00000000..51fcdae9
--- /dev/null
+++ b/node_modules/es5-ext/math/log2/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var log = Math.log, LOG2E = Math.LOG2E;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value < 0) return NaN;
+ if (value === 0) return -Infinity;
+ if (value === 1) return 0;
+ if (value === Infinity) return Infinity;
+
+ return log(value) * LOG2E;
+};
diff --git a/node_modules/es5-ext/math/round-10.js b/node_modules/es5-ext/math/round-10.js
new file mode 100644
index 00000000..228c2351
--- /dev/null
+++ b/node_modules/es5-ext/math/round-10.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_decimal-adjust")("round");
diff --git a/node_modules/es5-ext/math/sign/implement.js b/node_modules/es5-ext/math/sign/implement.js
new file mode 100644
index 00000000..daf1769d
--- /dev/null
+++ b/node_modules/es5-ext/math/sign/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "sign", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/sign/index.js b/node_modules/es5-ext/math/sign/index.js
new file mode 100644
index 00000000..d2659cb5
--- /dev/null
+++ b/node_modules/es5-ext/math/sign/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.sign : require("./shim");
diff --git a/node_modules/es5-ext/math/sign/is-implemented.js b/node_modules/es5-ext/math/sign/is-implemented.js
new file mode 100644
index 00000000..4318cf2b
--- /dev/null
+++ b/node_modules/es5-ext/math/sign/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var sign = Math.sign;
+ if (typeof sign !== "function") return false;
+ return sign(10) === 1 && sign(-20) === -1;
+};
diff --git a/node_modules/es5-ext/math/sign/shim.js b/node_modules/es5-ext/math/sign/shim.js
new file mode 100644
index 00000000..9acb4959
--- /dev/null
+++ b/node_modules/es5-ext/math/sign/shim.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (value) {
+ value = Number(value);
+ if (isNaN(value) || value === 0) return value;
+ return value > 0 ? 1 : -1;
+};
diff --git a/node_modules/es5-ext/math/sinh/implement.js b/node_modules/es5-ext/math/sinh/implement.js
new file mode 100644
index 00000000..4655f6bb
--- /dev/null
+++ b/node_modules/es5-ext/math/sinh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "sinh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/sinh/index.js b/node_modules/es5-ext/math/sinh/index.js
new file mode 100644
index 00000000..107ef2ee
--- /dev/null
+++ b/node_modules/es5-ext/math/sinh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.sinh : require("./shim");
diff --git a/node_modules/es5-ext/math/sinh/is-implemented.js b/node_modules/es5-ext/math/sinh/is-implemented.js
new file mode 100644
index 00000000..aad22b0a
--- /dev/null
+++ b/node_modules/es5-ext/math/sinh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var sinh = Math.sinh;
+ if (typeof sinh !== "function") return false;
+ return sinh(1) === 1.1752011936438014 && sinh(Number.MIN_VALUE) === 5e-324;
+};
diff --git a/node_modules/es5-ext/math/sinh/shim.js b/node_modules/es5-ext/math/sinh/shim.js
new file mode 100644
index 00000000..b161eca7
--- /dev/null
+++ b/node_modules/es5-ext/math/sinh/shim.js
@@ -0,0 +1,18 @@
+// Parts of implementation taken from es6-shim project
+// See: https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js
+
+"use strict";
+
+var expm1 = require("../expm1")
+ , abs = Math.abs
+ , exp = Math.exp
+ , e = Math.E;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (!isFinite(value)) return value;
+ if (abs(value) < 1) return (expm1(value) - expm1(-value)) / 2;
+ return ((exp(value - 1) - exp(-value - 1)) * e) / 2;
+};
diff --git a/node_modules/es5-ext/math/tanh/implement.js b/node_modules/es5-ext/math/tanh/implement.js
new file mode 100644
index 00000000..52d29576
--- /dev/null
+++ b/node_modules/es5-ext/math/tanh/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "tanh", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/tanh/index.js b/node_modules/es5-ext/math/tanh/index.js
new file mode 100644
index 00000000..54b32513
--- /dev/null
+++ b/node_modules/es5-ext/math/tanh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.tanh : require("./shim");
diff --git a/node_modules/es5-ext/math/tanh/is-implemented.js b/node_modules/es5-ext/math/tanh/is-implemented.js
new file mode 100644
index 00000000..b6226b4d
--- /dev/null
+++ b/node_modules/es5-ext/math/tanh/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var tanh = Math.tanh;
+ if (typeof tanh !== "function") return false;
+ return tanh(1) === 0.7615941559557649 && tanh(Number.MAX_VALUE) === 1;
+};
diff --git a/node_modules/es5-ext/math/tanh/shim.js b/node_modules/es5-ext/math/tanh/shim.js
new file mode 100644
index 00000000..974dd7cd
--- /dev/null
+++ b/node_modules/es5-ext/math/tanh/shim.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var exp = Math.exp;
+
+module.exports = function (value) {
+ var num1, num2;
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (value === Infinity) return 1;
+ if (value === -Infinity) return -1;
+ num1 = exp(value);
+ if (num1 === Infinity) return 1;
+ num2 = exp(-value);
+ if (num2 === Infinity) return -1;
+ return (num1 - num2) / (num1 + num2);
+};
diff --git a/node_modules/es5-ext/math/trunc/implement.js b/node_modules/es5-ext/math/trunc/implement.js
new file mode 100644
index 00000000..bf1bf64f
--- /dev/null
+++ b/node_modules/es5-ext/math/trunc/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Math, "trunc", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/math/trunc/index.js b/node_modules/es5-ext/math/trunc/index.js
new file mode 100644
index 00000000..8e3874c6
--- /dev/null
+++ b/node_modules/es5-ext/math/trunc/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Math.trunc : require("./shim");
diff --git a/node_modules/es5-ext/math/trunc/is-implemented.js b/node_modules/es5-ext/math/trunc/is-implemented.js
new file mode 100644
index 00000000..861b5c0e
--- /dev/null
+++ b/node_modules/es5-ext/math/trunc/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var trunc = Math.trunc;
+ if (typeof trunc !== "function") return false;
+ return trunc(13.67) === 13 && trunc(-13.67) === -13;
+};
diff --git a/node_modules/es5-ext/math/trunc/shim.js b/node_modules/es5-ext/math/trunc/shim.js
new file mode 100644
index 00000000..bf6ac8cc
--- /dev/null
+++ b/node_modules/es5-ext/math/trunc/shim.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var floor = Math.floor;
+
+module.exports = function (value) {
+ if (isNaN(value)) return NaN;
+ value = Number(value);
+ if (value === 0) return value;
+ if (value === Infinity) return Infinity;
+ if (value === -Infinity) return -Infinity;
+ if (value > 0) return floor(value);
+ return -floor(-value);
+};
diff --git a/node_modules/es5-ext/number/#/index.js b/node_modules/es5-ext/number/#/index.js
new file mode 100644
index 00000000..50b64187
--- /dev/null
+++ b/node_modules/es5-ext/number/#/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { pad: require("./pad") };
diff --git a/node_modules/es5-ext/number/#/pad.js b/node_modules/es5-ext/number/#/pad.js
new file mode 100644
index 00000000..aebe236d
--- /dev/null
+++ b/node_modules/es5-ext/number/#/pad.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var pad = require("../../string/#/pad")
+ , toPosInt = require("../to-pos-integer")
+ , toFixed = Number.prototype.toFixed;
+
+module.exports = function (length/*, precision*/) {
+ var precision;
+ length = toPosInt(length);
+ precision = toPosInt(arguments[1]);
+
+ return pad.call(
+ precision ? toFixed.call(this, precision) : this, "0",
+ length + (precision ? 1 + precision : 0)
+ );
+};
diff --git a/node_modules/es5-ext/number/epsilon/implement.js b/node_modules/es5-ext/number/epsilon/implement.js
new file mode 100644
index 00000000..5a22cf5b
--- /dev/null
+++ b/node_modules/es5-ext/number/epsilon/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "EPSILON", {
+ value: require("./"),
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+}
diff --git a/node_modules/es5-ext/number/epsilon/index.js b/node_modules/es5-ext/number/epsilon/index.js
new file mode 100644
index 00000000..12e8a8d2
--- /dev/null
+++ b/node_modules/es5-ext/number/epsilon/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = 2.220446049250313e-16;
diff --git a/node_modules/es5-ext/number/epsilon/is-implemented.js b/node_modules/es5-ext/number/epsilon/is-implemented.js
new file mode 100644
index 00000000..5ddc9d64
--- /dev/null
+++ b/node_modules/es5-ext/number/epsilon/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function () { return typeof Number.EPSILON === "number"; };
diff --git a/node_modules/es5-ext/number/index.js b/node_modules/es5-ext/number/index.js
new file mode 100644
index 00000000..b57ff150
--- /dev/null
+++ b/node_modules/es5-ext/number/index.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "EPSILON": require("./epsilon"),
+ "isFinite": require("./is-finite"),
+ "isInteger": require("./is-integer"),
+ "isNaN": require("./is-nan"),
+ "isNatural": require("./is-natural"),
+ "isNumber": require("./is-number"),
+ "isSafeInteger": require("./is-safe-integer"),
+ "MAX_SAFE_INTEGER": require("./max-safe-integer"),
+ "MIN_SAFE_INTEGER": require("./min-safe-integer"),
+ "toInteger": require("./to-integer"),
+ "toPosInteger": require("./to-pos-integer"),
+ "toUint32": require("./to-uint32")
+};
diff --git a/node_modules/es5-ext/number/is-finite/implement.js b/node_modules/es5-ext/number/is-finite/implement.js
new file mode 100644
index 00000000..41109fb6
--- /dev/null
+++ b/node_modules/es5-ext/number/is-finite/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "isFinite", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/number/is-finite/index.js b/node_modules/es5-ext/number/is-finite/index.js
new file mode 100644
index 00000000..f3a71127
--- /dev/null
+++ b/node_modules/es5-ext/number/is-finite/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Number.isFinite : require("./shim");
diff --git a/node_modules/es5-ext/number/is-finite/is-implemented.js b/node_modules/es5-ext/number/is-finite/is-implemented.js
new file mode 100644
index 00000000..eadd0507
--- /dev/null
+++ b/node_modules/es5-ext/number/is-finite/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var numberIsFinite = Number.isFinite;
+ if (typeof numberIsFinite !== "function") return false;
+ return !numberIsFinite("23") && numberIsFinite(34) && !numberIsFinite(Infinity);
+};
diff --git a/node_modules/es5-ext/number/is-finite/shim.js b/node_modules/es5-ext/number/is-finite/shim.js
new file mode 100644
index 00000000..ce700f6a
--- /dev/null
+++ b/node_modules/es5-ext/number/is-finite/shim.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (value) { return typeof value === "number" && isFinite(value); };
diff --git a/node_modules/es5-ext/number/is-integer/implement.js b/node_modules/es5-ext/number/is-integer/implement.js
new file mode 100644
index 00000000..48b4cd21
--- /dev/null
+++ b/node_modules/es5-ext/number/is-integer/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "isInteger", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/number/is-integer/index.js b/node_modules/es5-ext/number/is-integer/index.js
new file mode 100644
index 00000000..2805b11a
--- /dev/null
+++ b/node_modules/es5-ext/number/is-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Number.isInteger : require("./shim");
diff --git a/node_modules/es5-ext/number/is-integer/is-implemented.js b/node_modules/es5-ext/number/is-integer/is-implemented.js
new file mode 100644
index 00000000..f357c717
--- /dev/null
+++ b/node_modules/es5-ext/number/is-integer/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var isInteger = Number.isInteger;
+ if (typeof isInteger !== "function") return false;
+ return !isInteger("23") && isInteger(34) && !isInteger(32.34);
+};
diff --git a/node_modules/es5-ext/number/is-integer/shim.js b/node_modules/es5-ext/number/is-integer/shim.js
new file mode 100644
index 00000000..12058b5a
--- /dev/null
+++ b/node_modules/es5-ext/number/is-integer/shim.js
@@ -0,0 +1,8 @@
+// Credit: http://www.2ality.com/2014/05/is-integer.html
+
+"use strict";
+
+module.exports = function (value) {
+ if (typeof value !== "number") return false;
+ return value % 1 === 0;
+};
diff --git a/node_modules/es5-ext/number/is-nan/implement.js b/node_modules/es5-ext/number/is-nan/implement.js
new file mode 100644
index 00000000..f704e4c1
--- /dev/null
+++ b/node_modules/es5-ext/number/is-nan/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "isNaN", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/number/is-nan/index.js b/node_modules/es5-ext/number/is-nan/index.js
new file mode 100644
index 00000000..2cec8fc3
--- /dev/null
+++ b/node_modules/es5-ext/number/is-nan/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Number.isNaN : require("./shim");
diff --git a/node_modules/es5-ext/number/is-nan/is-implemented.js b/node_modules/es5-ext/number/is-nan/is-implemented.js
new file mode 100644
index 00000000..756838a4
--- /dev/null
+++ b/node_modules/es5-ext/number/is-nan/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var numberIsNaN = Number.isNaN;
+ if (typeof numberIsNaN !== "function") return false;
+ return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34);
+};
diff --git a/node_modules/es5-ext/number/is-nan/shim.js b/node_modules/es5-ext/number/is-nan/shim.js
new file mode 100644
index 00000000..b5730d1d
--- /dev/null
+++ b/node_modules/es5-ext/number/is-nan/shim.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (value) {
+ // eslint-disable-next-line no-self-compare
+ return value !== value;
+};
diff --git a/node_modules/es5-ext/number/is-natural.js b/node_modules/es5-ext/number/is-natural.js
new file mode 100644
index 00000000..2bbb5a21
--- /dev/null
+++ b/node_modules/es5-ext/number/is-natural.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isInteger = require("./is-integer");
+
+module.exports = function (num) { return isInteger(num) && num >= 0; };
diff --git a/node_modules/es5-ext/number/is-number.js b/node_modules/es5-ext/number/is-number.js
new file mode 100644
index 00000000..3da0712d
--- /dev/null
+++ b/node_modules/es5-ext/number/is-number.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call(1);
+
+module.exports = function (value) {
+ return (
+ typeof value === "number" ||
+ (value instanceof Number || (typeof value === "object" && objToString.call(value) === id))
+ );
+};
diff --git a/node_modules/es5-ext/number/is-safe-integer/implement.js b/node_modules/es5-ext/number/is-safe-integer/implement.js
new file mode 100644
index 00000000..571b214f
--- /dev/null
+++ b/node_modules/es5-ext/number/is-safe-integer/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "isSafeInteger", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/number/is-safe-integer/index.js b/node_modules/es5-ext/number/is-safe-integer/index.js
new file mode 100644
index 00000000..26c2b9f5
--- /dev/null
+++ b/node_modules/es5-ext/number/is-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Number.isSafeInteger : require("./shim");
diff --git a/node_modules/es5-ext/number/is-safe-integer/is-implemented.js b/node_modules/es5-ext/number/is-safe-integer/is-implemented.js
new file mode 100644
index 00000000..5ed37636
--- /dev/null
+++ b/node_modules/es5-ext/number/is-safe-integer/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var isSafeInteger = Number.isSafeInteger;
+ if (typeof isSafeInteger !== "function") return false;
+ return !isSafeInteger("23") && isSafeInteger(34232322323) && !isSafeInteger(9007199254740992);
+};
diff --git a/node_modules/es5-ext/number/is-safe-integer/shim.js b/node_modules/es5-ext/number/is-safe-integer/shim.js
new file mode 100644
index 00000000..fb4f4d55
--- /dev/null
+++ b/node_modules/es5-ext/number/is-safe-integer/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var isInteger = require("../is-integer/shim")
+ , maxValue = require("../max-safe-integer")
+ , abs = Math.abs;
+
+module.exports = function (value) {
+ if (!isInteger(value)) return false;
+ return abs(value) <= maxValue;
+};
diff --git a/node_modules/es5-ext/number/max-safe-integer/implement.js b/node_modules/es5-ext/number/max-safe-integer/implement.js
new file mode 100644
index 00000000..4ee32310
--- /dev/null
+++ b/node_modules/es5-ext/number/max-safe-integer/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "MAX_SAFE_INTEGER", {
+ value: require("./"),
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+}
diff --git a/node_modules/es5-ext/number/max-safe-integer/index.js b/node_modules/es5-ext/number/max-safe-integer/index.js
new file mode 100644
index 00000000..75a41e7c
--- /dev/null
+++ b/node_modules/es5-ext/number/max-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = Math.pow(2, 53) - 1;
diff --git a/node_modules/es5-ext/number/max-safe-integer/is-implemented.js b/node_modules/es5-ext/number/max-safe-integer/is-implemented.js
new file mode 100644
index 00000000..3d6e9141
--- /dev/null
+++ b/node_modules/es5-ext/number/max-safe-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function () { return typeof Number.MAX_SAFE_INTEGER === "number"; };
diff --git a/node_modules/es5-ext/number/min-safe-integer/implement.js b/node_modules/es5-ext/number/min-safe-integer/implement.js
new file mode 100644
index 00000000..979dc394
--- /dev/null
+++ b/node_modules/es5-ext/number/min-safe-integer/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Number, "MIN_SAFE_INTEGER", {
+ value: require("./"),
+ configurable: false,
+ enumerable: false,
+ writable: false
+ });
+}
diff --git a/node_modules/es5-ext/number/min-safe-integer/index.js b/node_modules/es5-ext/number/min-safe-integer/index.js
new file mode 100644
index 00000000..cde45146
--- /dev/null
+++ b/node_modules/es5-ext/number/min-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = -(Math.pow(2, 53) - 1);
diff --git a/node_modules/es5-ext/number/min-safe-integer/is-implemented.js b/node_modules/es5-ext/number/min-safe-integer/is-implemented.js
new file mode 100644
index 00000000..71e6a315
--- /dev/null
+++ b/node_modules/es5-ext/number/min-safe-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function () { return typeof Number.MIN_SAFE_INTEGER === "number"; };
diff --git a/node_modules/es5-ext/number/to-integer.js b/node_modules/es5-ext/number/to-integer.js
new file mode 100644
index 00000000..4df5572a
--- /dev/null
+++ b/node_modules/es5-ext/number/to-integer.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var sign = require("../math/sign")
+ , abs = Math.abs
+ , floor = Math.floor;
+
+module.exports = function (value) {
+ if (isNaN(value)) return 0;
+ value = Number(value);
+ if (value === 0 || !isFinite(value)) return value;
+ return sign(value) * floor(abs(value));
+};
diff --git a/node_modules/es5-ext/number/to-pos-integer.js b/node_modules/es5-ext/number/to-pos-integer.js
new file mode 100644
index 00000000..28f6d401
--- /dev/null
+++ b/node_modules/es5-ext/number/to-pos-integer.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var toInteger = require("./to-integer")
+ , max = Math.max;
+
+module.exports = function (value) { return max(0, toInteger(value)); };
diff --git a/node_modules/es5-ext/number/to-uint32.js b/node_modules/es5-ext/number/to-uint32.js
new file mode 100644
index 00000000..cb3590aa
--- /dev/null
+++ b/node_modules/es5-ext/number/to-uint32.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (value) {
+ // eslint-disable-next-line no-bitwise
+ return value >>> 0;
+};
diff --git a/node_modules/es5-ext/object/_iterate.js b/node_modules/es5-ext/object/_iterate.js
new file mode 100644
index 00000000..0a64fdba
--- /dev/null
+++ b/node_modules/es5-ext/object/_iterate.js
@@ -0,0 +1,30 @@
+// Internal method, used by iteration functions.
+// Calls a function for each key-value pair found in object
+// Optionally takes compareFn to iterate object in specific order
+
+"use strict";
+
+var callable = require("./valid-callable")
+ , value = require("./valid-value")
+ , bind = Function.prototype.bind
+ , call = Function.prototype.call
+ , keys = Object.keys
+ , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (method, defVal) {
+ return function (obj, cb/*, thisArg, compareFn*/) {
+ var list, thisArg = arguments[2], compareFn = arguments[3];
+ obj = Object(value(obj));
+ callable(cb);
+
+ list = keys(obj);
+ if (compareFn) {
+ list.sort(typeof compareFn === "function" ? bind.call(compareFn, obj) : undefined);
+ }
+ if (typeof method !== "function") method = list[method];
+ return call.call(method, list, function (key, index) {
+ if (!objPropertyIsEnumerable.call(obj, key)) return defVal;
+ return call.call(cb, thisArg, obj[key], key, obj, index);
+ });
+ };
+};
diff --git a/node_modules/es5-ext/object/assign-deep.js b/node_modules/es5-ext/object/assign-deep.js
new file mode 100644
index 00000000..4a8597a4
--- /dev/null
+++ b/node_modules/es5-ext/object/assign-deep.js
@@ -0,0 +1,34 @@
+"use strict";
+
+var includes = require("../array/#/contains")
+ , uniq = require("../array/#/uniq")
+ , copyDeep = require("./copy-deep")
+ , objForEach = require("./for-each")
+ , isPlainObject = require("./is-plain-object")
+ , ensureValue = require("./valid-value");
+
+var isArray = Array.isArray, slice = Array.prototype.slice;
+
+var deepAssign = function (target, source) {
+ if (target === source) return target;
+ if (isPlainObject(target) && isPlainObject(source)) {
+ objForEach(source, function (value, key) { target[key] = deepAssign(target[key], value); });
+ return target;
+ }
+ if (isArray(target) && isArray(source)) {
+ source.forEach(function (item) {
+ if (includes.call(target, item)) return;
+ if (isArray(item) || isPlainObject(item)) item = copyDeep(item);
+ target.push(item);
+ });
+ return target;
+ }
+ if (isPlainObject(source) || isArray(source)) return copyDeep(source);
+ return source;
+};
+
+module.exports = function (target/*, ...objects*/) {
+ return uniq
+ .call([ensureValue(target)].concat(slice.call(arguments, 1).map(ensureValue)))
+ .reduce(deepAssign);
+};
diff --git a/node_modules/es5-ext/object/assign/implement.js b/node_modules/es5-ext/object/assign/implement.js
new file mode 100644
index 00000000..f20371da
--- /dev/null
+++ b/node_modules/es5-ext/object/assign/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Object, "assign", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/object/assign/index.js b/node_modules/es5-ext/object/assign/index.js
new file mode 100644
index 00000000..9585b553
--- /dev/null
+++ b/node_modules/es5-ext/object/assign/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Object.assign : require("./shim");
diff --git a/node_modules/es5-ext/object/assign/is-implemented.js b/node_modules/es5-ext/object/assign/is-implemented.js
new file mode 100644
index 00000000..8bf71aea
--- /dev/null
+++ b/node_modules/es5-ext/object/assign/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function () {
+ var assign = Object.assign, obj;
+ if (typeof assign !== "function") return false;
+ obj = { foo: "raz" };
+ assign(obj, { bar: "dwa" }, { trzy: "trzy" });
+ return obj.foo + obj.bar + obj.trzy === "razdwatrzy";
+};
diff --git a/node_modules/es5-ext/object/assign/shim.js b/node_modules/es5-ext/object/assign/shim.js
new file mode 100644
index 00000000..ad1804d7
--- /dev/null
+++ b/node_modules/es5-ext/object/assign/shim.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var keys = require("../keys")
+ , value = require("../valid-value")
+ , max = Math.max;
+
+module.exports = function (dest, src/*, …srcn*/) {
+ var error, i, length = max(arguments.length, 2), assign;
+ dest = Object(value(dest));
+ assign = function (key) {
+ try {
+ dest[key] = src[key];
+ } catch (e) {
+ if (!error) error = e;
+ }
+ };
+ for (i = 1; i < length; ++i) {
+ src = arguments[i];
+ keys(src).forEach(assign);
+ }
+ if (error !== undefined) throw error;
+ return dest;
+};
diff --git a/node_modules/es5-ext/object/clear.js b/node_modules/es5-ext/object/clear.js
new file mode 100644
index 00000000..268cc5b5
--- /dev/null
+++ b/node_modules/es5-ext/object/clear.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var keys = require("./keys");
+
+module.exports = function (obj) {
+ var error;
+ keys(obj).forEach(function (key) {
+ try {
+ delete this[key];
+ } catch (e) {
+ if (!error) error = e;
+ }
+ }, obj);
+ if (error !== undefined) throw error;
+ return obj;
+};
diff --git a/node_modules/es5-ext/object/compact.js b/node_modules/es5-ext/object/compact.js
new file mode 100644
index 00000000..a1794bb3
--- /dev/null
+++ b/node_modules/es5-ext/object/compact.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var filter = require("./filter")
+ , isValue = require("./is-value");
+
+module.exports = function (obj) {
+ return filter(obj, function (val) { return isValue(val); });
+};
diff --git a/node_modules/es5-ext/object/compare.js b/node_modules/es5-ext/object/compare.js
new file mode 100644
index 00000000..261a732a
--- /dev/null
+++ b/node_modules/es5-ext/object/compare.js
@@ -0,0 +1,39 @@
+"use strict";
+
+var strCompare = require("../string/#/case-insensitive-compare")
+ , isObject = require("./is-object")
+ , isValue = require("./is-value")
+ , numIsNaN = require("../number/is-nan")
+ , resolve
+ , typeMap;
+
+typeMap = { undefined: 0, object: 1, boolean: 2, string: 3, number: 4 };
+
+resolve = function (a) {
+ if (isObject(a)) {
+ if (typeof a.valueOf !== "function") return NaN;
+ a = a.valueOf();
+ if (isObject(a)) {
+ if (typeof a.toString !== "function") return NaN;
+ a = a.toString();
+ if (typeof a !== "string") return NaN;
+ }
+ }
+ return a;
+};
+
+module.exports = function (val1, val2) {
+ if (val1 === val2) return 0; // Same
+
+ val1 = resolve(val1);
+ val2 = resolve(val2);
+ // eslint-disable-next-line eqeqeq
+ if (val1 == val2) return typeMap[typeof val1] - typeMap[typeof val2];
+ if (!isValue(val1)) return -1;
+ if (!isValue(val2)) return 1;
+ if (typeof val1 === "string" || typeof val2 === "string") {
+ return strCompare.call(val1, val2);
+ }
+ if (numIsNaN(val1) && numIsNaN(val2)) return 0; // Jslint: ignore
+ return Number(val1) - Number(val2);
+};
diff --git a/node_modules/es5-ext/object/copy-deep.js b/node_modules/es5-ext/object/copy-deep.js
new file mode 100644
index 00000000..1d1bed2e
--- /dev/null
+++ b/node_modules/es5-ext/object/copy-deep.js
@@ -0,0 +1,35 @@
+"use strict";
+
+var forEach = require("./for-each")
+ , isPlainObject = require("./is-plain-object")
+ , ensureValue = require("./valid-value")
+ , isArray = Array.isArray;
+
+var copyValue = function (value, ancestors, ancestorsCopy) {
+ var mode;
+ if (isPlainObject(value)) mode = "object";
+ else if (isArray(value)) mode = "array";
+ if (!mode) return value;
+
+ var copy = ancestorsCopy[ancestors.indexOf(value)];
+ if (copy) return copy;
+ copy = mode === "object" ? {} : [];
+
+ ancestors.push(value);
+ ancestorsCopy.push(copy);
+ if (mode === "object") {
+ forEach(value, function (item, key) {
+ copy[key] = copyValue(item, ancestors, ancestorsCopy);
+ });
+ } else {
+ value.forEach(function (item, index) {
+ copy[index] = copyValue(item, ancestors, ancestorsCopy);
+ });
+ }
+ ancestors.pop();
+ ancestorsCopy.pop();
+
+ return copy;
+};
+
+module.exports = function (source) { return copyValue(ensureValue(source), [], []); };
diff --git a/node_modules/es5-ext/object/copy.js b/node_modules/es5-ext/object/copy.js
new file mode 100644
index 00000000..5368e428
--- /dev/null
+++ b/node_modules/es5-ext/object/copy.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var aFrom = require("../array/from")
+ , assign = require("./assign")
+ , value = require("./valid-value");
+
+module.exports = function (obj/*, propertyNames, options*/) {
+ var copy = Object(value(obj)), propertyNames = arguments[1], options = Object(arguments[2]);
+ if (copy !== obj && !propertyNames) return copy;
+ var result = {};
+ if (propertyNames) {
+ aFrom(propertyNames, function (propertyName) {
+ if (options.ensure || propertyName in obj) result[propertyName] = obj[propertyName];
+ });
+ } else {
+ assign(result, obj);
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/object/count.js b/node_modules/es5-ext/object/count.js
new file mode 100644
index 00000000..6c018bbe
--- /dev/null
+++ b/node_modules/es5-ext/object/count.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var keys = require("./keys");
+
+module.exports = function (obj) { return keys(obj).length; };
diff --git a/node_modules/es5-ext/object/create.js b/node_modules/es5-ext/object/create.js
new file mode 100644
index 00000000..a391ec1d
--- /dev/null
+++ b/node_modules/es5-ext/object/create.js
@@ -0,0 +1,43 @@
+// Workaround for http://code.google.com/p/v8/issues/detail?id=2804
+
+"use strict";
+
+var create = Object.create, shim;
+
+if (!require("./set-prototype-of/is-implemented")()) {
+ shim = require("./set-prototype-of/shim");
+}
+
+module.exports = (function () {
+ var nullObject, polyProps, desc;
+ if (!shim) return create;
+ if (shim.level !== 1) return create;
+
+ nullObject = {};
+ polyProps = {};
+ desc = { configurable: false, enumerable: false, writable: true, value: undefined };
+ Object.getOwnPropertyNames(Object.prototype).forEach(function (name) {
+ if (name === "__proto__") {
+ polyProps[name] = {
+ configurable: true,
+ enumerable: false,
+ writable: true,
+ value: undefined
+ };
+ return;
+ }
+ polyProps[name] = desc;
+ });
+ Object.defineProperties(nullObject, polyProps);
+
+ Object.defineProperty(shim, "nullPolyfill", {
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: nullObject
+ });
+
+ return function (prototype, props) {
+ return create(prototype === null ? nullObject : prototype, props);
+ };
+})();
diff --git a/node_modules/es5-ext/object/ensure-array.js b/node_modules/es5-ext/object/ensure-array.js
new file mode 100644
index 00000000..5ca7a949
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-array.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var toShortString = require("../to-short-string-representation")
+ , isArray = require("./is-array-like");
+
+module.exports = function (value) {
+ if (isArray(value)) return value;
+ throw new TypeError(toShortString(value) + " is not a array");
+};
diff --git a/node_modules/es5-ext/object/ensure-finite-number.js b/node_modules/es5-ext/object/ensure-finite-number.js
new file mode 100644
index 00000000..4f6e4b4a
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-finite-number.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var isFiniteNumber = require("./is-finite-number")
+ , safeToString = require("../safe-to-string");
+
+module.exports = function (value) {
+ if (isFiniteNumber(value)) return Number(value);
+ throw new TypeError(safeToString(value) + " does not represent a finite number value");
+};
diff --git a/node_modules/es5-ext/object/ensure-integer.js b/node_modules/es5-ext/object/ensure-integer.js
new file mode 100644
index 00000000..9ec64b5b
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-integer.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var toShortString = require("../to-short-string-representation")
+ , isInteger = require("./is-integer");
+
+module.exports = function (num) {
+ if (!isInteger(num)) throw new TypeError(toShortString(num) + " is not a integer");
+ return Number(num);
+};
diff --git a/node_modules/es5-ext/object/ensure-natural-number-value.js b/node_modules/es5-ext/object/ensure-natural-number-value.js
new file mode 100644
index 00000000..1a901aa4
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-natural-number-value.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var isNaturalValue = require("./is-natural-number-value")
+ , toShortString = require("../to-short-string-representation");
+
+module.exports = function (arg) {
+ var num = Number(arg);
+ if (!isNaturalValue(arg)) throw new TypeError(toShortString(arg) + " is not a natural number");
+ return num;
+};
diff --git a/node_modules/es5-ext/object/ensure-natural-number.js b/node_modules/es5-ext/object/ensure-natural-number.js
new file mode 100644
index 00000000..ec7e5146
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-natural-number.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var isNatural = require("../number/is-natural")
+ , toShortString = require("../to-short-string-representation");
+
+module.exports = function (arg) {
+ var num = Number(arg);
+ if (!isNatural(num)) throw new TypeError(toShortString(arg) + " is not a natural number");
+ return num;
+};
diff --git a/node_modules/es5-ext/object/ensure-plain-function.js b/node_modules/es5-ext/object/ensure-plain-function.js
new file mode 100644
index 00000000..6cd9853e
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-plain-function.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var safeToString = require("../safe-to-string")
+ , isPlainFunction = require("./is-plain-function");
+
+module.exports = function (value) {
+ if (!isPlainFunction(value)) {
+ throw new TypeError(safeToString(value) + " is not a plain function");
+ }
+ return value;
+};
diff --git a/node_modules/es5-ext/object/ensure-plain-object.js b/node_modules/es5-ext/object/ensure-plain-object.js
new file mode 100644
index 00000000..7fb2b933
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-plain-object.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var safeToString = require("../safe-to-string")
+ , isPlainObject = require("./is-plain-object");
+
+module.exports = function (value) {
+ if (!isPlainObject(value)) throw new TypeError(safeToString(value) + " is not a plain object");
+ return value;
+};
diff --git a/node_modules/es5-ext/object/ensure-promise.js b/node_modules/es5-ext/object/ensure-promise.js
new file mode 100644
index 00000000..b5b53563
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-promise.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var safeToString = require("../safe-to-string")
+ , isPromise = require("./is-promise");
+
+module.exports = function (value) {
+ if (!isPromise(value)) throw new TypeError(safeToString(value) + " is not a promise");
+ return value;
+};
diff --git a/node_modules/es5-ext/object/ensure-thenable.js b/node_modules/es5-ext/object/ensure-thenable.js
new file mode 100644
index 00000000..c55c17ad
--- /dev/null
+++ b/node_modules/es5-ext/object/ensure-thenable.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var safeToString = require("../safe-to-string")
+ , isThenable = require("./is-thenable");
+
+module.exports = function (value) {
+ if (!isThenable(value)) throw new TypeError(safeToString(value) + " is not a thenable");
+ return value;
+};
diff --git a/node_modules/es5-ext/object/entries/implement.js b/node_modules/es5-ext/object/entries/implement.js
new file mode 100644
index 00000000..5c2a246d
--- /dev/null
+++ b/node_modules/es5-ext/object/entries/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Object, "entries", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/object/entries/index.js b/node_modules/es5-ext/object/entries/index.js
new file mode 100644
index 00000000..4a297d6a
--- /dev/null
+++ b/node_modules/es5-ext/object/entries/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Object.entries : require("./shim");
diff --git a/node_modules/es5-ext/object/entries/is-implemented.js b/node_modules/es5-ext/object/entries/is-implemented.js
new file mode 100644
index 00000000..aad52b23
--- /dev/null
+++ b/node_modules/es5-ext/object/entries/is-implemented.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function () {
+ try { return Object.entries({ foo: 12 })[0][0] === "foo"; }
+ catch (e) { return false; }
+};
diff --git a/node_modules/es5-ext/object/entries/shim.js b/node_modules/es5-ext/object/entries/shim.js
new file mode 100644
index 00000000..2348e446
--- /dev/null
+++ b/node_modules/es5-ext/object/entries/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var ensureValue = require("../valid-value");
+
+module.exports = function (object) {
+ ensureValue(object);
+ var result = [];
+ object = Object(object);
+ for (var key in object) {
+ if (!propertyIsEnumerable.call(object, key)) continue;
+ result.push([key, object[key]]);
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/object/eq.js b/node_modules/es5-ext/object/eq.js
new file mode 100644
index 00000000..03124680
--- /dev/null
+++ b/node_modules/es5-ext/object/eq.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var numIsNaN = require("../number/is-nan");
+
+module.exports = function (val1, val2) {
+ return val1 === val2 || (numIsNaN(val1) && numIsNaN(val2));
+};
diff --git a/node_modules/es5-ext/object/every.js b/node_modules/es5-ext/object/every.js
new file mode 100644
index 00000000..892b5485
--- /dev/null
+++ b/node_modules/es5-ext/object/every.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_iterate")("every", true);
diff --git a/node_modules/es5-ext/object/filter.js b/node_modules/es5-ext/object/filter.js
new file mode 100644
index 00000000..5c1ed92e
--- /dev/null
+++ b/node_modules/es5-ext/object/filter.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var callable = require("./valid-callable")
+ , forEach = require("./for-each")
+ , call = Function.prototype.call;
+
+module.exports = function (obj, cb/*, thisArg*/) {
+ var result = {}, thisArg = arguments[2];
+ callable(cb);
+ forEach(obj, function (value, key, targetObj, index) {
+ if (call.call(cb, thisArg, value, key, targetObj, index)) result[key] = targetObj[key];
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/object/find-key.js b/node_modules/es5-ext/object/find-key.js
new file mode 100644
index 00000000..6da6ba6f
--- /dev/null
+++ b/node_modules/es5-ext/object/find-key.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_iterate")(require("../array/#/find"), false);
diff --git a/node_modules/es5-ext/object/find.js b/node_modules/es5-ext/object/find.js
new file mode 100644
index 00000000..650375bc
--- /dev/null
+++ b/node_modules/es5-ext/object/find.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var findKey = require("./find-key")
+ , isValue = require("./is-value");
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (obj, cb/*, thisArg, compareFn*/) {
+ var key = findKey.apply(this, arguments);
+ return isValue(key) ? obj[key] : key;
+};
diff --git a/node_modules/es5-ext/object/first-key.js b/node_modules/es5-ext/object/first-key.js
new file mode 100644
index 00000000..3666de57
--- /dev/null
+++ b/node_modules/es5-ext/object/first-key.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var value = require("./valid-value")
+ , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (obj) {
+ var i;
+ value(obj);
+ for (i in obj) {
+ if (objPropertyIsEnumerable.call(obj, i)) return i;
+ }
+ return null;
+};
diff --git a/node_modules/es5-ext/object/flatten.js b/node_modules/es5-ext/object/flatten.js
new file mode 100644
index 00000000..cda74750
--- /dev/null
+++ b/node_modules/es5-ext/object/flatten.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var isPlainObject = require("./is-plain-object")
+ , forEach = require("./for-each")
+ , process;
+
+process = function self(value, key) {
+ if (isPlainObject(value)) forEach(value, self, this);
+ else this[key] = value;
+};
+
+module.exports = function (obj) {
+ var flattened = {};
+ forEach(obj, process, flattened);
+ return flattened;
+};
diff --git a/node_modules/es5-ext/object/for-each.js b/node_modules/es5-ext/object/for-each.js
new file mode 100644
index 00000000..d282956d
--- /dev/null
+++ b/node_modules/es5-ext/object/for-each.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_iterate")("forEach");
diff --git a/node_modules/es5-ext/object/get-property-names.js b/node_modules/es5-ext/object/get-property-names.js
new file mode 100644
index 00000000..7dfef279
--- /dev/null
+++ b/node_modules/es5-ext/object/get-property-names.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var uniq = require("../array/#/uniq")
+ , value = require("./valid-value")
+ , push = Array.prototype.push
+ , getOwnPropertyNames = Object.getOwnPropertyNames
+ , getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (obj) {
+ var keys;
+ obj = Object(value(obj));
+ keys = getOwnPropertyNames(obj);
+ while ((obj = getPrototypeOf(obj))) {
+ push.apply(keys, getOwnPropertyNames(obj));
+ }
+ return uniq.call(keys);
+};
diff --git a/node_modules/es5-ext/object/index.js b/node_modules/es5-ext/object/index.js
new file mode 100644
index 00000000..13cfb95b
--- /dev/null
+++ b/node_modules/es5-ext/object/index.js
@@ -0,0 +1,70 @@
+"use strict";
+
+module.exports = {
+ assign: require("./assign"),
+ assignDeep: require("./assign-deep"),
+ clear: require("./clear"),
+ compact: require("./compact"),
+ compare: require("./compare"),
+ copy: require("./copy"),
+ copyDeep: require("./copy-deep"),
+ count: require("./count"),
+ create: require("./create"),
+ ensureArray: require("./ensure-array"),
+ ensureFiniteNumber: require("./ensure-finite-number"),
+ ensureInteger: require("./ensure-integer"),
+ ensureNaturalNumber: require("./ensure-natural-number"),
+ ensureNaturalNumberValue: require("./ensure-natural-number-value"),
+ ensurePlainFunction: require("./ensure-plain-function"),
+ ensurePlainObject: require("./ensure-plain-object"),
+ ensurePromise: require("./ensure-promise"),
+ ensureThenable: require("./ensure-thenable"),
+ entries: require("./entries"),
+ eq: require("./eq"),
+ every: require("./every"),
+ filter: require("./filter"),
+ find: require("./find"),
+ findKey: require("./find-key"),
+ firstKey: require("./first-key"),
+ flatten: require("./flatten"),
+ forEach: require("./for-each"),
+ getPropertyNames: require("./get-property-names"),
+ is: require("./is"),
+ isArrayLike: require("./is-array-like"),
+ isCallable: require("./is-callable"),
+ isCopy: require("./is-copy"),
+ isCopyDeep: require("./is-copy-deep"),
+ isEmpty: require("./is-empty"),
+ isFiniteNumber: require("./is-finite-number"),
+ isInteger: require("./is-integer"),
+ isNaturalNumber: require("./is-natural-number"),
+ isNaturalNumberValue: require("./is-natural-number-value"),
+ isNumberValue: require("./is-number-value"),
+ isObject: require("./is-object"),
+ isPlainFunction: require("./is-plain-function"),
+ isPlainObject: require("./is-plain-object"),
+ isPromise: require("./is-promise"),
+ isThenable: require("./is-thenable"),
+ isValue: require("./is-value"),
+ keyOf: require("./key-of"),
+ keys: require("./keys"),
+ map: require("./map"),
+ mapKeys: require("./map-keys"),
+ normalizeOptions: require("./normalize-options"),
+ mixin: require("./mixin"),
+ mixinPrototypes: require("./mixin-prototypes"),
+ primitiveSet: require("./primitive-set"),
+ safeTraverse: require("./safe-traverse"),
+ serialize: require("./serialize"),
+ setPrototypeOf: require("./set-prototype-of"),
+ some: require("./some"),
+ toArray: require("./to-array"),
+ unserialize: require("./unserialize"),
+ validateArrayLike: require("./validate-array-like"),
+ validateArrayLikeObject: require("./validate-array-like-object"),
+ validCallable: require("./valid-callable"),
+ validObject: require("./valid-object"),
+ validateStringifiable: require("./validate-stringifiable"),
+ validateStringifiableValue: require("./validate-stringifiable-value"),
+ validValue: require("./valid-value")
+};
diff --git a/node_modules/es5-ext/object/is-array-like.js b/node_modules/es5-ext/object/is-array-like.js
new file mode 100644
index 00000000..fcb9115d
--- /dev/null
+++ b/node_modules/es5-ext/object/is-array-like.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var isFunction = require("../function/is-function")
+ , isObject = require("./is-object")
+ , isValue = require("./is-value");
+
+module.exports = function (value) {
+ return (
+ (isValue(value) &&
+ typeof value.length === "number" &&
+ // Just checking ((typeof x === 'object') && (typeof x !== 'function'))
+ // won't work right for some cases, e.g.:
+ // type of instance of NodeList in Safari is a 'function'
+ ((isObject(value) && !isFunction(value)) || typeof value === "string")) ||
+ false
+ );
+};
diff --git a/node_modules/es5-ext/object/is-callable.js b/node_modules/es5-ext/object/is-callable.js
new file mode 100644
index 00000000..927e5e8a
--- /dev/null
+++ b/node_modules/es5-ext/object/is-callable.js
@@ -0,0 +1,5 @@
+// Deprecated
+
+"use strict";
+
+module.exports = function (obj) { return typeof obj === "function"; };
diff --git a/node_modules/es5-ext/object/is-copy-deep.js b/node_modules/es5-ext/object/is-copy-deep.js
new file mode 100644
index 00000000..a1206aea
--- /dev/null
+++ b/node_modules/es5-ext/object/is-copy-deep.js
@@ -0,0 +1,59 @@
+"use strict";
+
+var eq = require("./eq")
+ , isPlainObject = require("./is-plain-object")
+ , value = require("./valid-value");
+
+var isArray = Array.isArray
+ , keys = Object.keys
+ , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable
+ , objHasOwnProperty = Object.prototype.hasOwnProperty
+ , eqArr
+ , eqVal
+ , eqObj;
+
+eqArr = function (arr1, arr2, recMap) {
+ var i, length = arr1.length;
+ if (length !== arr2.length) return false;
+ for (i = 0; i < length; ++i) {
+ if (objHasOwnProperty.call(arr1, i) !== objHasOwnProperty.call(arr2, i)) return false;
+ if (!eqVal(arr1[i], arr2[i], recMap)) return false;
+ }
+ return true;
+};
+
+eqObj = function (obj1, obj2, recMap) {
+ var k1 = keys(obj1), k2 = keys(obj2);
+ if (k1.length !== k2.length) return false;
+ return k1.every(function (key) {
+ if (!objPropertyIsEnumerable.call(obj2, key)) return false;
+ return eqVal(obj1[key], obj2[key], recMap);
+ });
+};
+
+eqVal = function (val1, val2, recMap) {
+ var i, eqX, c1, c2;
+ if (eq(val1, val2)) return true;
+ if (isPlainObject(val1)) {
+ if (!isPlainObject(val2)) return false;
+ eqX = eqObj;
+ } else if (isArray(val1) && isArray(val2)) {
+ eqX = eqArr;
+ } else {
+ return false;
+ }
+ c1 = recMap[0];
+ c2 = recMap[1];
+ i = c1.indexOf(val1);
+ if (i === -1) {
+ i = c1.push(val1) - 1;
+ c2[i] = [];
+ } else if (c2[i].indexOf(val2) !== -1) return true;
+ c2[i].push(val2);
+ return eqX(val1, val2, recMap);
+};
+
+module.exports = function (val1, val2) {
+ if (eq(value(val1), value(val2))) return true;
+ return eqVal(Object(val1), Object(val2), [[], []]);
+};
diff --git a/node_modules/es5-ext/object/is-copy.js b/node_modules/es5-ext/object/is-copy.js
new file mode 100644
index 00000000..8c6ae5e2
--- /dev/null
+++ b/node_modules/es5-ext/object/is-copy.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var eq = require("./eq")
+ , value = require("./valid-value")
+ , keys = Object.keys
+ , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (val1, val2) {
+ var k1, k2;
+
+ if (eq(value(val1), value(val2))) return true;
+
+ val1 = Object(val1);
+ val2 = Object(val2);
+
+ k1 = keys(val1);
+ k2 = keys(val2);
+ if (k1.length !== k2.length) return false;
+ return k1.every(function (key) {
+ if (!objPropertyIsEnumerable.call(val2, key)) return false;
+ return eq(val1[key], val2[key]);
+ });
+};
diff --git a/node_modules/es5-ext/object/is-empty.js b/node_modules/es5-ext/object/is-empty.js
new file mode 100644
index 00000000..dbc52d0c
--- /dev/null
+++ b/node_modules/es5-ext/object/is-empty.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var value = require("./valid-value")
+ , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
+
+module.exports = function (obj) {
+ var i;
+ value(obj);
+ for (i in obj) {
+ // Jslint: ignore
+ if (objPropertyIsEnumerable.call(obj, i)) return false;
+ }
+ return true;
+};
diff --git a/node_modules/es5-ext/object/is-finite-number.js b/node_modules/es5-ext/object/is-finite-number.js
new file mode 100644
index 00000000..e016f8de
--- /dev/null
+++ b/node_modules/es5-ext/object/is-finite-number.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isNumber = require("./is-number-value");
+
+module.exports = function (value) { return isNumber(value) && isFinite(value); };
diff --git a/node_modules/es5-ext/object/is-integer.js b/node_modules/es5-ext/object/is-integer.js
new file mode 100644
index 00000000..1745b829
--- /dev/null
+++ b/node_modules/es5-ext/object/is-integer.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var isInteger = require("../number/is-integer")
+ , isValue = require("./is-value");
+
+module.exports = function (arg) {
+ if (!isValue(arg)) return false;
+ arg = Number(arg);
+ return isInteger(arg);
+};
diff --git a/node_modules/es5-ext/object/is-natural-number-value.js b/node_modules/es5-ext/object/is-natural-number-value.js
new file mode 100644
index 00000000..c7445218
--- /dev/null
+++ b/node_modules/es5-ext/object/is-natural-number-value.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var isNaturalNumber = require("./is-natural-number")
+ , isValue = require("./is-value");
+
+module.exports = function (arg) {
+ if (!isValue(arg)) return false;
+ return isNaturalNumber(arg);
+};
diff --git a/node_modules/es5-ext/object/is-natural-number.js b/node_modules/es5-ext/object/is-natural-number.js
new file mode 100644
index 00000000..3e2c1f50
--- /dev/null
+++ b/node_modules/es5-ext/object/is-natural-number.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isNatural = require("../number/is-natural");
+
+module.exports = function (arg) { return isNatural(Number(arg)); };
diff --git a/node_modules/es5-ext/object/is-number-value.js b/node_modules/es5-ext/object/is-number-value.js
new file mode 100644
index 00000000..f701bf53
--- /dev/null
+++ b/node_modules/es5-ext/object/is-number-value.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var isValue = require("./is-value");
+
+module.exports = function (value) {
+ if (!isValue(value)) return false;
+ try { return !isNaN(value); }
+ catch (e) { return false; }
+};
diff --git a/node_modules/es5-ext/object/is-object.js b/node_modules/es5-ext/object/is-object.js
new file mode 100644
index 00000000..0e576d76
--- /dev/null
+++ b/node_modules/es5-ext/object/is-object.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var isValue = require("./is-value");
+
+var map = { function: true, object: true };
+
+module.exports = function (value) { return (isValue(value) && map[typeof value]) || false; };
diff --git a/node_modules/es5-ext/object/is-plain-function.js b/node_modules/es5-ext/object/is-plain-function.js
new file mode 100644
index 00000000..a2f32348
--- /dev/null
+++ b/node_modules/es5-ext/object/is-plain-function.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var isClassStr = RegExp.prototype.test.bind(/^\s*class[\s{/}]/)
+ , fnToString = Function.prototype.toString;
+
+module.exports = function (fn) {
+ if (typeof fn !== "function") return false;
+ if (typeof fn.call !== "function") return false;
+ if (typeof fn.apply !== "function") return false;
+ return !isClassStr(fnToString.call(fn));
+};
diff --git a/node_modules/es5-ext/object/is-plain-object.js b/node_modules/es5-ext/object/is-plain-object.js
new file mode 100644
index 00000000..ff153289
--- /dev/null
+++ b/node_modules/es5-ext/object/is-plain-object.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var getPrototypeOf = Object.getPrototypeOf
+ , prototype = Object.prototype
+ , objToString = prototype.toString
+ , id = Object().toString();
+
+module.exports = function (value) {
+ var proto, valueConstructor;
+ if (!value || typeof value !== "object" || objToString.call(value) !== id) {
+ return false;
+ }
+ proto = getPrototypeOf(value);
+ if (proto === null) {
+ valueConstructor = value.constructor;
+ if (typeof valueConstructor !== "function") return true;
+ return valueConstructor.prototype !== value;
+ }
+ return proto === prototype || getPrototypeOf(proto) === null;
+};
diff --git a/node_modules/es5-ext/object/is-promise.js b/node_modules/es5-ext/object/is-promise.js
new file mode 100644
index 00000000..33d6df13
--- /dev/null
+++ b/node_modules/es5-ext/object/is-promise.js
@@ -0,0 +1,4 @@
+"use strict";
+
+// In next major this check will also confirm on promise constructor
+module.exports = require("./is-thenable");
diff --git a/node_modules/es5-ext/object/is-thenable.js b/node_modules/es5-ext/object/is-thenable.js
new file mode 100644
index 00000000..06db0fd4
--- /dev/null
+++ b/node_modules/es5-ext/object/is-thenable.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var isCallable = require("./is-callable")
+ , isObject = require("./is-object");
+
+module.exports = function (value) { return isObject(value) && isCallable(value.then); };
diff --git a/node_modules/es5-ext/object/is-value.js b/node_modules/es5-ext/object/is-value.js
new file mode 100644
index 00000000..4ee38058
--- /dev/null
+++ b/node_modules/es5-ext/object/is-value.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var _undefined = require("../function/noop")(); // Support ES3 engines
+
+module.exports = function (val) { return val !== _undefined && val !== null; };
diff --git a/node_modules/es5-ext/object/is.js b/node_modules/es5-ext/object/is.js
new file mode 100644
index 00000000..54baadec
--- /dev/null
+++ b/node_modules/es5-ext/object/is.js
@@ -0,0 +1,10 @@
+// Implementation credits go to:
+// http://wiki.ecmascript.org/doku.php?id=harmony:egal
+
+"use strict";
+
+var numIsNaN = require("../number/is-nan");
+
+module.exports = function (val1, val2) {
+ return val1 === val2 ? val1 !== 0 || 1 / val1 === 1 / val2 : numIsNaN(val1) && numIsNaN(val2);
+};
diff --git a/node_modules/es5-ext/object/key-of.js b/node_modules/es5-ext/object/key-of.js
new file mode 100644
index 00000000..dc640e4d
--- /dev/null
+++ b/node_modules/es5-ext/object/key-of.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var eq = require("./eq")
+ , some = require("./some");
+
+module.exports = function (obj, searchValue) {
+ var result;
+ return some(obj, function (value, name) {
+ if (eq(value, searchValue)) {
+ result = name;
+ return true;
+ }
+ return false;
+ })
+ ? result
+ : null;
+};
diff --git a/node_modules/es5-ext/object/keys/implement.js b/node_modules/es5-ext/object/keys/implement.js
new file mode 100644
index 00000000..72ecfbdf
--- /dev/null
+++ b/node_modules/es5-ext/object/keys/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Object, "keys", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/object/keys/index.js b/node_modules/es5-ext/object/keys/index.js
new file mode 100644
index 00000000..d1942279
--- /dev/null
+++ b/node_modules/es5-ext/object/keys/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Object.keys : require("./shim");
diff --git a/node_modules/es5-ext/object/keys/is-implemented.js b/node_modules/es5-ext/object/keys/is-implemented.js
new file mode 100644
index 00000000..2dfcf1b9
--- /dev/null
+++ b/node_modules/es5-ext/object/keys/is-implemented.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function () {
+ try {
+ Object.keys("primitive");
+ return true;
+ } catch (e) {
+ return false;
+ }
+};
diff --git a/node_modules/es5-ext/object/keys/shim.js b/node_modules/es5-ext/object/keys/shim.js
new file mode 100644
index 00000000..a8908d5c
--- /dev/null
+++ b/node_modules/es5-ext/object/keys/shim.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var isValue = require("../is-value");
+
+var keys = Object.keys;
+
+module.exports = function (object) { return keys(isValue(object) ? Object(object) : object); };
diff --git a/node_modules/es5-ext/object/map-keys.js b/node_modules/es5-ext/object/map-keys.js
new file mode 100644
index 00000000..662e6ca3
--- /dev/null
+++ b/node_modules/es5-ext/object/map-keys.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var callable = require("./valid-callable")
+ , forEach = require("./for-each")
+ , call = Function.prototype.call;
+
+module.exports = function (obj, cb/*, thisArg*/) {
+ var result = {}, thisArg = arguments[2];
+ callable(cb);
+ forEach(
+ obj,
+ function (value, key, targetObj, index) {
+ result[call.call(cb, thisArg, key, value, this, index)] = value;
+ },
+ obj
+ );
+ return result;
+};
diff --git a/node_modules/es5-ext/object/map.js b/node_modules/es5-ext/object/map.js
new file mode 100644
index 00000000..e4eb61b7
--- /dev/null
+++ b/node_modules/es5-ext/object/map.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var callable = require("./valid-callable")
+ , forEach = require("./for-each")
+ , call = Function.prototype.call;
+
+module.exports = function (obj, cb/*, thisArg*/) {
+ var result = {}, thisArg = arguments[2];
+ callable(cb);
+ forEach(obj, function (value, key, targetObj, index) {
+ result[key] = call.call(cb, thisArg, value, key, targetObj, index);
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/object/mixin-prototypes.js b/node_modules/es5-ext/object/mixin-prototypes.js
new file mode 100644
index 00000000..81e27c75
--- /dev/null
+++ b/node_modules/es5-ext/object/mixin-prototypes.js
@@ -0,0 +1,25 @@
+"use strict";
+
+var value = require("./valid-value")
+ , mixin = require("./mixin");
+
+var getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (target, source) {
+ target = Object(value(target));
+ source = Object(value(source));
+ if (target === source) return target;
+
+ var sources = [];
+ while (source && !isPrototypeOf.call(source, target)) {
+ sources.unshift(source);
+ source = getPrototypeOf(source);
+ }
+
+ var error;
+ sources.forEach(function (sourceProto) {
+ try { mixin(target, sourceProto); } catch (mixinError) { error = mixinError; }
+ });
+ if (error) throw error;
+ return target;
+};
diff --git a/node_modules/es5-ext/object/mixin.js b/node_modules/es5-ext/object/mixin.js
new file mode 100644
index 00000000..f5cf9dd1
--- /dev/null
+++ b/node_modules/es5-ext/object/mixin.js
@@ -0,0 +1,26 @@
+"use strict";
+
+var value = require("./valid-value")
+ , defineProperty = Object.defineProperty
+ , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor
+ , getOwnPropertyNames = Object.getOwnPropertyNames
+ , getOwnPropertySymbols = Object.getOwnPropertySymbols;
+
+module.exports = function (target, source) {
+ var error, sourceObject = Object(value(source));
+ target = Object(value(target));
+ getOwnPropertyNames(sourceObject).forEach(function (name) {
+ try {
+ defineProperty(target, name, getOwnPropertyDescriptor(source, name));
+ } catch (e) { error = e; }
+ });
+ if (typeof getOwnPropertySymbols === "function") {
+ getOwnPropertySymbols(sourceObject).forEach(function (symbol) {
+ try {
+ defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol));
+ } catch (e) { error = e; }
+ });
+ }
+ if (error !== undefined) throw error;
+ return target;
+};
diff --git a/node_modules/es5-ext/object/normalize-options.js b/node_modules/es5-ext/object/normalize-options.js
new file mode 100644
index 00000000..885dd803
--- /dev/null
+++ b/node_modules/es5-ext/object/normalize-options.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var isValue = require("./is-value");
+
+var forEach = Array.prototype.forEach, create = Object.create;
+
+var process = function (src, obj) {
+ var key;
+ for (key in src) obj[key] = src[key];
+};
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (opts1/*, …options*/) {
+ var result = create(null);
+ forEach.call(arguments, function (options) {
+ if (!isValue(options)) return;
+ process(Object(options), result);
+ });
+ return result;
+};
diff --git a/node_modules/es5-ext/object/primitive-set.js b/node_modules/es5-ext/object/primitive-set.js
new file mode 100644
index 00000000..e6dd6363
--- /dev/null
+++ b/node_modules/es5-ext/object/primitive-set.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var forEach = Array.prototype.forEach, create = Object.create;
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (arg/*, …args*/) {
+ var set = create(null);
+ forEach.call(arguments, function (name) { set[name] = true; });
+ return set;
+};
diff --git a/node_modules/es5-ext/object/safe-traverse.js b/node_modules/es5-ext/object/safe-traverse.js
new file mode 100644
index 00000000..43d7cea3
--- /dev/null
+++ b/node_modules/es5-ext/object/safe-traverse.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var value = require("./valid-value")
+ , isValue = require("./is-value");
+
+module.exports = function (obj/*, …names*/) {
+ var length, current = 1;
+ value(obj);
+ length = arguments.length - 1;
+ if (!length) return obj;
+ while (current < length) {
+ obj = obj[arguments[current++]];
+ if (!isValue(obj)) return undefined;
+ }
+ return obj[arguments[current]];
+};
diff --git a/node_modules/es5-ext/object/serialize.js b/node_modules/es5-ext/object/serialize.js
new file mode 100644
index 00000000..ec868c10
--- /dev/null
+++ b/node_modules/es5-ext/object/serialize.js
@@ -0,0 +1,41 @@
+"use strict";
+
+var toArray = require("./to-array")
+ , isDate = require("../date/is-date")
+ , isValue = require("../object/is-value")
+ , isRegExp = require("../reg-exp/is-reg-exp");
+
+var isArray = Array.isArray
+ , stringify = JSON.stringify
+ , objHasOwnProperty = Object.prototype.hasOwnProperty;
+var keyValueToString = function (value, key) {
+ return stringify(key) + ":" + module.exports(value);
+};
+
+var sparseMap = function (arr) {
+ var i, length = arr.length, result = new Array(length);
+ for (i = 0; i < length; ++i) {
+ if (!objHasOwnProperty.call(arr, i)) continue;
+ result[i] = module.exports(arr[i]);
+ }
+ return result;
+};
+
+module.exports = function (obj) {
+ if (!isValue(obj)) return String(obj);
+ switch (typeof obj) {
+ case "string":
+ return stringify(obj);
+ case "number":
+ case "boolean":
+ case "function":
+ return String(obj);
+ case "object":
+ if (isArray(obj)) return "[" + sparseMap(obj) + "]";
+ if (isRegExp(obj)) return String(obj);
+ if (isDate(obj)) return "new Date(" + obj.valueOf() + ")";
+ return "{" + toArray(obj, keyValueToString) + "}";
+ default:
+ throw new TypeError("Serialization of " + String(obj) + "is unsupported");
+ }
+};
diff --git a/node_modules/es5-ext/object/set-prototype-of/implement.js b/node_modules/es5-ext/object/set-prototype-of/implement.js
new file mode 100644
index 00000000..386a3005
--- /dev/null
+++ b/node_modules/es5-ext/object/set-prototype-of/implement.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var shim;
+
+if (!require("./is-implemented")() && (shim = require("./shim"))) {
+ Object.defineProperty(Object, "setPrototypeOf", {
+ value: shim,
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/object/set-prototype-of/index.js b/node_modules/es5-ext/object/set-prototype-of/index.js
new file mode 100644
index 00000000..ac07b995
--- /dev/null
+++ b/node_modules/es5-ext/object/set-prototype-of/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Object.setPrototypeOf : require("./shim");
diff --git a/node_modules/es5-ext/object/set-prototype-of/is-implemented.js b/node_modules/es5-ext/object/set-prototype-of/is-implemented.js
new file mode 100644
index 00000000..1a00627b
--- /dev/null
+++ b/node_modules/es5-ext/object/set-prototype-of/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var create = Object.create, getPrototypeOf = Object.getPrototypeOf, plainObject = {};
+
+module.exports = function (/* CustomCreate*/) {
+ var setPrototypeOf = Object.setPrototypeOf, customCreate = arguments[0] || create;
+ if (typeof setPrototypeOf !== "function") return false;
+ return getPrototypeOf(setPrototypeOf(customCreate(null), plainObject)) === plainObject;
+};
diff --git a/node_modules/es5-ext/object/set-prototype-of/shim.js b/node_modules/es5-ext/object/set-prototype-of/shim.js
new file mode 100644
index 00000000..97b0b504
--- /dev/null
+++ b/node_modules/es5-ext/object/set-prototype-of/shim.js
@@ -0,0 +1,81 @@
+/* eslint no-proto: "off" */
+
+// Big thanks to @WebReflection for sorting this out
+// https://gist.github.com/WebReflection/5593554
+
+"use strict";
+
+var isObject = require("../is-object")
+ , value = require("../valid-value")
+ , objIsPrototypeOf = Object.prototype.isPrototypeOf
+ , defineProperty = Object.defineProperty
+ , nullDesc = { configurable: true, enumerable: false, writable: true, value: undefined }
+ , validate;
+
+validate = function (obj, prototype) {
+ value(obj);
+ if (prototype === null || isObject(prototype)) return obj;
+ throw new TypeError("Prototype must be null or an object");
+};
+
+module.exports = (function (status) {
+ var fn, set;
+ if (!status) return null;
+ if (status.level === 2) {
+ if (status.set) {
+ set = status.set;
+ fn = function (obj, prototype) {
+ set.call(validate(obj, prototype), prototype);
+ return obj;
+ };
+ } else {
+ fn = function (obj, prototype) {
+ validate(obj, prototype).__proto__ = prototype;
+ return obj;
+ };
+ }
+ } else {
+ fn = function self(obj, prototype) {
+ var isNullBase;
+ validate(obj, prototype);
+ isNullBase = objIsPrototypeOf.call(self.nullPolyfill, obj);
+ if (isNullBase) delete self.nullPolyfill.__proto__;
+ if (prototype === null) prototype = self.nullPolyfill;
+ obj.__proto__ = prototype;
+ if (isNullBase) defineProperty(self.nullPolyfill, "__proto__", nullDesc);
+ return obj;
+ };
+ }
+ return Object.defineProperty(fn, "level", {
+ configurable: false,
+ enumerable: false,
+ writable: false,
+ value: status.level
+ });
+})(
+ (function () {
+ var tmpObj1 = Object.create(null)
+ , tmpObj2 = {}
+ , set
+ , desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__");
+
+ if (desc) {
+ try {
+ set = desc.set; // Opera crashes at this point
+ set.call(tmpObj1, tmpObj2);
+ } catch (ignore) {}
+ if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { set: set, level: 2 };
+ }
+
+ tmpObj1.__proto__ = tmpObj2;
+ if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 2 };
+
+ tmpObj1 = {};
+ tmpObj1.__proto__ = tmpObj2;
+ if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 };
+
+ return false;
+ })()
+);
+
+require("../create");
diff --git a/node_modules/es5-ext/object/some.js b/node_modules/es5-ext/object/some.js
new file mode 100644
index 00000000..c919466b
--- /dev/null
+++ b/node_modules/es5-ext/object/some.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./_iterate")("some", false);
diff --git a/node_modules/es5-ext/object/to-array.js b/node_modules/es5-ext/object/to-array.js
new file mode 100644
index 00000000..18c0b27d
--- /dev/null
+++ b/node_modules/es5-ext/object/to-array.js
@@ -0,0 +1,21 @@
+"use strict";
+
+var callable = require("./valid-callable")
+ , isValue = require("./is-value")
+ , forEach = require("./for-each")
+ , call = Function.prototype.call
+ , defaultCb = function (value, key) { return [key, value]; };
+
+module.exports = function (obj/*, cb, thisArg, compareFn*/) {
+ var a = [], cb = arguments[1], thisArg = arguments[2];
+ cb = isValue(cb) ? callable(cb) : defaultCb;
+
+ forEach(
+ obj,
+ function (value, key, targetObj, index) {
+ a.push(call.call(cb, thisArg, value, key, this, index));
+ },
+ obj, arguments[3]
+ );
+ return a;
+};
diff --git a/node_modules/es5-ext/object/unserialize.js b/node_modules/es5-ext/object/unserialize.js
new file mode 100644
index 00000000..f62ea78c
--- /dev/null
+++ b/node_modules/es5-ext/object/unserialize.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var value = require("./valid-value");
+
+module.exports = function (code) {
+ // eslint-disable-next-line no-new-func
+ return new Function("return " + value(code))();
+};
diff --git a/node_modules/es5-ext/object/valid-callable.js b/node_modules/es5-ext/object/valid-callable.js
new file mode 100644
index 00000000..a97fb3ea
--- /dev/null
+++ b/node_modules/es5-ext/object/valid-callable.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (fn) {
+ if (typeof fn !== "function") throw new TypeError(fn + " is not a function");
+ return fn;
+};
diff --git a/node_modules/es5-ext/object/valid-object.js b/node_modules/es5-ext/object/valid-object.js
new file mode 100644
index 00000000..74b5e5f2
--- /dev/null
+++ b/node_modules/es5-ext/object/valid-object.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isObject = require("./is-object");
+
+module.exports = function (value) {
+ if (!isObject(value)) throw new TypeError(value + " is not an Object");
+ return value;
+};
diff --git a/node_modules/es5-ext/object/valid-value.js b/node_modules/es5-ext/object/valid-value.js
new file mode 100644
index 00000000..d0ced8a4
--- /dev/null
+++ b/node_modules/es5-ext/object/valid-value.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isValue = require("./is-value");
+
+module.exports = function (value) {
+ if (!isValue(value)) throw new TypeError("Cannot use null or undefined");
+ return value;
+};
diff --git a/node_modules/es5-ext/object/validate-array-like-object.js b/node_modules/es5-ext/object/validate-array-like-object.js
new file mode 100644
index 00000000..d7c45b36
--- /dev/null
+++ b/node_modules/es5-ext/object/validate-array-like-object.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var isArrayLike = require("./is-array-like")
+ , isObject = require("./is-object");
+
+module.exports = function (obj) {
+ if (isObject(obj) && isArrayLike(obj)) return obj;
+ throw new TypeError(obj + " is not array-like object");
+};
diff --git a/node_modules/es5-ext/object/validate-array-like.js b/node_modules/es5-ext/object/validate-array-like.js
new file mode 100644
index 00000000..07aa7949
--- /dev/null
+++ b/node_modules/es5-ext/object/validate-array-like.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isArrayLike = require("./is-array-like");
+
+module.exports = function (obj) {
+ if (isArrayLike(obj)) return obj;
+ throw new TypeError(obj + " is not array-like value");
+};
diff --git a/node_modules/es5-ext/object/validate-stringifiable-value.js b/node_modules/es5-ext/object/validate-stringifiable-value.js
new file mode 100644
index 00000000..b58f18ce
--- /dev/null
+++ b/node_modules/es5-ext/object/validate-stringifiable-value.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var ensureValue = require("./valid-value")
+ , stringifiable = require("./validate-stringifiable");
+
+module.exports = function (value) { return stringifiable(ensureValue(value)); };
diff --git a/node_modules/es5-ext/object/validate-stringifiable.js b/node_modules/es5-ext/object/validate-stringifiable.js
new file mode 100644
index 00000000..2b1f1271
--- /dev/null
+++ b/node_modules/es5-ext/object/validate-stringifiable.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var isCallable = require("./is-callable");
+
+module.exports = function (stringifiable) {
+ try {
+ if (stringifiable && isCallable(stringifiable.toString)) return stringifiable.toString();
+ return String(stringifiable);
+ } catch (e) {
+ throw new TypeError("Passed argument cannot be stringifed");
+ }
+};
diff --git a/node_modules/es5-ext/optional-chaining.js b/node_modules/es5-ext/optional-chaining.js
new file mode 100644
index 00000000..eba6bd8a
--- /dev/null
+++ b/node_modules/es5-ext/optional-chaining.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var isValue = require("./object/is-value");
+
+var slice = Array.prototype.slice;
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (value, propertyName1/*, …propertyNamen*/) {
+ var propertyNames = slice.call(arguments, 1), index = 0, length = propertyNames.length;
+ while (isValue(value) && index < length) value = value[propertyNames[index++]];
+ return index === length ? value : undefined;
+};
diff --git a/node_modules/es5-ext/package.json b/node_modules/es5-ext/package.json
new file mode 100644
index 00000000..750fbb47
--- /dev/null
+++ b/node_modules/es5-ext/package.json
@@ -0,0 +1,132 @@
+{
+ "_from": "es5-ext@~0.10.46",
+ "_id": "es5-ext@0.10.53",
+ "_inBundle": false,
+ "_integrity": "sha512-Xs2Stw6NiNHWypzRTY1MtaG/uJlwCk8kH81920ma8mvN8Xq1gsfhZvpkImLQArw8AHnv8MT2I45J3c0R8slE+Q==",
+ "_location": "/es5-ext",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "es5-ext@~0.10.46",
+ "name": "es5-ext",
+ "escapedName": "es5-ext",
+ "rawSpec": "~0.10.46",
+ "saveSpec": null,
+ "fetchSpec": "~0.10.46"
+ },
+ "_requiredBy": [
+ "/d",
+ "/duration",
+ "/es6-iterator"
+ ],
+ "_resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.53.tgz",
+ "_shasum": "93c5a3acfdbef275220ad72644ad02ee18368de1",
+ "_spec": "es5-ext@~0.10.46",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/duration",
+ "author": {
+ "name": "Mariusz Nowak",
+ "email": "medyk@medikoo.com",
+ "url": "http://www.medikoo.com/"
+ },
+ "bugs": {
+ "url": "https://github.com/medikoo/es5-ext/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "es6-iterator": "~2.0.3",
+ "es6-symbol": "~3.1.3",
+ "next-tick": "~1.0.0"
+ },
+ "deprecated": false,
+ "description": "ECMAScript extensions and shims",
+ "devDependencies": {
+ "eslint": "^6.6.0",
+ "eslint-config-medikoo": "^2.7.0",
+ "git-list-updated": "^1.2.1",
+ "husky": "^3.1.0",
+ "lint-staged": "^9.4.3",
+ "plain-promise": "^0.1.1",
+ "prettier-elastic": "^1.18.2",
+ "tad": "^3.0.1"
+ },
+ "eslintConfig": {
+ "extends": "medikoo/es5",
+ "root": true,
+ "rules": {
+ "no-extend-native": "off"
+ },
+ "overrides": [
+ {
+ "files": "global.js",
+ "globals": {
+ "__global__": true,
+ "globalThis": true,
+ "self": true,
+ "window": true
+ },
+ "rules": {
+ "strict": "off"
+ }
+ }
+ ]
+ },
+ "homepage": "https://github.com/medikoo/es5-ext#readme",
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged"
+ }
+ },
+ "keywords": [
+ "ecmascript",
+ "ecmascript5",
+ "ecmascript6",
+ "es5",
+ "es6",
+ "extensions",
+ "ext",
+ "addons",
+ "extras",
+ "harmony",
+ "javascript",
+ "polyfill",
+ "shim",
+ "util",
+ "utils",
+ "utilities"
+ ],
+ "license": "ISC",
+ "lint-staged": {
+ "*.js": [
+ "eslint"
+ ],
+ "*.{css,html,js,json,md,yaml,yml}": [
+ "prettier -c"
+ ]
+ },
+ "name": "es5-ext",
+ "prettier": {
+ "printWidth": 100,
+ "tabWidth": 4,
+ "overrides": [
+ {
+ "files": "*.md",
+ "options": {
+ "tabWidth": 2
+ }
+ }
+ ]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/medikoo/es5-ext.git"
+ },
+ "scripts": {
+ "lint": "eslint --ignore-path=.gitignore .",
+ "lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
+ "prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
+ "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'",
+ "test": "node ./node_modules/tad/bin/tad"
+ },
+ "version": "0.10.53"
+}
diff --git a/node_modules/es5-ext/promise/#/as-callback.js b/node_modules/es5-ext/promise/#/as-callback.js
new file mode 100644
index 00000000..ba310b35
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/as-callback.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var ensurePlainFunction = require("../../object/ensure-plain-function")
+ , ensureThenable = require("../../object/ensure-thenable")
+ , microtaskDelay = require("../../function/#/microtask-delay");
+
+module.exports = function (callback) {
+ ensureThenable(this);
+ ensurePlainFunction(callback);
+ // Rely on microtaskDelay to escape eventual error swallowing
+ this.then(
+ microtaskDelay.call(function (value) { callback(null, value); }),
+ microtaskDelay.call(function (reason) { callback(reason); })
+ );
+};
diff --git a/node_modules/es5-ext/promise/#/finally/implement.js b/node_modules/es5-ext/promise/#/finally/implement.js
new file mode 100644
index 00000000..77592b3a
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/finally/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(Promise.prototype, "finally", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/promise/#/finally/index.js b/node_modules/es5-ext/promise/#/finally/index.js
new file mode 100644
index 00000000..f6bb447f
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/finally/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? Promise.prototype.finally : require("./shim");
diff --git a/node_modules/es5-ext/promise/#/finally/is-implemented.js b/node_modules/es5-ext/promise/#/finally/is-implemented.js
new file mode 100644
index 00000000..0534ce6b
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/finally/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ if (typeof Promise !== "function") return false;
+ if (typeof Promise.prototype.finally !== "function") return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/promise/#/finally/shim.js b/node_modules/es5-ext/promise/#/finally/shim.js
new file mode 100644
index 00000000..f29f5b31
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/finally/shim.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var ensurePlainFunction = require("../../../object/ensure-plain-function")
+ , isThenable = require("../../../object/is-thenable")
+ , ensureThenable = require("../../../object/ensure-thenable");
+
+var resolveCallback = function (callback, next) {
+ var callbackResult = callback();
+ if (!isThenable(callbackResult)) return next();
+ return callbackResult.then(next);
+};
+
+module.exports = function (callback) {
+ ensureThenable(this);
+ ensurePlainFunction(callback);
+ return this.then(
+ function (result) {
+ return resolveCallback(callback, function () { return result; });
+ },
+ function (error) {
+ return resolveCallback(callback, function () { throw error; });
+ }
+ );
+};
diff --git a/node_modules/es5-ext/promise/#/index.js b/node_modules/es5-ext/promise/#/index.js
new file mode 100644
index 00000000..46018030
--- /dev/null
+++ b/node_modules/es5-ext/promise/#/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { asCallback: require("./as-callback"), finally: require("./finally") };
diff --git a/node_modules/es5-ext/promise/.eslintrc.json b/node_modules/es5-ext/promise/.eslintrc.json
new file mode 100644
index 00000000..0d86fe70
--- /dev/null
+++ b/node_modules/es5-ext/promise/.eslintrc.json
@@ -0,0 +1 @@
+{ "globals": { "Promise": true } }
diff --git a/node_modules/es5-ext/promise/index.js b/node_modules/es5-ext/promise/index.js
new file mode 100644
index 00000000..6aa66bbb
--- /dev/null
+++ b/node_modules/es5-ext/promise/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = { "#": require("./#"), "lazy": require("./lazy") };
diff --git a/node_modules/es5-ext/promise/lazy.js b/node_modules/es5-ext/promise/lazy.js
new file mode 100644
index 00000000..ad97a53a
--- /dev/null
+++ b/node_modules/es5-ext/promise/lazy.js
@@ -0,0 +1,35 @@
+"use strict";
+
+var isFunction = require("../function/is-function");
+
+module.exports = function (executor) {
+ var Constructor;
+ if (isFunction(this)) {
+ Constructor = this;
+ } else if (typeof Promise === "function") {
+ Constructor = Promise;
+ } else {
+ throw new TypeError("Could not resolve Promise constuctor");
+ }
+
+ var lazyThen;
+ var promise = new Constructor(function (resolve, reject) {
+ lazyThen = function (onSuccess, onFailure) {
+ if (!hasOwnProperty.call(this, "then")) {
+ // Sanity check
+ throw new Error("Unexpected (inherited) lazy then invocation");
+ }
+
+ try { executor(resolve, reject); }
+ catch (reason) { reject(reason); }
+ delete this.then;
+ return this.then(onSuccess, onFailure);
+ };
+ });
+
+ return Object.defineProperty(promise, "then", {
+ configurable: true,
+ writable: true,
+ value: lazyThen
+ });
+};
diff --git a/node_modules/es5-ext/reg-exp/#/index.js b/node_modules/es5-ext/reg-exp/#/index.js
new file mode 100644
index 00000000..9b098e0e
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/index.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = {
+ isSticky: require("./is-sticky"),
+ isUnicode: require("./is-unicode"),
+ match: require("./match"),
+ replace: require("./replace"),
+ search: require("./search"),
+ split: require("./split")
+};
diff --git a/node_modules/es5-ext/reg-exp/#/is-sticky.js b/node_modules/es5-ext/reg-exp/#/is-sticky.js
new file mode 100644
index 00000000..6e995335
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/is-sticky.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var validRegExp = require("../valid-reg-exp")
+ , re = /\/[a-xz]*y[a-xz]*$/;
+
+module.exports = function () { return Boolean(String(validRegExp(this)).match(re)); };
diff --git a/node_modules/es5-ext/reg-exp/#/is-unicode.js b/node_modules/es5-ext/reg-exp/#/is-unicode.js
new file mode 100644
index 00000000..63a457fb
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/is-unicode.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var validRegExp = require("../valid-reg-exp")
+ , re = /\/[a-xz]*u[a-xz]*$/;
+
+module.exports = function () { return Boolean(String(validRegExp(this)).match(re)); };
diff --git a/node_modules/es5-ext/reg-exp/#/match/implement.js b/node_modules/es5-ext/reg-exp/#/match/implement.js
new file mode 100644
index 00000000..68dcd554
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/match/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "match", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/match/index.js b/node_modules/es5-ext/reg-exp/#/match/index.js
new file mode 100644
index 00000000..4b332969
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/match/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? RegExp.prototype.match : require("./shim");
diff --git a/node_modules/es5-ext/reg-exp/#/match/is-implemented.js b/node_modules/es5-ext/reg-exp/#/match/is-implemented.js
new file mode 100644
index 00000000..a5065fc7
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/match/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var re = /foo/;
+
+module.exports = function () {
+ if (typeof re.match !== "function") return false;
+ return re.match("barfoobar") && !re.match("elo");
+};
diff --git a/node_modules/es5-ext/reg-exp/#/match/shim.js b/node_modules/es5-ext/reg-exp/#/match/shim.js
new file mode 100644
index 00000000..29558218
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/match/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var validRegExp = require("../../valid-reg-exp");
+
+module.exports = function (string) {
+ validRegExp(this);
+ return String(string).match(this);
+};
diff --git a/node_modules/es5-ext/reg-exp/#/replace/implement.js b/node_modules/es5-ext/reg-exp/#/replace/implement.js
new file mode 100644
index 00000000..f990c4f1
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/replace/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "replace", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/replace/index.js b/node_modules/es5-ext/reg-exp/#/replace/index.js
new file mode 100644
index 00000000..be54b523
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/replace/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? RegExp.prototype.replace : require("./shim");
diff --git a/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js b/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js
new file mode 100644
index 00000000..0a2e7c2f
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var re = /foo/;
+
+module.exports = function () {
+ if (typeof re.replace !== "function") return false;
+ return re.replace("foobar", "mar") === "marbar";
+};
diff --git a/node_modules/es5-ext/reg-exp/#/replace/shim.js b/node_modules/es5-ext/reg-exp/#/replace/shim.js
new file mode 100644
index 00000000..66f5d5b7
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/replace/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var validRegExp = require("../../valid-reg-exp");
+
+module.exports = function (string, replaceValue) {
+ validRegExp(this);
+ return String(string).replace(this, replaceValue);
+};
diff --git a/node_modules/es5-ext/reg-exp/#/search/implement.js b/node_modules/es5-ext/reg-exp/#/search/implement.js
new file mode 100644
index 00000000..df4a337b
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/search/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "search", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/search/index.js b/node_modules/es5-ext/reg-exp/#/search/index.js
new file mode 100644
index 00000000..25ca76a0
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/search/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? RegExp.prototype.search : require("./shim");
diff --git a/node_modules/es5-ext/reg-exp/#/search/is-implemented.js b/node_modules/es5-ext/reg-exp/#/search/is-implemented.js
new file mode 100644
index 00000000..7f38669f
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/search/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var re = /foo/;
+
+module.exports = function () {
+ if (typeof re.search !== "function") return false;
+ return re.search("barfoo") === 3;
+};
diff --git a/node_modules/es5-ext/reg-exp/#/search/shim.js b/node_modules/es5-ext/reg-exp/#/search/shim.js
new file mode 100644
index 00000000..c97a7873
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/search/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var validRegExp = require("../../valid-reg-exp");
+
+module.exports = function (string) {
+ validRegExp(this);
+ return String(string).search(this);
+};
diff --git a/node_modules/es5-ext/reg-exp/#/split/implement.js b/node_modules/es5-ext/reg-exp/#/split/implement.js
new file mode 100644
index 00000000..b979db07
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/split/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "split", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/split/index.js b/node_modules/es5-ext/reg-exp/#/split/index.js
new file mode 100644
index 00000000..6d4f177a
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/split/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? RegExp.prototype.split : require("./shim");
diff --git a/node_modules/es5-ext/reg-exp/#/split/is-implemented.js b/node_modules/es5-ext/reg-exp/#/split/is-implemented.js
new file mode 100644
index 00000000..90fca0cc
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/split/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var re = /\|/;
+
+module.exports = function () {
+ if (typeof re.split !== "function") return false;
+ return re.split("bar|foo")[1] === "foo";
+};
diff --git a/node_modules/es5-ext/reg-exp/#/split/shim.js b/node_modules/es5-ext/reg-exp/#/split/shim.js
new file mode 100644
index 00000000..c9c73cce
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/split/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var validRegExp = require("../../valid-reg-exp");
+
+module.exports = function (string) {
+ validRegExp(this);
+ return String(string).split(this);
+};
diff --git a/node_modules/es5-ext/reg-exp/#/sticky/implement.js b/node_modules/es5-ext/reg-exp/#/sticky/implement.js
new file mode 100644
index 00000000..7864c6c7
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/sticky/implement.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var isSticky = require("../is-sticky");
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "sticky", {
+ configurable: true,
+ enumerable: false,
+ get: isSticky
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js b/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js
new file mode 100644
index 00000000..a1ade111
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function () {
+ var dummyRegExp = /a/;
+ // We need to do check on instance and not on prototype due to how ES2015 spec evolved:
+ // https://github.com/tc39/ecma262/issues/262
+ // https://github.com/tc39/ecma262/pull/263
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4617
+ return "sticky" in dummyRegExp;
+};
diff --git a/node_modules/es5-ext/reg-exp/#/unicode/implement.js b/node_modules/es5-ext/reg-exp/#/unicode/implement.js
new file mode 100644
index 00000000..8b99be59
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/unicode/implement.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var isUnicode = require("../is-unicode");
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(RegExp.prototype, "unicode", {
+ configurable: true,
+ enumerable: false,
+ get: isUnicode
+ });
+}
diff --git a/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js b/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js
new file mode 100644
index 00000000..48605d72
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function () {
+ var dummyRegExp = /a/;
+ // We need to do check on instance and not on prototype due to how ES2015 spec evolved:
+ // https://github.com/tc39/ecma262/issues/262
+ // https://github.com/tc39/ecma262/pull/263
+ // https://bugs.chromium.org/p/v8/issues/detail?id=4617
+ return "unicode" in dummyRegExp;
+};
diff --git a/node_modules/es5-ext/reg-exp/escape.js b/node_modules/es5-ext/reg-exp/escape.js
new file mode 100644
index 00000000..b65b3511
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/escape.js
@@ -0,0 +1,9 @@
+// Thanks to Andrew Clover:
+// http://stackoverflow.com/questions/3561493
+// /is-there-a-regexp-escape-function-in-javascript
+
+"use strict";
+
+var re = /[-/\\^$*+?.()|[\]{}]/g;
+
+module.exports = function (str) { return String(str).replace(re, "\\$&"); };
diff --git a/node_modules/es5-ext/reg-exp/index.js b/node_modules/es5-ext/reg-exp/index.js
new file mode 100644
index 00000000..f023fe03
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/index.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "escape": require("./escape"),
+ "isRegExp": require("./is-reg-exp"),
+ "validRegExp": require("./valid-reg-exp")
+};
diff --git a/node_modules/es5-ext/reg-exp/is-reg-exp.js b/node_modules/es5-ext/reg-exp/is-reg-exp.js
new file mode 100644
index 00000000..b966b0f2
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/is-reg-exp.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call(/a/);
+
+module.exports = function (value) {
+ return (value && (value instanceof RegExp || objToString.call(value) === id)) || false;
+};
diff --git a/node_modules/es5-ext/reg-exp/valid-reg-exp.js b/node_modules/es5-ext/reg-exp/valid-reg-exp.js
new file mode 100644
index 00000000..a05927a7
--- /dev/null
+++ b/node_modules/es5-ext/reg-exp/valid-reg-exp.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isRegExp = require("./is-reg-exp");
+
+module.exports = function (value) {
+ if (!isRegExp(value)) throw new TypeError(value + " is not a RegExp object");
+ return value;
+};
diff --git a/node_modules/es5-ext/safe-to-string.js b/node_modules/es5-ext/safe-to-string.js
new file mode 100644
index 00000000..f49a238a
--- /dev/null
+++ b/node_modules/es5-ext/safe-to-string.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var isCallable = require("./object/is-callable");
+
+module.exports = function (value) {
+ try {
+ if (value && isCallable(value.toString)) return value.toString();
+ return String(value);
+ } catch (e) {
+ return "";
+ }
+};
diff --git a/node_modules/es5-ext/string/#/@@iterator/implement.js b/node_modules/es5-ext/string/#/@@iterator/implement.js
new file mode 100644
index 00000000..b51ad9f8
--- /dev/null
+++ b/node_modules/es5-ext/string/#/@@iterator/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, require("es6-symbol").iterator, {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/@@iterator/index.js b/node_modules/es5-ext/string/#/@@iterator/index.js
new file mode 100644
index 00000000..4572443b
--- /dev/null
+++ b/node_modules/es5-ext/string/#/@@iterator/index.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = require("./is-implemented")()
+ ? String.prototype[require("es6-symbol").iterator]
+ : require("./shim");
diff --git a/node_modules/es5-ext/string/#/@@iterator/is-implemented.js b/node_modules/es5-ext/string/#/@@iterator/is-implemented.js
new file mode 100644
index 00000000..bb8a8d6e
--- /dev/null
+++ b/node_modules/es5-ext/string/#/@@iterator/is-implemented.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function () {
+ var str = "🙈f", iterator, result;
+ if (typeof str[iteratorSymbol] !== "function") return false;
+ iterator = str[iteratorSymbol]();
+ if (!iterator) return false;
+ if (typeof iterator.next !== "function") return false;
+ result = iterator.next();
+ if (!result) return false;
+ if (result.value !== "🙈") return false;
+ if (result.done !== false) return false;
+ return true;
+};
diff --git a/node_modules/es5-ext/string/#/@@iterator/shim.js b/node_modules/es5-ext/string/#/@@iterator/shim.js
new file mode 100644
index 00000000..21606198
--- /dev/null
+++ b/node_modules/es5-ext/string/#/@@iterator/shim.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var StringIterator = require("es6-iterator/string")
+ , value = require("../../../object/valid-value");
+
+module.exports = function () { return new StringIterator(value(this)); };
diff --git a/node_modules/es5-ext/string/#/at.js b/node_modules/es5-ext/string/#/at.js
new file mode 100644
index 00000000..a8c29179
--- /dev/null
+++ b/node_modules/es5-ext/string/#/at.js
@@ -0,0 +1,35 @@
+// Based on: https://github.com/mathiasbynens/String.prototype.at
+// Thanks @mathiasbynens !
+
+"use strict";
+
+var toInteger = require("../../number/to-integer")
+ , validValue = require("../../object/valid-value");
+
+module.exports = function (pos) {
+ var str = String(validValue(this)), size = str.length, cuFirst, cuSecond, nextPos, len;
+ pos = toInteger(pos);
+
+ // Account for out-of-bounds indices
+ // The odd lower bound is because the ToInteger operation is
+ // going to round `n` to `0` for `-1 < n <= 0`.
+ if (pos <= -1 || pos >= size) return "";
+
+ // Second half of `ToInteger`
+ // eslint-disable-next-line no-bitwise
+ pos |= 0;
+ // Get the first code unit and code unit value
+ cuFirst = str.charCodeAt(pos);
+ nextPos = pos + 1;
+ len = 1;
+ if (
+ // Check if it’s the start of a surrogate pair
+ cuFirst >= 0xd800 &&
+ cuFirst <= 0xdbff && // High surrogate
+ size > nextPos // There is a next code unit
+ ) {
+ cuSecond = str.charCodeAt(nextPos);
+ if (cuSecond >= 0xdc00 && cuSecond <= 0xdfff) len = 2; // Low surrogate
+ }
+ return str.slice(pos, pos + len);
+};
diff --git a/node_modules/es5-ext/string/#/camel-to-hyphen.js b/node_modules/es5-ext/string/#/camel-to-hyphen.js
new file mode 100644
index 00000000..5add3ed5
--- /dev/null
+++ b/node_modules/es5-ext/string/#/camel-to-hyphen.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var replace = String.prototype.replace, re = /([A-Z])/g;
+
+module.exports = function () {
+ var str = replace.call(this, re, "-$1").toLowerCase();
+ if (str[0] === "-") str = str.slice(1);
+ return str;
+};
diff --git a/node_modules/es5-ext/string/#/capitalize.js b/node_modules/es5-ext/string/#/capitalize.js
new file mode 100644
index 00000000..fc92a9fb
--- /dev/null
+++ b/node_modules/es5-ext/string/#/capitalize.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var value = require("../../object/valid-value");
+
+module.exports = function () {
+ var str = String(value(this));
+ return str.charAt(0).toUpperCase() + str.slice(1);
+};
diff --git a/node_modules/es5-ext/string/#/case-insensitive-compare.js b/node_modules/es5-ext/string/#/case-insensitive-compare.js
new file mode 100644
index 00000000..5d961a5e
--- /dev/null
+++ b/node_modules/es5-ext/string/#/case-insensitive-compare.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var toLowerCase = String.prototype.toLowerCase;
+
+module.exports = function (other) {
+ return toLowerCase.call(this).localeCompare(toLowerCase.call(String(other)));
+};
diff --git a/node_modules/es5-ext/string/#/code-point-at/implement.js b/node_modules/es5-ext/string/#/code-point-at/implement.js
new file mode 100644
index 00000000..25752f92
--- /dev/null
+++ b/node_modules/es5-ext/string/#/code-point-at/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "codePointAt", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/code-point-at/index.js b/node_modules/es5-ext/string/#/code-point-at/index.js
new file mode 100644
index 00000000..0a22f843
--- /dev/null
+++ b/node_modules/es5-ext/string/#/code-point-at/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.codePointAt : require("./shim");
diff --git a/node_modules/es5-ext/string/#/code-point-at/is-implemented.js b/node_modules/es5-ext/string/#/code-point-at/is-implemented.js
new file mode 100644
index 00000000..47e4c934
--- /dev/null
+++ b/node_modules/es5-ext/string/#/code-point-at/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "abc\uD834\uDF06def";
+
+module.exports = function () {
+ if (typeof str.codePointAt !== "function") return false;
+ return str.codePointAt(3) === 0x1d306;
+};
diff --git a/node_modules/es5-ext/string/#/code-point-at/shim.js b/node_modules/es5-ext/string/#/code-point-at/shim.js
new file mode 100644
index 00000000..0f331c3f
--- /dev/null
+++ b/node_modules/es5-ext/string/#/code-point-at/shim.js
@@ -0,0 +1,26 @@
+// Based on: https://github.com/mathiasbynens/String.prototype.codePointAt
+// Thanks @mathiasbynens !
+
+"use strict";
+
+var toInteger = require("../../../number/to-integer")
+ , validValue = require("../../../object/valid-value");
+
+module.exports = function (pos) {
+ var str = String(validValue(this)), length = str.length, first, second;
+ pos = toInteger(pos);
+
+ // Account for out-of-bounds indices:
+ if (pos < 0 || pos >= length) return undefined;
+
+ // Get the first code unit
+ first = str.charCodeAt(pos);
+ if (first >= 0xd800 && first <= 0xdbff && length > pos + 1) {
+ second = str.charCodeAt(pos + 1);
+ if (second >= 0xdc00 && second <= 0xdfff) {
+ // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae
+ return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000;
+ }
+ }
+ return first;
+};
diff --git a/node_modules/es5-ext/string/#/contains/implement.js b/node_modules/es5-ext/string/#/contains/implement.js
new file mode 100644
index 00000000..03cc091b
--- /dev/null
+++ b/node_modules/es5-ext/string/#/contains/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "contains", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/contains/index.js b/node_modules/es5-ext/string/#/contains/index.js
new file mode 100644
index 00000000..5f8d993f
--- /dev/null
+++ b/node_modules/es5-ext/string/#/contains/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.contains : require("./shim");
diff --git a/node_modules/es5-ext/string/#/contains/is-implemented.js b/node_modules/es5-ext/string/#/contains/is-implemented.js
new file mode 100644
index 00000000..d9b3e9a9
--- /dev/null
+++ b/node_modules/es5-ext/string/#/contains/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "razdwatrzy";
+
+module.exports = function () {
+ if (typeof str.contains !== "function") return false;
+ return str.contains("dwa") === true && str.contains("foo") === false;
+};
diff --git a/node_modules/es5-ext/string/#/contains/shim.js b/node_modules/es5-ext/string/#/contains/shim.js
new file mode 100644
index 00000000..a7219f2e
--- /dev/null
+++ b/node_modules/es5-ext/string/#/contains/shim.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var indexOf = String.prototype.indexOf;
+
+module.exports = function (searchString/*, position*/) {
+ return indexOf.call(this, searchString, arguments[1]) > -1;
+};
diff --git a/node_modules/es5-ext/string/#/count.js b/node_modules/es5-ext/string/#/count.js
new file mode 100644
index 00000000..76070136
--- /dev/null
+++ b/node_modules/es5-ext/string/#/count.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var ensureString = require("../../object/validate-stringifiable-value");
+
+module.exports = function (search) {
+ var string = ensureString(this), count = 0, index = 0;
+
+ search = ensureString(search);
+ if (!search) throw new TypeError("Search string cannot be empty");
+ while ((index = string.indexOf(search, index)) !== -1) {
+ ++count;
+ index += search.length;
+ }
+ return count;
+};
diff --git a/node_modules/es5-ext/string/#/ends-with/implement.js b/node_modules/es5-ext/string/#/ends-with/implement.js
new file mode 100644
index 00000000..62457cce
--- /dev/null
+++ b/node_modules/es5-ext/string/#/ends-with/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "endsWith", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/ends-with/index.js b/node_modules/es5-ext/string/#/ends-with/index.js
new file mode 100644
index 00000000..04c82643
--- /dev/null
+++ b/node_modules/es5-ext/string/#/ends-with/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.endsWith : require("./shim");
diff --git a/node_modules/es5-ext/string/#/ends-with/is-implemented.js b/node_modules/es5-ext/string/#/ends-with/is-implemented.js
new file mode 100644
index 00000000..1abaff75
--- /dev/null
+++ b/node_modules/es5-ext/string/#/ends-with/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "razdwatrzy";
+
+module.exports = function () {
+ if (typeof str.endsWith !== "function") return false;
+ return str.endsWith("trzy") === true && str.endsWith("raz") === false;
+};
diff --git a/node_modules/es5-ext/string/#/ends-with/shim.js b/node_modules/es5-ext/string/#/ends-with/shim.js
new file mode 100644
index 00000000..725c2b7f
--- /dev/null
+++ b/node_modules/es5-ext/string/#/ends-with/shim.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var toInteger = require("../../../number/to-integer")
+ , value = require("../../../object/valid-value")
+ , isValue = require("../../../object/is-value")
+ , min = Math.min
+ , max = Math.max;
+
+module.exports = function (searchString/*, endPosition*/) {
+ var self, start, endPos;
+ self = String(value(this));
+ searchString = String(searchString);
+ endPos = arguments[1];
+ start =
+ (isValue(endPos) ? min(max(toInteger(endPos), 0), self.length) : self.length) -
+ searchString.length;
+ return start < 0 ? false : self.indexOf(searchString, start) === start;
+};
diff --git a/node_modules/es5-ext/string/#/hyphen-to-camel.js b/node_modules/es5-ext/string/#/hyphen-to-camel.js
new file mode 100644
index 00000000..9feef5bc
--- /dev/null
+++ b/node_modules/es5-ext/string/#/hyphen-to-camel.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var replace = String.prototype.replace, re = /-([a-z0-9])/g;
+var toUpperCase = function (ignored, a) { return a.toUpperCase(); };
+
+module.exports = function () { return replace.call(this, re, toUpperCase); };
diff --git a/node_modules/es5-ext/string/#/indent.js b/node_modules/es5-ext/string/#/indent.js
new file mode 100644
index 00000000..67fa9ad6
--- /dev/null
+++ b/node_modules/es5-ext/string/#/indent.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var isValue = require("../../object/is-value")
+ , repeat = require("./repeat")
+ , replace = String.prototype.replace
+ , re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g;
+
+module.exports = function (indent/*, count*/) {
+ var count = arguments[1];
+ indent = repeat.call(String(indent), isValue(count) ? count : 1);
+ return indent + replace.call(this, re, "$1" + indent + "$2");
+};
diff --git a/node_modules/es5-ext/string/#/index.js b/node_modules/es5-ext/string/#/index.js
new file mode 100644
index 00000000..23444897
--- /dev/null
+++ b/node_modules/es5-ext/string/#/index.js
@@ -0,0 +1,23 @@
+"use strict";
+
+module.exports = {
+ "@@iterator": require("./@@iterator"),
+ "at": require("./at"),
+ "count": require("./count"),
+ "camelToHyphen": require("./camel-to-hyphen"),
+ "capitalize": require("./capitalize"),
+ "caseInsensitiveCompare": require("./case-insensitive-compare"),
+ "codePointAt": require("./code-point-at"),
+ "contains": require("./contains"),
+ "hyphenToCamel": require("./hyphen-to-camel"),
+ "endsWith": require("./ends-with"),
+ "indent": require("./indent"),
+ "last": require("./last"),
+ "normalize": require("./normalize"),
+ "pad": require("./pad"),
+ "plainReplace": require("./plain-replace"),
+ "plainReplaceAll": require("./plain-replace-all"),
+ "repeat": require("./repeat"),
+ "startsWith": require("./starts-with"),
+ "uncapitalize": require("./uncapitalize")
+};
diff --git a/node_modules/es5-ext/string/#/last.js b/node_modules/es5-ext/string/#/last.js
new file mode 100644
index 00000000..f5c957fc
--- /dev/null
+++ b/node_modules/es5-ext/string/#/last.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var value = require("../../object/valid-value");
+
+module.exports = function () {
+ var self = String(value(this)), length = self.length;
+ return length ? self[length - 1] : null;
+};
diff --git a/node_modules/es5-ext/string/#/normalize/_data.js b/node_modules/es5-ext/string/#/normalize/_data.js
new file mode 100644
index 00000000..ae4f1538
--- /dev/null
+++ b/node_modules/es5-ext/string/#/normalize/_data.js
@@ -0,0 +1,6988 @@
+/* eslint max-lines: "off", no-sparse-arrays: "off", comma-style: "off" */
+
+"use strict";
+
+module.exports = {
+ 0: {
+ 60: [, , { 824: 8814 }],
+ 61: [, , { 824: 8800 }],
+ 62: [, , { 824: 8815 }],
+ 65: [
+ , ,
+ {
+ 768: 192,
+ 769: 193,
+ 770: 194,
+ 771: 195,
+ 772: 256,
+ 774: 258,
+ 775: 550,
+ 776: 196,
+ 777: 7842,
+ 778: 197,
+ 780: 461,
+ 783: 512,
+ 785: 514,
+ 803: 7840,
+ 805: 7680,
+ 808: 260
+ }
+ ],
+ 66: [, , { 775: 7682, 803: 7684, 817: 7686 }],
+ 67: [, , { 769: 262, 770: 264, 775: 266, 780: 268, 807: 199 }],
+ 68: [, , { 775: 7690, 780: 270, 803: 7692, 807: 7696, 813: 7698, 817: 7694 }],
+ 69: [
+ , ,
+ {
+ 768: 200,
+ 769: 201,
+ 770: 202,
+ 771: 7868,
+ 772: 274,
+ 774: 276,
+ 775: 278,
+ 776: 203,
+ 777: 7866,
+ 780: 282,
+ 783: 516,
+ 785: 518,
+ 803: 7864,
+ 807: 552,
+ 808: 280,
+ 813: 7704,
+ 816: 7706
+ }
+ ],
+ 70: [, , { 775: 7710 }],
+ 71: [, , { 769: 500, 770: 284, 772: 7712, 774: 286, 775: 288, 780: 486, 807: 290 }],
+ 72: [, , { 770: 292, 775: 7714, 776: 7718, 780: 542, 803: 7716, 807: 7720, 814: 7722 }],
+ 73: [
+ , ,
+ {
+ 768: 204,
+ 769: 205,
+ 770: 206,
+ 771: 296,
+ 772: 298,
+ 774: 300,
+ 775: 304,
+ 776: 207,
+ 777: 7880,
+ 780: 463,
+ 783: 520,
+ 785: 522,
+ 803: 7882,
+ 808: 302,
+ 816: 7724
+ }
+ ],
+ 74: [, , { 770: 308 }],
+ 75: [, , { 769: 7728, 780: 488, 803: 7730, 807: 310, 817: 7732 }],
+ 76: [, , { 769: 313, 780: 317, 803: 7734, 807: 315, 813: 7740, 817: 7738 }],
+ 77: [, , { 769: 7742, 775: 7744, 803: 7746 }],
+ 78: [
+ , ,
+ {
+ 768: 504,
+ 769: 323,
+ 771: 209,
+ 775: 7748,
+ 780: 327,
+ 803: 7750,
+ 807: 325,
+ 813: 7754,
+ 817: 7752
+ }
+ ],
+ 79: [
+ , ,
+ {
+ 768: 210,
+ 769: 211,
+ 770: 212,
+ 771: 213,
+ 772: 332,
+ 774: 334,
+ 775: 558,
+ 776: 214,
+ 777: 7886,
+ 779: 336,
+ 780: 465,
+ 783: 524,
+ 785: 526,
+ 795: 416,
+ 803: 7884,
+ 808: 490
+ }
+ ],
+ 80: [, , { 769: 7764, 775: 7766 }],
+ 82: [
+ , ,
+ { 769: 340, 775: 7768, 780: 344, 783: 528, 785: 530, 803: 7770, 807: 342, 817: 7774 }
+ ],
+ 83: [, , { 769: 346, 770: 348, 775: 7776, 780: 352, 803: 7778, 806: 536, 807: 350 }],
+ 84: [, , { 775: 7786, 780: 356, 803: 7788, 806: 538, 807: 354, 813: 7792, 817: 7790 }],
+ 85: [
+ , ,
+ {
+ 768: 217,
+ 769: 218,
+ 770: 219,
+ 771: 360,
+ 772: 362,
+ 774: 364,
+ 776: 220,
+ 777: 7910,
+ 778: 366,
+ 779: 368,
+ 780: 467,
+ 783: 532,
+ 785: 534,
+ 795: 431,
+ 803: 7908,
+ 804: 7794,
+ 808: 370,
+ 813: 7798,
+ 816: 7796
+ }
+ ],
+ 86: [, , { 771: 7804, 803: 7806 }],
+ 87: [, , { 768: 7808, 769: 7810, 770: 372, 775: 7814, 776: 7812, 803: 7816 }],
+ 88: [, , { 775: 7818, 776: 7820 }],
+ 89: [
+ , ,
+ {
+ 768: 7922,
+ 769: 221,
+ 770: 374,
+ 771: 7928,
+ 772: 562,
+ 775: 7822,
+ 776: 376,
+ 777: 7926,
+ 803: 7924
+ }
+ ],
+ 90: [, , { 769: 377, 770: 7824, 775: 379, 780: 381, 803: 7826, 817: 7828 }],
+ 97: [
+ , ,
+ {
+ 768: 224,
+ 769: 225,
+ 770: 226,
+ 771: 227,
+ 772: 257,
+ 774: 259,
+ 775: 551,
+ 776: 228,
+ 777: 7843,
+ 778: 229,
+ 780: 462,
+ 783: 513,
+ 785: 515,
+ 803: 7841,
+ 805: 7681,
+ 808: 261
+ }
+ ],
+ 98: [, , { 775: 7683, 803: 7685, 817: 7687 }],
+ 99: [, , { 769: 263, 770: 265, 775: 267, 780: 269, 807: 231 }],
+ 100: [, , { 775: 7691, 780: 271, 803: 7693, 807: 7697, 813: 7699, 817: 7695 }],
+ 101: [
+ , ,
+ {
+ 768: 232,
+ 769: 233,
+ 770: 234,
+ 771: 7869,
+ 772: 275,
+ 774: 277,
+ 775: 279,
+ 776: 235,
+ 777: 7867,
+ 780: 283,
+ 783: 517,
+ 785: 519,
+ 803: 7865,
+ 807: 553,
+ 808: 281,
+ 813: 7705,
+ 816: 7707
+ }
+ ],
+ 102: [, , { 775: 7711 }],
+ 103: [, , { 769: 501, 770: 285, 772: 7713, 774: 287, 775: 289, 780: 487, 807: 291 }],
+ 104: [
+ , ,
+ { 770: 293, 775: 7715, 776: 7719, 780: 543, 803: 7717, 807: 7721, 814: 7723, 817: 7830 }
+ ],
+ 105: [
+ , ,
+ {
+ 768: 236,
+ 769: 237,
+ 770: 238,
+ 771: 297,
+ 772: 299,
+ 774: 301,
+ 776: 239,
+ 777: 7881,
+ 780: 464,
+ 783: 521,
+ 785: 523,
+ 803: 7883,
+ 808: 303,
+ 816: 7725
+ }
+ ],
+ 106: [, , { 770: 309, 780: 496 }],
+ 107: [, , { 769: 7729, 780: 489, 803: 7731, 807: 311, 817: 7733 }],
+ 108: [, , { 769: 314, 780: 318, 803: 7735, 807: 316, 813: 7741, 817: 7739 }],
+ 109: [, , { 769: 7743, 775: 7745, 803: 7747 }],
+ 110: [
+ , ,
+ {
+ 768: 505,
+ 769: 324,
+ 771: 241,
+ 775: 7749,
+ 780: 328,
+ 803: 7751,
+ 807: 326,
+ 813: 7755,
+ 817: 7753
+ }
+ ],
+ 111: [
+ , ,
+ {
+ 768: 242,
+ 769: 243,
+ 770: 244,
+ 771: 245,
+ 772: 333,
+ 774: 335,
+ 775: 559,
+ 776: 246,
+ 777: 7887,
+ 779: 337,
+ 780: 466,
+ 783: 525,
+ 785: 527,
+ 795: 417,
+ 803: 7885,
+ 808: 491
+ }
+ ],
+ 112: [, , { 769: 7765, 775: 7767 }],
+ 114: [
+ , ,
+ { 769: 341, 775: 7769, 780: 345, 783: 529, 785: 531, 803: 7771, 807: 343, 817: 7775 }
+ ],
+ 115: [, , { 769: 347, 770: 349, 775: 7777, 780: 353, 803: 7779, 806: 537, 807: 351 }],
+ 116: [
+ , ,
+ { 775: 7787, 776: 7831, 780: 357, 803: 7789, 806: 539, 807: 355, 813: 7793, 817: 7791 }
+ ],
+ 117: [
+ , ,
+ {
+ 768: 249,
+ 769: 250,
+ 770: 251,
+ 771: 361,
+ 772: 363,
+ 774: 365,
+ 776: 252,
+ 777: 7911,
+ 778: 367,
+ 779: 369,
+ 780: 468,
+ 783: 533,
+ 785: 535,
+ 795: 432,
+ 803: 7909,
+ 804: 7795,
+ 808: 371,
+ 813: 7799,
+ 816: 7797
+ }
+ ],
+ 118: [, , { 771: 7805, 803: 7807 }],
+ 119: [, , { 768: 7809, 769: 7811, 770: 373, 775: 7815, 776: 7813, 778: 7832, 803: 7817 }],
+ 120: [, , { 775: 7819, 776: 7821 }],
+ 121: [
+ , ,
+ {
+ 768: 7923,
+ 769: 253,
+ 770: 375,
+ 771: 7929,
+ 772: 563,
+ 775: 7823,
+ 776: 255,
+ 777: 7927,
+ 778: 7833,
+ 803: 7925
+ }
+ ],
+ 122: [, , { 769: 378, 770: 7825, 775: 380, 780: 382, 803: 7827, 817: 7829 }],
+ 160: [[32], 256],
+ 168: [[32, 776], 256, { 768: 8173, 769: 901, 834: 8129 }],
+ 170: [[97], 256],
+ 175: [[32, 772], 256],
+ 178: [[50], 256],
+ 179: [[51], 256],
+ 180: [[32, 769], 256],
+ 181: [[956], 256],
+ 184: [[32, 807], 256],
+ 185: [[49], 256],
+ 186: [[111], 256],
+ 188: [[49, 8260, 52], 256],
+ 189: [[49, 8260, 50], 256],
+ 190: [[51, 8260, 52], 256],
+ 192: [[65, 768]],
+ 193: [[65, 769]],
+ 194: [[65, 770], , { 768: 7846, 769: 7844, 771: 7850, 777: 7848 }],
+ 195: [[65, 771]],
+ 196: [[65, 776], , { 772: 478 }],
+ 197: [[65, 778], , { 769: 506 }],
+ 198: [, , { 769: 508, 772: 482 }],
+ 199: [[67, 807], , { 769: 7688 }],
+ 200: [[69, 768]],
+ 201: [[69, 769]],
+ 202: [[69, 770], , { 768: 7872, 769: 7870, 771: 7876, 777: 7874 }],
+ 203: [[69, 776]],
+ 204: [[73, 768]],
+ 205: [[73, 769]],
+ 206: [[73, 770]],
+ 207: [[73, 776], , { 769: 7726 }],
+ 209: [[78, 771]],
+ 210: [[79, 768]],
+ 211: [[79, 769]],
+ 212: [[79, 770], , { 768: 7890, 769: 7888, 771: 7894, 777: 7892 }],
+ 213: [[79, 771], , { 769: 7756, 772: 556, 776: 7758 }],
+ 214: [[79, 776], , { 772: 554 }],
+ 216: [, , { 769: 510 }],
+ 217: [[85, 768]],
+ 218: [[85, 769]],
+ 219: [[85, 770]],
+ 220: [[85, 776], , { 768: 475, 769: 471, 772: 469, 780: 473 }],
+ 221: [[89, 769]],
+ 224: [[97, 768]],
+ 225: [[97, 769]],
+ 226: [[97, 770], , { 768: 7847, 769: 7845, 771: 7851, 777: 7849 }],
+ 227: [[97, 771]],
+ 228: [[97, 776], , { 772: 479 }],
+ 229: [[97, 778], , { 769: 507 }],
+ 230: [, , { 769: 509, 772: 483 }],
+ 231: [[99, 807], , { 769: 7689 }],
+ 232: [[101, 768]],
+ 233: [[101, 769]],
+ 234: [[101, 770], , { 768: 7873, 769: 7871, 771: 7877, 777: 7875 }],
+ 235: [[101, 776]],
+ 236: [[105, 768]],
+ 237: [[105, 769]],
+ 238: [[105, 770]],
+ 239: [[105, 776], , { 769: 7727 }],
+ 241: [[110, 771]],
+ 242: [[111, 768]],
+ 243: [[111, 769]],
+ 244: [[111, 770], , { 768: 7891, 769: 7889, 771: 7895, 777: 7893 }],
+ 245: [[111, 771], , { 769: 7757, 772: 557, 776: 7759 }],
+ 246: [[111, 776], , { 772: 555 }],
+ 248: [, , { 769: 511 }],
+ 249: [[117, 768]],
+ 250: [[117, 769]],
+ 251: [[117, 770]],
+ 252: [[117, 776], , { 768: 476, 769: 472, 772: 470, 780: 474 }],
+ 253: [[121, 769]],
+ 255: [[121, 776]]
+ },
+ 256: {
+ 256: [[65, 772]],
+ 257: [[97, 772]],
+ 258: [[65, 774], , { 768: 7856, 769: 7854, 771: 7860, 777: 7858 }],
+ 259: [[97, 774], , { 768: 7857, 769: 7855, 771: 7861, 777: 7859 }],
+ 260: [[65, 808]],
+ 261: [[97, 808]],
+ 262: [[67, 769]],
+ 263: [[99, 769]],
+ 264: [[67, 770]],
+ 265: [[99, 770]],
+ 266: [[67, 775]],
+ 267: [[99, 775]],
+ 268: [[67, 780]],
+ 269: [[99, 780]],
+ 270: [[68, 780]],
+ 271: [[100, 780]],
+ 274: [[69, 772], , { 768: 7700, 769: 7702 }],
+ 275: [[101, 772], , { 768: 7701, 769: 7703 }],
+ 276: [[69, 774]],
+ 277: [[101, 774]],
+ 278: [[69, 775]],
+ 279: [[101, 775]],
+ 280: [[69, 808]],
+ 281: [[101, 808]],
+ 282: [[69, 780]],
+ 283: [[101, 780]],
+ 284: [[71, 770]],
+ 285: [[103, 770]],
+ 286: [[71, 774]],
+ 287: [[103, 774]],
+ 288: [[71, 775]],
+ 289: [[103, 775]],
+ 290: [[71, 807]],
+ 291: [[103, 807]],
+ 292: [[72, 770]],
+ 293: [[104, 770]],
+ 296: [[73, 771]],
+ 297: [[105, 771]],
+ 298: [[73, 772]],
+ 299: [[105, 772]],
+ 300: [[73, 774]],
+ 301: [[105, 774]],
+ 302: [[73, 808]],
+ 303: [[105, 808]],
+ 304: [[73, 775]],
+ 306: [[73, 74], 256],
+ 307: [[105, 106], 256],
+ 308: [[74, 770]],
+ 309: [[106, 770]],
+ 310: [[75, 807]],
+ 311: [[107, 807]],
+ 313: [[76, 769]],
+ 314: [[108, 769]],
+ 315: [[76, 807]],
+ 316: [[108, 807]],
+ 317: [[76, 780]],
+ 318: [[108, 780]],
+ 319: [[76, 183], 256],
+ 320: [[108, 183], 256],
+ 323: [[78, 769]],
+ 324: [[110, 769]],
+ 325: [[78, 807]],
+ 326: [[110, 807]],
+ 327: [[78, 780]],
+ 328: [[110, 780]],
+ 329: [[700, 110], 256],
+ 332: [[79, 772], , { 768: 7760, 769: 7762 }],
+ 333: [[111, 772], , { 768: 7761, 769: 7763 }],
+ 334: [[79, 774]],
+ 335: [[111, 774]],
+ 336: [[79, 779]],
+ 337: [[111, 779]],
+ 340: [[82, 769]],
+ 341: [[114, 769]],
+ 342: [[82, 807]],
+ 343: [[114, 807]],
+ 344: [[82, 780]],
+ 345: [[114, 780]],
+ 346: [[83, 769], , { 775: 7780 }],
+ 347: [[115, 769], , { 775: 7781 }],
+ 348: [[83, 770]],
+ 349: [[115, 770]],
+ 350: [[83, 807]],
+ 351: [[115, 807]],
+ 352: [[83, 780], , { 775: 7782 }],
+ 353: [[115, 780], , { 775: 7783 }],
+ 354: [[84, 807]],
+ 355: [[116, 807]],
+ 356: [[84, 780]],
+ 357: [[116, 780]],
+ 360: [[85, 771], , { 769: 7800 }],
+ 361: [[117, 771], , { 769: 7801 }],
+ 362: [[85, 772], , { 776: 7802 }],
+ 363: [[117, 772], , { 776: 7803 }],
+ 364: [[85, 774]],
+ 365: [[117, 774]],
+ 366: [[85, 778]],
+ 367: [[117, 778]],
+ 368: [[85, 779]],
+ 369: [[117, 779]],
+ 370: [[85, 808]],
+ 371: [[117, 808]],
+ 372: [[87, 770]],
+ 373: [[119, 770]],
+ 374: [[89, 770]],
+ 375: [[121, 770]],
+ 376: [[89, 776]],
+ 377: [[90, 769]],
+ 378: [[122, 769]],
+ 379: [[90, 775]],
+ 380: [[122, 775]],
+ 381: [[90, 780]],
+ 382: [[122, 780]],
+ 383: [[115], 256, { 775: 7835 }],
+ 416: [[79, 795], , { 768: 7900, 769: 7898, 771: 7904, 777: 7902, 803: 7906 }],
+ 417: [[111, 795], , { 768: 7901, 769: 7899, 771: 7905, 777: 7903, 803: 7907 }],
+ 431: [[85, 795], , { 768: 7914, 769: 7912, 771: 7918, 777: 7916, 803: 7920 }],
+ 432: [[117, 795], , { 768: 7915, 769: 7913, 771: 7919, 777: 7917, 803: 7921 }],
+ 439: [, , { 780: 494 }],
+ 452: [[68, 381], 256],
+ 453: [[68, 382], 256],
+ 454: [[100, 382], 256],
+ 455: [[76, 74], 256],
+ 456: [[76, 106], 256],
+ 457: [[108, 106], 256],
+ 458: [[78, 74], 256],
+ 459: [[78, 106], 256],
+ 460: [[110, 106], 256],
+ 461: [[65, 780]],
+ 462: [[97, 780]],
+ 463: [[73, 780]],
+ 464: [[105, 780]],
+ 465: [[79, 780]],
+ 466: [[111, 780]],
+ 467: [[85, 780]],
+ 468: [[117, 780]],
+ 469: [[220, 772]],
+ 470: [[252, 772]],
+ 471: [[220, 769]],
+ 472: [[252, 769]],
+ 473: [[220, 780]],
+ 474: [[252, 780]],
+ 475: [[220, 768]],
+ 476: [[252, 768]],
+ 478: [[196, 772]],
+ 479: [[228, 772]],
+ 480: [[550, 772]],
+ 481: [[551, 772]],
+ 482: [[198, 772]],
+ 483: [[230, 772]],
+ 486: [[71, 780]],
+ 487: [[103, 780]],
+ 488: [[75, 780]],
+ 489: [[107, 780]],
+ 490: [[79, 808], , { 772: 492 }],
+ 491: [[111, 808], , { 772: 493 }],
+ 492: [[490, 772]],
+ 493: [[491, 772]],
+ 494: [[439, 780]],
+ 495: [[658, 780]],
+ 496: [[106, 780]],
+ 497: [[68, 90], 256],
+ 498: [[68, 122], 256],
+ 499: [[100, 122], 256],
+ 500: [[71, 769]],
+ 501: [[103, 769]],
+ 504: [[78, 768]],
+ 505: [[110, 768]],
+ 506: [[197, 769]],
+ 507: [[229, 769]],
+ 508: [[198, 769]],
+ 509: [[230, 769]],
+ 510: [[216, 769]],
+ 511: [[248, 769]],
+ 66045: [, 220]
+ },
+ 512: {
+ 512: [[65, 783]],
+ 513: [[97, 783]],
+ 514: [[65, 785]],
+ 515: [[97, 785]],
+ 516: [[69, 783]],
+ 517: [[101, 783]],
+ 518: [[69, 785]],
+ 519: [[101, 785]],
+ 520: [[73, 783]],
+ 521: [[105, 783]],
+ 522: [[73, 785]],
+ 523: [[105, 785]],
+ 524: [[79, 783]],
+ 525: [[111, 783]],
+ 526: [[79, 785]],
+ 527: [[111, 785]],
+ 528: [[82, 783]],
+ 529: [[114, 783]],
+ 530: [[82, 785]],
+ 531: [[114, 785]],
+ 532: [[85, 783]],
+ 533: [[117, 783]],
+ 534: [[85, 785]],
+ 535: [[117, 785]],
+ 536: [[83, 806]],
+ 537: [[115, 806]],
+ 538: [[84, 806]],
+ 539: [[116, 806]],
+ 542: [[72, 780]],
+ 543: [[104, 780]],
+ 550: [[65, 775], , { 772: 480 }],
+ 551: [[97, 775], , { 772: 481 }],
+ 552: [[69, 807], , { 774: 7708 }],
+ 553: [[101, 807], , { 774: 7709 }],
+ 554: [[214, 772]],
+ 555: [[246, 772]],
+ 556: [[213, 772]],
+ 557: [[245, 772]],
+ 558: [[79, 775], , { 772: 560 }],
+ 559: [[111, 775], , { 772: 561 }],
+ 560: [[558, 772]],
+ 561: [[559, 772]],
+ 562: [[89, 772]],
+ 563: [[121, 772]],
+ 658: [, , { 780: 495 }],
+ 688: [[104], 256],
+ 689: [[614], 256],
+ 690: [[106], 256],
+ 691: [[114], 256],
+ 692: [[633], 256],
+ 693: [[635], 256],
+ 694: [[641], 256],
+ 695: [[119], 256],
+ 696: [[121], 256],
+ 728: [[32, 774], 256],
+ 729: [[32, 775], 256],
+ 730: [[32, 778], 256],
+ 731: [[32, 808], 256],
+ 732: [[32, 771], 256],
+ 733: [[32, 779], 256],
+ 736: [[611], 256],
+ 737: [[108], 256],
+ 738: [[115], 256],
+ 739: [[120], 256],
+ 740: [[661], 256]
+ },
+ 768: {
+ 768: [, 230],
+ 769: [, 230],
+ 770: [, 230],
+ 771: [, 230],
+ 772: [, 230],
+ 773: [, 230],
+ 774: [, 230],
+ 775: [, 230],
+ 776: [, 230, { 769: 836 }],
+ 777: [, 230],
+ 778: [, 230],
+ 779: [, 230],
+ 780: [, 230],
+ 781: [, 230],
+ 782: [, 230],
+ 783: [, 230],
+ 784: [, 230],
+ 785: [, 230],
+ 786: [, 230],
+ 787: [, 230],
+ 788: [, 230],
+ 789: [, 232],
+ 790: [, 220],
+ 791: [, 220],
+ 792: [, 220],
+ 793: [, 220],
+ 794: [, 232],
+ 795: [, 216],
+ 796: [, 220],
+ 797: [, 220],
+ 798: [, 220],
+ 799: [, 220],
+ 800: [, 220],
+ 801: [, 202],
+ 802: [, 202],
+ 803: [, 220],
+ 804: [, 220],
+ 805: [, 220],
+ 806: [, 220],
+ 807: [, 202],
+ 808: [, 202],
+ 809: [, 220],
+ 810: [, 220],
+ 811: [, 220],
+ 812: [, 220],
+ 813: [, 220],
+ 814: [, 220],
+ 815: [, 220],
+ 816: [, 220],
+ 817: [, 220],
+ 818: [, 220],
+ 819: [, 220],
+ 820: [, 1],
+ 821: [, 1],
+ 822: [, 1],
+ 823: [, 1],
+ 824: [, 1],
+ 825: [, 220],
+ 826: [, 220],
+ 827: [, 220],
+ 828: [, 220],
+ 829: [, 230],
+ 830: [, 230],
+ 831: [, 230],
+ 832: [[768], 230],
+ 833: [[769], 230],
+ 834: [, 230],
+ 835: [[787], 230],
+ 836: [[776, 769], 230],
+ 837: [, 240],
+ 838: [, 230],
+ 839: [, 220],
+ 840: [, 220],
+ 841: [, 220],
+ 842: [, 230],
+ 843: [, 230],
+ 844: [, 230],
+ 845: [, 220],
+ 846: [, 220],
+ 848: [, 230],
+ 849: [, 230],
+ 850: [, 230],
+ 851: [, 220],
+ 852: [, 220],
+ 853: [, 220],
+ 854: [, 220],
+ 855: [, 230],
+ 856: [, 232],
+ 857: [, 220],
+ 858: [, 220],
+ 859: [, 230],
+ 860: [, 233],
+ 861: [, 234],
+ 862: [, 234],
+ 863: [, 233],
+ 864: [, 234],
+ 865: [, 234],
+ 866: [, 233],
+ 867: [, 230],
+ 868: [, 230],
+ 869: [, 230],
+ 870: [, 230],
+ 871: [, 230],
+ 872: [, 230],
+ 873: [, 230],
+ 874: [, 230],
+ 875: [, 230],
+ 876: [, 230],
+ 877: [, 230],
+ 878: [, 230],
+ 879: [, 230],
+ 884: [[697]],
+ 890: [[32, 837], 256],
+ 894: [[59]],
+ 900: [[32, 769], 256],
+ 901: [[168, 769]],
+ 902: [[913, 769]],
+ 903: [[183]],
+ 904: [[917, 769]],
+ 905: [[919, 769]],
+ 906: [[921, 769]],
+ 908: [[927, 769]],
+ 910: [[933, 769]],
+ 911: [[937, 769]],
+ 912: [[970, 769]],
+ 913: [, , { 768: 8122, 769: 902, 772: 8121, 774: 8120, 787: 7944, 788: 7945, 837: 8124 }],
+ 917: [, , { 768: 8136, 769: 904, 787: 7960, 788: 7961 }],
+ 919: [, , { 768: 8138, 769: 905, 787: 7976, 788: 7977, 837: 8140 }],
+ 921: [, , { 768: 8154, 769: 906, 772: 8153, 774: 8152, 776: 938, 787: 7992, 788: 7993 }],
+ 927: [, , { 768: 8184, 769: 908, 787: 8008, 788: 8009 }],
+ 929: [, , { 788: 8172 }],
+ 933: [, , { 768: 8170, 769: 910, 772: 8169, 774: 8168, 776: 939, 788: 8025 }],
+ 937: [, , { 768: 8186, 769: 911, 787: 8040, 788: 8041, 837: 8188 }],
+ 938: [[921, 776]],
+ 939: [[933, 776]],
+ 940: [[945, 769], , { 837: 8116 }],
+ 941: [[949, 769]],
+ 942: [[951, 769], , { 837: 8132 }],
+ 943: [[953, 769]],
+ 944: [[971, 769]],
+ 945: [
+ , ,
+ {
+ 768: 8048,
+ 769: 940,
+ 772: 8113,
+ 774: 8112,
+ 787: 7936,
+ 788: 7937,
+ 834: 8118,
+ 837: 8115
+ }
+ ],
+ 949: [, , { 768: 8050, 769: 941, 787: 7952, 788: 7953 }],
+ 951: [, , { 768: 8052, 769: 942, 787: 7968, 788: 7969, 834: 8134, 837: 8131 }],
+ 953: [
+ , ,
+ { 768: 8054, 769: 943, 772: 8145, 774: 8144, 776: 970, 787: 7984, 788: 7985, 834: 8150 }
+ ],
+ 959: [, , { 768: 8056, 769: 972, 787: 8000, 788: 8001 }],
+ 961: [, , { 787: 8164, 788: 8165 }],
+ 965: [
+ , ,
+ { 768: 8058, 769: 973, 772: 8161, 774: 8160, 776: 971, 787: 8016, 788: 8017, 834: 8166 }
+ ],
+ 969: [, , { 768: 8060, 769: 974, 787: 8032, 788: 8033, 834: 8182, 837: 8179 }],
+ 970: [[953, 776], , { 768: 8146, 769: 912, 834: 8151 }],
+ 971: [[965, 776], , { 768: 8162, 769: 944, 834: 8167 }],
+ 972: [[959, 769]],
+ 973: [[965, 769]],
+ 974: [[969, 769], , { 837: 8180 }],
+ 976: [[946], 256],
+ 977: [[952], 256],
+ 978: [[933], 256, { 769: 979, 776: 980 }],
+ 979: [[978, 769]],
+ 980: [[978, 776]],
+ 981: [[966], 256],
+ 982: [[960], 256],
+ 1008: [[954], 256],
+ 1009: [[961], 256],
+ 1010: [[962], 256],
+ 1012: [[920], 256],
+ 1013: [[949], 256],
+ 1017: [[931], 256]
+ },
+ 1024: {
+ 1024: [[1045, 768]],
+ 1025: [[1045, 776]],
+ 1027: [[1043, 769]],
+ 1030: [, , { 776: 1031 }],
+ 1031: [[1030, 776]],
+ 1036: [[1050, 769]],
+ 1037: [[1048, 768]],
+ 1038: [[1059, 774]],
+ 1040: [, , { 774: 1232, 776: 1234 }],
+ 1043: [, , { 769: 1027 }],
+ 1045: [, , { 768: 1024, 774: 1238, 776: 1025 }],
+ 1046: [, , { 774: 1217, 776: 1244 }],
+ 1047: [, , { 776: 1246 }],
+ 1048: [, , { 768: 1037, 772: 1250, 774: 1049, 776: 1252 }],
+ 1049: [[1048, 774]],
+ 1050: [, , { 769: 1036 }],
+ 1054: [, , { 776: 1254 }],
+ 1059: [, , { 772: 1262, 774: 1038, 776: 1264, 779: 1266 }],
+ 1063: [, , { 776: 1268 }],
+ 1067: [, , { 776: 1272 }],
+ 1069: [, , { 776: 1260 }],
+ 1072: [, , { 774: 1233, 776: 1235 }],
+ 1075: [, , { 769: 1107 }],
+ 1077: [, , { 768: 1104, 774: 1239, 776: 1105 }],
+ 1078: [, , { 774: 1218, 776: 1245 }],
+ 1079: [, , { 776: 1247 }],
+ 1080: [, , { 768: 1117, 772: 1251, 774: 1081, 776: 1253 }],
+ 1081: [[1080, 774]],
+ 1082: [, , { 769: 1116 }],
+ 1086: [, , { 776: 1255 }],
+ 1091: [, , { 772: 1263, 774: 1118, 776: 1265, 779: 1267 }],
+ 1095: [, , { 776: 1269 }],
+ 1099: [, , { 776: 1273 }],
+ 1101: [, , { 776: 1261 }],
+ 1104: [[1077, 768]],
+ 1105: [[1077, 776]],
+ 1107: [[1075, 769]],
+ 1110: [, , { 776: 1111 }],
+ 1111: [[1110, 776]],
+ 1116: [[1082, 769]],
+ 1117: [[1080, 768]],
+ 1118: [[1091, 774]],
+ 1140: [, , { 783: 1142 }],
+ 1141: [, , { 783: 1143 }],
+ 1142: [[1140, 783]],
+ 1143: [[1141, 783]],
+ 1155: [, 230],
+ 1156: [, 230],
+ 1157: [, 230],
+ 1158: [, 230],
+ 1159: [, 230],
+ 1217: [[1046, 774]],
+ 1218: [[1078, 774]],
+ 1232: [[1040, 774]],
+ 1233: [[1072, 774]],
+ 1234: [[1040, 776]],
+ 1235: [[1072, 776]],
+ 1238: [[1045, 774]],
+ 1239: [[1077, 774]],
+ 1240: [, , { 776: 1242 }],
+ 1241: [, , { 776: 1243 }],
+ 1242: [[1240, 776]],
+ 1243: [[1241, 776]],
+ 1244: [[1046, 776]],
+ 1245: [[1078, 776]],
+ 1246: [[1047, 776]],
+ 1247: [[1079, 776]],
+ 1250: [[1048, 772]],
+ 1251: [[1080, 772]],
+ 1252: [[1048, 776]],
+ 1253: [[1080, 776]],
+ 1254: [[1054, 776]],
+ 1255: [[1086, 776]],
+ 1256: [, , { 776: 1258 }],
+ 1257: [, , { 776: 1259 }],
+ 1258: [[1256, 776]],
+ 1259: [[1257, 776]],
+ 1260: [[1069, 776]],
+ 1261: [[1101, 776]],
+ 1262: [[1059, 772]],
+ 1263: [[1091, 772]],
+ 1264: [[1059, 776]],
+ 1265: [[1091, 776]],
+ 1266: [[1059, 779]],
+ 1267: [[1091, 779]],
+ 1268: [[1063, 776]],
+ 1269: [[1095, 776]],
+ 1272: [[1067, 776]],
+ 1273: [[1099, 776]]
+ },
+ 1280: {
+ 1415: [[1381, 1410], 256],
+ 1425: [, 220],
+ 1426: [, 230],
+ 1427: [, 230],
+ 1428: [, 230],
+ 1429: [, 230],
+ 1430: [, 220],
+ 1431: [, 230],
+ 1432: [, 230],
+ 1433: [, 230],
+ 1434: [, 222],
+ 1435: [, 220],
+ 1436: [, 230],
+ 1437: [, 230],
+ 1438: [, 230],
+ 1439: [, 230],
+ 1440: [, 230],
+ 1441: [, 230],
+ 1442: [, 220],
+ 1443: [, 220],
+ 1444: [, 220],
+ 1445: [, 220],
+ 1446: [, 220],
+ 1447: [, 220],
+ 1448: [, 230],
+ 1449: [, 230],
+ 1450: [, 220],
+ 1451: [, 230],
+ 1452: [, 230],
+ 1453: [, 222],
+ 1454: [, 228],
+ 1455: [, 230],
+ 1456: [, 10],
+ 1457: [, 11],
+ 1458: [, 12],
+ 1459: [, 13],
+ 1460: [, 14],
+ 1461: [, 15],
+ 1462: [, 16],
+ 1463: [, 17],
+ 1464: [, 18],
+ 1465: [, 19],
+ 1466: [, 19],
+ 1467: [, 20],
+ 1468: [, 21],
+ 1469: [, 22],
+ 1471: [, 23],
+ 1473: [, 24],
+ 1474: [, 25],
+ 1476: [, 230],
+ 1477: [, 220],
+ 1479: [, 18]
+ },
+ 1536: {
+ 1552: [, 230],
+ 1553: [, 230],
+ 1554: [, 230],
+ 1555: [, 230],
+ 1556: [, 230],
+ 1557: [, 230],
+ 1558: [, 230],
+ 1559: [, 230],
+ 1560: [, 30],
+ 1561: [, 31],
+ 1562: [, 32],
+ 1570: [[1575, 1619]],
+ 1571: [[1575, 1620]],
+ 1572: [[1608, 1620]],
+ 1573: [[1575, 1621]],
+ 1574: [[1610, 1620]],
+ 1575: [, , { 1619: 1570, 1620: 1571, 1621: 1573 }],
+ 1608: [, , { 1620: 1572 }],
+ 1610: [, , { 1620: 1574 }],
+ 1611: [, 27],
+ 1612: [, 28],
+ 1613: [, 29],
+ 1614: [, 30],
+ 1615: [, 31],
+ 1616: [, 32],
+ 1617: [, 33],
+ 1618: [, 34],
+ 1619: [, 230],
+ 1620: [, 230],
+ 1621: [, 220],
+ 1622: [, 220],
+ 1623: [, 230],
+ 1624: [, 230],
+ 1625: [, 230],
+ 1626: [, 230],
+ 1627: [, 230],
+ 1628: [, 220],
+ 1629: [, 230],
+ 1630: [, 230],
+ 1631: [, 220],
+ 1648: [, 35],
+ 1653: [[1575, 1652], 256],
+ 1654: [[1608, 1652], 256],
+ 1655: [[1735, 1652], 256],
+ 1656: [[1610, 1652], 256],
+ 1728: [[1749, 1620]],
+ 1729: [, , { 1620: 1730 }],
+ 1730: [[1729, 1620]],
+ 1746: [, , { 1620: 1747 }],
+ 1747: [[1746, 1620]],
+ 1749: [, , { 1620: 1728 }],
+ 1750: [, 230],
+ 1751: [, 230],
+ 1752: [, 230],
+ 1753: [, 230],
+ 1754: [, 230],
+ 1755: [, 230],
+ 1756: [, 230],
+ 1759: [, 230],
+ 1760: [, 230],
+ 1761: [, 230],
+ 1762: [, 230],
+ 1763: [, 220],
+ 1764: [, 230],
+ 1767: [, 230],
+ 1768: [, 230],
+ 1770: [, 220],
+ 1771: [, 230],
+ 1772: [, 230],
+ 1773: [, 220]
+ },
+ 1792: {
+ 1809: [, 36],
+ 1840: [, 230],
+ 1841: [, 220],
+ 1842: [, 230],
+ 1843: [, 230],
+ 1844: [, 220],
+ 1845: [, 230],
+ 1846: [, 230],
+ 1847: [, 220],
+ 1848: [, 220],
+ 1849: [, 220],
+ 1850: [, 230],
+ 1851: [, 220],
+ 1852: [, 220],
+ 1853: [, 230],
+ 1854: [, 220],
+ 1855: [, 230],
+ 1856: [, 230],
+ 1857: [, 230],
+ 1858: [, 220],
+ 1859: [, 230],
+ 1860: [, 220],
+ 1861: [, 230],
+ 1862: [, 220],
+ 1863: [, 230],
+ 1864: [, 220],
+ 1865: [, 230],
+ 1866: [, 230],
+ 2027: [, 230],
+ 2028: [, 230],
+ 2029: [, 230],
+ 2030: [, 230],
+ 2031: [, 230],
+ 2032: [, 230],
+ 2033: [, 230],
+ 2034: [, 220],
+ 2035: [, 230]
+ },
+ 2048: {
+ 2070: [, 230],
+ 2071: [, 230],
+ 2072: [, 230],
+ 2073: [, 230],
+ 2075: [, 230],
+ 2076: [, 230],
+ 2077: [, 230],
+ 2078: [, 230],
+ 2079: [, 230],
+ 2080: [, 230],
+ 2081: [, 230],
+ 2082: [, 230],
+ 2083: [, 230],
+ 2085: [, 230],
+ 2086: [, 230],
+ 2087: [, 230],
+ 2089: [, 230],
+ 2090: [, 230],
+ 2091: [, 230],
+ 2092: [, 230],
+ 2093: [, 230],
+ 2137: [, 220],
+ 2138: [, 220],
+ 2139: [, 220],
+ 2276: [, 230],
+ 2277: [, 230],
+ 2278: [, 220],
+ 2279: [, 230],
+ 2280: [, 230],
+ 2281: [, 220],
+ 2282: [, 230],
+ 2283: [, 230],
+ 2284: [, 230],
+ 2285: [, 220],
+ 2286: [, 220],
+ 2287: [, 220],
+ 2288: [, 27],
+ 2289: [, 28],
+ 2290: [, 29],
+ 2291: [, 230],
+ 2292: [, 230],
+ 2293: [, 230],
+ 2294: [, 220],
+ 2295: [, 230],
+ 2296: [, 230],
+ 2297: [, 220],
+ 2298: [, 220],
+ 2299: [, 230],
+ 2300: [, 230],
+ 2301: [, 230],
+ 2302: [, 230]
+ },
+ 2304: {
+ 2344: [, , { 2364: 2345 }],
+ 2345: [[2344, 2364]],
+ 2352: [, , { 2364: 2353 }],
+ 2353: [[2352, 2364]],
+ 2355: [, , { 2364: 2356 }],
+ 2356: [[2355, 2364]],
+ 2364: [, 7],
+ 2381: [, 9],
+ 2385: [, 230],
+ 2386: [, 220],
+ 2387: [, 230],
+ 2388: [, 230],
+ 2392: [[2325, 2364], 512],
+ 2393: [[2326, 2364], 512],
+ 2394: [[2327, 2364], 512],
+ 2395: [[2332, 2364], 512],
+ 2396: [[2337, 2364], 512],
+ 2397: [[2338, 2364], 512],
+ 2398: [[2347, 2364], 512],
+ 2399: [[2351, 2364], 512],
+ 2492: [, 7],
+ 2503: [, , { 2494: 2507, 2519: 2508 }],
+ 2507: [[2503, 2494]],
+ 2508: [[2503, 2519]],
+ 2509: [, 9],
+ 2524: [[2465, 2492], 512],
+ 2525: [[2466, 2492], 512],
+ 2527: [[2479, 2492], 512]
+ },
+ 2560: {
+ 2611: [[2610, 2620], 512],
+ 2614: [[2616, 2620], 512],
+ 2620: [, 7],
+ 2637: [, 9],
+ 2649: [[2582, 2620], 512],
+ 2650: [[2583, 2620], 512],
+ 2651: [[2588, 2620], 512],
+ 2654: [[2603, 2620], 512],
+ 2748: [, 7],
+ 2765: [, 9],
+ 68109: [, 220],
+ 68111: [, 230],
+ 68152: [, 230],
+ 68153: [, 1],
+ 68154: [, 220],
+ 68159: [, 9]
+ },
+ 2816: {
+ 2876: [, 7],
+ 2887: [, , { 2878: 2891, 2902: 2888, 2903: 2892 }],
+ 2888: [[2887, 2902]],
+ 2891: [[2887, 2878]],
+ 2892: [[2887, 2903]],
+ 2893: [, 9],
+ 2908: [[2849, 2876], 512],
+ 2909: [[2850, 2876], 512],
+ 2962: [, , { 3031: 2964 }],
+ 2964: [[2962, 3031]],
+ 3014: [, , { 3006: 3018, 3031: 3020 }],
+ 3015: [, , { 3006: 3019 }],
+ 3018: [[3014, 3006]],
+ 3019: [[3015, 3006]],
+ 3020: [[3014, 3031]],
+ 3021: [, 9]
+ },
+ 3072: {
+ 3142: [, , { 3158: 3144 }],
+ 3144: [[3142, 3158]],
+ 3149: [, 9],
+ 3157: [, 84],
+ 3158: [, 91],
+ 3260: [, 7],
+ 3263: [, , { 3285: 3264 }],
+ 3264: [[3263, 3285]],
+ 3270: [, , { 3266: 3274, 3285: 3271, 3286: 3272 }],
+ 3271: [[3270, 3285]],
+ 3272: [[3270, 3286]],
+ 3274: [[3270, 3266], , { 3285: 3275 }],
+ 3275: [[3274, 3285]],
+ 3277: [, 9]
+ },
+ 3328: {
+ 3398: [, , { 3390: 3402, 3415: 3404 }],
+ 3399: [, , { 3390: 3403 }],
+ 3402: [[3398, 3390]],
+ 3403: [[3399, 3390]],
+ 3404: [[3398, 3415]],
+ 3405: [, 9],
+ 3530: [, 9],
+ 3545: [, , { 3530: 3546, 3535: 3548, 3551: 3550 }],
+ 3546: [[3545, 3530]],
+ 3548: [[3545, 3535], , { 3530: 3549 }],
+ 3549: [[3548, 3530]],
+ 3550: [[3545, 3551]]
+ },
+ 3584: {
+ 3635: [[3661, 3634], 256],
+ 3640: [, 103],
+ 3641: [, 103],
+ 3642: [, 9],
+ 3656: [, 107],
+ 3657: [, 107],
+ 3658: [, 107],
+ 3659: [, 107],
+ 3763: [[3789, 3762], 256],
+ 3768: [, 118],
+ 3769: [, 118],
+ 3784: [, 122],
+ 3785: [, 122],
+ 3786: [, 122],
+ 3787: [, 122],
+ 3804: [[3755, 3737], 256],
+ 3805: [[3755, 3745], 256]
+ },
+ 3840: {
+ 3852: [[3851], 256],
+ 3864: [, 220],
+ 3865: [, 220],
+ 3893: [, 220],
+ 3895: [, 220],
+ 3897: [, 216],
+ 3907: [[3906, 4023], 512],
+ 3917: [[3916, 4023], 512],
+ 3922: [[3921, 4023], 512],
+ 3927: [[3926, 4023], 512],
+ 3932: [[3931, 4023], 512],
+ 3945: [[3904, 4021], 512],
+ 3953: [, 129],
+ 3954: [, 130],
+ 3955: [[3953, 3954], 512],
+ 3956: [, 132],
+ 3957: [[3953, 3956], 512],
+ 3958: [[4018, 3968], 512],
+ 3959: [[4018, 3969], 256],
+ 3960: [[4019, 3968], 512],
+ 3961: [[4019, 3969], 256],
+ 3962: [, 130],
+ 3963: [, 130],
+ 3964: [, 130],
+ 3965: [, 130],
+ 3968: [, 130],
+ 3969: [[3953, 3968], 512],
+ 3970: [, 230],
+ 3971: [, 230],
+ 3972: [, 9],
+ 3974: [, 230],
+ 3975: [, 230],
+ 3987: [[3986, 4023], 512],
+ 3997: [[3996, 4023], 512],
+ 4002: [[4001, 4023], 512],
+ 4007: [[4006, 4023], 512],
+ 4012: [[4011, 4023], 512],
+ 4025: [[3984, 4021], 512],
+ 4038: [, 220]
+ },
+ 4096: {
+ 4133: [, , { 4142: 4134 }],
+ 4134: [[4133, 4142]],
+ 4151: [, 7],
+ 4153: [, 9],
+ 4154: [, 9],
+ 4237: [, 220],
+ 4348: [[4316], 256],
+ 69702: [, 9],
+ 69785: [, , { 69818: 69786 }],
+ 69786: [[69785, 69818]],
+ 69787: [, , { 69818: 69788 }],
+ 69788: [[69787, 69818]],
+ 69797: [, , { 69818: 69803 }],
+ 69803: [[69797, 69818]],
+ 69817: [, 9],
+ 69818: [, 7]
+ },
+ 4352: {
+ 69888: [, 230],
+ 69889: [, 230],
+ 69890: [, 230],
+ 69934: [[69937, 69927]],
+ 69935: [[69938, 69927]],
+ 69937: [, , { 69927: 69934 }],
+ 69938: [, , { 69927: 69935 }],
+ 69939: [, 9],
+ 69940: [, 9],
+ 70080: [, 9]
+ },
+ 4864: { 4957: [, 230], 4958: [, 230], 4959: [, 230] },
+ 5632: { 71350: [, 9], 71351: [, 7] },
+ 5888: { 5908: [, 9], 5940: [, 9], 6098: [, 9], 6109: [, 230] },
+ 6144: { 6313: [, 228] },
+ 6400: { 6457: [, 222], 6458: [, 230], 6459: [, 220] },
+ 6656: {
+ 6679: [, 230],
+ 6680: [, 220],
+ 6752: [, 9],
+ 6773: [, 230],
+ 6774: [, 230],
+ 6775: [, 230],
+ 6776: [, 230],
+ 6777: [, 230],
+ 6778: [, 230],
+ 6779: [, 230],
+ 6780: [, 230],
+ 6783: [, 220]
+ },
+ 6912: {
+ 6917: [, , { 6965: 6918 }],
+ 6918: [[6917, 6965]],
+ 6919: [, , { 6965: 6920 }],
+ 6920: [[6919, 6965]],
+ 6921: [, , { 6965: 6922 }],
+ 6922: [[6921, 6965]],
+ 6923: [, , { 6965: 6924 }],
+ 6924: [[6923, 6965]],
+ 6925: [, , { 6965: 6926 }],
+ 6926: [[6925, 6965]],
+ 6929: [, , { 6965: 6930 }],
+ 6930: [[6929, 6965]],
+ 6964: [, 7],
+ 6970: [, , { 6965: 6971 }],
+ 6971: [[6970, 6965]],
+ 6972: [, , { 6965: 6973 }],
+ 6973: [[6972, 6965]],
+ 6974: [, , { 6965: 6976 }],
+ 6975: [, , { 6965: 6977 }],
+ 6976: [[6974, 6965]],
+ 6977: [[6975, 6965]],
+ 6978: [, , { 6965: 6979 }],
+ 6979: [[6978, 6965]],
+ 6980: [, 9],
+ 7019: [, 230],
+ 7020: [, 220],
+ 7021: [, 230],
+ 7022: [, 230],
+ 7023: [, 230],
+ 7024: [, 230],
+ 7025: [, 230],
+ 7026: [, 230],
+ 7027: [, 230],
+ 7082: [, 9],
+ 7083: [, 9],
+ 7142: [, 7],
+ 7154: [, 9],
+ 7155: [, 9]
+ },
+ 7168: {
+ 7223: [, 7],
+ 7376: [, 230],
+ 7377: [, 230],
+ 7378: [, 230],
+ 7380: [, 1],
+ 7381: [, 220],
+ 7382: [, 220],
+ 7383: [, 220],
+ 7384: [, 220],
+ 7385: [, 220],
+ 7386: [, 230],
+ 7387: [, 230],
+ 7388: [, 220],
+ 7389: [, 220],
+ 7390: [, 220],
+ 7391: [, 220],
+ 7392: [, 230],
+ 7394: [, 1],
+ 7395: [, 1],
+ 7396: [, 1],
+ 7397: [, 1],
+ 7398: [, 1],
+ 7399: [, 1],
+ 7400: [, 1],
+ 7405: [, 220],
+ 7412: [, 230]
+ },
+ 7424: {
+ 7468: [[65], 256],
+ 7469: [[198], 256],
+ 7470: [[66], 256],
+ 7472: [[68], 256],
+ 7473: [[69], 256],
+ 7474: [[398], 256],
+ 7475: [[71], 256],
+ 7476: [[72], 256],
+ 7477: [[73], 256],
+ 7478: [[74], 256],
+ 7479: [[75], 256],
+ 7480: [[76], 256],
+ 7481: [[77], 256],
+ 7482: [[78], 256],
+ 7484: [[79], 256],
+ 7485: [[546], 256],
+ 7486: [[80], 256],
+ 7487: [[82], 256],
+ 7488: [[84], 256],
+ 7489: [[85], 256],
+ 7490: [[87], 256],
+ 7491: [[97], 256],
+ 7492: [[592], 256],
+ 7493: [[593], 256],
+ 7494: [[7426], 256],
+ 7495: [[98], 256],
+ 7496: [[100], 256],
+ 7497: [[101], 256],
+ 7498: [[601], 256],
+ 7499: [[603], 256],
+ 7500: [[604], 256],
+ 7501: [[103], 256],
+ 7503: [[107], 256],
+ 7504: [[109], 256],
+ 7505: [[331], 256],
+ 7506: [[111], 256],
+ 7507: [[596], 256],
+ 7508: [[7446], 256],
+ 7509: [[7447], 256],
+ 7510: [[112], 256],
+ 7511: [[116], 256],
+ 7512: [[117], 256],
+ 7513: [[7453], 256],
+ 7514: [[623], 256],
+ 7515: [[118], 256],
+ 7516: [[7461], 256],
+ 7517: [[946], 256],
+ 7518: [[947], 256],
+ 7519: [[948], 256],
+ 7520: [[966], 256],
+ 7521: [[967], 256],
+ 7522: [[105], 256],
+ 7523: [[114], 256],
+ 7524: [[117], 256],
+ 7525: [[118], 256],
+ 7526: [[946], 256],
+ 7527: [[947], 256],
+ 7528: [[961], 256],
+ 7529: [[966], 256],
+ 7530: [[967], 256],
+ 7544: [[1085], 256],
+ 7579: [[594], 256],
+ 7580: [[99], 256],
+ 7581: [[597], 256],
+ 7582: [[240], 256],
+ 7583: [[604], 256],
+ 7584: [[102], 256],
+ 7585: [[607], 256],
+ 7586: [[609], 256],
+ 7587: [[613], 256],
+ 7588: [[616], 256],
+ 7589: [[617], 256],
+ 7590: [[618], 256],
+ 7591: [[7547], 256],
+ 7592: [[669], 256],
+ 7593: [[621], 256],
+ 7594: [[7557], 256],
+ 7595: [[671], 256],
+ 7596: [[625], 256],
+ 7597: [[624], 256],
+ 7598: [[626], 256],
+ 7599: [[627], 256],
+ 7600: [[628], 256],
+ 7601: [[629], 256],
+ 7602: [[632], 256],
+ 7603: [[642], 256],
+ 7604: [[643], 256],
+ 7605: [[427], 256],
+ 7606: [[649], 256],
+ 7607: [[650], 256],
+ 7608: [[7452], 256],
+ 7609: [[651], 256],
+ 7610: [[652], 256],
+ 7611: [[122], 256],
+ 7612: [[656], 256],
+ 7613: [[657], 256],
+ 7614: [[658], 256],
+ 7615: [[952], 256],
+ 7616: [, 230],
+ 7617: [, 230],
+ 7618: [, 220],
+ 7619: [, 230],
+ 7620: [, 230],
+ 7621: [, 230],
+ 7622: [, 230],
+ 7623: [, 230],
+ 7624: [, 230],
+ 7625: [, 230],
+ 7626: [, 220],
+ 7627: [, 230],
+ 7628: [, 230],
+ 7629: [, 234],
+ 7630: [, 214],
+ 7631: [, 220],
+ 7632: [, 202],
+ 7633: [, 230],
+ 7634: [, 230],
+ 7635: [, 230],
+ 7636: [, 230],
+ 7637: [, 230],
+ 7638: [, 230],
+ 7639: [, 230],
+ 7640: [, 230],
+ 7641: [, 230],
+ 7642: [, 230],
+ 7643: [, 230],
+ 7644: [, 230],
+ 7645: [, 230],
+ 7646: [, 230],
+ 7647: [, 230],
+ 7648: [, 230],
+ 7649: [, 230],
+ 7650: [, 230],
+ 7651: [, 230],
+ 7652: [, 230],
+ 7653: [, 230],
+ 7654: [, 230],
+ 7676: [, 233],
+ 7677: [, 220],
+ 7678: [, 230],
+ 7679: [, 220]
+ },
+ 7680: {
+ 7680: [[65, 805]],
+ 7681: [[97, 805]],
+ 7682: [[66, 775]],
+ 7683: [[98, 775]],
+ 7684: [[66, 803]],
+ 7685: [[98, 803]],
+ 7686: [[66, 817]],
+ 7687: [[98, 817]],
+ 7688: [[199, 769]],
+ 7689: [[231, 769]],
+ 7690: [[68, 775]],
+ 7691: [[100, 775]],
+ 7692: [[68, 803]],
+ 7693: [[100, 803]],
+ 7694: [[68, 817]],
+ 7695: [[100, 817]],
+ 7696: [[68, 807]],
+ 7697: [[100, 807]],
+ 7698: [[68, 813]],
+ 7699: [[100, 813]],
+ 7700: [[274, 768]],
+ 7701: [[275, 768]],
+ 7702: [[274, 769]],
+ 7703: [[275, 769]],
+ 7704: [[69, 813]],
+ 7705: [[101, 813]],
+ 7706: [[69, 816]],
+ 7707: [[101, 816]],
+ 7708: [[552, 774]],
+ 7709: [[553, 774]],
+ 7710: [[70, 775]],
+ 7711: [[102, 775]],
+ 7712: [[71, 772]],
+ 7713: [[103, 772]],
+ 7714: [[72, 775]],
+ 7715: [[104, 775]],
+ 7716: [[72, 803]],
+ 7717: [[104, 803]],
+ 7718: [[72, 776]],
+ 7719: [[104, 776]],
+ 7720: [[72, 807]],
+ 7721: [[104, 807]],
+ 7722: [[72, 814]],
+ 7723: [[104, 814]],
+ 7724: [[73, 816]],
+ 7725: [[105, 816]],
+ 7726: [[207, 769]],
+ 7727: [[239, 769]],
+ 7728: [[75, 769]],
+ 7729: [[107, 769]],
+ 7730: [[75, 803]],
+ 7731: [[107, 803]],
+ 7732: [[75, 817]],
+ 7733: [[107, 817]],
+ 7734: [[76, 803], , { 772: 7736 }],
+ 7735: [[108, 803], , { 772: 7737 }],
+ 7736: [[7734, 772]],
+ 7737: [[7735, 772]],
+ 7738: [[76, 817]],
+ 7739: [[108, 817]],
+ 7740: [[76, 813]],
+ 7741: [[108, 813]],
+ 7742: [[77, 769]],
+ 7743: [[109, 769]],
+ 7744: [[77, 775]],
+ 7745: [[109, 775]],
+ 7746: [[77, 803]],
+ 7747: [[109, 803]],
+ 7748: [[78, 775]],
+ 7749: [[110, 775]],
+ 7750: [[78, 803]],
+ 7751: [[110, 803]],
+ 7752: [[78, 817]],
+ 7753: [[110, 817]],
+ 7754: [[78, 813]],
+ 7755: [[110, 813]],
+ 7756: [[213, 769]],
+ 7757: [[245, 769]],
+ 7758: [[213, 776]],
+ 7759: [[245, 776]],
+ 7760: [[332, 768]],
+ 7761: [[333, 768]],
+ 7762: [[332, 769]],
+ 7763: [[333, 769]],
+ 7764: [[80, 769]],
+ 7765: [[112, 769]],
+ 7766: [[80, 775]],
+ 7767: [[112, 775]],
+ 7768: [[82, 775]],
+ 7769: [[114, 775]],
+ 7770: [[82, 803], , { 772: 7772 }],
+ 7771: [[114, 803], , { 772: 7773 }],
+ 7772: [[7770, 772]],
+ 7773: [[7771, 772]],
+ 7774: [[82, 817]],
+ 7775: [[114, 817]],
+ 7776: [[83, 775]],
+ 7777: [[115, 775]],
+ 7778: [[83, 803], , { 775: 7784 }],
+ 7779: [[115, 803], , { 775: 7785 }],
+ 7780: [[346, 775]],
+ 7781: [[347, 775]],
+ 7782: [[352, 775]],
+ 7783: [[353, 775]],
+ 7784: [[7778, 775]],
+ 7785: [[7779, 775]],
+ 7786: [[84, 775]],
+ 7787: [[116, 775]],
+ 7788: [[84, 803]],
+ 7789: [[116, 803]],
+ 7790: [[84, 817]],
+ 7791: [[116, 817]],
+ 7792: [[84, 813]],
+ 7793: [[116, 813]],
+ 7794: [[85, 804]],
+ 7795: [[117, 804]],
+ 7796: [[85, 816]],
+ 7797: [[117, 816]],
+ 7798: [[85, 813]],
+ 7799: [[117, 813]],
+ 7800: [[360, 769]],
+ 7801: [[361, 769]],
+ 7802: [[362, 776]],
+ 7803: [[363, 776]],
+ 7804: [[86, 771]],
+ 7805: [[118, 771]],
+ 7806: [[86, 803]],
+ 7807: [[118, 803]],
+ 7808: [[87, 768]],
+ 7809: [[119, 768]],
+ 7810: [[87, 769]],
+ 7811: [[119, 769]],
+ 7812: [[87, 776]],
+ 7813: [[119, 776]],
+ 7814: [[87, 775]],
+ 7815: [[119, 775]],
+ 7816: [[87, 803]],
+ 7817: [[119, 803]],
+ 7818: [[88, 775]],
+ 7819: [[120, 775]],
+ 7820: [[88, 776]],
+ 7821: [[120, 776]],
+ 7822: [[89, 775]],
+ 7823: [[121, 775]],
+ 7824: [[90, 770]],
+ 7825: [[122, 770]],
+ 7826: [[90, 803]],
+ 7827: [[122, 803]],
+ 7828: [[90, 817]],
+ 7829: [[122, 817]],
+ 7830: [[104, 817]],
+ 7831: [[116, 776]],
+ 7832: [[119, 778]],
+ 7833: [[121, 778]],
+ 7834: [[97, 702], 256],
+ 7835: [[383, 775]],
+ 7840: [[65, 803], , { 770: 7852, 774: 7862 }],
+ 7841: [[97, 803], , { 770: 7853, 774: 7863 }],
+ 7842: [[65, 777]],
+ 7843: [[97, 777]],
+ 7844: [[194, 769]],
+ 7845: [[226, 769]],
+ 7846: [[194, 768]],
+ 7847: [[226, 768]],
+ 7848: [[194, 777]],
+ 7849: [[226, 777]],
+ 7850: [[194, 771]],
+ 7851: [[226, 771]],
+ 7852: [[7840, 770]],
+ 7853: [[7841, 770]],
+ 7854: [[258, 769]],
+ 7855: [[259, 769]],
+ 7856: [[258, 768]],
+ 7857: [[259, 768]],
+ 7858: [[258, 777]],
+ 7859: [[259, 777]],
+ 7860: [[258, 771]],
+ 7861: [[259, 771]],
+ 7862: [[7840, 774]],
+ 7863: [[7841, 774]],
+ 7864: [[69, 803], , { 770: 7878 }],
+ 7865: [[101, 803], , { 770: 7879 }],
+ 7866: [[69, 777]],
+ 7867: [[101, 777]],
+ 7868: [[69, 771]],
+ 7869: [[101, 771]],
+ 7870: [[202, 769]],
+ 7871: [[234, 769]],
+ 7872: [[202, 768]],
+ 7873: [[234, 768]],
+ 7874: [[202, 777]],
+ 7875: [[234, 777]],
+ 7876: [[202, 771]],
+ 7877: [[234, 771]],
+ 7878: [[7864, 770]],
+ 7879: [[7865, 770]],
+ 7880: [[73, 777]],
+ 7881: [[105, 777]],
+ 7882: [[73, 803]],
+ 7883: [[105, 803]],
+ 7884: [[79, 803], , { 770: 7896 }],
+ 7885: [[111, 803], , { 770: 7897 }],
+ 7886: [[79, 777]],
+ 7887: [[111, 777]],
+ 7888: [[212, 769]],
+ 7889: [[244, 769]],
+ 7890: [[212, 768]],
+ 7891: [[244, 768]],
+ 7892: [[212, 777]],
+ 7893: [[244, 777]],
+ 7894: [[212, 771]],
+ 7895: [[244, 771]],
+ 7896: [[7884, 770]],
+ 7897: [[7885, 770]],
+ 7898: [[416, 769]],
+ 7899: [[417, 769]],
+ 7900: [[416, 768]],
+ 7901: [[417, 768]],
+ 7902: [[416, 777]],
+ 7903: [[417, 777]],
+ 7904: [[416, 771]],
+ 7905: [[417, 771]],
+ 7906: [[416, 803]],
+ 7907: [[417, 803]],
+ 7908: [[85, 803]],
+ 7909: [[117, 803]],
+ 7910: [[85, 777]],
+ 7911: [[117, 777]],
+ 7912: [[431, 769]],
+ 7913: [[432, 769]],
+ 7914: [[431, 768]],
+ 7915: [[432, 768]],
+ 7916: [[431, 777]],
+ 7917: [[432, 777]],
+ 7918: [[431, 771]],
+ 7919: [[432, 771]],
+ 7920: [[431, 803]],
+ 7921: [[432, 803]],
+ 7922: [[89, 768]],
+ 7923: [[121, 768]],
+ 7924: [[89, 803]],
+ 7925: [[121, 803]],
+ 7926: [[89, 777]],
+ 7927: [[121, 777]],
+ 7928: [[89, 771]],
+ 7929: [[121, 771]]
+ },
+ 7936: {
+ 7936: [[945, 787], , { 768: 7938, 769: 7940, 834: 7942, 837: 8064 }],
+ 7937: [[945, 788], , { 768: 7939, 769: 7941, 834: 7943, 837: 8065 }],
+ 7938: [[7936, 768], , { 837: 8066 }],
+ 7939: [[7937, 768], , { 837: 8067 }],
+ 7940: [[7936, 769], , { 837: 8068 }],
+ 7941: [[7937, 769], , { 837: 8069 }],
+ 7942: [[7936, 834], , { 837: 8070 }],
+ 7943: [[7937, 834], , { 837: 8071 }],
+ 7944: [[913, 787], , { 768: 7946, 769: 7948, 834: 7950, 837: 8072 }],
+ 7945: [[913, 788], , { 768: 7947, 769: 7949, 834: 7951, 837: 8073 }],
+ 7946: [[7944, 768], , { 837: 8074 }],
+ 7947: [[7945, 768], , { 837: 8075 }],
+ 7948: [[7944, 769], , { 837: 8076 }],
+ 7949: [[7945, 769], , { 837: 8077 }],
+ 7950: [[7944, 834], , { 837: 8078 }],
+ 7951: [[7945, 834], , { 837: 8079 }],
+ 7952: [[949, 787], , { 768: 7954, 769: 7956 }],
+ 7953: [[949, 788], , { 768: 7955, 769: 7957 }],
+ 7954: [[7952, 768]],
+ 7955: [[7953, 768]],
+ 7956: [[7952, 769]],
+ 7957: [[7953, 769]],
+ 7960: [[917, 787], , { 768: 7962, 769: 7964 }],
+ 7961: [[917, 788], , { 768: 7963, 769: 7965 }],
+ 7962: [[7960, 768]],
+ 7963: [[7961, 768]],
+ 7964: [[7960, 769]],
+ 7965: [[7961, 769]],
+ 7968: [[951, 787], , { 768: 7970, 769: 7972, 834: 7974, 837: 8080 }],
+ 7969: [[951, 788], , { 768: 7971, 769: 7973, 834: 7975, 837: 8081 }],
+ 7970: [[7968, 768], , { 837: 8082 }],
+ 7971: [[7969, 768], , { 837: 8083 }],
+ 7972: [[7968, 769], , { 837: 8084 }],
+ 7973: [[7969, 769], , { 837: 8085 }],
+ 7974: [[7968, 834], , { 837: 8086 }],
+ 7975: [[7969, 834], , { 837: 8087 }],
+ 7976: [[919, 787], , { 768: 7978, 769: 7980, 834: 7982, 837: 8088 }],
+ 7977: [[919, 788], , { 768: 7979, 769: 7981, 834: 7983, 837: 8089 }],
+ 7978: [[7976, 768], , { 837: 8090 }],
+ 7979: [[7977, 768], , { 837: 8091 }],
+ 7980: [[7976, 769], , { 837: 8092 }],
+ 7981: [[7977, 769], , { 837: 8093 }],
+ 7982: [[7976, 834], , { 837: 8094 }],
+ 7983: [[7977, 834], , { 837: 8095 }],
+ 7984: [[953, 787], , { 768: 7986, 769: 7988, 834: 7990 }],
+ 7985: [[953, 788], , { 768: 7987, 769: 7989, 834: 7991 }],
+ 7986: [[7984, 768]],
+ 7987: [[7985, 768]],
+ 7988: [[7984, 769]],
+ 7989: [[7985, 769]],
+ 7990: [[7984, 834]],
+ 7991: [[7985, 834]],
+ 7992: [[921, 787], , { 768: 7994, 769: 7996, 834: 7998 }],
+ 7993: [[921, 788], , { 768: 7995, 769: 7997, 834: 7999 }],
+ 7994: [[7992, 768]],
+ 7995: [[7993, 768]],
+ 7996: [[7992, 769]],
+ 7997: [[7993, 769]],
+ 7998: [[7992, 834]],
+ 7999: [[7993, 834]],
+ 8000: [[959, 787], , { 768: 8002, 769: 8004 }],
+ 8001: [[959, 788], , { 768: 8003, 769: 8005 }],
+ 8002: [[8000, 768]],
+ 8003: [[8001, 768]],
+ 8004: [[8000, 769]],
+ 8005: [[8001, 769]],
+ 8008: [[927, 787], , { 768: 8010, 769: 8012 }],
+ 8009: [[927, 788], , { 768: 8011, 769: 8013 }],
+ 8010: [[8008, 768]],
+ 8011: [[8009, 768]],
+ 8012: [[8008, 769]],
+ 8013: [[8009, 769]],
+ 8016: [[965, 787], , { 768: 8018, 769: 8020, 834: 8022 }],
+ 8017: [[965, 788], , { 768: 8019, 769: 8021, 834: 8023 }],
+ 8018: [[8016, 768]],
+ 8019: [[8017, 768]],
+ 8020: [[8016, 769]],
+ 8021: [[8017, 769]],
+ 8022: [[8016, 834]],
+ 8023: [[8017, 834]],
+ 8025: [[933, 788], , { 768: 8027, 769: 8029, 834: 8031 }],
+ 8027: [[8025, 768]],
+ 8029: [[8025, 769]],
+ 8031: [[8025, 834]],
+ 8032: [[969, 787], , { 768: 8034, 769: 8036, 834: 8038, 837: 8096 }],
+ 8033: [[969, 788], , { 768: 8035, 769: 8037, 834: 8039, 837: 8097 }],
+ 8034: [[8032, 768], , { 837: 8098 }],
+ 8035: [[8033, 768], , { 837: 8099 }],
+ 8036: [[8032, 769], , { 837: 8100 }],
+ 8037: [[8033, 769], , { 837: 8101 }],
+ 8038: [[8032, 834], , { 837: 8102 }],
+ 8039: [[8033, 834], , { 837: 8103 }],
+ 8040: [[937, 787], , { 768: 8042, 769: 8044, 834: 8046, 837: 8104 }],
+ 8041: [[937, 788], , { 768: 8043, 769: 8045, 834: 8047, 837: 8105 }],
+ 8042: [[8040, 768], , { 837: 8106 }],
+ 8043: [[8041, 768], , { 837: 8107 }],
+ 8044: [[8040, 769], , { 837: 8108 }],
+ 8045: [[8041, 769], , { 837: 8109 }],
+ 8046: [[8040, 834], , { 837: 8110 }],
+ 8047: [[8041, 834], , { 837: 8111 }],
+ 8048: [[945, 768], , { 837: 8114 }],
+ 8049: [[940]],
+ 8050: [[949, 768]],
+ 8051: [[941]],
+ 8052: [[951, 768], , { 837: 8130 }],
+ 8053: [[942]],
+ 8054: [[953, 768]],
+ 8055: [[943]],
+ 8056: [[959, 768]],
+ 8057: [[972]],
+ 8058: [[965, 768]],
+ 8059: [[973]],
+ 8060: [[969, 768], , { 837: 8178 }],
+ 8061: [[974]],
+ 8064: [[7936, 837]],
+ 8065: [[7937, 837]],
+ 8066: [[7938, 837]],
+ 8067: [[7939, 837]],
+ 8068: [[7940, 837]],
+ 8069: [[7941, 837]],
+ 8070: [[7942, 837]],
+ 8071: [[7943, 837]],
+ 8072: [[7944, 837]],
+ 8073: [[7945, 837]],
+ 8074: [[7946, 837]],
+ 8075: [[7947, 837]],
+ 8076: [[7948, 837]],
+ 8077: [[7949, 837]],
+ 8078: [[7950, 837]],
+ 8079: [[7951, 837]],
+ 8080: [[7968, 837]],
+ 8081: [[7969, 837]],
+ 8082: [[7970, 837]],
+ 8083: [[7971, 837]],
+ 8084: [[7972, 837]],
+ 8085: [[7973, 837]],
+ 8086: [[7974, 837]],
+ 8087: [[7975, 837]],
+ 8088: [[7976, 837]],
+ 8089: [[7977, 837]],
+ 8090: [[7978, 837]],
+ 8091: [[7979, 837]],
+ 8092: [[7980, 837]],
+ 8093: [[7981, 837]],
+ 8094: [[7982, 837]],
+ 8095: [[7983, 837]],
+ 8096: [[8032, 837]],
+ 8097: [[8033, 837]],
+ 8098: [[8034, 837]],
+ 8099: [[8035, 837]],
+ 8100: [[8036, 837]],
+ 8101: [[8037, 837]],
+ 8102: [[8038, 837]],
+ 8103: [[8039, 837]],
+ 8104: [[8040, 837]],
+ 8105: [[8041, 837]],
+ 8106: [[8042, 837]],
+ 8107: [[8043, 837]],
+ 8108: [[8044, 837]],
+ 8109: [[8045, 837]],
+ 8110: [[8046, 837]],
+ 8111: [[8047, 837]],
+ 8112: [[945, 774]],
+ 8113: [[945, 772]],
+ 8114: [[8048, 837]],
+ 8115: [[945, 837]],
+ 8116: [[940, 837]],
+ 8118: [[945, 834], , { 837: 8119 }],
+ 8119: [[8118, 837]],
+ 8120: [[913, 774]],
+ 8121: [[913, 772]],
+ 8122: [[913, 768]],
+ 8123: [[902]],
+ 8124: [[913, 837]],
+ 8125: [[32, 787], 256],
+ 8126: [[953]],
+ 8127: [[32, 787], 256, { 768: 8141, 769: 8142, 834: 8143 }],
+ 8128: [[32, 834], 256],
+ 8129: [[168, 834]],
+ 8130: [[8052, 837]],
+ 8131: [[951, 837]],
+ 8132: [[942, 837]],
+ 8134: [[951, 834], , { 837: 8135 }],
+ 8135: [[8134, 837]],
+ 8136: [[917, 768]],
+ 8137: [[904]],
+ 8138: [[919, 768]],
+ 8139: [[905]],
+ 8140: [[919, 837]],
+ 8141: [[8127, 768]],
+ 8142: [[8127, 769]],
+ 8143: [[8127, 834]],
+ 8144: [[953, 774]],
+ 8145: [[953, 772]],
+ 8146: [[970, 768]],
+ 8147: [[912]],
+ 8150: [[953, 834]],
+ 8151: [[970, 834]],
+ 8152: [[921, 774]],
+ 8153: [[921, 772]],
+ 8154: [[921, 768]],
+ 8155: [[906]],
+ 8157: [[8190, 768]],
+ 8158: [[8190, 769]],
+ 8159: [[8190, 834]],
+ 8160: [[965, 774]],
+ 8161: [[965, 772]],
+ 8162: [[971, 768]],
+ 8163: [[944]],
+ 8164: [[961, 787]],
+ 8165: [[961, 788]],
+ 8166: [[965, 834]],
+ 8167: [[971, 834]],
+ 8168: [[933, 774]],
+ 8169: [[933, 772]],
+ 8170: [[933, 768]],
+ 8171: [[910]],
+ 8172: [[929, 788]],
+ 8173: [[168, 768]],
+ 8174: [[901]],
+ 8175: [[96]],
+ 8178: [[8060, 837]],
+ 8179: [[969, 837]],
+ 8180: [[974, 837]],
+ 8182: [[969, 834], , { 837: 8183 }],
+ 8183: [[8182, 837]],
+ 8184: [[927, 768]],
+ 8185: [[908]],
+ 8186: [[937, 768]],
+ 8187: [[911]],
+ 8188: [[937, 837]],
+ 8189: [[180]],
+ 8190: [[32, 788], 256, { 768: 8157, 769: 8158, 834: 8159 }]
+ },
+ 8192: {
+ 8192: [[8194]],
+ 8193: [[8195]],
+ 8194: [[32], 256],
+ 8195: [[32], 256],
+ 8196: [[32], 256],
+ 8197: [[32], 256],
+ 8198: [[32], 256],
+ 8199: [[32], 256],
+ 8200: [[32], 256],
+ 8201: [[32], 256],
+ 8202: [[32], 256],
+ 8209: [[8208], 256],
+ 8215: [[32, 819], 256],
+ 8228: [[46], 256],
+ 8229: [[46, 46], 256],
+ 8230: [[46, 46, 46], 256],
+ 8239: [[32], 256],
+ 8243: [[8242, 8242], 256],
+ 8244: [[8242, 8242, 8242], 256],
+ 8246: [[8245, 8245], 256],
+ 8247: [[8245, 8245, 8245], 256],
+ 8252: [[33, 33], 256],
+ 8254: [[32, 773], 256],
+ 8263: [[63, 63], 256],
+ 8264: [[63, 33], 256],
+ 8265: [[33, 63], 256],
+ 8279: [[8242, 8242, 8242, 8242], 256],
+ 8287: [[32], 256],
+ 8304: [[48], 256],
+ 8305: [[105], 256],
+ 8308: [[52], 256],
+ 8309: [[53], 256],
+ 8310: [[54], 256],
+ 8311: [[55], 256],
+ 8312: [[56], 256],
+ 8313: [[57], 256],
+ 8314: [[43], 256],
+ 8315: [[8722], 256],
+ 8316: [[61], 256],
+ 8317: [[40], 256],
+ 8318: [[41], 256],
+ 8319: [[110], 256],
+ 8320: [[48], 256],
+ 8321: [[49], 256],
+ 8322: [[50], 256],
+ 8323: [[51], 256],
+ 8324: [[52], 256],
+ 8325: [[53], 256],
+ 8326: [[54], 256],
+ 8327: [[55], 256],
+ 8328: [[56], 256],
+ 8329: [[57], 256],
+ 8330: [[43], 256],
+ 8331: [[8722], 256],
+ 8332: [[61], 256],
+ 8333: [[40], 256],
+ 8334: [[41], 256],
+ 8336: [[97], 256],
+ 8337: [[101], 256],
+ 8338: [[111], 256],
+ 8339: [[120], 256],
+ 8340: [[601], 256],
+ 8341: [[104], 256],
+ 8342: [[107], 256],
+ 8343: [[108], 256],
+ 8344: [[109], 256],
+ 8345: [[110], 256],
+ 8346: [[112], 256],
+ 8347: [[115], 256],
+ 8348: [[116], 256],
+ 8360: [[82, 115], 256],
+ 8400: [, 230],
+ 8401: [, 230],
+ 8402: [, 1],
+ 8403: [, 1],
+ 8404: [, 230],
+ 8405: [, 230],
+ 8406: [, 230],
+ 8407: [, 230],
+ 8408: [, 1],
+ 8409: [, 1],
+ 8410: [, 1],
+ 8411: [, 230],
+ 8412: [, 230],
+ 8417: [, 230],
+ 8421: [, 1],
+ 8422: [, 1],
+ 8423: [, 230],
+ 8424: [, 220],
+ 8425: [, 230],
+ 8426: [, 1],
+ 8427: [, 1],
+ 8428: [, 220],
+ 8429: [, 220],
+ 8430: [, 220],
+ 8431: [, 220],
+ 8432: [, 230]
+ },
+ 8448: {
+ 8448: [[97, 47, 99], 256],
+ 8449: [[97, 47, 115], 256],
+ 8450: [[67], 256],
+ 8451: [[176, 67], 256],
+ 8453: [[99, 47, 111], 256],
+ 8454: [[99, 47, 117], 256],
+ 8455: [[400], 256],
+ 8457: [[176, 70], 256],
+ 8458: [[103], 256],
+ 8459: [[72], 256],
+ 8460: [[72], 256],
+ 8461: [[72], 256],
+ 8462: [[104], 256],
+ 8463: [[295], 256],
+ 8464: [[73], 256],
+ 8465: [[73], 256],
+ 8466: [[76], 256],
+ 8467: [[108], 256],
+ 8469: [[78], 256],
+ 8470: [[78, 111], 256],
+ 8473: [[80], 256],
+ 8474: [[81], 256],
+ 8475: [[82], 256],
+ 8476: [[82], 256],
+ 8477: [[82], 256],
+ 8480: [[83, 77], 256],
+ 8481: [[84, 69, 76], 256],
+ 8482: [[84, 77], 256],
+ 8484: [[90], 256],
+ 8486: [[937]],
+ 8488: [[90], 256],
+ 8490: [[75]],
+ 8491: [[197]],
+ 8492: [[66], 256],
+ 8493: [[67], 256],
+ 8495: [[101], 256],
+ 8496: [[69], 256],
+ 8497: [[70], 256],
+ 8499: [[77], 256],
+ 8500: [[111], 256],
+ 8501: [[1488], 256],
+ 8502: [[1489], 256],
+ 8503: [[1490], 256],
+ 8504: [[1491], 256],
+ 8505: [[105], 256],
+ 8507: [[70, 65, 88], 256],
+ 8508: [[960], 256],
+ 8509: [[947], 256],
+ 8510: [[915], 256],
+ 8511: [[928], 256],
+ 8512: [[8721], 256],
+ 8517: [[68], 256],
+ 8518: [[100], 256],
+ 8519: [[101], 256],
+ 8520: [[105], 256],
+ 8521: [[106], 256],
+ 8528: [[49, 8260, 55], 256],
+ 8529: [[49, 8260, 57], 256],
+ 8530: [[49, 8260, 49, 48], 256],
+ 8531: [[49, 8260, 51], 256],
+ 8532: [[50, 8260, 51], 256],
+ 8533: [[49, 8260, 53], 256],
+ 8534: [[50, 8260, 53], 256],
+ 8535: [[51, 8260, 53], 256],
+ 8536: [[52, 8260, 53], 256],
+ 8537: [[49, 8260, 54], 256],
+ 8538: [[53, 8260, 54], 256],
+ 8539: [[49, 8260, 56], 256],
+ 8540: [[51, 8260, 56], 256],
+ 8541: [[53, 8260, 56], 256],
+ 8542: [[55, 8260, 56], 256],
+ 8543: [[49, 8260], 256],
+ 8544: [[73], 256],
+ 8545: [[73, 73], 256],
+ 8546: [[73, 73, 73], 256],
+ 8547: [[73, 86], 256],
+ 8548: [[86], 256],
+ 8549: [[86, 73], 256],
+ 8550: [[86, 73, 73], 256],
+ 8551: [[86, 73, 73, 73], 256],
+ 8552: [[73, 88], 256],
+ 8553: [[88], 256],
+ 8554: [[88, 73], 256],
+ 8555: [[88, 73, 73], 256],
+ 8556: [[76], 256],
+ 8557: [[67], 256],
+ 8558: [[68], 256],
+ 8559: [[77], 256],
+ 8560: [[105], 256],
+ 8561: [[105, 105], 256],
+ 8562: [[105, 105, 105], 256],
+ 8563: [[105, 118], 256],
+ 8564: [[118], 256],
+ 8565: [[118, 105], 256],
+ 8566: [[118, 105, 105], 256],
+ 8567: [[118, 105, 105, 105], 256],
+ 8568: [[105, 120], 256],
+ 8569: [[120], 256],
+ 8570: [[120, 105], 256],
+ 8571: [[120, 105, 105], 256],
+ 8572: [[108], 256],
+ 8573: [[99], 256],
+ 8574: [[100], 256],
+ 8575: [[109], 256],
+ 8585: [[48, 8260, 51], 256],
+ 8592: [, , { 824: 8602 }],
+ 8594: [, , { 824: 8603 }],
+ 8596: [, , { 824: 8622 }],
+ 8602: [[8592, 824]],
+ 8603: [[8594, 824]],
+ 8622: [[8596, 824]],
+ 8653: [[8656, 824]],
+ 8654: [[8660, 824]],
+ 8655: [[8658, 824]],
+ 8656: [, , { 824: 8653 }],
+ 8658: [, , { 824: 8655 }],
+ 8660: [, , { 824: 8654 }]
+ },
+ 8704: {
+ 8707: [, , { 824: 8708 }],
+ 8708: [[8707, 824]],
+ 8712: [, , { 824: 8713 }],
+ 8713: [[8712, 824]],
+ 8715: [, , { 824: 8716 }],
+ 8716: [[8715, 824]],
+ 8739: [, , { 824: 8740 }],
+ 8740: [[8739, 824]],
+ 8741: [, , { 824: 8742 }],
+ 8742: [[8741, 824]],
+ 8748: [[8747, 8747], 256],
+ 8749: [[8747, 8747, 8747], 256],
+ 8751: [[8750, 8750], 256],
+ 8752: [[8750, 8750, 8750], 256],
+ 8764: [, , { 824: 8769 }],
+ 8769: [[8764, 824]],
+ 8771: [, , { 824: 8772 }],
+ 8772: [[8771, 824]],
+ 8773: [, , { 824: 8775 }],
+ 8775: [[8773, 824]],
+ 8776: [, , { 824: 8777 }],
+ 8777: [[8776, 824]],
+ 8781: [, , { 824: 8813 }],
+ 8800: [[61, 824]],
+ 8801: [, , { 824: 8802 }],
+ 8802: [[8801, 824]],
+ 8804: [, , { 824: 8816 }],
+ 8805: [, , { 824: 8817 }],
+ 8813: [[8781, 824]],
+ 8814: [[60, 824]],
+ 8815: [[62, 824]],
+ 8816: [[8804, 824]],
+ 8817: [[8805, 824]],
+ 8818: [, , { 824: 8820 }],
+ 8819: [, , { 824: 8821 }],
+ 8820: [[8818, 824]],
+ 8821: [[8819, 824]],
+ 8822: [, , { 824: 8824 }],
+ 8823: [, , { 824: 8825 }],
+ 8824: [[8822, 824]],
+ 8825: [[8823, 824]],
+ 8826: [, , { 824: 8832 }],
+ 8827: [, , { 824: 8833 }],
+ 8828: [, , { 824: 8928 }],
+ 8829: [, , { 824: 8929 }],
+ 8832: [[8826, 824]],
+ 8833: [[8827, 824]],
+ 8834: [, , { 824: 8836 }],
+ 8835: [, , { 824: 8837 }],
+ 8836: [[8834, 824]],
+ 8837: [[8835, 824]],
+ 8838: [, , { 824: 8840 }],
+ 8839: [, , { 824: 8841 }],
+ 8840: [[8838, 824]],
+ 8841: [[8839, 824]],
+ 8849: [, , { 824: 8930 }],
+ 8850: [, , { 824: 8931 }],
+ 8866: [, , { 824: 8876 }],
+ 8872: [, , { 824: 8877 }],
+ 8873: [, , { 824: 8878 }],
+ 8875: [, , { 824: 8879 }],
+ 8876: [[8866, 824]],
+ 8877: [[8872, 824]],
+ 8878: [[8873, 824]],
+ 8879: [[8875, 824]],
+ 8882: [, , { 824: 8938 }],
+ 8883: [, , { 824: 8939 }],
+ 8884: [, , { 824: 8940 }],
+ 8885: [, , { 824: 8941 }],
+ 8928: [[8828, 824]],
+ 8929: [[8829, 824]],
+ 8930: [[8849, 824]],
+ 8931: [[8850, 824]],
+ 8938: [[8882, 824]],
+ 8939: [[8883, 824]],
+ 8940: [[8884, 824]],
+ 8941: [[8885, 824]]
+ },
+ 8960: { 9001: [[12296]], 9002: [[12297]] },
+ 9216: {
+ 9312: [[49], 256],
+ 9313: [[50], 256],
+ 9314: [[51], 256],
+ 9315: [[52], 256],
+ 9316: [[53], 256],
+ 9317: [[54], 256],
+ 9318: [[55], 256],
+ 9319: [[56], 256],
+ 9320: [[57], 256],
+ 9321: [[49, 48], 256],
+ 9322: [[49, 49], 256],
+ 9323: [[49, 50], 256],
+ 9324: [[49, 51], 256],
+ 9325: [[49, 52], 256],
+ 9326: [[49, 53], 256],
+ 9327: [[49, 54], 256],
+ 9328: [[49, 55], 256],
+ 9329: [[49, 56], 256],
+ 9330: [[49, 57], 256],
+ 9331: [[50, 48], 256],
+ 9332: [[40, 49, 41], 256],
+ 9333: [[40, 50, 41], 256],
+ 9334: [[40, 51, 41], 256],
+ 9335: [[40, 52, 41], 256],
+ 9336: [[40, 53, 41], 256],
+ 9337: [[40, 54, 41], 256],
+ 9338: [[40, 55, 41], 256],
+ 9339: [[40, 56, 41], 256],
+ 9340: [[40, 57, 41], 256],
+ 9341: [[40, 49, 48, 41], 256],
+ 9342: [[40, 49, 49, 41], 256],
+ 9343: [[40, 49, 50, 41], 256],
+ 9344: [[40, 49, 51, 41], 256],
+ 9345: [[40, 49, 52, 41], 256],
+ 9346: [[40, 49, 53, 41], 256],
+ 9347: [[40, 49, 54, 41], 256],
+ 9348: [[40, 49, 55, 41], 256],
+ 9349: [[40, 49, 56, 41], 256],
+ 9350: [[40, 49, 57, 41], 256],
+ 9351: [[40, 50, 48, 41], 256],
+ 9352: [[49, 46], 256],
+ 9353: [[50, 46], 256],
+ 9354: [[51, 46], 256],
+ 9355: [[52, 46], 256],
+ 9356: [[53, 46], 256],
+ 9357: [[54, 46], 256],
+ 9358: [[55, 46], 256],
+ 9359: [[56, 46], 256],
+ 9360: [[57, 46], 256],
+ 9361: [[49, 48, 46], 256],
+ 9362: [[49, 49, 46], 256],
+ 9363: [[49, 50, 46], 256],
+ 9364: [[49, 51, 46], 256],
+ 9365: [[49, 52, 46], 256],
+ 9366: [[49, 53, 46], 256],
+ 9367: [[49, 54, 46], 256],
+ 9368: [[49, 55, 46], 256],
+ 9369: [[49, 56, 46], 256],
+ 9370: [[49, 57, 46], 256],
+ 9371: [[50, 48, 46], 256],
+ 9372: [[40, 97, 41], 256],
+ 9373: [[40, 98, 41], 256],
+ 9374: [[40, 99, 41], 256],
+ 9375: [[40, 100, 41], 256],
+ 9376: [[40, 101, 41], 256],
+ 9377: [[40, 102, 41], 256],
+ 9378: [[40, 103, 41], 256],
+ 9379: [[40, 104, 41], 256],
+ 9380: [[40, 105, 41], 256],
+ 9381: [[40, 106, 41], 256],
+ 9382: [[40, 107, 41], 256],
+ 9383: [[40, 108, 41], 256],
+ 9384: [[40, 109, 41], 256],
+ 9385: [[40, 110, 41], 256],
+ 9386: [[40, 111, 41], 256],
+ 9387: [[40, 112, 41], 256],
+ 9388: [[40, 113, 41], 256],
+ 9389: [[40, 114, 41], 256],
+ 9390: [[40, 115, 41], 256],
+ 9391: [[40, 116, 41], 256],
+ 9392: [[40, 117, 41], 256],
+ 9393: [[40, 118, 41], 256],
+ 9394: [[40, 119, 41], 256],
+ 9395: [[40, 120, 41], 256],
+ 9396: [[40, 121, 41], 256],
+ 9397: [[40, 122, 41], 256],
+ 9398: [[65], 256],
+ 9399: [[66], 256],
+ 9400: [[67], 256],
+ 9401: [[68], 256],
+ 9402: [[69], 256],
+ 9403: [[70], 256],
+ 9404: [[71], 256],
+ 9405: [[72], 256],
+ 9406: [[73], 256],
+ 9407: [[74], 256],
+ 9408: [[75], 256],
+ 9409: [[76], 256],
+ 9410: [[77], 256],
+ 9411: [[78], 256],
+ 9412: [[79], 256],
+ 9413: [[80], 256],
+ 9414: [[81], 256],
+ 9415: [[82], 256],
+ 9416: [[83], 256],
+ 9417: [[84], 256],
+ 9418: [[85], 256],
+ 9419: [[86], 256],
+ 9420: [[87], 256],
+ 9421: [[88], 256],
+ 9422: [[89], 256],
+ 9423: [[90], 256],
+ 9424: [[97], 256],
+ 9425: [[98], 256],
+ 9426: [[99], 256],
+ 9427: [[100], 256],
+ 9428: [[101], 256],
+ 9429: [[102], 256],
+ 9430: [[103], 256],
+ 9431: [[104], 256],
+ 9432: [[105], 256],
+ 9433: [[106], 256],
+ 9434: [[107], 256],
+ 9435: [[108], 256],
+ 9436: [[109], 256],
+ 9437: [[110], 256],
+ 9438: [[111], 256],
+ 9439: [[112], 256],
+ 9440: [[113], 256],
+ 9441: [[114], 256],
+ 9442: [[115], 256],
+ 9443: [[116], 256],
+ 9444: [[117], 256],
+ 9445: [[118], 256],
+ 9446: [[119], 256],
+ 9447: [[120], 256],
+ 9448: [[121], 256],
+ 9449: [[122], 256],
+ 9450: [[48], 256]
+ },
+ 10752: {
+ 10764: [[8747, 8747, 8747, 8747], 256],
+ 10868: [[58, 58, 61], 256],
+ 10869: [[61, 61], 256],
+ 10870: [[61, 61, 61], 256],
+ 10972: [[10973, 824], 512]
+ },
+ 11264: {
+ 11388: [[106], 256],
+ 11389: [[86], 256],
+ 11503: [, 230],
+ 11504: [, 230],
+ 11505: [, 230]
+ },
+ 11520: {
+ 11631: [[11617], 256],
+ 11647: [, 9],
+ 11744: [, 230],
+ 11745: [, 230],
+ 11746: [, 230],
+ 11747: [, 230],
+ 11748: [, 230],
+ 11749: [, 230],
+ 11750: [, 230],
+ 11751: [, 230],
+ 11752: [, 230],
+ 11753: [, 230],
+ 11754: [, 230],
+ 11755: [, 230],
+ 11756: [, 230],
+ 11757: [, 230],
+ 11758: [, 230],
+ 11759: [, 230],
+ 11760: [, 230],
+ 11761: [, 230],
+ 11762: [, 230],
+ 11763: [, 230],
+ 11764: [, 230],
+ 11765: [, 230],
+ 11766: [, 230],
+ 11767: [, 230],
+ 11768: [, 230],
+ 11769: [, 230],
+ 11770: [, 230],
+ 11771: [, 230],
+ 11772: [, 230],
+ 11773: [, 230],
+ 11774: [, 230],
+ 11775: [, 230]
+ },
+ 11776: { 11935: [[27597], 256], 12019: [[40863], 256] },
+ 12032: {
+ 12032: [[19968], 256],
+ 12033: [[20008], 256],
+ 12034: [[20022], 256],
+ 12035: [[20031], 256],
+ 12036: [[20057], 256],
+ 12037: [[20101], 256],
+ 12038: [[20108], 256],
+ 12039: [[20128], 256],
+ 12040: [[20154], 256],
+ 12041: [[20799], 256],
+ 12042: [[20837], 256],
+ 12043: [[20843], 256],
+ 12044: [[20866], 256],
+ 12045: [[20886], 256],
+ 12046: [[20907], 256],
+ 12047: [[20960], 256],
+ 12048: [[20981], 256],
+ 12049: [[20992], 256],
+ 12050: [[21147], 256],
+ 12051: [[21241], 256],
+ 12052: [[21269], 256],
+ 12053: [[21274], 256],
+ 12054: [[21304], 256],
+ 12055: [[21313], 256],
+ 12056: [[21340], 256],
+ 12057: [[21353], 256],
+ 12058: [[21378], 256],
+ 12059: [[21430], 256],
+ 12060: [[21448], 256],
+ 12061: [[21475], 256],
+ 12062: [[22231], 256],
+ 12063: [[22303], 256],
+ 12064: [[22763], 256],
+ 12065: [[22786], 256],
+ 12066: [[22794], 256],
+ 12067: [[22805], 256],
+ 12068: [[22823], 256],
+ 12069: [[22899], 256],
+ 12070: [[23376], 256],
+ 12071: [[23424], 256],
+ 12072: [[23544], 256],
+ 12073: [[23567], 256],
+ 12074: [[23586], 256],
+ 12075: [[23608], 256],
+ 12076: [[23662], 256],
+ 12077: [[23665], 256],
+ 12078: [[24027], 256],
+ 12079: [[24037], 256],
+ 12080: [[24049], 256],
+ 12081: [[24062], 256],
+ 12082: [[24178], 256],
+ 12083: [[24186], 256],
+ 12084: [[24191], 256],
+ 12085: [[24308], 256],
+ 12086: [[24318], 256],
+ 12087: [[24331], 256],
+ 12088: [[24339], 256],
+ 12089: [[24400], 256],
+ 12090: [[24417], 256],
+ 12091: [[24435], 256],
+ 12092: [[24515], 256],
+ 12093: [[25096], 256],
+ 12094: [[25142], 256],
+ 12095: [[25163], 256],
+ 12096: [[25903], 256],
+ 12097: [[25908], 256],
+ 12098: [[25991], 256],
+ 12099: [[26007], 256],
+ 12100: [[26020], 256],
+ 12101: [[26041], 256],
+ 12102: [[26080], 256],
+ 12103: [[26085], 256],
+ 12104: [[26352], 256],
+ 12105: [[26376], 256],
+ 12106: [[26408], 256],
+ 12107: [[27424], 256],
+ 12108: [[27490], 256],
+ 12109: [[27513], 256],
+ 12110: [[27571], 256],
+ 12111: [[27595], 256],
+ 12112: [[27604], 256],
+ 12113: [[27611], 256],
+ 12114: [[27663], 256],
+ 12115: [[27668], 256],
+ 12116: [[27700], 256],
+ 12117: [[28779], 256],
+ 12118: [[29226], 256],
+ 12119: [[29238], 256],
+ 12120: [[29243], 256],
+ 12121: [[29247], 256],
+ 12122: [[29255], 256],
+ 12123: [[29273], 256],
+ 12124: [[29275], 256],
+ 12125: [[29356], 256],
+ 12126: [[29572], 256],
+ 12127: [[29577], 256],
+ 12128: [[29916], 256],
+ 12129: [[29926], 256],
+ 12130: [[29976], 256],
+ 12131: [[29983], 256],
+ 12132: [[29992], 256],
+ 12133: [[30000], 256],
+ 12134: [[30091], 256],
+ 12135: [[30098], 256],
+ 12136: [[30326], 256],
+ 12137: [[30333], 256],
+ 12138: [[30382], 256],
+ 12139: [[30399], 256],
+ 12140: [[30446], 256],
+ 12141: [[30683], 256],
+ 12142: [[30690], 256],
+ 12143: [[30707], 256],
+ 12144: [[31034], 256],
+ 12145: [[31160], 256],
+ 12146: [[31166], 256],
+ 12147: [[31348], 256],
+ 12148: [[31435], 256],
+ 12149: [[31481], 256],
+ 12150: [[31859], 256],
+ 12151: [[31992], 256],
+ 12152: [[32566], 256],
+ 12153: [[32593], 256],
+ 12154: [[32650], 256],
+ 12155: [[32701], 256],
+ 12156: [[32769], 256],
+ 12157: [[32780], 256],
+ 12158: [[32786], 256],
+ 12159: [[32819], 256],
+ 12160: [[32895], 256],
+ 12161: [[32905], 256],
+ 12162: [[33251], 256],
+ 12163: [[33258], 256],
+ 12164: [[33267], 256],
+ 12165: [[33276], 256],
+ 12166: [[33292], 256],
+ 12167: [[33307], 256],
+ 12168: [[33311], 256],
+ 12169: [[33390], 256],
+ 12170: [[33394], 256],
+ 12171: [[33400], 256],
+ 12172: [[34381], 256],
+ 12173: [[34411], 256],
+ 12174: [[34880], 256],
+ 12175: [[34892], 256],
+ 12176: [[34915], 256],
+ 12177: [[35198], 256],
+ 12178: [[35211], 256],
+ 12179: [[35282], 256],
+ 12180: [[35328], 256],
+ 12181: [[35895], 256],
+ 12182: [[35910], 256],
+ 12183: [[35925], 256],
+ 12184: [[35960], 256],
+ 12185: [[35997], 256],
+ 12186: [[36196], 256],
+ 12187: [[36208], 256],
+ 12188: [[36275], 256],
+ 12189: [[36523], 256],
+ 12190: [[36554], 256],
+ 12191: [[36763], 256],
+ 12192: [[36784], 256],
+ 12193: [[36789], 256],
+ 12194: [[37009], 256],
+ 12195: [[37193], 256],
+ 12196: [[37318], 256],
+ 12197: [[37324], 256],
+ 12198: [[37329], 256],
+ 12199: [[38263], 256],
+ 12200: [[38272], 256],
+ 12201: [[38428], 256],
+ 12202: [[38582], 256],
+ 12203: [[38585], 256],
+ 12204: [[38632], 256],
+ 12205: [[38737], 256],
+ 12206: [[38750], 256],
+ 12207: [[38754], 256],
+ 12208: [[38761], 256],
+ 12209: [[38859], 256],
+ 12210: [[38893], 256],
+ 12211: [[38899], 256],
+ 12212: [[38913], 256],
+ 12213: [[39080], 256],
+ 12214: [[39131], 256],
+ 12215: [[39135], 256],
+ 12216: [[39318], 256],
+ 12217: [[39321], 256],
+ 12218: [[39340], 256],
+ 12219: [[39592], 256],
+ 12220: [[39640], 256],
+ 12221: [[39647], 256],
+ 12222: [[39717], 256],
+ 12223: [[39727], 256],
+ 12224: [[39730], 256],
+ 12225: [[39740], 256],
+ 12226: [[39770], 256],
+ 12227: [[40165], 256],
+ 12228: [[40565], 256],
+ 12229: [[40575], 256],
+ 12230: [[40613], 256],
+ 12231: [[40635], 256],
+ 12232: [[40643], 256],
+ 12233: [[40653], 256],
+ 12234: [[40657], 256],
+ 12235: [[40697], 256],
+ 12236: [[40701], 256],
+ 12237: [[40718], 256],
+ 12238: [[40723], 256],
+ 12239: [[40736], 256],
+ 12240: [[40763], 256],
+ 12241: [[40778], 256],
+ 12242: [[40786], 256],
+ 12243: [[40845], 256],
+ 12244: [[40860], 256],
+ 12245: [[40864], 256]
+ },
+ 12288: {
+ 12288: [[32], 256],
+ 12330: [, 218],
+ 12331: [, 228],
+ 12332: [, 232],
+ 12333: [, 222],
+ 12334: [, 224],
+ 12335: [, 224],
+ 12342: [[12306], 256],
+ 12344: [[21313], 256],
+ 12345: [[21316], 256],
+ 12346: [[21317], 256],
+ 12358: [, , { 12441: 12436 }],
+ 12363: [, , { 12441: 12364 }],
+ 12364: [[12363, 12441]],
+ 12365: [, , { 12441: 12366 }],
+ 12366: [[12365, 12441]],
+ 12367: [, , { 12441: 12368 }],
+ 12368: [[12367, 12441]],
+ 12369: [, , { 12441: 12370 }],
+ 12370: [[12369, 12441]],
+ 12371: [, , { 12441: 12372 }],
+ 12372: [[12371, 12441]],
+ 12373: [, , { 12441: 12374 }],
+ 12374: [[12373, 12441]],
+ 12375: [, , { 12441: 12376 }],
+ 12376: [[12375, 12441]],
+ 12377: [, , { 12441: 12378 }],
+ 12378: [[12377, 12441]],
+ 12379: [, , { 12441: 12380 }],
+ 12380: [[12379, 12441]],
+ 12381: [, , { 12441: 12382 }],
+ 12382: [[12381, 12441]],
+ 12383: [, , { 12441: 12384 }],
+ 12384: [[12383, 12441]],
+ 12385: [, , { 12441: 12386 }],
+ 12386: [[12385, 12441]],
+ 12388: [, , { 12441: 12389 }],
+ 12389: [[12388, 12441]],
+ 12390: [, , { 12441: 12391 }],
+ 12391: [[12390, 12441]],
+ 12392: [, , { 12441: 12393 }],
+ 12393: [[12392, 12441]],
+ 12399: [, , { 12441: 12400, 12442: 12401 }],
+ 12400: [[12399, 12441]],
+ 12401: [[12399, 12442]],
+ 12402: [, , { 12441: 12403, 12442: 12404 }],
+ 12403: [[12402, 12441]],
+ 12404: [[12402, 12442]],
+ 12405: [, , { 12441: 12406, 12442: 12407 }],
+ 12406: [[12405, 12441]],
+ 12407: [[12405, 12442]],
+ 12408: [, , { 12441: 12409, 12442: 12410 }],
+ 12409: [[12408, 12441]],
+ 12410: [[12408, 12442]],
+ 12411: [, , { 12441: 12412, 12442: 12413 }],
+ 12412: [[12411, 12441]],
+ 12413: [[12411, 12442]],
+ 12436: [[12358, 12441]],
+ 12441: [, 8],
+ 12442: [, 8],
+ 12443: [[32, 12441], 256],
+ 12444: [[32, 12442], 256],
+ 12445: [, , { 12441: 12446 }],
+ 12446: [[12445, 12441]],
+ 12447: [[12424, 12426], 256],
+ 12454: [, , { 12441: 12532 }],
+ 12459: [, , { 12441: 12460 }],
+ 12460: [[12459, 12441]],
+ 12461: [, , { 12441: 12462 }],
+ 12462: [[12461, 12441]],
+ 12463: [, , { 12441: 12464 }],
+ 12464: [[12463, 12441]],
+ 12465: [, , { 12441: 12466 }],
+ 12466: [[12465, 12441]],
+ 12467: [, , { 12441: 12468 }],
+ 12468: [[12467, 12441]],
+ 12469: [, , { 12441: 12470 }],
+ 12470: [[12469, 12441]],
+ 12471: [, , { 12441: 12472 }],
+ 12472: [[12471, 12441]],
+ 12473: [, , { 12441: 12474 }],
+ 12474: [[12473, 12441]],
+ 12475: [, , { 12441: 12476 }],
+ 12476: [[12475, 12441]],
+ 12477: [, , { 12441: 12478 }],
+ 12478: [[12477, 12441]],
+ 12479: [, , { 12441: 12480 }],
+ 12480: [[12479, 12441]],
+ 12481: [, , { 12441: 12482 }],
+ 12482: [[12481, 12441]],
+ 12484: [, , { 12441: 12485 }],
+ 12485: [[12484, 12441]],
+ 12486: [, , { 12441: 12487 }],
+ 12487: [[12486, 12441]],
+ 12488: [, , { 12441: 12489 }],
+ 12489: [[12488, 12441]],
+ 12495: [, , { 12441: 12496, 12442: 12497 }],
+ 12496: [[12495, 12441]],
+ 12497: [[12495, 12442]],
+ 12498: [, , { 12441: 12499, 12442: 12500 }],
+ 12499: [[12498, 12441]],
+ 12500: [[12498, 12442]],
+ 12501: [, , { 12441: 12502, 12442: 12503 }],
+ 12502: [[12501, 12441]],
+ 12503: [[12501, 12442]],
+ 12504: [, , { 12441: 12505, 12442: 12506 }],
+ 12505: [[12504, 12441]],
+ 12506: [[12504, 12442]],
+ 12507: [, , { 12441: 12508, 12442: 12509 }],
+ 12508: [[12507, 12441]],
+ 12509: [[12507, 12442]],
+ 12527: [, , { 12441: 12535 }],
+ 12528: [, , { 12441: 12536 }],
+ 12529: [, , { 12441: 12537 }],
+ 12530: [, , { 12441: 12538 }],
+ 12532: [[12454, 12441]],
+ 12535: [[12527, 12441]],
+ 12536: [[12528, 12441]],
+ 12537: [[12529, 12441]],
+ 12538: [[12530, 12441]],
+ 12541: [, , { 12441: 12542 }],
+ 12542: [[12541, 12441]],
+ 12543: [[12467, 12488], 256]
+ },
+ 12544: {
+ 12593: [[4352], 256],
+ 12594: [[4353], 256],
+ 12595: [[4522], 256],
+ 12596: [[4354], 256],
+ 12597: [[4524], 256],
+ 12598: [[4525], 256],
+ 12599: [[4355], 256],
+ 12600: [[4356], 256],
+ 12601: [[4357], 256],
+ 12602: [[4528], 256],
+ 12603: [[4529], 256],
+ 12604: [[4530], 256],
+ 12605: [[4531], 256],
+ 12606: [[4532], 256],
+ 12607: [[4533], 256],
+ 12608: [[4378], 256],
+ 12609: [[4358], 256],
+ 12610: [[4359], 256],
+ 12611: [[4360], 256],
+ 12612: [[4385], 256],
+ 12613: [[4361], 256],
+ 12614: [[4362], 256],
+ 12615: [[4363], 256],
+ 12616: [[4364], 256],
+ 12617: [[4365], 256],
+ 12618: [[4366], 256],
+ 12619: [[4367], 256],
+ 12620: [[4368], 256],
+ 12621: [[4369], 256],
+ 12622: [[4370], 256],
+ 12623: [[4449], 256],
+ 12624: [[4450], 256],
+ 12625: [[4451], 256],
+ 12626: [[4452], 256],
+ 12627: [[4453], 256],
+ 12628: [[4454], 256],
+ 12629: [[4455], 256],
+ 12630: [[4456], 256],
+ 12631: [[4457], 256],
+ 12632: [[4458], 256],
+ 12633: [[4459], 256],
+ 12634: [[4460], 256],
+ 12635: [[4461], 256],
+ 12636: [[4462], 256],
+ 12637: [[4463], 256],
+ 12638: [[4464], 256],
+ 12639: [[4465], 256],
+ 12640: [[4466], 256],
+ 12641: [[4467], 256],
+ 12642: [[4468], 256],
+ 12643: [[4469], 256],
+ 12644: [[4448], 256],
+ 12645: [[4372], 256],
+ 12646: [[4373], 256],
+ 12647: [[4551], 256],
+ 12648: [[4552], 256],
+ 12649: [[4556], 256],
+ 12650: [[4558], 256],
+ 12651: [[4563], 256],
+ 12652: [[4567], 256],
+ 12653: [[4569], 256],
+ 12654: [[4380], 256],
+ 12655: [[4573], 256],
+ 12656: [[4575], 256],
+ 12657: [[4381], 256],
+ 12658: [[4382], 256],
+ 12659: [[4384], 256],
+ 12660: [[4386], 256],
+ 12661: [[4387], 256],
+ 12662: [[4391], 256],
+ 12663: [[4393], 256],
+ 12664: [[4395], 256],
+ 12665: [[4396], 256],
+ 12666: [[4397], 256],
+ 12667: [[4398], 256],
+ 12668: [[4399], 256],
+ 12669: [[4402], 256],
+ 12670: [[4406], 256],
+ 12671: [[4416], 256],
+ 12672: [[4423], 256],
+ 12673: [[4428], 256],
+ 12674: [[4593], 256],
+ 12675: [[4594], 256],
+ 12676: [[4439], 256],
+ 12677: [[4440], 256],
+ 12678: [[4441], 256],
+ 12679: [[4484], 256],
+ 12680: [[4485], 256],
+ 12681: [[4488], 256],
+ 12682: [[4497], 256],
+ 12683: [[4498], 256],
+ 12684: [[4500], 256],
+ 12685: [[4510], 256],
+ 12686: [[4513], 256],
+ 12690: [[19968], 256],
+ 12691: [[20108], 256],
+ 12692: [[19977], 256],
+ 12693: [[22235], 256],
+ 12694: [[19978], 256],
+ 12695: [[20013], 256],
+ 12696: [[19979], 256],
+ 12697: [[30002], 256],
+ 12698: [[20057], 256],
+ 12699: [[19993], 256],
+ 12700: [[19969], 256],
+ 12701: [[22825], 256],
+ 12702: [[22320], 256],
+ 12703: [[20154], 256]
+ },
+ 12800: {
+ 12800: [[40, 4352, 41], 256],
+ 12801: [[40, 4354, 41], 256],
+ 12802: [[40, 4355, 41], 256],
+ 12803: [[40, 4357, 41], 256],
+ 12804: [[40, 4358, 41], 256],
+ 12805: [[40, 4359, 41], 256],
+ 12806: [[40, 4361, 41], 256],
+ 12807: [[40, 4363, 41], 256],
+ 12808: [[40, 4364, 41], 256],
+ 12809: [[40, 4366, 41], 256],
+ 12810: [[40, 4367, 41], 256],
+ 12811: [[40, 4368, 41], 256],
+ 12812: [[40, 4369, 41], 256],
+ 12813: [[40, 4370, 41], 256],
+ 12814: [[40, 4352, 4449, 41], 256],
+ 12815: [[40, 4354, 4449, 41], 256],
+ 12816: [[40, 4355, 4449, 41], 256],
+ 12817: [[40, 4357, 4449, 41], 256],
+ 12818: [[40, 4358, 4449, 41], 256],
+ 12819: [[40, 4359, 4449, 41], 256],
+ 12820: [[40, 4361, 4449, 41], 256],
+ 12821: [[40, 4363, 4449, 41], 256],
+ 12822: [[40, 4364, 4449, 41], 256],
+ 12823: [[40, 4366, 4449, 41], 256],
+ 12824: [[40, 4367, 4449, 41], 256],
+ 12825: [[40, 4368, 4449, 41], 256],
+ 12826: [[40, 4369, 4449, 41], 256],
+ 12827: [[40, 4370, 4449, 41], 256],
+ 12828: [[40, 4364, 4462, 41], 256],
+ 12829: [[40, 4363, 4457, 4364, 4453, 4523, 41], 256],
+ 12830: [[40, 4363, 4457, 4370, 4462, 41], 256],
+ 12832: [[40, 19968, 41], 256],
+ 12833: [[40, 20108, 41], 256],
+ 12834: [[40, 19977, 41], 256],
+ 12835: [[40, 22235, 41], 256],
+ 12836: [[40, 20116, 41], 256],
+ 12837: [[40, 20845, 41], 256],
+ 12838: [[40, 19971, 41], 256],
+ 12839: [[40, 20843, 41], 256],
+ 12840: [[40, 20061, 41], 256],
+ 12841: [[40, 21313, 41], 256],
+ 12842: [[40, 26376, 41], 256],
+ 12843: [[40, 28779, 41], 256],
+ 12844: [[40, 27700, 41], 256],
+ 12845: [[40, 26408, 41], 256],
+ 12846: [[40, 37329, 41], 256],
+ 12847: [[40, 22303, 41], 256],
+ 12848: [[40, 26085, 41], 256],
+ 12849: [[40, 26666, 41], 256],
+ 12850: [[40, 26377, 41], 256],
+ 12851: [[40, 31038, 41], 256],
+ 12852: [[40, 21517, 41], 256],
+ 12853: [[40, 29305, 41], 256],
+ 12854: [[40, 36001, 41], 256],
+ 12855: [[40, 31069, 41], 256],
+ 12856: [[40, 21172, 41], 256],
+ 12857: [[40, 20195, 41], 256],
+ 12858: [[40, 21628, 41], 256],
+ 12859: [[40, 23398, 41], 256],
+ 12860: [[40, 30435, 41], 256],
+ 12861: [[40, 20225, 41], 256],
+ 12862: [[40, 36039, 41], 256],
+ 12863: [[40, 21332, 41], 256],
+ 12864: [[40, 31085, 41], 256],
+ 12865: [[40, 20241, 41], 256],
+ 12866: [[40, 33258, 41], 256],
+ 12867: [[40, 33267, 41], 256],
+ 12868: [[21839], 256],
+ 12869: [[24188], 256],
+ 12870: [[25991], 256],
+ 12871: [[31631], 256],
+ 12880: [[80, 84, 69], 256],
+ 12881: [[50, 49], 256],
+ 12882: [[50, 50], 256],
+ 12883: [[50, 51], 256],
+ 12884: [[50, 52], 256],
+ 12885: [[50, 53], 256],
+ 12886: [[50, 54], 256],
+ 12887: [[50, 55], 256],
+ 12888: [[50, 56], 256],
+ 12889: [[50, 57], 256],
+ 12890: [[51, 48], 256],
+ 12891: [[51, 49], 256],
+ 12892: [[51, 50], 256],
+ 12893: [[51, 51], 256],
+ 12894: [[51, 52], 256],
+ 12895: [[51, 53], 256],
+ 12896: [[4352], 256],
+ 12897: [[4354], 256],
+ 12898: [[4355], 256],
+ 12899: [[4357], 256],
+ 12900: [[4358], 256],
+ 12901: [[4359], 256],
+ 12902: [[4361], 256],
+ 12903: [[4363], 256],
+ 12904: [[4364], 256],
+ 12905: [[4366], 256],
+ 12906: [[4367], 256],
+ 12907: [[4368], 256],
+ 12908: [[4369], 256],
+ 12909: [[4370], 256],
+ 12910: [[4352, 4449], 256],
+ 12911: [[4354, 4449], 256],
+ 12912: [[4355, 4449], 256],
+ 12913: [[4357, 4449], 256],
+ 12914: [[4358, 4449], 256],
+ 12915: [[4359, 4449], 256],
+ 12916: [[4361, 4449], 256],
+ 12917: [[4363, 4449], 256],
+ 12918: [[4364, 4449], 256],
+ 12919: [[4366, 4449], 256],
+ 12920: [[4367, 4449], 256],
+ 12921: [[4368, 4449], 256],
+ 12922: [[4369, 4449], 256],
+ 12923: [[4370, 4449], 256],
+ 12924: [[4366, 4449, 4535, 4352, 4457], 256],
+ 12925: [[4364, 4462, 4363, 4468], 256],
+ 12926: [[4363, 4462], 256],
+ 12928: [[19968], 256],
+ 12929: [[20108], 256],
+ 12930: [[19977], 256],
+ 12931: [[22235], 256],
+ 12932: [[20116], 256],
+ 12933: [[20845], 256],
+ 12934: [[19971], 256],
+ 12935: [[20843], 256],
+ 12936: [[20061], 256],
+ 12937: [[21313], 256],
+ 12938: [[26376], 256],
+ 12939: [[28779], 256],
+ 12940: [[27700], 256],
+ 12941: [[26408], 256],
+ 12942: [[37329], 256],
+ 12943: [[22303], 256],
+ 12944: [[26085], 256],
+ 12945: [[26666], 256],
+ 12946: [[26377], 256],
+ 12947: [[31038], 256],
+ 12948: [[21517], 256],
+ 12949: [[29305], 256],
+ 12950: [[36001], 256],
+ 12951: [[31069], 256],
+ 12952: [[21172], 256],
+ 12953: [[31192], 256],
+ 12954: [[30007], 256],
+ 12955: [[22899], 256],
+ 12956: [[36969], 256],
+ 12957: [[20778], 256],
+ 12958: [[21360], 256],
+ 12959: [[27880], 256],
+ 12960: [[38917], 256],
+ 12961: [[20241], 256],
+ 12962: [[20889], 256],
+ 12963: [[27491], 256],
+ 12964: [[19978], 256],
+ 12965: [[20013], 256],
+ 12966: [[19979], 256],
+ 12967: [[24038], 256],
+ 12968: [[21491], 256],
+ 12969: [[21307], 256],
+ 12970: [[23447], 256],
+ 12971: [[23398], 256],
+ 12972: [[30435], 256],
+ 12973: [[20225], 256],
+ 12974: [[36039], 256],
+ 12975: [[21332], 256],
+ 12976: [[22812], 256],
+ 12977: [[51, 54], 256],
+ 12978: [[51, 55], 256],
+ 12979: [[51, 56], 256],
+ 12980: [[51, 57], 256],
+ 12981: [[52, 48], 256],
+ 12982: [[52, 49], 256],
+ 12983: [[52, 50], 256],
+ 12984: [[52, 51], 256],
+ 12985: [[52, 52], 256],
+ 12986: [[52, 53], 256],
+ 12987: [[52, 54], 256],
+ 12988: [[52, 55], 256],
+ 12989: [[52, 56], 256],
+ 12990: [[52, 57], 256],
+ 12991: [[53, 48], 256],
+ 12992: [[49, 26376], 256],
+ 12993: [[50, 26376], 256],
+ 12994: [[51, 26376], 256],
+ 12995: [[52, 26376], 256],
+ 12996: [[53, 26376], 256],
+ 12997: [[54, 26376], 256],
+ 12998: [[55, 26376], 256],
+ 12999: [[56, 26376], 256],
+ 13000: [[57, 26376], 256],
+ 13001: [[49, 48, 26376], 256],
+ 13002: [[49, 49, 26376], 256],
+ 13003: [[49, 50, 26376], 256],
+ 13004: [[72, 103], 256],
+ 13005: [[101, 114, 103], 256],
+ 13006: [[101, 86], 256],
+ 13007: [[76, 84, 68], 256],
+ 13008: [[12450], 256],
+ 13009: [[12452], 256],
+ 13010: [[12454], 256],
+ 13011: [[12456], 256],
+ 13012: [[12458], 256],
+ 13013: [[12459], 256],
+ 13014: [[12461], 256],
+ 13015: [[12463], 256],
+ 13016: [[12465], 256],
+ 13017: [[12467], 256],
+ 13018: [[12469], 256],
+ 13019: [[12471], 256],
+ 13020: [[12473], 256],
+ 13021: [[12475], 256],
+ 13022: [[12477], 256],
+ 13023: [[12479], 256],
+ 13024: [[12481], 256],
+ 13025: [[12484], 256],
+ 13026: [[12486], 256],
+ 13027: [[12488], 256],
+ 13028: [[12490], 256],
+ 13029: [[12491], 256],
+ 13030: [[12492], 256],
+ 13031: [[12493], 256],
+ 13032: [[12494], 256],
+ 13033: [[12495], 256],
+ 13034: [[12498], 256],
+ 13035: [[12501], 256],
+ 13036: [[12504], 256],
+ 13037: [[12507], 256],
+ 13038: [[12510], 256],
+ 13039: [[12511], 256],
+ 13040: [[12512], 256],
+ 13041: [[12513], 256],
+ 13042: [[12514], 256],
+ 13043: [[12516], 256],
+ 13044: [[12518], 256],
+ 13045: [[12520], 256],
+ 13046: [[12521], 256],
+ 13047: [[12522], 256],
+ 13048: [[12523], 256],
+ 13049: [[12524], 256],
+ 13050: [[12525], 256],
+ 13051: [[12527], 256],
+ 13052: [[12528], 256],
+ 13053: [[12529], 256],
+ 13054: [[12530], 256]
+ },
+ 13056: {
+ 13056: [[12450, 12497, 12540, 12488], 256],
+ 13057: [[12450, 12523, 12501, 12449], 256],
+ 13058: [[12450, 12531, 12506, 12450], 256],
+ 13059: [[12450, 12540, 12523], 256],
+ 13060: [[12452, 12491, 12531, 12464], 256],
+ 13061: [[12452, 12531, 12481], 256],
+ 13062: [[12454, 12457, 12531], 256],
+ 13063: [[12456, 12473, 12463, 12540, 12489], 256],
+ 13064: [[12456, 12540, 12459, 12540], 256],
+ 13065: [[12458, 12531, 12473], 256],
+ 13066: [[12458, 12540, 12512], 256],
+ 13067: [[12459, 12452, 12522], 256],
+ 13068: [[12459, 12521, 12483, 12488], 256],
+ 13069: [[12459, 12525, 12522, 12540], 256],
+ 13070: [[12460, 12525, 12531], 256],
+ 13071: [[12460, 12531, 12510], 256],
+ 13072: [[12462, 12460], 256],
+ 13073: [[12462, 12491, 12540], 256],
+ 13074: [[12461, 12517, 12522, 12540], 256],
+ 13075: [[12462, 12523, 12480, 12540], 256],
+ 13076: [[12461, 12525], 256],
+ 13077: [[12461, 12525, 12464, 12521, 12512], 256],
+ 13078: [[12461, 12525, 12513, 12540, 12488, 12523], 256],
+ 13079: [[12461, 12525, 12527, 12483, 12488], 256],
+ 13080: [[12464, 12521, 12512], 256],
+ 13081: [[12464, 12521, 12512, 12488, 12531], 256],
+ 13082: [[12463, 12523, 12476, 12452, 12525], 256],
+ 13083: [[12463, 12525, 12540, 12493], 256],
+ 13084: [[12465, 12540, 12473], 256],
+ 13085: [[12467, 12523, 12490], 256],
+ 13086: [[12467, 12540, 12509], 256],
+ 13087: [[12469, 12452, 12463, 12523], 256],
+ 13088: [[12469, 12531, 12481, 12540, 12512], 256],
+ 13089: [[12471, 12522, 12531, 12464], 256],
+ 13090: [[12475, 12531, 12481], 256],
+ 13091: [[12475, 12531, 12488], 256],
+ 13092: [[12480, 12540, 12473], 256],
+ 13093: [[12487, 12471], 256],
+ 13094: [[12489, 12523], 256],
+ 13095: [[12488, 12531], 256],
+ 13096: [[12490, 12494], 256],
+ 13097: [[12494, 12483, 12488], 256],
+ 13098: [[12495, 12452, 12484], 256],
+ 13099: [[12497, 12540, 12475, 12531, 12488], 256],
+ 13100: [[12497, 12540, 12484], 256],
+ 13101: [[12496, 12540, 12524, 12523], 256],
+ 13102: [[12500, 12450, 12473, 12488, 12523], 256],
+ 13103: [[12500, 12463, 12523], 256],
+ 13104: [[12500, 12467], 256],
+ 13105: [[12499, 12523], 256],
+ 13106: [[12501, 12449, 12521, 12483, 12489], 256],
+ 13107: [[12501, 12451, 12540, 12488], 256],
+ 13108: [[12502, 12483, 12471, 12455, 12523], 256],
+ 13109: [[12501, 12521, 12531], 256],
+ 13110: [[12504, 12463, 12479, 12540, 12523], 256],
+ 13111: [[12506, 12477], 256],
+ 13112: [[12506, 12491, 12498], 256],
+ 13113: [[12504, 12523, 12484], 256],
+ 13114: [[12506, 12531, 12473], 256],
+ 13115: [[12506, 12540, 12472], 256],
+ 13116: [[12505, 12540, 12479], 256],
+ 13117: [[12509, 12452, 12531, 12488], 256],
+ 13118: [[12508, 12523, 12488], 256],
+ 13119: [[12507, 12531], 256],
+ 13120: [[12509, 12531, 12489], 256],
+ 13121: [[12507, 12540, 12523], 256],
+ 13122: [[12507, 12540, 12531], 256],
+ 13123: [[12510, 12452, 12463, 12525], 256],
+ 13124: [[12510, 12452, 12523], 256],
+ 13125: [[12510, 12483, 12495], 256],
+ 13126: [[12510, 12523, 12463], 256],
+ 13127: [[12510, 12531, 12471, 12519, 12531], 256],
+ 13128: [[12511, 12463, 12525, 12531], 256],
+ 13129: [[12511, 12522], 256],
+ 13130: [[12511, 12522, 12496, 12540, 12523], 256],
+ 13131: [[12513, 12460], 256],
+ 13132: [[12513, 12460, 12488, 12531], 256],
+ 13133: [[12513, 12540, 12488, 12523], 256],
+ 13134: [[12516, 12540, 12489], 256],
+ 13135: [[12516, 12540, 12523], 256],
+ 13136: [[12518, 12450, 12531], 256],
+ 13137: [[12522, 12483, 12488, 12523], 256],
+ 13138: [[12522, 12521], 256],
+ 13139: [[12523, 12500, 12540], 256],
+ 13140: [[12523, 12540, 12502, 12523], 256],
+ 13141: [[12524, 12512], 256],
+ 13142: [[12524, 12531, 12488, 12466, 12531], 256],
+ 13143: [[12527, 12483, 12488], 256],
+ 13144: [[48, 28857], 256],
+ 13145: [[49, 28857], 256],
+ 13146: [[50, 28857], 256],
+ 13147: [[51, 28857], 256],
+ 13148: [[52, 28857], 256],
+ 13149: [[53, 28857], 256],
+ 13150: [[54, 28857], 256],
+ 13151: [[55, 28857], 256],
+ 13152: [[56, 28857], 256],
+ 13153: [[57, 28857], 256],
+ 13154: [[49, 48, 28857], 256],
+ 13155: [[49, 49, 28857], 256],
+ 13156: [[49, 50, 28857], 256],
+ 13157: [[49, 51, 28857], 256],
+ 13158: [[49, 52, 28857], 256],
+ 13159: [[49, 53, 28857], 256],
+ 13160: [[49, 54, 28857], 256],
+ 13161: [[49, 55, 28857], 256],
+ 13162: [[49, 56, 28857], 256],
+ 13163: [[49, 57, 28857], 256],
+ 13164: [[50, 48, 28857], 256],
+ 13165: [[50, 49, 28857], 256],
+ 13166: [[50, 50, 28857], 256],
+ 13167: [[50, 51, 28857], 256],
+ 13168: [[50, 52, 28857], 256],
+ 13169: [[104, 80, 97], 256],
+ 13170: [[100, 97], 256],
+ 13171: [[65, 85], 256],
+ 13172: [[98, 97, 114], 256],
+ 13173: [[111, 86], 256],
+ 13174: [[112, 99], 256],
+ 13175: [[100, 109], 256],
+ 13176: [[100, 109, 178], 256],
+ 13177: [[100, 109, 179], 256],
+ 13178: [[73, 85], 256],
+ 13179: [[24179, 25104], 256],
+ 13180: [[26157, 21644], 256],
+ 13181: [[22823, 27491], 256],
+ 13182: [[26126, 27835], 256],
+ 13183: [[26666, 24335, 20250, 31038], 256],
+ 13184: [[112, 65], 256],
+ 13185: [[110, 65], 256],
+ 13186: [[956, 65], 256],
+ 13187: [[109, 65], 256],
+ 13188: [[107, 65], 256],
+ 13189: [[75, 66], 256],
+ 13190: [[77, 66], 256],
+ 13191: [[71, 66], 256],
+ 13192: [[99, 97, 108], 256],
+ 13193: [[107, 99, 97, 108], 256],
+ 13194: [[112, 70], 256],
+ 13195: [[110, 70], 256],
+ 13196: [[956, 70], 256],
+ 13197: [[956, 103], 256],
+ 13198: [[109, 103], 256],
+ 13199: [[107, 103], 256],
+ 13200: [[72, 122], 256],
+ 13201: [[107, 72, 122], 256],
+ 13202: [[77, 72, 122], 256],
+ 13203: [[71, 72, 122], 256],
+ 13204: [[84, 72, 122], 256],
+ 13205: [[956, 8467], 256],
+ 13206: [[109, 8467], 256],
+ 13207: [[100, 8467], 256],
+ 13208: [[107, 8467], 256],
+ 13209: [[102, 109], 256],
+ 13210: [[110, 109], 256],
+ 13211: [[956, 109], 256],
+ 13212: [[109, 109], 256],
+ 13213: [[99, 109], 256],
+ 13214: [[107, 109], 256],
+ 13215: [[109, 109, 178], 256],
+ 13216: [[99, 109, 178], 256],
+ 13217: [[109, 178], 256],
+ 13218: [[107, 109, 178], 256],
+ 13219: [[109, 109, 179], 256],
+ 13220: [[99, 109, 179], 256],
+ 13221: [[109, 179], 256],
+ 13222: [[107, 109, 179], 256],
+ 13223: [[109, 8725, 115], 256],
+ 13224: [[109, 8725, 115, 178], 256],
+ 13225: [[80, 97], 256],
+ 13226: [[107, 80, 97], 256],
+ 13227: [[77, 80, 97], 256],
+ 13228: [[71, 80, 97], 256],
+ 13229: [[114, 97, 100], 256],
+ 13230: [[114, 97, 100, 8725, 115], 256],
+ 13231: [[114, 97, 100, 8725, 115, 178], 256],
+ 13232: [[112, 115], 256],
+ 13233: [[110, 115], 256],
+ 13234: [[956, 115], 256],
+ 13235: [[109, 115], 256],
+ 13236: [[112, 86], 256],
+ 13237: [[110, 86], 256],
+ 13238: [[956, 86], 256],
+ 13239: [[109, 86], 256],
+ 13240: [[107, 86], 256],
+ 13241: [[77, 86], 256],
+ 13242: [[112, 87], 256],
+ 13243: [[110, 87], 256],
+ 13244: [[956, 87], 256],
+ 13245: [[109, 87], 256],
+ 13246: [[107, 87], 256],
+ 13247: [[77, 87], 256],
+ 13248: [[107, 937], 256],
+ 13249: [[77, 937], 256],
+ 13250: [[97, 46, 109, 46], 256],
+ 13251: [[66, 113], 256],
+ 13252: [[99, 99], 256],
+ 13253: [[99, 100], 256],
+ 13254: [[67, 8725, 107, 103], 256],
+ 13255: [[67, 111, 46], 256],
+ 13256: [[100, 66], 256],
+ 13257: [[71, 121], 256],
+ 13258: [[104, 97], 256],
+ 13259: [[72, 80], 256],
+ 13260: [[105, 110], 256],
+ 13261: [[75, 75], 256],
+ 13262: [[75, 77], 256],
+ 13263: [[107, 116], 256],
+ 13264: [[108, 109], 256],
+ 13265: [[108, 110], 256],
+ 13266: [[108, 111, 103], 256],
+ 13267: [[108, 120], 256],
+ 13268: [[109, 98], 256],
+ 13269: [[109, 105, 108], 256],
+ 13270: [[109, 111, 108], 256],
+ 13271: [[80, 72], 256],
+ 13272: [[112, 46, 109, 46], 256],
+ 13273: [[80, 80, 77], 256],
+ 13274: [[80, 82], 256],
+ 13275: [[115, 114], 256],
+ 13276: [[83, 118], 256],
+ 13277: [[87, 98], 256],
+ 13278: [[86, 8725, 109], 256],
+ 13279: [[65, 8725, 109], 256],
+ 13280: [[49, 26085], 256],
+ 13281: [[50, 26085], 256],
+ 13282: [[51, 26085], 256],
+ 13283: [[52, 26085], 256],
+ 13284: [[53, 26085], 256],
+ 13285: [[54, 26085], 256],
+ 13286: [[55, 26085], 256],
+ 13287: [[56, 26085], 256],
+ 13288: [[57, 26085], 256],
+ 13289: [[49, 48, 26085], 256],
+ 13290: [[49, 49, 26085], 256],
+ 13291: [[49, 50, 26085], 256],
+ 13292: [[49, 51, 26085], 256],
+ 13293: [[49, 52, 26085], 256],
+ 13294: [[49, 53, 26085], 256],
+ 13295: [[49, 54, 26085], 256],
+ 13296: [[49, 55, 26085], 256],
+ 13297: [[49, 56, 26085], 256],
+ 13298: [[49, 57, 26085], 256],
+ 13299: [[50, 48, 26085], 256],
+ 13300: [[50, 49, 26085], 256],
+ 13301: [[50, 50, 26085], 256],
+ 13302: [[50, 51, 26085], 256],
+ 13303: [[50, 52, 26085], 256],
+ 13304: [[50, 53, 26085], 256],
+ 13305: [[50, 54, 26085], 256],
+ 13306: [[50, 55, 26085], 256],
+ 13307: [[50, 56, 26085], 256],
+ 13308: [[50, 57, 26085], 256],
+ 13309: [[51, 48, 26085], 256],
+ 13310: [[51, 49, 26085], 256],
+ 13311: [[103, 97, 108], 256]
+ },
+ 42496: {
+ 42607: [, 230],
+ 42612: [, 230],
+ 42613: [, 230],
+ 42614: [, 230],
+ 42615: [, 230],
+ 42616: [, 230],
+ 42617: [, 230],
+ 42618: [, 230],
+ 42619: [, 230],
+ 42620: [, 230],
+ 42621: [, 230],
+ 42655: [, 230],
+ 42736: [, 230],
+ 42737: [, 230]
+ },
+ 42752: { 42864: [[42863], 256], 43000: [[294], 256], 43001: [[339], 256] },
+ 43008: {
+ 43014: [, 9],
+ 43204: [, 9],
+ 43232: [, 230],
+ 43233: [, 230],
+ 43234: [, 230],
+ 43235: [, 230],
+ 43236: [, 230],
+ 43237: [, 230],
+ 43238: [, 230],
+ 43239: [, 230],
+ 43240: [, 230],
+ 43241: [, 230],
+ 43242: [, 230],
+ 43243: [, 230],
+ 43244: [, 230],
+ 43245: [, 230],
+ 43246: [, 230],
+ 43247: [, 230],
+ 43248: [, 230],
+ 43249: [, 230]
+ },
+ 43264: {
+ 43307: [, 220],
+ 43308: [, 220],
+ 43309: [, 220],
+ 43347: [, 9],
+ 43443: [, 7],
+ 43456: [, 9]
+ },
+ 43520: {
+ 43696: [, 230],
+ 43698: [, 230],
+ 43699: [, 230],
+ 43700: [, 220],
+ 43703: [, 230],
+ 43704: [, 230],
+ 43710: [, 230],
+ 43711: [, 230],
+ 43713: [, 230],
+ 43766: [, 9]
+ },
+ 43776: { 44013: [, 9] },
+ 53504: {
+ 119134: [[119127, 119141], 512],
+ 119135: [[119128, 119141], 512],
+ 119136: [[119135, 119150], 512],
+ 119137: [[119135, 119151], 512],
+ 119138: [[119135, 119152], 512],
+ 119139: [[119135, 119153], 512],
+ 119140: [[119135, 119154], 512],
+ 119141: [, 216],
+ 119142: [, 216],
+ 119143: [, 1],
+ 119144: [, 1],
+ 119145: [, 1],
+ 119149: [, 226],
+ 119150: [, 216],
+ 119151: [, 216],
+ 119152: [, 216],
+ 119153: [, 216],
+ 119154: [, 216],
+ 119163: [, 220],
+ 119164: [, 220],
+ 119165: [, 220],
+ 119166: [, 220],
+ 119167: [, 220],
+ 119168: [, 220],
+ 119169: [, 220],
+ 119170: [, 220],
+ 119173: [, 230],
+ 119174: [, 230],
+ 119175: [, 230],
+ 119176: [, 230],
+ 119177: [, 230],
+ 119178: [, 220],
+ 119179: [, 220],
+ 119210: [, 230],
+ 119211: [, 230],
+ 119212: [, 230],
+ 119213: [, 230],
+ 119227: [[119225, 119141], 512],
+ 119228: [[119226, 119141], 512],
+ 119229: [[119227, 119150], 512],
+ 119230: [[119228, 119150], 512],
+ 119231: [[119227, 119151], 512],
+ 119232: [[119228, 119151], 512]
+ },
+ 53760: { 119362: [, 230], 119363: [, 230], 119364: [, 230] },
+ 54272: {
+ 119808: [[65], 256],
+ 119809: [[66], 256],
+ 119810: [[67], 256],
+ 119811: [[68], 256],
+ 119812: [[69], 256],
+ 119813: [[70], 256],
+ 119814: [[71], 256],
+ 119815: [[72], 256],
+ 119816: [[73], 256],
+ 119817: [[74], 256],
+ 119818: [[75], 256],
+ 119819: [[76], 256],
+ 119820: [[77], 256],
+ 119821: [[78], 256],
+ 119822: [[79], 256],
+ 119823: [[80], 256],
+ 119824: [[81], 256],
+ 119825: [[82], 256],
+ 119826: [[83], 256],
+ 119827: [[84], 256],
+ 119828: [[85], 256],
+ 119829: [[86], 256],
+ 119830: [[87], 256],
+ 119831: [[88], 256],
+ 119832: [[89], 256],
+ 119833: [[90], 256],
+ 119834: [[97], 256],
+ 119835: [[98], 256],
+ 119836: [[99], 256],
+ 119837: [[100], 256],
+ 119838: [[101], 256],
+ 119839: [[102], 256],
+ 119840: [[103], 256],
+ 119841: [[104], 256],
+ 119842: [[105], 256],
+ 119843: [[106], 256],
+ 119844: [[107], 256],
+ 119845: [[108], 256],
+ 119846: [[109], 256],
+ 119847: [[110], 256],
+ 119848: [[111], 256],
+ 119849: [[112], 256],
+ 119850: [[113], 256],
+ 119851: [[114], 256],
+ 119852: [[115], 256],
+ 119853: [[116], 256],
+ 119854: [[117], 256],
+ 119855: [[118], 256],
+ 119856: [[119], 256],
+ 119857: [[120], 256],
+ 119858: [[121], 256],
+ 119859: [[122], 256],
+ 119860: [[65], 256],
+ 119861: [[66], 256],
+ 119862: [[67], 256],
+ 119863: [[68], 256],
+ 119864: [[69], 256],
+ 119865: [[70], 256],
+ 119866: [[71], 256],
+ 119867: [[72], 256],
+ 119868: [[73], 256],
+ 119869: [[74], 256],
+ 119870: [[75], 256],
+ 119871: [[76], 256],
+ 119872: [[77], 256],
+ 119873: [[78], 256],
+ 119874: [[79], 256],
+ 119875: [[80], 256],
+ 119876: [[81], 256],
+ 119877: [[82], 256],
+ 119878: [[83], 256],
+ 119879: [[84], 256],
+ 119880: [[85], 256],
+ 119881: [[86], 256],
+ 119882: [[87], 256],
+ 119883: [[88], 256],
+ 119884: [[89], 256],
+ 119885: [[90], 256],
+ 119886: [[97], 256],
+ 119887: [[98], 256],
+ 119888: [[99], 256],
+ 119889: [[100], 256],
+ 119890: [[101], 256],
+ 119891: [[102], 256],
+ 119892: [[103], 256],
+ 119894: [[105], 256],
+ 119895: [[106], 256],
+ 119896: [[107], 256],
+ 119897: [[108], 256],
+ 119898: [[109], 256],
+ 119899: [[110], 256],
+ 119900: [[111], 256],
+ 119901: [[112], 256],
+ 119902: [[113], 256],
+ 119903: [[114], 256],
+ 119904: [[115], 256],
+ 119905: [[116], 256],
+ 119906: [[117], 256],
+ 119907: [[118], 256],
+ 119908: [[119], 256],
+ 119909: [[120], 256],
+ 119910: [[121], 256],
+ 119911: [[122], 256],
+ 119912: [[65], 256],
+ 119913: [[66], 256],
+ 119914: [[67], 256],
+ 119915: [[68], 256],
+ 119916: [[69], 256],
+ 119917: [[70], 256],
+ 119918: [[71], 256],
+ 119919: [[72], 256],
+ 119920: [[73], 256],
+ 119921: [[74], 256],
+ 119922: [[75], 256],
+ 119923: [[76], 256],
+ 119924: [[77], 256],
+ 119925: [[78], 256],
+ 119926: [[79], 256],
+ 119927: [[80], 256],
+ 119928: [[81], 256],
+ 119929: [[82], 256],
+ 119930: [[83], 256],
+ 119931: [[84], 256],
+ 119932: [[85], 256],
+ 119933: [[86], 256],
+ 119934: [[87], 256],
+ 119935: [[88], 256],
+ 119936: [[89], 256],
+ 119937: [[90], 256],
+ 119938: [[97], 256],
+ 119939: [[98], 256],
+ 119940: [[99], 256],
+ 119941: [[100], 256],
+ 119942: [[101], 256],
+ 119943: [[102], 256],
+ 119944: [[103], 256],
+ 119945: [[104], 256],
+ 119946: [[105], 256],
+ 119947: [[106], 256],
+ 119948: [[107], 256],
+ 119949: [[108], 256],
+ 119950: [[109], 256],
+ 119951: [[110], 256],
+ 119952: [[111], 256],
+ 119953: [[112], 256],
+ 119954: [[113], 256],
+ 119955: [[114], 256],
+ 119956: [[115], 256],
+ 119957: [[116], 256],
+ 119958: [[117], 256],
+ 119959: [[118], 256],
+ 119960: [[119], 256],
+ 119961: [[120], 256],
+ 119962: [[121], 256],
+ 119963: [[122], 256],
+ 119964: [[65], 256],
+ 119966: [[67], 256],
+ 119967: [[68], 256],
+ 119970: [[71], 256],
+ 119973: [[74], 256],
+ 119974: [[75], 256],
+ 119977: [[78], 256],
+ 119978: [[79], 256],
+ 119979: [[80], 256],
+ 119980: [[81], 256],
+ 119982: [[83], 256],
+ 119983: [[84], 256],
+ 119984: [[85], 256],
+ 119985: [[86], 256],
+ 119986: [[87], 256],
+ 119987: [[88], 256],
+ 119988: [[89], 256],
+ 119989: [[90], 256],
+ 119990: [[97], 256],
+ 119991: [[98], 256],
+ 119992: [[99], 256],
+ 119993: [[100], 256],
+ 119995: [[102], 256],
+ 119997: [[104], 256],
+ 119998: [[105], 256],
+ 119999: [[106], 256],
+ 120000: [[107], 256],
+ 120001: [[108], 256],
+ 120002: [[109], 256],
+ 120003: [[110], 256],
+ 120005: [[112], 256],
+ 120006: [[113], 256],
+ 120007: [[114], 256],
+ 120008: [[115], 256],
+ 120009: [[116], 256],
+ 120010: [[117], 256],
+ 120011: [[118], 256],
+ 120012: [[119], 256],
+ 120013: [[120], 256],
+ 120014: [[121], 256],
+ 120015: [[122], 256],
+ 120016: [[65], 256],
+ 120017: [[66], 256],
+ 120018: [[67], 256],
+ 120019: [[68], 256],
+ 120020: [[69], 256],
+ 120021: [[70], 256],
+ 120022: [[71], 256],
+ 120023: [[72], 256],
+ 120024: [[73], 256],
+ 120025: [[74], 256],
+ 120026: [[75], 256],
+ 120027: [[76], 256],
+ 120028: [[77], 256],
+ 120029: [[78], 256],
+ 120030: [[79], 256],
+ 120031: [[80], 256],
+ 120032: [[81], 256],
+ 120033: [[82], 256],
+ 120034: [[83], 256],
+ 120035: [[84], 256],
+ 120036: [[85], 256],
+ 120037: [[86], 256],
+ 120038: [[87], 256],
+ 120039: [[88], 256],
+ 120040: [[89], 256],
+ 120041: [[90], 256],
+ 120042: [[97], 256],
+ 120043: [[98], 256],
+ 120044: [[99], 256],
+ 120045: [[100], 256],
+ 120046: [[101], 256],
+ 120047: [[102], 256],
+ 120048: [[103], 256],
+ 120049: [[104], 256],
+ 120050: [[105], 256],
+ 120051: [[106], 256],
+ 120052: [[107], 256],
+ 120053: [[108], 256],
+ 120054: [[109], 256],
+ 120055: [[110], 256],
+ 120056: [[111], 256],
+ 120057: [[112], 256],
+ 120058: [[113], 256],
+ 120059: [[114], 256],
+ 120060: [[115], 256],
+ 120061: [[116], 256],
+ 120062: [[117], 256],
+ 120063: [[118], 256]
+ },
+ 54528: {
+ 120064: [[119], 256],
+ 120065: [[120], 256],
+ 120066: [[121], 256],
+ 120067: [[122], 256],
+ 120068: [[65], 256],
+ 120069: [[66], 256],
+ 120071: [[68], 256],
+ 120072: [[69], 256],
+ 120073: [[70], 256],
+ 120074: [[71], 256],
+ 120077: [[74], 256],
+ 120078: [[75], 256],
+ 120079: [[76], 256],
+ 120080: [[77], 256],
+ 120081: [[78], 256],
+ 120082: [[79], 256],
+ 120083: [[80], 256],
+ 120084: [[81], 256],
+ 120086: [[83], 256],
+ 120087: [[84], 256],
+ 120088: [[85], 256],
+ 120089: [[86], 256],
+ 120090: [[87], 256],
+ 120091: [[88], 256],
+ 120092: [[89], 256],
+ 120094: [[97], 256],
+ 120095: [[98], 256],
+ 120096: [[99], 256],
+ 120097: [[100], 256],
+ 120098: [[101], 256],
+ 120099: [[102], 256],
+ 120100: [[103], 256],
+ 120101: [[104], 256],
+ 120102: [[105], 256],
+ 120103: [[106], 256],
+ 120104: [[107], 256],
+ 120105: [[108], 256],
+ 120106: [[109], 256],
+ 120107: [[110], 256],
+ 120108: [[111], 256],
+ 120109: [[112], 256],
+ 120110: [[113], 256],
+ 120111: [[114], 256],
+ 120112: [[115], 256],
+ 120113: [[116], 256],
+ 120114: [[117], 256],
+ 120115: [[118], 256],
+ 120116: [[119], 256],
+ 120117: [[120], 256],
+ 120118: [[121], 256],
+ 120119: [[122], 256],
+ 120120: [[65], 256],
+ 120121: [[66], 256],
+ 120123: [[68], 256],
+ 120124: [[69], 256],
+ 120125: [[70], 256],
+ 120126: [[71], 256],
+ 120128: [[73], 256],
+ 120129: [[74], 256],
+ 120130: [[75], 256],
+ 120131: [[76], 256],
+ 120132: [[77], 256],
+ 120134: [[79], 256],
+ 120138: [[83], 256],
+ 120139: [[84], 256],
+ 120140: [[85], 256],
+ 120141: [[86], 256],
+ 120142: [[87], 256],
+ 120143: [[88], 256],
+ 120144: [[89], 256],
+ 120146: [[97], 256],
+ 120147: [[98], 256],
+ 120148: [[99], 256],
+ 120149: [[100], 256],
+ 120150: [[101], 256],
+ 120151: [[102], 256],
+ 120152: [[103], 256],
+ 120153: [[104], 256],
+ 120154: [[105], 256],
+ 120155: [[106], 256],
+ 120156: [[107], 256],
+ 120157: [[108], 256],
+ 120158: [[109], 256],
+ 120159: [[110], 256],
+ 120160: [[111], 256],
+ 120161: [[112], 256],
+ 120162: [[113], 256],
+ 120163: [[114], 256],
+ 120164: [[115], 256],
+ 120165: [[116], 256],
+ 120166: [[117], 256],
+ 120167: [[118], 256],
+ 120168: [[119], 256],
+ 120169: [[120], 256],
+ 120170: [[121], 256],
+ 120171: [[122], 256],
+ 120172: [[65], 256],
+ 120173: [[66], 256],
+ 120174: [[67], 256],
+ 120175: [[68], 256],
+ 120176: [[69], 256],
+ 120177: [[70], 256],
+ 120178: [[71], 256],
+ 120179: [[72], 256],
+ 120180: [[73], 256],
+ 120181: [[74], 256],
+ 120182: [[75], 256],
+ 120183: [[76], 256],
+ 120184: [[77], 256],
+ 120185: [[78], 256],
+ 120186: [[79], 256],
+ 120187: [[80], 256],
+ 120188: [[81], 256],
+ 120189: [[82], 256],
+ 120190: [[83], 256],
+ 120191: [[84], 256],
+ 120192: [[85], 256],
+ 120193: [[86], 256],
+ 120194: [[87], 256],
+ 120195: [[88], 256],
+ 120196: [[89], 256],
+ 120197: [[90], 256],
+ 120198: [[97], 256],
+ 120199: [[98], 256],
+ 120200: [[99], 256],
+ 120201: [[100], 256],
+ 120202: [[101], 256],
+ 120203: [[102], 256],
+ 120204: [[103], 256],
+ 120205: [[104], 256],
+ 120206: [[105], 256],
+ 120207: [[106], 256],
+ 120208: [[107], 256],
+ 120209: [[108], 256],
+ 120210: [[109], 256],
+ 120211: [[110], 256],
+ 120212: [[111], 256],
+ 120213: [[112], 256],
+ 120214: [[113], 256],
+ 120215: [[114], 256],
+ 120216: [[115], 256],
+ 120217: [[116], 256],
+ 120218: [[117], 256],
+ 120219: [[118], 256],
+ 120220: [[119], 256],
+ 120221: [[120], 256],
+ 120222: [[121], 256],
+ 120223: [[122], 256],
+ 120224: [[65], 256],
+ 120225: [[66], 256],
+ 120226: [[67], 256],
+ 120227: [[68], 256],
+ 120228: [[69], 256],
+ 120229: [[70], 256],
+ 120230: [[71], 256],
+ 120231: [[72], 256],
+ 120232: [[73], 256],
+ 120233: [[74], 256],
+ 120234: [[75], 256],
+ 120235: [[76], 256],
+ 120236: [[77], 256],
+ 120237: [[78], 256],
+ 120238: [[79], 256],
+ 120239: [[80], 256],
+ 120240: [[81], 256],
+ 120241: [[82], 256],
+ 120242: [[83], 256],
+ 120243: [[84], 256],
+ 120244: [[85], 256],
+ 120245: [[86], 256],
+ 120246: [[87], 256],
+ 120247: [[88], 256],
+ 120248: [[89], 256],
+ 120249: [[90], 256],
+ 120250: [[97], 256],
+ 120251: [[98], 256],
+ 120252: [[99], 256],
+ 120253: [[100], 256],
+ 120254: [[101], 256],
+ 120255: [[102], 256],
+ 120256: [[103], 256],
+ 120257: [[104], 256],
+ 120258: [[105], 256],
+ 120259: [[106], 256],
+ 120260: [[107], 256],
+ 120261: [[108], 256],
+ 120262: [[109], 256],
+ 120263: [[110], 256],
+ 120264: [[111], 256],
+ 120265: [[112], 256],
+ 120266: [[113], 256],
+ 120267: [[114], 256],
+ 120268: [[115], 256],
+ 120269: [[116], 256],
+ 120270: [[117], 256],
+ 120271: [[118], 256],
+ 120272: [[119], 256],
+ 120273: [[120], 256],
+ 120274: [[121], 256],
+ 120275: [[122], 256],
+ 120276: [[65], 256],
+ 120277: [[66], 256],
+ 120278: [[67], 256],
+ 120279: [[68], 256],
+ 120280: [[69], 256],
+ 120281: [[70], 256],
+ 120282: [[71], 256],
+ 120283: [[72], 256],
+ 120284: [[73], 256],
+ 120285: [[74], 256],
+ 120286: [[75], 256],
+ 120287: [[76], 256],
+ 120288: [[77], 256],
+ 120289: [[78], 256],
+ 120290: [[79], 256],
+ 120291: [[80], 256],
+ 120292: [[81], 256],
+ 120293: [[82], 256],
+ 120294: [[83], 256],
+ 120295: [[84], 256],
+ 120296: [[85], 256],
+ 120297: [[86], 256],
+ 120298: [[87], 256],
+ 120299: [[88], 256],
+ 120300: [[89], 256],
+ 120301: [[90], 256],
+ 120302: [[97], 256],
+ 120303: [[98], 256],
+ 120304: [[99], 256],
+ 120305: [[100], 256],
+ 120306: [[101], 256],
+ 120307: [[102], 256],
+ 120308: [[103], 256],
+ 120309: [[104], 256],
+ 120310: [[105], 256],
+ 120311: [[106], 256],
+ 120312: [[107], 256],
+ 120313: [[108], 256],
+ 120314: [[109], 256],
+ 120315: [[110], 256],
+ 120316: [[111], 256],
+ 120317: [[112], 256],
+ 120318: [[113], 256],
+ 120319: [[114], 256]
+ },
+ 54784: {
+ 120320: [[115], 256],
+ 120321: [[116], 256],
+ 120322: [[117], 256],
+ 120323: [[118], 256],
+ 120324: [[119], 256],
+ 120325: [[120], 256],
+ 120326: [[121], 256],
+ 120327: [[122], 256],
+ 120328: [[65], 256],
+ 120329: [[66], 256],
+ 120330: [[67], 256],
+ 120331: [[68], 256],
+ 120332: [[69], 256],
+ 120333: [[70], 256],
+ 120334: [[71], 256],
+ 120335: [[72], 256],
+ 120336: [[73], 256],
+ 120337: [[74], 256],
+ 120338: [[75], 256],
+ 120339: [[76], 256],
+ 120340: [[77], 256],
+ 120341: [[78], 256],
+ 120342: [[79], 256],
+ 120343: [[80], 256],
+ 120344: [[81], 256],
+ 120345: [[82], 256],
+ 120346: [[83], 256],
+ 120347: [[84], 256],
+ 120348: [[85], 256],
+ 120349: [[86], 256],
+ 120350: [[87], 256],
+ 120351: [[88], 256],
+ 120352: [[89], 256],
+ 120353: [[90], 256],
+ 120354: [[97], 256],
+ 120355: [[98], 256],
+ 120356: [[99], 256],
+ 120357: [[100], 256],
+ 120358: [[101], 256],
+ 120359: [[102], 256],
+ 120360: [[103], 256],
+ 120361: [[104], 256],
+ 120362: [[105], 256],
+ 120363: [[106], 256],
+ 120364: [[107], 256],
+ 120365: [[108], 256],
+ 120366: [[109], 256],
+ 120367: [[110], 256],
+ 120368: [[111], 256],
+ 120369: [[112], 256],
+ 120370: [[113], 256],
+ 120371: [[114], 256],
+ 120372: [[115], 256],
+ 120373: [[116], 256],
+ 120374: [[117], 256],
+ 120375: [[118], 256],
+ 120376: [[119], 256],
+ 120377: [[120], 256],
+ 120378: [[121], 256],
+ 120379: [[122], 256],
+ 120380: [[65], 256],
+ 120381: [[66], 256],
+ 120382: [[67], 256],
+ 120383: [[68], 256],
+ 120384: [[69], 256],
+ 120385: [[70], 256],
+ 120386: [[71], 256],
+ 120387: [[72], 256],
+ 120388: [[73], 256],
+ 120389: [[74], 256],
+ 120390: [[75], 256],
+ 120391: [[76], 256],
+ 120392: [[77], 256],
+ 120393: [[78], 256],
+ 120394: [[79], 256],
+ 120395: [[80], 256],
+ 120396: [[81], 256],
+ 120397: [[82], 256],
+ 120398: [[83], 256],
+ 120399: [[84], 256],
+ 120400: [[85], 256],
+ 120401: [[86], 256],
+ 120402: [[87], 256],
+ 120403: [[88], 256],
+ 120404: [[89], 256],
+ 120405: [[90], 256],
+ 120406: [[97], 256],
+ 120407: [[98], 256],
+ 120408: [[99], 256],
+ 120409: [[100], 256],
+ 120410: [[101], 256],
+ 120411: [[102], 256],
+ 120412: [[103], 256],
+ 120413: [[104], 256],
+ 120414: [[105], 256],
+ 120415: [[106], 256],
+ 120416: [[107], 256],
+ 120417: [[108], 256],
+ 120418: [[109], 256],
+ 120419: [[110], 256],
+ 120420: [[111], 256],
+ 120421: [[112], 256],
+ 120422: [[113], 256],
+ 120423: [[114], 256],
+ 120424: [[115], 256],
+ 120425: [[116], 256],
+ 120426: [[117], 256],
+ 120427: [[118], 256],
+ 120428: [[119], 256],
+ 120429: [[120], 256],
+ 120430: [[121], 256],
+ 120431: [[122], 256],
+ 120432: [[65], 256],
+ 120433: [[66], 256],
+ 120434: [[67], 256],
+ 120435: [[68], 256],
+ 120436: [[69], 256],
+ 120437: [[70], 256],
+ 120438: [[71], 256],
+ 120439: [[72], 256],
+ 120440: [[73], 256],
+ 120441: [[74], 256],
+ 120442: [[75], 256],
+ 120443: [[76], 256],
+ 120444: [[77], 256],
+ 120445: [[78], 256],
+ 120446: [[79], 256],
+ 120447: [[80], 256],
+ 120448: [[81], 256],
+ 120449: [[82], 256],
+ 120450: [[83], 256],
+ 120451: [[84], 256],
+ 120452: [[85], 256],
+ 120453: [[86], 256],
+ 120454: [[87], 256],
+ 120455: [[88], 256],
+ 120456: [[89], 256],
+ 120457: [[90], 256],
+ 120458: [[97], 256],
+ 120459: [[98], 256],
+ 120460: [[99], 256],
+ 120461: [[100], 256],
+ 120462: [[101], 256],
+ 120463: [[102], 256],
+ 120464: [[103], 256],
+ 120465: [[104], 256],
+ 120466: [[105], 256],
+ 120467: [[106], 256],
+ 120468: [[107], 256],
+ 120469: [[108], 256],
+ 120470: [[109], 256],
+ 120471: [[110], 256],
+ 120472: [[111], 256],
+ 120473: [[112], 256],
+ 120474: [[113], 256],
+ 120475: [[114], 256],
+ 120476: [[115], 256],
+ 120477: [[116], 256],
+ 120478: [[117], 256],
+ 120479: [[118], 256],
+ 120480: [[119], 256],
+ 120481: [[120], 256],
+ 120482: [[121], 256],
+ 120483: [[122], 256],
+ 120484: [[305], 256],
+ 120485: [[567], 256],
+ 120488: [[913], 256],
+ 120489: [[914], 256],
+ 120490: [[915], 256],
+ 120491: [[916], 256],
+ 120492: [[917], 256],
+ 120493: [[918], 256],
+ 120494: [[919], 256],
+ 120495: [[920], 256],
+ 120496: [[921], 256],
+ 120497: [[922], 256],
+ 120498: [[923], 256],
+ 120499: [[924], 256],
+ 120500: [[925], 256],
+ 120501: [[926], 256],
+ 120502: [[927], 256],
+ 120503: [[928], 256],
+ 120504: [[929], 256],
+ 120505: [[1012], 256],
+ 120506: [[931], 256],
+ 120507: [[932], 256],
+ 120508: [[933], 256],
+ 120509: [[934], 256],
+ 120510: [[935], 256],
+ 120511: [[936], 256],
+ 120512: [[937], 256],
+ 120513: [[8711], 256],
+ 120514: [[945], 256],
+ 120515: [[946], 256],
+ 120516: [[947], 256],
+ 120517: [[948], 256],
+ 120518: [[949], 256],
+ 120519: [[950], 256],
+ 120520: [[951], 256],
+ 120521: [[952], 256],
+ 120522: [[953], 256],
+ 120523: [[954], 256],
+ 120524: [[955], 256],
+ 120525: [[956], 256],
+ 120526: [[957], 256],
+ 120527: [[958], 256],
+ 120528: [[959], 256],
+ 120529: [[960], 256],
+ 120530: [[961], 256],
+ 120531: [[962], 256],
+ 120532: [[963], 256],
+ 120533: [[964], 256],
+ 120534: [[965], 256],
+ 120535: [[966], 256],
+ 120536: [[967], 256],
+ 120537: [[968], 256],
+ 120538: [[969], 256],
+ 120539: [[8706], 256],
+ 120540: [[1013], 256],
+ 120541: [[977], 256],
+ 120542: [[1008], 256],
+ 120543: [[981], 256],
+ 120544: [[1009], 256],
+ 120545: [[982], 256],
+ 120546: [[913], 256],
+ 120547: [[914], 256],
+ 120548: [[915], 256],
+ 120549: [[916], 256],
+ 120550: [[917], 256],
+ 120551: [[918], 256],
+ 120552: [[919], 256],
+ 120553: [[920], 256],
+ 120554: [[921], 256],
+ 120555: [[922], 256],
+ 120556: [[923], 256],
+ 120557: [[924], 256],
+ 120558: [[925], 256],
+ 120559: [[926], 256],
+ 120560: [[927], 256],
+ 120561: [[928], 256],
+ 120562: [[929], 256],
+ 120563: [[1012], 256],
+ 120564: [[931], 256],
+ 120565: [[932], 256],
+ 120566: [[933], 256],
+ 120567: [[934], 256],
+ 120568: [[935], 256],
+ 120569: [[936], 256],
+ 120570: [[937], 256],
+ 120571: [[8711], 256],
+ 120572: [[945], 256],
+ 120573: [[946], 256],
+ 120574: [[947], 256],
+ 120575: [[948], 256]
+ },
+ 55040: {
+ 120576: [[949], 256],
+ 120577: [[950], 256],
+ 120578: [[951], 256],
+ 120579: [[952], 256],
+ 120580: [[953], 256],
+ 120581: [[954], 256],
+ 120582: [[955], 256],
+ 120583: [[956], 256],
+ 120584: [[957], 256],
+ 120585: [[958], 256],
+ 120586: [[959], 256],
+ 120587: [[960], 256],
+ 120588: [[961], 256],
+ 120589: [[962], 256],
+ 120590: [[963], 256],
+ 120591: [[964], 256],
+ 120592: [[965], 256],
+ 120593: [[966], 256],
+ 120594: [[967], 256],
+ 120595: [[968], 256],
+ 120596: [[969], 256],
+ 120597: [[8706], 256],
+ 120598: [[1013], 256],
+ 120599: [[977], 256],
+ 120600: [[1008], 256],
+ 120601: [[981], 256],
+ 120602: [[1009], 256],
+ 120603: [[982], 256],
+ 120604: [[913], 256],
+ 120605: [[914], 256],
+ 120606: [[915], 256],
+ 120607: [[916], 256],
+ 120608: [[917], 256],
+ 120609: [[918], 256],
+ 120610: [[919], 256],
+ 120611: [[920], 256],
+ 120612: [[921], 256],
+ 120613: [[922], 256],
+ 120614: [[923], 256],
+ 120615: [[924], 256],
+ 120616: [[925], 256],
+ 120617: [[926], 256],
+ 120618: [[927], 256],
+ 120619: [[928], 256],
+ 120620: [[929], 256],
+ 120621: [[1012], 256],
+ 120622: [[931], 256],
+ 120623: [[932], 256],
+ 120624: [[933], 256],
+ 120625: [[934], 256],
+ 120626: [[935], 256],
+ 120627: [[936], 256],
+ 120628: [[937], 256],
+ 120629: [[8711], 256],
+ 120630: [[945], 256],
+ 120631: [[946], 256],
+ 120632: [[947], 256],
+ 120633: [[948], 256],
+ 120634: [[949], 256],
+ 120635: [[950], 256],
+ 120636: [[951], 256],
+ 120637: [[952], 256],
+ 120638: [[953], 256],
+ 120639: [[954], 256],
+ 120640: [[955], 256],
+ 120641: [[956], 256],
+ 120642: [[957], 256],
+ 120643: [[958], 256],
+ 120644: [[959], 256],
+ 120645: [[960], 256],
+ 120646: [[961], 256],
+ 120647: [[962], 256],
+ 120648: [[963], 256],
+ 120649: [[964], 256],
+ 120650: [[965], 256],
+ 120651: [[966], 256],
+ 120652: [[967], 256],
+ 120653: [[968], 256],
+ 120654: [[969], 256],
+ 120655: [[8706], 256],
+ 120656: [[1013], 256],
+ 120657: [[977], 256],
+ 120658: [[1008], 256],
+ 120659: [[981], 256],
+ 120660: [[1009], 256],
+ 120661: [[982], 256],
+ 120662: [[913], 256],
+ 120663: [[914], 256],
+ 120664: [[915], 256],
+ 120665: [[916], 256],
+ 120666: [[917], 256],
+ 120667: [[918], 256],
+ 120668: [[919], 256],
+ 120669: [[920], 256],
+ 120670: [[921], 256],
+ 120671: [[922], 256],
+ 120672: [[923], 256],
+ 120673: [[924], 256],
+ 120674: [[925], 256],
+ 120675: [[926], 256],
+ 120676: [[927], 256],
+ 120677: [[928], 256],
+ 120678: [[929], 256],
+ 120679: [[1012], 256],
+ 120680: [[931], 256],
+ 120681: [[932], 256],
+ 120682: [[933], 256],
+ 120683: [[934], 256],
+ 120684: [[935], 256],
+ 120685: [[936], 256],
+ 120686: [[937], 256],
+ 120687: [[8711], 256],
+ 120688: [[945], 256],
+ 120689: [[946], 256],
+ 120690: [[947], 256],
+ 120691: [[948], 256],
+ 120692: [[949], 256],
+ 120693: [[950], 256],
+ 120694: [[951], 256],
+ 120695: [[952], 256],
+ 120696: [[953], 256],
+ 120697: [[954], 256],
+ 120698: [[955], 256],
+ 120699: [[956], 256],
+ 120700: [[957], 256],
+ 120701: [[958], 256],
+ 120702: [[959], 256],
+ 120703: [[960], 256],
+ 120704: [[961], 256],
+ 120705: [[962], 256],
+ 120706: [[963], 256],
+ 120707: [[964], 256],
+ 120708: [[965], 256],
+ 120709: [[966], 256],
+ 120710: [[967], 256],
+ 120711: [[968], 256],
+ 120712: [[969], 256],
+ 120713: [[8706], 256],
+ 120714: [[1013], 256],
+ 120715: [[977], 256],
+ 120716: [[1008], 256],
+ 120717: [[981], 256],
+ 120718: [[1009], 256],
+ 120719: [[982], 256],
+ 120720: [[913], 256],
+ 120721: [[914], 256],
+ 120722: [[915], 256],
+ 120723: [[916], 256],
+ 120724: [[917], 256],
+ 120725: [[918], 256],
+ 120726: [[919], 256],
+ 120727: [[920], 256],
+ 120728: [[921], 256],
+ 120729: [[922], 256],
+ 120730: [[923], 256],
+ 120731: [[924], 256],
+ 120732: [[925], 256],
+ 120733: [[926], 256],
+ 120734: [[927], 256],
+ 120735: [[928], 256],
+ 120736: [[929], 256],
+ 120737: [[1012], 256],
+ 120738: [[931], 256],
+ 120739: [[932], 256],
+ 120740: [[933], 256],
+ 120741: [[934], 256],
+ 120742: [[935], 256],
+ 120743: [[936], 256],
+ 120744: [[937], 256],
+ 120745: [[8711], 256],
+ 120746: [[945], 256],
+ 120747: [[946], 256],
+ 120748: [[947], 256],
+ 120749: [[948], 256],
+ 120750: [[949], 256],
+ 120751: [[950], 256],
+ 120752: [[951], 256],
+ 120753: [[952], 256],
+ 120754: [[953], 256],
+ 120755: [[954], 256],
+ 120756: [[955], 256],
+ 120757: [[956], 256],
+ 120758: [[957], 256],
+ 120759: [[958], 256],
+ 120760: [[959], 256],
+ 120761: [[960], 256],
+ 120762: [[961], 256],
+ 120763: [[962], 256],
+ 120764: [[963], 256],
+ 120765: [[964], 256],
+ 120766: [[965], 256],
+ 120767: [[966], 256],
+ 120768: [[967], 256],
+ 120769: [[968], 256],
+ 120770: [[969], 256],
+ 120771: [[8706], 256],
+ 120772: [[1013], 256],
+ 120773: [[977], 256],
+ 120774: [[1008], 256],
+ 120775: [[981], 256],
+ 120776: [[1009], 256],
+ 120777: [[982], 256],
+ 120778: [[988], 256],
+ 120779: [[989], 256],
+ 120782: [[48], 256],
+ 120783: [[49], 256],
+ 120784: [[50], 256],
+ 120785: [[51], 256],
+ 120786: [[52], 256],
+ 120787: [[53], 256],
+ 120788: [[54], 256],
+ 120789: [[55], 256],
+ 120790: [[56], 256],
+ 120791: [[57], 256],
+ 120792: [[48], 256],
+ 120793: [[49], 256],
+ 120794: [[50], 256],
+ 120795: [[51], 256],
+ 120796: [[52], 256],
+ 120797: [[53], 256],
+ 120798: [[54], 256],
+ 120799: [[55], 256],
+ 120800: [[56], 256],
+ 120801: [[57], 256],
+ 120802: [[48], 256],
+ 120803: [[49], 256],
+ 120804: [[50], 256],
+ 120805: [[51], 256],
+ 120806: [[52], 256],
+ 120807: [[53], 256],
+ 120808: [[54], 256],
+ 120809: [[55], 256],
+ 120810: [[56], 256],
+ 120811: [[57], 256],
+ 120812: [[48], 256],
+ 120813: [[49], 256],
+ 120814: [[50], 256],
+ 120815: [[51], 256],
+ 120816: [[52], 256],
+ 120817: [[53], 256],
+ 120818: [[54], 256],
+ 120819: [[55], 256],
+ 120820: [[56], 256],
+ 120821: [[57], 256],
+ 120822: [[48], 256],
+ 120823: [[49], 256],
+ 120824: [[50], 256],
+ 120825: [[51], 256],
+ 120826: [[52], 256],
+ 120827: [[53], 256],
+ 120828: [[54], 256],
+ 120829: [[55], 256],
+ 120830: [[56], 256],
+ 120831: [[57], 256]
+ },
+ 60928: {
+ 126464: [[1575], 256],
+ 126465: [[1576], 256],
+ 126466: [[1580], 256],
+ 126467: [[1583], 256],
+ 126469: [[1608], 256],
+ 126470: [[1586], 256],
+ 126471: [[1581], 256],
+ 126472: [[1591], 256],
+ 126473: [[1610], 256],
+ 126474: [[1603], 256],
+ 126475: [[1604], 256],
+ 126476: [[1605], 256],
+ 126477: [[1606], 256],
+ 126478: [[1587], 256],
+ 126479: [[1593], 256],
+ 126480: [[1601], 256],
+ 126481: [[1589], 256],
+ 126482: [[1602], 256],
+ 126483: [[1585], 256],
+ 126484: [[1588], 256],
+ 126485: [[1578], 256],
+ 126486: [[1579], 256],
+ 126487: [[1582], 256],
+ 126488: [[1584], 256],
+ 126489: [[1590], 256],
+ 126490: [[1592], 256],
+ 126491: [[1594], 256],
+ 126492: [[1646], 256],
+ 126493: [[1722], 256],
+ 126494: [[1697], 256],
+ 126495: [[1647], 256],
+ 126497: [[1576], 256],
+ 126498: [[1580], 256],
+ 126500: [[1607], 256],
+ 126503: [[1581], 256],
+ 126505: [[1610], 256],
+ 126506: [[1603], 256],
+ 126507: [[1604], 256],
+ 126508: [[1605], 256],
+ 126509: [[1606], 256],
+ 126510: [[1587], 256],
+ 126511: [[1593], 256],
+ 126512: [[1601], 256],
+ 126513: [[1589], 256],
+ 126514: [[1602], 256],
+ 126516: [[1588], 256],
+ 126517: [[1578], 256],
+ 126518: [[1579], 256],
+ 126519: [[1582], 256],
+ 126521: [[1590], 256],
+ 126523: [[1594], 256],
+ 126530: [[1580], 256],
+ 126535: [[1581], 256],
+ 126537: [[1610], 256],
+ 126539: [[1604], 256],
+ 126541: [[1606], 256],
+ 126542: [[1587], 256],
+ 126543: [[1593], 256],
+ 126545: [[1589], 256],
+ 126546: [[1602], 256],
+ 126548: [[1588], 256],
+ 126551: [[1582], 256],
+ 126553: [[1590], 256],
+ 126555: [[1594], 256],
+ 126557: [[1722], 256],
+ 126559: [[1647], 256],
+ 126561: [[1576], 256],
+ 126562: [[1580], 256],
+ 126564: [[1607], 256],
+ 126567: [[1581], 256],
+ 126568: [[1591], 256],
+ 126569: [[1610], 256],
+ 126570: [[1603], 256],
+ 126572: [[1605], 256],
+ 126573: [[1606], 256],
+ 126574: [[1587], 256],
+ 126575: [[1593], 256],
+ 126576: [[1601], 256],
+ 126577: [[1589], 256],
+ 126578: [[1602], 256],
+ 126580: [[1588], 256],
+ 126581: [[1578], 256],
+ 126582: [[1579], 256],
+ 126583: [[1582], 256],
+ 126585: [[1590], 256],
+ 126586: [[1592], 256],
+ 126587: [[1594], 256],
+ 126588: [[1646], 256],
+ 126590: [[1697], 256],
+ 126592: [[1575], 256],
+ 126593: [[1576], 256],
+ 126594: [[1580], 256],
+ 126595: [[1583], 256],
+ 126596: [[1607], 256],
+ 126597: [[1608], 256],
+ 126598: [[1586], 256],
+ 126599: [[1581], 256],
+ 126600: [[1591], 256],
+ 126601: [[1610], 256],
+ 126603: [[1604], 256],
+ 126604: [[1605], 256],
+ 126605: [[1606], 256],
+ 126606: [[1587], 256],
+ 126607: [[1593], 256],
+ 126608: [[1601], 256],
+ 126609: [[1589], 256],
+ 126610: [[1602], 256],
+ 126611: [[1585], 256],
+ 126612: [[1588], 256],
+ 126613: [[1578], 256],
+ 126614: [[1579], 256],
+ 126615: [[1582], 256],
+ 126616: [[1584], 256],
+ 126617: [[1590], 256],
+ 126618: [[1592], 256],
+ 126619: [[1594], 256],
+ 126625: [[1576], 256],
+ 126626: [[1580], 256],
+ 126627: [[1583], 256],
+ 126629: [[1608], 256],
+ 126630: [[1586], 256],
+ 126631: [[1581], 256],
+ 126632: [[1591], 256],
+ 126633: [[1610], 256],
+ 126635: [[1604], 256],
+ 126636: [[1605], 256],
+ 126637: [[1606], 256],
+ 126638: [[1587], 256],
+ 126639: [[1593], 256],
+ 126640: [[1601], 256],
+ 126641: [[1589], 256],
+ 126642: [[1602], 256],
+ 126643: [[1585], 256],
+ 126644: [[1588], 256],
+ 126645: [[1578], 256],
+ 126646: [[1579], 256],
+ 126647: [[1582], 256],
+ 126648: [[1584], 256],
+ 126649: [[1590], 256],
+ 126650: [[1592], 256],
+ 126651: [[1594], 256]
+ },
+ 61696: {
+ 127232: [[48, 46], 256],
+ 127233: [[48, 44], 256],
+ 127234: [[49, 44], 256],
+ 127235: [[50, 44], 256],
+ 127236: [[51, 44], 256],
+ 127237: [[52, 44], 256],
+ 127238: [[53, 44], 256],
+ 127239: [[54, 44], 256],
+ 127240: [[55, 44], 256],
+ 127241: [[56, 44], 256],
+ 127242: [[57, 44], 256],
+ 127248: [[40, 65, 41], 256],
+ 127249: [[40, 66, 41], 256],
+ 127250: [[40, 67, 41], 256],
+ 127251: [[40, 68, 41], 256],
+ 127252: [[40, 69, 41], 256],
+ 127253: [[40, 70, 41], 256],
+ 127254: [[40, 71, 41], 256],
+ 127255: [[40, 72, 41], 256],
+ 127256: [[40, 73, 41], 256],
+ 127257: [[40, 74, 41], 256],
+ 127258: [[40, 75, 41], 256],
+ 127259: [[40, 76, 41], 256],
+ 127260: [[40, 77, 41], 256],
+ 127261: [[40, 78, 41], 256],
+ 127262: [[40, 79, 41], 256],
+ 127263: [[40, 80, 41], 256],
+ 127264: [[40, 81, 41], 256],
+ 127265: [[40, 82, 41], 256],
+ 127266: [[40, 83, 41], 256],
+ 127267: [[40, 84, 41], 256],
+ 127268: [[40, 85, 41], 256],
+ 127269: [[40, 86, 41], 256],
+ 127270: [[40, 87, 41], 256],
+ 127271: [[40, 88, 41], 256],
+ 127272: [[40, 89, 41], 256],
+ 127273: [[40, 90, 41], 256],
+ 127274: [[12308, 83, 12309], 256],
+ 127275: [[67], 256],
+ 127276: [[82], 256],
+ 127277: [[67, 68], 256],
+ 127278: [[87, 90], 256],
+ 127280: [[65], 256],
+ 127281: [[66], 256],
+ 127282: [[67], 256],
+ 127283: [[68], 256],
+ 127284: [[69], 256],
+ 127285: [[70], 256],
+ 127286: [[71], 256],
+ 127287: [[72], 256],
+ 127288: [[73], 256],
+ 127289: [[74], 256],
+ 127290: [[75], 256],
+ 127291: [[76], 256],
+ 127292: [[77], 256],
+ 127293: [[78], 256],
+ 127294: [[79], 256],
+ 127295: [[80], 256],
+ 127296: [[81], 256],
+ 127297: [[82], 256],
+ 127298: [[83], 256],
+ 127299: [[84], 256],
+ 127300: [[85], 256],
+ 127301: [[86], 256],
+ 127302: [[87], 256],
+ 127303: [[88], 256],
+ 127304: [[89], 256],
+ 127305: [[90], 256],
+ 127306: [[72, 86], 256],
+ 127307: [[77, 86], 256],
+ 127308: [[83, 68], 256],
+ 127309: [[83, 83], 256],
+ 127310: [[80, 80, 86], 256],
+ 127311: [[87, 67], 256],
+ 127338: [[77, 67], 256],
+ 127339: [[77, 68], 256],
+ 127376: [[68, 74], 256]
+ },
+ 61952: {
+ 127488: [[12411, 12363], 256],
+ 127489: [[12467, 12467], 256],
+ 127490: [[12469], 256],
+ 127504: [[25163], 256],
+ 127505: [[23383], 256],
+ 127506: [[21452], 256],
+ 127507: [[12487], 256],
+ 127508: [[20108], 256],
+ 127509: [[22810], 256],
+ 127510: [[35299], 256],
+ 127511: [[22825], 256],
+ 127512: [[20132], 256],
+ 127513: [[26144], 256],
+ 127514: [[28961], 256],
+ 127515: [[26009], 256],
+ 127516: [[21069], 256],
+ 127517: [[24460], 256],
+ 127518: [[20877], 256],
+ 127519: [[26032], 256],
+ 127520: [[21021], 256],
+ 127521: [[32066], 256],
+ 127522: [[29983], 256],
+ 127523: [[36009], 256],
+ 127524: [[22768], 256],
+ 127525: [[21561], 256],
+ 127526: [[28436], 256],
+ 127527: [[25237], 256],
+ 127528: [[25429], 256],
+ 127529: [[19968], 256],
+ 127530: [[19977], 256],
+ 127531: [[36938], 256],
+ 127532: [[24038], 256],
+ 127533: [[20013], 256],
+ 127534: [[21491], 256],
+ 127535: [[25351], 256],
+ 127536: [[36208], 256],
+ 127537: [[25171], 256],
+ 127538: [[31105], 256],
+ 127539: [[31354], 256],
+ 127540: [[21512], 256],
+ 127541: [[28288], 256],
+ 127542: [[26377], 256],
+ 127543: [[26376], 256],
+ 127544: [[30003], 256],
+ 127545: [[21106], 256],
+ 127546: [[21942], 256],
+ 127552: [[12308, 26412, 12309], 256],
+ 127553: [[12308, 19977, 12309], 256],
+ 127554: [[12308, 20108, 12309], 256],
+ 127555: [[12308, 23433, 12309], 256],
+ 127556: [[12308, 28857, 12309], 256],
+ 127557: [[12308, 25171, 12309], 256],
+ 127558: [[12308, 30423, 12309], 256],
+ 127559: [[12308, 21213, 12309], 256],
+ 127560: [[12308, 25943, 12309], 256],
+ 127568: [[24471], 256],
+ 127569: [[21487], 256]
+ },
+ 63488: {
+ 194560: [[20029]],
+ 194561: [[20024]],
+ 194562: [[20033]],
+ 194563: [[131362]],
+ 194564: [[20320]],
+ 194565: [[20398]],
+ 194566: [[20411]],
+ 194567: [[20482]],
+ 194568: [[20602]],
+ 194569: [[20633]],
+ 194570: [[20711]],
+ 194571: [[20687]],
+ 194572: [[13470]],
+ 194573: [[132666]],
+ 194574: [[20813]],
+ 194575: [[20820]],
+ 194576: [[20836]],
+ 194577: [[20855]],
+ 194578: [[132380]],
+ 194579: [[13497]],
+ 194580: [[20839]],
+ 194581: [[20877]],
+ 194582: [[132427]],
+ 194583: [[20887]],
+ 194584: [[20900]],
+ 194585: [[20172]],
+ 194586: [[20908]],
+ 194587: [[20917]],
+ 194588: [[168415]],
+ 194589: [[20981]],
+ 194590: [[20995]],
+ 194591: [[13535]],
+ 194592: [[21051]],
+ 194593: [[21062]],
+ 194594: [[21106]],
+ 194595: [[21111]],
+ 194596: [[13589]],
+ 194597: [[21191]],
+ 194598: [[21193]],
+ 194599: [[21220]],
+ 194600: [[21242]],
+ 194601: [[21253]],
+ 194602: [[21254]],
+ 194603: [[21271]],
+ 194604: [[21321]],
+ 194605: [[21329]],
+ 194606: [[21338]],
+ 194607: [[21363]],
+ 194608: [[21373]],
+ 194609: [[21375]],
+ 194610: [[21375]],
+ 194611: [[21375]],
+ 194612: [[133676]],
+ 194613: [[28784]],
+ 194614: [[21450]],
+ 194615: [[21471]],
+ 194616: [[133987]],
+ 194617: [[21483]],
+ 194618: [[21489]],
+ 194619: [[21510]],
+ 194620: [[21662]],
+ 194621: [[21560]],
+ 194622: [[21576]],
+ 194623: [[21608]],
+ 194624: [[21666]],
+ 194625: [[21750]],
+ 194626: [[21776]],
+ 194627: [[21843]],
+ 194628: [[21859]],
+ 194629: [[21892]],
+ 194630: [[21892]],
+ 194631: [[21913]],
+ 194632: [[21931]],
+ 194633: [[21939]],
+ 194634: [[21954]],
+ 194635: [[22294]],
+ 194636: [[22022]],
+ 194637: [[22295]],
+ 194638: [[22097]],
+ 194639: [[22132]],
+ 194640: [[20999]],
+ 194641: [[22766]],
+ 194642: [[22478]],
+ 194643: [[22516]],
+ 194644: [[22541]],
+ 194645: [[22411]],
+ 194646: [[22578]],
+ 194647: [[22577]],
+ 194648: [[22700]],
+ 194649: [[136420]],
+ 194650: [[22770]],
+ 194651: [[22775]],
+ 194652: [[22790]],
+ 194653: [[22810]],
+ 194654: [[22818]],
+ 194655: [[22882]],
+ 194656: [[136872]],
+ 194657: [[136938]],
+ 194658: [[23020]],
+ 194659: [[23067]],
+ 194660: [[23079]],
+ 194661: [[23000]],
+ 194662: [[23142]],
+ 194663: [[14062]],
+ 194664: [[14076]],
+ 194665: [[23304]],
+ 194666: [[23358]],
+ 194667: [[23358]],
+ 194668: [[137672]],
+ 194669: [[23491]],
+ 194670: [[23512]],
+ 194671: [[23527]],
+ 194672: [[23539]],
+ 194673: [[138008]],
+ 194674: [[23551]],
+ 194675: [[23558]],
+ 194676: [[24403]],
+ 194677: [[23586]],
+ 194678: [[14209]],
+ 194679: [[23648]],
+ 194680: [[23662]],
+ 194681: [[23744]],
+ 194682: [[23693]],
+ 194683: [[138724]],
+ 194684: [[23875]],
+ 194685: [[138726]],
+ 194686: [[23918]],
+ 194687: [[23915]],
+ 194688: [[23932]],
+ 194689: [[24033]],
+ 194690: [[24034]],
+ 194691: [[14383]],
+ 194692: [[24061]],
+ 194693: [[24104]],
+ 194694: [[24125]],
+ 194695: [[24169]],
+ 194696: [[14434]],
+ 194697: [[139651]],
+ 194698: [[14460]],
+ 194699: [[24240]],
+ 194700: [[24243]],
+ 194701: [[24246]],
+ 194702: [[24266]],
+ 194703: [[172946]],
+ 194704: [[24318]],
+ 194705: [[140081]],
+ 194706: [[140081]],
+ 194707: [[33281]],
+ 194708: [[24354]],
+ 194709: [[24354]],
+ 194710: [[14535]],
+ 194711: [[144056]],
+ 194712: [[156122]],
+ 194713: [[24418]],
+ 194714: [[24427]],
+ 194715: [[14563]],
+ 194716: [[24474]],
+ 194717: [[24525]],
+ 194718: [[24535]],
+ 194719: [[24569]],
+ 194720: [[24705]],
+ 194721: [[14650]],
+ 194722: [[14620]],
+ 194723: [[24724]],
+ 194724: [[141012]],
+ 194725: [[24775]],
+ 194726: [[24904]],
+ 194727: [[24908]],
+ 194728: [[24910]],
+ 194729: [[24908]],
+ 194730: [[24954]],
+ 194731: [[24974]],
+ 194732: [[25010]],
+ 194733: [[24996]],
+ 194734: [[25007]],
+ 194735: [[25054]],
+ 194736: [[25074]],
+ 194737: [[25078]],
+ 194738: [[25104]],
+ 194739: [[25115]],
+ 194740: [[25181]],
+ 194741: [[25265]],
+ 194742: [[25300]],
+ 194743: [[25424]],
+ 194744: [[142092]],
+ 194745: [[25405]],
+ 194746: [[25340]],
+ 194747: [[25448]],
+ 194748: [[25475]],
+ 194749: [[25572]],
+ 194750: [[142321]],
+ 194751: [[25634]],
+ 194752: [[25541]],
+ 194753: [[25513]],
+ 194754: [[14894]],
+ 194755: [[25705]],
+ 194756: [[25726]],
+ 194757: [[25757]],
+ 194758: [[25719]],
+ 194759: [[14956]],
+ 194760: [[25935]],
+ 194761: [[25964]],
+ 194762: [[143370]],
+ 194763: [[26083]],
+ 194764: [[26360]],
+ 194765: [[26185]],
+ 194766: [[15129]],
+ 194767: [[26257]],
+ 194768: [[15112]],
+ 194769: [[15076]],
+ 194770: [[20882]],
+ 194771: [[20885]],
+ 194772: [[26368]],
+ 194773: [[26268]],
+ 194774: [[32941]],
+ 194775: [[17369]],
+ 194776: [[26391]],
+ 194777: [[26395]],
+ 194778: [[26401]],
+ 194779: [[26462]],
+ 194780: [[26451]],
+ 194781: [[144323]],
+ 194782: [[15177]],
+ 194783: [[26618]],
+ 194784: [[26501]],
+ 194785: [[26706]],
+ 194786: [[26757]],
+ 194787: [[144493]],
+ 194788: [[26766]],
+ 194789: [[26655]],
+ 194790: [[26900]],
+ 194791: [[15261]],
+ 194792: [[26946]],
+ 194793: [[27043]],
+ 194794: [[27114]],
+ 194795: [[27304]],
+ 194796: [[145059]],
+ 194797: [[27355]],
+ 194798: [[15384]],
+ 194799: [[27425]],
+ 194800: [[145575]],
+ 194801: [[27476]],
+ 194802: [[15438]],
+ 194803: [[27506]],
+ 194804: [[27551]],
+ 194805: [[27578]],
+ 194806: [[27579]],
+ 194807: [[146061]],
+ 194808: [[138507]],
+ 194809: [[146170]],
+ 194810: [[27726]],
+ 194811: [[146620]],
+ 194812: [[27839]],
+ 194813: [[27853]],
+ 194814: [[27751]],
+ 194815: [[27926]]
+ },
+ 63744: {
+ 63744: [[35912]],
+ 63745: [[26356]],
+ 63746: [[36554]],
+ 63747: [[36040]],
+ 63748: [[28369]],
+ 63749: [[20018]],
+ 63750: [[21477]],
+ 63751: [[40860]],
+ 63752: [[40860]],
+ 63753: [[22865]],
+ 63754: [[37329]],
+ 63755: [[21895]],
+ 63756: [[22856]],
+ 63757: [[25078]],
+ 63758: [[30313]],
+ 63759: [[32645]],
+ 63760: [[34367]],
+ 63761: [[34746]],
+ 63762: [[35064]],
+ 63763: [[37007]],
+ 63764: [[27138]],
+ 63765: [[27931]],
+ 63766: [[28889]],
+ 63767: [[29662]],
+ 63768: [[33853]],
+ 63769: [[37226]],
+ 63770: [[39409]],
+ 63771: [[20098]],
+ 63772: [[21365]],
+ 63773: [[27396]],
+ 63774: [[29211]],
+ 63775: [[34349]],
+ 63776: [[40478]],
+ 63777: [[23888]],
+ 63778: [[28651]],
+ 63779: [[34253]],
+ 63780: [[35172]],
+ 63781: [[25289]],
+ 63782: [[33240]],
+ 63783: [[34847]],
+ 63784: [[24266]],
+ 63785: [[26391]],
+ 63786: [[28010]],
+ 63787: [[29436]],
+ 63788: [[37070]],
+ 63789: [[20358]],
+ 63790: [[20919]],
+ 63791: [[21214]],
+ 63792: [[25796]],
+ 63793: [[27347]],
+ 63794: [[29200]],
+ 63795: [[30439]],
+ 63796: [[32769]],
+ 63797: [[34310]],
+ 63798: [[34396]],
+ 63799: [[36335]],
+ 63800: [[38706]],
+ 63801: [[39791]],
+ 63802: [[40442]],
+ 63803: [[30860]],
+ 63804: [[31103]],
+ 63805: [[32160]],
+ 63806: [[33737]],
+ 63807: [[37636]],
+ 63808: [[40575]],
+ 63809: [[35542]],
+ 63810: [[22751]],
+ 63811: [[24324]],
+ 63812: [[31840]],
+ 63813: [[32894]],
+ 63814: [[29282]],
+ 63815: [[30922]],
+ 63816: [[36034]],
+ 63817: [[38647]],
+ 63818: [[22744]],
+ 63819: [[23650]],
+ 63820: [[27155]],
+ 63821: [[28122]],
+ 63822: [[28431]],
+ 63823: [[32047]],
+ 63824: [[32311]],
+ 63825: [[38475]],
+ 63826: [[21202]],
+ 63827: [[32907]],
+ 63828: [[20956]],
+ 63829: [[20940]],
+ 63830: [[31260]],
+ 63831: [[32190]],
+ 63832: [[33777]],
+ 63833: [[38517]],
+ 63834: [[35712]],
+ 63835: [[25295]],
+ 63836: [[27138]],
+ 63837: [[35582]],
+ 63838: [[20025]],
+ 63839: [[23527]],
+ 63840: [[24594]],
+ 63841: [[29575]],
+ 63842: [[30064]],
+ 63843: [[21271]],
+ 63844: [[30971]],
+ 63845: [[20415]],
+ 63846: [[24489]],
+ 63847: [[19981]],
+ 63848: [[27852]],
+ 63849: [[25976]],
+ 63850: [[32034]],
+ 63851: [[21443]],
+ 63852: [[22622]],
+ 63853: [[30465]],
+ 63854: [[33865]],
+ 63855: [[35498]],
+ 63856: [[27578]],
+ 63857: [[36784]],
+ 63858: [[27784]],
+ 63859: [[25342]],
+ 63860: [[33509]],
+ 63861: [[25504]],
+ 63862: [[30053]],
+ 63863: [[20142]],
+ 63864: [[20841]],
+ 63865: [[20937]],
+ 63866: [[26753]],
+ 63867: [[31975]],
+ 63868: [[33391]],
+ 63869: [[35538]],
+ 63870: [[37327]],
+ 63871: [[21237]],
+ 63872: [[21570]],
+ 63873: [[22899]],
+ 63874: [[24300]],
+ 63875: [[26053]],
+ 63876: [[28670]],
+ 63877: [[31018]],
+ 63878: [[38317]],
+ 63879: [[39530]],
+ 63880: [[40599]],
+ 63881: [[40654]],
+ 63882: [[21147]],
+ 63883: [[26310]],
+ 63884: [[27511]],
+ 63885: [[36706]],
+ 63886: [[24180]],
+ 63887: [[24976]],
+ 63888: [[25088]],
+ 63889: [[25754]],
+ 63890: [[28451]],
+ 63891: [[29001]],
+ 63892: [[29833]],
+ 63893: [[31178]],
+ 63894: [[32244]],
+ 63895: [[32879]],
+ 63896: [[36646]],
+ 63897: [[34030]],
+ 63898: [[36899]],
+ 63899: [[37706]],
+ 63900: [[21015]],
+ 63901: [[21155]],
+ 63902: [[21693]],
+ 63903: [[28872]],
+ 63904: [[35010]],
+ 63905: [[35498]],
+ 63906: [[24265]],
+ 63907: [[24565]],
+ 63908: [[25467]],
+ 63909: [[27566]],
+ 63910: [[31806]],
+ 63911: [[29557]],
+ 63912: [[20196]],
+ 63913: [[22265]],
+ 63914: [[23527]],
+ 63915: [[23994]],
+ 63916: [[24604]],
+ 63917: [[29618]],
+ 63918: [[29801]],
+ 63919: [[32666]],
+ 63920: [[32838]],
+ 63921: [[37428]],
+ 63922: [[38646]],
+ 63923: [[38728]],
+ 63924: [[38936]],
+ 63925: [[20363]],
+ 63926: [[31150]],
+ 63927: [[37300]],
+ 63928: [[38584]],
+ 63929: [[24801]],
+ 63930: [[20102]],
+ 63931: [[20698]],
+ 63932: [[23534]],
+ 63933: [[23615]],
+ 63934: [[26009]],
+ 63935: [[27138]],
+ 63936: [[29134]],
+ 63937: [[30274]],
+ 63938: [[34044]],
+ 63939: [[36988]],
+ 63940: [[40845]],
+ 63941: [[26248]],
+ 63942: [[38446]],
+ 63943: [[21129]],
+ 63944: [[26491]],
+ 63945: [[26611]],
+ 63946: [[27969]],
+ 63947: [[28316]],
+ 63948: [[29705]],
+ 63949: [[30041]],
+ 63950: [[30827]],
+ 63951: [[32016]],
+ 63952: [[39006]],
+ 63953: [[20845]],
+ 63954: [[25134]],
+ 63955: [[38520]],
+ 63956: [[20523]],
+ 63957: [[23833]],
+ 63958: [[28138]],
+ 63959: [[36650]],
+ 63960: [[24459]],
+ 63961: [[24900]],
+ 63962: [[26647]],
+ 63963: [[29575]],
+ 63964: [[38534]],
+ 63965: [[21033]],
+ 63966: [[21519]],
+ 63967: [[23653]],
+ 63968: [[26131]],
+ 63969: [[26446]],
+ 63970: [[26792]],
+ 63971: [[27877]],
+ 63972: [[29702]],
+ 63973: [[30178]],
+ 63974: [[32633]],
+ 63975: [[35023]],
+ 63976: [[35041]],
+ 63977: [[37324]],
+ 63978: [[38626]],
+ 63979: [[21311]],
+ 63980: [[28346]],
+ 63981: [[21533]],
+ 63982: [[29136]],
+ 63983: [[29848]],
+ 63984: [[34298]],
+ 63985: [[38563]],
+ 63986: [[40023]],
+ 63987: [[40607]],
+ 63988: [[26519]],
+ 63989: [[28107]],
+ 63990: [[33256]],
+ 63991: [[31435]],
+ 63992: [[31520]],
+ 63993: [[31890]],
+ 63994: [[29376]],
+ 63995: [[28825]],
+ 63996: [[35672]],
+ 63997: [[20160]],
+ 63998: [[33590]],
+ 63999: [[21050]],
+ 194816: [[27966]],
+ 194817: [[28023]],
+ 194818: [[27969]],
+ 194819: [[28009]],
+ 194820: [[28024]],
+ 194821: [[28037]],
+ 194822: [[146718]],
+ 194823: [[27956]],
+ 194824: [[28207]],
+ 194825: [[28270]],
+ 194826: [[15667]],
+ 194827: [[28363]],
+ 194828: [[28359]],
+ 194829: [[147153]],
+ 194830: [[28153]],
+ 194831: [[28526]],
+ 194832: [[147294]],
+ 194833: [[147342]],
+ 194834: [[28614]],
+ 194835: [[28729]],
+ 194836: [[28702]],
+ 194837: [[28699]],
+ 194838: [[15766]],
+ 194839: [[28746]],
+ 194840: [[28797]],
+ 194841: [[28791]],
+ 194842: [[28845]],
+ 194843: [[132389]],
+ 194844: [[28997]],
+ 194845: [[148067]],
+ 194846: [[29084]],
+ 194847: [[148395]],
+ 194848: [[29224]],
+ 194849: [[29237]],
+ 194850: [[29264]],
+ 194851: [[149000]],
+ 194852: [[29312]],
+ 194853: [[29333]],
+ 194854: [[149301]],
+ 194855: [[149524]],
+ 194856: [[29562]],
+ 194857: [[29579]],
+ 194858: [[16044]],
+ 194859: [[29605]],
+ 194860: [[16056]],
+ 194861: [[16056]],
+ 194862: [[29767]],
+ 194863: [[29788]],
+ 194864: [[29809]],
+ 194865: [[29829]],
+ 194866: [[29898]],
+ 194867: [[16155]],
+ 194868: [[29988]],
+ 194869: [[150582]],
+ 194870: [[30014]],
+ 194871: [[150674]],
+ 194872: [[30064]],
+ 194873: [[139679]],
+ 194874: [[30224]],
+ 194875: [[151457]],
+ 194876: [[151480]],
+ 194877: [[151620]],
+ 194878: [[16380]],
+ 194879: [[16392]],
+ 194880: [[30452]],
+ 194881: [[151795]],
+ 194882: [[151794]],
+ 194883: [[151833]],
+ 194884: [[151859]],
+ 194885: [[30494]],
+ 194886: [[30495]],
+ 194887: [[30495]],
+ 194888: [[30538]],
+ 194889: [[16441]],
+ 194890: [[30603]],
+ 194891: [[16454]],
+ 194892: [[16534]],
+ 194893: [[152605]],
+ 194894: [[30798]],
+ 194895: [[30860]],
+ 194896: [[30924]],
+ 194897: [[16611]],
+ 194898: [[153126]],
+ 194899: [[31062]],
+ 194900: [[153242]],
+ 194901: [[153285]],
+ 194902: [[31119]],
+ 194903: [[31211]],
+ 194904: [[16687]],
+ 194905: [[31296]],
+ 194906: [[31306]],
+ 194907: [[31311]],
+ 194908: [[153980]],
+ 194909: [[154279]],
+ 194910: [[154279]],
+ 194911: [[31470]],
+ 194912: [[16898]],
+ 194913: [[154539]],
+ 194914: [[31686]],
+ 194915: [[31689]],
+ 194916: [[16935]],
+ 194917: [[154752]],
+ 194918: [[31954]],
+ 194919: [[17056]],
+ 194920: [[31976]],
+ 194921: [[31971]],
+ 194922: [[32000]],
+ 194923: [[155526]],
+ 194924: [[32099]],
+ 194925: [[17153]],
+ 194926: [[32199]],
+ 194927: [[32258]],
+ 194928: [[32325]],
+ 194929: [[17204]],
+ 194930: [[156200]],
+ 194931: [[156231]],
+ 194932: [[17241]],
+ 194933: [[156377]],
+ 194934: [[32634]],
+ 194935: [[156478]],
+ 194936: [[32661]],
+ 194937: [[32762]],
+ 194938: [[32773]],
+ 194939: [[156890]],
+ 194940: [[156963]],
+ 194941: [[32864]],
+ 194942: [[157096]],
+ 194943: [[32880]],
+ 194944: [[144223]],
+ 194945: [[17365]],
+ 194946: [[32946]],
+ 194947: [[33027]],
+ 194948: [[17419]],
+ 194949: [[33086]],
+ 194950: [[23221]],
+ 194951: [[157607]],
+ 194952: [[157621]],
+ 194953: [[144275]],
+ 194954: [[144284]],
+ 194955: [[33281]],
+ 194956: [[33284]],
+ 194957: [[36766]],
+ 194958: [[17515]],
+ 194959: [[33425]],
+ 194960: [[33419]],
+ 194961: [[33437]],
+ 194962: [[21171]],
+ 194963: [[33457]],
+ 194964: [[33459]],
+ 194965: [[33469]],
+ 194966: [[33510]],
+ 194967: [[158524]],
+ 194968: [[33509]],
+ 194969: [[33565]],
+ 194970: [[33635]],
+ 194971: [[33709]],
+ 194972: [[33571]],
+ 194973: [[33725]],
+ 194974: [[33767]],
+ 194975: [[33879]],
+ 194976: [[33619]],
+ 194977: [[33738]],
+ 194978: [[33740]],
+ 194979: [[33756]],
+ 194980: [[158774]],
+ 194981: [[159083]],
+ 194982: [[158933]],
+ 194983: [[17707]],
+ 194984: [[34033]],
+ 194985: [[34035]],
+ 194986: [[34070]],
+ 194987: [[160714]],
+ 194988: [[34148]],
+ 194989: [[159532]],
+ 194990: [[17757]],
+ 194991: [[17761]],
+ 194992: [[159665]],
+ 194993: [[159954]],
+ 194994: [[17771]],
+ 194995: [[34384]],
+ 194996: [[34396]],
+ 194997: [[34407]],
+ 194998: [[34409]],
+ 194999: [[34473]],
+ 195000: [[34440]],
+ 195001: [[34574]],
+ 195002: [[34530]],
+ 195003: [[34681]],
+ 195004: [[34600]],
+ 195005: [[34667]],
+ 195006: [[34694]],
+ 195007: [[17879]],
+ 195008: [[34785]],
+ 195009: [[34817]],
+ 195010: [[17913]],
+ 195011: [[34912]],
+ 195012: [[34915]],
+ 195013: [[161383]],
+ 195014: [[35031]],
+ 195015: [[35038]],
+ 195016: [[17973]],
+ 195017: [[35066]],
+ 195018: [[13499]],
+ 195019: [[161966]],
+ 195020: [[162150]],
+ 195021: [[18110]],
+ 195022: [[18119]],
+ 195023: [[35488]],
+ 195024: [[35565]],
+ 195025: [[35722]],
+ 195026: [[35925]],
+ 195027: [[162984]],
+ 195028: [[36011]],
+ 195029: [[36033]],
+ 195030: [[36123]],
+ 195031: [[36215]],
+ 195032: [[163631]],
+ 195033: [[133124]],
+ 195034: [[36299]],
+ 195035: [[36284]],
+ 195036: [[36336]],
+ 195037: [[133342]],
+ 195038: [[36564]],
+ 195039: [[36664]],
+ 195040: [[165330]],
+ 195041: [[165357]],
+ 195042: [[37012]],
+ 195043: [[37105]],
+ 195044: [[37137]],
+ 195045: [[165678]],
+ 195046: [[37147]],
+ 195047: [[37432]],
+ 195048: [[37591]],
+ 195049: [[37592]],
+ 195050: [[37500]],
+ 195051: [[37881]],
+ 195052: [[37909]],
+ 195053: [[166906]],
+ 195054: [[38283]],
+ 195055: [[18837]],
+ 195056: [[38327]],
+ 195057: [[167287]],
+ 195058: [[18918]],
+ 195059: [[38595]],
+ 195060: [[23986]],
+ 195061: [[38691]],
+ 195062: [[168261]],
+ 195063: [[168474]],
+ 195064: [[19054]],
+ 195065: [[19062]],
+ 195066: [[38880]],
+ 195067: [[168970]],
+ 195068: [[19122]],
+ 195069: [[169110]],
+ 195070: [[38923]],
+ 195071: [[38923]]
+ },
+ 64000: {
+ 64000: [[20999]],
+ 64001: [[24230]],
+ 64002: [[25299]],
+ 64003: [[31958]],
+ 64004: [[23429]],
+ 64005: [[27934]],
+ 64006: [[26292]],
+ 64007: [[36667]],
+ 64008: [[34892]],
+ 64009: [[38477]],
+ 64010: [[35211]],
+ 64011: [[24275]],
+ 64012: [[20800]],
+ 64013: [[21952]],
+ 64016: [[22618]],
+ 64018: [[26228]],
+ 64021: [[20958]],
+ 64022: [[29482]],
+ 64023: [[30410]],
+ 64024: [[31036]],
+ 64025: [[31070]],
+ 64026: [[31077]],
+ 64027: [[31119]],
+ 64028: [[38742]],
+ 64029: [[31934]],
+ 64030: [[32701]],
+ 64032: [[34322]],
+ 64034: [[35576]],
+ 64037: [[36920]],
+ 64038: [[37117]],
+ 64042: [[39151]],
+ 64043: [[39164]],
+ 64044: [[39208]],
+ 64045: [[40372]],
+ 64046: [[37086]],
+ 64047: [[38583]],
+ 64048: [[20398]],
+ 64049: [[20711]],
+ 64050: [[20813]],
+ 64051: [[21193]],
+ 64052: [[21220]],
+ 64053: [[21329]],
+ 64054: [[21917]],
+ 64055: [[22022]],
+ 64056: [[22120]],
+ 64057: [[22592]],
+ 64058: [[22696]],
+ 64059: [[23652]],
+ 64060: [[23662]],
+ 64061: [[24724]],
+ 64062: [[24936]],
+ 64063: [[24974]],
+ 64064: [[25074]],
+ 64065: [[25935]],
+ 64066: [[26082]],
+ 64067: [[26257]],
+ 64068: [[26757]],
+ 64069: [[28023]],
+ 64070: [[28186]],
+ 64071: [[28450]],
+ 64072: [[29038]],
+ 64073: [[29227]],
+ 64074: [[29730]],
+ 64075: [[30865]],
+ 64076: [[31038]],
+ 64077: [[31049]],
+ 64078: [[31048]],
+ 64079: [[31056]],
+ 64080: [[31062]],
+ 64081: [[31069]],
+ 64082: [[31117]],
+ 64083: [[31118]],
+ 64084: [[31296]],
+ 64085: [[31361]],
+ 64086: [[31680]],
+ 64087: [[32244]],
+ 64088: [[32265]],
+ 64089: [[32321]],
+ 64090: [[32626]],
+ 64091: [[32773]],
+ 64092: [[33261]],
+ 64093: [[33401]],
+ 64094: [[33401]],
+ 64095: [[33879]],
+ 64096: [[35088]],
+ 64097: [[35222]],
+ 64098: [[35585]],
+ 64099: [[35641]],
+ 64100: [[36051]],
+ 64101: [[36104]],
+ 64102: [[36790]],
+ 64103: [[36920]],
+ 64104: [[38627]],
+ 64105: [[38911]],
+ 64106: [[38971]],
+ 64107: [[24693]],
+ 64108: [[148206]],
+ 64109: [[33304]],
+ 64112: [[20006]],
+ 64113: [[20917]],
+ 64114: [[20840]],
+ 64115: [[20352]],
+ 64116: [[20805]],
+ 64117: [[20864]],
+ 64118: [[21191]],
+ 64119: [[21242]],
+ 64120: [[21917]],
+ 64121: [[21845]],
+ 64122: [[21913]],
+ 64123: [[21986]],
+ 64124: [[22618]],
+ 64125: [[22707]],
+ 64126: [[22852]],
+ 64127: [[22868]],
+ 64128: [[23138]],
+ 64129: [[23336]],
+ 64130: [[24274]],
+ 64131: [[24281]],
+ 64132: [[24425]],
+ 64133: [[24493]],
+ 64134: [[24792]],
+ 64135: [[24910]],
+ 64136: [[24840]],
+ 64137: [[24974]],
+ 64138: [[24928]],
+ 64139: [[25074]],
+ 64140: [[25140]],
+ 64141: [[25540]],
+ 64142: [[25628]],
+ 64143: [[25682]],
+ 64144: [[25942]],
+ 64145: [[26228]],
+ 64146: [[26391]],
+ 64147: [[26395]],
+ 64148: [[26454]],
+ 64149: [[27513]],
+ 64150: [[27578]],
+ 64151: [[27969]],
+ 64152: [[28379]],
+ 64153: [[28363]],
+ 64154: [[28450]],
+ 64155: [[28702]],
+ 64156: [[29038]],
+ 64157: [[30631]],
+ 64158: [[29237]],
+ 64159: [[29359]],
+ 64160: [[29482]],
+ 64161: [[29809]],
+ 64162: [[29958]],
+ 64163: [[30011]],
+ 64164: [[30237]],
+ 64165: [[30239]],
+ 64166: [[30410]],
+ 64167: [[30427]],
+ 64168: [[30452]],
+ 64169: [[30538]],
+ 64170: [[30528]],
+ 64171: [[30924]],
+ 64172: [[31409]],
+ 64173: [[31680]],
+ 64174: [[31867]],
+ 64175: [[32091]],
+ 64176: [[32244]],
+ 64177: [[32574]],
+ 64178: [[32773]],
+ 64179: [[33618]],
+ 64180: [[33775]],
+ 64181: [[34681]],
+ 64182: [[35137]],
+ 64183: [[35206]],
+ 64184: [[35222]],
+ 64185: [[35519]],
+ 64186: [[35576]],
+ 64187: [[35531]],
+ 64188: [[35585]],
+ 64189: [[35582]],
+ 64190: [[35565]],
+ 64191: [[35641]],
+ 64192: [[35722]],
+ 64193: [[36104]],
+ 64194: [[36664]],
+ 64195: [[36978]],
+ 64196: [[37273]],
+ 64197: [[37494]],
+ 64198: [[38524]],
+ 64199: [[38627]],
+ 64200: [[38742]],
+ 64201: [[38875]],
+ 64202: [[38911]],
+ 64203: [[38923]],
+ 64204: [[38971]],
+ 64205: [[39698]],
+ 64206: [[40860]],
+ 64207: [[141386]],
+ 64208: [[141380]],
+ 64209: [[144341]],
+ 64210: [[15261]],
+ 64211: [[16408]],
+ 64212: [[16441]],
+ 64213: [[152137]],
+ 64214: [[154832]],
+ 64215: [[163539]],
+ 64216: [[40771]],
+ 64217: [[40846]],
+ 195072: [[38953]],
+ 195073: [[169398]],
+ 195074: [[39138]],
+ 195075: [[19251]],
+ 195076: [[39209]],
+ 195077: [[39335]],
+ 195078: [[39362]],
+ 195079: [[39422]],
+ 195080: [[19406]],
+ 195081: [[170800]],
+ 195082: [[39698]],
+ 195083: [[40000]],
+ 195084: [[40189]],
+ 195085: [[19662]],
+ 195086: [[19693]],
+ 195087: [[40295]],
+ 195088: [[172238]],
+ 195089: [[19704]],
+ 195090: [[172293]],
+ 195091: [[172558]],
+ 195092: [[172689]],
+ 195093: [[40635]],
+ 195094: [[19798]],
+ 195095: [[40697]],
+ 195096: [[40702]],
+ 195097: [[40709]],
+ 195098: [[40719]],
+ 195099: [[40726]],
+ 195100: [[40763]],
+ 195101: [[173568]]
+ },
+ 64256: {
+ 64256: [[102, 102], 256],
+ 64257: [[102, 105], 256],
+ 64258: [[102, 108], 256],
+ 64259: [[102, 102, 105], 256],
+ 64260: [[102, 102, 108], 256],
+ 64261: [[383, 116], 256],
+ 64262: [[115, 116], 256],
+ 64275: [[1396, 1398], 256],
+ 64276: [[1396, 1381], 256],
+ 64277: [[1396, 1387], 256],
+ 64278: [[1406, 1398], 256],
+ 64279: [[1396, 1389], 256],
+ 64285: [[1497, 1460], 512],
+ 64286: [, 26],
+ 64287: [[1522, 1463], 512],
+ 64288: [[1506], 256],
+ 64289: [[1488], 256],
+ 64290: [[1491], 256],
+ 64291: [[1492], 256],
+ 64292: [[1499], 256],
+ 64293: [[1500], 256],
+ 64294: [[1501], 256],
+ 64295: [[1512], 256],
+ 64296: [[1514], 256],
+ 64297: [[43], 256],
+ 64298: [[1513, 1473], 512],
+ 64299: [[1513, 1474], 512],
+ 64300: [[64329, 1473], 512],
+ 64301: [[64329, 1474], 512],
+ 64302: [[1488, 1463], 512],
+ 64303: [[1488, 1464], 512],
+ 64304: [[1488, 1468], 512],
+ 64305: [[1489, 1468], 512],
+ 64306: [[1490, 1468], 512],
+ 64307: [[1491, 1468], 512],
+ 64308: [[1492, 1468], 512],
+ 64309: [[1493, 1468], 512],
+ 64310: [[1494, 1468], 512],
+ 64312: [[1496, 1468], 512],
+ 64313: [[1497, 1468], 512],
+ 64314: [[1498, 1468], 512],
+ 64315: [[1499, 1468], 512],
+ 64316: [[1500, 1468], 512],
+ 64318: [[1502, 1468], 512],
+ 64320: [[1504, 1468], 512],
+ 64321: [[1505, 1468], 512],
+ 64323: [[1507, 1468], 512],
+ 64324: [[1508, 1468], 512],
+ 64326: [[1510, 1468], 512],
+ 64327: [[1511, 1468], 512],
+ 64328: [[1512, 1468], 512],
+ 64329: [[1513, 1468], 512],
+ 64330: [[1514, 1468], 512],
+ 64331: [[1493, 1465], 512],
+ 64332: [[1489, 1471], 512],
+ 64333: [[1499, 1471], 512],
+ 64334: [[1508, 1471], 512],
+ 64335: [[1488, 1500], 256],
+ 64336: [[1649], 256],
+ 64337: [[1649], 256],
+ 64338: [[1659], 256],
+ 64339: [[1659], 256],
+ 64340: [[1659], 256],
+ 64341: [[1659], 256],
+ 64342: [[1662], 256],
+ 64343: [[1662], 256],
+ 64344: [[1662], 256],
+ 64345: [[1662], 256],
+ 64346: [[1664], 256],
+ 64347: [[1664], 256],
+ 64348: [[1664], 256],
+ 64349: [[1664], 256],
+ 64350: [[1658], 256],
+ 64351: [[1658], 256],
+ 64352: [[1658], 256],
+ 64353: [[1658], 256],
+ 64354: [[1663], 256],
+ 64355: [[1663], 256],
+ 64356: [[1663], 256],
+ 64357: [[1663], 256],
+ 64358: [[1657], 256],
+ 64359: [[1657], 256],
+ 64360: [[1657], 256],
+ 64361: [[1657], 256],
+ 64362: [[1700], 256],
+ 64363: [[1700], 256],
+ 64364: [[1700], 256],
+ 64365: [[1700], 256],
+ 64366: [[1702], 256],
+ 64367: [[1702], 256],
+ 64368: [[1702], 256],
+ 64369: [[1702], 256],
+ 64370: [[1668], 256],
+ 64371: [[1668], 256],
+ 64372: [[1668], 256],
+ 64373: [[1668], 256],
+ 64374: [[1667], 256],
+ 64375: [[1667], 256],
+ 64376: [[1667], 256],
+ 64377: [[1667], 256],
+ 64378: [[1670], 256],
+ 64379: [[1670], 256],
+ 64380: [[1670], 256],
+ 64381: [[1670], 256],
+ 64382: [[1671], 256],
+ 64383: [[1671], 256],
+ 64384: [[1671], 256],
+ 64385: [[1671], 256],
+ 64386: [[1677], 256],
+ 64387: [[1677], 256],
+ 64388: [[1676], 256],
+ 64389: [[1676], 256],
+ 64390: [[1678], 256],
+ 64391: [[1678], 256],
+ 64392: [[1672], 256],
+ 64393: [[1672], 256],
+ 64394: [[1688], 256],
+ 64395: [[1688], 256],
+ 64396: [[1681], 256],
+ 64397: [[1681], 256],
+ 64398: [[1705], 256],
+ 64399: [[1705], 256],
+ 64400: [[1705], 256],
+ 64401: [[1705], 256],
+ 64402: [[1711], 256],
+ 64403: [[1711], 256],
+ 64404: [[1711], 256],
+ 64405: [[1711], 256],
+ 64406: [[1715], 256],
+ 64407: [[1715], 256],
+ 64408: [[1715], 256],
+ 64409: [[1715], 256],
+ 64410: [[1713], 256],
+ 64411: [[1713], 256],
+ 64412: [[1713], 256],
+ 64413: [[1713], 256],
+ 64414: [[1722], 256],
+ 64415: [[1722], 256],
+ 64416: [[1723], 256],
+ 64417: [[1723], 256],
+ 64418: [[1723], 256],
+ 64419: [[1723], 256],
+ 64420: [[1728], 256],
+ 64421: [[1728], 256],
+ 64422: [[1729], 256],
+ 64423: [[1729], 256],
+ 64424: [[1729], 256],
+ 64425: [[1729], 256],
+ 64426: [[1726], 256],
+ 64427: [[1726], 256],
+ 64428: [[1726], 256],
+ 64429: [[1726], 256],
+ 64430: [[1746], 256],
+ 64431: [[1746], 256],
+ 64432: [[1747], 256],
+ 64433: [[1747], 256],
+ 64467: [[1709], 256],
+ 64468: [[1709], 256],
+ 64469: [[1709], 256],
+ 64470: [[1709], 256],
+ 64471: [[1735], 256],
+ 64472: [[1735], 256],
+ 64473: [[1734], 256],
+ 64474: [[1734], 256],
+ 64475: [[1736], 256],
+ 64476: [[1736], 256],
+ 64477: [[1655], 256],
+ 64478: [[1739], 256],
+ 64479: [[1739], 256],
+ 64480: [[1733], 256],
+ 64481: [[1733], 256],
+ 64482: [[1737], 256],
+ 64483: [[1737], 256],
+ 64484: [[1744], 256],
+ 64485: [[1744], 256],
+ 64486: [[1744], 256],
+ 64487: [[1744], 256],
+ 64488: [[1609], 256],
+ 64489: [[1609], 256],
+ 64490: [[1574, 1575], 256],
+ 64491: [[1574, 1575], 256],
+ 64492: [[1574, 1749], 256],
+ 64493: [[1574, 1749], 256],
+ 64494: [[1574, 1608], 256],
+ 64495: [[1574, 1608], 256],
+ 64496: [[1574, 1735], 256],
+ 64497: [[1574, 1735], 256],
+ 64498: [[1574, 1734], 256],
+ 64499: [[1574, 1734], 256],
+ 64500: [[1574, 1736], 256],
+ 64501: [[1574, 1736], 256],
+ 64502: [[1574, 1744], 256],
+ 64503: [[1574, 1744], 256],
+ 64504: [[1574, 1744], 256],
+ 64505: [[1574, 1609], 256],
+ 64506: [[1574, 1609], 256],
+ 64507: [[1574, 1609], 256],
+ 64508: [[1740], 256],
+ 64509: [[1740], 256],
+ 64510: [[1740], 256],
+ 64511: [[1740], 256]
+ },
+ 64512: {
+ 64512: [[1574, 1580], 256],
+ 64513: [[1574, 1581], 256],
+ 64514: [[1574, 1605], 256],
+ 64515: [[1574, 1609], 256],
+ 64516: [[1574, 1610], 256],
+ 64517: [[1576, 1580], 256],
+ 64518: [[1576, 1581], 256],
+ 64519: [[1576, 1582], 256],
+ 64520: [[1576, 1605], 256],
+ 64521: [[1576, 1609], 256],
+ 64522: [[1576, 1610], 256],
+ 64523: [[1578, 1580], 256],
+ 64524: [[1578, 1581], 256],
+ 64525: [[1578, 1582], 256],
+ 64526: [[1578, 1605], 256],
+ 64527: [[1578, 1609], 256],
+ 64528: [[1578, 1610], 256],
+ 64529: [[1579, 1580], 256],
+ 64530: [[1579, 1605], 256],
+ 64531: [[1579, 1609], 256],
+ 64532: [[1579, 1610], 256],
+ 64533: [[1580, 1581], 256],
+ 64534: [[1580, 1605], 256],
+ 64535: [[1581, 1580], 256],
+ 64536: [[1581, 1605], 256],
+ 64537: [[1582, 1580], 256],
+ 64538: [[1582, 1581], 256],
+ 64539: [[1582, 1605], 256],
+ 64540: [[1587, 1580], 256],
+ 64541: [[1587, 1581], 256],
+ 64542: [[1587, 1582], 256],
+ 64543: [[1587, 1605], 256],
+ 64544: [[1589, 1581], 256],
+ 64545: [[1589, 1605], 256],
+ 64546: [[1590, 1580], 256],
+ 64547: [[1590, 1581], 256],
+ 64548: [[1590, 1582], 256],
+ 64549: [[1590, 1605], 256],
+ 64550: [[1591, 1581], 256],
+ 64551: [[1591, 1605], 256],
+ 64552: [[1592, 1605], 256],
+ 64553: [[1593, 1580], 256],
+ 64554: [[1593, 1605], 256],
+ 64555: [[1594, 1580], 256],
+ 64556: [[1594, 1605], 256],
+ 64557: [[1601, 1580], 256],
+ 64558: [[1601, 1581], 256],
+ 64559: [[1601, 1582], 256],
+ 64560: [[1601, 1605], 256],
+ 64561: [[1601, 1609], 256],
+ 64562: [[1601, 1610], 256],
+ 64563: [[1602, 1581], 256],
+ 64564: [[1602, 1605], 256],
+ 64565: [[1602, 1609], 256],
+ 64566: [[1602, 1610], 256],
+ 64567: [[1603, 1575], 256],
+ 64568: [[1603, 1580], 256],
+ 64569: [[1603, 1581], 256],
+ 64570: [[1603, 1582], 256],
+ 64571: [[1603, 1604], 256],
+ 64572: [[1603, 1605], 256],
+ 64573: [[1603, 1609], 256],
+ 64574: [[1603, 1610], 256],
+ 64575: [[1604, 1580], 256],
+ 64576: [[1604, 1581], 256],
+ 64577: [[1604, 1582], 256],
+ 64578: [[1604, 1605], 256],
+ 64579: [[1604, 1609], 256],
+ 64580: [[1604, 1610], 256],
+ 64581: [[1605, 1580], 256],
+ 64582: [[1605, 1581], 256],
+ 64583: [[1605, 1582], 256],
+ 64584: [[1605, 1605], 256],
+ 64585: [[1605, 1609], 256],
+ 64586: [[1605, 1610], 256],
+ 64587: [[1606, 1580], 256],
+ 64588: [[1606, 1581], 256],
+ 64589: [[1606, 1582], 256],
+ 64590: [[1606, 1605], 256],
+ 64591: [[1606, 1609], 256],
+ 64592: [[1606, 1610], 256],
+ 64593: [[1607, 1580], 256],
+ 64594: [[1607, 1605], 256],
+ 64595: [[1607, 1609], 256],
+ 64596: [[1607, 1610], 256],
+ 64597: [[1610, 1580], 256],
+ 64598: [[1610, 1581], 256],
+ 64599: [[1610, 1582], 256],
+ 64600: [[1610, 1605], 256],
+ 64601: [[1610, 1609], 256],
+ 64602: [[1610, 1610], 256],
+ 64603: [[1584, 1648], 256],
+ 64604: [[1585, 1648], 256],
+ 64605: [[1609, 1648], 256],
+ 64606: [[32, 1612, 1617], 256],
+ 64607: [[32, 1613, 1617], 256],
+ 64608: [[32, 1614, 1617], 256],
+ 64609: [[32, 1615, 1617], 256],
+ 64610: [[32, 1616, 1617], 256],
+ 64611: [[32, 1617, 1648], 256],
+ 64612: [[1574, 1585], 256],
+ 64613: [[1574, 1586], 256],
+ 64614: [[1574, 1605], 256],
+ 64615: [[1574, 1606], 256],
+ 64616: [[1574, 1609], 256],
+ 64617: [[1574, 1610], 256],
+ 64618: [[1576, 1585], 256],
+ 64619: [[1576, 1586], 256],
+ 64620: [[1576, 1605], 256],
+ 64621: [[1576, 1606], 256],
+ 64622: [[1576, 1609], 256],
+ 64623: [[1576, 1610], 256],
+ 64624: [[1578, 1585], 256],
+ 64625: [[1578, 1586], 256],
+ 64626: [[1578, 1605], 256],
+ 64627: [[1578, 1606], 256],
+ 64628: [[1578, 1609], 256],
+ 64629: [[1578, 1610], 256],
+ 64630: [[1579, 1585], 256],
+ 64631: [[1579, 1586], 256],
+ 64632: [[1579, 1605], 256],
+ 64633: [[1579, 1606], 256],
+ 64634: [[1579, 1609], 256],
+ 64635: [[1579, 1610], 256],
+ 64636: [[1601, 1609], 256],
+ 64637: [[1601, 1610], 256],
+ 64638: [[1602, 1609], 256],
+ 64639: [[1602, 1610], 256],
+ 64640: [[1603, 1575], 256],
+ 64641: [[1603, 1604], 256],
+ 64642: [[1603, 1605], 256],
+ 64643: [[1603, 1609], 256],
+ 64644: [[1603, 1610], 256],
+ 64645: [[1604, 1605], 256],
+ 64646: [[1604, 1609], 256],
+ 64647: [[1604, 1610], 256],
+ 64648: [[1605, 1575], 256],
+ 64649: [[1605, 1605], 256],
+ 64650: [[1606, 1585], 256],
+ 64651: [[1606, 1586], 256],
+ 64652: [[1606, 1605], 256],
+ 64653: [[1606, 1606], 256],
+ 64654: [[1606, 1609], 256],
+ 64655: [[1606, 1610], 256],
+ 64656: [[1609, 1648], 256],
+ 64657: [[1610, 1585], 256],
+ 64658: [[1610, 1586], 256],
+ 64659: [[1610, 1605], 256],
+ 64660: [[1610, 1606], 256],
+ 64661: [[1610, 1609], 256],
+ 64662: [[1610, 1610], 256],
+ 64663: [[1574, 1580], 256],
+ 64664: [[1574, 1581], 256],
+ 64665: [[1574, 1582], 256],
+ 64666: [[1574, 1605], 256],
+ 64667: [[1574, 1607], 256],
+ 64668: [[1576, 1580], 256],
+ 64669: [[1576, 1581], 256],
+ 64670: [[1576, 1582], 256],
+ 64671: [[1576, 1605], 256],
+ 64672: [[1576, 1607], 256],
+ 64673: [[1578, 1580], 256],
+ 64674: [[1578, 1581], 256],
+ 64675: [[1578, 1582], 256],
+ 64676: [[1578, 1605], 256],
+ 64677: [[1578, 1607], 256],
+ 64678: [[1579, 1605], 256],
+ 64679: [[1580, 1581], 256],
+ 64680: [[1580, 1605], 256],
+ 64681: [[1581, 1580], 256],
+ 64682: [[1581, 1605], 256],
+ 64683: [[1582, 1580], 256],
+ 64684: [[1582, 1605], 256],
+ 64685: [[1587, 1580], 256],
+ 64686: [[1587, 1581], 256],
+ 64687: [[1587, 1582], 256],
+ 64688: [[1587, 1605], 256],
+ 64689: [[1589, 1581], 256],
+ 64690: [[1589, 1582], 256],
+ 64691: [[1589, 1605], 256],
+ 64692: [[1590, 1580], 256],
+ 64693: [[1590, 1581], 256],
+ 64694: [[1590, 1582], 256],
+ 64695: [[1590, 1605], 256],
+ 64696: [[1591, 1581], 256],
+ 64697: [[1592, 1605], 256],
+ 64698: [[1593, 1580], 256],
+ 64699: [[1593, 1605], 256],
+ 64700: [[1594, 1580], 256],
+ 64701: [[1594, 1605], 256],
+ 64702: [[1601, 1580], 256],
+ 64703: [[1601, 1581], 256],
+ 64704: [[1601, 1582], 256],
+ 64705: [[1601, 1605], 256],
+ 64706: [[1602, 1581], 256],
+ 64707: [[1602, 1605], 256],
+ 64708: [[1603, 1580], 256],
+ 64709: [[1603, 1581], 256],
+ 64710: [[1603, 1582], 256],
+ 64711: [[1603, 1604], 256],
+ 64712: [[1603, 1605], 256],
+ 64713: [[1604, 1580], 256],
+ 64714: [[1604, 1581], 256],
+ 64715: [[1604, 1582], 256],
+ 64716: [[1604, 1605], 256],
+ 64717: [[1604, 1607], 256],
+ 64718: [[1605, 1580], 256],
+ 64719: [[1605, 1581], 256],
+ 64720: [[1605, 1582], 256],
+ 64721: [[1605, 1605], 256],
+ 64722: [[1606, 1580], 256],
+ 64723: [[1606, 1581], 256],
+ 64724: [[1606, 1582], 256],
+ 64725: [[1606, 1605], 256],
+ 64726: [[1606, 1607], 256],
+ 64727: [[1607, 1580], 256],
+ 64728: [[1607, 1605], 256],
+ 64729: [[1607, 1648], 256],
+ 64730: [[1610, 1580], 256],
+ 64731: [[1610, 1581], 256],
+ 64732: [[1610, 1582], 256],
+ 64733: [[1610, 1605], 256],
+ 64734: [[1610, 1607], 256],
+ 64735: [[1574, 1605], 256],
+ 64736: [[1574, 1607], 256],
+ 64737: [[1576, 1605], 256],
+ 64738: [[1576, 1607], 256],
+ 64739: [[1578, 1605], 256],
+ 64740: [[1578, 1607], 256],
+ 64741: [[1579, 1605], 256],
+ 64742: [[1579, 1607], 256],
+ 64743: [[1587, 1605], 256],
+ 64744: [[1587, 1607], 256],
+ 64745: [[1588, 1605], 256],
+ 64746: [[1588, 1607], 256],
+ 64747: [[1603, 1604], 256],
+ 64748: [[1603, 1605], 256],
+ 64749: [[1604, 1605], 256],
+ 64750: [[1606, 1605], 256],
+ 64751: [[1606, 1607], 256],
+ 64752: [[1610, 1605], 256],
+ 64753: [[1610, 1607], 256],
+ 64754: [[1600, 1614, 1617], 256],
+ 64755: [[1600, 1615, 1617], 256],
+ 64756: [[1600, 1616, 1617], 256],
+ 64757: [[1591, 1609], 256],
+ 64758: [[1591, 1610], 256],
+ 64759: [[1593, 1609], 256],
+ 64760: [[1593, 1610], 256],
+ 64761: [[1594, 1609], 256],
+ 64762: [[1594, 1610], 256],
+ 64763: [[1587, 1609], 256],
+ 64764: [[1587, 1610], 256],
+ 64765: [[1588, 1609], 256],
+ 64766: [[1588, 1610], 256],
+ 64767: [[1581, 1609], 256]
+ },
+ 64768: {
+ 64768: [[1581, 1610], 256],
+ 64769: [[1580, 1609], 256],
+ 64770: [[1580, 1610], 256],
+ 64771: [[1582, 1609], 256],
+ 64772: [[1582, 1610], 256],
+ 64773: [[1589, 1609], 256],
+ 64774: [[1589, 1610], 256],
+ 64775: [[1590, 1609], 256],
+ 64776: [[1590, 1610], 256],
+ 64777: [[1588, 1580], 256],
+ 64778: [[1588, 1581], 256],
+ 64779: [[1588, 1582], 256],
+ 64780: [[1588, 1605], 256],
+ 64781: [[1588, 1585], 256],
+ 64782: [[1587, 1585], 256],
+ 64783: [[1589, 1585], 256],
+ 64784: [[1590, 1585], 256],
+ 64785: [[1591, 1609], 256],
+ 64786: [[1591, 1610], 256],
+ 64787: [[1593, 1609], 256],
+ 64788: [[1593, 1610], 256],
+ 64789: [[1594, 1609], 256],
+ 64790: [[1594, 1610], 256],
+ 64791: [[1587, 1609], 256],
+ 64792: [[1587, 1610], 256],
+ 64793: [[1588, 1609], 256],
+ 64794: [[1588, 1610], 256],
+ 64795: [[1581, 1609], 256],
+ 64796: [[1581, 1610], 256],
+ 64797: [[1580, 1609], 256],
+ 64798: [[1580, 1610], 256],
+ 64799: [[1582, 1609], 256],
+ 64800: [[1582, 1610], 256],
+ 64801: [[1589, 1609], 256],
+ 64802: [[1589, 1610], 256],
+ 64803: [[1590, 1609], 256],
+ 64804: [[1590, 1610], 256],
+ 64805: [[1588, 1580], 256],
+ 64806: [[1588, 1581], 256],
+ 64807: [[1588, 1582], 256],
+ 64808: [[1588, 1605], 256],
+ 64809: [[1588, 1585], 256],
+ 64810: [[1587, 1585], 256],
+ 64811: [[1589, 1585], 256],
+ 64812: [[1590, 1585], 256],
+ 64813: [[1588, 1580], 256],
+ 64814: [[1588, 1581], 256],
+ 64815: [[1588, 1582], 256],
+ 64816: [[1588, 1605], 256],
+ 64817: [[1587, 1607], 256],
+ 64818: [[1588, 1607], 256],
+ 64819: [[1591, 1605], 256],
+ 64820: [[1587, 1580], 256],
+ 64821: [[1587, 1581], 256],
+ 64822: [[1587, 1582], 256],
+ 64823: [[1588, 1580], 256],
+ 64824: [[1588, 1581], 256],
+ 64825: [[1588, 1582], 256],
+ 64826: [[1591, 1605], 256],
+ 64827: [[1592, 1605], 256],
+ 64828: [[1575, 1611], 256],
+ 64829: [[1575, 1611], 256],
+ 64848: [[1578, 1580, 1605], 256],
+ 64849: [[1578, 1581, 1580], 256],
+ 64850: [[1578, 1581, 1580], 256],
+ 64851: [[1578, 1581, 1605], 256],
+ 64852: [[1578, 1582, 1605], 256],
+ 64853: [[1578, 1605, 1580], 256],
+ 64854: [[1578, 1605, 1581], 256],
+ 64855: [[1578, 1605, 1582], 256],
+ 64856: [[1580, 1605, 1581], 256],
+ 64857: [[1580, 1605, 1581], 256],
+ 64858: [[1581, 1605, 1610], 256],
+ 64859: [[1581, 1605, 1609], 256],
+ 64860: [[1587, 1581, 1580], 256],
+ 64861: [[1587, 1580, 1581], 256],
+ 64862: [[1587, 1580, 1609], 256],
+ 64863: [[1587, 1605, 1581], 256],
+ 64864: [[1587, 1605, 1581], 256],
+ 64865: [[1587, 1605, 1580], 256],
+ 64866: [[1587, 1605, 1605], 256],
+ 64867: [[1587, 1605, 1605], 256],
+ 64868: [[1589, 1581, 1581], 256],
+ 64869: [[1589, 1581, 1581], 256],
+ 64870: [[1589, 1605, 1605], 256],
+ 64871: [[1588, 1581, 1605], 256],
+ 64872: [[1588, 1581, 1605], 256],
+ 64873: [[1588, 1580, 1610], 256],
+ 64874: [[1588, 1605, 1582], 256],
+ 64875: [[1588, 1605, 1582], 256],
+ 64876: [[1588, 1605, 1605], 256],
+ 64877: [[1588, 1605, 1605], 256],
+ 64878: [[1590, 1581, 1609], 256],
+ 64879: [[1590, 1582, 1605], 256],
+ 64880: [[1590, 1582, 1605], 256],
+ 64881: [[1591, 1605, 1581], 256],
+ 64882: [[1591, 1605, 1581], 256],
+ 64883: [[1591, 1605, 1605], 256],
+ 64884: [[1591, 1605, 1610], 256],
+ 64885: [[1593, 1580, 1605], 256],
+ 64886: [[1593, 1605, 1605], 256],
+ 64887: [[1593, 1605, 1605], 256],
+ 64888: [[1593, 1605, 1609], 256],
+ 64889: [[1594, 1605, 1605], 256],
+ 64890: [[1594, 1605, 1610], 256],
+ 64891: [[1594, 1605, 1609], 256],
+ 64892: [[1601, 1582, 1605], 256],
+ 64893: [[1601, 1582, 1605], 256],
+ 64894: [[1602, 1605, 1581], 256],
+ 64895: [[1602, 1605, 1605], 256],
+ 64896: [[1604, 1581, 1605], 256],
+ 64897: [[1604, 1581, 1610], 256],
+ 64898: [[1604, 1581, 1609], 256],
+ 64899: [[1604, 1580, 1580], 256],
+ 64900: [[1604, 1580, 1580], 256],
+ 64901: [[1604, 1582, 1605], 256],
+ 64902: [[1604, 1582, 1605], 256],
+ 64903: [[1604, 1605, 1581], 256],
+ 64904: [[1604, 1605, 1581], 256],
+ 64905: [[1605, 1581, 1580], 256],
+ 64906: [[1605, 1581, 1605], 256],
+ 64907: [[1605, 1581, 1610], 256],
+ 64908: [[1605, 1580, 1581], 256],
+ 64909: [[1605, 1580, 1605], 256],
+ 64910: [[1605, 1582, 1580], 256],
+ 64911: [[1605, 1582, 1605], 256],
+ 64914: [[1605, 1580, 1582], 256],
+ 64915: [[1607, 1605, 1580], 256],
+ 64916: [[1607, 1605, 1605], 256],
+ 64917: [[1606, 1581, 1605], 256],
+ 64918: [[1606, 1581, 1609], 256],
+ 64919: [[1606, 1580, 1605], 256],
+ 64920: [[1606, 1580, 1605], 256],
+ 64921: [[1606, 1580, 1609], 256],
+ 64922: [[1606, 1605, 1610], 256],
+ 64923: [[1606, 1605, 1609], 256],
+ 64924: [[1610, 1605, 1605], 256],
+ 64925: [[1610, 1605, 1605], 256],
+ 64926: [[1576, 1582, 1610], 256],
+ 64927: [[1578, 1580, 1610], 256],
+ 64928: [[1578, 1580, 1609], 256],
+ 64929: [[1578, 1582, 1610], 256],
+ 64930: [[1578, 1582, 1609], 256],
+ 64931: [[1578, 1605, 1610], 256],
+ 64932: [[1578, 1605, 1609], 256],
+ 64933: [[1580, 1605, 1610], 256],
+ 64934: [[1580, 1581, 1609], 256],
+ 64935: [[1580, 1605, 1609], 256],
+ 64936: [[1587, 1582, 1609], 256],
+ 64937: [[1589, 1581, 1610], 256],
+ 64938: [[1588, 1581, 1610], 256],
+ 64939: [[1590, 1581, 1610], 256],
+ 64940: [[1604, 1580, 1610], 256],
+ 64941: [[1604, 1605, 1610], 256],
+ 64942: [[1610, 1581, 1610], 256],
+ 64943: [[1610, 1580, 1610], 256],
+ 64944: [[1610, 1605, 1610], 256],
+ 64945: [[1605, 1605, 1610], 256],
+ 64946: [[1602, 1605, 1610], 256],
+ 64947: [[1606, 1581, 1610], 256],
+ 64948: [[1602, 1605, 1581], 256],
+ 64949: [[1604, 1581, 1605], 256],
+ 64950: [[1593, 1605, 1610], 256],
+ 64951: [[1603, 1605, 1610], 256],
+ 64952: [[1606, 1580, 1581], 256],
+ 64953: [[1605, 1582, 1610], 256],
+ 64954: [[1604, 1580, 1605], 256],
+ 64955: [[1603, 1605, 1605], 256],
+ 64956: [[1604, 1580, 1605], 256],
+ 64957: [[1606, 1580, 1581], 256],
+ 64958: [[1580, 1581, 1610], 256],
+ 64959: [[1581, 1580, 1610], 256],
+ 64960: [[1605, 1580, 1610], 256],
+ 64961: [[1601, 1605, 1610], 256],
+ 64962: [[1576, 1581, 1610], 256],
+ 64963: [[1603, 1605, 1605], 256],
+ 64964: [[1593, 1580, 1605], 256],
+ 64965: [[1589, 1605, 1605], 256],
+ 64966: [[1587, 1582, 1610], 256],
+ 64967: [[1606, 1580, 1610], 256],
+ 65008: [[1589, 1604, 1746], 256],
+ 65009: [[1602, 1604, 1746], 256],
+ 65010: [[1575, 1604, 1604, 1607], 256],
+ 65011: [[1575, 1603, 1576, 1585], 256],
+ 65012: [[1605, 1581, 1605, 1583], 256],
+ 65013: [[1589, 1604, 1593, 1605], 256],
+ 65014: [[1585, 1587, 1608, 1604], 256],
+ 65015: [[1593, 1604, 1610, 1607], 256],
+ 65016: [[1608, 1587, 1604, 1605], 256],
+ 65017: [[1589, 1604, 1609], 256],
+ 65018: [
+ [
+ 1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 1604, 1610, 1607, 32, 1608,
+ 1587, 1604, 1605
+ ],
+ 256
+ ],
+ 65019: [[1580, 1604, 32, 1580, 1604, 1575, 1604, 1607], 256],
+ 65020: [[1585, 1740, 1575, 1604], 256]
+ },
+ 65024: {
+ 65040: [[44], 256],
+ 65041: [[12289], 256],
+ 65042: [[12290], 256],
+ 65043: [[58], 256],
+ 65044: [[59], 256],
+ 65045: [[33], 256],
+ 65046: [[63], 256],
+ 65047: [[12310], 256],
+ 65048: [[12311], 256],
+ 65049: [[8230], 256],
+ 65056: [, 230],
+ 65057: [, 230],
+ 65058: [, 230],
+ 65059: [, 230],
+ 65060: [, 230],
+ 65061: [, 230],
+ 65062: [, 230],
+ 65072: [[8229], 256],
+ 65073: [[8212], 256],
+ 65074: [[8211], 256],
+ 65075: [[95], 256],
+ 65076: [[95], 256],
+ 65077: [[40], 256],
+ 65078: [[41], 256],
+ 65079: [[123], 256],
+ 65080: [[125], 256],
+ 65081: [[12308], 256],
+ 65082: [[12309], 256],
+ 65083: [[12304], 256],
+ 65084: [[12305], 256],
+ 65085: [[12298], 256],
+ 65086: [[12299], 256],
+ 65087: [[12296], 256],
+ 65088: [[12297], 256],
+ 65089: [[12300], 256],
+ 65090: [[12301], 256],
+ 65091: [[12302], 256],
+ 65092: [[12303], 256],
+ 65095: [[91], 256],
+ 65096: [[93], 256],
+ 65097: [[8254], 256],
+ 65098: [[8254], 256],
+ 65099: [[8254], 256],
+ 65100: [[8254], 256],
+ 65101: [[95], 256],
+ 65102: [[95], 256],
+ 65103: [[95], 256],
+ 65104: [[44], 256],
+ 65105: [[12289], 256],
+ 65106: [[46], 256],
+ 65108: [[59], 256],
+ 65109: [[58], 256],
+ 65110: [[63], 256],
+ 65111: [[33], 256],
+ 65112: [[8212], 256],
+ 65113: [[40], 256],
+ 65114: [[41], 256],
+ 65115: [[123], 256],
+ 65116: [[125], 256],
+ 65117: [[12308], 256],
+ 65118: [[12309], 256],
+ 65119: [[35], 256],
+ 65120: [[38], 256],
+ 65121: [[42], 256],
+ 65122: [[43], 256],
+ 65123: [[45], 256],
+ 65124: [[60], 256],
+ 65125: [[62], 256],
+ 65126: [[61], 256],
+ 65128: [[92], 256],
+ 65129: [[36], 256],
+ 65130: [[37], 256],
+ 65131: [[64], 256],
+ 65136: [[32, 1611], 256],
+ 65137: [[1600, 1611], 256],
+ 65138: [[32, 1612], 256],
+ 65140: [[32, 1613], 256],
+ 65142: [[32, 1614], 256],
+ 65143: [[1600, 1614], 256],
+ 65144: [[32, 1615], 256],
+ 65145: [[1600, 1615], 256],
+ 65146: [[32, 1616], 256],
+ 65147: [[1600, 1616], 256],
+ 65148: [[32, 1617], 256],
+ 65149: [[1600, 1617], 256],
+ 65150: [[32, 1618], 256],
+ 65151: [[1600, 1618], 256],
+ 65152: [[1569], 256],
+ 65153: [[1570], 256],
+ 65154: [[1570], 256],
+ 65155: [[1571], 256],
+ 65156: [[1571], 256],
+ 65157: [[1572], 256],
+ 65158: [[1572], 256],
+ 65159: [[1573], 256],
+ 65160: [[1573], 256],
+ 65161: [[1574], 256],
+ 65162: [[1574], 256],
+ 65163: [[1574], 256],
+ 65164: [[1574], 256],
+ 65165: [[1575], 256],
+ 65166: [[1575], 256],
+ 65167: [[1576], 256],
+ 65168: [[1576], 256],
+ 65169: [[1576], 256],
+ 65170: [[1576], 256],
+ 65171: [[1577], 256],
+ 65172: [[1577], 256],
+ 65173: [[1578], 256],
+ 65174: [[1578], 256],
+ 65175: [[1578], 256],
+ 65176: [[1578], 256],
+ 65177: [[1579], 256],
+ 65178: [[1579], 256],
+ 65179: [[1579], 256],
+ 65180: [[1579], 256],
+ 65181: [[1580], 256],
+ 65182: [[1580], 256],
+ 65183: [[1580], 256],
+ 65184: [[1580], 256],
+ 65185: [[1581], 256],
+ 65186: [[1581], 256],
+ 65187: [[1581], 256],
+ 65188: [[1581], 256],
+ 65189: [[1582], 256],
+ 65190: [[1582], 256],
+ 65191: [[1582], 256],
+ 65192: [[1582], 256],
+ 65193: [[1583], 256],
+ 65194: [[1583], 256],
+ 65195: [[1584], 256],
+ 65196: [[1584], 256],
+ 65197: [[1585], 256],
+ 65198: [[1585], 256],
+ 65199: [[1586], 256],
+ 65200: [[1586], 256],
+ 65201: [[1587], 256],
+ 65202: [[1587], 256],
+ 65203: [[1587], 256],
+ 65204: [[1587], 256],
+ 65205: [[1588], 256],
+ 65206: [[1588], 256],
+ 65207: [[1588], 256],
+ 65208: [[1588], 256],
+ 65209: [[1589], 256],
+ 65210: [[1589], 256],
+ 65211: [[1589], 256],
+ 65212: [[1589], 256],
+ 65213: [[1590], 256],
+ 65214: [[1590], 256],
+ 65215: [[1590], 256],
+ 65216: [[1590], 256],
+ 65217: [[1591], 256],
+ 65218: [[1591], 256],
+ 65219: [[1591], 256],
+ 65220: [[1591], 256],
+ 65221: [[1592], 256],
+ 65222: [[1592], 256],
+ 65223: [[1592], 256],
+ 65224: [[1592], 256],
+ 65225: [[1593], 256],
+ 65226: [[1593], 256],
+ 65227: [[1593], 256],
+ 65228: [[1593], 256],
+ 65229: [[1594], 256],
+ 65230: [[1594], 256],
+ 65231: [[1594], 256],
+ 65232: [[1594], 256],
+ 65233: [[1601], 256],
+ 65234: [[1601], 256],
+ 65235: [[1601], 256],
+ 65236: [[1601], 256],
+ 65237: [[1602], 256],
+ 65238: [[1602], 256],
+ 65239: [[1602], 256],
+ 65240: [[1602], 256],
+ 65241: [[1603], 256],
+ 65242: [[1603], 256],
+ 65243: [[1603], 256],
+ 65244: [[1603], 256],
+ 65245: [[1604], 256],
+ 65246: [[1604], 256],
+ 65247: [[1604], 256],
+ 65248: [[1604], 256],
+ 65249: [[1605], 256],
+ 65250: [[1605], 256],
+ 65251: [[1605], 256],
+ 65252: [[1605], 256],
+ 65253: [[1606], 256],
+ 65254: [[1606], 256],
+ 65255: [[1606], 256],
+ 65256: [[1606], 256],
+ 65257: [[1607], 256],
+ 65258: [[1607], 256],
+ 65259: [[1607], 256],
+ 65260: [[1607], 256],
+ 65261: [[1608], 256],
+ 65262: [[1608], 256],
+ 65263: [[1609], 256],
+ 65264: [[1609], 256],
+ 65265: [[1610], 256],
+ 65266: [[1610], 256],
+ 65267: [[1610], 256],
+ 65268: [[1610], 256],
+ 65269: [[1604, 1570], 256],
+ 65270: [[1604, 1570], 256],
+ 65271: [[1604, 1571], 256],
+ 65272: [[1604, 1571], 256],
+ 65273: [[1604, 1573], 256],
+ 65274: [[1604, 1573], 256],
+ 65275: [[1604, 1575], 256],
+ 65276: [[1604, 1575], 256]
+ },
+ 65280: {
+ 65281: [[33], 256],
+ 65282: [[34], 256],
+ 65283: [[35], 256],
+ 65284: [[36], 256],
+ 65285: [[37], 256],
+ 65286: [[38], 256],
+ 65287: [[39], 256],
+ 65288: [[40], 256],
+ 65289: [[41], 256],
+ 65290: [[42], 256],
+ 65291: [[43], 256],
+ 65292: [[44], 256],
+ 65293: [[45], 256],
+ 65294: [[46], 256],
+ 65295: [[47], 256],
+ 65296: [[48], 256],
+ 65297: [[49], 256],
+ 65298: [[50], 256],
+ 65299: [[51], 256],
+ 65300: [[52], 256],
+ 65301: [[53], 256],
+ 65302: [[54], 256],
+ 65303: [[55], 256],
+ 65304: [[56], 256],
+ 65305: [[57], 256],
+ 65306: [[58], 256],
+ 65307: [[59], 256],
+ 65308: [[60], 256],
+ 65309: [[61], 256],
+ 65310: [[62], 256],
+ 65311: [[63], 256],
+ 65312: [[64], 256],
+ 65313: [[65], 256],
+ 65314: [[66], 256],
+ 65315: [[67], 256],
+ 65316: [[68], 256],
+ 65317: [[69], 256],
+ 65318: [[70], 256],
+ 65319: [[71], 256],
+ 65320: [[72], 256],
+ 65321: [[73], 256],
+ 65322: [[74], 256],
+ 65323: [[75], 256],
+ 65324: [[76], 256],
+ 65325: [[77], 256],
+ 65326: [[78], 256],
+ 65327: [[79], 256],
+ 65328: [[80], 256],
+ 65329: [[81], 256],
+ 65330: [[82], 256],
+ 65331: [[83], 256],
+ 65332: [[84], 256],
+ 65333: [[85], 256],
+ 65334: [[86], 256],
+ 65335: [[87], 256],
+ 65336: [[88], 256],
+ 65337: [[89], 256],
+ 65338: [[90], 256],
+ 65339: [[91], 256],
+ 65340: [[92], 256],
+ 65341: [[93], 256],
+ 65342: [[94], 256],
+ 65343: [[95], 256],
+ 65344: [[96], 256],
+ 65345: [[97], 256],
+ 65346: [[98], 256],
+ 65347: [[99], 256],
+ 65348: [[100], 256],
+ 65349: [[101], 256],
+ 65350: [[102], 256],
+ 65351: [[103], 256],
+ 65352: [[104], 256],
+ 65353: [[105], 256],
+ 65354: [[106], 256],
+ 65355: [[107], 256],
+ 65356: [[108], 256],
+ 65357: [[109], 256],
+ 65358: [[110], 256],
+ 65359: [[111], 256],
+ 65360: [[112], 256],
+ 65361: [[113], 256],
+ 65362: [[114], 256],
+ 65363: [[115], 256],
+ 65364: [[116], 256],
+ 65365: [[117], 256],
+ 65366: [[118], 256],
+ 65367: [[119], 256],
+ 65368: [[120], 256],
+ 65369: [[121], 256],
+ 65370: [[122], 256],
+ 65371: [[123], 256],
+ 65372: [[124], 256],
+ 65373: [[125], 256],
+ 65374: [[126], 256],
+ 65375: [[10629], 256],
+ 65376: [[10630], 256],
+ 65377: [[12290], 256],
+ 65378: [[12300], 256],
+ 65379: [[12301], 256],
+ 65380: [[12289], 256],
+ 65381: [[12539], 256],
+ 65382: [[12530], 256],
+ 65383: [[12449], 256],
+ 65384: [[12451], 256],
+ 65385: [[12453], 256],
+ 65386: [[12455], 256],
+ 65387: [[12457], 256],
+ 65388: [[12515], 256],
+ 65389: [[12517], 256],
+ 65390: [[12519], 256],
+ 65391: [[12483], 256],
+ 65392: [[12540], 256],
+ 65393: [[12450], 256],
+ 65394: [[12452], 256],
+ 65395: [[12454], 256],
+ 65396: [[12456], 256],
+ 65397: [[12458], 256],
+ 65398: [[12459], 256],
+ 65399: [[12461], 256],
+ 65400: [[12463], 256],
+ 65401: [[12465], 256],
+ 65402: [[12467], 256],
+ 65403: [[12469], 256],
+ 65404: [[12471], 256],
+ 65405: [[12473], 256],
+ 65406: [[12475], 256],
+ 65407: [[12477], 256],
+ 65408: [[12479], 256],
+ 65409: [[12481], 256],
+ 65410: [[12484], 256],
+ 65411: [[12486], 256],
+ 65412: [[12488], 256],
+ 65413: [[12490], 256],
+ 65414: [[12491], 256],
+ 65415: [[12492], 256],
+ 65416: [[12493], 256],
+ 65417: [[12494], 256],
+ 65418: [[12495], 256],
+ 65419: [[12498], 256],
+ 65420: [[12501], 256],
+ 65421: [[12504], 256],
+ 65422: [[12507], 256],
+ 65423: [[12510], 256],
+ 65424: [[12511], 256],
+ 65425: [[12512], 256],
+ 65426: [[12513], 256],
+ 65427: [[12514], 256],
+ 65428: [[12516], 256],
+ 65429: [[12518], 256],
+ 65430: [[12520], 256],
+ 65431: [[12521], 256],
+ 65432: [[12522], 256],
+ 65433: [[12523], 256],
+ 65434: [[12524], 256],
+ 65435: [[12525], 256],
+ 65436: [[12527], 256],
+ 65437: [[12531], 256],
+ 65438: [[12441], 256],
+ 65439: [[12442], 256],
+ 65440: [[12644], 256],
+ 65441: [[12593], 256],
+ 65442: [[12594], 256],
+ 65443: [[12595], 256],
+ 65444: [[12596], 256],
+ 65445: [[12597], 256],
+ 65446: [[12598], 256],
+ 65447: [[12599], 256],
+ 65448: [[12600], 256],
+ 65449: [[12601], 256],
+ 65450: [[12602], 256],
+ 65451: [[12603], 256],
+ 65452: [[12604], 256],
+ 65453: [[12605], 256],
+ 65454: [[12606], 256],
+ 65455: [[12607], 256],
+ 65456: [[12608], 256],
+ 65457: [[12609], 256],
+ 65458: [[12610], 256],
+ 65459: [[12611], 256],
+ 65460: [[12612], 256],
+ 65461: [[12613], 256],
+ 65462: [[12614], 256],
+ 65463: [[12615], 256],
+ 65464: [[12616], 256],
+ 65465: [[12617], 256],
+ 65466: [[12618], 256],
+ 65467: [[12619], 256],
+ 65468: [[12620], 256],
+ 65469: [[12621], 256],
+ 65470: [[12622], 256],
+ 65474: [[12623], 256],
+ 65475: [[12624], 256],
+ 65476: [[12625], 256],
+ 65477: [[12626], 256],
+ 65478: [[12627], 256],
+ 65479: [[12628], 256],
+ 65482: [[12629], 256],
+ 65483: [[12630], 256],
+ 65484: [[12631], 256],
+ 65485: [[12632], 256],
+ 65486: [[12633], 256],
+ 65487: [[12634], 256],
+ 65490: [[12635], 256],
+ 65491: [[12636], 256],
+ 65492: [[12637], 256],
+ 65493: [[12638], 256],
+ 65494: [[12639], 256],
+ 65495: [[12640], 256],
+ 65498: [[12641], 256],
+ 65499: [[12642], 256],
+ 65500: [[12643], 256],
+ 65504: [[162], 256],
+ 65505: [[163], 256],
+ 65506: [[172], 256],
+ 65507: [[175], 256],
+ 65508: [[166], 256],
+ 65509: [[165], 256],
+ 65510: [[8361], 256],
+ 65512: [[9474], 256],
+ 65513: [[8592], 256],
+ 65514: [[8593], 256],
+ 65515: [[8594], 256],
+ 65516: [[8595], 256],
+ 65517: [[9632], 256],
+ 65518: [[9675], 256]
+ }
+};
diff --git a/node_modules/es5-ext/string/#/normalize/implement.js b/node_modules/es5-ext/string/#/normalize/implement.js
new file mode 100644
index 00000000..deb60896
--- /dev/null
+++ b/node_modules/es5-ext/string/#/normalize/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "normalize", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/normalize/index.js b/node_modules/es5-ext/string/#/normalize/index.js
new file mode 100644
index 00000000..a8c04dba
--- /dev/null
+++ b/node_modules/es5-ext/string/#/normalize/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.normalize : require("./shim");
diff --git a/node_modules/es5-ext/string/#/normalize/is-implemented.js b/node_modules/es5-ext/string/#/normalize/is-implemented.js
new file mode 100644
index 00000000..01b48a9d
--- /dev/null
+++ b/node_modules/es5-ext/string/#/normalize/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "æøåäüö";
+
+module.exports = function () {
+ if (typeof str.normalize !== "function") return false;
+ return str.normalize("NFKD") === "æøåäüö";
+};
diff --git a/node_modules/es5-ext/string/#/normalize/shim.js b/node_modules/es5-ext/string/#/normalize/shim.js
new file mode 100644
index 00000000..95bae268
--- /dev/null
+++ b/node_modules/es5-ext/string/#/normalize/shim.js
@@ -0,0 +1,309 @@
+/* eslint no-bitwise: "off", max-statements: "off", max-lines: "off" */
+
+// Taken from: https://github.com/walling/unorm/blob/master/lib/unorm.js
+
+/*
+ * UnicodeNormalizer 1.0.0
+ * Copyright (c) 2008 Matsuza
+ * Dual licensed under the MIT (MIT-LICENSE.txt) and
+ * GPL (GPL-LICENSE.txt) licenses.
+ * $Date: 2008-06-05 16:44:17 +0200 (Thu, 05 Jun 2008) $
+ * $Rev: 13309 $
+ */
+
+"use strict";
+
+var primitiveSet = require("../../../object/primitive-set")
+ , validValue = require("../../../object/valid-value")
+ , data = require("./_data");
+
+var floor = Math.floor
+ , forms = primitiveSet("NFC", "NFD", "NFKC", "NFKD")
+ , DEFAULT_FEATURE = [null, 0, {}]
+ , CACHE_THRESHOLD = 10
+ , SBase = 0xac00
+ , LBase = 0x1100
+ , VBase = 0x1161
+ , TBase = 0x11a7
+ , LCount = 19
+ , VCount = 21
+ , TCount = 28
+ , NCount = VCount * TCount
+ , SCount = LCount * NCount
+ , UChar
+ , cache = {}
+ , cacheCounter = []
+ , fromCache
+ , fromData
+ , fromCpOnly
+ , fromRuleBasedJamo
+ , fromCpFilter
+ , strategies
+ , UCharIterator
+ , RecursDecompIterator
+ , DecompIterator
+ , CompIterator
+ , createIterator
+ , normalize;
+
+UChar = function (cp, feature) {
+ this.codepoint = cp;
+ this.feature = feature;
+};
+
+// Strategies
+(function () { for (var i = 0; i <= 0xff; ++i) cacheCounter[i] = 0; })();
+
+fromCache = function (nextStep, cp, needFeature) {
+ var ret = cache[cp];
+ if (!ret) {
+ ret = nextStep(cp, needFeature);
+ if (Boolean(ret.feature) && ++cacheCounter[(cp >> 8) & 0xff] > CACHE_THRESHOLD) {
+ cache[cp] = ret;
+ }
+ }
+ return ret;
+};
+
+fromData = function (next, cp) {
+ var hash = cp & 0xff00, dunit = UChar.udata[hash] || {}, feature = dunit[cp];
+ return feature ? new UChar(cp, feature) : new UChar(cp, DEFAULT_FEATURE);
+};
+fromCpOnly = function (next, cp, needFeature) {
+ return needFeature ? next(cp, needFeature) : new UChar(cp, null);
+};
+
+fromRuleBasedJamo = function (next, cp, needFeature) {
+ var char, base, i, arr, SIndex, TIndex, feature, j;
+ if (cp < LBase || (LBase + LCount <= cp && cp < SBase) || SBase + SCount < cp) {
+ return next(cp, needFeature);
+ }
+ if (LBase <= cp && cp < LBase + LCount) {
+ char = {};
+ base = (cp - LBase) * VCount;
+ for (i = 0; i < VCount; ++i) {
+ char[VBase + i] = SBase + TCount * (i + base);
+ }
+ arr = new Array(3);
+ arr[2] = char;
+ return new UChar(cp, arr);
+ }
+
+ SIndex = cp - SBase;
+ TIndex = SIndex % TCount;
+ feature = [];
+ if (TIndex === 0) {
+ feature[0] = [LBase + floor(SIndex / NCount), VBase + floor((SIndex % NCount) / TCount)];
+ feature[2] = {};
+ for (j = 1; j < TCount; ++j) {
+ feature[2][TBase + j] = cp + j;
+ }
+ } else {
+ feature[0] = [SBase + SIndex - TIndex, TBase + TIndex];
+ }
+ return new UChar(cp, feature);
+};
+
+fromCpFilter = function (next, cp, needFeature) {
+ return cp < 60 || (cp > 13311 && cp < 42607)
+ ? new UChar(cp, DEFAULT_FEATURE)
+ : next(cp, needFeature);
+};
+
+strategies = [fromCpFilter, fromCache, fromCpOnly, fromRuleBasedJamo, fromData];
+
+UChar.fromCharCode = strategies.reduceRight(function (next, strategy) {
+ return function (cp, needFeature) { return strategy(next, cp, needFeature); };
+}, null);
+
+UChar.isHighSurrogate = function (cp) { return cp >= 0xd800 && cp <= 0xdbff; };
+UChar.isLowSurrogate = function (cp) { return cp >= 0xdc00 && cp <= 0xdfff; };
+
+UChar.prototype.prepFeature = function () {
+ if (!this.feature) {
+ this.feature = UChar.fromCharCode(this.codepoint, true).feature;
+ }
+};
+
+UChar.prototype.toString = function () {
+ var num;
+ if (this.codepoint < 0x10000) return String.fromCharCode(this.codepoint);
+ num = this.codepoint - 0x10000;
+ return String.fromCharCode(floor(num / 0x400) + 0xd800, (num % 0x400) + 0xdc00);
+};
+
+UChar.prototype.getDecomp = function () {
+ this.prepFeature();
+ return this.feature[0] || null;
+};
+
+UChar.prototype.isCompatibility = function () {
+ this.prepFeature();
+ return Boolean(this.feature[1]) && this.feature[1] & (1 << 8);
+};
+UChar.prototype.isExclude = function () {
+ this.prepFeature();
+ return Boolean(this.feature[1]) && this.feature[1] & (1 << 9);
+};
+UChar.prototype.getCanonicalClass = function () {
+ this.prepFeature();
+ return this.feature[1] ? this.feature[1] & 0xff : 0;
+};
+UChar.prototype.getComposite = function (following) {
+ var cp;
+ this.prepFeature();
+ if (!this.feature[2]) return null;
+ cp = this.feature[2][following.codepoint];
+ return cp ? UChar.fromCharCode(cp) : null;
+};
+
+UCharIterator = function (str) {
+ this.str = str;
+ this.cursor = 0;
+};
+UCharIterator.prototype.next = function () {
+ if (Boolean(this.str) && this.cursor < this.str.length) {
+ var cp = this.str.charCodeAt(this.cursor++), d;
+ if (
+ UChar.isHighSurrogate(cp) &&
+ this.cursor < this.str.length &&
+ UChar.isLowSurrogate((d = this.str.charCodeAt(this.cursor)))
+ ) {
+ cp = (cp - 0xd800) * 0x400 + (d - 0xdc00) + 0x10000;
+ ++this.cursor;
+ }
+ return UChar.fromCharCode(cp);
+ }
+ this.str = null;
+ return null;
+};
+
+RecursDecompIterator = function (it, cano) {
+ this.it = it;
+ this.canonical = cano;
+ this.resBuf = [];
+};
+
+RecursDecompIterator.prototype.next = function () {
+ var recursiveDecomp, uchar;
+ recursiveDecomp = function (cano, ucharLoc) {
+ var decomp = ucharLoc.getDecomp(), ret, i, a, j;
+ if (Boolean(decomp) && !(cano && ucharLoc.isCompatibility())) {
+ ret = [];
+ for (i = 0; i < decomp.length; ++i) {
+ a = recursiveDecomp(cano, UChar.fromCharCode(decomp[i]));
+ // Ret.concat(a); //<-why does not this work?
+ // following block is a workaround.
+ for (j = 0; j < a.length; ++j) ret.push(a[j]);
+ }
+ return ret;
+ }
+ return [ucharLoc];
+ };
+ if (this.resBuf.length === 0) {
+ uchar = this.it.next();
+ if (!uchar) return null;
+ this.resBuf = recursiveDecomp(this.canonical, uchar);
+ }
+ return this.resBuf.shift();
+};
+
+DecompIterator = function (it) {
+ this.it = it;
+ this.resBuf = [];
+};
+
+DecompIterator.prototype.next = function () {
+ var cc, uchar, inspt, uchar2, cc2;
+ if (this.resBuf.length === 0) {
+ do {
+ uchar = this.it.next();
+ if (!uchar) break;
+ cc = uchar.getCanonicalClass();
+ inspt = this.resBuf.length;
+ if (cc !== 0) {
+ for (inspt; inspt > 0; --inspt) {
+ uchar2 = this.resBuf[inspt - 1];
+ cc2 = uchar2.getCanonicalClass();
+ // eslint-disable-next-line max-depth
+ if (cc2 <= cc) break;
+ }
+ }
+ this.resBuf.splice(inspt, 0, uchar);
+ } while (cc !== 0);
+ }
+ return this.resBuf.shift();
+};
+
+CompIterator = function (it) {
+ this.it = it;
+ this.procBuf = [];
+ this.resBuf = [];
+ this.lastClass = null;
+};
+
+CompIterator.prototype.next = function () {
+ var uchar, starter, composite, cc;
+ while (this.resBuf.length === 0) {
+ uchar = this.it.next();
+ if (!uchar) {
+ this.resBuf = this.procBuf;
+ this.procBuf = [];
+ break;
+ }
+ if (this.procBuf.length === 0) {
+ this.lastClass = uchar.getCanonicalClass();
+ this.procBuf.push(uchar);
+ } else {
+ starter = this.procBuf[0];
+ composite = starter.getComposite(uchar);
+ cc = uchar.getCanonicalClass();
+ if (Boolean(composite) && (this.lastClass < cc || this.lastClass === 0)) {
+ this.procBuf[0] = composite;
+ } else {
+ if (cc === 0) {
+ this.resBuf = this.procBuf;
+ this.procBuf = [];
+ }
+ this.lastClass = cc;
+ this.procBuf.push(uchar);
+ }
+ }
+ }
+ return this.resBuf.shift();
+};
+
+createIterator = function (mode, str) {
+ switch (mode) {
+ case "NFD":
+ return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true));
+ case "NFKD":
+ return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false));
+ case "NFC":
+ return new CompIterator(
+ new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true))
+ );
+ case "NFKC":
+ return new CompIterator(
+ new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false))
+ );
+ default:
+ throw new Error(mode + " is invalid");
+ }
+};
+normalize = function (mode, str) {
+ var it = createIterator(mode, str), ret = "", uchar;
+ while ((uchar = it.next())) ret += uchar.toString();
+ return ret;
+};
+
+/* Unicode data */
+UChar.udata = data;
+
+module.exports = function (/* Form*/) {
+ var str = String(validValue(this)), form = arguments[0];
+ if (form === undefined) form = "NFC";
+ else form = String(form);
+ if (!forms[form]) throw new RangeError("Invalid normalization form: " + form);
+ return normalize(form, str);
+};
diff --git a/node_modules/es5-ext/string/#/pad.js b/node_modules/es5-ext/string/#/pad.js
new file mode 100644
index 00000000..113a873b
--- /dev/null
+++ b/node_modules/es5-ext/string/#/pad.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var toInteger = require("../../number/to-integer")
+ , value = require("../../object/valid-value")
+ , repeat = require("./repeat")
+ , abs = Math.abs
+ , max = Math.max;
+
+module.exports = function (fill/*, length*/) {
+ var self = String(value(this)), sLength = self.length, length = arguments[1];
+
+ length = isNaN(length) ? 1 : toInteger(length);
+ fill = repeat.call(String(fill), abs(length));
+ if (length >= 0) return fill.slice(0, max(0, length - sLength)) + self;
+ return self + (sLength + length >= 0 ? "" : fill.slice(length + sLength));
+};
diff --git a/node_modules/es5-ext/string/#/plain-replace-all.js b/node_modules/es5-ext/string/#/plain-replace-all.js
new file mode 100644
index 00000000..9334fe09
--- /dev/null
+++ b/node_modules/es5-ext/string/#/plain-replace-all.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var value = require("../../object/valid-value");
+
+module.exports = function (search, replace) {
+ var index, pos = 0, str = String(value(this)), sl, rl;
+ search = String(search);
+ replace = String(replace);
+ sl = search.length;
+ rl = replace.length;
+ while ((index = str.indexOf(search, pos)) !== -1) {
+ str = str.slice(0, index) + replace + str.slice(index + sl);
+ pos = index + rl;
+ }
+ return str;
+};
diff --git a/node_modules/es5-ext/string/#/plain-replace.js b/node_modules/es5-ext/string/#/plain-replace.js
new file mode 100644
index 00000000..b8bfe3de
--- /dev/null
+++ b/node_modules/es5-ext/string/#/plain-replace.js
@@ -0,0 +1,9 @@
+"use strict";
+
+var indexOf = String.prototype.indexOf, slice = String.prototype.slice;
+
+module.exports = function (search, replace) {
+ var index = indexOf.call(this, search);
+ if (index === -1) return String(this);
+ return slice.call(this, 0, index) + replace + slice.call(this, index + String(search).length);
+};
diff --git a/node_modules/es5-ext/string/#/repeat/implement.js b/node_modules/es5-ext/string/#/repeat/implement.js
new file mode 100644
index 00000000..f237dcdd
--- /dev/null
+++ b/node_modules/es5-ext/string/#/repeat/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "repeat", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/repeat/index.js b/node_modules/es5-ext/string/#/repeat/index.js
new file mode 100644
index 00000000..abcb601a
--- /dev/null
+++ b/node_modules/es5-ext/string/#/repeat/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.repeat : require("./shim");
diff --git a/node_modules/es5-ext/string/#/repeat/is-implemented.js b/node_modules/es5-ext/string/#/repeat/is-implemented.js
new file mode 100644
index 00000000..e8e02409
--- /dev/null
+++ b/node_modules/es5-ext/string/#/repeat/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "foo";
+
+module.exports = function () {
+ if (typeof str.repeat !== "function") return false;
+ return str.repeat(2) === "foofoo";
+};
diff --git a/node_modules/es5-ext/string/#/repeat/shim.js b/node_modules/es5-ext/string/#/repeat/shim.js
new file mode 100644
index 00000000..ac259a83
--- /dev/null
+++ b/node_modules/es5-ext/string/#/repeat/shim.js
@@ -0,0 +1,24 @@
+// Thanks
+// @rauchma http://www.2ality.com/2014/01/efficient-string-repeat.html
+// @mathiasbynens https://github.com/mathiasbynens/String.prototype.repeat/blob/4a4b567def/repeat.js
+
+"use strict";
+
+var value = require("../../../object/valid-value")
+ , toInteger = require("../../../number/to-integer");
+
+module.exports = function (count) {
+ var str = String(value(this)), result;
+ count = toInteger(count);
+ if (count < 0) throw new RangeError("Count must be >= 0");
+ if (!isFinite(count)) throw new RangeError("Count must be < ∞");
+
+ result = "";
+ while (count) {
+ if (count % 2) result += str;
+ if (count > 1) str += str;
+ // eslint-disable-next-line no-bitwise
+ count >>= 1;
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/string/#/starts-with/implement.js b/node_modules/es5-ext/string/#/starts-with/implement.js
new file mode 100644
index 00000000..62abadbf
--- /dev/null
+++ b/node_modules/es5-ext/string/#/starts-with/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String.prototype, "startsWith", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/#/starts-with/index.js b/node_modules/es5-ext/string/#/starts-with/index.js
new file mode 100644
index 00000000..a0a368fd
--- /dev/null
+++ b/node_modules/es5-ext/string/#/starts-with/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.prototype.startsWith : require("./shim");
diff --git a/node_modules/es5-ext/string/#/starts-with/is-implemented.js b/node_modules/es5-ext/string/#/starts-with/is-implemented.js
new file mode 100644
index 00000000..d1241bca
--- /dev/null
+++ b/node_modules/es5-ext/string/#/starts-with/is-implemented.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var str = "razdwatrzy";
+
+module.exports = function () {
+ if (typeof str.startsWith !== "function") return false;
+ return str.startsWith("trzy") === false && str.startsWith("raz") === true;
+};
diff --git a/node_modules/es5-ext/string/#/starts-with/shim.js b/node_modules/es5-ext/string/#/starts-with/shim.js
new file mode 100644
index 00000000..053c8854
--- /dev/null
+++ b/node_modules/es5-ext/string/#/starts-with/shim.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var value = require("../../../object/valid-value")
+ , toInteger = require("../../../number/to-integer")
+ , max = Math.max
+ , min = Math.min;
+
+module.exports = function (searchString/*, position*/) {
+ var start, self = String(value(this));
+ start = min(max(toInteger(arguments[1]), 0), self.length);
+ return self.indexOf(searchString, start) === start;
+};
diff --git a/node_modules/es5-ext/string/#/uncapitalize.js b/node_modules/es5-ext/string/#/uncapitalize.js
new file mode 100644
index 00000000..202dbb73
--- /dev/null
+++ b/node_modules/es5-ext/string/#/uncapitalize.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var ensureStringifiable = require("../../object/validate-stringifiable-value");
+
+module.exports = function () {
+ var str = ensureStringifiable(this);
+ return str.charAt(0).toLowerCase() + str.slice(1);
+};
diff --git a/node_modules/es5-ext/string/format-method.js b/node_modules/es5-ext/string/format-method.js
new file mode 100644
index 00000000..28956fea
--- /dev/null
+++ b/node_modules/es5-ext/string/format-method.js
@@ -0,0 +1,27 @@
+"use strict";
+
+var isCallable = require("../object/is-callable")
+ , value = require("../object/valid-value")
+ , call = Function.prototype.call;
+
+module.exports = function (fmap) {
+ fmap = Object(value(fmap));
+ return function (pattern) {
+ var context = this;
+ value(context);
+ pattern = String(pattern);
+ return pattern.replace(/%([a-zA-Z]+)|\\([\u0000-\uffff])/g, function (
+ match,
+ token,
+ escapeChar
+ ) {
+ var t, result;
+ if (escapeChar) return escapeChar;
+ t = token;
+ while (t && !(result = fmap[t])) t = t.slice(0, -1);
+ if (!result) return match;
+ if (isCallable(result)) result = call.call(result, context);
+ return result + token.slice(t.length);
+ });
+ };
+};
diff --git a/node_modules/es5-ext/string/from-code-point/implement.js b/node_modules/es5-ext/string/from-code-point/implement.js
new file mode 100644
index 00000000..71728bfc
--- /dev/null
+++ b/node_modules/es5-ext/string/from-code-point/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String, "fromCodePoint", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/from-code-point/index.js b/node_modules/es5-ext/string/from-code-point/index.js
new file mode 100644
index 00000000..5a5fc5b2
--- /dev/null
+++ b/node_modules/es5-ext/string/from-code-point/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.fromCodePoint : require("./shim");
diff --git a/node_modules/es5-ext/string/from-code-point/is-implemented.js b/node_modules/es5-ext/string/from-code-point/is-implemented.js
new file mode 100644
index 00000000..ae4b818b
--- /dev/null
+++ b/node_modules/es5-ext/string/from-code-point/is-implemented.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function () {
+ var fromCodePoint = String.fromCodePoint;
+ if (typeof fromCodePoint !== "function") return false;
+ return fromCodePoint(0x1d306, 0x61, 0x1d307) === "\ud834\udf06a\ud834\udf07";
+};
diff --git a/node_modules/es5-ext/string/from-code-point/shim.js b/node_modules/es5-ext/string/from-code-point/shim.js
new file mode 100644
index 00000000..c2f1c3a3
--- /dev/null
+++ b/node_modules/es5-ext/string/from-code-point/shim.js
@@ -0,0 +1,37 @@
+// Based on:
+// http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/
+// and:
+// https://github.com/mathiasbynens/String.fromCodePoint/blob/master
+// /fromcodepoint.js
+
+"use strict";
+
+var floor = Math.floor, fromCharCode = String.fromCharCode;
+
+// eslint-disable-next-line no-unused-vars
+module.exports = function (codePoint1/*, …codePoints*/) {
+ var chars = [], length = arguments.length, i, codePoint, result = "";
+ for (i = 0; i < length; ++i) {
+ codePoint = Number(arguments[i]);
+ if (
+ !isFinite(codePoint) ||
+ codePoint < 0 ||
+ codePoint > 0x10ffff ||
+ floor(codePoint) !== codePoint
+ ) {
+ throw new RangeError("Invalid code point " + codePoint);
+ }
+
+ if (codePoint < 0x10000) {
+ chars.push(codePoint);
+ } else {
+ codePoint -= 0x10000;
+ // eslint-disable-next-line no-bitwise
+ chars.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00);
+ }
+ if (i + 1 !== length && chars.length <= 0x4000) continue;
+ result += fromCharCode.apply(null, chars);
+ chars.length = 0;
+ }
+ return result;
+};
diff --git a/node_modules/es5-ext/string/index.js b/node_modules/es5-ext/string/index.js
new file mode 100644
index 00000000..4393588f
--- /dev/null
+++ b/node_modules/es5-ext/string/index.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = {
+ "#": require("./#"),
+ "formatMethod": require("./format-method"),
+ "fromCodePoint": require("./from-code-point"),
+ "isString": require("./is-string"),
+ "random": require("./random"),
+ "randomUniq": require("./random-uniq"),
+ "raw": require("./raw")
+};
diff --git a/node_modules/es5-ext/string/is-string.js b/node_modules/es5-ext/string/is-string.js
new file mode 100644
index 00000000..1b1e8630
--- /dev/null
+++ b/node_modules/es5-ext/string/is-string.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var objToString = Object.prototype.toString, id = objToString.call("");
+
+module.exports = function (value) {
+ return (
+ typeof value === "string" ||
+ (value &&
+ typeof value === "object" &&
+ (value instanceof String || objToString.call(value) === id)) ||
+ false
+ );
+};
diff --git a/node_modules/es5-ext/string/random-uniq.js b/node_modules/es5-ext/string/random-uniq.js
new file mode 100644
index 00000000..ae57b29e
--- /dev/null
+++ b/node_modules/es5-ext/string/random-uniq.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var generated = Object.create(null), random = Math.random;
+
+module.exports = function () {
+ var str;
+ do {
+ str = random().toString(36).slice(2);
+ } while (generated[str]);
+ return str;
+};
diff --git a/node_modules/es5-ext/string/random.js b/node_modules/es5-ext/string/random.js
new file mode 100644
index 00000000..8fda5de7
--- /dev/null
+++ b/node_modules/es5-ext/string/random.js
@@ -0,0 +1,38 @@
+"use strict";
+
+var isValue = require("../object/is-value")
+ , toNaturalNumber = require("../number/to-pos-integer");
+
+var generated = Object.create(null), random = Math.random, uniqTryLimit = 100;
+
+var getChunk = function () { return random().toString(36).slice(2); };
+
+var getString = function (/* length */) {
+ var str = getChunk(), length = arguments[0];
+ if (!isValue(length)) return str;
+ while (str.length < length) str += getChunk();
+ return str.slice(0, length);
+};
+
+module.exports = function (/* options */) {
+ var options = Object(arguments[0]), length = options.length, isUnique = options.isUnique;
+
+ if (isValue(length)) length = toNaturalNumber(length);
+
+ var str = getString(length);
+ if (isUnique) {
+ var count = 0;
+ while (generated[str]) {
+ if (++count === uniqTryLimit) {
+ throw new Error(
+ "Cannot generate random string.\n" +
+ "String.random is not designed to effectively generate many short and " +
+ "unique random strings"
+ );
+ }
+ str = getString(length);
+ }
+ generated[str] = true;
+ }
+ return str;
+};
diff --git a/node_modules/es5-ext/string/raw/implement.js b/node_modules/es5-ext/string/raw/implement.js
new file mode 100644
index 00000000..24f17c2a
--- /dev/null
+++ b/node_modules/es5-ext/string/raw/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(String, "raw", {
+ value: require("./shim"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es5-ext/string/raw/index.js b/node_modules/es5-ext/string/raw/index.js
new file mode 100644
index 00000000..39889e9b
--- /dev/null
+++ b/node_modules/es5-ext/string/raw/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./is-implemented")() ? String.raw : require("./shim");
diff --git a/node_modules/es5-ext/string/raw/is-implemented.js b/node_modules/es5-ext/string/raw/is-implemented.js
new file mode 100644
index 00000000..8758108c
--- /dev/null
+++ b/node_modules/es5-ext/string/raw/is-implemented.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function () {
+ var raw = String.raw, test;
+ if (typeof raw !== "function") return false;
+ test = ["foo\nbar", "marko\n"];
+ test.raw = ["foo\\nbar", "marko\\n"];
+ return raw(test, "INSE\nRT") === "foo\\nbarINSE\nRTmarko\\n";
+};
diff --git a/node_modules/es5-ext/string/raw/shim.js b/node_modules/es5-ext/string/raw/shim.js
new file mode 100644
index 00000000..5d17e5ff
--- /dev/null
+++ b/node_modules/es5-ext/string/raw/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var toPosInt = require("../../number/to-pos-integer")
+ , validValue = require("../../object/valid-value")
+ , reduce = Array.prototype.reduce;
+
+module.exports = function (callSite/*, …substitutions*/) {
+ var args, rawValue = Object(validValue(Object(validValue(callSite)).raw));
+ if (!toPosInt(rawValue.length)) return "";
+ args = arguments;
+ return reduce.call(rawValue, function (str1, str2, i) {
+ return str1 + String(args[i]) + str2;
+ });
+};
diff --git a/node_modules/es5-ext/test/.eslintrc.json b/node_modules/es5-ext/test/.eslintrc.json
new file mode 100644
index 00000000..7d691720
--- /dev/null
+++ b/node_modules/es5-ext/test/.eslintrc.json
@@ -0,0 +1,12 @@
+{
+ "globals": { "Symbol": true },
+ "rules": {
+ "consistent-this": "off",
+ "id-length": "off",
+ "no-empty-function": "off",
+ "no-eval": "off",
+ "no-new-wrappers": "off",
+ "no-prototype-builtins": "off",
+ "no-shadow": "off"
+ }
+}
diff --git a/node_modules/es5-ext/test/__tad.js b/node_modules/es5-ext/test/__tad.js
new file mode 100644
index 00000000..883c3792
--- /dev/null
+++ b/node_modules/es5-ext/test/__tad.js
@@ -0,0 +1,3 @@
+"use strict";
+
+exports.context = null;
diff --git a/node_modules/es5-ext/test/array/#/@@iterator/implement.js b/node_modules/es5-ext/test/array/#/@@iterator/implement.js
new file mode 100644
index 00000000..aac624fe
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/@@iterator/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/@@iterator/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/@@iterator/index.js b/node_modules/es5-ext/test/array/#/@@iterator/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/@@iterator/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js b/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/@@iterator/shim.js b/node_modules/es5-ext/test/array/#/@@iterator/shim.js
new file mode 100644
index 00000000..71b71d58
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/@@iterator/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var iterator = t.call(this);
+ a.deep(iterator.next(), { value: "1", done: false });
+ a.deep(iterator.next(), { value: "2", done: false });
+ a.deep(iterator.next(), { value: "3", done: false });
+ a.deep(iterator.next(), { value: undefined, done: true });
+};
diff --git a/node_modules/es5-ext/test/array/#/_compare-by-length.js b/node_modules/es5-ext/test/array/#/_compare-by-length.js
new file mode 100644
index 00000000..a53d8470
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/_compare-by-length.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var arr = [4, 5, 6], obj1 = { length: 8 }, obj2 = {}, obj3 = { length: 1 };
+
+ a.deep([arr, obj1, obj2, obj3].sort(t), [obj2, obj3, arr, obj1]);
+};
diff --git a/node_modules/es5-ext/test/array/#/binary-search.js b/node_modules/es5-ext/test/array/#/binary-search.js
new file mode 100644
index 00000000..7c1d2f6b
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/binary-search.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var compare = function (value) { return this - value; };
+
+module.exports = function (t, a) {
+ var arr;
+ arr = [2, 5, 5, 8, 34, 67, 98, 345, 678];
+
+ // Highest, equal match
+ a(t.call(arr, compare.bind(1)), 0, "All higher");
+ a(t.call(arr, compare.bind(679)), arr.length - 1, "All lower");
+ a(t.call(arr, compare.bind(4)), 0, "Mid");
+ a(t.call(arr, compare.bind(5)), 2, "Match");
+ a(t.call(arr, compare.bind(6)), 2, "Above");
+};
diff --git a/node_modules/es5-ext/test/array/#/clear.js b/node_modules/es5-ext/test/array/#/clear.js
new file mode 100644
index 00000000..640cc192
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/clear.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var arr = [1, 2, {}, 4];
+ a(t.call(arr), arr, "Returns same array");
+ a.deep(arr, [], "Empties array");
+};
diff --git a/node_modules/es5-ext/test/array/#/compact.js b/node_modules/es5-ext/test/array/#/compact.js
new file mode 100644
index 00000000..a7702a1b
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/compact.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) { a(t.call(this).length, 3); },
+ "": function (t, a) {
+ var o, x, y, z;
+ o = {};
+ x = [0, 1, "", null, o, false, undefined, true];
+ y = x.slice(0);
+
+ a.not((z = t.call(x)), x, "Returns different object");
+ a.deep(x, y, "Origin not changed");
+ a.deep(z, [0, 1, "", o, false, true], "Result");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/concat/implement.js b/node_modules/es5-ext/test/array/#/concat/implement.js
new file mode 100644
index 00000000..83a397ef
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/concat/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/concat/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/concat/index.js b/node_modules/es5-ext/test/array/#/concat/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/concat/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/concat/is-implemented.js b/node_modules/es5-ext/test/array/#/concat/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/concat/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/concat/shim.js b/node_modules/es5-ext/test/array/#/concat/shim.js
new file mode 100644
index 00000000..a9e62739
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/concat/shim.js
@@ -0,0 +1,29 @@
+"use strict";
+
+var isConcatSpreadable = require("es6-symbol").isConcatSpreadable
+ , SubArray = require("../../../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr = [1, 3, 45], x = {}, subArr, subArr2, result;
+
+ a.deep(
+ t.call(arr, "2d", x, ["ere", "fe", x], false, null),
+ [1, 3, 45, "2d", x, "ere", "fe", x, false, null], "Plain array"
+ );
+
+ subArr = new SubArray("lol", "miszko");
+ subArr2 = new SubArray("elo", "fol");
+
+ result = t.call(subArr, "df", arr, "fef", subArr2, null);
+ a(result instanceof SubArray, true, "Instance of subclass");
+ a.deep(
+ result, ["lol", "miszko", "df", 1, 3, 45, "fef", "elo", "fol", null], "Spreable by default"
+ );
+
+ SubArray.prototype[isConcatSpreadable] = false;
+
+ result = t.call(subArr, "df", arr, "fef", subArr2, null);
+ a.deep(result, [subArr, "df", 1, 3, 45, "fef", subArr2, null], "Non spreadable");
+
+ delete SubArray.prototype[isConcatSpreadable];
+};
diff --git a/node_modules/es5-ext/test/array/#/contains.js b/node_modules/es5-ext/test/array/#/contains.js
new file mode 100644
index 00000000..fb0f96ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/contains.js
@@ -0,0 +1,21 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) {
+ a(t.call(this, this[1]), true, "Contains");
+ a(t.call(this, {}), false, "Does Not contain");
+ },
+ "": function (t, a) {
+ var o, x = {}, y = {};
+
+ o = [1, "raz", x];
+
+ a(t.call(o, 1), true, "First");
+ a(t.call(o, "1"), false, "Type coercion");
+ a(t.call(o, "raz"), true, "Primitive");
+ a(t.call(o, "foo"), false, "Primitive not found");
+ a(t.call(o, x), true, "Object found");
+ a(t.call(o, y), false, "Object not found");
+ a(t.call(o, 1, 1), false, "Position");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/copy-within/implement.js b/node_modules/es5-ext/test/array/#/copy-within/implement.js
new file mode 100644
index 00000000..6d5a305d
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/copy-within/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/copy-within/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/copy-within/index.js b/node_modules/es5-ext/test/array/#/copy-within/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/copy-within/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js b/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/copy-within/shim.js b/node_modules/es5-ext/test/array/#/copy-within/shim.js
new file mode 100644
index 00000000..03a631fe
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/copy-within/shim.js
@@ -0,0 +1,29 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var args, x;
+
+ a.h1("2 args");
+ x = [1, 2, 3, 4, 5];
+ t.call(x, 0, 3);
+ a.deep(x, [4, 5, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]);
+
+ a.h1("3 args");
+ a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]);
+
+ a.h1("Negative args");
+ a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]);
+ a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]);
+
+ a.h1("Array-likes");
+ args = { 0: 1, 1: 2, 2: 3, length: 3 };
+ a.deep(t.call(args, -2, 0), { 0: 1, 1: 1, 2: 2, length: 3 });
+};
diff --git a/node_modules/es5-ext/test/array/#/diff.js b/node_modules/es5-ext/test/array/#/diff.js
new file mode 100644
index 00000000..b088d838
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/diff.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) { a.deep(t.call(this, this), []); },
+ "": function (t, a) {
+ var x = {}, y = {};
+
+ a.deep(t.call([1, "raz", x, 2, "trzy", y], [x, 2, "trzy"]), [1, "raz", y], "Scope longer");
+ a.deep(t.call([1, "raz", x], [x, 2, "trzy", 1, y]), ["raz"], "Arg longer");
+ a.deep(t.call([1, "raz", x], []), [1, "raz", x], "Empty arg");
+ a.deep(t.call([], [1, y, "sdfs"]), [], "Empty scope");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/e-index-of.js b/node_modules/es5-ext/test/array/#/e-index-of.js
new file mode 100644
index 00000000..1e42cbd7
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/e-index-of.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([3, "raz", {}, x, {}], x), 3, "Regular");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN), 2, "NaN");
+ a(t.call([3, "raz", 0, {}, -0], -0), 2, "-0");
+ a(t.call([3, "raz", -0, {}, 0], +0), 2, "+0");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 4, "fromIndex");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN, -1), 4, "fromIndex negative #1");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN, -2), 4, "fromIndex negative #2");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN, -3), 2, "fromIndex negative #3");
+};
diff --git a/node_modules/es5-ext/test/array/#/e-last-index-of.js b/node_modules/es5-ext/test/array/#/e-last-index-of.js
new file mode 100644
index 00000000..2c7fff9f
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/e-last-index-of.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([3, "raz", {}, x, {}, x], x), 5, "Regular");
+ a(t.call([3, "raz", NaN, {}, x], NaN), 2, "NaN");
+ a(t.call([3, "raz", 0, {}, -0], -0), 4, "-0");
+ a(t.call([3, "raz", -0, {}, 0], +0), 4, "+0");
+ a(t.call([3, "raz", NaN, {}, NaN], NaN, 3), 2, "fromIndex");
+ a(t.call([3, "raz", NaN, 2, NaN], NaN, -1), 4, "Negative fromIndex #1");
+ a(t.call([3, "raz", NaN, 2, NaN], NaN, -2), 2, "Negative fromIndex #2");
+};
diff --git a/node_modules/es5-ext/test/array/#/entries/implement.js b/node_modules/es5-ext/test/array/#/entries/implement.js
new file mode 100644
index 00000000..00dbf0e9
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/entries/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/entries/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/entries/index.js b/node_modules/es5-ext/test/array/#/entries/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/entries/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/entries/is-implemented.js b/node_modules/es5-ext/test/array/#/entries/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/entries/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/entries/shim.js b/node_modules/es5-ext/test/array/#/entries/shim.js
new file mode 100644
index 00000000..87ac25a9
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/entries/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var iterator = t.call(this);
+ a.deep(iterator.next(), { value: [0, "1"], done: false });
+ a.deep(iterator.next(), { value: [1, "2"], done: false });
+ a.deep(iterator.next(), { value: [2, "3"], done: false });
+ a.deep(iterator.next(), { value: undefined, done: true });
+};
diff --git a/node_modules/es5-ext/test/array/#/exclusion.js b/node_modules/es5-ext/test/array/#/exclusion.js
new file mode 100644
index 00000000..827c037a
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/exclusion.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) {
+ var x = {};
+ a.deep(t.call(this, this, [this[0], this[2], x]), [x]);
+ },
+ "": function (t, a) {
+ var x = {}, y = {};
+
+ a.deep(t.call([x, y]), [x, y], "No arguments");
+ a.deep(t.call([x, 1], [], []), [x, 1], "Empty arguments");
+ a.deep(t.call([1, "raz", x], [2, "raz", y], [2, "raz", x]), [1, y]);
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/fill/implement.js b/node_modules/es5-ext/test/array/#/fill/implement.js
new file mode 100644
index 00000000..41f2a5b1
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/fill/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/fill/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/fill/index.js b/node_modules/es5-ext/test/array/#/fill/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/fill/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/fill/is-implemented.js b/node_modules/es5-ext/test/array/#/fill/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/fill/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/fill/shim.js b/node_modules/es5-ext/test/array/#/fill/shim.js
new file mode 100644
index 00000000..75906e94
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/fill/shim.js
@@ -0,0 +1,15 @@
+// Taken from https://github.com/paulmillr/es6-shim/blob/master/test/array.js
+
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+
+ x = [1, 2, 3, 4, 5, 6];
+ a(t.call(x, -1), x, "Returns self object");
+ a.deep(x, [-1, -1, -1, -1, -1, -1], "Value");
+
+ a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 3), [1, 2, 3, -1, -1, -1], "Positive start");
+ a.deep(t.call([1, 2, 3, 4, 5, 6], -1, -3), [1, 2, 3, -1, -1, -1], "Negative start");
+ a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 9), [1, 2, 3, 4, 5, 6], "Large start");
+};
diff --git a/node_modules/es5-ext/test/array/#/filter/implement.js b/node_modules/es5-ext/test/array/#/filter/implement.js
new file mode 100644
index 00000000..9a6ad044
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/filter/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/filter/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/filter/index.js b/node_modules/es5-ext/test/array/#/filter/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/filter/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/filter/is-implemented.js b/node_modules/es5-ext/test/array/#/filter/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/filter/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/filter/shim.js b/node_modules/es5-ext/test/array/#/filter/shim.js
new file mode 100644
index 00000000..e20a6511
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/filter/shim.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var SubArray = require("../../../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr, x = {}, subArr, result;
+
+ arr = ["foo", undefined, 0, "2d", false, x, null];
+
+ a.deep(t.call(arr, Boolean), ["foo", "2d", x], "Plain array");
+
+ subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
+
+ result = t.call(subArr, Boolean);
+ a(result instanceof SubArray, true, "Instance of subclass");
+ a.deep(result, ["foo", "2d", x], "Result of subclass");
+};
diff --git a/node_modules/es5-ext/test/array/#/find-index/implement.js b/node_modules/es5-ext/test/array/#/find-index/implement.js
new file mode 100644
index 00000000..2291982a
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find-index/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/find-index/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/find-index/index.js b/node_modules/es5-ext/test/array/#/find-index/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find-index/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/find-index/is-implemented.js b/node_modules/es5-ext/test/array/#/find-index/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find-index/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/find-index/shim.js b/node_modules/es5-ext/test/array/#/find-index/shim.js
new file mode 100644
index 00000000..665c5622
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find-index/shim.js
@@ -0,0 +1,23 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var count = 0, o = {}, self = Object(this);
+ a(
+ t.call(
+ self,
+ function (value, i, scope) {
+ a(value, this[i], "Value");
+ a(i, count++, "Index");
+ a(scope, this, "Scope");
+ },
+ self
+ ),
+ -1,
+ "Falsy result"
+ );
+ a(count, 3);
+
+ count = -1;
+ a(t.call(this, function () { return ++count ? o : null; }, this), 1, "Truthy result");
+ a(count, 1);
+};
diff --git a/node_modules/es5-ext/test/array/#/find/implement.js b/node_modules/es5-ext/test/array/#/find/implement.js
new file mode 100644
index 00000000..463198b5
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/find/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/find/index.js b/node_modules/es5-ext/test/array/#/find/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/find/is-implemented.js b/node_modules/es5-ext/test/array/#/find/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/find/shim.js b/node_modules/es5-ext/test/array/#/find/shim.js
new file mode 100644
index 00000000..fdda1227
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/find/shim.js
@@ -0,0 +1,23 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var count = 0, o = {}, self = Object(this);
+ a(
+ t.call(
+ self,
+ function (value, i, scope) {
+ a(value, this[i], "Value");
+ a(i, count++, "Index");
+ a(scope, this, "Scope");
+ },
+ self
+ ),
+ undefined,
+ "Falsy result"
+ );
+ a(count, 3);
+
+ count = -1;
+ a(t.call(this, function () { return ++count ? o : null; }, this), this[1], "Truthy result");
+ a(count, 1);
+};
diff --git a/node_modules/es5-ext/test/array/#/first-index.js b/node_modules/es5-ext/test/array/#/first-index.js
new file mode 100644
index 00000000..af3388b5
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/first-index.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a(t.call([]), null, "Empty");
+ a(t.call([null]), 0, "One value");
+ a(t.call([1, 2, 3]), 0, "Many values");
+ a(t.call(new Array(1000)), null, "Sparse empty");
+ x = [];
+ x[883] = undefined;
+ x[890] = null;
+ a(t.call(x), 883, "Manual sparse, distant value");
+ x = new Array(1000);
+ x[657] = undefined;
+ x[700] = null;
+ a(t.call(x), 657, "Sparse, distant value");
+};
diff --git a/node_modules/es5-ext/test/array/#/first.js b/node_modules/es5-ext/test/array/#/first.js
new file mode 100644
index 00000000..4e72c029
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/first.js
@@ -0,0 +1,11 @@
+"use strict";
+
+exports.__generic = function (t, a) { a(t.call(this), this[0]); };
+exports[""] = function (t, a) {
+ var x;
+ a(t.call([]), undefined, "Empty");
+ a(t.call(new Array(234), undefined, "Sparse empty"));
+ x = new Array(2342);
+ x[434] = {};
+ a(t.call(x), x[434], "Sparse");
+};
diff --git a/node_modules/es5-ext/test/array/#/flatten.js b/node_modules/es5-ext/test/array/#/flatten.js
new file mode 100644
index 00000000..aa749a54
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/flatten.js
@@ -0,0 +1,12 @@
+"use strict";
+
+var o = [1, 2, [3, 4, [5, 6], 7, 8], 9, 10, [11, 12, [13, 14]], 15];
+
+module.exports = {
+ "__generic": function (t, a) { a(t.call(this).length, 3); },
+ "Nested Arrays": function (t, a) {
+ var result = t.call(o);
+ a.not(o, result);
+ a.deep(result, [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]);
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/for-each-right.js b/node_modules/es5-ext/test/array/#/for-each-right.js
new file mode 100644
index 00000000..b5eb9841
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/for-each-right.js
@@ -0,0 +1,39 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) {
+ var count = 0, first, last, x, icount = this.length;
+ t.call(this, function (item, index, col) {
+ ++count;
+ if (!first) {
+ first = item;
+ }
+ last = item;
+ x = col;
+ a(index, --icount, "Index");
+ });
+ a(count, this.length, "Iterated");
+ a(first, this[this.length - 1], "First is last");
+ a(last, this[0], "Last is first");
+ a.deep(x, Object(this), "Collection as third argument"); // Jslint: skip
+ },
+ "": function (t, a) {
+ var x = {}, y, count;
+ t.call([1], function () { y = this; }, x);
+ a(y, x, "Scope");
+ y = 0;
+ t.call([3, 4, 4], function (a, i) { y += i; });
+ a(y, 3, "Indexes");
+
+ x = [1, 3];
+ x[5] = "x";
+ y = 0;
+ count = 0;
+ t.call(x, function (a, i) {
+ ++count;
+ y += i;
+ });
+ a(y, 6, "Misssing Indexes");
+ a(count, 3, "Misssing Indexes, count");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/group.js b/node_modules/es5-ext/test/array/#/group.js
new file mode 100644
index 00000000..114fffd4
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/group.js
@@ -0,0 +1,30 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) {
+ var count = 0, self;
+
+ self = Object(this);
+ a.deep(
+ t.call(
+ self,
+ function (v, i, scope) {
+ a(v, this[i], "Value");
+ a(i, count++, "Index");
+ a(scope, this, "Scope");
+ return i;
+ },
+ self
+ ),
+ { 0: [this[0]], 1: [this[1]], 2: [this[2]] }
+ );
+ },
+ "": function (t, a) {
+ var r;
+ r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56], function (v) {
+ return v % 2 ? "odd" : "even";
+ });
+ a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]);
+ a.deep(r.even, [2, 4, 6, 34, 56]);
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/indexes-of.js b/node_modules/es5-ext/test/array/#/indexes-of.js
new file mode 100644
index 00000000..aa50d5e3
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/indexes-of.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) { a.deep(t.call(this, this[1]), [1]); },
+ "": function (t, a) {
+ var x = {};
+ a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
+ a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
+ a.deep(t.call([], x), [], "Empty array");
+ a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/intersection.js b/node_modules/es5-ext/test/array/#/intersection.js
new file mode 100644
index 00000000..81088d27
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/intersection.js
@@ -0,0 +1,25 @@
+"use strict";
+
+var toArray = require("../../../array/to-array");
+
+module.exports = {
+ "__generic": function (t, a) { a.deep(t.call(this, this, this), toArray(this)); },
+ "": function (t, a) {
+ var x = {}, y = {}, p, r;
+ a.deep(t.call([], [2, 3, 4]), [], "Empty #1");
+ a.deep(t.call([2, 3, 4], []), [], "Empty #2");
+ a.deep(t.call([2, 3, x], [y, 5, 7]), [], "Different");
+ p = t.call(
+ [3, 5, "raz", {}, "dwa", x], [1, 3, "raz", "dwa", "trzy", x, {}], [3, "raz", x, 65]
+ );
+ r = [3, "raz", x];
+ p.sort();
+ r.sort();
+ a.deep(p, r, "Same parts");
+ a.deep(t.call(r, r), r, "Same");
+ a.deep(
+ t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]), [1, 2, x, 4, 5, y, 7],
+ "Long reverse same"
+ );
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/is-copy.js b/node_modules/es5-ext/test/array/#/is-copy.js
new file mode 100644
index 00000000..b362485d
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/is-copy.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([], []), true, "Empty");
+ a(t.call([], {}), true, "Empty lists");
+ a(t.call([1, x, "raz"], [1, x, "raz"]), true, "Same");
+ a(t.call([1, x, "raz"], { 0: 1, 1: x, 2: "raz", length: 3 }), true, "Same lists");
+ a(t.call([1, x, "raz"], [x, 1, "raz"]), false, "Diff order");
+ a(t.call([1, x], [1, x, "raz"]), false, "Diff length #1");
+ a(t.call([1, x, "raz"], [1, x]), false, "Diff length #2");
+};
diff --git a/node_modules/es5-ext/test/array/#/is-empty.js b/node_modules/es5-ext/test/array/#/is-empty.js
new file mode 100644
index 00000000..1e1c097b
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/is-empty.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([]), true, "Empty");
+ a(t.call({ length: 0 }), true, "Empty lists");
+ a(t.call([1, x, "raz"]), false, "Non empty");
+};
diff --git a/node_modules/es5-ext/test/array/#/is-uniq.js b/node_modules/es5-ext/test/array/#/is-uniq.js
new file mode 100644
index 00000000..ab531ac5
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/is-uniq.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t.call([]), true, "Empty");
+ a(t.call({}), true, "Empty lists");
+ a(t.call([1, x, "raz"]), true, "Uniq");
+ a(t.call([1, x, 1, "raz"]), false, "Not Uniq: primitive");
+ a(t.call([1, x, "1", "raz"]), true, "Uniq: primitive");
+ a(t.call([1, x, 1, {}, "raz"]), false, "Not Uniq: Obj");
+};
diff --git a/node_modules/es5-ext/test/array/#/keys/implement.js b/node_modules/es5-ext/test/array/#/keys/implement.js
new file mode 100644
index 00000000..5afe847f
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/keys/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/keys/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/keys/index.js b/node_modules/es5-ext/test/array/#/keys/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/keys/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/keys/is-implemented.js b/node_modules/es5-ext/test/array/#/keys/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/keys/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/keys/shim.js b/node_modules/es5-ext/test/array/#/keys/shim.js
new file mode 100644
index 00000000..9be9a8f0
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/keys/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var iterator = t.call(this);
+ a.deep(iterator.next(), { value: 0, done: false });
+ a.deep(iterator.next(), { value: 1, done: false });
+ a.deep(iterator.next(), { value: 2, done: false });
+ a.deep(iterator.next(), { value: undefined, done: true });
+};
diff --git a/node_modules/es5-ext/test/array/#/last-index.js b/node_modules/es5-ext/test/array/#/last-index.js
new file mode 100644
index 00000000..e66d16f1
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/last-index.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a(t.call([]), null, "Empty");
+ a(t.call([null]), 0, "One value");
+ a(t.call([1, 2, 3]), 2, "Many values");
+ a(t.call(new Array(1000)), null, "Sparse empty");
+ x = [];
+ x[883] = null;
+ x[890] = undefined;
+ a(t.call(x), 890, "Manual sparse, distant value");
+ x = new Array(1000);
+ x[657] = null;
+ x[700] = undefined;
+ a(t.call(x), 700, "Sparse, distant value");
+};
diff --git a/node_modules/es5-ext/test/array/#/last.js b/node_modules/es5-ext/test/array/#/last.js
new file mode 100644
index 00000000..16bca6d5
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/last.js
@@ -0,0 +1,13 @@
+"use strict";
+
+exports.__generic = function (t, a) { a(t.call(this), this[this.length - 1]); };
+
+exports[""] = function (t, a) {
+ var x;
+ a(t.call([]), undefined, "Empty");
+ a(t.call(new Array(234), undefined, "Sparse empty"));
+ x = new Array(2342);
+ x[434] = {};
+ x[450] = {};
+ a(t.call(x), x[450], "Sparse");
+};
diff --git a/node_modules/es5-ext/test/array/#/map/implement.js b/node_modules/es5-ext/test/array/#/map/implement.js
new file mode 100644
index 00000000..1e335813
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/map/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/map/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/map/index.js b/node_modules/es5-ext/test/array/#/map/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/map/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/map/is-implemented.js b/node_modules/es5-ext/test/array/#/map/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/map/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/map/shim.js b/node_modules/es5-ext/test/array/#/map/shim.js
new file mode 100644
index 00000000..cb178a24
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/map/shim.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var SubArray = require("../../../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr, x = {}, subArr, result;
+
+ arr = ["foo", undefined, 0, "2d", false, x, null];
+
+ a.deep(t.call(arr, Boolean), [true, false, false, true, false, true, false], "Plain array");
+
+ subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
+
+ result = t.call(subArr, Boolean);
+ a(result instanceof SubArray, true, "Instance of subclass");
+ a.deep(result, [true, false, false, true, false, true, false], "Result of subclass");
+};
diff --git a/node_modules/es5-ext/test/array/#/remove.js b/node_modules/es5-ext/test/array/#/remove.js
new file mode 100644
index 00000000..d67457ea
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/remove.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var y = {}, z = {}, x = [9, z, 5, y, "foo"];
+ t.call(x, y);
+ a.deep(x, [9, z, 5, "foo"]);
+ t.call(x, {});
+ a.deep(x, [9, z, 5, "foo"], "Not existing");
+ t.call(x, 5);
+ a.deep(x, [9, z, "foo"], "Primitive");
+ x = [9, z, 5, y, "foo"];
+ t.call(x, z, 5, "foo");
+ a.deep(x, [9, y], "More than one argument");
+};
diff --git a/node_modules/es5-ext/test/array/#/separate.js b/node_modules/es5-ext/test/array/#/separate.js
new file mode 100644
index 00000000..9792637f
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/separate.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = [], y = {}, z = {};
+ a.deep(t.call(x, y), [], "Empty");
+ a.not(t.call(x), x, "Returns copy");
+ a.deep(t.call([1], y), [1], "One");
+ a.deep(t.call([1, "raz"], y), [1, y, "raz"], "One");
+ a.deep(t.call([1, "raz", x], y), [1, y, "raz", y, x], "More");
+ x = new Array(1000);
+ x[23] = 2;
+ x[3453] = "raz";
+ x[500] = z;
+ a.deep(t.call(x, y), [2, y, z, y, "raz"], "Sparse");
+};
diff --git a/node_modules/es5-ext/test/array/#/slice/implement.js b/node_modules/es5-ext/test/array/#/slice/implement.js
new file mode 100644
index 00000000..5a567913
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/slice/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/slice/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/slice/index.js b/node_modules/es5-ext/test/array/#/slice/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/slice/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/slice/is-implemented.js b/node_modules/es5-ext/test/array/#/slice/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/slice/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/slice/shim.js b/node_modules/es5-ext/test/array/#/slice/shim.js
new file mode 100644
index 00000000..f09ad13c
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/slice/shim.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var SubArray = require("../../../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr, x = {}, subArr, result;
+
+ arr = ["foo", undefined, 0, "2d", false, x, null];
+
+ a.deep(t.call(arr, 2, 4), [0, "2d"], "Plain array: result");
+
+ subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
+
+ result = t.call(subArr, 2, 4);
+ a(result instanceof SubArray, true, "Instance of subclass");
+ a.deep(result, [0, "2d"], "Subclass: result");
+};
diff --git a/node_modules/es5-ext/test/array/#/some-right.js b/node_modules/es5-ext/test/array/#/some-right.js
new file mode 100644
index 00000000..ead78cc9
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/some-right.js
@@ -0,0 +1,54 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) {
+ var count = 0, first, last, x, icount = this.length;
+ t.call(this, function (item, index, col) {
+ ++count;
+ if (!first) {
+ first = item;
+ }
+ last = item;
+ x = col;
+ a(index, --icount, "Index");
+ });
+ a(count, this.length, "Iterated");
+ a(first, this[this.length - 1], "First is last");
+ a(last, this[0], "Last is first");
+ a.deep(x, Object(this), "Collection as third argument"); // Jslint: skip
+ },
+ "": function (t, a) {
+ var x = {}, y, count;
+ t.call([1], function () { y = this; }, x);
+ a(y, x, "Scope");
+ y = 0;
+ t.call([3, 4, 4], function (a, i) { y += i; });
+ a(y, 3, "Indexes");
+
+ x = [1, 3];
+ x[5] = "x";
+ y = 0;
+ count = 0;
+ a(
+ t.call(x, function (a, i) {
+ ++count;
+ y += i;
+ }),
+ false,
+ "Return"
+ );
+ a(y, 6, "Misssing Indexes");
+ a(count, 3, "Misssing Indexes, count");
+
+ count = 0;
+ a(
+ t.call([-2, -3, -4, 2, -5], function (item) {
+ ++count;
+ return item > 0;
+ }),
+ true,
+ "Return"
+ );
+ a(count, 2, "Break after true is returned");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/splice/implement.js b/node_modules/es5-ext/test/array/#/splice/implement.js
new file mode 100644
index 00000000..2035022d
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/splice/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/splice/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/splice/index.js b/node_modules/es5-ext/test/array/#/splice/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/splice/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/splice/is-implemented.js b/node_modules/es5-ext/test/array/#/splice/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/splice/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/splice/shim.js b/node_modules/es5-ext/test/array/#/splice/shim.js
new file mode 100644
index 00000000..48020078
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/splice/shim.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var SubArray = require("../../../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr, x = {}, subArr, result;
+
+ arr = ["foo", undefined, 0, "2d", false, x, null];
+
+ a.deep(t.call(arr, 2, 2, "bar"), [0, "2d"], "Plain array: result");
+ a.deep(arr, ["foo", undefined, "bar", false, x, null], "Plain array: change");
+
+ subArr = new SubArray("foo", undefined, 0, "2d", false, x, null);
+
+ result = t.call(subArr, 2, 2, "bar");
+ a(result instanceof SubArray, true, "Instance of subclass");
+ a.deep(result, [0, "2d"], "Subclass: result");
+ a.deep(subArr, ["foo", undefined, "bar", false, x, null], "Subclass: change");
+};
diff --git a/node_modules/es5-ext/test/array/#/uniq.js b/node_modules/es5-ext/test/array/#/uniq.js
new file mode 100644
index 00000000..77b398b7
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/uniq.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = {
+ "__generic": function (t, a) { a(t.call(this).length, 3); },
+ "": function (t, a) {
+ var o, x = {}, y = {}, z = {}, w;
+ o = [1, 2, x, 3, 1, "raz", "1", y, x, "trzy", z, "raz"];
+
+ a.not((w = t.call(o)), o, "Returns different object");
+ a.deep(w, [1, 2, x, 3, "raz", "1", y, "trzy", z], "Result");
+ }
+};
diff --git a/node_modules/es5-ext/test/array/#/values/implement.js b/node_modules/es5-ext/test/array/#/values/implement.js
new file mode 100644
index 00000000..60fb8dca
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/values/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../array/#/values/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/#/values/index.js b/node_modules/es5-ext/test/array/#/values/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/values/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/#/values/is-implemented.js b/node_modules/es5-ext/test/array/#/values/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/values/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/#/values/shim.js b/node_modules/es5-ext/test/array/#/values/shim.js
new file mode 100644
index 00000000..71b71d58
--- /dev/null
+++ b/node_modules/es5-ext/test/array/#/values/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+exports.__generic = function (t, a) {
+ var iterator = t.call(this);
+ a.deep(iterator.next(), { value: "1", done: false });
+ a.deep(iterator.next(), { value: "2", done: false });
+ a.deep(iterator.next(), { value: "3", done: false });
+ a.deep(iterator.next(), { value: undefined, done: true });
+};
diff --git a/node_modules/es5-ext/test/array/__scopes.js b/node_modules/es5-ext/test/array/__scopes.js
new file mode 100644
index 00000000..f1c40906
--- /dev/null
+++ b/node_modules/es5-ext/test/array/__scopes.js
@@ -0,0 +1,9 @@
+"use strict";
+
+exports.Array = ["1", "2", "3"];
+
+exports.Arguments = (function () { return arguments; })("1", "2", "3");
+
+exports.String = "123";
+
+exports.Object = { 0: "1", 1: "2", 2: "3", 3: "4", length: 3 };
diff --git a/node_modules/es5-ext/test/array/_is-extensible.js b/node_modules/es5-ext/test/array/_is-extensible.js
new file mode 100644
index 00000000..124e59d7
--- /dev/null
+++ b/node_modules/es5-ext/test/array/_is-extensible.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t, "boolean"); };
diff --git a/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js b/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js
new file mode 100644
index 00000000..4fab50d1
--- /dev/null
+++ b/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isArray = Array.isArray;
+
+module.exports = function (t) { t(t === null || isArray(t.prototype), true); };
diff --git a/node_modules/es5-ext/test/array/_sub-array-dummy.js b/node_modules/es5-ext/test/array/_sub-array-dummy.js
new file mode 100644
index 00000000..4fab50d1
--- /dev/null
+++ b/node_modules/es5-ext/test/array/_sub-array-dummy.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isArray = Array.isArray;
+
+module.exports = function (t) { t(t === null || isArray(t.prototype), true); };
diff --git a/node_modules/es5-ext/test/array/from/implement.js b/node_modules/es5-ext/test/array/from/implement.js
new file mode 100644
index 00000000..48cd7b64
--- /dev/null
+++ b/node_modules/es5-ext/test/array/from/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../array/from/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/from/index.js b/node_modules/es5-ext/test/array/from/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/from/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/from/is-implemented.js b/node_modules/es5-ext/test/array/from/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/from/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/from/shim.js b/node_modules/es5-ext/test/array/from/shim.js
new file mode 100644
index 00000000..997f832a
--- /dev/null
+++ b/node_modules/es5-ext/test/array/from/shim.js
@@ -0,0 +1,64 @@
+// Some tests taken from: https://github.com/mathiasbynens/Array.from/blob/master/tests/tests.js
+
+"use strict";
+
+module.exports = function (t, a) {
+ var o = [1, 2, 3], MyType;
+ a.not(t(o), o, "Array");
+ a.deep(t(o), o, "Array: same content");
+ a.deep(t("12r3v"), ["1", "2", "r", "3", "v"], "String");
+ a.deep(t((function () { return arguments; })(3, o, "raz")), [3, o, "raz"], "Arguments");
+ a.deep(t((function () { return arguments; })(3)), [3], "Arguments with one numeric value");
+
+ a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other");
+
+ a.deep(t(o, function (val) { return (val + 2) * 10; }, 10), [30, 40, 50], "Mapping");
+
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.deep(t(3), [], "Primitive");
+
+ a(t.length, 1, "Length");
+ a.deep(t({ length: 0 }), [], "No values Array-like");
+ a.deep(t({ length: -1 }), [], "Invalid length Array-like");
+ a.deep(t({ length: -Infinity }), [], "Invalid length Array-like #2");
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a.deep(t(false), [], "Boolean");
+ a.deep(t(-Infinity), [], "Inifity");
+ a.deep(t(-0), [], "-0");
+ a.deep(t(+0), [], "+0");
+ a.deep(t(1), [], "1");
+ a.deep(t(Number(Infinity)), [], "+Infinity");
+ a.deep(t({}), [], "Plain object");
+ a.deep(t({ length: 1 }), [undefined], "Sparse array-like");
+ a.deep(t({ 0: "a", 1: "b", length: 2 }, function (x) { return x + x; }), ["aa", "bb"], "Map");
+ a.deep(
+ t({ 0: "a", 1: "b", length: 2 }, function () { return String(this); }, undefined),
+ ["undefined", "undefined"], "Map context"
+ );
+ a.deep(
+ t({ 0: "a", 1: "b", length: 2 }, function () { return String(this); }, "x"), ["x", "x"],
+ "Map primitive context"
+ );
+ a.throws(function () { t({}, "foo", "x"); }, TypeError, "Non callable for map");
+
+ a.deep(t({ length: 1, 0: "a" }), ["a"], "Null context");
+
+ a(t({ __proto__: { 0: "abc", length: 1 } })[0], "abc", "Values on prototype");
+
+ a.throws(
+ function () {
+ t.call(function () { return Object.freeze({}); }, {});
+ },
+ TypeError,
+ "Contructor producing freezed objects"
+ );
+
+ // Ensure no setters are called for the indexes
+ // Ensure no setters are called for the indexes
+ MyType = function () {};
+ Object.defineProperty(MyType.prototype, "0", {
+ set: function (x) { throw new Error("Setter called: " + x); }
+ });
+ a.deep(t.call(MyType, { 0: "abc", length: 1 }), { 0: "abc", length: 1 }, "Defined not set");
+};
diff --git a/node_modules/es5-ext/test/array/generate.js b/node_modules/es5-ext/test/array/generate.js
new file mode 100644
index 00000000..efd5f7c8
--- /dev/null
+++ b/node_modules/es5-ext/test/array/generate.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {}, y = {};
+ a.deep(t(3), [undefined, undefined, undefined], "Just length");
+ a.deep(t(0, "x"), [], "No repeat");
+ a.deep(t(1, x, y), [x], "Arguments length larger than repeat number");
+ a.deep(t(3, x), [x, x, x], "Single argument");
+ a.deep(t(5, x, y), [x, y, x, y, x], "Many arguments");
+};
diff --git a/node_modules/es5-ext/test/array/is-plain-array.js b/node_modules/es5-ext/test/array/is-plain-array.js
new file mode 100644
index 00000000..2cfd50d3
--- /dev/null
+++ b/node_modules/es5-ext/test/array/is-plain-array.js
@@ -0,0 +1,18 @@
+"use strict";
+
+var SubArray = require("../../array/_sub-array-dummy-safe");
+
+module.exports = function (t, a) {
+ var arr = [1, 2, 3];
+ a(t(arr), true, "Array");
+ a(t(null), false, "Null");
+ a(t(), false, "Undefined");
+ a(t("234"), false, "String");
+ a(t(23), false, "Number");
+ a(t({}), false, "Plain object");
+ a(t({ length: 1, 0: "raz" }), false, "Array-like");
+ a(t(Object.create(arr)), false, "Array extension");
+ if (!SubArray) return;
+ a(t(new SubArray(23)), false, "Subclass instance");
+ a(t(Array.prototype), false, "Array.prototype");
+};
diff --git a/node_modules/es5-ext/test/array/of/implement.js b/node_modules/es5-ext/test/array/of/implement.js
new file mode 100644
index 00000000..2a4c58bc
--- /dev/null
+++ b/node_modules/es5-ext/test/array/of/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../array/of/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/array/of/index.js b/node_modules/es5-ext/test/array/of/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/array/of/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/array/of/is-implemented.js b/node_modules/es5-ext/test/array/of/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/array/of/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/array/of/shim.js b/node_modules/es5-ext/test/array/of/shim.js
new file mode 100644
index 00000000..86eb5744
--- /dev/null
+++ b/node_modules/es5-ext/test/array/of/shim.js
@@ -0,0 +1,81 @@
+/* eslint no-useless-call: "off" */
+// Most tests taken from https://github.com/mathiasbynens/Array.of/blob/master/tests/tests.js
+// Thanks @mathiasbynens
+
+"use strict";
+
+var defineProperty = Object.defineProperty;
+
+module.exports = function (t, a) {
+ var x = {}, testObject, MyType;
+
+ a.deep(t(), [], "No arguments");
+ a.deep(t(3), [3], "One numeric argument");
+ a.deep(t(3, "raz", null, x, undefined), [3, "raz", null, x, undefined], "Many arguments");
+
+ a(t.length, 0, "Length");
+
+ a.deep(t("abc"), ["abc"], "String");
+ a.deep(t(undefined), [undefined], "Undefined");
+ a.deep(t(null), [null], "Null");
+ a.deep(t(false), [false], "Boolean");
+ a.deep(t(-Infinity), [-Infinity], "Infinity");
+ a.deep(t(-0), [-0], "-0");
+ a.deep(t(+0), [+0], "+0");
+ a.deep(t(1), [1], "1");
+ a.deep(t(1, 2, 3), [1, 2, 3], "Numeric args");
+ a.deep(t(Number(Infinity)), [Number(Infinity)], "+Infinity");
+ a.deep(
+ t({ 0: "a", 1: "b", 2: "c", length: 3 }), [{ 0: "a", 1: "b", 2: "c", length: 3 }],
+ "Array like"
+ );
+ a.deep(
+ t(undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)),
+ [undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)], "Falsy arguments"
+ );
+
+ a.h1("Null context");
+ a.deep(t.call(null, "abc"), ["abc"], "String");
+ a.deep(t.call(null, undefined), [undefined], "Undefined");
+ a.deep(t.call(null, null), [null], "Null");
+ a.deep(t.call(null, false), [false], "Boolean");
+ a.deep(t.call(null, -Infinity), [-Infinity], "-Infinity");
+ a.deep(t.call(null, -0), [-0], "-0");
+ a.deep(t.call(null, +0), [+0], "+0");
+ a.deep(t.call(null, 1), [1], "1");
+ a.deep(t.call(null, 1, 2, 3), [1, 2, 3], "Numeric");
+ a.deep(t.call(null, Number(Infinity)), [Number(Infinity)], "+Infinity");
+ a.deep(
+ t.call(null, { 0: "a", 1: "b", 2: "c", length: 3 }),
+ [{ 0: "a", 1: "b", 2: "c", length: 3 }], "Array-like"
+ );
+ a.deep(
+ t.call(null, undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)),
+ [undefined, null, false, -Infinity, -0, +0, 1, 2, Number(Infinity)], "Falsy"
+ );
+
+ a.h1("Other constructor context");
+ a.deep(t.call(Object, 1, 2, 3), { 0: 1, 1: 2, 2: 3, length: 3 }, "Many arguments");
+
+ testObject = Object(3);
+ testObject[0] = 1;
+ testObject[1] = 2;
+ testObject[2] = 3;
+ testObject.length = 3;
+ a.deep(t.call(Object, 1, 2, 3), testObject, "Test object");
+ a(t.call(Object).length, 0, "No arguments");
+ a.throws(
+ function () {
+ t.call(function () { return Object.freeze({}); });
+ },
+ TypeError,
+ "Frozen instance"
+ );
+
+ // Ensure no setters are called for the indexes
+ MyType = function () {};
+ defineProperty(MyType.prototype, "0", {
+ set: function (x) { throw new Error("Setter called: " + x); }
+ });
+ a.deep(t.call(MyType, "abc"), { 0: "abc", length: 1 }, "Define, not set");
+};
diff --git a/node_modules/es5-ext/test/array/to-array.js b/node_modules/es5-ext/test/array/to-array.js
new file mode 100644
index 00000000..68c5102b
--- /dev/null
+++ b/node_modules/es5-ext/test/array/to-array.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = [1, 2, 3];
+ a(t(o), o, "Array");
+ a.deep(t("12r3v"), ["1", "2", "r", "3", "v"], "String");
+ a.deep(t((function () { return arguments; })(3, o, "raz")), [3, o, "raz"], "Arguments");
+ a.deep(t((function () { return arguments; })(3)), [3], "Arguments with one numeric value");
+
+ a.deep(t({ 0: "raz", 1: "dwa", length: 2 }), ["raz", "dwa"], "Other");
+};
diff --git a/node_modules/es5-ext/test/array/valid-array.js b/node_modules/es5-ext/test/array/valid-array.js
new file mode 100644
index 00000000..62ea503f
--- /dev/null
+++ b/node_modules/es5-ext/test/array/valid-array.js
@@ -0,0 +1,20 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a.throws(function () { t(0); }, TypeError, "Number");
+ a.throws(function () { t(true); }, TypeError, "Boolean");
+ a.throws(function () { t("raz"); }, TypeError, "String");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a.throws(function () { t({}); }, TypeError, "Object");
+ a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
+ a(t((x = [])), x, "Array");
+};
diff --git a/node_modules/es5-ext/test/boolean/is-boolean.js b/node_modules/es5-ext/test/boolean/is-boolean.js
new file mode 100644
index 00000000..e36b3f34
--- /dev/null
+++ b/node_modules/es5-ext/test/boolean/is-boolean.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t("arar"), false, "String");
+ a(t(12), false, "Number");
+ a(t(false), true, "Boolean");
+ a(t(new Boolean(false)), true, "Boolean object");
+ a(t(new Date()), false, "Date");
+ a(t(new String("raz")), false, "String object");
+ a(t({}), false, "Plain object");
+ a(t(/a/), false, "Regular expression");
+};
diff --git a/node_modules/es5-ext/test/date/#/copy.js b/node_modules/es5-ext/test/date/#/copy.js
new file mode 100644
index 00000000..27c996bb
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/copy.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = new Date(), o2;
+
+ o2 = t.call(o);
+ a.not(o, o2, "Different objects");
+ a.ok(o2 instanceof Date, "Instance of Date");
+ a(o.getTime(), o2.getTime(), "Same time");
+};
diff --git a/node_modules/es5-ext/test/date/#/days-in-month.js b/node_modules/es5-ext/test/date/#/days-in-month.js
new file mode 100644
index 00000000..ce2dd775
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/days-in-month.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(new Date(2001, 0, 1)), 31, "January");
+ a(t.call(new Date(2001, 1, 1)), 28, "February");
+ a(t.call(new Date(2000, 1, 1)), 29, "February (leap)");
+ a(t.call(new Date(2001, 2, 1)), 31, "March");
+ a(t.call(new Date(2001, 3, 1)), 30, "April");
+ a(t.call(new Date(2001, 4, 1)), 31, "May");
+ a(t.call(new Date(2001, 5, 1)), 30, "June");
+ a(t.call(new Date(2001, 6, 1)), 31, "July");
+ a(t.call(new Date(2001, 7, 1)), 31, "August");
+ a(t.call(new Date(2001, 8, 1)), 30, "September");
+ a(t.call(new Date(2001, 9, 1)), 31, "October");
+ a(t.call(new Date(2001, 10, 1)), 30, "November");
+ a(t.call(new Date(2001, 11, 1)), 31, "December");
+};
diff --git a/node_modules/es5-ext/test/date/#/floor-day.js b/node_modules/es5-ext/test/date/#/floor-day.js
new file mode 100644
index 00000000..e880838f
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/floor-day.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(new Date(2000, 0, 1, 13, 32, 34, 234)).valueOf(), new Date(2000, 0, 1).valueOf());
+};
diff --git a/node_modules/es5-ext/test/date/#/floor-month.js b/node_modules/es5-ext/test/date/#/floor-month.js
new file mode 100644
index 00000000..ccead841
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/floor-month.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(new Date(2000, 0, 15, 13, 32, 34, 234)).valueOf(), new Date(2000, 0, 1).valueOf());
+};
diff --git a/node_modules/es5-ext/test/date/#/floor-year.js b/node_modules/es5-ext/test/date/#/floor-year.js
new file mode 100644
index 00000000..75267fc6
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/floor-year.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(new Date(2000, 5, 13, 13, 32, 34, 234)).valueOf(), new Date(2000, 0, 1).valueOf());
+};
diff --git a/node_modules/es5-ext/test/date/#/format.js b/node_modules/es5-ext/test/date/#/format.js
new file mode 100644
index 00000000..510b26b4
--- /dev/null
+++ b/node_modules/es5-ext/test/date/#/format.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var dt = new Date(2011, 2, 3, 3, 5, 5, 32);
+ a(t.call(dt, " %Y.%y.%m.%d.%H.%M.%S.%L "), " 2011.11.03.03.03.05.05.032 ");
+};
diff --git a/node_modules/es5-ext/test/date/ensure-time-value.js b/node_modules/es5-ext/test/date/ensure-time-value.js
new file mode 100644
index 00000000..7f8f4e90
--- /dev/null
+++ b/node_modules/es5-ext/test/date/ensure-time-value.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(12), 12, "Number in range");
+ a(t(12.23), 12, "Rounds number in range");
+ a(t(-12.63), -12, "Rounds negative number in range");
+ a.throws(function () { t(NaN); }, TypeError, "Throws on invalid");
+};
diff --git a/node_modules/es5-ext/test/date/is-date.js b/node_modules/es5-ext/test/date/is-date.js
new file mode 100644
index 00000000..90ae8ad7
--- /dev/null
+++ b/node_modules/es5-ext/test/date/is-date.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t("arar"), false, "String");
+ a(t(12), false, "Number");
+ a(t(true), false, "Boolean");
+ a(t(new Date()), true, "Date");
+ a(t(new String("raz")), false, "String object");
+ a(t({}), false, "Plain object");
+};
diff --git a/node_modules/es5-ext/test/date/is-time-value.js b/node_modules/es5-ext/test/date/is-time-value.js
new file mode 100644
index 00000000..a21677c0
--- /dev/null
+++ b/node_modules/es5-ext/test/date/is-time-value.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t("arar"), false, "String");
+ a(t(12), true, "Number in range");
+ a(t(true), true, "Boolean");
+ a(t(new Date()), true, "Date");
+ a(t({}), false, "Plain object");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+ a(t(8.64e17), false, "Beyond range");
+ a(t(8.64e15), true, "Below range");
+ a(t(-8.64e17), false, "Negative beyond range");
+ a(t(-8.64e15), true, "Negative below range");
+};
diff --git a/node_modules/es5-ext/test/date/valid-date.js b/node_modules/es5-ext/test/date/valid-date.js
new file mode 100644
index 00000000..6c8db2d1
--- /dev/null
+++ b/node_modules/es5-ext/test/date/valid-date.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var d = new Date();
+ a(t(d), d, "Date");
+ a.throws(function () { t({}); }, "Object");
+ a.throws(function () {
+ t({ valueOf: function () { return 20; } });
+ }, "Number object");
+};
diff --git a/node_modules/es5-ext/test/error/#/throw.js b/node_modules/es5-ext/test/error/#/throw.js
new file mode 100644
index 00000000..c0af73c6
--- /dev/null
+++ b/node_modules/es5-ext/test/error/#/throw.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var e = new Error();
+ try { t.call(e); }
+ catch (e2) { a(e2, e); }
+};
diff --git a/node_modules/es5-ext/test/error/custom.js b/node_modules/es5-ext/test/error/custom.js
new file mode 100644
index 00000000..ca35c766
--- /dev/null
+++ b/node_modules/es5-ext/test/error/custom.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var T = t, err = new T("My Error", "MY_ERROR", { errno: 123 });
+ a(err instanceof Error, true, "Instance of error");
+ a(err.constructor, Error, "Constructor");
+ a(err.name, "Error", "Name");
+ a(String(err), "Error: My Error", "String representation");
+ a(err.code, "MY_ERROR", "Code");
+ a(err.errno, 123, "Errno");
+ a(typeof err.stack, "string", "Stack trace");
+};
diff --git a/node_modules/es5-ext/test/error/is-error.js b/node_modules/es5-ext/test/error/is-error.js
new file mode 100644
index 00000000..421f1a08
--- /dev/null
+++ b/node_modules/es5-ext/test/error/is-error.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(), false, "Undefined");
+ a(t(1), false, "Primitive");
+ a(t({}), false, "Objectt");
+ a(t({ toString: function () { return "[object Error]"; } }), false, "Fake error");
+ a(t(new Error()), true, "Error");
+ a(t(new EvalError()), true, "EvalError");
+ a(t(new RangeError()), true, "RangeError");
+ a(t(new ReferenceError()), true, "ReferenceError");
+ a(t(new SyntaxError()), true, "SyntaxError");
+ a(t(new TypeError()), true, "TypeError");
+ a(t(new URIError()), true, "URIError");
+};
diff --git a/node_modules/es5-ext/test/error/valid-error.js b/node_modules/es5-ext/test/error/valid-error.js
new file mode 100644
index 00000000..194f37d1
--- /dev/null
+++ b/node_modules/es5-ext/test/error/valid-error.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var e = new Error();
+ a(t(e), e, "Error");
+ a.throws(function () { t({}); }, "Other");
+};
diff --git a/node_modules/es5-ext/test/function/#/compose.js b/node_modules/es5-ext/test/function/#/compose.js
new file mode 100644
index 00000000..b90a2169
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/compose.js
@@ -0,0 +1,10 @@
+"use strict";
+
+var f = function (a, b) { return ["a", arguments.length, a, b]; }
+ , g = function (a) { return ["b", arguments.length].concat(a); }
+ , h = function (a) { return ["c", arguments.length].concat(a); };
+
+module.exports = function (t, a) {
+ a.deep(t.call(h, g, f)(1, 2), ["c", 1, "b", 1, "a", 2, 1, 2]);
+ a.deep(t(h, g, f)(1, 2), ["c", 1, "b", 1, "a", 2, 1, 2]);
+};
diff --git a/node_modules/es5-ext/test/function/#/copy.js b/node_modules/es5-ext/test/function/#/copy.js
new file mode 100644
index 00000000..b4584474
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/copy.js
@@ -0,0 +1,20 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var foo = "raz", bar = "dwa";
+ // eslint-disable-next-line func-names
+ var fn = function marko(a, b) { return this + a + b + foo + bar; };
+ var result, o = {};
+
+ fn.prototype = o;
+
+ fn.foo = "raz";
+
+ result = t.call(fn);
+
+ a(result.length, fn.length, "Length");
+ a(result.name, fn.name, "Length");
+ a(result.call("marko", "el", "fe"), "markoelferazdwa", "Body");
+ a(result.prototype, fn.prototype, "Prototype");
+ a(result.foo, fn.foo, "Custom property");
+};
diff --git a/node_modules/es5-ext/test/function/#/curry.js b/node_modules/es5-ext/test/function/#/curry.js
new file mode 100644
index 00000000..fcae2869
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/curry.js
@@ -0,0 +1,17 @@
+"use strict";
+
+var toArray = require("../../../array/to-array")
+ , f = function () { return toArray(arguments); };
+
+module.exports = function (t, a) {
+ var x, y = {}, z;
+ a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments");
+ x = t.call(f, 5, {});
+ a(x.length, 5, "Length #1");
+ z = x(1, 2);
+ a(z.length, 3, "Length #2");
+ z = z(3, 4);
+ a(z.length, 1, "Length #1");
+ a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments");
+ a.deep(x(8, 3)(y, 45)("raz", 6), [8, 3, y, 45, "raz"], "Many arguments #2");
+};
diff --git a/node_modules/es5-ext/test/function/#/lock.js b/node_modules/es5-ext/test/function/#/lock.js
new file mode 100644
index 00000000..dd807a1c
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/lock.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(function () { return arguments.length; })(1, 2, 3), 0);
+};
diff --git a/node_modules/es5-ext/test/function/#/microtask-delay.js b/node_modules/es5-ext/test/function/#/microtask-delay.js
new file mode 100644
index 00000000..8bd0dc12
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/microtask-delay.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var nextTick = require("next-tick");
+
+module.exports = function (t, a, d) {
+ var wasInvoked = false, args = [{}, {}], context = {};
+ var target = t.call(function () {
+ a(this, context);
+ a.deep(arguments, args);
+ wasInvoked = true;
+ });
+
+ nextTick(function () {
+ a(wasInvoked, false);
+ target.apply(context, args);
+ a(wasInvoked, false);
+ nextTick(function () {
+ a(wasInvoked, true);
+ d();
+ });
+ });
+};
diff --git a/node_modules/es5-ext/test/function/#/not.js b/node_modules/es5-ext/test/function/#/not.js
new file mode 100644
index 00000000..64fff715
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/not.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var identity = require("../../../function/identity")
+ , noop = require("../../../function/noop");
+
+module.exports = function (t, a) {
+ a(t.call(identity)(""), true, "Falsy");
+ a(t.call(noop)(), true, "Undefined");
+ a(t.call(identity)({}), false, "Any object");
+ a(t.call(identity)(true), false, "True");
+};
diff --git a/node_modules/es5-ext/test/function/#/partial.js b/node_modules/es5-ext/test/function/#/partial.js
new file mode 100644
index 00000000..8954948e
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/partial.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var toArray = require("../../../array/to-array")
+ , f = function () { return toArray(arguments); };
+
+module.exports = function (t, a) { a.deep(t.call(f, 1)(2, 3), [1, 2, 3]); };
diff --git a/node_modules/es5-ext/test/function/#/spread.js b/node_modules/es5-ext/test/function/#/spread.js
new file mode 100644
index 00000000..64e7b579
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/spread.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var f = function (a, b) { return this[a] + this[b]; }, o = { a: 3, b: 4 };
+
+module.exports = function (t, a) { a(t.call(f).call(o, ["a", "b"]), 7); };
diff --git a/node_modules/es5-ext/test/function/#/to-string-tokens.js b/node_modules/es5-ext/test/function/#/to-string-tokens.js
new file mode 100644
index 00000000..79bb83b3
--- /dev/null
+++ b/node_modules/es5-ext/test/function/#/to-string-tokens.js
@@ -0,0 +1,26 @@
+/* eslint no-eval: "off" */
+
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t.call(function (a, b) { return this[a] + this[b]; }), {
+ args: "a, b",
+ body: " return this[a] + this[b]; "
+ });
+ a.deep(t.call(function () {}), { args: "", body: "" });
+ // eslint-disable-next-line no-unused-vars
+ a.deep(t.call(function (raz) {}), { args: "raz", body: "" });
+ a.deep(t.call(function () { Object(); }), { args: "", body: " Object(); " });
+
+ try {
+ eval("(() => {})");
+ } catch (e) {
+ // Non ES2015 env
+ return;
+ }
+
+ a.deep(t.call(eval("(() => {})")), { args: "", body: "" });
+ a.deep(t.call(eval("((elo) => foo)")), { args: "elo", body: "foo" });
+ a.deep(t.call(eval("(elo => foo)")), { args: "elo", body: "foo" });
+ a.deep(t.call(eval("((elo, bar) => foo())")), { args: "elo, bar", body: "foo()" });
+};
diff --git a/node_modules/es5-ext/test/function/_define-length.js b/node_modules/es5-ext/test/function/_define-length.js
new file mode 100644
index 00000000..844ee3e3
--- /dev/null
+++ b/node_modules/es5-ext/test/function/_define-length.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var foo = "raz", bar = "dwa", fn = function (a, b) { return this + a + b + foo + bar; }, result;
+
+ result = t(fn, 3);
+ a(result.call("marko", "el", "fe"), "markoelferazdwa", "Content");
+ a(result.length, 3, "Length");
+ a(result.prototype, fn.prototype, "Prototype");
+};
diff --git a/node_modules/es5-ext/test/function/constant.js b/node_modules/es5-ext/test/function/constant.js
new file mode 100644
index 00000000..8286d7ab
--- /dev/null
+++ b/node_modules/es5-ext/test/function/constant.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var o = {};
+
+module.exports = function (t, a) { a(t(o)(), o); };
diff --git a/node_modules/es5-ext/test/function/identity.js b/node_modules/es5-ext/test/function/identity.js
new file mode 100644
index 00000000..5bf4786e
--- /dev/null
+++ b/node_modules/es5-ext/test/function/identity.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var o = {};
+
+module.exports = function (t, a) { a(t(o), o); };
diff --git a/node_modules/es5-ext/test/function/invoke.js b/node_modules/es5-ext/test/function/invoke.js
new file mode 100644
index 00000000..fb656277
--- /dev/null
+++ b/node_modules/es5-ext/test/function/invoke.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var constant = require("../../function/constant")
+ , o = { b: constant("c") };
+
+module.exports = function (t, a) { a(t("b")(o), "c"); };
diff --git a/node_modules/es5-ext/test/function/is-arguments.js b/node_modules/es5-ext/test/function/is-arguments.js
new file mode 100644
index 00000000..1836af88
--- /dev/null
+++ b/node_modules/es5-ext/test/function/is-arguments.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var args, dummy;
+ args = (function () { return arguments; })();
+ dummy = { 0: 1, 1: 2 };
+ Object.defineProperty(dummy, "length", { value: 2 });
+ a(t(args), true, "Arguments");
+ a(t(dummy), false, "Dummy");
+ a(t([]), false, "Array");
+};
diff --git a/node_modules/es5-ext/test/function/is-function.js b/node_modules/es5-ext/test/function/is-function.js
new file mode 100644
index 00000000..3652ba79
--- /dev/null
+++ b/node_modules/es5-ext/test/function/is-function.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var o = { call: Function.prototype.call, apply: Function.prototype.apply };
+
+module.exports = function (t, a) {
+ a(t(function () {}), true, "Function is function");
+ a(t(o), false, "Plain object is not function");
+ var asyncFunction;
+ try { asyncFunction = eval("async () => {}"); }
+ catch (error) {}
+ if (asyncFunction) {
+ a(t(asyncFunction), true, "Async function is function");
+ }
+};
diff --git a/node_modules/es5-ext/test/function/noop.js b/node_modules/es5-ext/test/function/noop.js
new file mode 100644
index 00000000..f264da3a
--- /dev/null
+++ b/node_modules/es5-ext/test/function/noop.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(1, 2, 3), "undefined"); };
diff --git a/node_modules/es5-ext/test/function/pluck.js b/node_modules/es5-ext/test/function/pluck.js
new file mode 100644
index 00000000..26adb21b
--- /dev/null
+++ b/node_modules/es5-ext/test/function/pluck.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var o = { foo: "bar" };
+
+module.exports = function (t, a) { a(t("foo")(o), o.foo); };
diff --git a/node_modules/es5-ext/test/function/valid-function.js b/node_modules/es5-ext/test/function/valid-function.js
new file mode 100644
index 00000000..b5e0a57a
--- /dev/null
+++ b/node_modules/es5-ext/test/function/valid-function.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var f = function () {};
+ a(t(f), f, "Function");
+ // eslint-disable-next-line no-new-func
+ f = new Function();
+ a(t(f), f, "Function");
+ a.throws(function () { t({}); }, "Object");
+ a.throws(function () { t(/re/); }, "RegExp");
+ a.throws(function () {
+ t({ call: function () { return 20; } });
+ }, "Plain object");
+};
diff --git a/node_modules/es5-ext/test/global.js b/node_modules/es5-ext/test/global.js
new file mode 100644
index 00000000..b29fbbb1
--- /dev/null
+++ b/node_modules/es5-ext/test/global.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.ok(t && typeof t === "object");
+ a(typeof t.Array, "function");
+ a("__global__" in Object.prototype, false);
+};
diff --git a/node_modules/es5-ext/test/iterable/for-each.js b/node_modules/es5-ext/test/iterable/for-each.js
new file mode 100644
index 00000000..aa167dc2
--- /dev/null
+++ b/node_modules/es5-ext/test/iterable/for-each.js
@@ -0,0 +1,62 @@
+"use strict";
+
+var ArrayIterator = require("es6-iterator/array")
+ , slice = Array.prototype.slice;
+
+module.exports = function (t, a) {
+ var i = 0, x = ["raz", "dwa", "trzy"], y = {};
+ t(
+ x,
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#");
+ a(this, y, "Array: context: " + i++ + "#");
+ },
+ y
+ );
+ i = 0;
+ t(
+ (function () { return arguments; })("raz", "dwa", "trzy"),
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#");
+ a(this, y, "Arguments: context: " + i++ + "#");
+ },
+ y
+ );
+ i = 0;
+ t(
+ { 0: "raz", 1: "dwa", 2: "trzy", length: 3 },
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Array-like" + i + "#");
+ a(this, y, "Array-like: context: " + i++ + "#");
+ },
+ y
+ );
+ i = 0;
+ t(
+ (x = "foo"),
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
+ a(this, y, "Regular String: context: " + i++ + "#");
+ },
+ y
+ );
+ i = 0;
+ x = ["r", "💩", "z"];
+ t(
+ "r💩z",
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
+ a(this, y, "Unicode String: context: " + i++ + "#");
+ },
+ y
+ );
+ i = 0;
+ t(
+ new ArrayIterator(x),
+ function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#");
+ a(this, y, "Iterator: context: " + i++ + "#");
+ },
+ y
+ );
+};
diff --git a/node_modules/es5-ext/test/iterable/is.js b/node_modules/es5-ext/test/iterable/is.js
new file mode 100644
index 00000000..f03c3f1d
--- /dev/null
+++ b/node_modules/es5-ext/test/iterable/is.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (t, a) {
+ var x;
+ a(t([]), true, "Array");
+ a(t(""), true, "String");
+ a(t((function () { return arguments; })()), true, "Arguments");
+ a(t({ length: 0 }), true, "List object");
+ a(t(function () {}), false, "Function");
+ a(t({}), false, "Plain object");
+ a(t(/raz/), false, "Regexp");
+ a(t(), false, "No argument");
+ a(t(null), false, "Null");
+ a(t(undefined), false, "Undefined");
+ x = {};
+ x[iteratorSymbol] = function () {};
+ a(t(x), true, "Iterable");
+};
diff --git a/node_modules/es5-ext/test/iterable/validate-object.js b/node_modules/es5-ext/test/iterable/validate-object.js
new file mode 100644
index 00000000..486c1320
--- /dev/null
+++ b/node_modules/es5-ext/test/iterable/validate-object.js
@@ -0,0 +1,26 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(0); }, TypeError, "0");
+ a.throws(function () { t(false); }, TypeError, "false");
+ a.throws(function () { t(""); }, TypeError, "String");
+ a.throws(function () { t({}); }, TypeError, "Plain Object");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
+
+ a(t((x = { length: 1 })), x, "Array like");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "null");
+ x = {};
+ x[iteratorSymbol] = function () {};
+ a(t(x), x, "Iterable");
+};
diff --git a/node_modules/es5-ext/test/iterable/validate.js b/node_modules/es5-ext/test/iterable/validate.js
new file mode 100644
index 00000000..49996a9f
--- /dev/null
+++ b/node_modules/es5-ext/test/iterable/validate.js
@@ -0,0 +1,26 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(0); }, TypeError, "0");
+ a.throws(function () { t(false); }, TypeError, "false");
+ a(t(""), "", "''");
+ a.throws(function () { t({}); }, TypeError, "Plain Object");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
+
+ a(t((x = { length: 1 })), x, "Array like");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "null");
+ x = {};
+ x[iteratorSymbol] = function () {};
+ a(t(x), x, "Iterable");
+};
diff --git a/node_modules/es5-ext/test/json/safe-stringify.js b/node_modules/es5-ext/test/json/safe-stringify.js
new file mode 100644
index 00000000..59ce8adf
--- /dev/null
+++ b/node_modules/es5-ext/test/json/safe-stringify.js
@@ -0,0 +1,21 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({ foo: "bar" }), JSON.stringify({ foo: "bar" }));
+ a(t({ foo: { elo: 12 } }), "{\"foo\":{\"elo\":12}}");
+ a(
+ t({ foo: { elo: 12, mel: { toJSON: function () { throw new Error("Nu nu!"); } } } }),
+ "{\"foo\":{\"elo\":12}}"
+ );
+ a(
+ t({ foo: { elo: 12 }, mel: { toJSON: function () { throw new Error("Nu nu!"); } } }),
+ "{\"foo\":{\"elo\":12}}"
+ );
+ a(
+ t({
+ foo: { elo: 12 },
+ mel: ["raz", { toJSON: function () { throw new Error("Nu nu!"); } }, 0, 2]
+ }),
+ "{\"foo\":{\"elo\":12},\"mel\":[\"raz\",0,2]}"
+ );
+};
diff --git a/node_modules/es5-ext/test/math/_decimal-adjust.js b/node_modules/es5-ext/test/math/_decimal-adjust.js
new file mode 100644
index 00000000..6da15ecf
--- /dev/null
+++ b/node_modules/es5-ext/test/math/_decimal-adjust.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ // Just sanity check, as real tests are in 'round', 'ceil' and 'floor' variants
+ a(t("round")(55.55, -1), 55.6);
+};
diff --git a/node_modules/es5-ext/test/math/_pack-ieee754.js b/node_modules/es5-ext/test/math/_pack-ieee754.js
new file mode 100644
index 00000000..65428734
--- /dev/null
+++ b/node_modules/es5-ext/test/math/_pack-ieee754.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a.deep(t(1.337, 8, 23), [63, 171, 34, 209]); };
diff --git a/node_modules/es5-ext/test/math/_unpack-ieee754.js b/node_modules/es5-ext/test/math/_unpack-ieee754.js
new file mode 100644
index 00000000..d3841605
--- /dev/null
+++ b/node_modules/es5-ext/test/math/_unpack-ieee754.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a.deep(t([63, 171, 34, 209], 8, 23), 1.3370000123977661); };
diff --git a/node_modules/es5-ext/test/math/acosh/implement.js b/node_modules/es5-ext/test/math/acosh/implement.js
new file mode 100644
index 00000000..7ef68ea3
--- /dev/null
+++ b/node_modules/es5-ext/test/math/acosh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/acosh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/acosh/index.js b/node_modules/es5-ext/test/math/acosh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/acosh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/acosh/is-implemented.js b/node_modules/es5-ext/test/math/acosh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/acosh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/acosh/shim.js b/node_modules/es5-ext/test/math/acosh/shim.js
new file mode 100644
index 00000000..17ac1819
--- /dev/null
+++ b/node_modules/es5-ext/test/math/acosh/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(-1), NaN, "Negative");
+ a(t(0), NaN, "Zero");
+ a(t(0.5), NaN, "Below 1");
+ a(t(1), 0, "1");
+ a(t(2), 1.3169578969248166, "Other");
+ a(t(Infinity), Infinity, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/math/asinh/implement.js b/node_modules/es5-ext/test/math/asinh/implement.js
new file mode 100644
index 00000000..cf98eb26
--- /dev/null
+++ b/node_modules/es5-ext/test/math/asinh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/asinh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/asinh/index.js b/node_modules/es5-ext/test/math/asinh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/asinh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/asinh/is-implemented.js b/node_modules/es5-ext/test/math/asinh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/asinh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/asinh/shim.js b/node_modules/es5-ext/test/math/asinh/shim.js
new file mode 100644
index 00000000..a4328d2e
--- /dev/null
+++ b/node_modules/es5-ext/test/math/asinh/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -Infinity, "-Infinity");
+ a(t(-2), -1.4436354751788103, "Negative");
+ a(t(2), 1.4436354751788103, "Positive");
+};
diff --git a/node_modules/es5-ext/test/math/atanh/implement.js b/node_modules/es5-ext/test/math/atanh/implement.js
new file mode 100644
index 00000000..b101bed5
--- /dev/null
+++ b/node_modules/es5-ext/test/math/atanh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/atanh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/atanh/index.js b/node_modules/es5-ext/test/math/atanh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/atanh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/atanh/is-implemented.js b/node_modules/es5-ext/test/math/atanh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/atanh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/atanh/shim.js b/node_modules/es5-ext/test/math/atanh/shim.js
new file mode 100644
index 00000000..f58709cc
--- /dev/null
+++ b/node_modules/es5-ext/test/math/atanh/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(-2), NaN, "Less than -1");
+ a(t(2), NaN, "Greater than 1");
+ a(t(-1), -Infinity, "-1");
+ a(t(1), Infinity, "1");
+ a(t(0), 0, "Zero");
+ a(Math.round(t(0.5) * 1e15), 549306144334055, "Other");
+};
diff --git a/node_modules/es5-ext/test/math/cbrt/implement.js b/node_modules/es5-ext/test/math/cbrt/implement.js
new file mode 100644
index 00000000..c94e12be
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cbrt/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/cbrt/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/cbrt/index.js b/node_modules/es5-ext/test/math/cbrt/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cbrt/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/cbrt/is-implemented.js b/node_modules/es5-ext/test/math/cbrt/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cbrt/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/cbrt/shim.js b/node_modules/es5-ext/test/math/cbrt/shim.js
new file mode 100644
index 00000000..fc1beee4
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cbrt/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -Infinity, "-Infinity");
+ a(t(-1), -1, "-1");
+ a(t(1), 1, "1");
+ a(t(2), 1.2599210498948732, "Ohter");
+};
diff --git a/node_modules/es5-ext/test/math/ceil-10.js b/node_modules/es5-ext/test/math/ceil-10.js
new file mode 100644
index 00000000..1c4a3866
--- /dev/null
+++ b/node_modules/es5-ext/test/math/ceil-10.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(55.51, -1), 55.6);
+ a(t(51, 1), 60);
+ a(t(-55.59, -1), -55.5);
+ a(t(-59, 1), -50);
+};
diff --git a/node_modules/es5-ext/test/math/clz32/implement.js b/node_modules/es5-ext/test/math/clz32/implement.js
new file mode 100644
index 00000000..c9a66771
--- /dev/null
+++ b/node_modules/es5-ext/test/math/clz32/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/clz32/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/clz32/index.js b/node_modules/es5-ext/test/math/clz32/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/clz32/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/clz32/is-implemented.js b/node_modules/es5-ext/test/math/clz32/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/clz32/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/clz32/shim.js b/node_modules/es5-ext/test/math/clz32/shim.js
new file mode 100644
index 00000000..4d8dd2fa
--- /dev/null
+++ b/node_modules/es5-ext/test/math/clz32/shim.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(1), 31, "1");
+ a(t(1000), 22, "1000");
+ a(t(), 32, "No arguments");
+ a(t(Infinity), 32, "Infinity");
+ a(t(-Infinity), 32, "-Infinity");
+ a(t("foo"), 32, "String");
+ a(t(true), 31, "Boolean");
+ a(t(3.5), 30, "Float");
+};
diff --git a/node_modules/es5-ext/test/math/cosh/implement.js b/node_modules/es5-ext/test/math/cosh/implement.js
new file mode 100644
index 00000000..90e3dab3
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cosh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/cosh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/cosh/index.js b/node_modules/es5-ext/test/math/cosh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cosh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/cosh/is-implemented.js b/node_modules/es5-ext/test/math/cosh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cosh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/cosh/shim.js b/node_modules/es5-ext/test/math/cosh/shim.js
new file mode 100644
index 00000000..0b917c70
--- /dev/null
+++ b/node_modules/es5-ext/test/math/cosh/shim.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 1, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), Infinity, "-Infinity");
+ a(t(1), 1.5430806348152437, "1");
+ a(t(Number.MAX_VALUE), Infinity);
+ a(t(-Number.MAX_VALUE), Infinity);
+ a(t(Number.MIN_VALUE), 1);
+ a(t(-Number.MIN_VALUE), 1);
+};
diff --git a/node_modules/es5-ext/test/math/expm1/implement.js b/node_modules/es5-ext/test/math/expm1/implement.js
new file mode 100644
index 00000000..41463c6e
--- /dev/null
+++ b/node_modules/es5-ext/test/math/expm1/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/expm1/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/expm1/index.js b/node_modules/es5-ext/test/math/expm1/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/expm1/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/expm1/is-implemented.js b/node_modules/es5-ext/test/math/expm1/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/expm1/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/expm1/shim.js b/node_modules/es5-ext/test/math/expm1/shim.js
new file mode 100644
index 00000000..cebb063c
--- /dev/null
+++ b/node_modules/es5-ext/test/math/expm1/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -1, "-Infinity");
+ a(t(1).toFixed(15), "1.718281828459045", "1");
+};
diff --git a/node_modules/es5-ext/test/math/floor-10.js b/node_modules/es5-ext/test/math/floor-10.js
new file mode 100644
index 00000000..a086d80f
--- /dev/null
+++ b/node_modules/es5-ext/test/math/floor-10.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(55.59, -1), 55.5);
+ a(t(59, 1), 50);
+ a(t(-55.51, -1), -55.6);
+ a(t(-51, 1), -60);
+};
diff --git a/node_modules/es5-ext/test/math/fround/implement.js b/node_modules/es5-ext/test/math/fround/implement.js
new file mode 100644
index 00000000..6c2bab3b
--- /dev/null
+++ b/node_modules/es5-ext/test/math/fround/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/fround/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/fround/index.js b/node_modules/es5-ext/test/math/fround/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/fround/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/fround/is-implemented.js b/node_modules/es5-ext/test/math/fround/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/fround/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/fround/shim.js b/node_modules/es5-ext/test/math/fround/shim.js
new file mode 100644
index 00000000..0525bfab
--- /dev/null
+++ b/node_modules/es5-ext/test/math/fround/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -Infinity, "-Infinity");
+ a(t(1.337), 1.3370000123977661, "1");
+};
diff --git a/node_modules/es5-ext/test/math/hypot/implement.js b/node_modules/es5-ext/test/math/hypot/implement.js
new file mode 100644
index 00000000..e4b0052a
--- /dev/null
+++ b/node_modules/es5-ext/test/math/hypot/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/hypot/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/hypot/index.js b/node_modules/es5-ext/test/math/hypot/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/hypot/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/hypot/is-implemented.js b/node_modules/es5-ext/test/math/hypot/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/hypot/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/hypot/shim.js b/node_modules/es5-ext/test/math/hypot/shim.js
new file mode 100644
index 00000000..89e4657c
--- /dev/null
+++ b/node_modules/es5-ext/test/math/hypot/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(), 0, "No arguments");
+ a(t(0, -0, 0), 0, "Zeros");
+ a(t(4, NaN, Infinity), Infinity, "Infinity");
+ a(t(4, NaN, -Infinity), Infinity, "Infinity");
+ a(t(4, NaN, 34), NaN, "NaN");
+ a(t(3, 4), 5, "#1");
+ a(t(3, 4, 5), 7.0710678118654755, "#2");
+};
diff --git a/node_modules/es5-ext/test/math/imul/implement.js b/node_modules/es5-ext/test/math/imul/implement.js
new file mode 100644
index 00000000..4c97d2bf
--- /dev/null
+++ b/node_modules/es5-ext/test/math/imul/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/imul/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/imul/index.js b/node_modules/es5-ext/test/math/imul/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/imul/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/imul/is-implemented.js b/node_modules/es5-ext/test/math/imul/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/imul/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/imul/shim.js b/node_modules/es5-ext/test/math/imul/shim.js
new file mode 100644
index 00000000..a8d4e906
--- /dev/null
+++ b/node_modules/es5-ext/test/math/imul/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(), 0, "No arguments");
+ a(t(0, 0), 0, "Zeros");
+ a(t(2, 4), 8, "#1");
+ a(t(-1, 8), -8, "#2");
+ a(t(0xfffffffe, 5), -10, "#3");
+};
diff --git a/node_modules/es5-ext/test/math/log10/implement.js b/node_modules/es5-ext/test/math/log10/implement.js
new file mode 100644
index 00000000..70124b4f
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log10/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/log10/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/log10/index.js b/node_modules/es5-ext/test/math/log10/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log10/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/log10/is-implemented.js b/node_modules/es5-ext/test/math/log10/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log10/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/log10/shim.js b/node_modules/es5-ext/test/math/log10/shim.js
new file mode 100644
index 00000000..d0696287
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log10/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(-0.5), NaN, "Less than 0");
+ a(t(0), -Infinity, "0");
+ a(t(1), 0, "1");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(2), 0.3010299956639812, "Other");
+};
diff --git a/node_modules/es5-ext/test/math/log1p/implement.js b/node_modules/es5-ext/test/math/log1p/implement.js
new file mode 100644
index 00000000..766ecdbc
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log1p/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/log1p/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/log1p/index.js b/node_modules/es5-ext/test/math/log1p/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log1p/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/log1p/is-implemented.js b/node_modules/es5-ext/test/math/log1p/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log1p/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/log1p/shim.js b/node_modules/es5-ext/test/math/log1p/shim.js
new file mode 100644
index 00000000..66b400cc
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log1p/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(-1.5), NaN, "Less than -1");
+ a(t(-1), -Infinity, "-1");
+ a(t(0), 0, "0");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(1), 0.6931471805599453, "Other");
+};
diff --git a/node_modules/es5-ext/test/math/log2/implement.js b/node_modules/es5-ext/test/math/log2/implement.js
new file mode 100644
index 00000000..a5360b7a
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log2/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/log2/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/log2/index.js b/node_modules/es5-ext/test/math/log2/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log2/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/log2/is-implemented.js b/node_modules/es5-ext/test/math/log2/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log2/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/log2/shim.js b/node_modules/es5-ext/test/math/log2/shim.js
new file mode 100644
index 00000000..f587e339
--- /dev/null
+++ b/node_modules/es5-ext/test/math/log2/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(-0.5), NaN, "Less than 0");
+ a(t(0), -Infinity, "0");
+ a(t(1), 0, "1");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(3).toFixed(15), "1.584962500721156", "Other");
+};
diff --git a/node_modules/es5-ext/test/math/round-10.js b/node_modules/es5-ext/test/math/round-10.js
new file mode 100644
index 00000000..c7ae38c4
--- /dev/null
+++ b/node_modules/es5-ext/test/math/round-10.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(55.55, -1), 55.6);
+ a(t(55.549, -1), 55.5);
+ a(t(55, 1), 60);
+ a(t(54.9, 1), 50);
+ a(t(-55.55, -1), -55.5);
+ a(t(-55.551, -1), -55.6);
+ a(t(-55, 1), -50);
+ a(t(-55.1, 1), -60);
+ a(t(1.005, -2), 1.01);
+ a(t(-1.005, -2), -1.0);
+};
diff --git a/node_modules/es5-ext/test/math/sign/implement.js b/node_modules/es5-ext/test/math/sign/implement.js
new file mode 100644
index 00000000..cda8d61b
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sign/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/sign/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/sign/index.js b/node_modules/es5-ext/test/math/sign/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sign/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/sign/is-implemented.js b/node_modules/es5-ext/test/math/sign/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sign/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/sign/shim.js b/node_modules/es5-ext/test/math/sign/shim.js
new file mode 100644
index 00000000..071ea07e
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sign/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var is = require("../../../object/is");
+
+module.exports = function (t, a) {
+ a(is(t(0), +0), true, "+0");
+ a(is(t(-0), -0), true, "-0");
+ a(t({}), NaN, true, "NaN");
+ a(t(-234234234), -1, "Negative");
+ a(t(234234234), 1, "Positive");
+};
diff --git a/node_modules/es5-ext/test/math/sinh/implement.js b/node_modules/es5-ext/test/math/sinh/implement.js
new file mode 100644
index 00000000..3d333381
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sinh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/sinh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/sinh/index.js b/node_modules/es5-ext/test/math/sinh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sinh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/sinh/is-implemented.js b/node_modules/es5-ext/test/math/sinh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sinh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/sinh/shim.js b/node_modules/es5-ext/test/math/sinh/shim.js
new file mode 100644
index 00000000..f168a7f7
--- /dev/null
+++ b/node_modules/es5-ext/test/math/sinh/shim.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -Infinity, "-Infinity");
+ a(t(1), 1.1752011936438014, "1");
+ a(t(Number.MAX_VALUE), Infinity);
+ a(t(-Number.MAX_VALUE), -Infinity);
+ a(t(Number.MIN_VALUE), 5e-324);
+ a(t(-Number.MIN_VALUE), -5e-324);
+};
diff --git a/node_modules/es5-ext/test/math/tanh/implement.js b/node_modules/es5-ext/test/math/tanh/implement.js
new file mode 100644
index 00000000..e3d9c55c
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/tanh/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/tanh/index.js b/node_modules/es5-ext/test/math/tanh/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/tanh/is-implemented.js b/node_modules/es5-ext/test/math/tanh/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/tanh/shim.js b/node_modules/es5-ext/test/math/tanh/shim.js
new file mode 100644
index 00000000..5da3c087
--- /dev/null
+++ b/node_modules/es5-ext/test/math/tanh/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), 1, "Infinity");
+ a(t(-Infinity), -1, "-Infinity");
+ a(t(1), 0.7615941559557649, "1");
+ a(t(Number.MAX_VALUE), 1);
+ a(t(-Number.MAX_VALUE), -1);
+};
diff --git a/node_modules/es5-ext/test/math/trunc/implement.js b/node_modules/es5-ext/test/math/trunc/implement.js
new file mode 100644
index 00000000..fea82114
--- /dev/null
+++ b/node_modules/es5-ext/test/math/trunc/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../math/trunc/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/math/trunc/index.js b/node_modules/es5-ext/test/math/trunc/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/math/trunc/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/math/trunc/is-implemented.js b/node_modules/es5-ext/test/math/trunc/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/math/trunc/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/math/trunc/shim.js b/node_modules/es5-ext/test/math/trunc/shim.js
new file mode 100644
index 00000000..b80e8683
--- /dev/null
+++ b/node_modules/es5-ext/test/math/trunc/shim.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var is = require("../../../object/is");
+
+module.exports = function (t, a) {
+ a(t({}), NaN, "NaN");
+ a(t(0), 0, "Zero");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(-Infinity), -Infinity, "-Infinity");
+ a(is(t(0.234), 0), true, "0");
+ a(is(t(-0.234), -0), true, "-0");
+ a(t(13.7), 13, "Positive #1");
+ a(t(12.3), 12, "Positive #2");
+ a(t(-12.3), -12, "Negative #1");
+ a(t(-14.7), -14, "Negative #2");
+};
diff --git a/node_modules/es5-ext/test/number/#/pad.js b/node_modules/es5-ext/test/number/#/pad.js
new file mode 100644
index 00000000..cc8aa5e4
--- /dev/null
+++ b/node_modules/es5-ext/test/number/#/pad.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(78, 4), "0078");
+ a(t.call(65.12323, 4, 3), "0065.123", "Precision");
+ a(t.call(65, 4, 3), "0065.000", "Precision integer");
+};
diff --git a/node_modules/es5-ext/test/number/epsilon/implement.js b/node_modules/es5-ext/test/number/epsilon/implement.js
new file mode 100644
index 00000000..13660583
--- /dev/null
+++ b/node_modules/es5-ext/test/number/epsilon/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/epsilon/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/epsilon/index.js b/node_modules/es5-ext/test/number/epsilon/index.js
new file mode 100644
index 00000000..1be91627
--- /dev/null
+++ b/node_modules/es5-ext/test/number/epsilon/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t, "number"); };
diff --git a/node_modules/es5-ext/test/number/epsilon/is-implemented.js b/node_modules/es5-ext/test/number/epsilon/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/epsilon/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/is-finite/implement.js b/node_modules/es5-ext/test/number/is-finite/implement.js
new file mode 100644
index 00000000..da4ee64b
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-finite/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/is-finite/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/is-finite/index.js b/node_modules/es5-ext/test/number/is-finite/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-finite/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/number/is-finite/is-implemented.js b/node_modules/es5-ext/test/number/is-finite/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-finite/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/is-finite/shim.js b/node_modules/es5-ext/test/number/is-finite/shim.js
new file mode 100644
index 00000000..8fa004fd
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-finite/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(2), true, "Number");
+ a(t("23"), false, "Not numeric");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/number/is-integer/implement.js b/node_modules/es5-ext/test/number/is-integer/implement.js
new file mode 100644
index 00000000..b1a8e9ca
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-integer/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/is-integer/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/is-integer/index.js b/node_modules/es5-ext/test/number/is-integer/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/number/is-integer/is-implemented.js b/node_modules/es5-ext/test/number/is-integer/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/is-integer/shim.js b/node_modules/es5-ext/test/number/is-integer/shim.js
new file mode 100644
index 00000000..e367990b
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-integer/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(2), true, "Number");
+ a(t(2.34), false, "Float");
+ a(t("23"), false, "Not numeric");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/number/is-nan/implement.js b/node_modules/es5-ext/test/number/is-nan/implement.js
new file mode 100644
index 00000000..b8d9ab7c
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-nan/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/is-nan/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/is-nan/index.js b/node_modules/es5-ext/test/number/is-nan/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-nan/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/number/is-nan/is-implemented.js b/node_modules/es5-ext/test/number/is-nan/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-nan/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/is-nan/shim.js b/node_modules/es5-ext/test/number/is-nan/shim.js
new file mode 100644
index 00000000..31810474
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-nan/shim.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(2), false, "Number");
+ a(t({}), false, "Not numeric");
+ a(t(NaN), true, "NaN");
+};
diff --git a/node_modules/es5-ext/test/number/is-natural.js b/node_modules/es5-ext/test/number/is-natural.js
new file mode 100644
index 00000000..8fe4dcc4
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-natural.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(2), true, "Number");
+ a(t(-2), false, "Negative");
+ a(t(2.34), false, "Float");
+ a(t("23"), false, "Not numeric");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/number/is-number.js b/node_modules/es5-ext/test/number/is-number.js
new file mode 100644
index 00000000..9cd670c1
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-number.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(0), true, "Zero");
+ a(t(NaN), true, "NaN");
+ a(t(Infinity), true, "Infinity");
+ a(t(12), true, "Number");
+ a(t(false), false, "Boolean");
+ a(t(new Date()), false, "Date");
+ a(t(new Number(2)), true, "Number object");
+ a(t("asdfaf"), false, "String");
+ a(t(""), false, "Empty String");
+};
diff --git a/node_modules/es5-ext/test/number/is-safe-integer/implement.js b/node_modules/es5-ext/test/number/is-safe-integer/implement.js
new file mode 100644
index 00000000..aaab29c1
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-safe-integer/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/is-safe-integer/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/is-safe-integer/index.js b/node_modules/es5-ext/test/number/is-safe-integer/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js b/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/is-safe-integer/shim.js b/node_modules/es5-ext/test/number/is-safe-integer/shim.js
new file mode 100644
index 00000000..a4ea6913
--- /dev/null
+++ b/node_modules/es5-ext/test/number/is-safe-integer/shim.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(2), true, "Number");
+ a(t(2.34), false, "Float");
+ a(t(Math.pow(2, 53)), false, "Too large");
+ a(t(Math.pow(2, 53) - 1), true, "Maximum");
+ a(t("23"), false, "Not numeric");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/number/max-safe-integer/implement.js b/node_modules/es5-ext/test/number/max-safe-integer/implement.js
new file mode 100644
index 00000000..c3d41569
--- /dev/null
+++ b/node_modules/es5-ext/test/number/max-safe-integer/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/max-safe-integer/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/max-safe-integer/index.js b/node_modules/es5-ext/test/number/max-safe-integer/index.js
new file mode 100644
index 00000000..1be91627
--- /dev/null
+++ b/node_modules/es5-ext/test/number/max-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t, "number"); };
diff --git a/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js b/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/min-safe-integer/implement.js b/node_modules/es5-ext/test/number/min-safe-integer/implement.js
new file mode 100644
index 00000000..3f3533fb
--- /dev/null
+++ b/node_modules/es5-ext/test/number/min-safe-integer/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../number/min-safe-integer/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/number/min-safe-integer/index.js b/node_modules/es5-ext/test/number/min-safe-integer/index.js
new file mode 100644
index 00000000..1be91627
--- /dev/null
+++ b/node_modules/es5-ext/test/number/min-safe-integer/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t, "number"); };
diff --git a/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js b/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/number/to-integer.js b/node_modules/es5-ext/test/number/to-integer.js
new file mode 100644
index 00000000..b7b975f5
--- /dev/null
+++ b/node_modules/es5-ext/test/number/to-integer.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), 0, "NaN");
+ a(t(20), 20, "Positive integer");
+ a(t("-20"), -20, "String negative integer");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(15.343), 15, "Float");
+ a(t(-15.343), -15, "Negative float");
+};
diff --git a/node_modules/es5-ext/test/number/to-pos-integer.js b/node_modules/es5-ext/test/number/to-pos-integer.js
new file mode 100644
index 00000000..27c7cdfa
--- /dev/null
+++ b/node_modules/es5-ext/test/number/to-pos-integer.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), 0, "NaN");
+ a(t(20), 20, "Positive integer");
+ a(t(-20), 0, "Negative integer");
+ a(t(Infinity), Infinity, "Infinity");
+ a(t(15.343), 15, "Float");
+ a(t(-15.343), 0, "Negative float");
+};
diff --git a/node_modules/es5-ext/test/number/to-uint32.js b/node_modules/es5-ext/test/number/to-uint32.js
new file mode 100644
index 00000000..7eea42f5
--- /dev/null
+++ b/node_modules/es5-ext/test/number/to-uint32.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), 0, "Not numeric");
+ a(t(-4), 4294967292, "Negative");
+ a(t(133432), 133432, "Positive");
+ a(t(8589934592), 0, "Greater than maximum");
+};
diff --git a/node_modules/es5-ext/test/object/_iterate.js b/node_modules/es5-ext/test/object/_iterate.js
new file mode 100644
index 00000000..98f8f1ea
--- /dev/null
+++ b/node_modules/es5-ext/test/object/_iterate.js
@@ -0,0 +1,36 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = { raz: 1, dwa: 2, trzy: 3 }, o2 = {}, o3 = {}, arr, i = -1;
+
+ t = t("forEach");
+ t(
+ o,
+ function (value, name, self, index) {
+ o2[name] = value;
+ a(index, ++i, "Index");
+ a(self, o, "Self");
+ a(this, o3, "Scope");
+ },
+ o3
+ );
+ a.deep(o2, o);
+
+ arr = [];
+ o2 = {};
+ i = -1;
+ t(
+ o,
+ function (value, name, self, index) {
+ arr.push(value);
+ o2[name] = value;
+ a(index, ++i, "Index");
+ a(self, o, "Self");
+ a(this, o3, "Scope");
+ },
+ o3,
+ function (a, b) { return o[b] - o[a]; }
+ );
+ a.deep(o2, o, "Sort by Values: Content");
+ a.deep(arr, [3, 2, 1], "Sort by Values: Order");
+};
diff --git a/node_modules/es5-ext/test/object/assign-deep.js b/node_modules/es5-ext/test/object/assign-deep.js
new file mode 100644
index 00000000..962ac40d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign-deep.js
@@ -0,0 +1,27 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o1 = { a: 1, b: 2 }, o2 = { b: 3, c: 4 };
+
+ a(t(o1, o2), o1, "Returns self");
+ a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content");
+
+ a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument");
+
+ var obj1 = { foo: { bar: 3, marko: true } }
+ , obj2 = { foo: { elo: 12, marko: false }, miszka: [23] };
+
+ var copyObj1 = JSON.parse(JSON.stringify(obj1)), copyObj2 = JSON.parse(JSON.stringify(obj2));
+ a.deep(t({}, obj1, obj2), { foo: { bar: 3, marko: false, elo: 12 }, miszka: [23] });
+ // Ensure it's side effects free
+ a.deep(obj1, copyObj1);
+ a.deep(obj2, copyObj2);
+
+ obj1 = [{ foo: "bar" }];
+ var assignedObj = [];
+ t(assignedObj, obj1);
+ a.deep(assignedObj, [{ foo: "bar" }]);
+ // Ensure array items are copied and not passed
+ a.not(assignedObj[0], obj1[0]);
+ a(t(true), true);
+};
diff --git a/node_modules/es5-ext/test/object/assign/implement.js b/node_modules/es5-ext/test/object/assign/implement.js
new file mode 100644
index 00000000..f5cd3a63
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../object/assign/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/object/assign/index.js b/node_modules/es5-ext/test/object/assign/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/object/assign/is-implemented.js b/node_modules/es5-ext/test/object/assign/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/object/assign/shim.js b/node_modules/es5-ext/test/object/assign/shim.js
new file mode 100644
index 00000000..e86c1e76
--- /dev/null
+++ b/node_modules/es5-ext/test/object/assign/shim.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o1 = { a: 1, b: 2 }, o2 = { b: 3, c: 4 };
+
+ a(t(o1, o2), o1, "Returns self");
+ a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content");
+
+ a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument");
+};
diff --git a/node_modules/es5-ext/test/object/clear.js b/node_modules/es5-ext/test/object/clear.js
new file mode 100644
index 00000000..5735e796
--- /dev/null
+++ b/node_modules/es5-ext/test/object/clear.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var isEmpty = require("../../object/is-empty");
+
+module.exports = function (t, a) {
+ var x = {};
+ a(t(x), x, "Empty: Returns same object");
+ a(isEmpty(x), true, "Empty: Not changed");
+ x.foo = "raz";
+ x.bar = "dwa";
+ a(t(x), x, "Same object");
+ a(isEmpty(x), true, "Emptied");
+};
diff --git a/node_modules/es5-ext/test/object/compact.js b/node_modules/es5-ext/test/object/compact.js
new file mode 100644
index 00000000..bc3e6dce
--- /dev/null
+++ b/node_modules/es5-ext/test/object/compact.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {}, y = {}, z;
+ z = t(x);
+ a.not(z, x, "Returns different object");
+ a.deep(z, {}, "Empty on empty");
+
+ x = { foo: "bar", a: 0, b: false, c: "", d: "0", e: null, bar: y, elo: undefined };
+ z = t(x);
+ a.deep(z, { foo: "bar", a: 0, b: false, c: "", d: "0", bar: y }, "Cleared null values");
+};
diff --git a/node_modules/es5-ext/test/object/compare.js b/node_modules/es5-ext/test/object/compare.js
new file mode 100644
index 00000000..23cc5116
--- /dev/null
+++ b/node_modules/es5-ext/test/object/compare.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var d = new Date();
+
+ a.ok(t(12, 3) > 0, "Numbers");
+ a.ok(t(2, 13) < 0, "Numbers #2");
+ a.ok(t("aaa", "aa") > 0, "Strings");
+ a.ok(t("aa", "ab") < 0, "Strings #2");
+ a(t("aa", "aa"), 0, "Strings same");
+ a(t(d, new Date(d.getTime())), 0, "Same date");
+ a.ok(t(d, new Date(d.getTime() + 1)) < 0, "Different date");
+};
diff --git a/node_modules/es5-ext/test/object/copy-deep.js b/node_modules/es5-ext/test/object/copy-deep.js
new file mode 100644
index 00000000..93813830
--- /dev/null
+++ b/node_modules/es5-ext/test/object/copy-deep.js
@@ -0,0 +1,35 @@
+"use strict";
+
+var stringify = JSON.stringify;
+
+module.exports = function (t, a) {
+ var o = { 1: "raz", 2: "dwa", 3: "trzy" }, no = t(o);
+
+ a.not(no, o, "Return different object");
+ a(stringify(no), stringify(o), "Match properties and values");
+
+ o = {
+ foo: "bar",
+ raz: {
+ dwa: "dwa",
+ trzy: { cztery: "pięć", sześć: "siedem" },
+ osiem: {},
+ dziewięć: function () {}
+ },
+ dziesięć: 10,
+ jedenaście: ["raz", ["dwa", "trzy", { elo: "true" }]]
+ };
+ o.raz.rec = o;
+
+ no = t(o);
+ a.not(o.raz, no.raz, "Deep");
+ a.not(o.raz.trzy, no.raz.trzy, "Deep #2");
+ a(stringify(o.raz.trzy), stringify(no.raz.trzy), "Deep content");
+ a(no.raz.rec, no, "Recursive");
+ a.not(o.raz.osiem, no.raz.osiem, "Empty object");
+ a(o.raz["dziewięć"], no.raz["dziewięć"], "Function");
+ a.not(o["jedenaście"], no["jedenaście"]);
+ a.not(o["jedenaście"][1], no["jedenaście"][1]);
+ a.not(o["jedenaście"][1][2], no["jedenaście"][1][2]);
+ a(t(true), true);
+};
diff --git a/node_modules/es5-ext/test/object/copy.js b/node_modules/es5-ext/test/object/copy.js
new file mode 100644
index 00000000..a5e2c348
--- /dev/null
+++ b/node_modules/es5-ext/test/object/copy.js
@@ -0,0 +1,30 @@
+"use strict";
+
+var stringify = JSON.stringify;
+
+module.exports = function (t, a) {
+ var o = { 1: "raz", 2: "dwa", 3: "trzy" }, no = t(o);
+
+ a.not(no, o, "Return different object");
+ a(stringify(no), stringify(o), "Match properties and values");
+
+ o = {
+ foo: "bar",
+ raz: {
+ dwa: "dwa",
+ trzy: { cztery: "pięć", sześć: "siedem" },
+ osiem: {},
+ dziewięć: function () {}
+ },
+ dziesięć: 10
+ };
+ o.raz.rec = o;
+
+ no = t(o);
+ a(o.raz, no.raz, "Shallow");
+
+ a.deep(t(o, ["foo"]), { foo: "bar" });
+ a.deep(t(Object.create(o), ["foo"]), { foo: "bar" });
+ a.deep(t(o, ["foo", "habla"]), { foo: "bar" });
+ a.deep(t(o, ["foo", "habla"], { ensure: true }), { foo: "bar", habla: undefined });
+};
diff --git a/node_modules/es5-ext/test/object/count.js b/node_modules/es5-ext/test/object/count.js
new file mode 100644
index 00000000..041f91a6
--- /dev/null
+++ b/node_modules/es5-ext/test/object/count.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), 0, "Empty");
+ a(t({ raz: 1, dwa: null, trzy: undefined, cztery: 0 }), 4, "Some properties");
+ a(
+ t(
+ Object.defineProperties(
+ {}, { raz: { value: "raz" }, dwa: { value: "dwa", enumerable: true } }
+ )
+ ),
+ 1, "Some properties hidden"
+ );
+};
diff --git a/node_modules/es5-ext/test/object/create.js b/node_modules/es5-ext/test/object/create.js
new file mode 100644
index 00000000..220f417d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/create.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var setPrototypeOf = require("../../object/set-prototype-of")
+ , getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (t, a) {
+ var x = {}, obj;
+
+ a(getPrototypeOf(t(x)), x, "Normal object");
+ a(getPrototypeOf(t(null)), (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Null");
+
+ a.h1("Properties");
+ a.h2("Normal object");
+ a(getPrototypeOf((obj = t(x, { foo: { value: "bar" } }))), x, "Prototype");
+ a(obj.foo, "bar", "Property");
+ a.h2("Null");
+ a(
+ getPrototypeOf((obj = t(null, { foo: { value: "bar2" } }))),
+ (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Prototype"
+ );
+ a(obj.foo, "bar2", "Property");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-array.js b/node_modules/es5-ext/test/object/ensure-array.js
new file mode 100644
index 00000000..6189d079
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-array.js
@@ -0,0 +1,23 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var arr = [];
+ a(t(arr), arr, "Array");
+ a(t(""), "", "String");
+ var args = (function () { return arguments; })();
+ a(t(args), args, "Arguments");
+ var arrayLike = { length: 0 };
+ a(t(arrayLike), arrayLike, "Array like");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a.throws(function () { t({}); }, TypeError, "Plain object");
+ a.throws(function () { t(/raz/); }, TypeError, "Regexp");
+ a.throws(function () { t(); }, TypeError, "No argument");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-finite-number.js b/node_modules/es5-ext/test/object/ensure-finite-number.js
new file mode 100644
index 00000000..77ac2695
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-finite-number.js
@@ -0,0 +1,18 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a(t(0), 0, "Zero");
+ a.throws(function () { t(NaN); }, TypeError, "NaN");
+ a.throws(function () { t(Infinity); }, TypeError, "Infinity");
+ a(t(12), 12, "Number");
+ a(t(false), 0, "Boolean");
+ a(t(new Date(1000000)), 1000000, "Date");
+ a(t(new Number(2)), 2, "Number object");
+ a.throws(function () { t("asdfaf"); }, TypeError, "String");
+ a(t(""), 0, "Empty String");
+ if (typeof Symbol === "function") {
+ a.throws(function () { t(Symbol("test")); }, TypeError, "Symbol");
+ }
+};
diff --git a/node_modules/es5-ext/test/object/ensure-integer.js b/node_modules/es5-ext/test/object/ensure-integer.js
new file mode 100644
index 00000000..c97d81ab
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-integer.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a(t(2), 2, "Number");
+ a(t(-2), -2, "Negative");
+ a.throws(function () { t(2.34); }, TypeError, "Float");
+ a(t("23"), 23, "Numeric string");
+ a.throws(function () { t(NaN); }, TypeError, "NaN");
+ a.throws(function () { t(Infinity); }, TypeError, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-natural-number-value.js b/node_modules/es5-ext/test/object/ensure-natural-number-value.js
new file mode 100644
index 00000000..16b0cdfb
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-natural-number-value.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a(t(2), 2, "Number");
+ a.throws(function () { t(-2); }, TypeError, "Negative");
+ a.throws(function () { t(2.34); }, TypeError, "Float");
+ a(t("23"), 23, "Numeric string");
+ a.throws(function () { t(NaN); }, TypeError, "NaN");
+ a.throws(function () { t(Infinity); }, TypeError, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-natural-number.js b/node_modules/es5-ext/test/object/ensure-natural-number.js
new file mode 100644
index 00000000..861c5957
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-natural-number.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a(t(null), 0, "Null");
+ a(t(2), 2, "Number");
+ a.throws(function () { t(-2); }, TypeError, "Negative");
+ a.throws(function () { t(2.34); }, TypeError, "Float");
+ a(t("23"), 23, "Numeric string");
+ a.throws(function () { t(NaN); }, TypeError, "NaN");
+ a.throws(function () { t(Infinity); }, TypeError, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-plain-function.js b/node_modules/es5-ext/test/object/ensure-plain-function.js
new file mode 100644
index 00000000..eeeae0fc
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-plain-function.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ // Just sanity checks, as logic is tested at isPlainFunction
+ var fn = function () {};
+ a(t(fn), fn, "Function");
+ a.throws(function () { t({}); }, TypeError, "Error");
+};
diff --git a/node_modules/es5-ext/test/object/ensure-plain-object.js b/node_modules/es5-ext/test/object/ensure-plain-object.js
new file mode 100644
index 00000000..cc1d1fae
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-plain-object.js
@@ -0,0 +1,16 @@
+"use strict";
+
+module.exports = function (t, a) {
+ // Just sanity checks, as logic is tested at isPlainFunction
+ var obj = {};
+ a(t(obj), obj, "Reguar object instance");
+ obj = Object.create(null);
+ a(t(obj), obj, "Null prototype");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Error"
+ );
+};
diff --git a/node_modules/es5-ext/test/object/ensure-promise.js b/node_modules/es5-ext/test/object/ensure-promise.js
new file mode 100644
index 00000000..07f058e7
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-promise.js
@@ -0,0 +1,20 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var promise;
+ a.throws(function () { t(); }, TypeError);
+ a.throws(function () { t(null); }, TypeError);
+ a.throws(function () { t("promise"); }, TypeError);
+ a.throws(function () { t({}); }, TypeError);
+ a.throws(function () {
+ t(function () {});
+ }, TypeError);
+ a.throws(function () { t({ then: {} }); }, TypeError);
+ promise = { then: function () {} };
+ a(t(promise), promise);
+ promise = function () {};
+ promise.then = {};
+ a.throws(function () { t(promise); }, TypeError);
+ promise.then = function () {};
+ a(t(promise), promise);
+};
diff --git a/node_modules/es5-ext/test/object/ensure-thenable.js b/node_modules/es5-ext/test/object/ensure-thenable.js
new file mode 100644
index 00000000..02be1ef5
--- /dev/null
+++ b/node_modules/es5-ext/test/object/ensure-thenable.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ // Just sanity checks as proper tests are at isThenable
+ var thenable = { then: function () {} };
+
+ a.throws(function () { t({}); }, TypeError);
+ a(t(thenable), thenable);
+};
diff --git a/node_modules/es5-ext/test/object/entries/implement.js b/node_modules/es5-ext/test/object/entries/implement.js
new file mode 100644
index 00000000..c367ee44
--- /dev/null
+++ b/node_modules/es5-ext/test/object/entries/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../object/entries/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/object/entries/index.js b/node_modules/es5-ext/test/object/entries/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/object/entries/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/object/entries/is-implemented.js b/node_modules/es5-ext/test/object/entries/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/object/entries/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/object/entries/shim.js b/node_modules/es5-ext/test/object/entries/shim.js
new file mode 100644
index 00000000..eb7285a5
--- /dev/null
+++ b/node_modules/es5-ext/test/object/entries/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t({ foo: "bar" }), [["foo", "bar"]], "Object");
+ a.deep(t("raz"), [["0", "r"], ["1", "a"], ["2", "z"]], "Primitive");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Undefined");
+};
diff --git a/node_modules/es5-ext/test/object/eq.js b/node_modules/es5-ext/test/object/eq.js
new file mode 100644
index 00000000..8cad90ae
--- /dev/null
+++ b/node_modules/es5-ext/test/object/eq.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = {};
+ a(t(o, {}), false, "Different objects");
+ a(t(o, o), true, "Same objects");
+ a(t("1", "1"), true, "Same primitive");
+ a(t("1", 1), false, "Different primitive types");
+ a(t(NaN, NaN), true, "NaN");
+ a(t(0, 0), true, "0,0");
+ a(t(0, -0), true, "0,-0");
+};
diff --git a/node_modules/es5-ext/test/object/every.js b/node_modules/es5-ext/test/object/every.js
new file mode 100644
index 00000000..81f4662d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/every.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var o = { 1: 1, 2: 2, 3: 3 };
+
+module.exports = function (t, a) {
+ var o2 = {};
+ t(o, function (value, name) {
+ o2[name] = value;
+ return true;
+ });
+ a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
+
+ a(t(o, function () { return true; }), true, "Succeeds");
+
+ a(t(o, function () { return false; }), false, "Fails");
+};
diff --git a/node_modules/es5-ext/test/object/filter.js b/node_modules/es5-ext/test/object/filter.js
new file mode 100644
index 00000000..b9ff5e74
--- /dev/null
+++ b/node_modules/es5-ext/test/object/filter.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t({ 1: 1, 2: 2, 3: 3, 4: 4 }, function (value) { return Boolean(value % 2); }), {
+ 1: 1,
+ 3: 3
+ });
+};
diff --git a/node_modules/es5-ext/test/object/find-key.js b/node_modules/es5-ext/test/object/find-key.js
new file mode 100644
index 00000000..f580e1e7
--- /dev/null
+++ b/node_modules/es5-ext/test/object/find-key.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var o = { 1: 1, 2: 2, 3: 3 };
+
+module.exports = function (t, a) {
+ var o2 = {}, i = 0;
+ t(o, function (value, name) {
+ o2[name] = value;
+ return false;
+ });
+ a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
+
+ a(
+ t(o, function () {
+ ++i;
+ return true;
+ }),
+ "1",
+ "Finds"
+ );
+ a(i, 1, "Stops iteration after condition is met");
+
+ a(t(o, function () { return false; }), undefined, "Fails");
+};
diff --git a/node_modules/es5-ext/test/object/find.js b/node_modules/es5-ext/test/object/find.js
new file mode 100644
index 00000000..b0c6b813
--- /dev/null
+++ b/node_modules/es5-ext/test/object/find.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var o = { 1: 1, 2: 2, 3: 3 };
+
+module.exports = function (t, a) {
+ var o2 = {}, i = 0;
+ t(o, function (value, name) {
+ o2[name] = value;
+ return false;
+ });
+ a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
+
+ a(
+ t(o, function () {
+ ++i;
+ return true;
+ }),
+ 1,
+ "Finds"
+ );
+ a(i, 1, "Stops iteration after condition is met");
+
+ a(t(o, function () { return false; }), undefined, "Fails");
+};
diff --git a/node_modules/es5-ext/test/object/first-key.js b/node_modules/es5-ext/test/object/first-key.js
new file mode 100644
index 00000000..6010ba11
--- /dev/null
+++ b/node_modules/es5-ext/test/object/first-key.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {}, y = Object.create(null);
+ a(t(x), null, "Normal: Empty");
+ a(t(y), null, "Null extension: Empty");
+ x.foo = "raz";
+ x.bar = 343;
+ a(["foo", "bar"].indexOf(t(x)) !== -1, true, "Normal");
+ y.elo = "foo";
+ y.mar = "wew";
+ a(["elo", "mar"].indexOf(t(y)) !== -1, true, "Null extension");
+};
diff --git a/node_modules/es5-ext/test/object/flatten.js b/node_modules/es5-ext/test/object/flatten.js
new file mode 100644
index 00000000..efacd22d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/flatten.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t({ a: { aa: 1, ab: 2 }, b: { ba: 3, bb: 4 } }), { aa: 1, ab: 2, ba: 3, bb: 4 });
+};
diff --git a/node_modules/es5-ext/test/object/for-each.js b/node_modules/es5-ext/test/object/for-each.js
new file mode 100644
index 00000000..4ba48876
--- /dev/null
+++ b/node_modules/es5-ext/test/object/for-each.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = { raz: 1, dwa: 2, trzy: 3 }, o2 = {};
+ a(t(o, function (value, name) { o2[name] = value; }), undefined, "Return");
+ a.deep(o2, o);
+};
diff --git a/node_modules/es5-ext/test/object/get-property-names.js b/node_modules/es5-ext/test/object/get-property-names.js
new file mode 100644
index 00000000..89cfecc8
--- /dev/null
+++ b/node_modules/es5-ext/test/object/get-property-names.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = { first: 1, second: 4 }, r1, r2;
+ o = Object.create(o, { third: { value: null } });
+ o.first = 2;
+ o = Object.create(o);
+ o.fourth = 3;
+
+ r1 = t(o);
+ r1.sort();
+ r2 = ["first", "second", "third", "fourth"].concat(
+ Object.getOwnPropertyNames(Object.prototype)
+ );
+ r2.sort();
+ a.deep(r1, r2);
+};
diff --git a/node_modules/es5-ext/test/object/is-array-like.js b/node_modules/es5-ext/test/object/is-array-like.js
new file mode 100644
index 00000000..fed39b75
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-array-like.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t([]), true, "Array");
+ a(t(""), true, "String");
+ a(t((function () { return arguments; })()), true, "Arguments");
+ a(t({ length: 0 }), true, "List object");
+ a(t(function () {}), false, "Function");
+ a(t({}), false, "Plain object");
+ a(t(/raz/), false, "Regexp");
+ a(t(), false, "No argument");
+ a(t(null), false, "Null");
+ a(t(undefined), false, "Undefined");
+};
diff --git a/node_modules/es5-ext/test/object/is-callable.js b/node_modules/es5-ext/test/object/is-callable.js
new file mode 100644
index 00000000..415023e3
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-callable.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(function () {}), true, "Function");
+ a(t({}), false, "Object");
+ a(t(), false, "Undefined");
+ a(t(null), false, "Null");
+};
diff --git a/node_modules/es5-ext/test/object/is-copy-deep.js b/node_modules/es5-ext/test/object/is-copy-deep.js
new file mode 100644
index 00000000..476ca748
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-copy-deep.js
@@ -0,0 +1,42 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x, y;
+
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false, "Different property value");
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false, "Property only in source");
+ a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false, "Property only in target");
+
+ a(t("raz", "dwa"), false, "String: diff");
+ a(t("raz", "raz"), true, "String: same");
+ a(t("32", 32), false, "String & Number");
+
+ a(t([1, "raz", true], [1, "raz", true]), true, "Array: same");
+ a(t([1, "raz", undefined], [1, "raz"]), false, "Array: diff");
+ a(t(["foo"], ["one"]), false, "Array: One value comparision");
+
+ x = { foo: { bar: { mar: {} } } };
+ y = { foo: { bar: { mar: {} } } };
+ a(t(x, y), true, "Deep");
+
+ a(t({ foo: { bar: { mar: "foo" } } }, { foo: { bar: { mar: {} } } }), false, "Deep: false");
+
+ x = { foo: { bar: { mar: {} } } };
+ x.rec = { foo: x };
+
+ y = { foo: { bar: { mar: {} } } };
+ y.rec = { foo: x };
+
+ a(t(x, y), true, "Object: Infinite Recursion: Same #1");
+
+ x.rec.foo = y;
+ a(t(x, y), true, "Object: Infinite Recursion: Same #2");
+
+ x.rec.foo = x;
+ y.rec.foo = y;
+ a(t(x, y), true, "Object: Infinite Recursion: Same #3");
+
+ y.foo.bar.mar = "raz";
+ a(t(x, y), false, "Object: Infinite Recursion: Diff");
+};
diff --git a/node_modules/es5-ext/test/object/is-copy.js b/node_modules/es5-ext/test/object/is-copy.js
new file mode 100644
index 00000000..ffffd28e
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-copy.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false, "Different property value");
+ a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false, "Property only in source");
+ a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false, "Property only in target");
+
+ a(t("raz", "dwa"), false, "String: diff");
+ a(t("raz", "raz"), true, "String: same");
+ a(t("32", 32), false, "String & Number");
+
+ a(t([1, "raz", true], [1, "raz", true]), true, "Array: same");
+ a(t([1, "raz", undefined], [1, "raz"]), false, "Array: diff");
+};
diff --git a/node_modules/es5-ext/test/object/is-empty.js b/node_modules/es5-ext/test/object/is-empty.js
new file mode 100644
index 00000000..067b1621
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-empty.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), true, "Empty");
+ a(t({ 1: 1 }), false, "Not empty");
+};
diff --git a/node_modules/es5-ext/test/object/is-finite-number.js b/node_modules/es5-ext/test/object/is-finite-number.js
new file mode 100644
index 00000000..6475fb66
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-finite-number.js
@@ -0,0 +1,18 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), false, "Null");
+ a(t(0), true, "Zero");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+ a(t(12), true, "Number");
+ a(t(false), true, "Boolean");
+ a(t(new Date()), true, "Date");
+ a(t(new Number(2)), true, "Number object");
+ a(t("asdfaf"), false, "String");
+ a(t(""), true, "Empty String");
+ if (typeof Symbol === "function") {
+ a(t(Symbol("test")), false, "Symbol");
+ }
+};
diff --git a/node_modules/es5-ext/test/object/is-integer.js b/node_modules/es5-ext/test/object/is-integer.js
new file mode 100644
index 00000000..a0bcd5cd
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-integer.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), false, "Null");
+ a(t(2), true, "Number");
+ a(t(-2), true, "Negative");
+ a(t(2.34), false, "Float");
+ a(t("23"), true, "Numeric string");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/is-natural-number-value.js b/node_modules/es5-ext/test/object/is-natural-number-value.js
new file mode 100644
index 00000000..2bc2b1c8
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-natural-number-value.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), false, "Null");
+ a(t(2), true, "Number");
+ a(t(-2), false, "Negative");
+ a(t(2.34), false, "Float");
+ a(t("23"), true, "Numeric string");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/is-natural-number.js b/node_modules/es5-ext/test/object/is-natural-number.js
new file mode 100644
index 00000000..bb110e60
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-natural-number.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), true, "Null");
+ a(t(2), true, "Number");
+ a(t(-2), false, "Negative");
+ a(t(2.34), false, "Float");
+ a(t("23"), true, "Numeric string");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), false, "Infinity");
+};
diff --git a/node_modules/es5-ext/test/object/is-number-value.js b/node_modules/es5-ext/test/object/is-number-value.js
new file mode 100644
index 00000000..2c09d251
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-number-value.js
@@ -0,0 +1,18 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), false, "Null");
+ a(t(0), true, "Zero");
+ a(t(NaN), false, "NaN");
+ a(t(Infinity), true, "Infinity");
+ a(t(12), true, "Number");
+ a(t(false), true, "Boolean");
+ a(t(new Date()), true, "Date");
+ a(t(new Number(2)), true, "Number object");
+ a(t("asdfaf"), false, "String");
+ a(t(""), true, "Empty String");
+ if (typeof Symbol === "function") {
+ a(t(Symbol("test")), false, "Symbol");
+ }
+};
diff --git a/node_modules/es5-ext/test/object/is-object.js b/node_modules/es5-ext/test/object/is-object.js
new file mode 100644
index 00000000..0b835997
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-object.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t("arar"), false, "String");
+ a(t(12), false, "Number");
+ a(t(true), false, "Boolean");
+ a(t(null), false, "Null");
+ a(t(new Date()), true, "Date");
+ a(t(new String("raz")), true, "String object");
+ a(t({}), true, "Plain object");
+ a(t(/a/), true, "Regular expression");
+ a(t(function () {}), true, "Function");
+};
diff --git a/node_modules/es5-ext/test/object/is-plain-function.js b/node_modules/es5-ext/test/object/is-plain-function.js
new file mode 100644
index 00000000..ded7fa02
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-plain-function.js
@@ -0,0 +1,39 @@
+"use strict";
+
+var setPrototypeOf = require("../../object/set-prototype-of");
+
+module.exports = function (t, a) {
+ a(t(function () {}), true, "Function");
+ a(t({}), false, "Object");
+ a(t(), false, "Undefined");
+ a(t(null), false, "Null");
+ if (setPrototypeOf) {
+ a(
+ t(Object.setPrototypeOf(function () {}, Object.prototype)), false,
+ "Function with non-function prototype"
+ );
+ }
+ var arrowfn;
+ try { arrowfn = eval("(() => {})"); }
+ catch (e) {}
+ if (arrowfn) {
+ a(t(arrowfn), true, "Arrow function");
+ }
+
+ var classFn;
+ try { classFn = eval("(class {})"); }
+ catch (e) {}
+ if (classFn) {
+ a(t(classFn), false, "Class");
+ }
+
+ var commentedClassFn;
+ try {
+ // Follows issue reported to ljhard/is-callable project:
+ // https://github.com/ljharb/is-callable/issues/4
+ commentedClassFn = eval("(class/*kkk*/\n//blah\n Bar\n//blah\n {})");
+ } catch (e) {}
+ if (commentedClassFn) {
+ a(t(commentedClassFn, false, "Class"), false, "Class with comments");
+ }
+};
diff --git a/node_modules/es5-ext/test/object/is-plain-object.js b/node_modules/es5-ext/test/object/is-plain-object.js
new file mode 100644
index 00000000..60ac1322
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-plain-object.js
@@ -0,0 +1,23 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t({}), true, "Empty {} is plain object");
+ a(t({ a: true }), true, "{} with property is plain object");
+ a(
+ t({ prototype: 1, constructor: 2, __proto__: 3 }), true,
+ "{} with any property keys is plain object"
+ );
+ a(t(null), false, "Null is not plain object");
+ a(t("string"), false, "Primitive is not plain object");
+ a(t(function () {}), false, "Function is not plain object");
+ a(
+ t(Object.create({})), false,
+ "Object whose prototype is not Object.prototype is not plain object"
+ );
+ a(
+ t(Object.create(Object.prototype)), true,
+ "Object whose prototype is Object.prototype is plain object"
+ );
+ a(t(Object.create(null)), true, "Object whose prototype is null is plain object");
+ a(t(Object.prototype), false, "Object.prototype");
+};
diff --git a/node_modules/es5-ext/test/object/is-promise.js b/node_modules/es5-ext/test/object/is-promise.js
new file mode 100644
index 00000000..18bf934d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-promise.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var promise;
+ a(t(), false);
+ a(t(null), false);
+ a(t("promise"), false);
+ a(t({}), false);
+ a(t(function () {}), false);
+ a(t({ then: {} }), false);
+ a(t({ then: function () {} }), true);
+ promise = function () {};
+ promise.then = {};
+ a(t(promise), false);
+ promise.then = function () {};
+ a(t(promise), true);
+};
diff --git a/node_modules/es5-ext/test/object/is-thenable.js b/node_modules/es5-ext/test/object/is-thenable.js
new file mode 100644
index 00000000..18bf934d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-thenable.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var promise;
+ a(t(), false);
+ a(t(null), false);
+ a(t("promise"), false);
+ a(t({}), false);
+ a(t(function () {}), false);
+ a(t({ then: {} }), false);
+ a(t({ then: function () {} }), true);
+ promise = function () {};
+ promise.then = {};
+ a(t(promise), false);
+ promise.then = function () {};
+ a(t(promise), true);
+};
diff --git a/node_modules/es5-ext/test/object/is-value.js b/node_modules/es5-ext/test/object/is-value.js
new file mode 100644
index 00000000..c97722d0
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is-value.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(), false);
+ a(t(undefined), false);
+ a(t(null), false);
+ a(t(NaN), true);
+ a(t(0), true);
+ a(t(false), true);
+ a(t("null"), true);
+ a(t(""), true);
+ a(t({}), true);
+ a(t(Object.prototype), true);
+};
diff --git a/node_modules/es5-ext/test/object/is.js b/node_modules/es5-ext/test/object/is.js
new file mode 100644
index 00000000..c94ed41c
--- /dev/null
+++ b/node_modules/es5-ext/test/object/is.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = {};
+ a(t(o, {}), false, "Different objects");
+ a(t(o, o), true, "Same objects");
+ a(t("1", "1"), true, "Same primitive");
+ a(t("1", 1), false, "Different primitive types");
+ a(t(NaN, NaN), true, "NaN");
+ a(t(0, 0), true, "0,0");
+ a(t(0, -0), false, "0,-0");
+};
diff --git a/node_modules/es5-ext/test/object/key-of.js b/node_modules/es5-ext/test/object/key-of.js
new file mode 100644
index 00000000..cd75ae57
--- /dev/null
+++ b/node_modules/es5-ext/test/object/key-of.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x = {}, y = {}, o = { foo: "bar", raz: x, trzy: "cztery", five: "6" };
+
+ a(t(o, "bar"), "foo", "First property");
+ a(t(o, 6), null, "Primitive that's not there");
+ a(t(o, x), "raz", "Object");
+ a(t(o, y), null, "Object that's not there");
+ a(t(o, "6"), "five", "Last property");
+};
diff --git a/node_modules/es5-ext/test/object/keys/implement.js b/node_modules/es5-ext/test/object/keys/implement.js
new file mode 100644
index 00000000..3134886d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/keys/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../object/keys/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/object/keys/index.js b/node_modules/es5-ext/test/object/keys/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/object/keys/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/object/keys/is-implemented.js b/node_modules/es5-ext/test/object/keys/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/object/keys/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/object/keys/shim.js b/node_modules/es5-ext/test/object/keys/shim.js
new file mode 100644
index 00000000..dc09f46b
--- /dev/null
+++ b/node_modules/es5-ext/test/object/keys/shim.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t({ foo: "bar" }), ["foo"], "Object");
+ a.deep(t("raz"), ["0", "1", "2"], "Primitive");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Undefined");
+};
diff --git a/node_modules/es5-ext/test/object/map-keys.js b/node_modules/es5-ext/test/object/map-keys.js
new file mode 100644
index 00000000..3dc9298e
--- /dev/null
+++ b/node_modules/es5-ext/test/object/map-keys.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.deep(t({ 1: 1, 2: 2, 3: 3 }, function (key, value) { return "x" + (key + value); }), {
+ x11: 1,
+ x22: 2,
+ x33: 3
+ });
+};
diff --git a/node_modules/es5-ext/test/object/map.js b/node_modules/es5-ext/test/object/map.js
new file mode 100644
index 00000000..c4725756
--- /dev/null
+++ b/node_modules/es5-ext/test/object/map.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var obj = { 1: 1, 2: 2, 3: 3 };
+ a.deep(
+ t(obj, function (value, key, context) {
+ a(context, obj, "Context argument");
+ return value + 1 + key;
+ }),
+ { 1: "21", 2: "32", 3: "43" }
+ );
+};
diff --git a/node_modules/es5-ext/test/object/mixin-prototypes.js b/node_modules/es5-ext/test/object/mixin-prototypes.js
new file mode 100644
index 00000000..f510afb4
--- /dev/null
+++ b/node_modules/es5-ext/test/object/mixin-prototypes.js
@@ -0,0 +1,68 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o, o1, o2, x, y = {}, z = {};
+ o = { inherited: true, visible: 23 };
+ o1 = Object.create(o);
+ o1.visible = z;
+ o1.nonremovable = "raz";
+ Object.defineProperty(o1, "hidden", { value: "hidden" });
+
+ o2 = Object.defineProperties({}, { nonremovable: { value: y } });
+ o2.other = "other";
+
+ try { t(o2, o1); }
+ catch (ignore) {}
+
+ a(o2.visible, z, "Enumerable");
+ a(o1.hidden, "hidden", "Not Enumerable");
+ a(o2.propertyIsEnumerable("visible"), true, "Enumerable is enumerable");
+ a(o2.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable");
+
+ a(o2.inherited, true, "Extend deep");
+
+ a(o2.nonremovable, y, "Do not overwrite non configurable");
+ a(o2.other, "other", "Own kept");
+
+ x = {};
+ t(x, o2);
+ try { t(x, o1); }
+ catch (ignore) {}
+
+ a(x.visible, z, "Enumerable");
+ a(x.hidden, "hidden", "Not Enumerable");
+ a(x.propertyIsEnumerable("visible"), true, "Enumerable is enumerable");
+ a(x.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable");
+
+ a(x.inherited, true, "Extend deep");
+
+ a(x.nonremovable, y, "Ignored non configurable");
+ a(x.other, "other", "Other");
+
+ x.visible = 3;
+ a(x.visible, 3, "Writable is writable");
+
+ x = {};
+ t(x, o1);
+ a.throws(function () { x.hidden = 3; }, "Not writable is not writable");
+
+ x = {};
+ t(x, o1);
+ delete x.visible;
+ a.ok(!x.hasOwnProperty("visible"), "Configurable is configurable");
+
+ x = {};
+ t(x, o1);
+ a.throws(function () { delete x.hidden; }, "Not configurable is not configurable");
+
+ x = Object.defineProperty({}, "foo", {
+ configurable: false,
+ writable: true,
+ enumerable: false,
+ value: "bar"
+ });
+
+ try { t(x, { foo: "lorem" }); }
+ catch (ignore) {}
+ a(x.foo, "bar", "Writable, not enumerable");
+};
diff --git a/node_modules/es5-ext/test/object/mixin.js b/node_modules/es5-ext/test/object/mixin.js
new file mode 100644
index 00000000..4195d032
--- /dev/null
+++ b/node_modules/es5-ext/test/object/mixin.js
@@ -0,0 +1,70 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o, o1, o2, x, y = {}, z = {};
+ o = { inherited: true };
+ o1 = Object.create(o);
+ o1.visible = z;
+ o1.nonremovable = "raz";
+ Object.defineProperty(o1, "hidden", { value: "hidden" });
+
+ o2 = Object.defineProperties({}, { nonremovable: { value: y } });
+ o2.other = "other";
+
+ try { t(o2, o1); }
+ catch (ignore) {}
+
+ a(o2.visible, z, "Enumerable");
+ a(o1.hidden, "hidden", "Not Enumerable");
+ a(o2.propertyIsEnumerable("visible"), true, "Enumerable is enumerable");
+ a(o2.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable");
+
+ a(o2.hasOwnProperty("inherited"), false, "Extend only own");
+ a(o2.inherited, undefined, "Extend ony own: value");
+
+ a(o2.nonremovable, y, "Do not overwrite non configurable");
+ a(o2.other, "other", "Own kept");
+
+ x = {};
+ t(x, o2);
+ try { t(x, o1); }
+ catch (ignore) {}
+
+ a(x.visible, z, "Enumerable");
+ a(x.hidden, "hidden", "Not Enumerable");
+ a(x.propertyIsEnumerable("visible"), true, "Enumerable is enumerable");
+ a(x.propertyIsEnumerable("hidden"), false, "Not enumerable is not enumerable");
+
+ a(x.hasOwnProperty("inherited"), false, "Extend only own");
+ a(x.inherited, undefined, "Extend ony own: value");
+
+ a(x.nonremovable, y, "Ignored non configurable");
+ a(x.other, "other", "Other");
+
+ x.visible = 3;
+ a(x.visible, 3, "Writable is writable");
+
+ x = {};
+ t(x, o1);
+ a.throws(function () { x.hidden = 3; }, "Not writable is not writable");
+
+ x = {};
+ t(x, o1);
+ delete x.visible;
+ a.ok(!x.hasOwnProperty("visible"), "Configurable is configurable");
+
+ x = {};
+ t(x, o1);
+ a.throws(function () { delete x.hidden; }, "Not configurable is not configurable");
+
+ x = Object.defineProperty({}, "foo", {
+ configurable: false,
+ writable: true,
+ enumerable: false,
+ value: "bar"
+ });
+
+ try { t(x, { foo: "lorem" }); }
+ catch (ignore) {}
+ a(x.foo, "bar", "Writable, not enumerable");
+};
diff --git a/node_modules/es5-ext/test/object/normalize-options.js b/node_modules/es5-ext/test/object/normalize-options.js
new file mode 100644
index 00000000..74d32087
--- /dev/null
+++ b/node_modules/es5-ext/test/object/normalize-options.js
@@ -0,0 +1,55 @@
+"use strict";
+
+var create = Object.create, defineProperty = Object.defineProperty;
+
+module.exports = function (t, a) {
+ var x = { foo: "raz", bar: "dwa" }, y;
+ y = t(x);
+ a.not(y, x, "Returns copy");
+ a.deep(y, x, "Plain");
+
+ x = { raz: "one", dwa: "two" };
+ defineProperty(x, "get", {
+ configurable: true,
+ enumerable: true,
+ get: function () { return this.dwa; }
+ });
+ x = create(x);
+ x.trzy = "three";
+ x.cztery = "four";
+ x = create(x);
+ x.dwa = "two!";
+ x.trzy = "three!";
+ x.piec = "five";
+ x.szesc = "six";
+
+ a.deep(
+ t(x),
+ {
+ raz: "one",
+ dwa: "two!",
+ trzy: "three!",
+ cztery: "four",
+ piec: "five",
+ szesc: "six",
+ get: "two!"
+ },
+ "Deep object"
+ );
+
+ a.deep(
+ t({ marko: "raz", raz: "foo" }, x, { szesc: "elo", siedem: "bibg" }),
+ {
+ marko: "raz",
+ raz: "one",
+ dwa: "two!",
+ trzy: "three!",
+ cztery: "four",
+ piec: "five",
+ szesc: "elo",
+ siedem: "bibg",
+ get: "two!"
+ },
+ "Multiple options"
+ );
+};
diff --git a/node_modules/es5-ext/test/object/primitive-set.js b/node_modules/es5-ext/test/object/primitive-set.js
new file mode 100644
index 00000000..a0500ff6
--- /dev/null
+++ b/node_modules/es5-ext/test/object/primitive-set.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var getPropertyNames = require("../../object/get-property-names")
+ , isPlainObject = require("../../object/is-plain-object");
+
+module.exports = function (t, a) {
+ var x = t();
+ a(isPlainObject(x), true, "Plain object");
+ a.deep(getPropertyNames(x), [], "No properties");
+ x.foo = "bar";
+ a.deep(getPropertyNames(x), ["foo"], "Extensible");
+
+ a.deep(t("raz", "dwa", 3), { raz: true, dwa: true, 3: true }, "Arguments handling");
+};
diff --git a/node_modules/es5-ext/test/object/safe-traverse.js b/node_modules/es5-ext/test/object/safe-traverse.js
new file mode 100644
index 00000000..acf49c0e
--- /dev/null
+++ b/node_modules/es5-ext/test/object/safe-traverse.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var obj = { foo: { bar: { lorem: 12 } } };
+ a(t(obj), obj, "No props");
+ a(t(obj, "foo"), obj.foo, "One");
+ a(t(obj, "raz"), undefined, "One: Fail");
+ a(t(obj, "foo", "bar"), obj.foo.bar, "Two");
+ a(t(obj, "dsd", "raz"), undefined, "Two: Fail #1");
+ a(t(obj, "foo", "raz"), undefined, "Two: Fail #2");
+ a(t(obj, "foo", "bar", "lorem"), obj.foo.bar.lorem, "Three");
+ a(t(obj, "dsd", "raz", "fef"), undefined, "Three: Fail #1");
+ a(t(obj, "foo", "raz", "asdf"), undefined, "Three: Fail #2");
+ a(t(obj, "foo", "bar", "asd"), undefined, "Three: Fail #3");
+};
diff --git a/node_modules/es5-ext/test/object/serialize.js b/node_modules/es5-ext/test/object/serialize.js
new file mode 100644
index 00000000..513cd61f
--- /dev/null
+++ b/node_modules/es5-ext/test/object/serialize.js
@@ -0,0 +1,43 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var fn = function (raz, dwa) { return raz + dwa; };
+ a(t(), "undefined", "Undefined");
+ a(t(null), "null", "Null");
+ a(t(null), "null", "Null");
+ a(t("raz"), "\"raz\"", "String");
+ a(t("raz\"ddwa\ntrzy"), "\"raz\\\"ddwa\\ntrzy\"", "String with escape");
+ a(t(false), "false", "Booelean");
+ a(t(fn), String(fn), "Function");
+
+ a(t(/raz-dwa/g), "/raz-dwa/g", "RegExp");
+ a(t(new Date(1234567)), "new Date(1234567)", "Date");
+ a(t([]), "[]", "Empty array");
+ a(
+ t([undefined, false, null, "raz\"ddwa\ntrzy", fn, /raz/g, new Date(1234567), ["foo"]]),
+ "[undefined,false,null,\"raz\\\"ddwa\\ntrzy\"," +
+ String(fn) +
+ ",/raz/g,new Date(1234567),[\"foo\"]]",
+ "Rich Array"
+ );
+ a(t({}), "{}", "Empty object");
+ a(
+ t({
+ raz: undefined,
+ dwa: false,
+ trzy: null,
+ cztery: "raz\"ddwa\ntrzy",
+ piec: fn,
+ szesc: /raz/g,
+ siedem: new Date(1234567),
+ osiem: ["foo", 32],
+ dziewiec: { foo: "bar", dwa: 343 }
+ }),
+ "{\"raz\":undefined,\"dwa\":false,\"trzy\":null,\"cztery\":\"raz\\\"ddwa\\ntrzy\"," +
+ "\"piec\":" +
+ String(fn) +
+ ",\"szesc\":/raz/g,\"siedem\":new Date(1234567),\"osiem\":[\"foo\",32]," +
+ "\"dziewiec\":{\"foo\":\"bar\",\"dwa\":343}}",
+ "Rich object"
+ );
+};
diff --git a/node_modules/es5-ext/test/object/set-prototype-of/implement.js b/node_modules/es5-ext/test/object/set-prototype-of/implement.js
new file mode 100644
index 00000000..3dde326d
--- /dev/null
+++ b/node_modules/es5-ext/test/object/set-prototype-of/implement.js
@@ -0,0 +1,6 @@
+"use strict";
+
+var create = require("../../../object/create")
+ , isImplemented = require("../../../object/set-prototype-of/is-implemented");
+
+module.exports = function (a) { a(isImplemented(create), true); };
diff --git a/node_modules/es5-ext/test/object/set-prototype-of/index.js b/node_modules/es5-ext/test/object/set-prototype-of/index.js
new file mode 100644
index 00000000..1abc7f9f
--- /dev/null
+++ b/node_modules/es5-ext/test/object/set-prototype-of/index.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var create = require("../../../object/create")
+ , getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (t, a) {
+ var x = {}, y = {};
+
+ if (t === null) return;
+ a(t(x, y), x, "Return self object");
+ a(getPrototypeOf(x), y, "Object");
+ a.throws(function () { t(x); }, TypeError, "Undefined");
+ a.throws(function () { t("foo"); }, TypeError, "Primitive");
+ a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null");
+ x = create(null);
+ a.h1("Change null prototype");
+ a(t(x, y), x, "Result");
+ a(getPrototypeOf(x), y, "Prototype");
+ a.h1("Set null prototype");
+ a(t(y, null), y, "Result");
+ a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype");
+};
diff --git a/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js b/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/object/set-prototype-of/shim.js b/node_modules/es5-ext/test/object/set-prototype-of/shim.js
new file mode 100644
index 00000000..1abc7f9f
--- /dev/null
+++ b/node_modules/es5-ext/test/object/set-prototype-of/shim.js
@@ -0,0 +1,22 @@
+"use strict";
+
+var create = require("../../../object/create")
+ , getPrototypeOf = Object.getPrototypeOf;
+
+module.exports = function (t, a) {
+ var x = {}, y = {};
+
+ if (t === null) return;
+ a(t(x, y), x, "Return self object");
+ a(getPrototypeOf(x), y, "Object");
+ a.throws(function () { t(x); }, TypeError, "Undefined");
+ a.throws(function () { t("foo"); }, TypeError, "Primitive");
+ a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null");
+ x = create(null);
+ a.h1("Change null prototype");
+ a(t(x, y), x, "Result");
+ a(getPrototypeOf(x), y, "Prototype");
+ a.h1("Set null prototype");
+ a(t(y, null), y, "Result");
+ a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype");
+};
diff --git a/node_modules/es5-ext/test/object/some.js b/node_modules/es5-ext/test/object/some.js
new file mode 100644
index 00000000..4c6569f7
--- /dev/null
+++ b/node_modules/es5-ext/test/object/some.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var o = { 1: 1, 2: 2, 3: 3 };
+
+module.exports = function (t, a) {
+ var o2 = {}, i = 0;
+ t(o, function (value, name) {
+ o2[name] = value;
+ return false;
+ });
+ a(JSON.stringify(o2), JSON.stringify(o), "Iterates");
+
+ a(
+ t(o, function () {
+ ++i;
+ return true;
+ }),
+ true,
+ "Succeeds"
+ );
+ a(i, 1, "Stops iteration after condition is met");
+
+ a(t(o, function () { return false; }), false, "Fails");
+};
diff --git a/node_modules/es5-ext/test/object/to-array.js b/node_modules/es5-ext/test/object/to-array.js
new file mode 100644
index 00000000..478e0d89
--- /dev/null
+++ b/node_modules/es5-ext/test/object/to-array.js
@@ -0,0 +1,18 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var o = { 1: 1, 2: 2, 3: 3 }
+ , o1 = {}
+ , o2 = t(
+ o,
+ function (value, name, self) {
+ a(self, o, "Self");
+ a(this, o1, "Scope");
+ return value + Number(name);
+ },
+ o1
+ );
+ a.deep(o2, [2, 4, 6]);
+
+ t(o).sort().forEach(function (item) { a.deep(item, [item[0], o[item[0]]], "Default"); });
+};
diff --git a/node_modules/es5-ext/test/object/unserialize.js b/node_modules/es5-ext/test/object/unserialize.js
new file mode 100644
index 00000000..b25fe2e5
--- /dev/null
+++ b/node_modules/es5-ext/test/object/unserialize.js
@@ -0,0 +1,39 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var fn = function (raz, dwa) { return raz + dwa; };
+ a(t("undefined"), undefined, "Undefined");
+ a(t("null"), null, "Null");
+ a(t("\"raz\""), "raz", "String");
+ a(t("\"raz\\\"ddwa\\ntrzy\""), "raz\"ddwa\ntrzy", "String with escape");
+ a(t("false"), false, "Booelean");
+ a(String(t(String(fn))), String(fn), "Function");
+
+ a.deep(t("/raz-dwa/g"), /raz-dwa/g, "RegExp");
+ a.deep(t("new Date(1234567)"), new Date(1234567), "Date");
+ a.deep(t("[]"), [], "Empty array");
+ a.deep(
+ t("[undefined,false,null,\"raz\\\"ddwa\\ntrzy\",/raz/g,new Date(1234567),[\"foo\"]]"),
+ [undefined, false, null, "raz\"ddwa\ntrzy", /raz/g, new Date(1234567), ["foo"]],
+ "Rich Array"
+ );
+ a.deep(t("{}"), {}, "Empty object");
+ a.deep(
+ t(
+ "{\"raz\":undefined,\"dwa\":false,\"trzy\":null,\"cztery\":\"raz\\\"ddwa\\ntrzy\"," +
+ "\"szesc\":/raz/g,\"siedem\":new Date(1234567),\"osiem\":[\"foo\",32]," +
+ "\"dziewiec\":{\"foo\":\"bar\",\"dwa\":343}}"
+ ),
+ {
+ raz: undefined,
+ dwa: false,
+ trzy: null,
+ cztery: "raz\"ddwa\ntrzy",
+ szesc: /raz/g,
+ siedem: new Date(1234567),
+ osiem: ["foo", 32],
+ dziewiec: { foo: "bar", dwa: 343 }
+ },
+ "Rich object"
+ );
+};
diff --git a/node_modules/es5-ext/test/object/valid-callable.js b/node_modules/es5-ext/test/object/valid-callable.js
new file mode 100644
index 00000000..699e9f3b
--- /dev/null
+++ b/node_modules/es5-ext/test/object/valid-callable.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var f = function () {};
+ a(t(f), f, "Function");
+ a.throws(function () { t({}); }, "Not Function");
+};
diff --git a/node_modules/es5-ext/test/object/valid-object.js b/node_modules/es5-ext/test/object/valid-object.js
new file mode 100644
index 00000000..2fc2a3dc
--- /dev/null
+++ b/node_modules/es5-ext/test/object/valid-object.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(0); }, TypeError, "0");
+ a.throws(function () { t(false); }, TypeError, "false");
+ a.throws(function () { t(""); }, TypeError, "''");
+ a(t((x = {})), x, "Object");
+ a(t((x = function () {})), x, "Function");
+ a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
+ a(t((x = new Date())), x, "Date");
+
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "null");
+};
diff --git a/node_modules/es5-ext/test/object/valid-value.js b/node_modules/es5-ext/test/object/valid-value.js
new file mode 100644
index 00000000..ef11c209
--- /dev/null
+++ b/node_modules/es5-ext/test/object/valid-value.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var numIsNaN = require("../../number/is-nan");
+
+module.exports = function (t, a) {
+ var x;
+ a(t(0), 0, "0");
+ a(t(false), false, "false");
+ a(t(""), "", "''");
+ a(numIsNaN(t(NaN)), true, "NaN");
+ a(t((x = {})), x, "{}");
+
+ a.throws(function () { t(); }, "Undefined");
+ a.throws(function () { t(null); }, "null");
+};
diff --git a/node_modules/es5-ext/test/object/validate-array-like-object.js b/node_modules/es5-ext/test/object/validate-array-like-object.js
new file mode 100644
index 00000000..375483d6
--- /dev/null
+++ b/node_modules/es5-ext/test/object/validate-array-like-object.js
@@ -0,0 +1,21 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(0); }, TypeError, "0");
+ a.throws(function () { t(false); }, TypeError, "false");
+ a.throws(function () { t(""); }, TypeError, "String");
+ a.throws(function () { t({}); }, TypeError, "Plain Object");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
+
+ a(t((x = { length: 1 })), x, "Array like");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "null");
+};
diff --git a/node_modules/es5-ext/test/object/validate-array-like.js b/node_modules/es5-ext/test/object/validate-array-like.js
new file mode 100644
index 00000000..65926158
--- /dev/null
+++ b/node_modules/es5-ext/test/object/validate-array-like.js
@@ -0,0 +1,21 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(0); }, TypeError, "0");
+ a.throws(function () { t(false); }, TypeError, "false");
+ a(t(""), "", "''");
+ a.throws(function () { t({}); }, TypeError, "Plain Object");
+ a.throws(
+ function () {
+ t(function () {});
+ },
+ TypeError,
+ "Function"
+ );
+ a(t((x = new String("raz"))), x, "String object"); // Jslint: ignore
+
+ a(t((x = { length: 1 })), x, "Array like");
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "null");
+};
diff --git a/node_modules/es5-ext/test/object/validate-stringifiable-value.js b/node_modules/es5-ext/test/object/validate-stringifiable-value.js
new file mode 100644
index 00000000..5e09bcdd
--- /dev/null
+++ b/node_modules/es5-ext/test/object/validate-stringifiable-value.js
@@ -0,0 +1,16 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a.throws(function () { t(); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a(t(0), "0");
+ a(t(false), "false");
+ a(t(""), "");
+ a(t({}), String({}), "Object");
+ a(t((x = function () {})), String(x), "Function");
+ a(t((x = new String("raz"))), String(x), "String object"); // Jslint: ignore
+ a(t((x = new Date())), String(x), "Date");
+
+ a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object");
+};
diff --git a/node_modules/es5-ext/test/object/validate-stringifiable.js b/node_modules/es5-ext/test/object/validate-stringifiable.js
new file mode 100644
index 00000000..80bb60e1
--- /dev/null
+++ b/node_modules/es5-ext/test/object/validate-stringifiable.js
@@ -0,0 +1,16 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var x;
+ a(t(), "undefined", "Undefined");
+ a(t(null), "null", "Null");
+ a(t(0), "0");
+ a(t(false), "false");
+ a(t(""), "");
+ a(t({}), String({}), "Object");
+ a(t((x = function () {})), String(x), "Function");
+ a(t((x = new String("raz"))), String(x), "String object"); // Jslint: ignore
+ a(t((x = new Date())), String(x), "Date");
+
+ a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object");
+};
diff --git a/node_modules/es5-ext/test/optional-chaining.js b/node_modules/es5-ext/test/optional-chaining.js
new file mode 100644
index 00000000..1f7d4056
--- /dev/null
+++ b/node_modules/es5-ext/test/optional-chaining.js
@@ -0,0 +1,17 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var obj = { foo: { bar: "elo", par: null } };
+ a(t(), undefined);
+ a(t(null), null);
+ a(t(obj), obj);
+ a(t(obj, "foo"), obj.foo);
+ a(t(obj, "foo", "bar"), "elo");
+ a(t(obj, "foo", "bar", "slice"), String.prototype.slice);
+ a(t(obj, "foo", "par"), null);
+ a(t(obj, "foo", "par", "marko"), undefined);
+ a(t(obj, "marko"), undefined);
+ a(t(""), "");
+ a(t("", "foo"), undefined);
+ a(t("", "slice"), String.prototype.slice);
+};
diff --git a/node_modules/es5-ext/test/promise/#/as-callback.js b/node_modules/es5-ext/test/promise/#/as-callback.js
new file mode 100644
index 00000000..3d9cc0bf
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/#/as-callback.js
@@ -0,0 +1,25 @@
+"use strict";
+
+module.exports = function (t, a) {
+ if (typeof Promise !== "function") return null;
+ return {
+ Success: function (d) {
+ t.call(new Promise(function (resolve) { resolve("foo"); }), function (error, value) {
+ a(error, null);
+ a(value, "foo");
+ d();
+ });
+ },
+ Failure: function (d) {
+ var error = new Error("Rejection");
+ t.call(new Promise(function (resolve, reject) { reject(error); }), function (
+ passedError,
+ value
+ ) {
+ a(passedError, error);
+ a(value, undefined);
+ d();
+ });
+ }
+ };
+};
diff --git a/node_modules/es5-ext/test/promise/#/finally/implement.js b/node_modules/es5-ext/test/promise/#/finally/implement.js
new file mode 100644
index 00000000..94401862
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/#/finally/implement.js
@@ -0,0 +1,7 @@
+"use strict";
+
+var isImplemented = require("../../../../promise/#/finally/is-implemented");
+
+if (typeof Promise !== "function") global.Promise = require("plain-promise");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/promise/#/finally/index.js b/node_modules/es5-ext/test/promise/#/finally/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/#/finally/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/promise/#/finally/is-implemented.js b/node_modules/es5-ext/test/promise/#/finally/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/#/finally/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/promise/#/finally/shim.js b/node_modules/es5-ext/test/promise/#/finally/shim.js
new file mode 100644
index 00000000..a92fab85
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/#/finally/shim.js
@@ -0,0 +1,75 @@
+"use strict";
+
+var microtaskDelay = require("../../../../function/#/microtask-delay");
+
+if (typeof Promise !== "function") global.Promise = require("plain-promise");
+
+module.exports = function (t, a) {
+ return {
+ Success: function (d) {
+ var invoked;
+ t.call(Promise.resolve("foo"), function () {
+ invoked = true;
+ return "bar";
+ }).then(
+ microtaskDelay.call(function (result) {
+ a(result, "foo");
+ a(invoked, true);
+ d();
+ }, microtaskDelay.call(d))
+ );
+ },
+ Failure: function (d) {
+ var invoked;
+ var error = new Error("Some error");
+ t.call(Promise.reject(error), function () {
+ invoked = true;
+ return "bar";
+ }).then(
+ microtaskDelay.call(function () {
+ a.never();
+ d();
+ }),
+ microtaskDelay.call(function (result) {
+ a(result, error);
+ a(invoked, true);
+ d();
+ })
+ );
+ },
+ SuccessFinallyError: function (d) {
+ var invoked, finallyError = new Error("Finally error");
+ t.call(Promise.resolve("foo"), function () {
+ invoked = true;
+ throw finallyError;
+ }).then(
+ microtaskDelay.call(function () {
+ a.never();
+ d();
+ }),
+ microtaskDelay.call(function (result) {
+ a(result, finallyError);
+ a(invoked, true);
+ d();
+ })
+ );
+ },
+ FailureFinallyError: function (d) {
+ var invoked, finallyError = new Error("Finally error");
+ t.call(Promise.reject(new Error("Some error")), function () {
+ invoked = true;
+ throw finallyError;
+ }).then(
+ microtaskDelay.call(function () {
+ a.never();
+ d();
+ }),
+ microtaskDelay.call(function (result) {
+ a(result, finallyError);
+ a(invoked, true);
+ d();
+ })
+ );
+ }
+ };
+};
diff --git a/node_modules/es5-ext/test/promise/.eslintrc.json b/node_modules/es5-ext/test/promise/.eslintrc.json
new file mode 100644
index 00000000..d2383fad
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/.eslintrc.json
@@ -0,0 +1 @@
+{ "globals": { "Promise": true, "setTimeout": true } }
diff --git a/node_modules/es5-ext/test/promise/lazy.js b/node_modules/es5-ext/test/promise/lazy.js
new file mode 100644
index 00000000..f3109e8e
--- /dev/null
+++ b/node_modules/es5-ext/test/promise/lazy.js
@@ -0,0 +1,46 @@
+"use strict";
+
+module.exports = function (t) {
+ if (typeof Promise !== "function") return null; // Run tests only in ES2015+ env
+
+ return {
+ "Delays execution": function (a, d) {
+ var invoked = false;
+ var promise = t(function (resolve) {
+ invoked = true;
+ setTimeout(function () { resolve(20); }, 10);
+ });
+
+ a(invoked, false);
+
+ setTimeout(function () {
+ a(invoked, false);
+ promise.then(function (value) {
+ a(value, 20);
+ setTimeout(d, 0); // Escape error swallowing
+ });
+ a(invoked, true);
+ }, 15);
+ },
+ "Passes rejection": function (a, d) {
+ var promise = t(function (resolve, reject) {
+ setTimeout(function () { reject(new Error("Stop")); }, 10);
+ });
+
+ promise.catch(function (error) {
+ a(error instanceof Error, true);
+ a(error.message, "Stop");
+ setTimeout(d, 0); // Escape error swallowing
+ });
+ },
+ "Passes sync exception": function (a, d) {
+ var promise = t(function () { throw new Error("Stop"); });
+
+ promise.catch(function (error) {
+ a(error instanceof Error, true);
+ a(error.message, "Stop");
+ setTimeout(d, 0); // Escape error swallowing
+ });
+ }
+ };
+};
diff --git a/node_modules/es5-ext/test/reg-exp/#/index.js b/node_modules/es5-ext/test/reg-exp/#/index.js
new file mode 100644
index 00000000..7ab9ab8a
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/index.js
@@ -0,0 +1,15 @@
+/* eslint-env node */
+
+"use strict";
+
+var indexTest = require("tad/lib/utils/index-test")
+ , path = require("path").resolve(__dirname, "../../../reg-exp/#");
+
+module.exports = function (t, a, d) {
+ indexTest(
+ indexTest.readDir(path).aside(function (data) {
+ delete data.sticky;
+ delete data.unicode;
+ })
+ )(t, a, d);
+};
diff --git a/node_modules/es5-ext/test/reg-exp/#/is-sticky.js b/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
new file mode 100644
index 00000000..e65740e7
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/is-sticky.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var re;
+ a(t.call(/raz/), false, "Normal");
+ a(t.call(/raz/g), false, "Global");
+ try {
+ // eslint-disable-next-line no-invalid-regexp
+ re = new RegExp("raz", "y");
+ } catch (ignore) {}
+ if (!re) return;
+ a(t.call(re), true, "Sticky");
+};
diff --git a/node_modules/es5-ext/test/reg-exp/#/is-unicode.js b/node_modules/es5-ext/test/reg-exp/#/is-unicode.js
new file mode 100644
index 00000000..86217aa0
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/is-unicode.js
@@ -0,0 +1,13 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var re;
+ a(t.call(/raz/), false, "Normal");
+ a(t.call(/raz/g), false, "Global");
+ try {
+ // eslint-disable-next-line no-invalid-regexp
+ re = new RegExp("raz", "u");
+ } catch (ignore) {}
+ if (!re) return;
+ a(t.call(re), true, "Unicode");
+};
diff --git a/node_modules/es5-ext/test/reg-exp/#/match/implement.js b/node_modules/es5-ext/test/reg-exp/#/match/implement.js
new file mode 100644
index 00000000..e4da4786
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/match/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/match/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/match/index.js b/node_modules/es5-ext/test/reg-exp/#/match/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/match/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/match/shim.js b/node_modules/es5-ext/test/reg-exp/#/match/shim.js
new file mode 100644
index 00000000..c6fedb57
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/match/shim.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var result = "foobar".match(/foo/);
+ a.deep(t.call(/foo/, "foobar"), result);
+};
diff --git a/node_modules/es5-ext/test/reg-exp/#/replace/implement.js b/node_modules/es5-ext/test/reg-exp/#/replace/implement.js
new file mode 100644
index 00000000..389cec95
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/replace/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/replace/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/replace/index.js b/node_modules/es5-ext/test/reg-exp/#/replace/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/replace/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/replace/shim.js b/node_modules/es5-ext/test/reg-exp/#/replace/shim.js
new file mode 100644
index 00000000..5c37e2e4
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/replace/shim.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(t.call(/foo/, "foobar", "mar"), "marbar"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/search/implement.js b/node_modules/es5-ext/test/reg-exp/#/search/implement.js
new file mode 100644
index 00000000..1e7cb398
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/search/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/search/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/search/index.js b/node_modules/es5-ext/test/reg-exp/#/search/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/search/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/search/shim.js b/node_modules/es5-ext/test/reg-exp/#/search/shim.js
new file mode 100644
index 00000000..02ca0c8f
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/search/shim.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(t.call(/foo/, "barfoo"), 3); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/split/implement.js b/node_modules/es5-ext/test/reg-exp/#/split/implement.js
new file mode 100644
index 00000000..ef8ec4e8
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/split/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/split/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/split/index.js b/node_modules/es5-ext/test/reg-exp/#/split/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/split/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/split/shim.js b/node_modules/es5-ext/test/reg-exp/#/split/shim.js
new file mode 100644
index 00000000..824d48ec
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/split/shim.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a.deep(t.call(/\|/, "bar|foo"), ["bar", "foo"]); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js b/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js
new file mode 100644
index 00000000..6d3ccb75
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/sticky/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js b/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js
new file mode 100644
index 00000000..00cf8823
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../reg-exp/#/unicode/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js b/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/reg-exp/escape.js b/node_modules/es5-ext/test/reg-exp/escape.js
new file mode 100644
index 00000000..9478f523
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/escape.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var str = "(?:^te|er)s{2}t\\[raz]+$";
+ a(RegExp("^" + t(str) + "$").test(str), true);
+};
diff --git a/node_modules/es5-ext/test/reg-exp/is-reg-exp.js b/node_modules/es5-ext/test/reg-exp/is-reg-exp.js
new file mode 100644
index 00000000..7727eaba
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/is-reg-exp.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t("arar"), false, "String");
+ a(t(12), false, "Number");
+ a(t(true), false, "Boolean");
+ a(t(new Date()), false, "Date");
+ a(t(new String("raz")), false, "String object");
+ a(t({}), false, "Plain object");
+ a(t(/a/), true, "Regular expression");
+ a(t(new RegExp("a")), true, "Regular expression via constructor");
+};
diff --git a/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js b/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js
new file mode 100644
index 00000000..fea0c943
--- /dev/null
+++ b/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js
@@ -0,0 +1,15 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var r = /raz/;
+ a(t(r), r, "Direct");
+ r = new RegExp("foo");
+ a(t(r), r, "Constructor");
+ a.throws(function () { t({}); }, "Object");
+ a.throws(function () {
+ t(function () {});
+ }, "Function");
+ a.throws(function () {
+ t({ exec: function () { return 20; } });
+ }, "Plain object");
+};
diff --git a/node_modules/es5-ext/test/safe-to-string.js b/node_modules/es5-ext/test/safe-to-string.js
new file mode 100644
index 00000000..8f545e5b
--- /dev/null
+++ b/node_modules/es5-ext/test/safe-to-string.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(), "undefined");
+ a(t(null), "null");
+ a(t(10), "10");
+ a(t("str"), "str");
+ a(t({ toString: function () { return "miszka"; } }), "miszka");
+ // eslint-disable-next-line symbol-description
+ if (typeof Symbol === "function") a(t(Symbol()), "Symbol()");
+ a(t(Object.create(null)), "");
+};
diff --git a/node_modules/es5-ext/test/string/#/@@iterator/implement.js b/node_modules/es5-ext/test/string/#/@@iterator/implement.js
new file mode 100644
index 00000000..8b269b56
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/@@iterator/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/@@iterator/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/@@iterator/index.js b/node_modules/es5-ext/test/string/#/@@iterator/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/@@iterator/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js b/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/@@iterator/shim.js b/node_modules/es5-ext/test/string/#/@@iterator/shim.js
new file mode 100644
index 00000000..467cdc35
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/@@iterator/shim.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ var it = t.call("r💩z");
+ a.deep(it.next(), { done: false, value: "r" }, "#1");
+ a.deep(it.next(), { done: false, value: "💩" }, "#2");
+ a.deep(it.next(), { done: false, value: "z" }, "#3");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+};
diff --git a/node_modules/es5-ext/test/string/#/at.js b/node_modules/es5-ext/test/string/#/at.js
new file mode 100644
index 00000000..2fe6e849
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/at.js
@@ -0,0 +1,97 @@
+/* eslint no-useless-call: "off" */
+// See tests at https://github.com/mathiasbynens/String.prototype.at
+
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.length, 1, "Length");
+
+ a.h1("BMP");
+ a(t.call("abc\uD834\uDF06def", -Infinity), "", "-Infinity");
+ a(t.call("abc\uD834\uDF06def", -1), "", "-1");
+ a(t.call("abc\uD834\uDF06def", -0), "a", "-0");
+ a(t.call("abc\uD834\uDF06def", +0), "a", "+0");
+ a(t.call("abc\uD834\uDF06def", 1), "b", "1");
+ a(t.call("abc\uD834\uDF06def", 3), "\uD834\uDF06", "3");
+ a(t.call("abc\uD834\uDF06def", 4), "\uDF06", "4");
+ a(t.call("abc\uD834\uDF06def", 5), "d", "5");
+ a(t.call("abc\uD834\uDF06def", 42), "", "42");
+ a(t.call("abc\uD834\uDF06def", Number(Infinity)), "", "+Infinity");
+ a(t.call("abc\uD834\uDF06def", null), "a", "null");
+ a(t.call("abc\uD834\uDF06def", undefined), "a", "undefined");
+ a(t.call("abc\uD834\uDF06def"), "a", "No argument");
+ a(t.call("abc\uD834\uDF06def", false), "a", "false");
+ a(t.call("abc\uD834\uDF06def", NaN), "a", "NaN");
+ a(t.call("abc\uD834\uDF06def", ""), "a", "Empty string");
+ a(t.call("abc\uD834\uDF06def", "_"), "a", "_");
+ a(t.call("abc\uD834\uDF06def", "1"), "b", "'1'");
+ a(t.call("abc\uD834\uDF06def", []), "a", "[]");
+ a(t.call("abc\uD834\uDF06def", {}), "a", "{}");
+ a(t.call("abc\uD834\uDF06def", -0.9), "a", "-0.9");
+ a(t.call("abc\uD834\uDF06def", 1.9), "b", "1.9");
+ a(t.call("abc\uD834\uDF06def", 7.9), "f", "7.9");
+ a(t.call("abc\uD834\uDF06def", Math.pow(2, 32)), "", "Big number");
+
+ a.h1("Astral symbol");
+ a(t.call("\uD834\uDF06def", -Infinity), "", "-Infinity");
+ a(t.call("\uD834\uDF06def", -1), "", "-1");
+ a(t.call("\uD834\uDF06def", -0), "\uD834\uDF06", "-0");
+ a(t.call("\uD834\uDF06def", +0), "\uD834\uDF06", "+0");
+ a(t.call("\uD834\uDF06def", 1), "\uDF06", "1");
+ a(t.call("\uD834\uDF06def", 2), "d", "2");
+ a(t.call("\uD834\uDF06def", 3), "e", "3");
+ a(t.call("\uD834\uDF06def", 4), "f", "4");
+ a(t.call("\uD834\uDF06def", 42), "", "42");
+ a(t.call("\uD834\uDF06def", Number(Infinity)), "", "+Infinity");
+ a(t.call("\uD834\uDF06def", null), "\uD834\uDF06", "null");
+ a(t.call("\uD834\uDF06def", undefined), "\uD834\uDF06", "undefined");
+ a(t.call("\uD834\uDF06def"), "\uD834\uDF06", "No arguments");
+ a(t.call("\uD834\uDF06def", false), "\uD834\uDF06", "false");
+ a(t.call("\uD834\uDF06def", NaN), "\uD834\uDF06", "NaN");
+ a(t.call("\uD834\uDF06def", ""), "\uD834\uDF06", "Empty string");
+ a(t.call("\uD834\uDF06def", "_"), "\uD834\uDF06", "_");
+ a(t.call("\uD834\uDF06def", "1"), "\uDF06", "'1'");
+
+ a.h1("Lone high surrogates");
+ a(t.call("\uD834abc", -Infinity), "", "-Infinity");
+ a(t.call("\uD834abc", -1), "", "-1");
+ a(t.call("\uD834abc", -0), "\uD834", "-0");
+ a(t.call("\uD834abc", +0), "\uD834", "+0");
+ a(t.call("\uD834abc", 1), "a", "1");
+ a(t.call("\uD834abc", 42), "", "42");
+ a(t.call("\uD834abc", Number(Infinity)), "", "Infinity");
+ a(t.call("\uD834abc", null), "\uD834", "null");
+ a(t.call("\uD834abc", undefined), "\uD834", "undefined");
+ a(t.call("\uD834abc"), "\uD834", "No arguments");
+ a(t.call("\uD834abc", false), "\uD834", "false");
+ a(t.call("\uD834abc", NaN), "\uD834", "NaN");
+ a(t.call("\uD834abc", ""), "\uD834", "Empty string");
+ a(t.call("\uD834abc", "_"), "\uD834", "_");
+ a(t.call("\uD834abc", "1"), "a", "'a'");
+
+ a.h1("Lone low surrogates");
+ a(t.call("\uDF06abc", -Infinity), "", "-Infinity");
+ a(t.call("\uDF06abc", -1), "", "-1");
+ a(t.call("\uDF06abc", -0), "\uDF06", "-0");
+ a(t.call("\uDF06abc", +0), "\uDF06", "+0");
+ a(t.call("\uDF06abc", 1), "a", "1");
+ a(t.call("\uDF06abc", 42), "", "42");
+ a(t.call("\uDF06abc", Number(Infinity)), "", "+Infinity");
+ a(t.call("\uDF06abc", null), "\uDF06", "null");
+ a(t.call("\uDF06abc", undefined), "\uDF06", "undefined");
+ a(t.call("\uDF06abc"), "\uDF06", "No arguments");
+ a(t.call("\uDF06abc", false), "\uDF06", "false");
+ a(t.call("\uDF06abc", NaN), "\uDF06", "NaN");
+ a(t.call("\uDF06abc", ""), "\uDF06", "Empty string");
+ a(t.call("\uDF06abc", "_"), "\uDF06", "_");
+ a(t.call("\uDF06abc", "1"), "a", "'1'");
+
+ a.h1("Context");
+ a.throws(function () { t.call(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t.call(undefined, 4); }, TypeError, "Undefined + argument");
+ a.throws(function () { t.call(null); }, TypeError, "Null");
+ a.throws(function () { t.call(null, 4); }, TypeError, "Null + argument");
+ a(t.call(42, 0), "4", "Number #1");
+ a(t.call(42, 1), "2", "Number #2");
+ a(t.call({ toString: function () { return "abc"; } }, 2), "c", "Object");
+};
diff --git a/node_modules/es5-ext/test/string/#/camel-to-hyphen.js b/node_modules/es5-ext/test/string/#/camel-to-hyphen.js
new file mode 100644
index 00000000..bbf9ae48
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/camel-to-hyphen.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("razDwaTRzy4yFoo45My"), "raz-dwa-t-rzy4y-foo45-my");
+ a(t.call("razDwaTRzy4yFoo45My-"), "raz-dwa-t-rzy4y-foo45-my-");
+ a(t.call("razDwaTRzy4yFoo45My--"), "raz-dwa-t-rzy4y-foo45-my--");
+};
diff --git a/node_modules/es5-ext/test/string/#/capitalize.js b/node_modules/es5-ext/test/string/#/capitalize.js
new file mode 100644
index 00000000..884ae9cb
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/capitalize.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("raz"), "Raz", "Word");
+ a(t.call("BLA"), "BLA", "Uppercase");
+ a(t.call(""), "", "Empty");
+ a(t.call("a"), "A", "One letter");
+ a(t.call("this is a test"), "This is a test", "Sentence");
+};
diff --git a/node_modules/es5-ext/test/string/#/case-insensitive-compare.js b/node_modules/es5-ext/test/string/#/case-insensitive-compare.js
new file mode 100644
index 00000000..8117f920
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/case-insensitive-compare.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("AA", "aa"), 0, "Same");
+ a.ok(t.call("Amber", "zebra") < 0, "Less");
+ a.ok(t.call("Zebra", "amber") > 0, "Greater");
+};
diff --git a/node_modules/es5-ext/test/string/#/code-point-at/implement.js b/node_modules/es5-ext/test/string/#/code-point-at/implement.js
new file mode 100644
index 00000000..9ce21f5d
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/code-point-at/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/code-point-at/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/code-point-at/index.js b/node_modules/es5-ext/test/string/#/code-point-at/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/code-point-at/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js b/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/code-point-at/shim.js b/node_modules/es5-ext/test/string/#/code-point-at/shim.js
new file mode 100644
index 00000000..a09e75c2
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/code-point-at/shim.js
@@ -0,0 +1,83 @@
+/* eslint no-useless-call: "off" */
+
+// Taken from: https://github.com/mathiasbynens/String.prototype.codePointAt
+// /blob/master/tests/tests.js
+
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.length, 1, "Length");
+
+ // String that starts with a BMP symbol
+ a(t.call("abc\uD834\uDF06def", ""), 0x61);
+ a(t.call("abc\uD834\uDF06def", "_"), 0x61);
+ a(t.call("abc\uD834\uDF06def"), 0x61);
+ a(t.call("abc\uD834\uDF06def", -Infinity), undefined);
+ a(t.call("abc\uD834\uDF06def", -1), undefined);
+ a(t.call("abc\uD834\uDF06def", -0), 0x61);
+ a(t.call("abc\uD834\uDF06def", 0), 0x61);
+ a(t.call("abc\uD834\uDF06def", 3), 0x1d306);
+ a(t.call("abc\uD834\uDF06def", 4), 0xdf06);
+ a(t.call("abc\uD834\uDF06def", 5), 0x64);
+ a(t.call("abc\uD834\uDF06def", 42), undefined);
+ a(t.call("abc\uD834\uDF06def", Infinity), undefined);
+ a(t.call("abc\uD834\uDF06def", Infinity), undefined);
+ a(t.call("abc\uD834\uDF06def", NaN), 0x61);
+ a(t.call("abc\uD834\uDF06def", false), 0x61);
+ a(t.call("abc\uD834\uDF06def", null), 0x61);
+ a(t.call("abc\uD834\uDF06def", undefined), 0x61);
+
+ // String that starts with an astral symbol
+ a(t.call("\uD834\uDF06def", ""), 0x1d306);
+ a(t.call("\uD834\uDF06def", "1"), 0xdf06);
+ a(t.call("\uD834\uDF06def", "_"), 0x1d306);
+ a(t.call("\uD834\uDF06def"), 0x1d306);
+ a(t.call("\uD834\uDF06def", -1), undefined);
+ a(t.call("\uD834\uDF06def", -0), 0x1d306);
+ a(t.call("\uD834\uDF06def", 0), 0x1d306);
+ a(t.call("\uD834\uDF06def", 1), 0xdf06);
+ a(t.call("\uD834\uDF06def", 42), undefined);
+ a(t.call("\uD834\uDF06def", false), 0x1d306);
+ a(t.call("\uD834\uDF06def", null), 0x1d306);
+ a(t.call("\uD834\uDF06def", undefined), 0x1d306);
+
+ // Lone high surrogates
+ a(t.call("\uD834abc", ""), 0xd834);
+ a(t.call("\uD834abc", "_"), 0xd834);
+ a(t.call("\uD834abc"), 0xd834);
+ a(t.call("\uD834abc", -1), undefined);
+ a(t.call("\uD834abc", -0), 0xd834);
+ a(t.call("\uD834abc", 0), 0xd834);
+ a(t.call("\uD834abc", false), 0xd834);
+ a(t.call("\uD834abc", NaN), 0xd834);
+ a(t.call("\uD834abc", null), 0xd834);
+ a(t.call("\uD834abc", undefined), 0xd834);
+
+ // Lone low surrogates
+ a(t.call("\uDF06abc", ""), 0xdf06);
+ a(t.call("\uDF06abc", "_"), 0xdf06);
+ a(t.call("\uDF06abc"), 0xdf06);
+ a(t.call("\uDF06abc", -1), undefined);
+ a(t.call("\uDF06abc", -0), 0xdf06);
+ a(t.call("\uDF06abc", 0), 0xdf06);
+ a(t.call("\uDF06abc", false), 0xdf06);
+ a(t.call("\uDF06abc", NaN), 0xdf06);
+ a(t.call("\uDF06abc", null), 0xdf06);
+ a(t.call("\uDF06abc", undefined), 0xdf06);
+
+ a.throws(function () { t.call(undefined); }, TypeError);
+ a.throws(function () { t.call(undefined, 4); }, TypeError);
+ a.throws(function () { t.call(null); }, TypeError);
+ a.throws(function () { t.call(null, 4); }, TypeError);
+ a(t.call(42, 0), 0x34);
+ a(t.call(42, 1), 0x32);
+ a(t.call({ toString: function () { return "abc"; } }, 2), 0x63);
+
+ a.throws(function () { t.apply(undefined); }, TypeError);
+ a.throws(function () { t.apply(undefined, [4]); }, TypeError);
+ a.throws(function () { t.apply(null); }, TypeError);
+ a.throws(function () { t.apply(null, [4]); }, TypeError);
+ a(t.apply(42, [0]), 0x34);
+ a(t.apply(42, [1]), 0x32);
+ a(t.apply({ toString: function () { return "abc"; } }, [2]), 0x63);
+};
diff --git a/node_modules/es5-ext/test/string/#/contains/implement.js b/node_modules/es5-ext/test/string/#/contains/implement.js
new file mode 100644
index 00000000..76714950
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/contains/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/contains/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/contains/index.js b/node_modules/es5-ext/test/string/#/contains/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/contains/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/contains/is-implemented.js b/node_modules/es5-ext/test/string/#/contains/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/contains/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/contains/shim.js b/node_modules/es5-ext/test/string/#/contains/shim.js
new file mode 100644
index 00000000..0a73671d
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/contains/shim.js
@@ -0,0 +1,14 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("raz", ""), true, "Empty");
+ a(t.call("", ""), true, "Both Empty");
+ a(t.call("raz", "raz"), true, "Same");
+ a(t.call("razdwa", "raz"), true, "Starts with");
+ a(t.call("razdwa", "dwa"), true, "Ends with");
+ a(t.call("razdwa", "zdw"), true, "In middle");
+ a(t.call("", "raz"), false, "Something in empty");
+ a(t.call("az", "raz"), false, "Longer");
+ a(t.call("azasdfasdf", "azff"), false, "Not found");
+ a(t.call("razdwa", "raz", 1), false, "Position");
+};
diff --git a/node_modules/es5-ext/test/string/#/count.js b/node_modules/es5-ext/test/string/#/count.js
new file mode 100644
index 00000000..5e871e1d
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/count.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a.throws(function () { t.call("", ""); });
+ a(t.call("x", "x"), 1);
+ a(t.call("xx", "x"), 2);
+ a(t.call("xxx", "xx"), 1);
+ a(t.call("xxxx", "xx"), 2);
+ a(t.call("xx", "xxx"), 0);
+ a(t.call("", "elo"), 0);
+ a(t.call("fooo", "foofooo"), 0);
+};
diff --git a/node_modules/es5-ext/test/string/#/ends-with/implement.js b/node_modules/es5-ext/test/string/#/ends-with/implement.js
new file mode 100644
index 00000000..acca2b27
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/ends-with/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/ends-with/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/ends-with/index.js b/node_modules/es5-ext/test/string/#/ends-with/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/ends-with/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js b/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/ends-with/shim.js b/node_modules/es5-ext/test/string/#/ends-with/shim.js
new file mode 100644
index 00000000..75398833
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/ends-with/shim.js
@@ -0,0 +1,16 @@
+// In some parts copied from:
+// http://closure-library.googlecode.com/svn/trunk/closure/goog/
+// string/string_test.html
+
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("abc", ""), true, "Empty needle");
+ a(t.call("abcd", "cd"), true, "Ends with needle");
+ a(t.call("abcd", "abcd"), true, "Needle equals haystack");
+ a(t.call("abcd", "ab"), false, "Doesn't end with needle");
+ a(t.call("abc", "defg"), false, "Length trick");
+ a(t.call("razdwa", "zd", 3), false, "Position: false");
+ a(t.call("razdwa", "zd", 4), true, "Position: true");
+ a(t.call("razdwa", "zd", 5), false, "Position: false #2");
+};
diff --git a/node_modules/es5-ext/test/string/#/hyphen-to-camel.js b/node_modules/es5-ext/test/string/#/hyphen-to-camel.js
new file mode 100644
index 00000000..89c8161c
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/hyphen-to-camel.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("raz-dwa-t-rzy-4y-rtr4-tiu-45-pa"), "razDwaTRzy4yRtr4Tiu45Pa");
+ a(t.call("raz-dwa-t-rzy-4y-rtr4-tiu-45-pa-"), "razDwaTRzy4yRtr4Tiu45Pa-");
+ a(t.call("raz-dwa-t-rzy-4y-rtr4-tiu-45-pa--"), "razDwaTRzy4yRtr4Tiu45Pa--");
+};
diff --git a/node_modules/es5-ext/test/string/#/indent.js b/node_modules/es5-ext/test/string/#/indent.js
new file mode 100644
index 00000000..bc0e5b5f
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/indent.js
@@ -0,0 +1,8 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("ra\nzz", ""), "ra\nzz", "Empty");
+ a(t.call("ra\nzz", "\t", 3), "\t\t\tra\n\t\t\tzz", "String repeat");
+ a(t.call("ra\nzz\nsss\nfff\n", "\t"), "\tra\n\tzz\n\tsss\n\tfff\n", "Multi-line");
+ a(t.call("ra\n\nzz\n", "\t"), "\tra\n\n\tzz\n", "Don't touch empty lines");
+};
diff --git a/node_modules/es5-ext/test/string/#/last.js b/node_modules/es5-ext/test/string/#/last.js
new file mode 100644
index 00000000..fea798d6
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/last.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call(""), null, "Null");
+ a(t.call("abcdef"), "f", "String");
+};
diff --git a/node_modules/es5-ext/test/string/#/normalize/_data.js b/node_modules/es5-ext/test/string/#/normalize/_data.js
new file mode 100644
index 00000000..43d74ded
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/normalize/_data.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t[0], "object"); };
diff --git a/node_modules/es5-ext/test/string/#/normalize/implement.js b/node_modules/es5-ext/test/string/#/normalize/implement.js
new file mode 100644
index 00000000..49eebd1a
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/normalize/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/normalize/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/normalize/index.js b/node_modules/es5-ext/test/string/#/normalize/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/normalize/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/normalize/is-implemented.js b/node_modules/es5-ext/test/string/#/normalize/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/normalize/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/normalize/shim.js b/node_modules/es5-ext/test/string/#/normalize/shim.js
new file mode 100644
index 00000000..0c80aa40
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/normalize/shim.js
@@ -0,0 +1,13 @@
+// Taken from: https://github.com/walling/unorm/blob/master/test/es6-shim.js
+
+"use strict";
+
+var str = "äiti";
+
+module.exports = function (t, a) {
+ a(t.call(str), "\u00e4iti");
+ a(t.call(str, "NFC"), "\u00e4iti");
+ a(t.call(str, "NFD"), "a\u0308iti");
+ a(t.call(str, "NFKC"), "\u00e4iti");
+ a(t.call(str, "NFKD"), "a\u0308iti");
+};
diff --git a/node_modules/es5-ext/test/string/#/pad.js b/node_modules/es5-ext/test/string/#/pad.js
new file mode 100644
index 00000000..e573453f
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/pad.js
@@ -0,0 +1,24 @@
+"use strict";
+
+var partial = require("../../../function/#/partial");
+
+module.exports = {
+ Left: function (t, a) {
+ t = partial.call(t, "x", 5);
+
+ a(t.call("yy"), "xxxyy");
+ a(t.call(""), "xxxxx", "Empty string");
+
+ a(t.call("yyyyy"), "yyyyy", "Equal length");
+ a(t.call("yyyyyyy"), "yyyyyyy", "Longer");
+ },
+ Right: function (t, a) {
+ t = partial.call(t, "x", -5);
+
+ a(t.call("yy"), "yyxxx");
+ a(t.call(""), "xxxxx", "Empty string");
+
+ a(t.call("yyyyy"), "yyyyy", "Equal length");
+ a(t.call("yyyyyyy"), "yyyyyyy", "Longer");
+ }
+};
diff --git a/node_modules/es5-ext/test/string/#/plain-replace-all.js b/node_modules/es5-ext/test/string/#/plain-replace-all.js
new file mode 100644
index 00000000..54fdabd3
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/plain-replace-all.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("razdwatrzy", "dwa", "olera"), "razoleratrzy", "Basic");
+ a(t.call("razdwatrzy", "dwa", "ole$&a"), "razole$&atrzy", "Inserts");
+ a(t.call("razdwa", "ola", "sdfs"), "razdwa", "No replace");
+
+ a(t.call("$raz$$dwa$trzy$", "$", "&&"), "&&raz&&&&dwa&&trzy&&", "Multi");
+ a(t.call("$raz$$dwa$$$$trzy$", "$$", "&"), "$raz&dwa&&trzy$", "Multi many chars");
+};
diff --git a/node_modules/es5-ext/test/string/#/plain-replace.js b/node_modules/es5-ext/test/string/#/plain-replace.js
new file mode 100644
index 00000000..9f6c2bee
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/plain-replace.js
@@ -0,0 +1,7 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("razdwatrzy", "dwa", "olera"), "razoleratrzy", "Basic");
+ a(t.call("razdwatrzy", "dwa", "ole$&a"), "razole$&atrzy", "Inserts");
+ a(t.call("razdwa", "ola", "sdfs"), "razdwa", "No replace");
+};
diff --git a/node_modules/es5-ext/test/string/#/repeat/implement.js b/node_modules/es5-ext/test/string/#/repeat/implement.js
new file mode 100644
index 00000000..554b9759
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/repeat/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/repeat/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/repeat/index.js b/node_modules/es5-ext/test/string/#/repeat/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/repeat/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/repeat/is-implemented.js b/node_modules/es5-ext/test/string/#/repeat/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/repeat/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/repeat/shim.js b/node_modules/es5-ext/test/string/#/repeat/shim.js
new file mode 100644
index 00000000..c5848840
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/repeat/shim.js
@@ -0,0 +1,12 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("a", 0), "", "Empty");
+ a(t.call("a", 1), "a", "1");
+ a(t.call("a", 2), "aa", "2");
+ a(t.call("\t", 5), "\t\t\t\t\t", "Whitespace");
+ a(t.call("raz", 3), "razrazraz", "Many chars");
+ a(t.call("raz", 3), "razrazraz", "Many chars");
+ a(t.call("razfoobar", 5), "razfoobarrazfoobarrazfoobarrazfoobarrazfoobar", "Many chars");
+ a(t.call("a", 300).length, 300);
+};
diff --git a/node_modules/es5-ext/test/string/#/starts-with/implement.js b/node_modules/es5-ext/test/string/#/starts-with/implement.js
new file mode 100644
index 00000000..38371a8d
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/starts-with/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../../string/#/starts-with/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/#/starts-with/index.js b/node_modules/es5-ext/test/string/#/starts-with/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/starts-with/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js b/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/#/starts-with/shim.js b/node_modules/es5-ext/test/string/#/starts-with/shim.js
new file mode 100644
index 00000000..4b5e4e40
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/starts-with/shim.js
@@ -0,0 +1,14 @@
+// Inspired and in some parts copied from:
+// http://closure-library.googlecode.com/svn/trunk/closure/goog
+// /string/string_test.html
+
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("abc", ""), true, "Empty needle");
+ a(t.call("abcd", "ab"), true, "Starts with needle");
+ a(t.call("abcd", "abcd"), true, "Needle equals haystack");
+ a(t.call("abcd", "bcde", 1), false, "Needle larger than haystack");
+ a(!t.call("abcd", "cd"), true, "Doesn't start with needle");
+ a(t.call("abcd", "bc", 1), true, "Position");
+};
diff --git a/node_modules/es5-ext/test/string/#/uncapitalize.js b/node_modules/es5-ext/test/string/#/uncapitalize.js
new file mode 100644
index 00000000..cddd847c
--- /dev/null
+++ b/node_modules/es5-ext/test/string/#/uncapitalize.js
@@ -0,0 +1,10 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t.call("raz"), "raz", "Word");
+ a(t.call("BLA"), "bLA", "Uppercase");
+ a(t.call(""), "", "Empty");
+ a(t.call("a"), "a", "One letter");
+ a(t.call("this is a test"), "this is a test", "Sentence");
+ a(t.call("This is a test"), "this is a test", "Capitalized sentence");
+};
diff --git a/node_modules/es5-ext/test/string/format-method.js b/node_modules/es5-ext/test/string/format-method.js
new file mode 100644
index 00000000..ddb08f53
--- /dev/null
+++ b/node_modules/es5-ext/test/string/format-method.js
@@ -0,0 +1,6 @@
+"use strict";
+
+module.exports = function (t, a) {
+ t = t({ a: "A", aa: "B", ab: "C", b: "D", c: function () { return ++this.a; } });
+ a(t.call({ a: 0 }, " %a%aab%abb%b\\%aa%ab%c%c "), " ABbCbD%aaC12 ");
+};
diff --git a/node_modules/es5-ext/test/string/from-code-point/implement.js b/node_modules/es5-ext/test/string/from-code-point/implement.js
new file mode 100644
index 00000000..00b813d8
--- /dev/null
+++ b/node_modules/es5-ext/test/string/from-code-point/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../string/from-code-point/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/from-code-point/index.js b/node_modules/es5-ext/test/string/from-code-point/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/from-code-point/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/from-code-point/is-implemented.js b/node_modules/es5-ext/test/string/from-code-point/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/from-code-point/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/from-code-point/shim.js b/node_modules/es5-ext/test/string/from-code-point/shim.js
new file mode 100644
index 00000000..1bf22adf
--- /dev/null
+++ b/node_modules/es5-ext/test/string/from-code-point/shim.js
@@ -0,0 +1,47 @@
+// Taken from: https://github.com/mathiasbynens/String.fromCodePoint/blob/master
+// /tests/tests.js
+
+"use strict";
+
+var pow = Math.pow;
+
+module.exports = function (t, a) {
+ var counter, result;
+
+ a(t.length, 1, "Length");
+ a(String.propertyIsEnumerable("fromCodePoint"), false, "Not enumerable");
+
+ a(t(""), "\0", "Empty string");
+ a(t(), "", "No arguments");
+ a(t(-0), "\0", "-0");
+ a(t(0), "\0", "0");
+ a(t(0x1d306), "\uD834\uDF06", "Unicode");
+ a(t(0x1d306, 0x61, 0x1d307), "\uD834\uDF06a\uD834\uDF07", "Complex unicode");
+ a(t(0x61, 0x62, 0x1d307), "ab\uD834\uDF07", "Complex");
+ a(t(false), "\0", "false");
+ a(t(null), "\0", "null");
+
+ a.throws(function () { t("_"); }, RangeError, "_");
+ a.throws(function () { t(Infinity); }, RangeError, "Infinity");
+ a.throws(function () { t(-Infinity); }, RangeError, "-Infinity");
+ a.throws(function () { t(-1); }, RangeError, "-1");
+ a.throws(function () { t(0x10ffff + 1); }, RangeError, "Range error #1");
+ a.throws(function () { t(3.14); }, RangeError, "Range error #2");
+ a.throws(function () { t(3e-2); }, RangeError, "Range error #3");
+ a.throws(function () { t(-Infinity); }, RangeError, "Range error #4");
+ a.throws(function () { t(Number(Infinity)); }, RangeError, "Range error #5");
+ a.throws(function () { t(NaN); }, RangeError, "Range error #6");
+ a.throws(function () { t(undefined); }, RangeError, "Range error #7");
+ a.throws(function () { t({}); }, RangeError, "Range error #8");
+ a.throws(function () { t(/re/); }, RangeError, "Range error #9");
+
+ counter = (pow(2, 15) * 3) / 2;
+ result = [];
+ while (--counter >= 0) result.push(0); // One code unit per symbol
+ t.apply(null, result); // Must not throw
+
+ counter = (pow(2, 15) * 3) / 2;
+ result = [];
+ while (--counter >= 0) result.push(0xffff + 1); // Two code units per symbol
+ t.apply(null, result); // Must not throw
+};
diff --git a/node_modules/es5-ext/test/string/is-string.js b/node_modules/es5-ext/test/string/is-string.js
new file mode 100644
index 00000000..0e831221
--- /dev/null
+++ b/node_modules/es5-ext/test/string/is-string.js
@@ -0,0 +1,11 @@
+"use strict";
+
+module.exports = function (t, a) {
+ a(t(null), false, "Null");
+ a(t(""), true, "Empty string");
+ a(t(12), false, "Number");
+ a(t(false), false, "Boolean");
+ a(t(new Date()), false, "Date");
+ a(t(new String("raz")), true, "String object");
+ a(t("asdfaf"), true, "String");
+};
diff --git a/node_modules/es5-ext/test/string/random-uniq.js b/node_modules/es5-ext/test/string/random-uniq.js
new file mode 100644
index 00000000..3b6d889a
--- /dev/null
+++ b/node_modules/es5-ext/test/string/random-uniq.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/);
+
+module.exports = function (t, a) {
+ a(typeof t(), "string");
+ a.ok(t().length > 7);
+ a.not(t(), t());
+ a.ok(isValidFormat(t()));
+ a.ok(isValidFormat(t()));
+ a.ok(isValidFormat(t()));
+ a.ok(isValidFormat(t()));
+ a.ok(isValidFormat(t()));
+};
diff --git a/node_modules/es5-ext/test/string/random.js b/node_modules/es5-ext/test/string/random.js
new file mode 100644
index 00000000..3fa44ca5
--- /dev/null
+++ b/node_modules/es5-ext/test/string/random.js
@@ -0,0 +1,13 @@
+"use strict";
+
+var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/);
+
+module.exports = function (t, a) {
+ a(typeof t(), "string");
+ a.ok(t().length > 7);
+ a.not(t({ isUnique: true }), t({ isUnique: true }));
+ a.ok(isValidFormat(t()));
+ a(t({ length: 1 }).length, 1);
+ a(t({ length: 100 }).length, 100);
+ a(t({ length: 0 }), "");
+};
diff --git a/node_modules/es5-ext/test/string/raw/implement.js b/node_modules/es5-ext/test/string/raw/implement.js
new file mode 100644
index 00000000..f865e004
--- /dev/null
+++ b/node_modules/es5-ext/test/string/raw/implement.js
@@ -0,0 +1,5 @@
+"use strict";
+
+var isImplemented = require("../../../string/raw/is-implemented");
+
+module.exports = function (a) { a(isImplemented(), true); };
diff --git a/node_modules/es5-ext/test/string/raw/index.js b/node_modules/es5-ext/test/string/raw/index.js
new file mode 100644
index 00000000..10bb8f65
--- /dev/null
+++ b/node_modules/es5-ext/test/string/raw/index.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = require("./shim");
diff --git a/node_modules/es5-ext/test/string/raw/is-implemented.js b/node_modules/es5-ext/test/string/raw/is-implemented.js
new file mode 100644
index 00000000..566411ce
--- /dev/null
+++ b/node_modules/es5-ext/test/string/raw/is-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t(), "boolean"); };
diff --git a/node_modules/es5-ext/test/string/raw/shim.js b/node_modules/es5-ext/test/string/raw/shim.js
new file mode 100644
index 00000000..f61974f0
--- /dev/null
+++ b/node_modules/es5-ext/test/string/raw/shim.js
@@ -0,0 +1,14 @@
+// Partially taken from:
+// https://github.com/paulmillr/es6-shim/blob/master/test/string.js
+
+"use strict";
+
+module.exports = function (t, a) {
+ var callSite = [];
+
+ callSite.raw = ["The total is ", " ($", " with tax)"];
+ a(t(callSite, "{total}", "{total * 1.01}"), "The total is {total} (${total * 1.01} with tax)");
+
+ callSite.raw = [];
+ a(t(callSite, "{total}", "{total * 1.01}"), "");
+};
diff --git a/node_modules/es5-ext/test/to-short-string-representation.js b/node_modules/es5-ext/test/to-short-string-representation.js
new file mode 100644
index 00000000..cac8d870
--- /dev/null
+++ b/node_modules/es5-ext/test/to-short-string-representation.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var repeat = require("../string/#/repeat");
+
+module.exports = function (t, a) {
+ a(t(), "undefined");
+ a(t(null), "null");
+ a(t(10), "10");
+ a(t("str"), "str");
+ a(t({ toString: function () { return "miszka"; } }), "miszka");
+ // eslint-disable-next-line symbol-description
+ if (typeof Symbol === "function") a(t(Symbol()), "Symbol()");
+ a(t(Object.create(null)), "");
+ a(t(repeat.call("a", 300)), repeat.call("a", 99) + "…");
+ a(t("mar\ntoo\nfar"), "mar\\ntoo\\nfar");
+};
diff --git a/node_modules/es5-ext/to-short-string-representation.js b/node_modules/es5-ext/to-short-string-representation.js
new file mode 100644
index 00000000..5aede538
--- /dev/null
+++ b/node_modules/es5-ext/to-short-string-representation.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var safeToString = require("./safe-to-string");
+
+var reNewLine = /[\n\r\u2028\u2029]/g;
+
+module.exports = function (value) {
+ var string = safeToString(value);
+ // Trim if too long
+ if (string.length > 100) string = string.slice(0, 99) + "…";
+ // Replace eventual new lines
+ string = string.replace(reNewLine, function (char) {
+ return JSON.stringify(char).slice(1, -1);
+ });
+ return string;
+};
diff --git a/node_modules/es6-iterator/#/chain.js b/node_modules/es6-iterator/#/chain.js
new file mode 100644
index 00000000..190a3464
--- /dev/null
+++ b/node_modules/es6-iterator/#/chain.js
@@ -0,0 +1,40 @@
+"use strict";
+
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , d = require("d")
+ , Iterator = require("../")
+ , validIterable = require("../valid-iterable")
+
+ , push = Array.prototype.push
+ , defineProperties = Object.defineProperties
+ , IteratorChain;
+
+IteratorChain = function (iterators) {
+ defineProperties(this, {
+ __iterators__: d("", iterators),
+ __current__: d("w", iterators.shift())
+ });
+};
+if (setPrototypeOf) setPrototypeOf(IteratorChain, Iterator);
+
+IteratorChain.prototype = Object.create(Iterator.prototype, {
+ constructor: d(IteratorChain),
+ next: d(function () {
+ var result;
+ if (!this.__current__) return { done: true, value: undefined };
+ result = this.__current__.next();
+ while (result.done) {
+ this.__current__ = this.__iterators__.shift();
+ if (!this.__current__) return { done: true, value: undefined };
+ result = this.__current__.next();
+ }
+ return result;
+ })
+});
+
+module.exports = function () {
+ var iterators = [this];
+ push.apply(iterators, arguments);
+ iterators.forEach(validIterable);
+ return new IteratorChain(iterators);
+};
diff --git a/node_modules/es6-iterator/.editorconfig b/node_modules/es6-iterator/.editorconfig
new file mode 100644
index 00000000..c24a6cd1
--- /dev/null
+++ b/node_modules/es6-iterator/.editorconfig
@@ -0,0 +1,14 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+
+[{*.json,*.yml}]
+indent_style = space
+indent_size = 2
diff --git a/node_modules/es6-iterator/.npmignore b/node_modules/es6-iterator/.npmignore
new file mode 100644
index 00000000..a91db655
--- /dev/null
+++ b/node_modules/es6-iterator/.npmignore
@@ -0,0 +1,12 @@
+.DS_Store
+Thumbs.db
+/.idea
+/.vscode
+npm-debug.log
+/wallaby.js
+/node_modules
+/.travis.yml
+/.gitignore
+/.circle.yml
+/.circleci
+/.appveyor.yml
diff --git a/node_modules/es6-iterator/CHANGELOG.md b/node_modules/es6-iterator/CHANGELOG.md
new file mode 100644
index 00000000..37eb16ab
--- /dev/null
+++ b/node_modules/es6-iterator/CHANGELOG.md
@@ -0,0 +1,27 @@
+# Change Log
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+
+## [2.0.3](https://github.com/medikoo/es6-iterator/compare/v2.0.2...v2.0.3) (2017-10-17)
+
+
+### Bug Fixes
+
+* configurability of toStringTag ([b99f692](https://github.com/medikoo/es6-iterator/commit/b99f692))
+
+
+
+
+## [2.0.2](https://github.com/medikoo/es6-iterator/compare/v2.0.1...v2.0.2) (2017-10-17)
+
+
+### Bug Fixes
+
+* constructor exposure ([dbc0c51](https://github.com/medikoo/es6-iterator/commit/dbc0c51))
+* do not allow non constructor calls ([1f2f800](https://github.com/medikoo/es6-iterator/commit/1f2f800))
+* toString and toStringTag symbol definitions. ([2d17786](https://github.com/medikoo/es6-iterator/commit/2d17786)), closes [#6](https://github.com/medikoo/es6-iterator/issues/6)
+
+## Changelog for previous versions
+
+See `CHANGES` file
diff --git a/node_modules/es6-iterator/CHANGES b/node_modules/es6-iterator/CHANGES
new file mode 100644
index 00000000..83095f7c
--- /dev/null
+++ b/node_modules/es6-iterator/CHANGES
@@ -0,0 +1,42 @@
+For recent changelog see CHANGELOG.md
+
+-----
+
+v2.0.1 -- 2017.03.15
+* Update dependencies
+
+v2.0.0 -- 2015.10.02
+* Use es6-symbol at v3
+
+v1.0.0 -- 2015.06.23
+* Implement support for arguments object
+* Drop support for v0.8 node ('^' in package.json dependencies)
+
+v0.1.3 -- 2015.02.02
+* Update dependencies
+* Fix spelling of LICENSE
+
+v0.1.2 -- 2014.11.19
+* Optimise internal `_next` to not verify internal's list length at all times
+ (#2 thanks @RReverser)
+* Fix documentation examples
+* Configure lint scripts
+
+v0.1.1 -- 2014.04.29
+* Fix es6-symbol dependency version
+
+v0.1.0 -- 2014.04.29
+* Assure strictly npm hosted dependencies
+* Remove sparse arrays dedicated handling (as per spec)
+* Add: isIterable, validIterable and chain (method)
+* Remove toArray, it's addressed by Array.from (polyfil can be found in es5-ext/array/from)
+* Add break possiblity to 'forOf' via 'doBreak' function argument
+* Provide dedicated iterator for array-likes (ArrayIterator) and for strings (StringIterator)
+* Provide @@toStringTag symbol
+* When available rely on @@iterator symbol
+* Remove 32bit integer maximum list length restriction
+* Improve Iterator internals
+* Update to use latest version of dependencies
+
+v0.0.0 -- 2013.10.12
+Initial (dev version)
diff --git a/node_modules/es6-iterator/LICENSE b/node_modules/es6-iterator/LICENSE
new file mode 100644
index 00000000..d7c36d55
--- /dev/null
+++ b/node_modules/es6-iterator/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) 2013-2017 Mariusz Nowak (www.medikoo.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/es6-iterator/README.md b/node_modules/es6-iterator/README.md
new file mode 100644
index 00000000..288373da
--- /dev/null
+++ b/node_modules/es6-iterator/README.md
@@ -0,0 +1,148 @@
+# es6-iterator
+## ECMAScript 6 Iterator interface
+
+### Installation
+
+ $ npm install es6-iterator
+
+To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
+
+## API
+
+### Constructors
+
+#### Iterator(list) _(es6-iterator)_
+
+Abstract Iterator interface. Meant for extensions and not to be used on its own.
+
+Accepts any _list_ object (technically object with numeric _length_ property).
+
+_Mind it doesn't iterate strings properly, for that use dedicated [StringIterator](#string-iterator)_
+
+```javascript
+var Iterator = require('es6-iterator')
+var iterator = new Iterator([1, 2, 3]);
+
+iterator.next(); // { value: 1, done: false }
+iterator.next(); // { value: 2, done: false }
+iterator.next(); // { value: 3, done: false }
+iterator.next(); // { value: undefined, done: true }
+```
+
+
+#### ArrayIterator(arrayLike[, kind]) _(es6-iterator/array)_
+
+Dedicated for arrays and array-likes. Supports three iteration kinds:
+* __value__ _(default)_ - Iterates values
+* __key__ - Iterates indexes
+* __key+value__ - Iterates keys and indexes, each iteration value is in _[key, value]_ form.
+
+
+```javascript
+var ArrayIterator = require('es6-iterator/array')
+var iterator = new ArrayIterator([1, 2, 3], 'key+value');
+
+iterator.next(); // { value: [0, 1], done: false }
+iterator.next(); // { value: [1, 2], done: false }
+iterator.next(); // { value: [2, 3], done: false }
+iterator.next(); // { value: undefined, done: true }
+```
+
+May also be used for _arguments_ objects:
+
+```javascript
+(function () {
+ var iterator = new ArrayIterator(arguments);
+
+ iterator.next(); // { value: 1, done: false }
+ iterator.next(); // { value: 2, done: false }
+ iterator.next(); // { value: 3, done: false }
+ iterator.next(); // { value: undefined, done: true }
+}(1, 2, 3));
+```
+
+#### StringIterator(str) _(es6-iterator/string)_
+
+Assures proper iteration over unicode symbols.
+See: http://mathiasbynens.be/notes/javascript-unicode
+
+```javascript
+var StringIterator = require('es6-iterator/string');
+var iterator = new StringIterator('f🙈o🙉o🙊');
+
+iterator.next(); // { value: 'f', done: false }
+iterator.next(); // { value: '🙈', done: false }
+iterator.next(); // { value: 'o', done: false }
+iterator.next(); // { value: '🙉', done: false }
+iterator.next(); // { value: 'o', done: false }
+iterator.next(); // { value: '🙊', done: false }
+iterator.next(); // { value: undefined, done: true }
+```
+
+### Function utilities
+
+#### forOf(iterable, callback[, thisArg]) _(es6-iterator/for-of)_
+
+Polyfill for ECMAScript 6 [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) statement.
+
+```
+var forOf = require('es6-iterator/for-of');
+var result = [];
+
+forOf('🙈🙉🙊', function (monkey) { result.push(monkey); });
+console.log(result); // ['🙈', '🙉', '🙊'];
+```
+
+Optionally you can break iteration at any point:
+
+```javascript
+var result = [];
+
+forOf([1,2,3,4]', function (val, doBreak) {
+ result.push(monkey);
+ if (val >= 3) doBreak();
+});
+console.log(result); // [1, 2, 3];
+```
+
+#### get(obj) _(es6-iterator/get)_
+
+Return iterator for any iterable object.
+
+```javascript
+var getIterator = require('es6-iterator/get');
+var iterator = get([1,2,3]);
+
+iterator.next(); // { value: 1, done: false }
+iterator.next(); // { value: 2, done: false }
+iterator.next(); // { value: 3, done: false }
+iterator.next(); // { value: undefined, done: true }
+```
+
+#### isIterable(obj) _(es6-iterator/is-iterable)_
+
+Whether _obj_ is iterable
+
+```javascript
+var isIterable = require('es6-iterator/is-iterable');
+
+isIterable(null); // false
+isIterable(true); // false
+isIterable('str'); // true
+isIterable(['a', 'r', 'r']); // true
+isIterable(new ArrayIterator([])); // true
+```
+
+#### validIterable(obj) _(es6-iterator/valid-iterable)_
+
+If _obj_ is an iterable it is returned. Otherwise _TypeError_ is thrown.
+
+### Method extensions
+
+#### iterator.chain(iterator1[, …iteratorn]) _(es6-iterator/#/chain)_
+
+Chain multiple iterators into one.
+
+### Tests [](https://travis-ci.org/medikoo/es6-iterator)
+
+ $ npm test
diff --git a/node_modules/es6-iterator/appveyor.yml b/node_modules/es6-iterator/appveyor.yml
new file mode 100644
index 00000000..942ab827
--- /dev/null
+++ b/node_modules/es6-iterator/appveyor.yml
@@ -0,0 +1,26 @@
+# Test against the latest version of this Node.js version
+environment:
+ matrix:
+ # node.js
+ - nodejs_version: "0.12"
+ - nodejs_version: "4"
+ - nodejs_version: "6"
+ - nodejs_version: "8"
+
+# Install scripts. (runs after repo cloning)
+install:
+ # Get the latest stable version of Node.js or io.js
+ - ps: Install-Product node $env:nodejs_version
+ # install modules
+ - npm install
+
+# Post-install test scripts.
+test_script:
+ # Output useful info for debugging.
+ - node --version
+ - npm --version
+ # run tests
+ - npm test
+
+# Don't actually build.
+build: off
diff --git a/node_modules/es6-iterator/array.js b/node_modules/es6-iterator/array.js
new file mode 100644
index 00000000..d7a46a48
--- /dev/null
+++ b/node_modules/es6-iterator/array.js
@@ -0,0 +1,32 @@
+"use strict";
+
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , contains = require("es5-ext/string/#/contains")
+ , d = require("d")
+ , Symbol = require("es6-symbol")
+ , Iterator = require("./");
+
+var defineProperty = Object.defineProperty, ArrayIterator;
+
+ArrayIterator = module.exports = function (arr, kind) {
+ if (!(this instanceof ArrayIterator)) throw new TypeError("Constructor requires 'new'");
+ Iterator.call(this, arr);
+ if (!kind) kind = "value";
+ else if (contains.call(kind, "key+value")) kind = "key+value";
+ else if (contains.call(kind, "key")) kind = "key";
+ else kind = "value";
+ defineProperty(this, "__kind__", d("", kind));
+};
+if (setPrototypeOf) setPrototypeOf(ArrayIterator, Iterator);
+
+// Internal %ArrayIteratorPrototype% doesn't expose its constructor
+delete ArrayIterator.prototype.constructor;
+
+ArrayIterator.prototype = Object.create(Iterator.prototype, {
+ _resolve: d(function (i) {
+ if (this.__kind__ === "value") return this.__list__[i];
+ if (this.__kind__ === "key+value") return [i, this.__list__[i]];
+ return i;
+ })
+});
+defineProperty(ArrayIterator.prototype, Symbol.toStringTag, d("c", "Array Iterator"));
diff --git a/node_modules/es6-iterator/for-of.js b/node_modules/es6-iterator/for-of.js
new file mode 100644
index 00000000..5d15c349
--- /dev/null
+++ b/node_modules/es6-iterator/for-of.js
@@ -0,0 +1,47 @@
+"use strict";
+
+var isArguments = require("es5-ext/function/is-arguments")
+ , callable = require("es5-ext/object/valid-callable")
+ , isString = require("es5-ext/string/is-string")
+ , get = require("./get");
+
+var isArray = Array.isArray, call = Function.prototype.call, some = Array.prototype.some;
+
+module.exports = function (iterable, cb /*, thisArg*/) {
+ var mode, thisArg = arguments[2], result, doBreak, broken, i, length, char, code;
+ if (isArray(iterable) || isArguments(iterable)) mode = "array";
+ else if (isString(iterable)) mode = "string";
+ else iterable = get(iterable);
+
+ callable(cb);
+ doBreak = function () {
+ broken = true;
+ };
+ if (mode === "array") {
+ some.call(iterable, function (value) {
+ call.call(cb, thisArg, value, doBreak);
+ return broken;
+ });
+ return;
+ }
+ if (mode === "string") {
+ length = iterable.length;
+ for (i = 0; i < length; ++i) {
+ char = iterable[i];
+ if (i + 1 < length) {
+ code = char.charCodeAt(0);
+ if (code >= 0xd800 && code <= 0xdbff) char += iterable[++i];
+ }
+ call.call(cb, thisArg, char, doBreak);
+ if (broken) break;
+ }
+ return;
+ }
+ result = iterable.next();
+
+ while (!result.done) {
+ call.call(cb, thisArg, result.value, doBreak);
+ if (broken) return;
+ result = iterable.next();
+ }
+};
diff --git a/node_modules/es6-iterator/get.js b/node_modules/es6-iterator/get.js
new file mode 100644
index 00000000..d36c9e24
--- /dev/null
+++ b/node_modules/es6-iterator/get.js
@@ -0,0 +1,15 @@
+"use strict";
+
+var isArguments = require("es5-ext/function/is-arguments")
+ , isString = require("es5-ext/string/is-string")
+ , ArrayIterator = require("./array")
+ , StringIterator = require("./string")
+ , iterable = require("./valid-iterable")
+ , iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (obj) {
+ if (typeof iterable(obj)[iteratorSymbol] === "function") return obj[iteratorSymbol]();
+ if (isArguments(obj)) return new ArrayIterator(obj);
+ if (isString(obj)) return new StringIterator(obj);
+ return new ArrayIterator(obj);
+};
diff --git a/node_modules/es6-iterator/index.js b/node_modules/es6-iterator/index.js
new file mode 100644
index 00000000..790475fd
--- /dev/null
+++ b/node_modules/es6-iterator/index.js
@@ -0,0 +1,106 @@
+"use strict";
+
+var clear = require("es5-ext/array/#/clear")
+ , assign = require("es5-ext/object/assign")
+ , callable = require("es5-ext/object/valid-callable")
+ , value = require("es5-ext/object/valid-value")
+ , d = require("d")
+ , autoBind = require("d/auto-bind")
+ , Symbol = require("es6-symbol");
+
+var defineProperty = Object.defineProperty, defineProperties = Object.defineProperties, Iterator;
+
+module.exports = Iterator = function (list, context) {
+ if (!(this instanceof Iterator)) throw new TypeError("Constructor requires 'new'");
+ defineProperties(this, {
+ __list__: d("w", value(list)),
+ __context__: d("w", context),
+ __nextIndex__: d("w", 0)
+ });
+ if (!context) return;
+ callable(context.on);
+ context.on("_add", this._onAdd);
+ context.on("_delete", this._onDelete);
+ context.on("_clear", this._onClear);
+};
+
+// Internal %IteratorPrototype% doesn't expose its constructor
+delete Iterator.prototype.constructor;
+
+defineProperties(
+ Iterator.prototype,
+ assign(
+ {
+ _next: d(function () {
+ var i;
+ if (!this.__list__) return undefined;
+ if (this.__redo__) {
+ i = this.__redo__.shift();
+ if (i !== undefined) return i;
+ }
+ if (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++;
+ this._unBind();
+ return undefined;
+ }),
+ next: d(function () {
+ return this._createResult(this._next());
+ }),
+ _createResult: d(function (i) {
+ if (i === undefined) return { done: true, value: undefined };
+ return { done: false, value: this._resolve(i) };
+ }),
+ _resolve: d(function (i) {
+ return this.__list__[i];
+ }),
+ _unBind: d(function () {
+ this.__list__ = null;
+ delete this.__redo__;
+ if (!this.__context__) return;
+ this.__context__.off("_add", this._onAdd);
+ this.__context__.off("_delete", this._onDelete);
+ this.__context__.off("_clear", this._onClear);
+ this.__context__ = null;
+ }),
+ toString: d(function () {
+ return "[object " + (this[Symbol.toStringTag] || "Object") + "]";
+ })
+ },
+ autoBind({
+ _onAdd: d(function (index) {
+ if (index >= this.__nextIndex__) return;
+ ++this.__nextIndex__;
+ if (!this.__redo__) {
+ defineProperty(this, "__redo__", d("c", [index]));
+ return;
+ }
+ this.__redo__.forEach(function (redo, i) {
+ if (redo >= index) this.__redo__[i] = ++redo;
+ }, this);
+ this.__redo__.push(index);
+ }),
+ _onDelete: d(function (index) {
+ var i;
+ if (index >= this.__nextIndex__) return;
+ --this.__nextIndex__;
+ if (!this.__redo__) return;
+ i = this.__redo__.indexOf(index);
+ if (i !== -1) this.__redo__.splice(i, 1);
+ this.__redo__.forEach(function (redo, j) {
+ if (redo > index) this.__redo__[j] = --redo;
+ }, this);
+ }),
+ _onClear: d(function () {
+ if (this.__redo__) clear.call(this.__redo__);
+ this.__nextIndex__ = 0;
+ })
+ })
+ )
+);
+
+defineProperty(
+ Iterator.prototype,
+ Symbol.iterator,
+ d(function () {
+ return this;
+ })
+);
diff --git a/node_modules/es6-iterator/is-iterable.js b/node_modules/es6-iterator/is-iterable.js
new file mode 100644
index 00000000..cda7dfeb
--- /dev/null
+++ b/node_modules/es6-iterator/is-iterable.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var isArguments = require("es5-ext/function/is-arguments")
+ , isValue = require("es5-ext/object/is-value")
+ , isString = require("es5-ext/string/is-string");
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , isArray = Array.isArray;
+
+module.exports = function (value) {
+ if (!isValue(value)) return false;
+ if (isArray(value)) return true;
+ if (isString(value)) return true;
+ if (isArguments(value)) return true;
+ return typeof value[iteratorSymbol] === "function";
+};
diff --git a/node_modules/es6-iterator/package.json b/node_modules/es6-iterator/package.json
new file mode 100644
index 00000000..7e253b97
--- /dev/null
+++ b/node_modules/es6-iterator/package.json
@@ -0,0 +1,74 @@
+{
+ "_from": "es6-iterator@~2.0.3",
+ "_id": "es6-iterator@2.0.3",
+ "_inBundle": false,
+ "_integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=",
+ "_location": "/es6-iterator",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "es6-iterator@~2.0.3",
+ "name": "es6-iterator",
+ "escapedName": "es6-iterator",
+ "rawSpec": "~2.0.3",
+ "saveSpec": null,
+ "fetchSpec": "~2.0.3"
+ },
+ "_requiredBy": [
+ "/es5-ext"
+ ],
+ "_resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz",
+ "_shasum": "a7de889141a05a94b0854403b2d0a0fbfa98f3b7",
+ "_spec": "es6-iterator@~2.0.3",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/es5-ext",
+ "author": {
+ "name": "Mariusz Nowak",
+ "email": "medyk@medikoo.com",
+ "url": "http://www.medikoo.com/"
+ },
+ "bugs": {
+ "url": "https://github.com/medikoo/es6-iterator/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "d": "1",
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
+ },
+ "deprecated": false,
+ "description": "Iterator abstraction based on ES6 specification",
+ "devDependencies": {
+ "eslint": "^4.9",
+ "eslint-config-medikoo-es5": "^1.4.4",
+ "event-emitter": "^0.3.5",
+ "tad": "^0.2.7"
+ },
+ "eslintConfig": {
+ "extends": "medikoo-es5",
+ "root": true,
+ "rules": {
+ "no-extend-native": "off"
+ }
+ },
+ "homepage": "https://github.com/medikoo/es6-iterator#readme",
+ "keywords": [
+ "iterator",
+ "array",
+ "list",
+ "set",
+ "map",
+ "generator"
+ ],
+ "license": "MIT",
+ "name": "es6-iterator",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/medikoo/es6-iterator.git"
+ },
+ "scripts": {
+ "lint": "eslint --ignore-path=.gitignore .",
+ "test": "node ./node_modules/tad/bin/tad"
+ },
+ "version": "2.0.3"
+}
diff --git a/node_modules/es6-iterator/string.js b/node_modules/es6-iterator/string.js
new file mode 100644
index 00000000..48882252
--- /dev/null
+++ b/node_modules/es6-iterator/string.js
@@ -0,0 +1,39 @@
+// Thanks @mathiasbynens
+// http://mathiasbynens.be/notes/javascript-unicode#iterating-over-symbols
+
+"use strict";
+
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , d = require("d")
+ , Symbol = require("es6-symbol")
+ , Iterator = require("./");
+
+var defineProperty = Object.defineProperty, StringIterator;
+
+StringIterator = module.exports = function (str) {
+ if (!(this instanceof StringIterator)) throw new TypeError("Constructor requires 'new'");
+ str = String(str);
+ Iterator.call(this, str);
+ defineProperty(this, "__length__", d("", str.length));
+};
+if (setPrototypeOf) setPrototypeOf(StringIterator, Iterator);
+
+// Internal %ArrayIteratorPrototype% doesn't expose its constructor
+delete StringIterator.prototype.constructor;
+
+StringIterator.prototype = Object.create(Iterator.prototype, {
+ _next: d(function () {
+ if (!this.__list__) return undefined;
+ if (this.__nextIndex__ < this.__length__) return this.__nextIndex__++;
+ this._unBind();
+ return undefined;
+ }),
+ _resolve: d(function (i) {
+ var char = this.__list__[i], code;
+ if (this.__nextIndex__ === this.__length__) return char;
+ code = char.charCodeAt(0);
+ if (code >= 0xd800 && code <= 0xdbff) return char + this.__list__[this.__nextIndex__++];
+ return char;
+ })
+});
+defineProperty(StringIterator.prototype, Symbol.toStringTag, d("c", "String Iterator"));
diff --git a/node_modules/es6-iterator/test/#/chain.js b/node_modules/es6-iterator/test/#/chain.js
new file mode 100644
index 00000000..457356f2
--- /dev/null
+++ b/node_modules/es6-iterator/test/#/chain.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var Iterator = require("../../");
+
+module.exports = function (t, a) {
+ var i1 = new Iterator(["raz", "dwa", "trzy"])
+ , i2 = new Iterator(["cztery", "pięć", "sześć"])
+ , i3 = new Iterator(["siedem", "osiem", "dziewięć"])
+
+ , iterator = t.call(i1, i2, i3);
+
+ a.deep(iterator.next(), { done: false, value: "raz" }, "#1");
+ a.deep(iterator.next(), { done: false, value: "dwa" }, "#2");
+ a.deep(iterator.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(iterator.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(iterator.next(), { done: false, value: "pięć" }, "#5");
+ a.deep(iterator.next(), { done: false, value: "sześć" }, "#6");
+ a.deep(iterator.next(), { done: false, value: "siedem" }, "#7");
+ a.deep(iterator.next(), { done: false, value: "osiem" }, "#8");
+ a.deep(iterator.next(), { done: false, value: "dziewięć" }, "#9");
+ a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
+ a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
+};
diff --git a/node_modules/es6-iterator/test/.eslintrc.json b/node_modules/es6-iterator/test/.eslintrc.json
new file mode 100644
index 00000000..99f0b655
--- /dev/null
+++ b/node_modules/es6-iterator/test/.eslintrc.json
@@ -0,0 +1,5 @@
+{
+ "rules": {
+ "id-length": "off"
+ }
+}
diff --git a/node_modules/es6-iterator/test/array.js b/node_modules/es6-iterator/test/array.js
new file mode 100644
index 00000000..447dfa73
--- /dev/null
+++ b/node_modules/es6-iterator/test/array.js
@@ -0,0 +1,67 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (T) {
+ return {
+ "Values": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
+
+ it = new T(x);
+ a(it[iteratorSymbol](), it, "@@iterator");
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.splice(1, 0, "elo");
+ a.deep(it.next(), { done: false, value: "dwa" }, "Insert");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ x.pop();
+ a.deep(it.next(), { done: false, value: "pięć" }, "#5");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Keys & Values": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
+
+ it = new T(x, "key+value");
+ a(it[iteratorSymbol](), it, "@@iterator");
+ a.deep(it.next(), { done: false, value: [0, "raz"] }, "#1");
+ a.deep(it.next(), { done: false, value: [1, "dwa"] }, "#2");
+ x.splice(1, 0, "elo");
+ a.deep(it.next(), { done: false, value: [2, "dwa"] }, "Insert");
+ a.deep(it.next(), { done: false, value: [3, "trzy"] }, "#3");
+ a.deep(it.next(), { done: false, value: [4, "cztery"] }, "#4");
+ x.pop();
+ a.deep(it.next(), { done: false, value: [5, "pięć"] }, "#5");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Keys": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
+
+ it = new T(x, "key");
+ a(it[iteratorSymbol](), it, "@@iterator");
+ a.deep(it.next(), { done: false, value: 0 }, "#1");
+ a.deep(it.next(), { done: false, value: 1 }, "#2");
+ x.splice(1, 0, "elo");
+ a.deep(it.next(), { done: false, value: 2 }, "Insert");
+ a.deep(it.next(), { done: false, value: 3 }, "#3");
+ a.deep(it.next(), { done: false, value: 4 }, "#4");
+ x.pop();
+ a.deep(it.next(), { done: false, value: 5 }, "#5");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Sparse": function (a) {
+ var x = new Array(6), it;
+
+ x[2] = "raz";
+ x[4] = "dwa";
+ it = new T(x);
+ a.deep(it.next(), { done: false, value: undefined }, "#1");
+ a.deep(it.next(), { done: false, value: undefined }, "#2");
+ a.deep(it.next(), { done: false, value: "raz" }, "#3");
+ a.deep(it.next(), { done: false, value: undefined }, "#4");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#5");
+ a.deep(it.next(), { done: false, value: undefined }, "#6");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ }
+ };
+};
diff --git a/node_modules/es6-iterator/test/for-of.js b/node_modules/es6-iterator/test/for-of.js
new file mode 100644
index 00000000..9b47e979
--- /dev/null
+++ b/node_modules/es6-iterator/test/for-of.js
@@ -0,0 +1,42 @@
+"use strict";
+
+var ArrayIterator = require("../array")
+
+ , slice = Array.prototype.slice;
+
+module.exports = function (t, a) {
+ var i = 0, x = ["raz", "dwa", "trzy"], y = {}, called = 0;
+ t(x, function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#");
+ a(this, y, "Array: context: " + i++ + "#");
+ }, y);
+ i = 0;
+ t((function () {
+ return arguments;
+}("raz", "dwa", "trzy")), function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#");
+ a(this, y, "Arguments: context: " + i++ + "#");
+ }, y);
+ i = 0;
+ t(x = "foo", function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
+ a(this, y, "Regular String: context: " + i++ + "#");
+ }, y);
+ i = 0;
+ x = ["r", "💩", "z"];
+ t("r💩z", function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
+ a(this, y, "Unicode String: context: " + i++ + "#");
+ }, y);
+ i = 0;
+ t(new ArrayIterator(x), function () {
+ a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#");
+ a(this, y, "Iterator: context: " + i++ + "#");
+ }, y);
+
+ t(x = ["raz", "dwa", "trzy"], function (value, doBreak) {
+ ++called;
+ return doBreak();
+ });
+ a(called, 1, "Break");
+};
diff --git a/node_modules/es6-iterator/test/get.js b/node_modules/es6-iterator/test/get.js
new file mode 100644
index 00000000..c5947d3e
--- /dev/null
+++ b/node_modules/es6-iterator/test/get.js
@@ -0,0 +1,27 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
+
+module.exports = function (t, a) {
+ var iterator;
+ a.throws(function () {
+ t();
+}, TypeError, "Null");
+ a.throws(function () {
+ t({});
+}, TypeError, "Plain object");
+ a.throws(function () {
+ t({ length: 0 });
+}, TypeError, "Array-like");
+ iterator = {};
+ iterator[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
+ a(t(iterator) instanceof Iterator, true, "Iterator");
+ a(String(t([])), "[object Array Iterator]", " Array");
+ a(String(t(function () {
+ return arguments;
+}())), "[object Array Iterator]", " Arguments");
+ a(String(t("foo")), "[object String Iterator]", "String");
+};
diff --git a/node_modules/es6-iterator/test/index.js b/node_modules/es6-iterator/test/index.js
new file mode 100644
index 00000000..48982185
--- /dev/null
+++ b/node_modules/es6-iterator/test/index.js
@@ -0,0 +1,99 @@
+"use strict";
+
+var ee = require("event-emitter")
+ , iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (T) {
+ return {
+ "": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć"], it, y, z;
+
+ it = new T(x);
+ a(it[iteratorSymbol](), it, "@@iterator");
+ y = it.next();
+ a.deep(y, { done: false, value: "raz" }, "#1");
+ z = it.next();
+ a.not(y, z, "Recreate result");
+ a.deep(z, { done: false, value: "dwa" }, "#2");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(it.next(), { done: false, value: "pięć" }, "#5");
+ a.deep(y = it.next(), { done: true, value: undefined }, "End");
+ a.not(y, it.next(), "Recreate result on dead");
+ },
+ "Emited": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć"], y, it;
+
+ y = ee();
+ it = new T(x, y);
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ y.emit("_add", x.push("sześć") - 1);
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
+ x.splice(5, 1);
+ y.emit("_delete", 5);
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(it.next(), { done: false, value: "sześć" }, "#5");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Emited #2": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
+
+ y = ee();
+ it = new T(x, y);
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ x.splice(1, 0, "1.25");
+ y.emit("_add", 1);
+ x.splice(0, 1);
+ y.emit("_delete", 0);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
+ a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ x.splice(5, 1);
+ y.emit("_delete", 5);
+ a.deep(it.next(), { done: false, value: "sześć" }, "#5");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Emited: Clear #1": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
+
+ y = ee();
+ it = new T(x, y);
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.length = 0;
+ y.emit("_clear");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ },
+ "Emited: Clear #2": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
+
+ y = ee();
+ it = new T(x, y);
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.length = 0;
+ y.emit("_clear");
+ x.push("foo");
+ x.push("bar");
+ a.deep(it.next(), { done: false, value: "foo" }, "#3");
+ a.deep(it.next(), { done: false, value: "bar" }, "#4");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ x.splice(1, 0, "1.25");
+ y.emit("_add", 1);
+ x.splice(0, 1);
+ y.emit("_delete", 0);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
+ a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+ }
+ };
+};
diff --git a/node_modules/es6-iterator/test/is-iterable.js b/node_modules/es6-iterator/test/is-iterable.js
new file mode 100644
index 00000000..5787351a
--- /dev/null
+++ b/node_modules/es6-iterator/test/is-iterable.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
+
+module.exports = function (t, a) {
+ var iterator;
+ a(t(), false, "Undefined");
+ a(t(123), false, "Number");
+ a(t({}), false, "Plain object");
+ a(t({ length: 0 }), false, "Array-like");
+ iterator = {};
+ iterator[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
+ a(t(iterator), true, "Iterator");
+ a(t([]), true, "Array");
+ a(t("foo"), true, "String");
+ a(t(""), true, "Empty string");
+ a(t(function () {
+ return arguments;
+}()), true, "Arguments");
+};
diff --git a/node_modules/es6-iterator/test/string.js b/node_modules/es6-iterator/test/string.js
new file mode 100644
index 00000000..3f2a5b67
--- /dev/null
+++ b/node_modules/es6-iterator/test/string.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator;
+
+module.exports = function (T, a) {
+ var it = new T("foobar");
+
+ a(it[iteratorSymbol](), it, "@@iterator");
+ a.deep(it.next(), { done: false, value: "f" }, "#1");
+ a.deep(it.next(), { done: false, value: "o" }, "#2");
+ a.deep(it.next(), { done: false, value: "o" }, "#3");
+ a.deep(it.next(), { done: false, value: "b" }, "#4");
+ a.deep(it.next(), { done: false, value: "a" }, "#5");
+ a.deep(it.next(), { done: false, value: "r" }, "#6");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+
+ a.h1("Outside of BMP");
+ it = new T("r💩z");
+ a.deep(it.next(), { done: false, value: "r" }, "#1");
+ a.deep(it.next(), { done: false, value: "💩" }, "#2");
+ a.deep(it.next(), { done: false, value: "z" }, "#3");
+ a.deep(it.next(), { done: true, value: undefined }, "End");
+};
diff --git a/node_modules/es6-iterator/test/valid-iterable.js b/node_modules/es6-iterator/test/valid-iterable.js
new file mode 100644
index 00000000..b8b2a8a6
--- /dev/null
+++ b/node_modules/es6-iterator/test/valid-iterable.js
@@ -0,0 +1,28 @@
+"use strict";
+
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
+
+module.exports = function (t, a) {
+ var obj;
+ a.throws(function () {
+ t();
+}, TypeError, "Undefined");
+ a.throws(function () {
+ t({});
+}, TypeError, "Plain object");
+ a.throws(function () {
+ t({ length: 0 });
+}, TypeError, "Array-like");
+ obj = {};
+ obj[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
+ a(t(obj), obj, "Iterator");
+ obj = [];
+ a(t(obj), obj, "Array");
+ obj = (function () {
+ return arguments;
+}());
+ a(t(obj), obj, "Arguments");
+};
diff --git a/node_modules/es6-iterator/valid-iterable.js b/node_modules/es6-iterator/valid-iterable.js
new file mode 100644
index 00000000..8c6e0715
--- /dev/null
+++ b/node_modules/es6-iterator/valid-iterable.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isIterable = require("./is-iterable");
+
+module.exports = function (value) {
+ if (!isIterable(value)) throw new TypeError(value + " is not iterable");
+ return value;
+};
diff --git a/node_modules/es6-symbol/.editorconfig b/node_modules/es6-symbol/.editorconfig
new file mode 100755
index 00000000..bd6d81ee
--- /dev/null
+++ b/node_modules/es6-symbol/.editorconfig
@@ -0,0 +1,16 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+[*]
+charset = utf-8
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+trim_trailing_whitespace = true
+
+[*.md]
+indent_size = 2
+indent_style = space
+trim_trailing_whitespace = false
diff --git a/node_modules/es6-symbol/.github/FUNDING.yml b/node_modules/es6-symbol/.github/FUNDING.yml
new file mode 100644
index 00000000..81c96d72
--- /dev/null
+++ b/node_modules/es6-symbol/.github/FUNDING.yml
@@ -0,0 +1 @@
+tidelift: "npm/es6-symbol"
diff --git a/node_modules/es6-symbol/.testignore b/node_modules/es6-symbol/.testignore
new file mode 100644
index 00000000..b5b5cd18
--- /dev/null
+++ b/node_modules/es6-symbol/.testignore
@@ -0,0 +1 @@
+/lib/private
diff --git a/node_modules/es6-symbol/CHANGELOG.md b/node_modules/es6-symbol/CHANGELOG.md
new file mode 100644
index 00000000..60cf2b79
--- /dev/null
+++ b/node_modules/es6-symbol/CHANGELOG.md
@@ -0,0 +1,16 @@
+# Changelog
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+### [3.1.3](https://github.com/medikoo/es6-symbol/compare/v3.1.2...v3.1.3) (2019-10-29)
+
+### [3.1.2](https://github.com/medikoo/es6-symbol/compare/v3.1.1...v3.1.2) (2019-09-04)
+
+- Access `Symbol` from a global object. Makes implementation more bulletproof, as it's safe against shadowing the `Symbol` variable e.g. in script scope, or as it's practiced by some bundlers as Webpack (thanks [@cyborgx37](https://github.com/medikoo/es6-symbol/pull/30))
+- Switch license from MIT to ISC
+- Switch linter to ESLint
+- Configure Prettier
+
+## Changelog for previous versions
+
+See `CHANGES` file
diff --git a/node_modules/es6-symbol/CHANGES b/node_modules/es6-symbol/CHANGES
new file mode 100644
index 00000000..ef0cbdaf
--- /dev/null
+++ b/node_modules/es6-symbol/CHANGES
@@ -0,0 +1,61 @@
+For recent changelog see CHANGELOG.md
+
+-----
+
+v3.1.1 -- 2017.03.15
+* Improve documentation
+* Improve error messages
+* Update dependencies
+
+v3.1.0 -- 2016.06.03
+* Fix internals of symbol detection
+* Ensure Symbol.prototype[Symbol.toPrimitive] in all cases returns primitive value
+ (fixes Node v6 support)
+* Create native symbols whenver possible
+
+v3.0.2 -- 2015.12.12
+* Fix definition flow, so uneven state of Symbol implementation doesn't crash initialization of
+ polyfill. See #13
+
+v3.0.1 -- 2015.10.22
+* Workaround for IE11 bug (reported in #12)
+
+v3.0.0 -- 2015.10.02
+* Reuse native symbols (e.g. iterator, toStringTag etc.) in a polyfill if they're available
+ Otherwise polyfill symbols may not be recognized by other functions
+* Improve documentation
+
+v2.0.1 -- 2015.01.28
+* Fix Symbol.prototype[Symbol.isPrimitive] implementation
+* Improve validation within Symbol.prototype.toString and
+ Symbol.prototype.valueOf
+
+v2.0.0 -- 2015.01.28
+* Update up to changes in specification:
+ * Implement `for` and `keyFor`
+ * Remove `Symbol.create` and `Symbol.isRegExp`
+ * Add `Symbol.match`, `Symbol.replace`, `Symbol.search`, `Symbol.species` and
+ `Symbol.split`
+* Rename `validSymbol` to `validateSymbol`
+* Improve documentation
+* Remove dead test modules
+
+v1.0.0 -- 2015.01.26
+* Fix enumerability for symbol properties set normally (e.g. obj[symbol] = value)
+* Introduce initialization via hidden constructor
+* Fix isSymbol handling of polyfill values when native Symbol is present
+* Fix spelling of LICENSE
+* Configure lint scripts
+
+v0.1.1 -- 2014.10.07
+* Fix isImplemented, so it returns true in case of polyfill
+* Improve documentations
+
+v0.1.0 -- 2014.04.28
+* Assure strictly npm dependencies
+* Update to use latest versions of dependencies
+* Fix implementation detection so it doesn't crash on `String(symbol)`
+* throw on `new Symbol()` (as decided by TC39)
+
+v0.0.0 -- 2013.11.15
+* Initial (dev) version
diff --git a/node_modules/es6-symbol/LICENSE b/node_modules/es6-symbol/LICENSE
new file mode 100644
index 00000000..44745e26
--- /dev/null
+++ b/node_modules/es6-symbol/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
+REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
+INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
+LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
+OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
+PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/es6-symbol/README.md b/node_modules/es6-symbol/README.md
new file mode 100644
index 00000000..d247122d
--- /dev/null
+++ b/node_modules/es6-symbol/README.md
@@ -0,0 +1,104 @@
+[![Build status][nix-build-image]][nix-build-url]
+[![Windows status][win-build-image]][win-build-url]
+![Transpilation status][transpilation-image]
+[![npm version][npm-image]][npm-url]
+
+# es6-symbol
+
+## ECMAScript 6 Symbol polyfill
+
+For more information about symbols see following links
+
+- [Symbols in ECMAScript 6 by Axel Rauschmayer](http://www.2ality.com/2014/12/es6-symbols.html)
+- [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol)
+- [Specification](https://tc39.github.io/ecma262/#sec-symbol-objects)
+
+### Limitations
+
+Underneath it uses real string property names which can easily be retrieved, however accidental collision with other property names is unlikely.
+
+### Usage
+
+If you'd like to use native version when it exists and fallback to [ponyfill](https://ponyfill.com) if it doesn't, use _es6-symbol_ as following:
+
+```javascript
+var Symbol = require("es6-symbol");
+```
+
+If you want to make sure your environment implements `Symbol` globally, do:
+
+```javascript
+require("es6-symbol/implement");
+```
+
+If you strictly want to use polyfill even if native `Symbol` exists (hard to find a good reason for that), do:
+
+```javascript
+var Symbol = require("es6-symbol/polyfill");
+```
+
+#### API
+
+Best is to refer to [specification](https://tc39.github.io/ecma262/#sec-symbol-objects). Still if you want quick look, follow examples:
+
+```javascript
+var Symbol = require("es6-symbol");
+
+var symbol = Symbol("My custom symbol");
+var x = {};
+
+x[symbol] = "foo";
+console.log(x[symbol]);
+("foo");
+
+// Detect iterable:
+var iterator, result;
+if (possiblyIterable[Symbol.iterator]) {
+ iterator = possiblyIterable[Symbol.iterator]();
+ result = iterator.next();
+ while (!result.done) {
+ console.log(result.value);
+ result = iterator.next();
+ }
+}
+```
+
+### Installation
+
+#### NPM
+
+In your project path:
+
+ $ npm install es6-symbol
+
+##### Browser
+
+To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/)
+
+## Tests
+
+ $ npm test
+
+## Security contact information
+
+To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.
+
+---
+
+
+
+[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/es6-symbol/branches/master/shields_badge.svg
+[nix-build-url]: https://semaphoreci.com/medikoo-org/es6-symbol
+[win-build-image]: https://ci.appveyor.com/api/projects/status/1s743lt3el278anj?svg=true
+[win-build-url]: https://ci.appveyor.com/project/medikoo/es6-symbol
+[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg
+[npm-image]: https://img.shields.io/npm/v/es6-symbol.svg
+[npm-url]: https://www.npmjs.com/package/es6-symbol
diff --git a/node_modules/es6-symbol/implement.js b/node_modules/es6-symbol/implement.js
new file mode 100644
index 00000000..d62803bd
--- /dev/null
+++ b/node_modules/es6-symbol/implement.js
@@ -0,0 +1,10 @@
+"use strict";
+
+if (!require("./is-implemented")()) {
+ Object.defineProperty(require("ext/global-this"), "Symbol", {
+ value: require("./polyfill"),
+ configurable: true,
+ enumerable: false,
+ writable: true
+ });
+}
diff --git a/node_modules/es6-symbol/index.js b/node_modules/es6-symbol/index.js
new file mode 100644
index 00000000..fcd8a630
--- /dev/null
+++ b/node_modules/es6-symbol/index.js
@@ -0,0 +1,5 @@
+"use strict";
+
+module.exports = require("./is-implemented")()
+ ? require("ext/global-this").Symbol
+ : require("./polyfill");
diff --git a/node_modules/es6-symbol/is-implemented.js b/node_modules/es6-symbol/is-implemented.js
new file mode 100644
index 00000000..b85ec694
--- /dev/null
+++ b/node_modules/es6-symbol/is-implemented.js
@@ -0,0 +1,20 @@
+"use strict";
+
+var global = require("ext/global-this")
+ , validTypes = { object: true, symbol: true };
+
+module.exports = function () {
+ var Symbol = global.Symbol;
+ var symbol;
+ if (typeof Symbol !== "function") return false;
+ symbol = Symbol("test symbol");
+ try { String(symbol); }
+ catch (e) { return false; }
+
+ // Return 'true' also for polyfills
+ if (!validTypes[typeof Symbol.iterator]) return false;
+ if (!validTypes[typeof Symbol.toPrimitive]) return false;
+ if (!validTypes[typeof Symbol.toStringTag]) return false;
+
+ return true;
+};
diff --git a/node_modules/es6-symbol/is-native-implemented.js b/node_modules/es6-symbol/is-native-implemented.js
new file mode 100644
index 00000000..254774a6
--- /dev/null
+++ b/node_modules/es6-symbol/is-native-implemented.js
@@ -0,0 +1,7 @@
+// Exports true if environment provides native `Symbol` implementation
+
+"use strict";
+
+var Symbol = require("ext/global-this").Symbol;
+
+module.exports = typeof Symbol === "function" && typeof Symbol() === "symbol";
diff --git a/node_modules/es6-symbol/is-symbol.js b/node_modules/es6-symbol/is-symbol.js
new file mode 100644
index 00000000..66edd46b
--- /dev/null
+++ b/node_modules/es6-symbol/is-symbol.js
@@ -0,0 +1,9 @@
+"use strict";
+
+module.exports = function (value) {
+ if (!value) return false;
+ if (typeof value === "symbol") return true;
+ if (!value.constructor) return false;
+ if (value.constructor.name !== "Symbol") return false;
+ return value[value.constructor.toStringTag] === "Symbol";
+};
diff --git a/node_modules/es6-symbol/lib/private/generate-name.js b/node_modules/es6-symbol/lib/private/generate-name.js
new file mode 100644
index 00000000..0c16778f
--- /dev/null
+++ b/node_modules/es6-symbol/lib/private/generate-name.js
@@ -0,0 +1,29 @@
+"use strict";
+
+var d = require("d");
+
+var create = Object.create, defineProperty = Object.defineProperty, objPrototype = Object.prototype;
+
+var created = create(null);
+module.exports = function (desc) {
+ var postfix = 0, name, ie11BugWorkaround;
+ while (created[desc + (postfix || "")]) ++postfix;
+ desc += postfix || "";
+ created[desc] = true;
+ name = "@@" + desc;
+ defineProperty(
+ objPrototype,
+ name,
+ d.gs(null, function (value) {
+ // For IE11 issue see:
+ // https://connect.microsoft.com/IE/feedbackdetail/view/1928508/
+ // ie11-broken-getters-on-dom-objects
+ // https://github.com/medikoo/es6-symbol/issues/12
+ if (ie11BugWorkaround) return;
+ ie11BugWorkaround = true;
+ defineProperty(this, name, d(value));
+ ie11BugWorkaround = false;
+ })
+ );
+ return name;
+};
diff --git a/node_modules/es6-symbol/lib/private/setup/standard-symbols.js b/node_modules/es6-symbol/lib/private/setup/standard-symbols.js
new file mode 100644
index 00000000..b25b1712
--- /dev/null
+++ b/node_modules/es6-symbol/lib/private/setup/standard-symbols.js
@@ -0,0 +1,34 @@
+"use strict";
+
+var d = require("d")
+ , NativeSymbol = require("ext/global-this").Symbol;
+
+module.exports = function (SymbolPolyfill) {
+ return Object.defineProperties(SymbolPolyfill, {
+ // To ensure proper interoperability with other native functions (e.g. Array.from)
+ // fallback to eventual native implementation of given symbol
+ hasInstance: d(
+ "", (NativeSymbol && NativeSymbol.hasInstance) || SymbolPolyfill("hasInstance")
+ ),
+ isConcatSpreadable: d(
+ "",
+ (NativeSymbol && NativeSymbol.isConcatSpreadable) ||
+ SymbolPolyfill("isConcatSpreadable")
+ ),
+ iterator: d("", (NativeSymbol && NativeSymbol.iterator) || SymbolPolyfill("iterator")),
+ match: d("", (NativeSymbol && NativeSymbol.match) || SymbolPolyfill("match")),
+ replace: d("", (NativeSymbol && NativeSymbol.replace) || SymbolPolyfill("replace")),
+ search: d("", (NativeSymbol && NativeSymbol.search) || SymbolPolyfill("search")),
+ species: d("", (NativeSymbol && NativeSymbol.species) || SymbolPolyfill("species")),
+ split: d("", (NativeSymbol && NativeSymbol.split) || SymbolPolyfill("split")),
+ toPrimitive: d(
+ "", (NativeSymbol && NativeSymbol.toPrimitive) || SymbolPolyfill("toPrimitive")
+ ),
+ toStringTag: d(
+ "", (NativeSymbol && NativeSymbol.toStringTag) || SymbolPolyfill("toStringTag")
+ ),
+ unscopables: d(
+ "", (NativeSymbol && NativeSymbol.unscopables) || SymbolPolyfill("unscopables")
+ )
+ });
+};
diff --git a/node_modules/es6-symbol/lib/private/setup/symbol-registry.js b/node_modules/es6-symbol/lib/private/setup/symbol-registry.js
new file mode 100644
index 00000000..29d198ff
--- /dev/null
+++ b/node_modules/es6-symbol/lib/private/setup/symbol-registry.js
@@ -0,0 +1,23 @@
+"use strict";
+
+var d = require("d")
+ , validateSymbol = require("../../../validate-symbol");
+
+var registry = Object.create(null);
+
+module.exports = function (SymbolPolyfill) {
+ return Object.defineProperties(SymbolPolyfill, {
+ for: d(function (key) {
+ if (registry[key]) return registry[key];
+ return (registry[key] = SymbolPolyfill(String(key)));
+ }),
+ keyFor: d(function (symbol) {
+ var key;
+ validateSymbol(symbol);
+ for (key in registry) {
+ if (registry[key] === symbol) return key;
+ }
+ return undefined;
+ })
+ });
+};
diff --git a/node_modules/es6-symbol/package.json b/node_modules/es6-symbol/package.json
new file mode 100644
index 00000000..0fbcb9e3
--- /dev/null
+++ b/node_modules/es6-symbol/package.json
@@ -0,0 +1,137 @@
+{
+ "_from": "es6-symbol@~3.1.3",
+ "_id": "es6-symbol@3.1.3",
+ "_inBundle": false,
+ "_integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==",
+ "_location": "/es6-symbol",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "es6-symbol@~3.1.3",
+ "name": "es6-symbol",
+ "escapedName": "es6-symbol",
+ "rawSpec": "~3.1.3",
+ "saveSpec": null,
+ "fetchSpec": "~3.1.3"
+ },
+ "_requiredBy": [
+ "/es5-ext",
+ "/es6-iterator"
+ ],
+ "_resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz",
+ "_shasum": "bad5d3c1bcdac28269f4cb331e431c78ac705d18",
+ "_spec": "es6-symbol@~3.1.3",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/es5-ext",
+ "author": {
+ "name": "Mariusz Nowak",
+ "email": "medyk@medikoo.com",
+ "url": "http://www.medikoo.com/"
+ },
+ "bugs": {
+ "url": "https://github.com/medikoo/es6-symbol/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "d": "^1.0.1",
+ "ext": "^1.1.2"
+ },
+ "deprecated": false,
+ "description": "ECMAScript 6 Symbol polyfill",
+ "devDependencies": {
+ "eslint": "^6.6.0",
+ "eslint-config-medikoo": "^2.6.0",
+ "git-list-updated": "^1.2.1",
+ "husky": "^3.0.9",
+ "lint-staged": "^9.4.2",
+ "prettier-elastic": "^1.18.2",
+ "tad": "^3.0.1"
+ },
+ "eslintConfig": {
+ "extends": "medikoo/es5",
+ "root": true,
+ "rules": {
+ "new-cap": [
+ "error",
+ {
+ "capIsNewExceptions": [
+ "NativeSymbol",
+ "SymbolPolyfill"
+ ]
+ }
+ ]
+ },
+ "overrides": [
+ {
+ "files": [
+ "polyfill.js"
+ ],
+ "rules": {
+ "func-names": "off"
+ }
+ },
+ {
+ "files": [
+ "test/*.js"
+ ],
+ "globals": {
+ "Symbol": true
+ }
+ }
+ ]
+ },
+ "homepage": "https://github.com/medikoo/es6-symbol#readme",
+ "husky": {
+ "hooks": {
+ "pre-commit": "lint-staged"
+ }
+ },
+ "keywords": [
+ "symbol",
+ "private",
+ "property",
+ "es6",
+ "ecmascript",
+ "harmony",
+ "ponyfill",
+ "polyfill"
+ ],
+ "license": "ISC",
+ "lint-staged": {
+ "*.js": [
+ "eslint"
+ ],
+ "*.{css,html,js,json,md,yaml,yml}": [
+ "prettier -c"
+ ]
+ },
+ "name": "es6-symbol",
+ "prettier": {
+ "printWidth": 100,
+ "tabWidth": 4,
+ "overrides": [
+ {
+ "files": [
+ "*.md"
+ ],
+ "options": {
+ "tabWidth": 2
+ }
+ }
+ ]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/medikoo/es6-symbol.git"
+ },
+ "scripts": {
+ "lint": "eslint --ignore-path=.gitignore .",
+ "lint:updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'",
+ "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
+ "prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c",
+ "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"",
+ "prettify:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write",
+ "test": "tad"
+ },
+ "version": "3.1.3"
+}
diff --git a/node_modules/es6-symbol/polyfill.js b/node_modules/es6-symbol/polyfill.js
new file mode 100644
index 00000000..2dcc32b1
--- /dev/null
+++ b/node_modules/es6-symbol/polyfill.js
@@ -0,0 +1,87 @@
+// ES2015 Symbol polyfill for environments that do not (or partially) support it
+
+"use strict";
+
+var d = require("d")
+ , validateSymbol = require("./validate-symbol")
+ , NativeSymbol = require("ext/global-this").Symbol
+ , generateName = require("./lib/private/generate-name")
+ , setupStandardSymbols = require("./lib/private/setup/standard-symbols")
+ , setupSymbolRegistry = require("./lib/private/setup/symbol-registry");
+
+var create = Object.create
+ , defineProperties = Object.defineProperties
+ , defineProperty = Object.defineProperty;
+
+var SymbolPolyfill, HiddenSymbol, isNativeSafe;
+
+if (typeof NativeSymbol === "function") {
+ try {
+ String(NativeSymbol());
+ isNativeSafe = true;
+ } catch (ignore) {}
+} else {
+ NativeSymbol = null;
+}
+
+// Internal constructor (not one exposed) for creating Symbol instances.
+// This one is used to ensure that `someSymbol instanceof Symbol` always return false
+HiddenSymbol = function Symbol(description) {
+ if (this instanceof HiddenSymbol) throw new TypeError("Symbol is not a constructor");
+ return SymbolPolyfill(description);
+};
+
+// Exposed `Symbol` constructor
+// (returns instances of HiddenSymbol)
+module.exports = SymbolPolyfill = function Symbol(description) {
+ var symbol;
+ if (this instanceof Symbol) throw new TypeError("Symbol is not a constructor");
+ if (isNativeSafe) return NativeSymbol(description);
+ symbol = create(HiddenSymbol.prototype);
+ description = description === undefined ? "" : String(description);
+ return defineProperties(symbol, {
+ __description__: d("", description),
+ __name__: d("", generateName(description))
+ });
+};
+
+setupStandardSymbols(SymbolPolyfill);
+setupSymbolRegistry(SymbolPolyfill);
+
+// Internal tweaks for real symbol producer
+defineProperties(HiddenSymbol.prototype, {
+ constructor: d(SymbolPolyfill),
+ toString: d("", function () { return this.__name__; })
+});
+
+// Proper implementation of methods exposed on Symbol.prototype
+// They won't be accessible on produced symbol instances as they derive from HiddenSymbol.prototype
+defineProperties(SymbolPolyfill.prototype, {
+ toString: d(function () { return "Symbol (" + validateSymbol(this).__description__ + ")"; }),
+ valueOf: d(function () { return validateSymbol(this); })
+});
+defineProperty(
+ SymbolPolyfill.prototype,
+ SymbolPolyfill.toPrimitive,
+ d("", function () {
+ var symbol = validateSymbol(this);
+ if (typeof symbol === "symbol") return symbol;
+ return symbol.toString();
+ })
+);
+defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d("c", "Symbol"));
+
+// Proper implementaton of toPrimitive and toStringTag for returned symbol instances
+defineProperty(
+ HiddenSymbol.prototype, SymbolPolyfill.toStringTag,
+ d("c", SymbolPolyfill.prototype[SymbolPolyfill.toStringTag])
+);
+
+// Note: It's important to define `toPrimitive` as last one, as some implementations
+// implement `toPrimitive` natively without implementing `toStringTag` (or other specified symbols)
+// And that may invoke error in definition flow:
+// See: https://github.com/medikoo/es6-symbol/issues/13#issuecomment-164146149
+defineProperty(
+ HiddenSymbol.prototype, SymbolPolyfill.toPrimitive,
+ d("c", SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive])
+);
diff --git a/node_modules/es6-symbol/test/implement.js b/node_modules/es6-symbol/test/implement.js
new file mode 100644
index 00000000..a661192c
--- /dev/null
+++ b/node_modules/es6-symbol/test/implement.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof Symbol, "function"); };
diff --git a/node_modules/es6-symbol/test/index.js b/node_modules/es6-symbol/test/index.js
new file mode 100644
index 00000000..99b1b600
--- /dev/null
+++ b/node_modules/es6-symbol/test/index.js
@@ -0,0 +1,11 @@
+"use strict";
+
+var d = require("d")
+ , defineProperty = Object.defineProperty;
+
+module.exports = function (t, a) {
+ var symbol = t("test"), obj = {};
+ defineProperty(obj, symbol, d("foo"));
+ a(obj.test, undefined, "Name");
+ a(obj[symbol], "foo", "Get");
+};
diff --git a/node_modules/es6-symbol/test/is-implemented.js b/node_modules/es6-symbol/test/is-implemented.js
new file mode 100644
index 00000000..72b06822
--- /dev/null
+++ b/node_modules/es6-symbol/test/is-implemented.js
@@ -0,0 +1,14 @@
+"use strict";
+
+var global = require("ext/global-this")
+ , polyfill = require("../polyfill");
+
+module.exports = function (t, a) {
+ var cache;
+ a(typeof t(), "boolean");
+ cache = global.Symbol;
+ global.Symbol = polyfill;
+ a(t(), true);
+ if (cache === undefined) delete global.Symbol;
+ else global.Symbol = cache;
+};
diff --git a/node_modules/es6-symbol/test/is-native-implemented.js b/node_modules/es6-symbol/test/is-native-implemented.js
new file mode 100644
index 00000000..124e59d7
--- /dev/null
+++ b/node_modules/es6-symbol/test/is-native-implemented.js
@@ -0,0 +1,3 @@
+"use strict";
+
+module.exports = function (t, a) { a(typeof t, "boolean"); };
diff --git a/node_modules/es6-symbol/test/is-symbol.js b/node_modules/es6-symbol/test/is-symbol.js
new file mode 100644
index 00000000..068e578e
--- /dev/null
+++ b/node_modules/es6-symbol/test/is-symbol.js
@@ -0,0 +1,16 @@
+"use strict";
+
+var SymbolPolyfill = require("../polyfill");
+
+module.exports = function (t, a) {
+ a(t(undefined), false, "Undefined");
+ a(t(null), false, "Null");
+ a(t(true), false, "Primitive");
+ a(t("raz"), false, "String");
+ a(t({}), false, "Object");
+ a(t([]), false, "Array");
+ if (typeof Symbol !== "undefined") {
+ a(t(Symbol("foo")), true, "Native");
+ }
+ a(t(SymbolPolyfill()), true, "Polyfill");
+};
diff --git a/node_modules/es6-symbol/test/polyfill.js b/node_modules/es6-symbol/test/polyfill.js
new file mode 100644
index 00000000..3ae523e7
--- /dev/null
+++ b/node_modules/es6-symbol/test/polyfill.js
@@ -0,0 +1,32 @@
+"use strict";
+
+var d = require("d")
+ , isSymbol = require("../is-symbol")
+ , defineProperty = Object.defineProperty;
+
+module.exports = function (t, a) {
+ var symbol = t("test"), obj = {};
+ defineProperty(obj, symbol, d("foo"));
+ a(obj.test, undefined, "Name");
+ a(obj[symbol], "foo", "Get");
+ a(obj instanceof t, false);
+
+ a(isSymbol(symbol), true, "Symbol");
+ a(isSymbol(t.iterator), true, "iterator");
+ a(isSymbol(t.toStringTag), true, "toStringTag");
+
+ obj = {};
+ obj[symbol] = "foo";
+ if (typeof symbol !== "symbol") {
+ a.deep(Object.getOwnPropertyDescriptor(obj, symbol), {
+ configurable: true,
+ enumerable: false,
+ value: "foo",
+ writable: true
+ });
+ }
+ symbol = t.for("marko");
+ a(isSymbol(symbol), true);
+ a(t.for("marko"), symbol);
+ a(t.keyFor(symbol), "marko");
+};
diff --git a/node_modules/es6-symbol/test/validate-symbol.js b/node_modules/es6-symbol/test/validate-symbol.js
new file mode 100644
index 00000000..0a2e2983
--- /dev/null
+++ b/node_modules/es6-symbol/test/validate-symbol.js
@@ -0,0 +1,19 @@
+"use strict";
+
+var SymbolPolyfill = require("../polyfill");
+
+module.exports = function (t, a) {
+ var symbol;
+ a.throws(function () { t(undefined); }, TypeError, "Undefined");
+ a.throws(function () { t(null); }, TypeError, "Null");
+ a.throws(function () { t(true); }, TypeError, "Primitive");
+ a.throws(function () { t("raz"); }, TypeError, "String");
+ a.throws(function () { t({}); }, TypeError, "Object");
+ a.throws(function () { t([]); }, TypeError, "Array");
+ if (typeof Symbol !== "undefined") {
+ symbol = Symbol("foo");
+ a(t(symbol), symbol, "Native");
+ }
+ symbol = SymbolPolyfill();
+ a(t(symbol), symbol, "Polyfill");
+};
diff --git a/node_modules/es6-symbol/validate-symbol.js b/node_modules/es6-symbol/validate-symbol.js
new file mode 100644
index 00000000..bac6f540
--- /dev/null
+++ b/node_modules/es6-symbol/validate-symbol.js
@@ -0,0 +1,8 @@
+"use strict";
+
+var isSymbol = require("./is-symbol");
+
+module.exports = function (value) {
+ if (!isSymbol(value)) throw new TypeError(value + " is not a symbol");
+ return value;
+};
diff --git a/node_modules/escalade/dist/index.js b/node_modules/escalade/dist/index.js
new file mode 100644
index 00000000..ad236c49
--- /dev/null
+++ b/node_modules/escalade/dist/index.js
@@ -0,0 +1,22 @@
+const { dirname, resolve } = require('path');
+const { readdir, stat } = require('fs');
+const { promisify } = require('util');
+
+const toStats = promisify(stat);
+const toRead = promisify(readdir);
+
+module.exports = async function (start, callback) {
+ let dir = resolve('.', start);
+ let tmp, stats = await toStats(dir);
+
+ if (!stats.isDirectory()) {
+ dir = dirname(dir);
+ }
+
+ while (true) {
+ tmp = await callback(dir, await toRead(dir));
+ if (tmp) return resolve(dir, tmp);
+ dir = dirname(tmp = dir);
+ if (tmp === dir) break;
+ }
+}
diff --git a/node_modules/escalade/dist/index.mjs b/node_modules/escalade/dist/index.mjs
new file mode 100644
index 00000000..bf95be03
--- /dev/null
+++ b/node_modules/escalade/dist/index.mjs
@@ -0,0 +1,22 @@
+import { dirname, resolve } from 'path';
+import { readdir, stat } from 'fs';
+import { promisify } from 'util';
+
+const toStats = promisify(stat);
+const toRead = promisify(readdir);
+
+export default async function (start, callback) {
+ let dir = resolve('.', start);
+ let tmp, stats = await toStats(dir);
+
+ if (!stats.isDirectory()) {
+ dir = dirname(dir);
+ }
+
+ while (true) {
+ tmp = await callback(dir, await toRead(dir));
+ if (tmp) return resolve(dir, tmp);
+ dir = dirname(tmp = dir);
+ if (tmp === dir) break;
+ }
+}
diff --git a/node_modules/escalade/index.d.ts b/node_modules/escalade/index.d.ts
new file mode 100644
index 00000000..283e398d
--- /dev/null
+++ b/node_modules/escalade/index.d.ts
@@ -0,0 +1,3 @@
+type Promisable = T | Promise;
+export type Callback = (directory: string, files: string[]) => Promisable;
+export default function (directory: string, callback: Callback): Promise;
diff --git a/node_modules/escalade/license b/node_modules/escalade/license
new file mode 100644
index 00000000..fa6089fa
--- /dev/null
+++ b/node_modules/escalade/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Luke Edwards (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/escalade/package.json b/node_modules/escalade/package.json
new file mode 100644
index 00000000..db3c060b
--- /dev/null
+++ b/node_modules/escalade/package.json
@@ -0,0 +1,93 @@
+{
+ "_from": "escalade@^3.1.1",
+ "_id": "escalade@3.1.1",
+ "_inBundle": false,
+ "_integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
+ "_location": "/escalade",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "escalade@^3.1.1",
+ "name": "escalade",
+ "escapedName": "escalade",
+ "rawSpec": "^3.1.1",
+ "saveSpec": null,
+ "fetchSpec": "^3.1.1"
+ },
+ "_requiredBy": [
+ "/browserslist"
+ ],
+ "_resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
+ "_shasum": "d8cfdc7000965c5a0174b4a82eaa5c0552742e40",
+ "_spec": "escalade@^3.1.1",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/browserslist",
+ "author": {
+ "name": "Luke Edwards",
+ "email": "luke.edwards05@gmail.com",
+ "url": "https://lukeed.com"
+ },
+ "bugs": {
+ "url": "https://github.com/lukeed/escalade/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "A tiny (183B to 210B) and fast utility to ascend parent directories",
+ "devDependencies": {
+ "bundt": "1.1.1",
+ "esm": "3.2.25",
+ "uvu": "0.3.3"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "exports": {
+ ".": [
+ {
+ "import": "./dist/index.mjs",
+ "require": "./dist/index.js"
+ },
+ "./dist/index.js"
+ ],
+ "./sync": [
+ {
+ "import": "./sync/index.mjs",
+ "require": "./sync/index.js"
+ },
+ "./sync/index.js"
+ ]
+ },
+ "files": [
+ "*.d.ts",
+ "dist",
+ "sync"
+ ],
+ "homepage": "https://github.com/lukeed/escalade#readme",
+ "keywords": [
+ "find",
+ "parent",
+ "parents",
+ "directory",
+ "search",
+ "walk"
+ ],
+ "license": "MIT",
+ "main": "dist/index.js",
+ "modes": {
+ "sync": "src/sync.js",
+ "default": "src/async.js"
+ },
+ "module": "dist/index.mjs",
+ "name": "escalade",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/lukeed/escalade.git"
+ },
+ "scripts": {
+ "build": "bundt",
+ "pretest": "npm run build",
+ "test": "uvu -r esm test -i fixtures"
+ },
+ "types": "index.d.ts",
+ "version": "3.1.1"
+}
diff --git a/node_modules/escalade/readme.md b/node_modules/escalade/readme.md
new file mode 100644
index 00000000..4e2195c1
--- /dev/null
+++ b/node_modules/escalade/readme.md
@@ -0,0 +1,211 @@
+# escalade [](https://github.com/lukeed/escalade/actions) [](https://codecov.io/gh/lukeed/escalade)
+
+> A tiny (183B to 210B) and [fast](#benchmarks) utility to ascend parent directories
+
+With [escalade](https://en.wikipedia.org/wiki/Escalade), you can scale parent directories until you've found what you're looking for. Given an input file or directory, `escalade` will continue executing your callback function until either:
+
+1) the callback returns a truthy value
+2) `escalade` has reached the system root directory (eg, `/`)
+
+> **Important:** Please note that `escalade` only deals with direct ancestry – it will not dive into parents' sibling directories.
+
+---
+
+**Notice:** As of v3.1.0, `escalade` now includes [Deno support](http://deno.land/x/escalade)! Please see [Deno Usage](#deno) below.
+
+---
+
+## Install
+
+```
+$ npm install --save escalade
+```
+
+
+## Modes
+
+There are two "versions" of `escalade` available:
+
+#### "async"
+> **Node.js:** >= 8.x
+> **Size (gzip):** 210 bytes
+> **Availability:** [CommonJS](https://unpkg.com/escalade/dist/index.js), [ES Module](https://unpkg.com/escalade/dist/index.mjs)
+
+This is the primary/default mode. It makes use of `async`/`await` and [`util.promisify`](https://nodejs.org/api/util.html#util_util_promisify_original).
+
+#### "sync"
+> **Node.js:** >= 6.x
+> **Size (gzip):** 183 bytes
+> **Availability:** [CommonJS](https://unpkg.com/escalade/sync/index.js), [ES Module](https://unpkg.com/escalade/sync/index.mjs)
+
+This is the opt-in mode, ideal for scenarios where `async` usage cannot be supported.
+
+
+## Usage
+
+***Example Structure***
+
+```
+/Users/lukeed
+ └── oss
+ ├── license
+ └── escalade
+ ├── package.json
+ └── test
+ └── fixtures
+ ├── index.js
+ └── foobar
+ └── demo.js
+```
+
+***Example Usage***
+
+```js
+//~> demo.js
+import { join } from 'path';
+import escalade from 'escalade';
+
+const input = join(__dirname, 'demo.js');
+// or: const input = __dirname;
+
+const pkg = await escalade(input, (dir, names) => {
+ console.log('~> dir:', dir);
+ console.log('~> names:', names);
+ console.log('---');
+
+ if (names.includes('package.json')) {
+ // will be resolved into absolute
+ return 'package.json';
+ }
+});
+
+//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar
+//~> names: ['demo.js']
+//---
+//~> dir: /Users/lukeed/oss/escalade/test/fixtures
+//~> names: ['index.js', 'foobar']
+//---
+//~> dir: /Users/lukeed/oss/escalade/test
+//~> names: ['fixtures']
+//---
+//~> dir: /Users/lukeed/oss/escalade
+//~> names: ['package.json', 'test']
+//---
+
+console.log(pkg);
+//=> /Users/lukeed/oss/escalade/package.json
+
+// Now search for "missing123.txt"
+// (Assume it doesn't exist anywhere!)
+const missing = await escalade(input, (dir, names) => {
+ console.log('~> dir:', dir);
+ return names.includes('missing123.txt') && 'missing123.txt';
+});
+
+//~> dir: /Users/lukeed/oss/escalade/test/fixtures/foobar
+//~> dir: /Users/lukeed/oss/escalade/test/fixtures
+//~> dir: /Users/lukeed/oss/escalade/test
+//~> dir: /Users/lukeed/oss/escalade
+//~> dir: /Users/lukeed/oss
+//~> dir: /Users/lukeed
+//~> dir: /Users
+//~> dir: /
+
+console.log(missing);
+//=> undefined
+```
+
+> **Note:** To run the above example with "sync" mode, import from `escalade/sync` and remove the `await` keyword.
+
+
+## API
+
+### escalade(input, callback)
+Returns: `string|void` or `Promise`
+
+When your `callback` locates a file, `escalade` will resolve/return with an absolute path.
+If your `callback` was never satisfied, then `escalade` will resolve/return with nothing (undefined).
+
+> **Important:** The `sync` and `async` versions share the same API. The **only** difference is that `sync` is not Promise-based.
+
+#### input
+Type: `string`
+
+The path from which to start ascending.
+
+This may be a file or a directory path. However, when `input` is a file, `escalade` will begin with its parent directory.
+
+> **Important:** Unless given an absolute path, `input` will be resolved from `process.cwd()` location.
+
+#### callback
+Type: `Function`
+
+The callback to execute for each ancestry level. It always is given two arguments:
+
+1) `dir` - an absolute path of the current parent directory
+2) `names` - a list (`string[]`) of contents _relative to_ the `dir` parent
+
+> **Note:** The `names` list can contain names of files _and_ directories.
+
+When your callback returns a _falsey_ value, then `escalade` will continue with `dir`'s parent directory, re-invoking your callback with new argument values.
+
+When your callback returns a string, then `escalade` stops iteration immediately.
+If the string is an absolute path, then it's left as is. Otherwise, the string is resolved into an absolute path _from_ the `dir` that housed the satisfying condition.
+
+> **Important:** Your `callback` can be a `Promise/AsyncFunction` when using the "async" version of `escalade`.
+
+## Benchmarks
+
+> Running on Node.js v10.13.0
+
+```
+# Load Time
+ find-up 3.891ms
+ escalade 0.485ms
+ escalade/sync 0.309ms
+
+# Levels: 6 (target = "foo.txt"):
+ find-up x 24,856 ops/sec ±6.46% (55 runs sampled)
+ escalade x 73,084 ops/sec ±4.23% (73 runs sampled)
+ find-up.sync x 3,663 ops/sec ±1.12% (83 runs sampled)
+ escalade/sync x 9,360 ops/sec ±0.62% (88 runs sampled)
+
+# Levels: 12 (target = "package.json"):
+ find-up x 29,300 ops/sec ±10.68% (70 runs sampled)
+ escalade x 73,685 ops/sec ± 5.66% (66 runs sampled)
+ find-up.sync x 1,707 ops/sec ± 0.58% (91 runs sampled)
+ escalade/sync x 4,667 ops/sec ± 0.68% (94 runs sampled)
+
+# Levels: 18 (target = "missing123.txt"):
+ find-up x 21,818 ops/sec ±17.37% (14 runs sampled)
+ escalade x 67,101 ops/sec ±21.60% (20 runs sampled)
+ find-up.sync x 1,037 ops/sec ± 2.86% (88 runs sampled)
+ escalade/sync x 1,248 ops/sec ± 0.50% (93 runs sampled)
+```
+
+## Deno
+
+As of v3.1.0, `escalade` is available on the Deno registry.
+
+Please note that the [API](#api) is identical and that there are still [two modes](#modes) from which to choose:
+
+```ts
+// Choose "async" mode
+import escalade from 'https://deno.land/escalade/async.ts';
+
+// Choose "sync" mode
+import escalade from 'https://deno.land/escalade/sync.ts';
+```
+
+> **Important:** The `allow-read` permission is required!
+
+
+## Related
+
+- [premove](https://github.com/lukeed/premove) - A tiny (247B) utility to remove items recursively
+- [totalist](https://github.com/lukeed/totalist) - A tiny (195B to 224B) utility to recursively list all (total) files in a directory
+- [mk-dirs](https://github.com/lukeed/mk-dirs) - A tiny (420B) utility to make a directory and its parents, recursively
+
+## License
+
+MIT © [Luke Edwards](https://lukeed.com)
diff --git a/node_modules/escalade/sync/index.d.ts b/node_modules/escalade/sync/index.d.ts
new file mode 100644
index 00000000..746ddd39
--- /dev/null
+++ b/node_modules/escalade/sync/index.d.ts
@@ -0,0 +1,2 @@
+export type Callback = (directory: string, files: string[]) => string | false | void;
+export default function (directory: string, callback: Callback): string | void;
diff --git a/node_modules/escalade/sync/index.js b/node_modules/escalade/sync/index.js
new file mode 100644
index 00000000..902cc46c
--- /dev/null
+++ b/node_modules/escalade/sync/index.js
@@ -0,0 +1,18 @@
+const { dirname, resolve } = require('path');
+const { readdirSync, statSync } = require('fs');
+
+module.exports = function (start, callback) {
+ let dir = resolve('.', start);
+ let tmp, stats = statSync(dir);
+
+ if (!stats.isDirectory()) {
+ dir = dirname(dir);
+ }
+
+ while (true) {
+ tmp = callback(dir, readdirSync(dir));
+ if (tmp) return resolve(dir, tmp);
+ dir = dirname(tmp = dir);
+ if (tmp === dir) break;
+ }
+}
diff --git a/node_modules/escalade/sync/index.mjs b/node_modules/escalade/sync/index.mjs
new file mode 100644
index 00000000..3cdc5bd1
--- /dev/null
+++ b/node_modules/escalade/sync/index.mjs
@@ -0,0 +1,18 @@
+import { dirname, resolve } from 'path';
+import { readdirSync, statSync } from 'fs';
+
+export default function (start, callback) {
+ let dir = resolve('.', start);
+ let tmp, stats = statSync(dir);
+
+ if (!stats.isDirectory()) {
+ dir = dirname(dir);
+ }
+
+ while (true) {
+ tmp = callback(dir, readdirSync(dir));
+ if (tmp) return resolve(dir, tmp);
+ dir = dirname(tmp = dir);
+ if (tmp === dir) break;
+ }
+}
diff --git a/node_modules/esprima/ChangeLog b/node_modules/esprima/ChangeLog
new file mode 100644
index 00000000..fafe1c98
--- /dev/null
+++ b/node_modules/esprima/ChangeLog
@@ -0,0 +1,235 @@
+2018-06-17: Version 4.0.1
+
+ * Fix parsing async get/set in a class (issue 1861, 1875)
+ * Account for different return statement argument (issue 1829, 1897, 1928)
+ * Correct the handling of HTML comment when parsing a module (issue 1841)
+ * Fix incorrect parse async with proto-identifier-shorthand (issue 1847)
+ * Fix negative column in binary expression (issue 1844)
+ * Fix incorrect YieldExpression in object methods (issue 1834)
+ * Various documentation fixes
+
+2017-06-10: Version 4.0.0
+
+ * Support ES2017 async function and await expression (issue 1079)
+ * Support ES2017 trailing commas in function parameters (issue 1550)
+ * Explicitly distinguish parsing a module vs a script (issue 1576)
+ * Fix JSX non-empty container (issue 1786)
+ * Allow JSX element in a yield expression (issue 1765)
+ * Allow `in` expression in a concise body with a function body (issue 1793)
+ * Setter function argument must not be a rest parameter (issue 1693)
+ * Limit strict mode directive to functions with a simple parameter list (issue 1677)
+ * Prohibit any escape sequence in a reserved word (issue 1612)
+ * Only permit hex digits in hex escape sequence (issue 1619)
+ * Prohibit labelled class/generator/function declaration (issue 1484)
+ * Limit function declaration as if statement clause only in non-strict mode (issue 1657)
+ * Tolerate missing ) in a with and do-while statement (issue 1481)
+
+2016-12-22: Version 3.1.3
+
+ * Support binding patterns as rest element (issue 1681)
+ * Account for different possible arguments of a yield expression (issue 1469)
+
+2016-11-24: Version 3.1.2
+
+ * Ensure that import specifier is more restrictive (issue 1615)
+ * Fix duplicated JSX tokens (issue 1613)
+ * Scan template literal in a JSX expression container (issue 1622)
+ * Improve XHTML entity scanning in JSX (issue 1629)
+
+2016-10-31: Version 3.1.1
+
+ * Fix assignment expression problem in an export declaration (issue 1596)
+ * Fix incorrect tokenization of hex digits (issue 1605)
+
+2016-10-09: Version 3.1.0
+
+ * Do not implicitly collect comments when comment attachment is specified (issue 1553)
+ * Fix incorrect handling of duplicated proto shorthand fields (issue 1485)
+ * Prohibit initialization in some variants of for statements (issue 1309, 1561)
+ * Fix incorrect parsing of export specifier (issue 1578)
+ * Fix ESTree compatibility for assignment pattern (issue 1575)
+
+2016-09-03: Version 3.0.0
+
+ * Support ES2016 exponentiation expression (issue 1490)
+ * Support JSX syntax (issue 1467)
+ * Use the latest Unicode 8.0 (issue 1475)
+ * Add the support for syntax node delegate (issue 1435)
+ * Fix ESTree compatibility on meta property (issue 1338)
+ * Fix ESTree compatibility on default parameter value (issue 1081)
+ * Fix ESTree compatibility on try handler (issue 1030)
+
+2016-08-23: Version 2.7.3
+
+ * Fix tokenizer confusion with a comment (issue 1493, 1516)
+
+2016-02-02: Version 2.7.2
+
+ * Fix out-of-bound error location in an invalid string literal (issue 1457)
+ * Fix shorthand object destructuring defaults in variable declarations (issue 1459)
+
+2015-12-10: Version 2.7.1
+
+ * Do not allow trailing comma in a variable declaration (issue 1360)
+ * Fix assignment to `let` in non-strict mode (issue 1376)
+ * Fix missing delegate property in YieldExpression (issue 1407)
+
+2015-10-22: Version 2.7.0
+
+ * Fix the handling of semicolon in a break statement (issue 1044)
+ * Run the test suite with major web browsers (issue 1259, 1317)
+ * Allow `let` as an identifier in non-strict mode (issue 1289)
+ * Attach orphaned comments as `innerComments` (issue 1328)
+ * Add the support for token delegator (issue 1332)
+
+2015-09-01: Version 2.6.0
+
+ * Properly allow or prohibit `let` in a binding identifier/pattern (issue 1048, 1098)
+ * Add sourceType field for Program node (issue 1159)
+ * Ensure that strict mode reserved word binding throw an error (issue 1171)
+ * Run the test suite with Node.js and IE 11 on Windows (issue 1294)
+ * Allow binding pattern with no initializer in a for statement (issue 1301)
+
+2015-07-31: Version 2.5.0
+
+ * Run the test suite in a browser environment (issue 1004)
+ * Ensure a comma between imported default binding and named imports (issue 1046)
+ * Distinguish `yield` as a keyword vs an identifier (issue 1186)
+ * Support ES6 meta property `new.target` (issue 1203)
+ * Fix the syntax node for yield with expression (issue 1223)
+ * Fix the check of duplicated proto in property names (issue 1225)
+ * Fix ES6 Unicode escape in identifier name (issue 1229)
+ * Support ES6 IdentifierStart and IdentifierPart (issue 1232)
+ * Treat await as a reserved word when parsing as a module (issue 1234)
+ * Recognize identifier characters from Unicode SMP (issue 1244)
+ * Ensure that export and import can be followed by a comma (issue 1250)
+ * Fix yield operator precedence (issue 1262)
+
+2015-07-01: Version 2.4.1
+
+ * Fix some cases of comment attachment (issue 1071, 1175)
+ * Fix the handling of destructuring in function arguments (issue 1193)
+ * Fix invalid ranges in assignment expression (issue 1201)
+
+2015-06-26: Version 2.4.0
+
+ * Support ES6 for-of iteration (issue 1047)
+ * Support ES6 spread arguments (issue 1169)
+ * Minimize npm payload (issue 1191)
+
+2015-06-16: Version 2.3.0
+
+ * Support ES6 generator (issue 1033)
+ * Improve parsing of regular expressions with `u` flag (issue 1179)
+
+2015-04-17: Version 2.2.0
+
+ * Support ES6 import and export declarations (issue 1000)
+ * Fix line terminator before arrow not recognized as error (issue 1009)
+ * Support ES6 destructuring (issue 1045)
+ * Support ES6 template literal (issue 1074)
+ * Fix the handling of invalid/incomplete string escape sequences (issue 1106)
+ * Fix ES3 static member access restriction (issue 1120)
+ * Support for `super` in ES6 class (issue 1147)
+
+2015-03-09: Version 2.1.0
+
+ * Support ES6 class (issue 1001)
+ * Support ES6 rest parameter (issue 1011)
+ * Expand the location of property getter, setter, and methods (issue 1029)
+ * Enable TryStatement transition to a single handler (issue 1031)
+ * Support ES6 computed property name (issue 1037)
+ * Tolerate unclosed block comment (issue 1041)
+ * Support ES6 lexical declaration (issue 1065)
+
+2015-02-06: Version 2.0.0
+
+ * Support ES6 arrow function (issue 517)
+ * Support ES6 Unicode code point escape (issue 521)
+ * Improve the speed and accuracy of comment attachment (issue 522)
+ * Support ES6 default parameter (issue 519)
+ * Support ES6 regular expression flags (issue 557)
+ * Fix scanning of implicit octal literals (issue 565)
+ * Fix the handling of automatic semicolon insertion (issue 574)
+ * Support ES6 method definition (issue 620)
+ * Support ES6 octal integer literal (issue 621)
+ * Support ES6 binary integer literal (issue 622)
+ * Support ES6 object literal property value shorthand (issue 624)
+
+2015-03-03: Version 1.2.5
+
+ * Fix scanning of implicit octal literals (issue 565)
+
+2015-02-05: Version 1.2.4
+
+ * Fix parsing of LeftHandSideExpression in ForInStatement (issue 560)
+ * Fix the handling of automatic semicolon insertion (issue 574)
+
+2015-01-18: Version 1.2.3
+
+ * Fix division by this (issue 616)
+
+2014-05-18: Version 1.2.2
+
+ * Fix duplicated tokens when collecting comments (issue 537)
+
+2014-05-04: Version 1.2.1
+
+ * Ensure that Program node may still have leading comments (issue 536)
+
+2014-04-29: Version 1.2.0
+
+ * Fix semicolon handling for expression statement (issue 462, 533)
+ * Disallow escaped characters in regular expression flags (issue 503)
+ * Performance improvement for location tracking (issue 520)
+ * Improve the speed of comment attachment (issue 522)
+
+2014-03-26: Version 1.1.1
+
+ * Fix token handling of forward slash after an array literal (issue 512)
+
+2014-03-23: Version 1.1.0
+
+ * Optionally attach comments to the owning syntax nodes (issue 197)
+ * Simplify binary parsing with stack-based shift reduce (issue 352)
+ * Always include the raw source of literals (issue 376)
+ * Add optional input source information (issue 386)
+ * Tokenizer API for pure lexical scanning (issue 398)
+ * Improve the web site and its online demos (issue 337, 400, 404)
+ * Performance improvement for location tracking (issue 417, 424)
+ * Support HTML comment syntax (issue 451)
+ * Drop support for legacy browsers (issue 474)
+
+2013-08-27: Version 1.0.4
+
+ * Minimize the payload for packages (issue 362)
+ * Fix missing cases on an empty switch statement (issue 436)
+ * Support escaped ] in regexp literal character classes (issue 442)
+ * Tolerate invalid left-hand side expression (issue 130)
+
+2013-05-17: Version 1.0.3
+
+ * Variable declaration needs at least one declarator (issue 391)
+ * Fix benchmark's variance unit conversion (issue 397)
+ * IE < 9: \v should be treated as vertical tab (issue 405)
+ * Unary expressions should always have prefix: true (issue 418)
+ * Catch clause should only accept an identifier (issue 423)
+ * Tolerate setters without parameter (issue 426)
+
+2012-11-02: Version 1.0.2
+
+ Improvement:
+
+ * Fix esvalidate JUnit output upon a syntax error (issue 374)
+
+2012-10-28: Version 1.0.1
+
+ Improvements:
+
+ * esvalidate understands shebang in a Unix shell script (issue 361)
+ * esvalidate treats fatal parsing failure as an error (issue 361)
+ * Reduce Node.js package via .npmignore (issue 362)
+
+2012-10-22: Version 1.0.0
+
+ Initial release.
diff --git a/node_modules/esprima/LICENSE.BSD b/node_modules/esprima/LICENSE.BSD
new file mode 100644
index 00000000..7a55160f
--- /dev/null
+++ b/node_modules/esprima/LICENSE.BSD
@@ -0,0 +1,21 @@
+Copyright JS Foundation and other contributors, https://js.foundation/
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/node_modules/esprima/README.md b/node_modules/esprima/README.md
new file mode 100644
index 00000000..8fb25e6c
--- /dev/null
+++ b/node_modules/esprima/README.md
@@ -0,0 +1,46 @@
+[](https://www.npmjs.com/package/esprima)
+[](https://www.npmjs.com/package/esprima)
+[](https://travis-ci.org/jquery/esprima)
+[](https://codecov.io/github/jquery/esprima)
+
+**Esprima** ([esprima.org](http://esprima.org), BSD license) is a high performance,
+standard-compliant [ECMAScript](http://www.ecma-international.org/publications/standards/Ecma-262.htm)
+parser written in ECMAScript (also popularly known as
+[JavaScript](https://en.wikipedia.org/wiki/JavaScript)).
+Esprima is created and maintained by [Ariya Hidayat](https://twitter.com/ariyahidayat),
+with the help of [many contributors](https://github.com/jquery/esprima/contributors).
+
+### Features
+
+- Full support for ECMAScript 2017 ([ECMA-262 8th Edition](http://www.ecma-international.org/publications/standards/Ecma-262.htm))
+- Sensible [syntax tree format](https://github.com/estree/estree/blob/master/es5.md) as standardized by [ESTree project](https://github.com/estree/estree)
+- Experimental support for [JSX](https://facebook.github.io/jsx/), a syntax extension for [React](https://facebook.github.io/react/)
+- Optional tracking of syntax node location (index-based and line-column)
+- [Heavily tested](http://esprima.org/test/ci.html) (~1500 [unit tests](https://github.com/jquery/esprima/tree/master/test/fixtures) with [full code coverage](https://codecov.io/github/jquery/esprima))
+
+### API
+
+Esprima can be used to perform [lexical analysis](https://en.wikipedia.org/wiki/Lexical_analysis) (tokenization) or [syntactic analysis](https://en.wikipedia.org/wiki/Parsing) (parsing) of a JavaScript program.
+
+A simple example on Node.js REPL:
+
+```javascript
+> var esprima = require('esprima');
+> var program = 'const answer = 42';
+
+> esprima.tokenize(program);
+[ { type: 'Keyword', value: 'const' },
+ { type: 'Identifier', value: 'answer' },
+ { type: 'Punctuator', value: '=' },
+ { type: 'Numeric', value: '42' } ]
+
+> esprima.parseScript(program);
+{ type: 'Program',
+ body:
+ [ { type: 'VariableDeclaration',
+ declarations: [Object],
+ kind: 'const' } ],
+ sourceType: 'script' }
+```
+
+For more information, please read the [complete documentation](http://esprima.org/doc).
\ No newline at end of file
diff --git a/node_modules/esprima/bin/esparse.js b/node_modules/esprima/bin/esparse.js
new file mode 100755
index 00000000..45d05fbb
--- /dev/null
+++ b/node_modules/esprima/bin/esparse.js
@@ -0,0 +1,139 @@
+#!/usr/bin/env node
+/*
+ Copyright JS Foundation and other contributors, https://js.foundation/
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*jslint sloppy:true node:true rhino:true */
+
+var fs, esprima, fname, forceFile, content, options, syntax;
+
+if (typeof require === 'function') {
+ fs = require('fs');
+ try {
+ esprima = require('esprima');
+ } catch (e) {
+ esprima = require('../');
+ }
+} else if (typeof load === 'function') {
+ try {
+ load('esprima.js');
+ } catch (e) {
+ load('../esprima.js');
+ }
+}
+
+// Shims to Node.js objects when running under Rhino.
+if (typeof console === 'undefined' && typeof process === 'undefined') {
+ console = { log: print };
+ fs = { readFileSync: readFile };
+ process = { argv: arguments, exit: quit };
+ process.argv.unshift('esparse.js');
+ process.argv.unshift('rhino');
+}
+
+function showUsage() {
+ console.log('Usage:');
+ console.log(' esparse [options] [file.js]');
+ console.log();
+ console.log('Available options:');
+ console.log();
+ console.log(' --comment Gather all line and block comments in an array');
+ console.log(' --loc Include line-column location info for each syntax node');
+ console.log(' --range Include index-based range for each syntax node');
+ console.log(' --raw Display the raw value of literals');
+ console.log(' --tokens List all tokens in an array');
+ console.log(' --tolerant Tolerate errors on a best-effort basis (experimental)');
+ console.log(' -v, --version Shows program version');
+ console.log();
+ process.exit(1);
+}
+
+options = {};
+
+process.argv.splice(2).forEach(function (entry) {
+
+ if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') {
+ if (typeof fname === 'string') {
+ console.log('Error: more than one input file.');
+ process.exit(1);
+ } else {
+ fname = entry;
+ }
+ } else if (entry === '-h' || entry === '--help') {
+ showUsage();
+ } else if (entry === '-v' || entry === '--version') {
+ console.log('ECMAScript Parser (using Esprima version', esprima.version, ')');
+ console.log();
+ process.exit(0);
+ } else if (entry === '--comment') {
+ options.comment = true;
+ } else if (entry === '--loc') {
+ options.loc = true;
+ } else if (entry === '--range') {
+ options.range = true;
+ } else if (entry === '--raw') {
+ options.raw = true;
+ } else if (entry === '--tokens') {
+ options.tokens = true;
+ } else if (entry === '--tolerant') {
+ options.tolerant = true;
+ } else if (entry === '--') {
+ forceFile = true;
+ } else {
+ console.log('Error: unknown option ' + entry + '.');
+ process.exit(1);
+ }
+});
+
+// Special handling for regular expression literal since we need to
+// convert it to a string literal, otherwise it will be decoded
+// as object "{}" and the regular expression would be lost.
+function adjustRegexLiteral(key, value) {
+ if (key === 'value' && value instanceof RegExp) {
+ value = value.toString();
+ }
+ return value;
+}
+
+function run(content) {
+ syntax = esprima.parse(content, options);
+ console.log(JSON.stringify(syntax, adjustRegexLiteral, 4));
+}
+
+try {
+ if (fname && (fname !== '-' || forceFile)) {
+ run(fs.readFileSync(fname, 'utf-8'));
+ } else {
+ var content = '';
+ process.stdin.resume();
+ process.stdin.on('data', function(chunk) {
+ content += chunk;
+ });
+ process.stdin.on('end', function() {
+ run(content);
+ });
+ }
+} catch (e) {
+ console.log('Error: ' + e.message);
+ process.exit(1);
+}
diff --git a/node_modules/esprima/bin/esvalidate.js b/node_modules/esprima/bin/esvalidate.js
new file mode 100755
index 00000000..d49a7e40
--- /dev/null
+++ b/node_modules/esprima/bin/esvalidate.js
@@ -0,0 +1,236 @@
+#!/usr/bin/env node
+/*
+ Copyright JS Foundation and other contributors, https://js.foundation/
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+*/
+
+/*jslint sloppy:true plusplus:true node:true rhino:true */
+/*global phantom:true */
+
+var fs, system, esprima, options, fnames, forceFile, count;
+
+if (typeof esprima === 'undefined') {
+ // PhantomJS can only require() relative files
+ if (typeof phantom === 'object') {
+ fs = require('fs');
+ system = require('system');
+ esprima = require('./esprima');
+ } else if (typeof require === 'function') {
+ fs = require('fs');
+ try {
+ esprima = require('esprima');
+ } catch (e) {
+ esprima = require('../');
+ }
+ } else if (typeof load === 'function') {
+ try {
+ load('esprima.js');
+ } catch (e) {
+ load('../esprima.js');
+ }
+ }
+}
+
+// Shims to Node.js objects when running under PhantomJS 1.7+.
+if (typeof phantom === 'object') {
+ fs.readFileSync = fs.read;
+ process = {
+ argv: [].slice.call(system.args),
+ exit: phantom.exit,
+ on: function (evt, callback) {
+ callback();
+ }
+ };
+ process.argv.unshift('phantomjs');
+}
+
+// Shims to Node.js objects when running under Rhino.
+if (typeof console === 'undefined' && typeof process === 'undefined') {
+ console = { log: print };
+ fs = { readFileSync: readFile };
+ process = {
+ argv: arguments,
+ exit: quit,
+ on: function (evt, callback) {
+ callback();
+ }
+ };
+ process.argv.unshift('esvalidate.js');
+ process.argv.unshift('rhino');
+}
+
+function showUsage() {
+ console.log('Usage:');
+ console.log(' esvalidate [options] [file.js...]');
+ console.log();
+ console.log('Available options:');
+ console.log();
+ console.log(' --format=type Set the report format, plain (default) or junit');
+ console.log(' -v, --version Print program version');
+ console.log();
+ process.exit(1);
+}
+
+options = {
+ format: 'plain'
+};
+
+fnames = [];
+
+process.argv.splice(2).forEach(function (entry) {
+
+ if (forceFile || entry === '-' || entry.slice(0, 1) !== '-') {
+ fnames.push(entry);
+ } else if (entry === '-h' || entry === '--help') {
+ showUsage();
+ } else if (entry === '-v' || entry === '--version') {
+ console.log('ECMAScript Validator (using Esprima version', esprima.version, ')');
+ console.log();
+ process.exit(0);
+ } else if (entry.slice(0, 9) === '--format=') {
+ options.format = entry.slice(9);
+ if (options.format !== 'plain' && options.format !== 'junit') {
+ console.log('Error: unknown report format ' + options.format + '.');
+ process.exit(1);
+ }
+ } else if (entry === '--') {
+ forceFile = true;
+ } else {
+ console.log('Error: unknown option ' + entry + '.');
+ process.exit(1);
+ }
+});
+
+if (fnames.length === 0) {
+ fnames.push('');
+}
+
+if (options.format === 'junit') {
+ console.log('');
+ console.log('');
+}
+
+count = 0;
+
+function run(fname, content) {
+ var timestamp, syntax, name;
+ try {
+ if (typeof content !== 'string') {
+ throw content;
+ }
+
+ if (content[0] === '#' && content[1] === '!') {
+ content = '//' + content.substr(2, content.length);
+ }
+
+ timestamp = Date.now();
+ syntax = esprima.parse(content, { tolerant: true });
+
+ if (options.format === 'junit') {
+
+ name = fname;
+ if (name.lastIndexOf('/') >= 0) {
+ name = name.slice(name.lastIndexOf('/') + 1);
+ }
+
+ console.log('');
+
+ syntax.errors.forEach(function (error) {
+ var msg = error.message;
+ msg = msg.replace(/^Line\ [0-9]*\:\ /, '');
+ console.log(' ');
+ console.log(' ' +
+ error.message + '(' + name + ':' + error.lineNumber + ')' +
+ ' ');
+ console.log(' ');
+ });
+
+ console.log(' ');
+
+ } else if (options.format === 'plain') {
+
+ syntax.errors.forEach(function (error) {
+ var msg = error.message;
+ msg = msg.replace(/^Line\ [0-9]*\:\ /, '');
+ msg = fname + ':' + error.lineNumber + ': ' + msg;
+ console.log(msg);
+ ++count;
+ });
+
+ }
+ } catch (e) {
+ ++count;
+ if (options.format === 'junit') {
+ console.log('');
+ console.log(' ');
+ console.log(' ' +
+ e.message + '(' + fname + ((e.lineNumber) ? ':' + e.lineNumber : '') +
+ ') ');
+ console.log(' ');
+ console.log(' ');
+ } else {
+ console.log(fname + ':' + e.lineNumber + ': ' + e.message.replace(/^Line\ [0-9]*\:\ /, ''));
+ }
+ }
+}
+
+fnames.forEach(function (fname) {
+ var content = '';
+ try {
+ if (fname && (fname !== '-' || forceFile)) {
+ content = fs.readFileSync(fname, 'utf-8');
+ } else {
+ fname = '';
+ process.stdin.resume();
+ process.stdin.on('data', function(chunk) {
+ content += chunk;
+ });
+ process.stdin.on('end', function() {
+ run(fname, content);
+ });
+ return;
+ }
+ } catch (e) {
+ content = e;
+ }
+ run(fname, content);
+});
+
+process.on('exit', function () {
+ if (options.format === 'junit') {
+ console.log(' ');
+ }
+
+ if (count > 0) {
+ process.exit(1);
+ }
+
+ if (count === 0 && typeof phantom === 'object') {
+ process.exit(0);
+ }
+});
diff --git a/node_modules/esprima/dist/esprima.js b/node_modules/esprima/dist/esprima.js
new file mode 100644
index 00000000..2af3eee1
--- /dev/null
+++ b/node_modules/esprima/dist/esprima.js
@@ -0,0 +1,6709 @@
+(function webpackUniversalModuleDefinition(root, factory) {
+/* istanbul ignore next */
+ if(typeof exports === 'object' && typeof module === 'object')
+ module.exports = factory();
+ else if(typeof define === 'function' && define.amd)
+ define([], factory);
+/* istanbul ignore next */
+ else if(typeof exports === 'object')
+ exports["esprima"] = factory();
+ else
+ root["esprima"] = factory();
+})(this, function() {
+return /******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+
+/******/ // Check if module is in cache
+/* istanbul ignore if */
+/******/ if(installedModules[moduleId])
+/******/ return installedModules[moduleId].exports;
+
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ exports: {},
+/******/ id: moduleId,
+/******/ loaded: false
+/******/ };
+
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+
+/******/ // Flag the module as loaded
+/******/ module.loaded = true;
+
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+
+
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(0);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ /*
+ Copyright JS Foundation and other contributors, https://js.foundation/
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var comment_handler_1 = __webpack_require__(1);
+ var jsx_parser_1 = __webpack_require__(3);
+ var parser_1 = __webpack_require__(8);
+ var tokenizer_1 = __webpack_require__(15);
+ function parse(code, options, delegate) {
+ var commentHandler = null;
+ var proxyDelegate = function (node, metadata) {
+ if (delegate) {
+ delegate(node, metadata);
+ }
+ if (commentHandler) {
+ commentHandler.visit(node, metadata);
+ }
+ };
+ var parserDelegate = (typeof delegate === 'function') ? proxyDelegate : null;
+ var collectComment = false;
+ if (options) {
+ collectComment = (typeof options.comment === 'boolean' && options.comment);
+ var attachComment = (typeof options.attachComment === 'boolean' && options.attachComment);
+ if (collectComment || attachComment) {
+ commentHandler = new comment_handler_1.CommentHandler();
+ commentHandler.attach = attachComment;
+ options.comment = true;
+ parserDelegate = proxyDelegate;
+ }
+ }
+ var isModule = false;
+ if (options && typeof options.sourceType === 'string') {
+ isModule = (options.sourceType === 'module');
+ }
+ var parser;
+ if (options && typeof options.jsx === 'boolean' && options.jsx) {
+ parser = new jsx_parser_1.JSXParser(code, options, parserDelegate);
+ }
+ else {
+ parser = new parser_1.Parser(code, options, parserDelegate);
+ }
+ var program = isModule ? parser.parseModule() : parser.parseScript();
+ var ast = program;
+ if (collectComment && commentHandler) {
+ ast.comments = commentHandler.comments;
+ }
+ if (parser.config.tokens) {
+ ast.tokens = parser.tokens;
+ }
+ if (parser.config.tolerant) {
+ ast.errors = parser.errorHandler.errors;
+ }
+ return ast;
+ }
+ exports.parse = parse;
+ function parseModule(code, options, delegate) {
+ var parsingOptions = options || {};
+ parsingOptions.sourceType = 'module';
+ return parse(code, parsingOptions, delegate);
+ }
+ exports.parseModule = parseModule;
+ function parseScript(code, options, delegate) {
+ var parsingOptions = options || {};
+ parsingOptions.sourceType = 'script';
+ return parse(code, parsingOptions, delegate);
+ }
+ exports.parseScript = parseScript;
+ function tokenize(code, options, delegate) {
+ var tokenizer = new tokenizer_1.Tokenizer(code, options);
+ var tokens;
+ tokens = [];
+ try {
+ while (true) {
+ var token = tokenizer.getNextToken();
+ if (!token) {
+ break;
+ }
+ if (delegate) {
+ token = delegate(token);
+ }
+ tokens.push(token);
+ }
+ }
+ catch (e) {
+ tokenizer.errorHandler.tolerate(e);
+ }
+ if (tokenizer.errorHandler.tolerant) {
+ tokens.errors = tokenizer.errors();
+ }
+ return tokens;
+ }
+ exports.tokenize = tokenize;
+ var syntax_1 = __webpack_require__(2);
+ exports.Syntax = syntax_1.Syntax;
+ // Sync with *.json manifests.
+ exports.version = '4.0.1';
+
+
+/***/ },
+/* 1 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var syntax_1 = __webpack_require__(2);
+ var CommentHandler = (function () {
+ function CommentHandler() {
+ this.attach = false;
+ this.comments = [];
+ this.stack = [];
+ this.leading = [];
+ this.trailing = [];
+ }
+ CommentHandler.prototype.insertInnerComments = function (node, metadata) {
+ // innnerComments for properties empty block
+ // `function a() {/** comments **\/}`
+ if (node.type === syntax_1.Syntax.BlockStatement && node.body.length === 0) {
+ var innerComments = [];
+ for (var i = this.leading.length - 1; i >= 0; --i) {
+ var entry = this.leading[i];
+ if (metadata.end.offset >= entry.start) {
+ innerComments.unshift(entry.comment);
+ this.leading.splice(i, 1);
+ this.trailing.splice(i, 1);
+ }
+ }
+ if (innerComments.length) {
+ node.innerComments = innerComments;
+ }
+ }
+ };
+ CommentHandler.prototype.findTrailingComments = function (metadata) {
+ var trailingComments = [];
+ if (this.trailing.length > 0) {
+ for (var i = this.trailing.length - 1; i >= 0; --i) {
+ var entry_1 = this.trailing[i];
+ if (entry_1.start >= metadata.end.offset) {
+ trailingComments.unshift(entry_1.comment);
+ }
+ }
+ this.trailing.length = 0;
+ return trailingComments;
+ }
+ var entry = this.stack[this.stack.length - 1];
+ if (entry && entry.node.trailingComments) {
+ var firstComment = entry.node.trailingComments[0];
+ if (firstComment && firstComment.range[0] >= metadata.end.offset) {
+ trailingComments = entry.node.trailingComments;
+ delete entry.node.trailingComments;
+ }
+ }
+ return trailingComments;
+ };
+ CommentHandler.prototype.findLeadingComments = function (metadata) {
+ var leadingComments = [];
+ var target;
+ while (this.stack.length > 0) {
+ var entry = this.stack[this.stack.length - 1];
+ if (entry && entry.start >= metadata.start.offset) {
+ target = entry.node;
+ this.stack.pop();
+ }
+ else {
+ break;
+ }
+ }
+ if (target) {
+ var count = target.leadingComments ? target.leadingComments.length : 0;
+ for (var i = count - 1; i >= 0; --i) {
+ var comment = target.leadingComments[i];
+ if (comment.range[1] <= metadata.start.offset) {
+ leadingComments.unshift(comment);
+ target.leadingComments.splice(i, 1);
+ }
+ }
+ if (target.leadingComments && target.leadingComments.length === 0) {
+ delete target.leadingComments;
+ }
+ return leadingComments;
+ }
+ for (var i = this.leading.length - 1; i >= 0; --i) {
+ var entry = this.leading[i];
+ if (entry.start <= metadata.start.offset) {
+ leadingComments.unshift(entry.comment);
+ this.leading.splice(i, 1);
+ }
+ }
+ return leadingComments;
+ };
+ CommentHandler.prototype.visitNode = function (node, metadata) {
+ if (node.type === syntax_1.Syntax.Program && node.body.length > 0) {
+ return;
+ }
+ this.insertInnerComments(node, metadata);
+ var trailingComments = this.findTrailingComments(metadata);
+ var leadingComments = this.findLeadingComments(metadata);
+ if (leadingComments.length > 0) {
+ node.leadingComments = leadingComments;
+ }
+ if (trailingComments.length > 0) {
+ node.trailingComments = trailingComments;
+ }
+ this.stack.push({
+ node: node,
+ start: metadata.start.offset
+ });
+ };
+ CommentHandler.prototype.visitComment = function (node, metadata) {
+ var type = (node.type[0] === 'L') ? 'Line' : 'Block';
+ var comment = {
+ type: type,
+ value: node.value
+ };
+ if (node.range) {
+ comment.range = node.range;
+ }
+ if (node.loc) {
+ comment.loc = node.loc;
+ }
+ this.comments.push(comment);
+ if (this.attach) {
+ var entry = {
+ comment: {
+ type: type,
+ value: node.value,
+ range: [metadata.start.offset, metadata.end.offset]
+ },
+ start: metadata.start.offset
+ };
+ if (node.loc) {
+ entry.comment.loc = node.loc;
+ }
+ node.type = type;
+ this.leading.push(entry);
+ this.trailing.push(entry);
+ }
+ };
+ CommentHandler.prototype.visit = function (node, metadata) {
+ if (node.type === 'LineComment') {
+ this.visitComment(node, metadata);
+ }
+ else if (node.type === 'BlockComment') {
+ this.visitComment(node, metadata);
+ }
+ else if (this.attach) {
+ this.visitNode(node, metadata);
+ }
+ };
+ return CommentHandler;
+ }());
+ exports.CommentHandler = CommentHandler;
+
+
+/***/ },
+/* 2 */
+/***/ function(module, exports) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.Syntax = {
+ AssignmentExpression: 'AssignmentExpression',
+ AssignmentPattern: 'AssignmentPattern',
+ ArrayExpression: 'ArrayExpression',
+ ArrayPattern: 'ArrayPattern',
+ ArrowFunctionExpression: 'ArrowFunctionExpression',
+ AwaitExpression: 'AwaitExpression',
+ BlockStatement: 'BlockStatement',
+ BinaryExpression: 'BinaryExpression',
+ BreakStatement: 'BreakStatement',
+ CallExpression: 'CallExpression',
+ CatchClause: 'CatchClause',
+ ClassBody: 'ClassBody',
+ ClassDeclaration: 'ClassDeclaration',
+ ClassExpression: 'ClassExpression',
+ ConditionalExpression: 'ConditionalExpression',
+ ContinueStatement: 'ContinueStatement',
+ DoWhileStatement: 'DoWhileStatement',
+ DebuggerStatement: 'DebuggerStatement',
+ EmptyStatement: 'EmptyStatement',
+ ExportAllDeclaration: 'ExportAllDeclaration',
+ ExportDefaultDeclaration: 'ExportDefaultDeclaration',
+ ExportNamedDeclaration: 'ExportNamedDeclaration',
+ ExportSpecifier: 'ExportSpecifier',
+ ExpressionStatement: 'ExpressionStatement',
+ ForStatement: 'ForStatement',
+ ForOfStatement: 'ForOfStatement',
+ ForInStatement: 'ForInStatement',
+ FunctionDeclaration: 'FunctionDeclaration',
+ FunctionExpression: 'FunctionExpression',
+ Identifier: 'Identifier',
+ IfStatement: 'IfStatement',
+ ImportDeclaration: 'ImportDeclaration',
+ ImportDefaultSpecifier: 'ImportDefaultSpecifier',
+ ImportNamespaceSpecifier: 'ImportNamespaceSpecifier',
+ ImportSpecifier: 'ImportSpecifier',
+ Literal: 'Literal',
+ LabeledStatement: 'LabeledStatement',
+ LogicalExpression: 'LogicalExpression',
+ MemberExpression: 'MemberExpression',
+ MetaProperty: 'MetaProperty',
+ MethodDefinition: 'MethodDefinition',
+ NewExpression: 'NewExpression',
+ ObjectExpression: 'ObjectExpression',
+ ObjectPattern: 'ObjectPattern',
+ Program: 'Program',
+ Property: 'Property',
+ RestElement: 'RestElement',
+ ReturnStatement: 'ReturnStatement',
+ SequenceExpression: 'SequenceExpression',
+ SpreadElement: 'SpreadElement',
+ Super: 'Super',
+ SwitchCase: 'SwitchCase',
+ SwitchStatement: 'SwitchStatement',
+ TaggedTemplateExpression: 'TaggedTemplateExpression',
+ TemplateElement: 'TemplateElement',
+ TemplateLiteral: 'TemplateLiteral',
+ ThisExpression: 'ThisExpression',
+ ThrowStatement: 'ThrowStatement',
+ TryStatement: 'TryStatement',
+ UnaryExpression: 'UnaryExpression',
+ UpdateExpression: 'UpdateExpression',
+ VariableDeclaration: 'VariableDeclaration',
+ VariableDeclarator: 'VariableDeclarator',
+ WhileStatement: 'WhileStatement',
+ WithStatement: 'WithStatement',
+ YieldExpression: 'YieldExpression'
+ };
+
+
+/***/ },
+/* 3 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+/* istanbul ignore next */
+ var __extends = (this && this.__extends) || (function () {
+ var extendStatics = Object.setPrototypeOf ||
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
+ return function (d, b) {
+ extendStatics(d, b);
+ function __() { this.constructor = d; }
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
+ };
+ })();
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var character_1 = __webpack_require__(4);
+ var JSXNode = __webpack_require__(5);
+ var jsx_syntax_1 = __webpack_require__(6);
+ var Node = __webpack_require__(7);
+ var parser_1 = __webpack_require__(8);
+ var token_1 = __webpack_require__(13);
+ var xhtml_entities_1 = __webpack_require__(14);
+ token_1.TokenName[100 /* Identifier */] = 'JSXIdentifier';
+ token_1.TokenName[101 /* Text */] = 'JSXText';
+ // Fully qualified element name, e.g. returns "svg:path"
+ function getQualifiedElementName(elementName) {
+ var qualifiedName;
+ switch (elementName.type) {
+ case jsx_syntax_1.JSXSyntax.JSXIdentifier:
+ var id = elementName;
+ qualifiedName = id.name;
+ break;
+ case jsx_syntax_1.JSXSyntax.JSXNamespacedName:
+ var ns = elementName;
+ qualifiedName = getQualifiedElementName(ns.namespace) + ':' +
+ getQualifiedElementName(ns.name);
+ break;
+ case jsx_syntax_1.JSXSyntax.JSXMemberExpression:
+ var expr = elementName;
+ qualifiedName = getQualifiedElementName(expr.object) + '.' +
+ getQualifiedElementName(expr.property);
+ break;
+ /* istanbul ignore next */
+ default:
+ break;
+ }
+ return qualifiedName;
+ }
+ var JSXParser = (function (_super) {
+ __extends(JSXParser, _super);
+ function JSXParser(code, options, delegate) {
+ return _super.call(this, code, options, delegate) || this;
+ }
+ JSXParser.prototype.parsePrimaryExpression = function () {
+ return this.match('<') ? this.parseJSXRoot() : _super.prototype.parsePrimaryExpression.call(this);
+ };
+ JSXParser.prototype.startJSX = function () {
+ // Unwind the scanner before the lookahead token.
+ this.scanner.index = this.startMarker.index;
+ this.scanner.lineNumber = this.startMarker.line;
+ this.scanner.lineStart = this.startMarker.index - this.startMarker.column;
+ };
+ JSXParser.prototype.finishJSX = function () {
+ // Prime the next lookahead.
+ this.nextToken();
+ };
+ JSXParser.prototype.reenterJSX = function () {
+ this.startJSX();
+ this.expectJSX('}');
+ // Pop the closing '}' added from the lookahead.
+ if (this.config.tokens) {
+ this.tokens.pop();
+ }
+ };
+ JSXParser.prototype.createJSXNode = function () {
+ this.collectComments();
+ return {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart
+ };
+ };
+ JSXParser.prototype.createJSXChildNode = function () {
+ return {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart
+ };
+ };
+ JSXParser.prototype.scanXHTMLEntity = function (quote) {
+ var result = '&';
+ var valid = true;
+ var terminated = false;
+ var numeric = false;
+ var hex = false;
+ while (!this.scanner.eof() && valid && !terminated) {
+ var ch = this.scanner.source[this.scanner.index];
+ if (ch === quote) {
+ break;
+ }
+ terminated = (ch === ';');
+ result += ch;
+ ++this.scanner.index;
+ if (!terminated) {
+ switch (result.length) {
+ case 2:
+ // e.g. '{'
+ numeric = (ch === '#');
+ break;
+ case 3:
+ if (numeric) {
+ // e.g. 'A'
+ hex = (ch === 'x');
+ valid = hex || character_1.Character.isDecimalDigit(ch.charCodeAt(0));
+ numeric = numeric && !hex;
+ }
+ break;
+ default:
+ valid = valid && !(numeric && !character_1.Character.isDecimalDigit(ch.charCodeAt(0)));
+ valid = valid && !(hex && !character_1.Character.isHexDigit(ch.charCodeAt(0)));
+ break;
+ }
+ }
+ }
+ if (valid && terminated && result.length > 2) {
+ // e.g. 'A' becomes just '#x41'
+ var str = result.substr(1, result.length - 2);
+ if (numeric && str.length > 1) {
+ result = String.fromCharCode(parseInt(str.substr(1), 10));
+ }
+ else if (hex && str.length > 2) {
+ result = String.fromCharCode(parseInt('0' + str.substr(1), 16));
+ }
+ else if (!numeric && !hex && xhtml_entities_1.XHTMLEntities[str]) {
+ result = xhtml_entities_1.XHTMLEntities[str];
+ }
+ }
+ return result;
+ };
+ // Scan the next JSX token. This replaces Scanner#lex when in JSX mode.
+ JSXParser.prototype.lexJSX = function () {
+ var cp = this.scanner.source.charCodeAt(this.scanner.index);
+ // < > / : = { }
+ if (cp === 60 || cp === 62 || cp === 47 || cp === 58 || cp === 61 || cp === 123 || cp === 125) {
+ var value = this.scanner.source[this.scanner.index++];
+ return {
+ type: 7 /* Punctuator */,
+ value: value,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: this.scanner.index - 1,
+ end: this.scanner.index
+ };
+ }
+ // " '
+ if (cp === 34 || cp === 39) {
+ var start = this.scanner.index;
+ var quote = this.scanner.source[this.scanner.index++];
+ var str = '';
+ while (!this.scanner.eof()) {
+ var ch = this.scanner.source[this.scanner.index++];
+ if (ch === quote) {
+ break;
+ }
+ else if (ch === '&') {
+ str += this.scanXHTMLEntity(quote);
+ }
+ else {
+ str += ch;
+ }
+ }
+ return {
+ type: 8 /* StringLiteral */,
+ value: str,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: start,
+ end: this.scanner.index
+ };
+ }
+ // ... or .
+ if (cp === 46) {
+ var n1 = this.scanner.source.charCodeAt(this.scanner.index + 1);
+ var n2 = this.scanner.source.charCodeAt(this.scanner.index + 2);
+ var value = (n1 === 46 && n2 === 46) ? '...' : '.';
+ var start = this.scanner.index;
+ this.scanner.index += value.length;
+ return {
+ type: 7 /* Punctuator */,
+ value: value,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: start,
+ end: this.scanner.index
+ };
+ }
+ // `
+ if (cp === 96) {
+ // Only placeholder, since it will be rescanned as a real assignment expression.
+ return {
+ type: 10 /* Template */,
+ value: '',
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: this.scanner.index,
+ end: this.scanner.index
+ };
+ }
+ // Identifer can not contain backslash (char code 92).
+ if (character_1.Character.isIdentifierStart(cp) && (cp !== 92)) {
+ var start = this.scanner.index;
+ ++this.scanner.index;
+ while (!this.scanner.eof()) {
+ var ch = this.scanner.source.charCodeAt(this.scanner.index);
+ if (character_1.Character.isIdentifierPart(ch) && (ch !== 92)) {
+ ++this.scanner.index;
+ }
+ else if (ch === 45) {
+ // Hyphen (char code 45) can be part of an identifier.
+ ++this.scanner.index;
+ }
+ else {
+ break;
+ }
+ }
+ var id = this.scanner.source.slice(start, this.scanner.index);
+ return {
+ type: 100 /* Identifier */,
+ value: id,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: start,
+ end: this.scanner.index
+ };
+ }
+ return this.scanner.lex();
+ };
+ JSXParser.prototype.nextJSXToken = function () {
+ this.collectComments();
+ this.startMarker.index = this.scanner.index;
+ this.startMarker.line = this.scanner.lineNumber;
+ this.startMarker.column = this.scanner.index - this.scanner.lineStart;
+ var token = this.lexJSX();
+ this.lastMarker.index = this.scanner.index;
+ this.lastMarker.line = this.scanner.lineNumber;
+ this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
+ if (this.config.tokens) {
+ this.tokens.push(this.convertToken(token));
+ }
+ return token;
+ };
+ JSXParser.prototype.nextJSXText = function () {
+ this.startMarker.index = this.scanner.index;
+ this.startMarker.line = this.scanner.lineNumber;
+ this.startMarker.column = this.scanner.index - this.scanner.lineStart;
+ var start = this.scanner.index;
+ var text = '';
+ while (!this.scanner.eof()) {
+ var ch = this.scanner.source[this.scanner.index];
+ if (ch === '{' || ch === '<') {
+ break;
+ }
+ ++this.scanner.index;
+ text += ch;
+ if (character_1.Character.isLineTerminator(ch.charCodeAt(0))) {
+ ++this.scanner.lineNumber;
+ if (ch === '\r' && this.scanner.source[this.scanner.index] === '\n') {
+ ++this.scanner.index;
+ }
+ this.scanner.lineStart = this.scanner.index;
+ }
+ }
+ this.lastMarker.index = this.scanner.index;
+ this.lastMarker.line = this.scanner.lineNumber;
+ this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
+ var token = {
+ type: 101 /* Text */,
+ value: text,
+ lineNumber: this.scanner.lineNumber,
+ lineStart: this.scanner.lineStart,
+ start: start,
+ end: this.scanner.index
+ };
+ if ((text.length > 0) && this.config.tokens) {
+ this.tokens.push(this.convertToken(token));
+ }
+ return token;
+ };
+ JSXParser.prototype.peekJSXToken = function () {
+ var state = this.scanner.saveState();
+ this.scanner.scanComments();
+ var next = this.lexJSX();
+ this.scanner.restoreState(state);
+ return next;
+ };
+ // Expect the next JSX token to match the specified punctuator.
+ // If not, an exception will be thrown.
+ JSXParser.prototype.expectJSX = function (value) {
+ var token = this.nextJSXToken();
+ if (token.type !== 7 /* Punctuator */ || token.value !== value) {
+ this.throwUnexpectedToken(token);
+ }
+ };
+ // Return true if the next JSX token matches the specified punctuator.
+ JSXParser.prototype.matchJSX = function (value) {
+ var next = this.peekJSXToken();
+ return next.type === 7 /* Punctuator */ && next.value === value;
+ };
+ JSXParser.prototype.parseJSXIdentifier = function () {
+ var node = this.createJSXNode();
+ var token = this.nextJSXToken();
+ if (token.type !== 100 /* Identifier */) {
+ this.throwUnexpectedToken(token);
+ }
+ return this.finalize(node, new JSXNode.JSXIdentifier(token.value));
+ };
+ JSXParser.prototype.parseJSXElementName = function () {
+ var node = this.createJSXNode();
+ var elementName = this.parseJSXIdentifier();
+ if (this.matchJSX(':')) {
+ var namespace = elementName;
+ this.expectJSX(':');
+ var name_1 = this.parseJSXIdentifier();
+ elementName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_1));
+ }
+ else if (this.matchJSX('.')) {
+ while (this.matchJSX('.')) {
+ var object = elementName;
+ this.expectJSX('.');
+ var property = this.parseJSXIdentifier();
+ elementName = this.finalize(node, new JSXNode.JSXMemberExpression(object, property));
+ }
+ }
+ return elementName;
+ };
+ JSXParser.prototype.parseJSXAttributeName = function () {
+ var node = this.createJSXNode();
+ var attributeName;
+ var identifier = this.parseJSXIdentifier();
+ if (this.matchJSX(':')) {
+ var namespace = identifier;
+ this.expectJSX(':');
+ var name_2 = this.parseJSXIdentifier();
+ attributeName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name_2));
+ }
+ else {
+ attributeName = identifier;
+ }
+ return attributeName;
+ };
+ JSXParser.prototype.parseJSXStringLiteralAttribute = function () {
+ var node = this.createJSXNode();
+ var token = this.nextJSXToken();
+ if (token.type !== 8 /* StringLiteral */) {
+ this.throwUnexpectedToken(token);
+ }
+ var raw = this.getTokenRaw(token);
+ return this.finalize(node, new Node.Literal(token.value, raw));
+ };
+ JSXParser.prototype.parseJSXExpressionAttribute = function () {
+ var node = this.createJSXNode();
+ this.expectJSX('{');
+ this.finishJSX();
+ if (this.match('}')) {
+ this.tolerateError('JSX attributes must only be assigned a non-empty expression');
+ }
+ var expression = this.parseAssignmentExpression();
+ this.reenterJSX();
+ return this.finalize(node, new JSXNode.JSXExpressionContainer(expression));
+ };
+ JSXParser.prototype.parseJSXAttributeValue = function () {
+ return this.matchJSX('{') ? this.parseJSXExpressionAttribute() :
+ this.matchJSX('<') ? this.parseJSXElement() : this.parseJSXStringLiteralAttribute();
+ };
+ JSXParser.prototype.parseJSXNameValueAttribute = function () {
+ var node = this.createJSXNode();
+ var name = this.parseJSXAttributeName();
+ var value = null;
+ if (this.matchJSX('=')) {
+ this.expectJSX('=');
+ value = this.parseJSXAttributeValue();
+ }
+ return this.finalize(node, new JSXNode.JSXAttribute(name, value));
+ };
+ JSXParser.prototype.parseJSXSpreadAttribute = function () {
+ var node = this.createJSXNode();
+ this.expectJSX('{');
+ this.expectJSX('...');
+ this.finishJSX();
+ var argument = this.parseAssignmentExpression();
+ this.reenterJSX();
+ return this.finalize(node, new JSXNode.JSXSpreadAttribute(argument));
+ };
+ JSXParser.prototype.parseJSXAttributes = function () {
+ var attributes = [];
+ while (!this.matchJSX('/') && !this.matchJSX('>')) {
+ var attribute = this.matchJSX('{') ? this.parseJSXSpreadAttribute() :
+ this.parseJSXNameValueAttribute();
+ attributes.push(attribute);
+ }
+ return attributes;
+ };
+ JSXParser.prototype.parseJSXOpeningElement = function () {
+ var node = this.createJSXNode();
+ this.expectJSX('<');
+ var name = this.parseJSXElementName();
+ var attributes = this.parseJSXAttributes();
+ var selfClosing = this.matchJSX('/');
+ if (selfClosing) {
+ this.expectJSX('/');
+ }
+ this.expectJSX('>');
+ return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes));
+ };
+ JSXParser.prototype.parseJSXBoundaryElement = function () {
+ var node = this.createJSXNode();
+ this.expectJSX('<');
+ if (this.matchJSX('/')) {
+ this.expectJSX('/');
+ var name_3 = this.parseJSXElementName();
+ this.expectJSX('>');
+ return this.finalize(node, new JSXNode.JSXClosingElement(name_3));
+ }
+ var name = this.parseJSXElementName();
+ var attributes = this.parseJSXAttributes();
+ var selfClosing = this.matchJSX('/');
+ if (selfClosing) {
+ this.expectJSX('/');
+ }
+ this.expectJSX('>');
+ return this.finalize(node, new JSXNode.JSXOpeningElement(name, selfClosing, attributes));
+ };
+ JSXParser.prototype.parseJSXEmptyExpression = function () {
+ var node = this.createJSXChildNode();
+ this.collectComments();
+ this.lastMarker.index = this.scanner.index;
+ this.lastMarker.line = this.scanner.lineNumber;
+ this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
+ return this.finalize(node, new JSXNode.JSXEmptyExpression());
+ };
+ JSXParser.prototype.parseJSXExpressionContainer = function () {
+ var node = this.createJSXNode();
+ this.expectJSX('{');
+ var expression;
+ if (this.matchJSX('}')) {
+ expression = this.parseJSXEmptyExpression();
+ this.expectJSX('}');
+ }
+ else {
+ this.finishJSX();
+ expression = this.parseAssignmentExpression();
+ this.reenterJSX();
+ }
+ return this.finalize(node, new JSXNode.JSXExpressionContainer(expression));
+ };
+ JSXParser.prototype.parseJSXChildren = function () {
+ var children = [];
+ while (!this.scanner.eof()) {
+ var node = this.createJSXChildNode();
+ var token = this.nextJSXText();
+ if (token.start < token.end) {
+ var raw = this.getTokenRaw(token);
+ var child = this.finalize(node, new JSXNode.JSXText(token.value, raw));
+ children.push(child);
+ }
+ if (this.scanner.source[this.scanner.index] === '{') {
+ var container = this.parseJSXExpressionContainer();
+ children.push(container);
+ }
+ else {
+ break;
+ }
+ }
+ return children;
+ };
+ JSXParser.prototype.parseComplexJSXElement = function (el) {
+ var stack = [];
+ while (!this.scanner.eof()) {
+ el.children = el.children.concat(this.parseJSXChildren());
+ var node = this.createJSXChildNode();
+ var element = this.parseJSXBoundaryElement();
+ if (element.type === jsx_syntax_1.JSXSyntax.JSXOpeningElement) {
+ var opening = element;
+ if (opening.selfClosing) {
+ var child = this.finalize(node, new JSXNode.JSXElement(opening, [], null));
+ el.children.push(child);
+ }
+ else {
+ stack.push(el);
+ el = { node: node, opening: opening, closing: null, children: [] };
+ }
+ }
+ if (element.type === jsx_syntax_1.JSXSyntax.JSXClosingElement) {
+ el.closing = element;
+ var open_1 = getQualifiedElementName(el.opening.name);
+ var close_1 = getQualifiedElementName(el.closing.name);
+ if (open_1 !== close_1) {
+ this.tolerateError('Expected corresponding JSX closing tag for %0', open_1);
+ }
+ if (stack.length > 0) {
+ var child = this.finalize(el.node, new JSXNode.JSXElement(el.opening, el.children, el.closing));
+ el = stack[stack.length - 1];
+ el.children.push(child);
+ stack.pop();
+ }
+ else {
+ break;
+ }
+ }
+ }
+ return el;
+ };
+ JSXParser.prototype.parseJSXElement = function () {
+ var node = this.createJSXNode();
+ var opening = this.parseJSXOpeningElement();
+ var children = [];
+ var closing = null;
+ if (!opening.selfClosing) {
+ var el = this.parseComplexJSXElement({ node: node, opening: opening, closing: closing, children: children });
+ children = el.children;
+ closing = el.closing;
+ }
+ return this.finalize(node, new JSXNode.JSXElement(opening, children, closing));
+ };
+ JSXParser.prototype.parseJSXRoot = function () {
+ // Pop the opening '<' added from the lookahead.
+ if (this.config.tokens) {
+ this.tokens.pop();
+ }
+ this.startJSX();
+ var element = this.parseJSXElement();
+ this.finishJSX();
+ return element;
+ };
+ JSXParser.prototype.isStartOfExpression = function () {
+ return _super.prototype.isStartOfExpression.call(this) || this.match('<');
+ };
+ return JSXParser;
+ }(parser_1.Parser));
+ exports.JSXParser = JSXParser;
+
+
+/***/ },
+/* 4 */
+/***/ function(module, exports) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ // See also tools/generate-unicode-regex.js.
+ var Regex = {
+ // Unicode v8.0.0 NonAsciiIdentifierStart:
+ NonAsciiIdentifierStart: /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,
+ // Unicode v8.0.0 NonAsciiIdentifierPart:
+ NonAsciiIdentifierPart: /[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AD\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
+ };
+ exports.Character = {
+ /* tslint:disable:no-bitwise */
+ fromCodePoint: function (cp) {
+ return (cp < 0x10000) ? String.fromCharCode(cp) :
+ String.fromCharCode(0xD800 + ((cp - 0x10000) >> 10)) +
+ String.fromCharCode(0xDC00 + ((cp - 0x10000) & 1023));
+ },
+ // https://tc39.github.io/ecma262/#sec-white-space
+ isWhiteSpace: function (cp) {
+ return (cp === 0x20) || (cp === 0x09) || (cp === 0x0B) || (cp === 0x0C) || (cp === 0xA0) ||
+ (cp >= 0x1680 && [0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000, 0xFEFF].indexOf(cp) >= 0);
+ },
+ // https://tc39.github.io/ecma262/#sec-line-terminators
+ isLineTerminator: function (cp) {
+ return (cp === 0x0A) || (cp === 0x0D) || (cp === 0x2028) || (cp === 0x2029);
+ },
+ // https://tc39.github.io/ecma262/#sec-names-and-keywords
+ isIdentifierStart: function (cp) {
+ return (cp === 0x24) || (cp === 0x5F) ||
+ (cp >= 0x41 && cp <= 0x5A) ||
+ (cp >= 0x61 && cp <= 0x7A) ||
+ (cp === 0x5C) ||
+ ((cp >= 0x80) && Regex.NonAsciiIdentifierStart.test(exports.Character.fromCodePoint(cp)));
+ },
+ isIdentifierPart: function (cp) {
+ return (cp === 0x24) || (cp === 0x5F) ||
+ (cp >= 0x41 && cp <= 0x5A) ||
+ (cp >= 0x61 && cp <= 0x7A) ||
+ (cp >= 0x30 && cp <= 0x39) ||
+ (cp === 0x5C) ||
+ ((cp >= 0x80) && Regex.NonAsciiIdentifierPart.test(exports.Character.fromCodePoint(cp)));
+ },
+ // https://tc39.github.io/ecma262/#sec-literals-numeric-literals
+ isDecimalDigit: function (cp) {
+ return (cp >= 0x30 && cp <= 0x39); // 0..9
+ },
+ isHexDigit: function (cp) {
+ return (cp >= 0x30 && cp <= 0x39) ||
+ (cp >= 0x41 && cp <= 0x46) ||
+ (cp >= 0x61 && cp <= 0x66); // a..f
+ },
+ isOctalDigit: function (cp) {
+ return (cp >= 0x30 && cp <= 0x37); // 0..7
+ }
+ };
+
+
+/***/ },
+/* 5 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var jsx_syntax_1 = __webpack_require__(6);
+ /* tslint:disable:max-classes-per-file */
+ var JSXClosingElement = (function () {
+ function JSXClosingElement(name) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXClosingElement;
+ this.name = name;
+ }
+ return JSXClosingElement;
+ }());
+ exports.JSXClosingElement = JSXClosingElement;
+ var JSXElement = (function () {
+ function JSXElement(openingElement, children, closingElement) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXElement;
+ this.openingElement = openingElement;
+ this.children = children;
+ this.closingElement = closingElement;
+ }
+ return JSXElement;
+ }());
+ exports.JSXElement = JSXElement;
+ var JSXEmptyExpression = (function () {
+ function JSXEmptyExpression() {
+ this.type = jsx_syntax_1.JSXSyntax.JSXEmptyExpression;
+ }
+ return JSXEmptyExpression;
+ }());
+ exports.JSXEmptyExpression = JSXEmptyExpression;
+ var JSXExpressionContainer = (function () {
+ function JSXExpressionContainer(expression) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXExpressionContainer;
+ this.expression = expression;
+ }
+ return JSXExpressionContainer;
+ }());
+ exports.JSXExpressionContainer = JSXExpressionContainer;
+ var JSXIdentifier = (function () {
+ function JSXIdentifier(name) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXIdentifier;
+ this.name = name;
+ }
+ return JSXIdentifier;
+ }());
+ exports.JSXIdentifier = JSXIdentifier;
+ var JSXMemberExpression = (function () {
+ function JSXMemberExpression(object, property) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXMemberExpression;
+ this.object = object;
+ this.property = property;
+ }
+ return JSXMemberExpression;
+ }());
+ exports.JSXMemberExpression = JSXMemberExpression;
+ var JSXAttribute = (function () {
+ function JSXAttribute(name, value) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXAttribute;
+ this.name = name;
+ this.value = value;
+ }
+ return JSXAttribute;
+ }());
+ exports.JSXAttribute = JSXAttribute;
+ var JSXNamespacedName = (function () {
+ function JSXNamespacedName(namespace, name) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXNamespacedName;
+ this.namespace = namespace;
+ this.name = name;
+ }
+ return JSXNamespacedName;
+ }());
+ exports.JSXNamespacedName = JSXNamespacedName;
+ var JSXOpeningElement = (function () {
+ function JSXOpeningElement(name, selfClosing, attributes) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXOpeningElement;
+ this.name = name;
+ this.selfClosing = selfClosing;
+ this.attributes = attributes;
+ }
+ return JSXOpeningElement;
+ }());
+ exports.JSXOpeningElement = JSXOpeningElement;
+ var JSXSpreadAttribute = (function () {
+ function JSXSpreadAttribute(argument) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXSpreadAttribute;
+ this.argument = argument;
+ }
+ return JSXSpreadAttribute;
+ }());
+ exports.JSXSpreadAttribute = JSXSpreadAttribute;
+ var JSXText = (function () {
+ function JSXText(value, raw) {
+ this.type = jsx_syntax_1.JSXSyntax.JSXText;
+ this.value = value;
+ this.raw = raw;
+ }
+ return JSXText;
+ }());
+ exports.JSXText = JSXText;
+
+
+/***/ },
+/* 6 */
+/***/ function(module, exports) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ exports.JSXSyntax = {
+ JSXAttribute: 'JSXAttribute',
+ JSXClosingElement: 'JSXClosingElement',
+ JSXElement: 'JSXElement',
+ JSXEmptyExpression: 'JSXEmptyExpression',
+ JSXExpressionContainer: 'JSXExpressionContainer',
+ JSXIdentifier: 'JSXIdentifier',
+ JSXMemberExpression: 'JSXMemberExpression',
+ JSXNamespacedName: 'JSXNamespacedName',
+ JSXOpeningElement: 'JSXOpeningElement',
+ JSXSpreadAttribute: 'JSXSpreadAttribute',
+ JSXText: 'JSXText'
+ };
+
+
+/***/ },
+/* 7 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var syntax_1 = __webpack_require__(2);
+ /* tslint:disable:max-classes-per-file */
+ var ArrayExpression = (function () {
+ function ArrayExpression(elements) {
+ this.type = syntax_1.Syntax.ArrayExpression;
+ this.elements = elements;
+ }
+ return ArrayExpression;
+ }());
+ exports.ArrayExpression = ArrayExpression;
+ var ArrayPattern = (function () {
+ function ArrayPattern(elements) {
+ this.type = syntax_1.Syntax.ArrayPattern;
+ this.elements = elements;
+ }
+ return ArrayPattern;
+ }());
+ exports.ArrayPattern = ArrayPattern;
+ var ArrowFunctionExpression = (function () {
+ function ArrowFunctionExpression(params, body, expression) {
+ this.type = syntax_1.Syntax.ArrowFunctionExpression;
+ this.id = null;
+ this.params = params;
+ this.body = body;
+ this.generator = false;
+ this.expression = expression;
+ this.async = false;
+ }
+ return ArrowFunctionExpression;
+ }());
+ exports.ArrowFunctionExpression = ArrowFunctionExpression;
+ var AssignmentExpression = (function () {
+ function AssignmentExpression(operator, left, right) {
+ this.type = syntax_1.Syntax.AssignmentExpression;
+ this.operator = operator;
+ this.left = left;
+ this.right = right;
+ }
+ return AssignmentExpression;
+ }());
+ exports.AssignmentExpression = AssignmentExpression;
+ var AssignmentPattern = (function () {
+ function AssignmentPattern(left, right) {
+ this.type = syntax_1.Syntax.AssignmentPattern;
+ this.left = left;
+ this.right = right;
+ }
+ return AssignmentPattern;
+ }());
+ exports.AssignmentPattern = AssignmentPattern;
+ var AsyncArrowFunctionExpression = (function () {
+ function AsyncArrowFunctionExpression(params, body, expression) {
+ this.type = syntax_1.Syntax.ArrowFunctionExpression;
+ this.id = null;
+ this.params = params;
+ this.body = body;
+ this.generator = false;
+ this.expression = expression;
+ this.async = true;
+ }
+ return AsyncArrowFunctionExpression;
+ }());
+ exports.AsyncArrowFunctionExpression = AsyncArrowFunctionExpression;
+ var AsyncFunctionDeclaration = (function () {
+ function AsyncFunctionDeclaration(id, params, body) {
+ this.type = syntax_1.Syntax.FunctionDeclaration;
+ this.id = id;
+ this.params = params;
+ this.body = body;
+ this.generator = false;
+ this.expression = false;
+ this.async = true;
+ }
+ return AsyncFunctionDeclaration;
+ }());
+ exports.AsyncFunctionDeclaration = AsyncFunctionDeclaration;
+ var AsyncFunctionExpression = (function () {
+ function AsyncFunctionExpression(id, params, body) {
+ this.type = syntax_1.Syntax.FunctionExpression;
+ this.id = id;
+ this.params = params;
+ this.body = body;
+ this.generator = false;
+ this.expression = false;
+ this.async = true;
+ }
+ return AsyncFunctionExpression;
+ }());
+ exports.AsyncFunctionExpression = AsyncFunctionExpression;
+ var AwaitExpression = (function () {
+ function AwaitExpression(argument) {
+ this.type = syntax_1.Syntax.AwaitExpression;
+ this.argument = argument;
+ }
+ return AwaitExpression;
+ }());
+ exports.AwaitExpression = AwaitExpression;
+ var BinaryExpression = (function () {
+ function BinaryExpression(operator, left, right) {
+ var logical = (operator === '||' || operator === '&&');
+ this.type = logical ? syntax_1.Syntax.LogicalExpression : syntax_1.Syntax.BinaryExpression;
+ this.operator = operator;
+ this.left = left;
+ this.right = right;
+ }
+ return BinaryExpression;
+ }());
+ exports.BinaryExpression = BinaryExpression;
+ var BlockStatement = (function () {
+ function BlockStatement(body) {
+ this.type = syntax_1.Syntax.BlockStatement;
+ this.body = body;
+ }
+ return BlockStatement;
+ }());
+ exports.BlockStatement = BlockStatement;
+ var BreakStatement = (function () {
+ function BreakStatement(label) {
+ this.type = syntax_1.Syntax.BreakStatement;
+ this.label = label;
+ }
+ return BreakStatement;
+ }());
+ exports.BreakStatement = BreakStatement;
+ var CallExpression = (function () {
+ function CallExpression(callee, args) {
+ this.type = syntax_1.Syntax.CallExpression;
+ this.callee = callee;
+ this.arguments = args;
+ }
+ return CallExpression;
+ }());
+ exports.CallExpression = CallExpression;
+ var CatchClause = (function () {
+ function CatchClause(param, body) {
+ this.type = syntax_1.Syntax.CatchClause;
+ this.param = param;
+ this.body = body;
+ }
+ return CatchClause;
+ }());
+ exports.CatchClause = CatchClause;
+ var ClassBody = (function () {
+ function ClassBody(body) {
+ this.type = syntax_1.Syntax.ClassBody;
+ this.body = body;
+ }
+ return ClassBody;
+ }());
+ exports.ClassBody = ClassBody;
+ var ClassDeclaration = (function () {
+ function ClassDeclaration(id, superClass, body) {
+ this.type = syntax_1.Syntax.ClassDeclaration;
+ this.id = id;
+ this.superClass = superClass;
+ this.body = body;
+ }
+ return ClassDeclaration;
+ }());
+ exports.ClassDeclaration = ClassDeclaration;
+ var ClassExpression = (function () {
+ function ClassExpression(id, superClass, body) {
+ this.type = syntax_1.Syntax.ClassExpression;
+ this.id = id;
+ this.superClass = superClass;
+ this.body = body;
+ }
+ return ClassExpression;
+ }());
+ exports.ClassExpression = ClassExpression;
+ var ComputedMemberExpression = (function () {
+ function ComputedMemberExpression(object, property) {
+ this.type = syntax_1.Syntax.MemberExpression;
+ this.computed = true;
+ this.object = object;
+ this.property = property;
+ }
+ return ComputedMemberExpression;
+ }());
+ exports.ComputedMemberExpression = ComputedMemberExpression;
+ var ConditionalExpression = (function () {
+ function ConditionalExpression(test, consequent, alternate) {
+ this.type = syntax_1.Syntax.ConditionalExpression;
+ this.test = test;
+ this.consequent = consequent;
+ this.alternate = alternate;
+ }
+ return ConditionalExpression;
+ }());
+ exports.ConditionalExpression = ConditionalExpression;
+ var ContinueStatement = (function () {
+ function ContinueStatement(label) {
+ this.type = syntax_1.Syntax.ContinueStatement;
+ this.label = label;
+ }
+ return ContinueStatement;
+ }());
+ exports.ContinueStatement = ContinueStatement;
+ var DebuggerStatement = (function () {
+ function DebuggerStatement() {
+ this.type = syntax_1.Syntax.DebuggerStatement;
+ }
+ return DebuggerStatement;
+ }());
+ exports.DebuggerStatement = DebuggerStatement;
+ var Directive = (function () {
+ function Directive(expression, directive) {
+ this.type = syntax_1.Syntax.ExpressionStatement;
+ this.expression = expression;
+ this.directive = directive;
+ }
+ return Directive;
+ }());
+ exports.Directive = Directive;
+ var DoWhileStatement = (function () {
+ function DoWhileStatement(body, test) {
+ this.type = syntax_1.Syntax.DoWhileStatement;
+ this.body = body;
+ this.test = test;
+ }
+ return DoWhileStatement;
+ }());
+ exports.DoWhileStatement = DoWhileStatement;
+ var EmptyStatement = (function () {
+ function EmptyStatement() {
+ this.type = syntax_1.Syntax.EmptyStatement;
+ }
+ return EmptyStatement;
+ }());
+ exports.EmptyStatement = EmptyStatement;
+ var ExportAllDeclaration = (function () {
+ function ExportAllDeclaration(source) {
+ this.type = syntax_1.Syntax.ExportAllDeclaration;
+ this.source = source;
+ }
+ return ExportAllDeclaration;
+ }());
+ exports.ExportAllDeclaration = ExportAllDeclaration;
+ var ExportDefaultDeclaration = (function () {
+ function ExportDefaultDeclaration(declaration) {
+ this.type = syntax_1.Syntax.ExportDefaultDeclaration;
+ this.declaration = declaration;
+ }
+ return ExportDefaultDeclaration;
+ }());
+ exports.ExportDefaultDeclaration = ExportDefaultDeclaration;
+ var ExportNamedDeclaration = (function () {
+ function ExportNamedDeclaration(declaration, specifiers, source) {
+ this.type = syntax_1.Syntax.ExportNamedDeclaration;
+ this.declaration = declaration;
+ this.specifiers = specifiers;
+ this.source = source;
+ }
+ return ExportNamedDeclaration;
+ }());
+ exports.ExportNamedDeclaration = ExportNamedDeclaration;
+ var ExportSpecifier = (function () {
+ function ExportSpecifier(local, exported) {
+ this.type = syntax_1.Syntax.ExportSpecifier;
+ this.exported = exported;
+ this.local = local;
+ }
+ return ExportSpecifier;
+ }());
+ exports.ExportSpecifier = ExportSpecifier;
+ var ExpressionStatement = (function () {
+ function ExpressionStatement(expression) {
+ this.type = syntax_1.Syntax.ExpressionStatement;
+ this.expression = expression;
+ }
+ return ExpressionStatement;
+ }());
+ exports.ExpressionStatement = ExpressionStatement;
+ var ForInStatement = (function () {
+ function ForInStatement(left, right, body) {
+ this.type = syntax_1.Syntax.ForInStatement;
+ this.left = left;
+ this.right = right;
+ this.body = body;
+ this.each = false;
+ }
+ return ForInStatement;
+ }());
+ exports.ForInStatement = ForInStatement;
+ var ForOfStatement = (function () {
+ function ForOfStatement(left, right, body) {
+ this.type = syntax_1.Syntax.ForOfStatement;
+ this.left = left;
+ this.right = right;
+ this.body = body;
+ }
+ return ForOfStatement;
+ }());
+ exports.ForOfStatement = ForOfStatement;
+ var ForStatement = (function () {
+ function ForStatement(init, test, update, body) {
+ this.type = syntax_1.Syntax.ForStatement;
+ this.init = init;
+ this.test = test;
+ this.update = update;
+ this.body = body;
+ }
+ return ForStatement;
+ }());
+ exports.ForStatement = ForStatement;
+ var FunctionDeclaration = (function () {
+ function FunctionDeclaration(id, params, body, generator) {
+ this.type = syntax_1.Syntax.FunctionDeclaration;
+ this.id = id;
+ this.params = params;
+ this.body = body;
+ this.generator = generator;
+ this.expression = false;
+ this.async = false;
+ }
+ return FunctionDeclaration;
+ }());
+ exports.FunctionDeclaration = FunctionDeclaration;
+ var FunctionExpression = (function () {
+ function FunctionExpression(id, params, body, generator) {
+ this.type = syntax_1.Syntax.FunctionExpression;
+ this.id = id;
+ this.params = params;
+ this.body = body;
+ this.generator = generator;
+ this.expression = false;
+ this.async = false;
+ }
+ return FunctionExpression;
+ }());
+ exports.FunctionExpression = FunctionExpression;
+ var Identifier = (function () {
+ function Identifier(name) {
+ this.type = syntax_1.Syntax.Identifier;
+ this.name = name;
+ }
+ return Identifier;
+ }());
+ exports.Identifier = Identifier;
+ var IfStatement = (function () {
+ function IfStatement(test, consequent, alternate) {
+ this.type = syntax_1.Syntax.IfStatement;
+ this.test = test;
+ this.consequent = consequent;
+ this.alternate = alternate;
+ }
+ return IfStatement;
+ }());
+ exports.IfStatement = IfStatement;
+ var ImportDeclaration = (function () {
+ function ImportDeclaration(specifiers, source) {
+ this.type = syntax_1.Syntax.ImportDeclaration;
+ this.specifiers = specifiers;
+ this.source = source;
+ }
+ return ImportDeclaration;
+ }());
+ exports.ImportDeclaration = ImportDeclaration;
+ var ImportDefaultSpecifier = (function () {
+ function ImportDefaultSpecifier(local) {
+ this.type = syntax_1.Syntax.ImportDefaultSpecifier;
+ this.local = local;
+ }
+ return ImportDefaultSpecifier;
+ }());
+ exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
+ var ImportNamespaceSpecifier = (function () {
+ function ImportNamespaceSpecifier(local) {
+ this.type = syntax_1.Syntax.ImportNamespaceSpecifier;
+ this.local = local;
+ }
+ return ImportNamespaceSpecifier;
+ }());
+ exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;
+ var ImportSpecifier = (function () {
+ function ImportSpecifier(local, imported) {
+ this.type = syntax_1.Syntax.ImportSpecifier;
+ this.local = local;
+ this.imported = imported;
+ }
+ return ImportSpecifier;
+ }());
+ exports.ImportSpecifier = ImportSpecifier;
+ var LabeledStatement = (function () {
+ function LabeledStatement(label, body) {
+ this.type = syntax_1.Syntax.LabeledStatement;
+ this.label = label;
+ this.body = body;
+ }
+ return LabeledStatement;
+ }());
+ exports.LabeledStatement = LabeledStatement;
+ var Literal = (function () {
+ function Literal(value, raw) {
+ this.type = syntax_1.Syntax.Literal;
+ this.value = value;
+ this.raw = raw;
+ }
+ return Literal;
+ }());
+ exports.Literal = Literal;
+ var MetaProperty = (function () {
+ function MetaProperty(meta, property) {
+ this.type = syntax_1.Syntax.MetaProperty;
+ this.meta = meta;
+ this.property = property;
+ }
+ return MetaProperty;
+ }());
+ exports.MetaProperty = MetaProperty;
+ var MethodDefinition = (function () {
+ function MethodDefinition(key, computed, value, kind, isStatic) {
+ this.type = syntax_1.Syntax.MethodDefinition;
+ this.key = key;
+ this.computed = computed;
+ this.value = value;
+ this.kind = kind;
+ this.static = isStatic;
+ }
+ return MethodDefinition;
+ }());
+ exports.MethodDefinition = MethodDefinition;
+ var Module = (function () {
+ function Module(body) {
+ this.type = syntax_1.Syntax.Program;
+ this.body = body;
+ this.sourceType = 'module';
+ }
+ return Module;
+ }());
+ exports.Module = Module;
+ var NewExpression = (function () {
+ function NewExpression(callee, args) {
+ this.type = syntax_1.Syntax.NewExpression;
+ this.callee = callee;
+ this.arguments = args;
+ }
+ return NewExpression;
+ }());
+ exports.NewExpression = NewExpression;
+ var ObjectExpression = (function () {
+ function ObjectExpression(properties) {
+ this.type = syntax_1.Syntax.ObjectExpression;
+ this.properties = properties;
+ }
+ return ObjectExpression;
+ }());
+ exports.ObjectExpression = ObjectExpression;
+ var ObjectPattern = (function () {
+ function ObjectPattern(properties) {
+ this.type = syntax_1.Syntax.ObjectPattern;
+ this.properties = properties;
+ }
+ return ObjectPattern;
+ }());
+ exports.ObjectPattern = ObjectPattern;
+ var Property = (function () {
+ function Property(kind, key, computed, value, method, shorthand) {
+ this.type = syntax_1.Syntax.Property;
+ this.key = key;
+ this.computed = computed;
+ this.value = value;
+ this.kind = kind;
+ this.method = method;
+ this.shorthand = shorthand;
+ }
+ return Property;
+ }());
+ exports.Property = Property;
+ var RegexLiteral = (function () {
+ function RegexLiteral(value, raw, pattern, flags) {
+ this.type = syntax_1.Syntax.Literal;
+ this.value = value;
+ this.raw = raw;
+ this.regex = { pattern: pattern, flags: flags };
+ }
+ return RegexLiteral;
+ }());
+ exports.RegexLiteral = RegexLiteral;
+ var RestElement = (function () {
+ function RestElement(argument) {
+ this.type = syntax_1.Syntax.RestElement;
+ this.argument = argument;
+ }
+ return RestElement;
+ }());
+ exports.RestElement = RestElement;
+ var ReturnStatement = (function () {
+ function ReturnStatement(argument) {
+ this.type = syntax_1.Syntax.ReturnStatement;
+ this.argument = argument;
+ }
+ return ReturnStatement;
+ }());
+ exports.ReturnStatement = ReturnStatement;
+ var Script = (function () {
+ function Script(body) {
+ this.type = syntax_1.Syntax.Program;
+ this.body = body;
+ this.sourceType = 'script';
+ }
+ return Script;
+ }());
+ exports.Script = Script;
+ var SequenceExpression = (function () {
+ function SequenceExpression(expressions) {
+ this.type = syntax_1.Syntax.SequenceExpression;
+ this.expressions = expressions;
+ }
+ return SequenceExpression;
+ }());
+ exports.SequenceExpression = SequenceExpression;
+ var SpreadElement = (function () {
+ function SpreadElement(argument) {
+ this.type = syntax_1.Syntax.SpreadElement;
+ this.argument = argument;
+ }
+ return SpreadElement;
+ }());
+ exports.SpreadElement = SpreadElement;
+ var StaticMemberExpression = (function () {
+ function StaticMemberExpression(object, property) {
+ this.type = syntax_1.Syntax.MemberExpression;
+ this.computed = false;
+ this.object = object;
+ this.property = property;
+ }
+ return StaticMemberExpression;
+ }());
+ exports.StaticMemberExpression = StaticMemberExpression;
+ var Super = (function () {
+ function Super() {
+ this.type = syntax_1.Syntax.Super;
+ }
+ return Super;
+ }());
+ exports.Super = Super;
+ var SwitchCase = (function () {
+ function SwitchCase(test, consequent) {
+ this.type = syntax_1.Syntax.SwitchCase;
+ this.test = test;
+ this.consequent = consequent;
+ }
+ return SwitchCase;
+ }());
+ exports.SwitchCase = SwitchCase;
+ var SwitchStatement = (function () {
+ function SwitchStatement(discriminant, cases) {
+ this.type = syntax_1.Syntax.SwitchStatement;
+ this.discriminant = discriminant;
+ this.cases = cases;
+ }
+ return SwitchStatement;
+ }());
+ exports.SwitchStatement = SwitchStatement;
+ var TaggedTemplateExpression = (function () {
+ function TaggedTemplateExpression(tag, quasi) {
+ this.type = syntax_1.Syntax.TaggedTemplateExpression;
+ this.tag = tag;
+ this.quasi = quasi;
+ }
+ return TaggedTemplateExpression;
+ }());
+ exports.TaggedTemplateExpression = TaggedTemplateExpression;
+ var TemplateElement = (function () {
+ function TemplateElement(value, tail) {
+ this.type = syntax_1.Syntax.TemplateElement;
+ this.value = value;
+ this.tail = tail;
+ }
+ return TemplateElement;
+ }());
+ exports.TemplateElement = TemplateElement;
+ var TemplateLiteral = (function () {
+ function TemplateLiteral(quasis, expressions) {
+ this.type = syntax_1.Syntax.TemplateLiteral;
+ this.quasis = quasis;
+ this.expressions = expressions;
+ }
+ return TemplateLiteral;
+ }());
+ exports.TemplateLiteral = TemplateLiteral;
+ var ThisExpression = (function () {
+ function ThisExpression() {
+ this.type = syntax_1.Syntax.ThisExpression;
+ }
+ return ThisExpression;
+ }());
+ exports.ThisExpression = ThisExpression;
+ var ThrowStatement = (function () {
+ function ThrowStatement(argument) {
+ this.type = syntax_1.Syntax.ThrowStatement;
+ this.argument = argument;
+ }
+ return ThrowStatement;
+ }());
+ exports.ThrowStatement = ThrowStatement;
+ var TryStatement = (function () {
+ function TryStatement(block, handler, finalizer) {
+ this.type = syntax_1.Syntax.TryStatement;
+ this.block = block;
+ this.handler = handler;
+ this.finalizer = finalizer;
+ }
+ return TryStatement;
+ }());
+ exports.TryStatement = TryStatement;
+ var UnaryExpression = (function () {
+ function UnaryExpression(operator, argument) {
+ this.type = syntax_1.Syntax.UnaryExpression;
+ this.operator = operator;
+ this.argument = argument;
+ this.prefix = true;
+ }
+ return UnaryExpression;
+ }());
+ exports.UnaryExpression = UnaryExpression;
+ var UpdateExpression = (function () {
+ function UpdateExpression(operator, argument, prefix) {
+ this.type = syntax_1.Syntax.UpdateExpression;
+ this.operator = operator;
+ this.argument = argument;
+ this.prefix = prefix;
+ }
+ return UpdateExpression;
+ }());
+ exports.UpdateExpression = UpdateExpression;
+ var VariableDeclaration = (function () {
+ function VariableDeclaration(declarations, kind) {
+ this.type = syntax_1.Syntax.VariableDeclaration;
+ this.declarations = declarations;
+ this.kind = kind;
+ }
+ return VariableDeclaration;
+ }());
+ exports.VariableDeclaration = VariableDeclaration;
+ var VariableDeclarator = (function () {
+ function VariableDeclarator(id, init) {
+ this.type = syntax_1.Syntax.VariableDeclarator;
+ this.id = id;
+ this.init = init;
+ }
+ return VariableDeclarator;
+ }());
+ exports.VariableDeclarator = VariableDeclarator;
+ var WhileStatement = (function () {
+ function WhileStatement(test, body) {
+ this.type = syntax_1.Syntax.WhileStatement;
+ this.test = test;
+ this.body = body;
+ }
+ return WhileStatement;
+ }());
+ exports.WhileStatement = WhileStatement;
+ var WithStatement = (function () {
+ function WithStatement(object, body) {
+ this.type = syntax_1.Syntax.WithStatement;
+ this.object = object;
+ this.body = body;
+ }
+ return WithStatement;
+ }());
+ exports.WithStatement = WithStatement;
+ var YieldExpression = (function () {
+ function YieldExpression(argument, delegate) {
+ this.type = syntax_1.Syntax.YieldExpression;
+ this.argument = argument;
+ this.delegate = delegate;
+ }
+ return YieldExpression;
+ }());
+ exports.YieldExpression = YieldExpression;
+
+
+/***/ },
+/* 8 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var assert_1 = __webpack_require__(9);
+ var error_handler_1 = __webpack_require__(10);
+ var messages_1 = __webpack_require__(11);
+ var Node = __webpack_require__(7);
+ var scanner_1 = __webpack_require__(12);
+ var syntax_1 = __webpack_require__(2);
+ var token_1 = __webpack_require__(13);
+ var ArrowParameterPlaceHolder = 'ArrowParameterPlaceHolder';
+ var Parser = (function () {
+ function Parser(code, options, delegate) {
+ if (options === void 0) { options = {}; }
+ this.config = {
+ range: (typeof options.range === 'boolean') && options.range,
+ loc: (typeof options.loc === 'boolean') && options.loc,
+ source: null,
+ tokens: (typeof options.tokens === 'boolean') && options.tokens,
+ comment: (typeof options.comment === 'boolean') && options.comment,
+ tolerant: (typeof options.tolerant === 'boolean') && options.tolerant
+ };
+ if (this.config.loc && options.source && options.source !== null) {
+ this.config.source = String(options.source);
+ }
+ this.delegate = delegate;
+ this.errorHandler = new error_handler_1.ErrorHandler();
+ this.errorHandler.tolerant = this.config.tolerant;
+ this.scanner = new scanner_1.Scanner(code, this.errorHandler);
+ this.scanner.trackComment = this.config.comment;
+ this.operatorPrecedence = {
+ ')': 0,
+ ';': 0,
+ ',': 0,
+ '=': 0,
+ ']': 0,
+ '||': 1,
+ '&&': 2,
+ '|': 3,
+ '^': 4,
+ '&': 5,
+ '==': 6,
+ '!=': 6,
+ '===': 6,
+ '!==': 6,
+ '<': 7,
+ '>': 7,
+ '<=': 7,
+ '>=': 7,
+ '<<': 8,
+ '>>': 8,
+ '>>>': 8,
+ '+': 9,
+ '-': 9,
+ '*': 11,
+ '/': 11,
+ '%': 11
+ };
+ this.lookahead = {
+ type: 2 /* EOF */,
+ value: '',
+ lineNumber: this.scanner.lineNumber,
+ lineStart: 0,
+ start: 0,
+ end: 0
+ };
+ this.hasLineTerminator = false;
+ this.context = {
+ isModule: false,
+ await: false,
+ allowIn: true,
+ allowStrictDirective: true,
+ allowYield: true,
+ firstCoverInitializedNameError: null,
+ isAssignmentTarget: false,
+ isBindingElement: false,
+ inFunctionBody: false,
+ inIteration: false,
+ inSwitch: false,
+ labelSet: {},
+ strict: false
+ };
+ this.tokens = [];
+ this.startMarker = {
+ index: 0,
+ line: this.scanner.lineNumber,
+ column: 0
+ };
+ this.lastMarker = {
+ index: 0,
+ line: this.scanner.lineNumber,
+ column: 0
+ };
+ this.nextToken();
+ this.lastMarker = {
+ index: this.scanner.index,
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart
+ };
+ }
+ Parser.prototype.throwError = function (messageFormat) {
+ var values = [];
+ for (var _i = 1; _i < arguments.length; _i++) {
+ values[_i - 1] = arguments[_i];
+ }
+ var args = Array.prototype.slice.call(arguments, 1);
+ var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
+ assert_1.assert(idx < args.length, 'Message reference must be in range');
+ return args[idx];
+ });
+ var index = this.lastMarker.index;
+ var line = this.lastMarker.line;
+ var column = this.lastMarker.column + 1;
+ throw this.errorHandler.createError(index, line, column, msg);
+ };
+ Parser.prototype.tolerateError = function (messageFormat) {
+ var values = [];
+ for (var _i = 1; _i < arguments.length; _i++) {
+ values[_i - 1] = arguments[_i];
+ }
+ var args = Array.prototype.slice.call(arguments, 1);
+ var msg = messageFormat.replace(/%(\d)/g, function (whole, idx) {
+ assert_1.assert(idx < args.length, 'Message reference must be in range');
+ return args[idx];
+ });
+ var index = this.lastMarker.index;
+ var line = this.scanner.lineNumber;
+ var column = this.lastMarker.column + 1;
+ this.errorHandler.tolerateError(index, line, column, msg);
+ };
+ // Throw an exception because of the token.
+ Parser.prototype.unexpectedTokenError = function (token, message) {
+ var msg = message || messages_1.Messages.UnexpectedToken;
+ var value;
+ if (token) {
+ if (!message) {
+ msg = (token.type === 2 /* EOF */) ? messages_1.Messages.UnexpectedEOS :
+ (token.type === 3 /* Identifier */) ? messages_1.Messages.UnexpectedIdentifier :
+ (token.type === 6 /* NumericLiteral */) ? messages_1.Messages.UnexpectedNumber :
+ (token.type === 8 /* StringLiteral */) ? messages_1.Messages.UnexpectedString :
+ (token.type === 10 /* Template */) ? messages_1.Messages.UnexpectedTemplate :
+ messages_1.Messages.UnexpectedToken;
+ if (token.type === 4 /* Keyword */) {
+ if (this.scanner.isFutureReservedWord(token.value)) {
+ msg = messages_1.Messages.UnexpectedReserved;
+ }
+ else if (this.context.strict && this.scanner.isStrictModeReservedWord(token.value)) {
+ msg = messages_1.Messages.StrictReservedWord;
+ }
+ }
+ }
+ value = token.value;
+ }
+ else {
+ value = 'ILLEGAL';
+ }
+ msg = msg.replace('%0', value);
+ if (token && typeof token.lineNumber === 'number') {
+ var index = token.start;
+ var line = token.lineNumber;
+ var lastMarkerLineStart = this.lastMarker.index - this.lastMarker.column;
+ var column = token.start - lastMarkerLineStart + 1;
+ return this.errorHandler.createError(index, line, column, msg);
+ }
+ else {
+ var index = this.lastMarker.index;
+ var line = this.lastMarker.line;
+ var column = this.lastMarker.column + 1;
+ return this.errorHandler.createError(index, line, column, msg);
+ }
+ };
+ Parser.prototype.throwUnexpectedToken = function (token, message) {
+ throw this.unexpectedTokenError(token, message);
+ };
+ Parser.prototype.tolerateUnexpectedToken = function (token, message) {
+ this.errorHandler.tolerate(this.unexpectedTokenError(token, message));
+ };
+ Parser.prototype.collectComments = function () {
+ if (!this.config.comment) {
+ this.scanner.scanComments();
+ }
+ else {
+ var comments = this.scanner.scanComments();
+ if (comments.length > 0 && this.delegate) {
+ for (var i = 0; i < comments.length; ++i) {
+ var e = comments[i];
+ var node = void 0;
+ node = {
+ type: e.multiLine ? 'BlockComment' : 'LineComment',
+ value: this.scanner.source.slice(e.slice[0], e.slice[1])
+ };
+ if (this.config.range) {
+ node.range = e.range;
+ }
+ if (this.config.loc) {
+ node.loc = e.loc;
+ }
+ var metadata = {
+ start: {
+ line: e.loc.start.line,
+ column: e.loc.start.column,
+ offset: e.range[0]
+ },
+ end: {
+ line: e.loc.end.line,
+ column: e.loc.end.column,
+ offset: e.range[1]
+ }
+ };
+ this.delegate(node, metadata);
+ }
+ }
+ }
+ };
+ // From internal representation to an external structure
+ Parser.prototype.getTokenRaw = function (token) {
+ return this.scanner.source.slice(token.start, token.end);
+ };
+ Parser.prototype.convertToken = function (token) {
+ var t = {
+ type: token_1.TokenName[token.type],
+ value: this.getTokenRaw(token)
+ };
+ if (this.config.range) {
+ t.range = [token.start, token.end];
+ }
+ if (this.config.loc) {
+ t.loc = {
+ start: {
+ line: this.startMarker.line,
+ column: this.startMarker.column
+ },
+ end: {
+ line: this.scanner.lineNumber,
+ column: this.scanner.index - this.scanner.lineStart
+ }
+ };
+ }
+ if (token.type === 9 /* RegularExpression */) {
+ var pattern = token.pattern;
+ var flags = token.flags;
+ t.regex = { pattern: pattern, flags: flags };
+ }
+ return t;
+ };
+ Parser.prototype.nextToken = function () {
+ var token = this.lookahead;
+ this.lastMarker.index = this.scanner.index;
+ this.lastMarker.line = this.scanner.lineNumber;
+ this.lastMarker.column = this.scanner.index - this.scanner.lineStart;
+ this.collectComments();
+ if (this.scanner.index !== this.startMarker.index) {
+ this.startMarker.index = this.scanner.index;
+ this.startMarker.line = this.scanner.lineNumber;
+ this.startMarker.column = this.scanner.index - this.scanner.lineStart;
+ }
+ var next = this.scanner.lex();
+ this.hasLineTerminator = (token.lineNumber !== next.lineNumber);
+ if (next && this.context.strict && next.type === 3 /* Identifier */) {
+ if (this.scanner.isStrictModeReservedWord(next.value)) {
+ next.type = 4 /* Keyword */;
+ }
+ }
+ this.lookahead = next;
+ if (this.config.tokens && next.type !== 2 /* EOF */) {
+ this.tokens.push(this.convertToken(next));
+ }
+ return token;
+ };
+ Parser.prototype.nextRegexToken = function () {
+ this.collectComments();
+ var token = this.scanner.scanRegExp();
+ if (this.config.tokens) {
+ // Pop the previous token, '/' or '/='
+ // This is added from the lookahead token.
+ this.tokens.pop();
+ this.tokens.push(this.convertToken(token));
+ }
+ // Prime the next lookahead.
+ this.lookahead = token;
+ this.nextToken();
+ return token;
+ };
+ Parser.prototype.createNode = function () {
+ return {
+ index: this.startMarker.index,
+ line: this.startMarker.line,
+ column: this.startMarker.column
+ };
+ };
+ Parser.prototype.startNode = function (token, lastLineStart) {
+ if (lastLineStart === void 0) { lastLineStart = 0; }
+ var column = token.start - token.lineStart;
+ var line = token.lineNumber;
+ if (column < 0) {
+ column += lastLineStart;
+ line--;
+ }
+ return {
+ index: token.start,
+ line: line,
+ column: column
+ };
+ };
+ Parser.prototype.finalize = function (marker, node) {
+ if (this.config.range) {
+ node.range = [marker.index, this.lastMarker.index];
+ }
+ if (this.config.loc) {
+ node.loc = {
+ start: {
+ line: marker.line,
+ column: marker.column,
+ },
+ end: {
+ line: this.lastMarker.line,
+ column: this.lastMarker.column
+ }
+ };
+ if (this.config.source) {
+ node.loc.source = this.config.source;
+ }
+ }
+ if (this.delegate) {
+ var metadata = {
+ start: {
+ line: marker.line,
+ column: marker.column,
+ offset: marker.index
+ },
+ end: {
+ line: this.lastMarker.line,
+ column: this.lastMarker.column,
+ offset: this.lastMarker.index
+ }
+ };
+ this.delegate(node, metadata);
+ }
+ return node;
+ };
+ // Expect the next token to match the specified punctuator.
+ // If not, an exception will be thrown.
+ Parser.prototype.expect = function (value) {
+ var token = this.nextToken();
+ if (token.type !== 7 /* Punctuator */ || token.value !== value) {
+ this.throwUnexpectedToken(token);
+ }
+ };
+ // Quietly expect a comma when in tolerant mode, otherwise delegates to expect().
+ Parser.prototype.expectCommaSeparator = function () {
+ if (this.config.tolerant) {
+ var token = this.lookahead;
+ if (token.type === 7 /* Punctuator */ && token.value === ',') {
+ this.nextToken();
+ }
+ else if (token.type === 7 /* Punctuator */ && token.value === ';') {
+ this.nextToken();
+ this.tolerateUnexpectedToken(token);
+ }
+ else {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.UnexpectedToken);
+ }
+ }
+ else {
+ this.expect(',');
+ }
+ };
+ // Expect the next token to match the specified keyword.
+ // If not, an exception will be thrown.
+ Parser.prototype.expectKeyword = function (keyword) {
+ var token = this.nextToken();
+ if (token.type !== 4 /* Keyword */ || token.value !== keyword) {
+ this.throwUnexpectedToken(token);
+ }
+ };
+ // Return true if the next token matches the specified punctuator.
+ Parser.prototype.match = function (value) {
+ return this.lookahead.type === 7 /* Punctuator */ && this.lookahead.value === value;
+ };
+ // Return true if the next token matches the specified keyword
+ Parser.prototype.matchKeyword = function (keyword) {
+ return this.lookahead.type === 4 /* Keyword */ && this.lookahead.value === keyword;
+ };
+ // Return true if the next token matches the specified contextual keyword
+ // (where an identifier is sometimes a keyword depending on the context)
+ Parser.prototype.matchContextualKeyword = function (keyword) {
+ return this.lookahead.type === 3 /* Identifier */ && this.lookahead.value === keyword;
+ };
+ // Return true if the next token is an assignment operator
+ Parser.prototype.matchAssign = function () {
+ if (this.lookahead.type !== 7 /* Punctuator */) {
+ return false;
+ }
+ var op = this.lookahead.value;
+ return op === '=' ||
+ op === '*=' ||
+ op === '**=' ||
+ op === '/=' ||
+ op === '%=' ||
+ op === '+=' ||
+ op === '-=' ||
+ op === '<<=' ||
+ op === '>>=' ||
+ op === '>>>=' ||
+ op === '&=' ||
+ op === '^=' ||
+ op === '|=';
+ };
+ // Cover grammar support.
+ //
+ // When an assignment expression position starts with an left parenthesis, the determination of the type
+ // of the syntax is to be deferred arbitrarily long until the end of the parentheses pair (plus a lookahead)
+ // or the first comma. This situation also defers the determination of all the expressions nested in the pair.
+ //
+ // There are three productions that can be parsed in a parentheses pair that needs to be determined
+ // after the outermost pair is closed. They are:
+ //
+ // 1. AssignmentExpression
+ // 2. BindingElements
+ // 3. AssignmentTargets
+ //
+ // In order to avoid exponential backtracking, we use two flags to denote if the production can be
+ // binding element or assignment target.
+ //
+ // The three productions have the relationship:
+ //
+ // BindingElements ⊆ AssignmentTargets ⊆ AssignmentExpression
+ //
+ // with a single exception that CoverInitializedName when used directly in an Expression, generates
+ // an early error. Therefore, we need the third state, firstCoverInitializedNameError, to track the
+ // first usage of CoverInitializedName and report it when we reached the end of the parentheses pair.
+ //
+ // isolateCoverGrammar function runs the given parser function with a new cover grammar context, and it does not
+ // effect the current flags. This means the production the parser parses is only used as an expression. Therefore
+ // the CoverInitializedName check is conducted.
+ //
+ // inheritCoverGrammar function runs the given parse function with a new cover grammar context, and it propagates
+ // the flags outside of the parser. This means the production the parser parses is used as a part of a potential
+ // pattern. The CoverInitializedName check is deferred.
+ Parser.prototype.isolateCoverGrammar = function (parseFunction) {
+ var previousIsBindingElement = this.context.isBindingElement;
+ var previousIsAssignmentTarget = this.context.isAssignmentTarget;
+ var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
+ this.context.isBindingElement = true;
+ this.context.isAssignmentTarget = true;
+ this.context.firstCoverInitializedNameError = null;
+ var result = parseFunction.call(this);
+ if (this.context.firstCoverInitializedNameError !== null) {
+ this.throwUnexpectedToken(this.context.firstCoverInitializedNameError);
+ }
+ this.context.isBindingElement = previousIsBindingElement;
+ this.context.isAssignmentTarget = previousIsAssignmentTarget;
+ this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError;
+ return result;
+ };
+ Parser.prototype.inheritCoverGrammar = function (parseFunction) {
+ var previousIsBindingElement = this.context.isBindingElement;
+ var previousIsAssignmentTarget = this.context.isAssignmentTarget;
+ var previousFirstCoverInitializedNameError = this.context.firstCoverInitializedNameError;
+ this.context.isBindingElement = true;
+ this.context.isAssignmentTarget = true;
+ this.context.firstCoverInitializedNameError = null;
+ var result = parseFunction.call(this);
+ this.context.isBindingElement = this.context.isBindingElement && previousIsBindingElement;
+ this.context.isAssignmentTarget = this.context.isAssignmentTarget && previousIsAssignmentTarget;
+ this.context.firstCoverInitializedNameError = previousFirstCoverInitializedNameError || this.context.firstCoverInitializedNameError;
+ return result;
+ };
+ Parser.prototype.consumeSemicolon = function () {
+ if (this.match(';')) {
+ this.nextToken();
+ }
+ else if (!this.hasLineTerminator) {
+ if (this.lookahead.type !== 2 /* EOF */ && !this.match('}')) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ this.lastMarker.index = this.startMarker.index;
+ this.lastMarker.line = this.startMarker.line;
+ this.lastMarker.column = this.startMarker.column;
+ }
+ };
+ // https://tc39.github.io/ecma262/#sec-primary-expression
+ Parser.prototype.parsePrimaryExpression = function () {
+ var node = this.createNode();
+ var expr;
+ var token, raw;
+ switch (this.lookahead.type) {
+ case 3 /* Identifier */:
+ if ((this.context.isModule || this.context.await) && this.lookahead.value === 'await') {
+ this.tolerateUnexpectedToken(this.lookahead);
+ }
+ expr = this.matchAsyncFunction() ? this.parseFunctionExpression() : this.finalize(node, new Node.Identifier(this.nextToken().value));
+ break;
+ case 6 /* NumericLiteral */:
+ case 8 /* StringLiteral */:
+ if (this.context.strict && this.lookahead.octal) {
+ this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.StrictOctalLiteral);
+ }
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ token = this.nextToken();
+ raw = this.getTokenRaw(token);
+ expr = this.finalize(node, new Node.Literal(token.value, raw));
+ break;
+ case 1 /* BooleanLiteral */:
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ token = this.nextToken();
+ raw = this.getTokenRaw(token);
+ expr = this.finalize(node, new Node.Literal(token.value === 'true', raw));
+ break;
+ case 5 /* NullLiteral */:
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ token = this.nextToken();
+ raw = this.getTokenRaw(token);
+ expr = this.finalize(node, new Node.Literal(null, raw));
+ break;
+ case 10 /* Template */:
+ expr = this.parseTemplateLiteral();
+ break;
+ case 7 /* Punctuator */:
+ switch (this.lookahead.value) {
+ case '(':
+ this.context.isBindingElement = false;
+ expr = this.inheritCoverGrammar(this.parseGroupExpression);
+ break;
+ case '[':
+ expr = this.inheritCoverGrammar(this.parseArrayInitializer);
+ break;
+ case '{':
+ expr = this.inheritCoverGrammar(this.parseObjectInitializer);
+ break;
+ case '/':
+ case '/=':
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ this.scanner.index = this.startMarker.index;
+ token = this.nextRegexToken();
+ raw = this.getTokenRaw(token);
+ expr = this.finalize(node, new Node.RegexLiteral(token.regex, raw, token.pattern, token.flags));
+ break;
+ default:
+ expr = this.throwUnexpectedToken(this.nextToken());
+ }
+ break;
+ case 4 /* Keyword */:
+ if (!this.context.strict && this.context.allowYield && this.matchKeyword('yield')) {
+ expr = this.parseIdentifierName();
+ }
+ else if (!this.context.strict && this.matchKeyword('let')) {
+ expr = this.finalize(node, new Node.Identifier(this.nextToken().value));
+ }
+ else {
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ if (this.matchKeyword('function')) {
+ expr = this.parseFunctionExpression();
+ }
+ else if (this.matchKeyword('this')) {
+ this.nextToken();
+ expr = this.finalize(node, new Node.ThisExpression());
+ }
+ else if (this.matchKeyword('class')) {
+ expr = this.parseClassExpression();
+ }
+ else {
+ expr = this.throwUnexpectedToken(this.nextToken());
+ }
+ }
+ break;
+ default:
+ expr = this.throwUnexpectedToken(this.nextToken());
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-array-initializer
+ Parser.prototype.parseSpreadElement = function () {
+ var node = this.createNode();
+ this.expect('...');
+ var arg = this.inheritCoverGrammar(this.parseAssignmentExpression);
+ return this.finalize(node, new Node.SpreadElement(arg));
+ };
+ Parser.prototype.parseArrayInitializer = function () {
+ var node = this.createNode();
+ var elements = [];
+ this.expect('[');
+ while (!this.match(']')) {
+ if (this.match(',')) {
+ this.nextToken();
+ elements.push(null);
+ }
+ else if (this.match('...')) {
+ var element = this.parseSpreadElement();
+ if (!this.match(']')) {
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ this.expect(',');
+ }
+ elements.push(element);
+ }
+ else {
+ elements.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
+ if (!this.match(']')) {
+ this.expect(',');
+ }
+ }
+ }
+ this.expect(']');
+ return this.finalize(node, new Node.ArrayExpression(elements));
+ };
+ // https://tc39.github.io/ecma262/#sec-object-initializer
+ Parser.prototype.parsePropertyMethod = function (params) {
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ var previousStrict = this.context.strict;
+ var previousAllowStrictDirective = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = params.simple;
+ var body = this.isolateCoverGrammar(this.parseFunctionSourceElements);
+ if (this.context.strict && params.firstRestricted) {
+ this.tolerateUnexpectedToken(params.firstRestricted, params.message);
+ }
+ if (this.context.strict && params.stricted) {
+ this.tolerateUnexpectedToken(params.stricted, params.message);
+ }
+ this.context.strict = previousStrict;
+ this.context.allowStrictDirective = previousAllowStrictDirective;
+ return body;
+ };
+ Parser.prototype.parsePropertyMethodFunction = function () {
+ var isGenerator = false;
+ var node = this.createNode();
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = true;
+ var params = this.parseFormalParameters();
+ var method = this.parsePropertyMethod(params);
+ this.context.allowYield = previousAllowYield;
+ return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
+ };
+ Parser.prototype.parsePropertyMethodAsyncFunction = function () {
+ var node = this.createNode();
+ var previousAllowYield = this.context.allowYield;
+ var previousAwait = this.context.await;
+ this.context.allowYield = false;
+ this.context.await = true;
+ var params = this.parseFormalParameters();
+ var method = this.parsePropertyMethod(params);
+ this.context.allowYield = previousAllowYield;
+ this.context.await = previousAwait;
+ return this.finalize(node, new Node.AsyncFunctionExpression(null, params.params, method));
+ };
+ Parser.prototype.parseObjectPropertyKey = function () {
+ var node = this.createNode();
+ var token = this.nextToken();
+ var key;
+ switch (token.type) {
+ case 8 /* StringLiteral */:
+ case 6 /* NumericLiteral */:
+ if (this.context.strict && token.octal) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictOctalLiteral);
+ }
+ var raw = this.getTokenRaw(token);
+ key = this.finalize(node, new Node.Literal(token.value, raw));
+ break;
+ case 3 /* Identifier */:
+ case 1 /* BooleanLiteral */:
+ case 5 /* NullLiteral */:
+ case 4 /* Keyword */:
+ key = this.finalize(node, new Node.Identifier(token.value));
+ break;
+ case 7 /* Punctuator */:
+ if (token.value === '[') {
+ key = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ this.expect(']');
+ }
+ else {
+ key = this.throwUnexpectedToken(token);
+ }
+ break;
+ default:
+ key = this.throwUnexpectedToken(token);
+ }
+ return key;
+ };
+ Parser.prototype.isPropertyKey = function (key, value) {
+ return (key.type === syntax_1.Syntax.Identifier && key.name === value) ||
+ (key.type === syntax_1.Syntax.Literal && key.value === value);
+ };
+ Parser.prototype.parseObjectProperty = function (hasProto) {
+ var node = this.createNode();
+ var token = this.lookahead;
+ var kind;
+ var key = null;
+ var value = null;
+ var computed = false;
+ var method = false;
+ var shorthand = false;
+ var isAsync = false;
+ if (token.type === 3 /* Identifier */) {
+ var id = token.value;
+ this.nextToken();
+ computed = this.match('[');
+ isAsync = !this.hasLineTerminator && (id === 'async') &&
+ !this.match(':') && !this.match('(') && !this.match('*') && !this.match(',');
+ key = isAsync ? this.parseObjectPropertyKey() : this.finalize(node, new Node.Identifier(id));
+ }
+ else if (this.match('*')) {
+ this.nextToken();
+ }
+ else {
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ }
+ var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
+ if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'get' && lookaheadPropertyKey) {
+ kind = 'get';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ this.context.allowYield = false;
+ value = this.parseGetterMethod();
+ }
+ else if (token.type === 3 /* Identifier */ && !isAsync && token.value === 'set' && lookaheadPropertyKey) {
+ kind = 'set';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ value = this.parseSetterMethod();
+ }
+ else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) {
+ kind = 'init';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ value = this.parseGeneratorMethod();
+ method = true;
+ }
+ else {
+ if (!key) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ kind = 'init';
+ if (this.match(':') && !isAsync) {
+ if (!computed && this.isPropertyKey(key, '__proto__')) {
+ if (hasProto.value) {
+ this.tolerateError(messages_1.Messages.DuplicateProtoProperty);
+ }
+ hasProto.value = true;
+ }
+ this.nextToken();
+ value = this.inheritCoverGrammar(this.parseAssignmentExpression);
+ }
+ else if (this.match('(')) {
+ value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction();
+ method = true;
+ }
+ else if (token.type === 3 /* Identifier */) {
+ var id = this.finalize(node, new Node.Identifier(token.value));
+ if (this.match('=')) {
+ this.context.firstCoverInitializedNameError = this.lookahead;
+ this.nextToken();
+ shorthand = true;
+ var init = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ value = this.finalize(node, new Node.AssignmentPattern(id, init));
+ }
+ else {
+ shorthand = true;
+ value = id;
+ }
+ }
+ else {
+ this.throwUnexpectedToken(this.nextToken());
+ }
+ }
+ return this.finalize(node, new Node.Property(kind, key, computed, value, method, shorthand));
+ };
+ Parser.prototype.parseObjectInitializer = function () {
+ var node = this.createNode();
+ this.expect('{');
+ var properties = [];
+ var hasProto = { value: false };
+ while (!this.match('}')) {
+ properties.push(this.parseObjectProperty(hasProto));
+ if (!this.match('}')) {
+ this.expectCommaSeparator();
+ }
+ }
+ this.expect('}');
+ return this.finalize(node, new Node.ObjectExpression(properties));
+ };
+ // https://tc39.github.io/ecma262/#sec-template-literals
+ Parser.prototype.parseTemplateHead = function () {
+ assert_1.assert(this.lookahead.head, 'Template literal must start with a template head');
+ var node = this.createNode();
+ var token = this.nextToken();
+ var raw = token.value;
+ var cooked = token.cooked;
+ return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail));
+ };
+ Parser.prototype.parseTemplateElement = function () {
+ if (this.lookahead.type !== 10 /* Template */) {
+ this.throwUnexpectedToken();
+ }
+ var node = this.createNode();
+ var token = this.nextToken();
+ var raw = token.value;
+ var cooked = token.cooked;
+ return this.finalize(node, new Node.TemplateElement({ raw: raw, cooked: cooked }, token.tail));
+ };
+ Parser.prototype.parseTemplateLiteral = function () {
+ var node = this.createNode();
+ var expressions = [];
+ var quasis = [];
+ var quasi = this.parseTemplateHead();
+ quasis.push(quasi);
+ while (!quasi.tail) {
+ expressions.push(this.parseExpression());
+ quasi = this.parseTemplateElement();
+ quasis.push(quasi);
+ }
+ return this.finalize(node, new Node.TemplateLiteral(quasis, expressions));
+ };
+ // https://tc39.github.io/ecma262/#sec-grouping-operator
+ Parser.prototype.reinterpretExpressionAsPattern = function (expr) {
+ switch (expr.type) {
+ case syntax_1.Syntax.Identifier:
+ case syntax_1.Syntax.MemberExpression:
+ case syntax_1.Syntax.RestElement:
+ case syntax_1.Syntax.AssignmentPattern:
+ break;
+ case syntax_1.Syntax.SpreadElement:
+ expr.type = syntax_1.Syntax.RestElement;
+ this.reinterpretExpressionAsPattern(expr.argument);
+ break;
+ case syntax_1.Syntax.ArrayExpression:
+ expr.type = syntax_1.Syntax.ArrayPattern;
+ for (var i = 0; i < expr.elements.length; i++) {
+ if (expr.elements[i] !== null) {
+ this.reinterpretExpressionAsPattern(expr.elements[i]);
+ }
+ }
+ break;
+ case syntax_1.Syntax.ObjectExpression:
+ expr.type = syntax_1.Syntax.ObjectPattern;
+ for (var i = 0; i < expr.properties.length; i++) {
+ this.reinterpretExpressionAsPattern(expr.properties[i].value);
+ }
+ break;
+ case syntax_1.Syntax.AssignmentExpression:
+ expr.type = syntax_1.Syntax.AssignmentPattern;
+ delete expr.operator;
+ this.reinterpretExpressionAsPattern(expr.left);
+ break;
+ default:
+ // Allow other node type for tolerant parsing.
+ break;
+ }
+ };
+ Parser.prototype.parseGroupExpression = function () {
+ var expr;
+ this.expect('(');
+ if (this.match(')')) {
+ this.nextToken();
+ if (!this.match('=>')) {
+ this.expect('=>');
+ }
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: [],
+ async: false
+ };
+ }
+ else {
+ var startToken = this.lookahead;
+ var params = [];
+ if (this.match('...')) {
+ expr = this.parseRestElement(params);
+ this.expect(')');
+ if (!this.match('=>')) {
+ this.expect('=>');
+ }
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: [expr],
+ async: false
+ };
+ }
+ else {
+ var arrow = false;
+ this.context.isBindingElement = true;
+ expr = this.inheritCoverGrammar(this.parseAssignmentExpression);
+ if (this.match(',')) {
+ var expressions = [];
+ this.context.isAssignmentTarget = false;
+ expressions.push(expr);
+ while (this.lookahead.type !== 2 /* EOF */) {
+ if (!this.match(',')) {
+ break;
+ }
+ this.nextToken();
+ if (this.match(')')) {
+ this.nextToken();
+ for (var i = 0; i < expressions.length; i++) {
+ this.reinterpretExpressionAsPattern(expressions[i]);
+ }
+ arrow = true;
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: expressions,
+ async: false
+ };
+ }
+ else if (this.match('...')) {
+ if (!this.context.isBindingElement) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ expressions.push(this.parseRestElement(params));
+ this.expect(')');
+ if (!this.match('=>')) {
+ this.expect('=>');
+ }
+ this.context.isBindingElement = false;
+ for (var i = 0; i < expressions.length; i++) {
+ this.reinterpretExpressionAsPattern(expressions[i]);
+ }
+ arrow = true;
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: expressions,
+ async: false
+ };
+ }
+ else {
+ expressions.push(this.inheritCoverGrammar(this.parseAssignmentExpression));
+ }
+ if (arrow) {
+ break;
+ }
+ }
+ if (!arrow) {
+ expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions));
+ }
+ }
+ if (!arrow) {
+ this.expect(')');
+ if (this.match('=>')) {
+ if (expr.type === syntax_1.Syntax.Identifier && expr.name === 'yield') {
+ arrow = true;
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: [expr],
+ async: false
+ };
+ }
+ if (!arrow) {
+ if (!this.context.isBindingElement) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ if (expr.type === syntax_1.Syntax.SequenceExpression) {
+ for (var i = 0; i < expr.expressions.length; i++) {
+ this.reinterpretExpressionAsPattern(expr.expressions[i]);
+ }
+ }
+ else {
+ this.reinterpretExpressionAsPattern(expr);
+ }
+ var parameters = (expr.type === syntax_1.Syntax.SequenceExpression ? expr.expressions : [expr]);
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: parameters,
+ async: false
+ };
+ }
+ }
+ this.context.isBindingElement = false;
+ }
+ }
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-left-hand-side-expressions
+ Parser.prototype.parseArguments = function () {
+ this.expect('(');
+ var args = [];
+ if (!this.match(')')) {
+ while (true) {
+ var expr = this.match('...') ? this.parseSpreadElement() :
+ this.isolateCoverGrammar(this.parseAssignmentExpression);
+ args.push(expr);
+ if (this.match(')')) {
+ break;
+ }
+ this.expectCommaSeparator();
+ if (this.match(')')) {
+ break;
+ }
+ }
+ }
+ this.expect(')');
+ return args;
+ };
+ Parser.prototype.isIdentifierName = function (token) {
+ return token.type === 3 /* Identifier */ ||
+ token.type === 4 /* Keyword */ ||
+ token.type === 1 /* BooleanLiteral */ ||
+ token.type === 5 /* NullLiteral */;
+ };
+ Parser.prototype.parseIdentifierName = function () {
+ var node = this.createNode();
+ var token = this.nextToken();
+ if (!this.isIdentifierName(token)) {
+ this.throwUnexpectedToken(token);
+ }
+ return this.finalize(node, new Node.Identifier(token.value));
+ };
+ Parser.prototype.parseNewExpression = function () {
+ var node = this.createNode();
+ var id = this.parseIdentifierName();
+ assert_1.assert(id.name === 'new', 'New expression must start with `new`');
+ var expr;
+ if (this.match('.')) {
+ this.nextToken();
+ if (this.lookahead.type === 3 /* Identifier */ && this.context.inFunctionBody && this.lookahead.value === 'target') {
+ var property = this.parseIdentifierName();
+ expr = new Node.MetaProperty(id, property);
+ }
+ else {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ }
+ else {
+ var callee = this.isolateCoverGrammar(this.parseLeftHandSideExpression);
+ var args = this.match('(') ? this.parseArguments() : [];
+ expr = new Node.NewExpression(callee, args);
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ }
+ return this.finalize(node, expr);
+ };
+ Parser.prototype.parseAsyncArgument = function () {
+ var arg = this.parseAssignmentExpression();
+ this.context.firstCoverInitializedNameError = null;
+ return arg;
+ };
+ Parser.prototype.parseAsyncArguments = function () {
+ this.expect('(');
+ var args = [];
+ if (!this.match(')')) {
+ while (true) {
+ var expr = this.match('...') ? this.parseSpreadElement() :
+ this.isolateCoverGrammar(this.parseAsyncArgument);
+ args.push(expr);
+ if (this.match(')')) {
+ break;
+ }
+ this.expectCommaSeparator();
+ if (this.match(')')) {
+ break;
+ }
+ }
+ }
+ this.expect(')');
+ return args;
+ };
+ Parser.prototype.parseLeftHandSideExpressionAllowCall = function () {
+ var startToken = this.lookahead;
+ var maybeAsync = this.matchContextualKeyword('async');
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = true;
+ var expr;
+ if (this.matchKeyword('super') && this.context.inFunctionBody) {
+ expr = this.createNode();
+ this.nextToken();
+ expr = this.finalize(expr, new Node.Super());
+ if (!this.match('(') && !this.match('.') && !this.match('[')) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ }
+ else {
+ expr = this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
+ }
+ while (true) {
+ if (this.match('.')) {
+ this.context.isBindingElement = false;
+ this.context.isAssignmentTarget = true;
+ this.expect('.');
+ var property = this.parseIdentifierName();
+ expr = this.finalize(this.startNode(startToken), new Node.StaticMemberExpression(expr, property));
+ }
+ else if (this.match('(')) {
+ var asyncArrow = maybeAsync && (startToken.lineNumber === this.lookahead.lineNumber);
+ this.context.isBindingElement = false;
+ this.context.isAssignmentTarget = false;
+ var args = asyncArrow ? this.parseAsyncArguments() : this.parseArguments();
+ expr = this.finalize(this.startNode(startToken), new Node.CallExpression(expr, args));
+ if (asyncArrow && this.match('=>')) {
+ for (var i = 0; i < args.length; ++i) {
+ this.reinterpretExpressionAsPattern(args[i]);
+ }
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: args,
+ async: true
+ };
+ }
+ }
+ else if (this.match('[')) {
+ this.context.isBindingElement = false;
+ this.context.isAssignmentTarget = true;
+ this.expect('[');
+ var property = this.isolateCoverGrammar(this.parseExpression);
+ this.expect(']');
+ expr = this.finalize(this.startNode(startToken), new Node.ComputedMemberExpression(expr, property));
+ }
+ else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) {
+ var quasi = this.parseTemplateLiteral();
+ expr = this.finalize(this.startNode(startToken), new Node.TaggedTemplateExpression(expr, quasi));
+ }
+ else {
+ break;
+ }
+ }
+ this.context.allowIn = previousAllowIn;
+ return expr;
+ };
+ Parser.prototype.parseSuper = function () {
+ var node = this.createNode();
+ this.expectKeyword('super');
+ if (!this.match('[') && !this.match('.')) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ return this.finalize(node, new Node.Super());
+ };
+ Parser.prototype.parseLeftHandSideExpression = function () {
+ assert_1.assert(this.context.allowIn, 'callee of new expression always allow in keyword.');
+ var node = this.startNode(this.lookahead);
+ var expr = (this.matchKeyword('super') && this.context.inFunctionBody) ? this.parseSuper() :
+ this.inheritCoverGrammar(this.matchKeyword('new') ? this.parseNewExpression : this.parsePrimaryExpression);
+ while (true) {
+ if (this.match('[')) {
+ this.context.isBindingElement = false;
+ this.context.isAssignmentTarget = true;
+ this.expect('[');
+ var property = this.isolateCoverGrammar(this.parseExpression);
+ this.expect(']');
+ expr = this.finalize(node, new Node.ComputedMemberExpression(expr, property));
+ }
+ else if (this.match('.')) {
+ this.context.isBindingElement = false;
+ this.context.isAssignmentTarget = true;
+ this.expect('.');
+ var property = this.parseIdentifierName();
+ expr = this.finalize(node, new Node.StaticMemberExpression(expr, property));
+ }
+ else if (this.lookahead.type === 10 /* Template */ && this.lookahead.head) {
+ var quasi = this.parseTemplateLiteral();
+ expr = this.finalize(node, new Node.TaggedTemplateExpression(expr, quasi));
+ }
+ else {
+ break;
+ }
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-update-expressions
+ Parser.prototype.parseUpdateExpression = function () {
+ var expr;
+ var startToken = this.lookahead;
+ if (this.match('++') || this.match('--')) {
+ var node = this.startNode(startToken);
+ var token = this.nextToken();
+ expr = this.inheritCoverGrammar(this.parseUnaryExpression);
+ if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
+ this.tolerateError(messages_1.Messages.StrictLHSPrefix);
+ }
+ if (!this.context.isAssignmentTarget) {
+ this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
+ }
+ var prefix = true;
+ expr = this.finalize(node, new Node.UpdateExpression(token.value, expr, prefix));
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ }
+ else {
+ expr = this.inheritCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
+ if (!this.hasLineTerminator && this.lookahead.type === 7 /* Punctuator */) {
+ if (this.match('++') || this.match('--')) {
+ if (this.context.strict && expr.type === syntax_1.Syntax.Identifier && this.scanner.isRestrictedWord(expr.name)) {
+ this.tolerateError(messages_1.Messages.StrictLHSPostfix);
+ }
+ if (!this.context.isAssignmentTarget) {
+ this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
+ }
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ var operator = this.nextToken().value;
+ var prefix = false;
+ expr = this.finalize(this.startNode(startToken), new Node.UpdateExpression(operator, expr, prefix));
+ }
+ }
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-unary-operators
+ Parser.prototype.parseAwaitExpression = function () {
+ var node = this.createNode();
+ this.nextToken();
+ var argument = this.parseUnaryExpression();
+ return this.finalize(node, new Node.AwaitExpression(argument));
+ };
+ Parser.prototype.parseUnaryExpression = function () {
+ var expr;
+ if (this.match('+') || this.match('-') || this.match('~') || this.match('!') ||
+ this.matchKeyword('delete') || this.matchKeyword('void') || this.matchKeyword('typeof')) {
+ var node = this.startNode(this.lookahead);
+ var token = this.nextToken();
+ expr = this.inheritCoverGrammar(this.parseUnaryExpression);
+ expr = this.finalize(node, new Node.UnaryExpression(token.value, expr));
+ if (this.context.strict && expr.operator === 'delete' && expr.argument.type === syntax_1.Syntax.Identifier) {
+ this.tolerateError(messages_1.Messages.StrictDelete);
+ }
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ }
+ else if (this.context.await && this.matchContextualKeyword('await')) {
+ expr = this.parseAwaitExpression();
+ }
+ else {
+ expr = this.parseUpdateExpression();
+ }
+ return expr;
+ };
+ Parser.prototype.parseExponentiationExpression = function () {
+ var startToken = this.lookahead;
+ var expr = this.inheritCoverGrammar(this.parseUnaryExpression);
+ if (expr.type !== syntax_1.Syntax.UnaryExpression && this.match('**')) {
+ this.nextToken();
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ var left = expr;
+ var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
+ expr = this.finalize(this.startNode(startToken), new Node.BinaryExpression('**', left, right));
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-exp-operator
+ // https://tc39.github.io/ecma262/#sec-multiplicative-operators
+ // https://tc39.github.io/ecma262/#sec-additive-operators
+ // https://tc39.github.io/ecma262/#sec-bitwise-shift-operators
+ // https://tc39.github.io/ecma262/#sec-relational-operators
+ // https://tc39.github.io/ecma262/#sec-equality-operators
+ // https://tc39.github.io/ecma262/#sec-binary-bitwise-operators
+ // https://tc39.github.io/ecma262/#sec-binary-logical-operators
+ Parser.prototype.binaryPrecedence = function (token) {
+ var op = token.value;
+ var precedence;
+ if (token.type === 7 /* Punctuator */) {
+ precedence = this.operatorPrecedence[op] || 0;
+ }
+ else if (token.type === 4 /* Keyword */) {
+ precedence = (op === 'instanceof' || (this.context.allowIn && op === 'in')) ? 7 : 0;
+ }
+ else {
+ precedence = 0;
+ }
+ return precedence;
+ };
+ Parser.prototype.parseBinaryExpression = function () {
+ var startToken = this.lookahead;
+ var expr = this.inheritCoverGrammar(this.parseExponentiationExpression);
+ var token = this.lookahead;
+ var prec = this.binaryPrecedence(token);
+ if (prec > 0) {
+ this.nextToken();
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ var markers = [startToken, this.lookahead];
+ var left = expr;
+ var right = this.isolateCoverGrammar(this.parseExponentiationExpression);
+ var stack = [left, token.value, right];
+ var precedences = [prec];
+ while (true) {
+ prec = this.binaryPrecedence(this.lookahead);
+ if (prec <= 0) {
+ break;
+ }
+ // Reduce: make a binary expression from the three topmost entries.
+ while ((stack.length > 2) && (prec <= precedences[precedences.length - 1])) {
+ right = stack.pop();
+ var operator = stack.pop();
+ precedences.pop();
+ left = stack.pop();
+ markers.pop();
+ var node = this.startNode(markers[markers.length - 1]);
+ stack.push(this.finalize(node, new Node.BinaryExpression(operator, left, right)));
+ }
+ // Shift.
+ stack.push(this.nextToken().value);
+ precedences.push(prec);
+ markers.push(this.lookahead);
+ stack.push(this.isolateCoverGrammar(this.parseExponentiationExpression));
+ }
+ // Final reduce to clean-up the stack.
+ var i = stack.length - 1;
+ expr = stack[i];
+ var lastMarker = markers.pop();
+ while (i > 1) {
+ var marker = markers.pop();
+ var lastLineStart = lastMarker && lastMarker.lineStart;
+ var node = this.startNode(marker, lastLineStart);
+ var operator = stack[i - 1];
+ expr = this.finalize(node, new Node.BinaryExpression(operator, stack[i - 2], expr));
+ i -= 2;
+ lastMarker = marker;
+ }
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-conditional-operator
+ Parser.prototype.parseConditionalExpression = function () {
+ var startToken = this.lookahead;
+ var expr = this.inheritCoverGrammar(this.parseBinaryExpression);
+ if (this.match('?')) {
+ this.nextToken();
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = true;
+ var consequent = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ this.context.allowIn = previousAllowIn;
+ this.expect(':');
+ var alternate = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ expr = this.finalize(this.startNode(startToken), new Node.ConditionalExpression(expr, consequent, alternate));
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-assignment-operators
+ Parser.prototype.checkPatternParam = function (options, param) {
+ switch (param.type) {
+ case syntax_1.Syntax.Identifier:
+ this.validateParam(options, param, param.name);
+ break;
+ case syntax_1.Syntax.RestElement:
+ this.checkPatternParam(options, param.argument);
+ break;
+ case syntax_1.Syntax.AssignmentPattern:
+ this.checkPatternParam(options, param.left);
+ break;
+ case syntax_1.Syntax.ArrayPattern:
+ for (var i = 0; i < param.elements.length; i++) {
+ if (param.elements[i] !== null) {
+ this.checkPatternParam(options, param.elements[i]);
+ }
+ }
+ break;
+ case syntax_1.Syntax.ObjectPattern:
+ for (var i = 0; i < param.properties.length; i++) {
+ this.checkPatternParam(options, param.properties[i].value);
+ }
+ break;
+ default:
+ break;
+ }
+ options.simple = options.simple && (param instanceof Node.Identifier);
+ };
+ Parser.prototype.reinterpretAsCoverFormalsList = function (expr) {
+ var params = [expr];
+ var options;
+ var asyncArrow = false;
+ switch (expr.type) {
+ case syntax_1.Syntax.Identifier:
+ break;
+ case ArrowParameterPlaceHolder:
+ params = expr.params;
+ asyncArrow = expr.async;
+ break;
+ default:
+ return null;
+ }
+ options = {
+ simple: true,
+ paramSet: {}
+ };
+ for (var i = 0; i < params.length; ++i) {
+ var param = params[i];
+ if (param.type === syntax_1.Syntax.AssignmentPattern) {
+ if (param.right.type === syntax_1.Syntax.YieldExpression) {
+ if (param.right.argument) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ param.right.type = syntax_1.Syntax.Identifier;
+ param.right.name = 'yield';
+ delete param.right.argument;
+ delete param.right.delegate;
+ }
+ }
+ else if (asyncArrow && param.type === syntax_1.Syntax.Identifier && param.name === 'await') {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ this.checkPatternParam(options, param);
+ params[i] = param;
+ }
+ if (this.context.strict || !this.context.allowYield) {
+ for (var i = 0; i < params.length; ++i) {
+ var param = params[i];
+ if (param.type === syntax_1.Syntax.YieldExpression) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ }
+ }
+ if (options.message === messages_1.Messages.StrictParamDupe) {
+ var token = this.context.strict ? options.stricted : options.firstRestricted;
+ this.throwUnexpectedToken(token, options.message);
+ }
+ return {
+ simple: options.simple,
+ params: params,
+ stricted: options.stricted,
+ firstRestricted: options.firstRestricted,
+ message: options.message
+ };
+ };
+ Parser.prototype.parseAssignmentExpression = function () {
+ var expr;
+ if (!this.context.allowYield && this.matchKeyword('yield')) {
+ expr = this.parseYieldExpression();
+ }
+ else {
+ var startToken = this.lookahead;
+ var token = startToken;
+ expr = this.parseConditionalExpression();
+ if (token.type === 3 /* Identifier */ && (token.lineNumber === this.lookahead.lineNumber) && token.value === 'async') {
+ if (this.lookahead.type === 3 /* Identifier */ || this.matchKeyword('yield')) {
+ var arg = this.parsePrimaryExpression();
+ this.reinterpretExpressionAsPattern(arg);
+ expr = {
+ type: ArrowParameterPlaceHolder,
+ params: [arg],
+ async: true
+ };
+ }
+ }
+ if (expr.type === ArrowParameterPlaceHolder || this.match('=>')) {
+ // https://tc39.github.io/ecma262/#sec-arrow-function-definitions
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ var isAsync = expr.async;
+ var list = this.reinterpretAsCoverFormalsList(expr);
+ if (list) {
+ if (this.hasLineTerminator) {
+ this.tolerateUnexpectedToken(this.lookahead);
+ }
+ this.context.firstCoverInitializedNameError = null;
+ var previousStrict = this.context.strict;
+ var previousAllowStrictDirective = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = list.simple;
+ var previousAllowYield = this.context.allowYield;
+ var previousAwait = this.context.await;
+ this.context.allowYield = true;
+ this.context.await = isAsync;
+ var node = this.startNode(startToken);
+ this.expect('=>');
+ var body = void 0;
+ if (this.match('{')) {
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = true;
+ body = this.parseFunctionSourceElements();
+ this.context.allowIn = previousAllowIn;
+ }
+ else {
+ body = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ }
+ var expression = body.type !== syntax_1.Syntax.BlockStatement;
+ if (this.context.strict && list.firstRestricted) {
+ this.throwUnexpectedToken(list.firstRestricted, list.message);
+ }
+ if (this.context.strict && list.stricted) {
+ this.tolerateUnexpectedToken(list.stricted, list.message);
+ }
+ expr = isAsync ? this.finalize(node, new Node.AsyncArrowFunctionExpression(list.params, body, expression)) :
+ this.finalize(node, new Node.ArrowFunctionExpression(list.params, body, expression));
+ this.context.strict = previousStrict;
+ this.context.allowStrictDirective = previousAllowStrictDirective;
+ this.context.allowYield = previousAllowYield;
+ this.context.await = previousAwait;
+ }
+ }
+ else {
+ if (this.matchAssign()) {
+ if (!this.context.isAssignmentTarget) {
+ this.tolerateError(messages_1.Messages.InvalidLHSInAssignment);
+ }
+ if (this.context.strict && expr.type === syntax_1.Syntax.Identifier) {
+ var id = expr;
+ if (this.scanner.isRestrictedWord(id.name)) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictLHSAssignment);
+ }
+ if (this.scanner.isStrictModeReservedWord(id.name)) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
+ }
+ }
+ if (!this.match('=')) {
+ this.context.isAssignmentTarget = false;
+ this.context.isBindingElement = false;
+ }
+ else {
+ this.reinterpretExpressionAsPattern(expr);
+ }
+ token = this.nextToken();
+ var operator = token.value;
+ var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ expr = this.finalize(this.startNode(startToken), new Node.AssignmentExpression(operator, expr, right));
+ this.context.firstCoverInitializedNameError = null;
+ }
+ }
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-comma-operator
+ Parser.prototype.parseExpression = function () {
+ var startToken = this.lookahead;
+ var expr = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ if (this.match(',')) {
+ var expressions = [];
+ expressions.push(expr);
+ while (this.lookahead.type !== 2 /* EOF */) {
+ if (!this.match(',')) {
+ break;
+ }
+ this.nextToken();
+ expressions.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
+ }
+ expr = this.finalize(this.startNode(startToken), new Node.SequenceExpression(expressions));
+ }
+ return expr;
+ };
+ // https://tc39.github.io/ecma262/#sec-block
+ Parser.prototype.parseStatementListItem = function () {
+ var statement;
+ this.context.isAssignmentTarget = true;
+ this.context.isBindingElement = true;
+ if (this.lookahead.type === 4 /* Keyword */) {
+ switch (this.lookahead.value) {
+ case 'export':
+ if (!this.context.isModule) {
+ this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalExportDeclaration);
+ }
+ statement = this.parseExportDeclaration();
+ break;
+ case 'import':
+ if (!this.context.isModule) {
+ this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.IllegalImportDeclaration);
+ }
+ statement = this.parseImportDeclaration();
+ break;
+ case 'const':
+ statement = this.parseLexicalDeclaration({ inFor: false });
+ break;
+ case 'function':
+ statement = this.parseFunctionDeclaration();
+ break;
+ case 'class':
+ statement = this.parseClassDeclaration();
+ break;
+ case 'let':
+ statement = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: false }) : this.parseStatement();
+ break;
+ default:
+ statement = this.parseStatement();
+ break;
+ }
+ }
+ else {
+ statement = this.parseStatement();
+ }
+ return statement;
+ };
+ Parser.prototype.parseBlock = function () {
+ var node = this.createNode();
+ this.expect('{');
+ var block = [];
+ while (true) {
+ if (this.match('}')) {
+ break;
+ }
+ block.push(this.parseStatementListItem());
+ }
+ this.expect('}');
+ return this.finalize(node, new Node.BlockStatement(block));
+ };
+ // https://tc39.github.io/ecma262/#sec-let-and-const-declarations
+ Parser.prototype.parseLexicalBinding = function (kind, options) {
+ var node = this.createNode();
+ var params = [];
+ var id = this.parsePattern(params, kind);
+ if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
+ if (this.scanner.isRestrictedWord(id.name)) {
+ this.tolerateError(messages_1.Messages.StrictVarName);
+ }
+ }
+ var init = null;
+ if (kind === 'const') {
+ if (!this.matchKeyword('in') && !this.matchContextualKeyword('of')) {
+ if (this.match('=')) {
+ this.nextToken();
+ init = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ }
+ else {
+ this.throwError(messages_1.Messages.DeclarationMissingInitializer, 'const');
+ }
+ }
+ }
+ else if ((!options.inFor && id.type !== syntax_1.Syntax.Identifier) || this.match('=')) {
+ this.expect('=');
+ init = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ }
+ return this.finalize(node, new Node.VariableDeclarator(id, init));
+ };
+ Parser.prototype.parseBindingList = function (kind, options) {
+ var list = [this.parseLexicalBinding(kind, options)];
+ while (this.match(',')) {
+ this.nextToken();
+ list.push(this.parseLexicalBinding(kind, options));
+ }
+ return list;
+ };
+ Parser.prototype.isLexicalDeclaration = function () {
+ var state = this.scanner.saveState();
+ this.scanner.scanComments();
+ var next = this.scanner.lex();
+ this.scanner.restoreState(state);
+ return (next.type === 3 /* Identifier */) ||
+ (next.type === 7 /* Punctuator */ && next.value === '[') ||
+ (next.type === 7 /* Punctuator */ && next.value === '{') ||
+ (next.type === 4 /* Keyword */ && next.value === 'let') ||
+ (next.type === 4 /* Keyword */ && next.value === 'yield');
+ };
+ Parser.prototype.parseLexicalDeclaration = function (options) {
+ var node = this.createNode();
+ var kind = this.nextToken().value;
+ assert_1.assert(kind === 'let' || kind === 'const', 'Lexical declaration must be either let or const');
+ var declarations = this.parseBindingList(kind, options);
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.VariableDeclaration(declarations, kind));
+ };
+ // https://tc39.github.io/ecma262/#sec-destructuring-binding-patterns
+ Parser.prototype.parseBindingRestElement = function (params, kind) {
+ var node = this.createNode();
+ this.expect('...');
+ var arg = this.parsePattern(params, kind);
+ return this.finalize(node, new Node.RestElement(arg));
+ };
+ Parser.prototype.parseArrayPattern = function (params, kind) {
+ var node = this.createNode();
+ this.expect('[');
+ var elements = [];
+ while (!this.match(']')) {
+ if (this.match(',')) {
+ this.nextToken();
+ elements.push(null);
+ }
+ else {
+ if (this.match('...')) {
+ elements.push(this.parseBindingRestElement(params, kind));
+ break;
+ }
+ else {
+ elements.push(this.parsePatternWithDefault(params, kind));
+ }
+ if (!this.match(']')) {
+ this.expect(',');
+ }
+ }
+ }
+ this.expect(']');
+ return this.finalize(node, new Node.ArrayPattern(elements));
+ };
+ Parser.prototype.parsePropertyPattern = function (params, kind) {
+ var node = this.createNode();
+ var computed = false;
+ var shorthand = false;
+ var method = false;
+ var key;
+ var value;
+ if (this.lookahead.type === 3 /* Identifier */) {
+ var keyToken = this.lookahead;
+ key = this.parseVariableIdentifier();
+ var init = this.finalize(node, new Node.Identifier(keyToken.value));
+ if (this.match('=')) {
+ params.push(keyToken);
+ shorthand = true;
+ this.nextToken();
+ var expr = this.parseAssignmentExpression();
+ value = this.finalize(this.startNode(keyToken), new Node.AssignmentPattern(init, expr));
+ }
+ else if (!this.match(':')) {
+ params.push(keyToken);
+ shorthand = true;
+ value = init;
+ }
+ else {
+ this.expect(':');
+ value = this.parsePatternWithDefault(params, kind);
+ }
+ }
+ else {
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ this.expect(':');
+ value = this.parsePatternWithDefault(params, kind);
+ }
+ return this.finalize(node, new Node.Property('init', key, computed, value, method, shorthand));
+ };
+ Parser.prototype.parseObjectPattern = function (params, kind) {
+ var node = this.createNode();
+ var properties = [];
+ this.expect('{');
+ while (!this.match('}')) {
+ properties.push(this.parsePropertyPattern(params, kind));
+ if (!this.match('}')) {
+ this.expect(',');
+ }
+ }
+ this.expect('}');
+ return this.finalize(node, new Node.ObjectPattern(properties));
+ };
+ Parser.prototype.parsePattern = function (params, kind) {
+ var pattern;
+ if (this.match('[')) {
+ pattern = this.parseArrayPattern(params, kind);
+ }
+ else if (this.match('{')) {
+ pattern = this.parseObjectPattern(params, kind);
+ }
+ else {
+ if (this.matchKeyword('let') && (kind === 'const' || kind === 'let')) {
+ this.tolerateUnexpectedToken(this.lookahead, messages_1.Messages.LetInLexicalBinding);
+ }
+ params.push(this.lookahead);
+ pattern = this.parseVariableIdentifier(kind);
+ }
+ return pattern;
+ };
+ Parser.prototype.parsePatternWithDefault = function (params, kind) {
+ var startToken = this.lookahead;
+ var pattern = this.parsePattern(params, kind);
+ if (this.match('=')) {
+ this.nextToken();
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = true;
+ var right = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ this.context.allowYield = previousAllowYield;
+ pattern = this.finalize(this.startNode(startToken), new Node.AssignmentPattern(pattern, right));
+ }
+ return pattern;
+ };
+ // https://tc39.github.io/ecma262/#sec-variable-statement
+ Parser.prototype.parseVariableIdentifier = function (kind) {
+ var node = this.createNode();
+ var token = this.nextToken();
+ if (token.type === 4 /* Keyword */ && token.value === 'yield') {
+ if (this.context.strict) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
+ }
+ else if (!this.context.allowYield) {
+ this.throwUnexpectedToken(token);
+ }
+ }
+ else if (token.type !== 3 /* Identifier */) {
+ if (this.context.strict && token.type === 4 /* Keyword */ && this.scanner.isStrictModeReservedWord(token.value)) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictReservedWord);
+ }
+ else {
+ if (this.context.strict || token.value !== 'let' || kind !== 'var') {
+ this.throwUnexpectedToken(token);
+ }
+ }
+ }
+ else if ((this.context.isModule || this.context.await) && token.type === 3 /* Identifier */ && token.value === 'await') {
+ this.tolerateUnexpectedToken(token);
+ }
+ return this.finalize(node, new Node.Identifier(token.value));
+ };
+ Parser.prototype.parseVariableDeclaration = function (options) {
+ var node = this.createNode();
+ var params = [];
+ var id = this.parsePattern(params, 'var');
+ if (this.context.strict && id.type === syntax_1.Syntax.Identifier) {
+ if (this.scanner.isRestrictedWord(id.name)) {
+ this.tolerateError(messages_1.Messages.StrictVarName);
+ }
+ }
+ var init = null;
+ if (this.match('=')) {
+ this.nextToken();
+ init = this.isolateCoverGrammar(this.parseAssignmentExpression);
+ }
+ else if (id.type !== syntax_1.Syntax.Identifier && !options.inFor) {
+ this.expect('=');
+ }
+ return this.finalize(node, new Node.VariableDeclarator(id, init));
+ };
+ Parser.prototype.parseVariableDeclarationList = function (options) {
+ var opt = { inFor: options.inFor };
+ var list = [];
+ list.push(this.parseVariableDeclaration(opt));
+ while (this.match(',')) {
+ this.nextToken();
+ list.push(this.parseVariableDeclaration(opt));
+ }
+ return list;
+ };
+ Parser.prototype.parseVariableStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('var');
+ var declarations = this.parseVariableDeclarationList({ inFor: false });
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.VariableDeclaration(declarations, 'var'));
+ };
+ // https://tc39.github.io/ecma262/#sec-empty-statement
+ Parser.prototype.parseEmptyStatement = function () {
+ var node = this.createNode();
+ this.expect(';');
+ return this.finalize(node, new Node.EmptyStatement());
+ };
+ // https://tc39.github.io/ecma262/#sec-expression-statement
+ Parser.prototype.parseExpressionStatement = function () {
+ var node = this.createNode();
+ var expr = this.parseExpression();
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.ExpressionStatement(expr));
+ };
+ // https://tc39.github.io/ecma262/#sec-if-statement
+ Parser.prototype.parseIfClause = function () {
+ if (this.context.strict && this.matchKeyword('function')) {
+ this.tolerateError(messages_1.Messages.StrictFunction);
+ }
+ return this.parseStatement();
+ };
+ Parser.prototype.parseIfStatement = function () {
+ var node = this.createNode();
+ var consequent;
+ var alternate = null;
+ this.expectKeyword('if');
+ this.expect('(');
+ var test = this.parseExpression();
+ if (!this.match(')') && this.config.tolerant) {
+ this.tolerateUnexpectedToken(this.nextToken());
+ consequent = this.finalize(this.createNode(), new Node.EmptyStatement());
+ }
+ else {
+ this.expect(')');
+ consequent = this.parseIfClause();
+ if (this.matchKeyword('else')) {
+ this.nextToken();
+ alternate = this.parseIfClause();
+ }
+ }
+ return this.finalize(node, new Node.IfStatement(test, consequent, alternate));
+ };
+ // https://tc39.github.io/ecma262/#sec-do-while-statement
+ Parser.prototype.parseDoWhileStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('do');
+ var previousInIteration = this.context.inIteration;
+ this.context.inIteration = true;
+ var body = this.parseStatement();
+ this.context.inIteration = previousInIteration;
+ this.expectKeyword('while');
+ this.expect('(');
+ var test = this.parseExpression();
+ if (!this.match(')') && this.config.tolerant) {
+ this.tolerateUnexpectedToken(this.nextToken());
+ }
+ else {
+ this.expect(')');
+ if (this.match(';')) {
+ this.nextToken();
+ }
+ }
+ return this.finalize(node, new Node.DoWhileStatement(body, test));
+ };
+ // https://tc39.github.io/ecma262/#sec-while-statement
+ Parser.prototype.parseWhileStatement = function () {
+ var node = this.createNode();
+ var body;
+ this.expectKeyword('while');
+ this.expect('(');
+ var test = this.parseExpression();
+ if (!this.match(')') && this.config.tolerant) {
+ this.tolerateUnexpectedToken(this.nextToken());
+ body = this.finalize(this.createNode(), new Node.EmptyStatement());
+ }
+ else {
+ this.expect(')');
+ var previousInIteration = this.context.inIteration;
+ this.context.inIteration = true;
+ body = this.parseStatement();
+ this.context.inIteration = previousInIteration;
+ }
+ return this.finalize(node, new Node.WhileStatement(test, body));
+ };
+ // https://tc39.github.io/ecma262/#sec-for-statement
+ // https://tc39.github.io/ecma262/#sec-for-in-and-for-of-statements
+ Parser.prototype.parseForStatement = function () {
+ var init = null;
+ var test = null;
+ var update = null;
+ var forIn = true;
+ var left, right;
+ var node = this.createNode();
+ this.expectKeyword('for');
+ this.expect('(');
+ if (this.match(';')) {
+ this.nextToken();
+ }
+ else {
+ if (this.matchKeyword('var')) {
+ init = this.createNode();
+ this.nextToken();
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = false;
+ var declarations = this.parseVariableDeclarationList({ inFor: true });
+ this.context.allowIn = previousAllowIn;
+ if (declarations.length === 1 && this.matchKeyword('in')) {
+ var decl = declarations[0];
+ if (decl.init && (decl.id.type === syntax_1.Syntax.ArrayPattern || decl.id.type === syntax_1.Syntax.ObjectPattern || this.context.strict)) {
+ this.tolerateError(messages_1.Messages.ForInOfLoopInitializer, 'for-in');
+ }
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
+ this.nextToken();
+ left = init;
+ right = this.parseExpression();
+ init = null;
+ }
+ else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) {
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
+ this.nextToken();
+ left = init;
+ right = this.parseAssignmentExpression();
+ init = null;
+ forIn = false;
+ }
+ else {
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, 'var'));
+ this.expect(';');
+ }
+ }
+ else if (this.matchKeyword('const') || this.matchKeyword('let')) {
+ init = this.createNode();
+ var kind = this.nextToken().value;
+ if (!this.context.strict && this.lookahead.value === 'in') {
+ init = this.finalize(init, new Node.Identifier(kind));
+ this.nextToken();
+ left = init;
+ right = this.parseExpression();
+ init = null;
+ }
+ else {
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = false;
+ var declarations = this.parseBindingList(kind, { inFor: true });
+ this.context.allowIn = previousAllowIn;
+ if (declarations.length === 1 && declarations[0].init === null && this.matchKeyword('in')) {
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
+ this.nextToken();
+ left = init;
+ right = this.parseExpression();
+ init = null;
+ }
+ else if (declarations.length === 1 && declarations[0].init === null && this.matchContextualKeyword('of')) {
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
+ this.nextToken();
+ left = init;
+ right = this.parseAssignmentExpression();
+ init = null;
+ forIn = false;
+ }
+ else {
+ this.consumeSemicolon();
+ init = this.finalize(init, new Node.VariableDeclaration(declarations, kind));
+ }
+ }
+ }
+ else {
+ var initStartToken = this.lookahead;
+ var previousAllowIn = this.context.allowIn;
+ this.context.allowIn = false;
+ init = this.inheritCoverGrammar(this.parseAssignmentExpression);
+ this.context.allowIn = previousAllowIn;
+ if (this.matchKeyword('in')) {
+ if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
+ this.tolerateError(messages_1.Messages.InvalidLHSInForIn);
+ }
+ this.nextToken();
+ this.reinterpretExpressionAsPattern(init);
+ left = init;
+ right = this.parseExpression();
+ init = null;
+ }
+ else if (this.matchContextualKeyword('of')) {
+ if (!this.context.isAssignmentTarget || init.type === syntax_1.Syntax.AssignmentExpression) {
+ this.tolerateError(messages_1.Messages.InvalidLHSInForLoop);
+ }
+ this.nextToken();
+ this.reinterpretExpressionAsPattern(init);
+ left = init;
+ right = this.parseAssignmentExpression();
+ init = null;
+ forIn = false;
+ }
+ else {
+ if (this.match(',')) {
+ var initSeq = [init];
+ while (this.match(',')) {
+ this.nextToken();
+ initSeq.push(this.isolateCoverGrammar(this.parseAssignmentExpression));
+ }
+ init = this.finalize(this.startNode(initStartToken), new Node.SequenceExpression(initSeq));
+ }
+ this.expect(';');
+ }
+ }
+ }
+ if (typeof left === 'undefined') {
+ if (!this.match(';')) {
+ test = this.parseExpression();
+ }
+ this.expect(';');
+ if (!this.match(')')) {
+ update = this.parseExpression();
+ }
+ }
+ var body;
+ if (!this.match(')') && this.config.tolerant) {
+ this.tolerateUnexpectedToken(this.nextToken());
+ body = this.finalize(this.createNode(), new Node.EmptyStatement());
+ }
+ else {
+ this.expect(')');
+ var previousInIteration = this.context.inIteration;
+ this.context.inIteration = true;
+ body = this.isolateCoverGrammar(this.parseStatement);
+ this.context.inIteration = previousInIteration;
+ }
+ return (typeof left === 'undefined') ?
+ this.finalize(node, new Node.ForStatement(init, test, update, body)) :
+ forIn ? this.finalize(node, new Node.ForInStatement(left, right, body)) :
+ this.finalize(node, new Node.ForOfStatement(left, right, body));
+ };
+ // https://tc39.github.io/ecma262/#sec-continue-statement
+ Parser.prototype.parseContinueStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('continue');
+ var label = null;
+ if (this.lookahead.type === 3 /* Identifier */ && !this.hasLineTerminator) {
+ var id = this.parseVariableIdentifier();
+ label = id;
+ var key = '$' + id.name;
+ if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
+ this.throwError(messages_1.Messages.UnknownLabel, id.name);
+ }
+ }
+ this.consumeSemicolon();
+ if (label === null && !this.context.inIteration) {
+ this.throwError(messages_1.Messages.IllegalContinue);
+ }
+ return this.finalize(node, new Node.ContinueStatement(label));
+ };
+ // https://tc39.github.io/ecma262/#sec-break-statement
+ Parser.prototype.parseBreakStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('break');
+ var label = null;
+ if (this.lookahead.type === 3 /* Identifier */ && !this.hasLineTerminator) {
+ var id = this.parseVariableIdentifier();
+ var key = '$' + id.name;
+ if (!Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
+ this.throwError(messages_1.Messages.UnknownLabel, id.name);
+ }
+ label = id;
+ }
+ this.consumeSemicolon();
+ if (label === null && !this.context.inIteration && !this.context.inSwitch) {
+ this.throwError(messages_1.Messages.IllegalBreak);
+ }
+ return this.finalize(node, new Node.BreakStatement(label));
+ };
+ // https://tc39.github.io/ecma262/#sec-return-statement
+ Parser.prototype.parseReturnStatement = function () {
+ if (!this.context.inFunctionBody) {
+ this.tolerateError(messages_1.Messages.IllegalReturn);
+ }
+ var node = this.createNode();
+ this.expectKeyword('return');
+ var hasArgument = (!this.match(';') && !this.match('}') &&
+ !this.hasLineTerminator && this.lookahead.type !== 2 /* EOF */) ||
+ this.lookahead.type === 8 /* StringLiteral */ ||
+ this.lookahead.type === 10 /* Template */;
+ var argument = hasArgument ? this.parseExpression() : null;
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.ReturnStatement(argument));
+ };
+ // https://tc39.github.io/ecma262/#sec-with-statement
+ Parser.prototype.parseWithStatement = function () {
+ if (this.context.strict) {
+ this.tolerateError(messages_1.Messages.StrictModeWith);
+ }
+ var node = this.createNode();
+ var body;
+ this.expectKeyword('with');
+ this.expect('(');
+ var object = this.parseExpression();
+ if (!this.match(')') && this.config.tolerant) {
+ this.tolerateUnexpectedToken(this.nextToken());
+ body = this.finalize(this.createNode(), new Node.EmptyStatement());
+ }
+ else {
+ this.expect(')');
+ body = this.parseStatement();
+ }
+ return this.finalize(node, new Node.WithStatement(object, body));
+ };
+ // https://tc39.github.io/ecma262/#sec-switch-statement
+ Parser.prototype.parseSwitchCase = function () {
+ var node = this.createNode();
+ var test;
+ if (this.matchKeyword('default')) {
+ this.nextToken();
+ test = null;
+ }
+ else {
+ this.expectKeyword('case');
+ test = this.parseExpression();
+ }
+ this.expect(':');
+ var consequent = [];
+ while (true) {
+ if (this.match('}') || this.matchKeyword('default') || this.matchKeyword('case')) {
+ break;
+ }
+ consequent.push(this.parseStatementListItem());
+ }
+ return this.finalize(node, new Node.SwitchCase(test, consequent));
+ };
+ Parser.prototype.parseSwitchStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('switch');
+ this.expect('(');
+ var discriminant = this.parseExpression();
+ this.expect(')');
+ var previousInSwitch = this.context.inSwitch;
+ this.context.inSwitch = true;
+ var cases = [];
+ var defaultFound = false;
+ this.expect('{');
+ while (true) {
+ if (this.match('}')) {
+ break;
+ }
+ var clause = this.parseSwitchCase();
+ if (clause.test === null) {
+ if (defaultFound) {
+ this.throwError(messages_1.Messages.MultipleDefaultsInSwitch);
+ }
+ defaultFound = true;
+ }
+ cases.push(clause);
+ }
+ this.expect('}');
+ this.context.inSwitch = previousInSwitch;
+ return this.finalize(node, new Node.SwitchStatement(discriminant, cases));
+ };
+ // https://tc39.github.io/ecma262/#sec-labelled-statements
+ Parser.prototype.parseLabelledStatement = function () {
+ var node = this.createNode();
+ var expr = this.parseExpression();
+ var statement;
+ if ((expr.type === syntax_1.Syntax.Identifier) && this.match(':')) {
+ this.nextToken();
+ var id = expr;
+ var key = '$' + id.name;
+ if (Object.prototype.hasOwnProperty.call(this.context.labelSet, key)) {
+ this.throwError(messages_1.Messages.Redeclaration, 'Label', id.name);
+ }
+ this.context.labelSet[key] = true;
+ var body = void 0;
+ if (this.matchKeyword('class')) {
+ this.tolerateUnexpectedToken(this.lookahead);
+ body = this.parseClassDeclaration();
+ }
+ else if (this.matchKeyword('function')) {
+ var token = this.lookahead;
+ var declaration = this.parseFunctionDeclaration();
+ if (this.context.strict) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunction);
+ }
+ else if (declaration.generator) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.GeneratorInLegacyContext);
+ }
+ body = declaration;
+ }
+ else {
+ body = this.parseStatement();
+ }
+ delete this.context.labelSet[key];
+ statement = new Node.LabeledStatement(id, body);
+ }
+ else {
+ this.consumeSemicolon();
+ statement = new Node.ExpressionStatement(expr);
+ }
+ return this.finalize(node, statement);
+ };
+ // https://tc39.github.io/ecma262/#sec-throw-statement
+ Parser.prototype.parseThrowStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('throw');
+ if (this.hasLineTerminator) {
+ this.throwError(messages_1.Messages.NewlineAfterThrow);
+ }
+ var argument = this.parseExpression();
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.ThrowStatement(argument));
+ };
+ // https://tc39.github.io/ecma262/#sec-try-statement
+ Parser.prototype.parseCatchClause = function () {
+ var node = this.createNode();
+ this.expectKeyword('catch');
+ this.expect('(');
+ if (this.match(')')) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ var params = [];
+ var param = this.parsePattern(params);
+ var paramMap = {};
+ for (var i = 0; i < params.length; i++) {
+ var key = '$' + params[i].value;
+ if (Object.prototype.hasOwnProperty.call(paramMap, key)) {
+ this.tolerateError(messages_1.Messages.DuplicateBinding, params[i].value);
+ }
+ paramMap[key] = true;
+ }
+ if (this.context.strict && param.type === syntax_1.Syntax.Identifier) {
+ if (this.scanner.isRestrictedWord(param.name)) {
+ this.tolerateError(messages_1.Messages.StrictCatchVariable);
+ }
+ }
+ this.expect(')');
+ var body = this.parseBlock();
+ return this.finalize(node, new Node.CatchClause(param, body));
+ };
+ Parser.prototype.parseFinallyClause = function () {
+ this.expectKeyword('finally');
+ return this.parseBlock();
+ };
+ Parser.prototype.parseTryStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('try');
+ var block = this.parseBlock();
+ var handler = this.matchKeyword('catch') ? this.parseCatchClause() : null;
+ var finalizer = this.matchKeyword('finally') ? this.parseFinallyClause() : null;
+ if (!handler && !finalizer) {
+ this.throwError(messages_1.Messages.NoCatchOrFinally);
+ }
+ return this.finalize(node, new Node.TryStatement(block, handler, finalizer));
+ };
+ // https://tc39.github.io/ecma262/#sec-debugger-statement
+ Parser.prototype.parseDebuggerStatement = function () {
+ var node = this.createNode();
+ this.expectKeyword('debugger');
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.DebuggerStatement());
+ };
+ // https://tc39.github.io/ecma262/#sec-ecmascript-language-statements-and-declarations
+ Parser.prototype.parseStatement = function () {
+ var statement;
+ switch (this.lookahead.type) {
+ case 1 /* BooleanLiteral */:
+ case 5 /* NullLiteral */:
+ case 6 /* NumericLiteral */:
+ case 8 /* StringLiteral */:
+ case 10 /* Template */:
+ case 9 /* RegularExpression */:
+ statement = this.parseExpressionStatement();
+ break;
+ case 7 /* Punctuator */:
+ var value = this.lookahead.value;
+ if (value === '{') {
+ statement = this.parseBlock();
+ }
+ else if (value === '(') {
+ statement = this.parseExpressionStatement();
+ }
+ else if (value === ';') {
+ statement = this.parseEmptyStatement();
+ }
+ else {
+ statement = this.parseExpressionStatement();
+ }
+ break;
+ case 3 /* Identifier */:
+ statement = this.matchAsyncFunction() ? this.parseFunctionDeclaration() : this.parseLabelledStatement();
+ break;
+ case 4 /* Keyword */:
+ switch (this.lookahead.value) {
+ case 'break':
+ statement = this.parseBreakStatement();
+ break;
+ case 'continue':
+ statement = this.parseContinueStatement();
+ break;
+ case 'debugger':
+ statement = this.parseDebuggerStatement();
+ break;
+ case 'do':
+ statement = this.parseDoWhileStatement();
+ break;
+ case 'for':
+ statement = this.parseForStatement();
+ break;
+ case 'function':
+ statement = this.parseFunctionDeclaration();
+ break;
+ case 'if':
+ statement = this.parseIfStatement();
+ break;
+ case 'return':
+ statement = this.parseReturnStatement();
+ break;
+ case 'switch':
+ statement = this.parseSwitchStatement();
+ break;
+ case 'throw':
+ statement = this.parseThrowStatement();
+ break;
+ case 'try':
+ statement = this.parseTryStatement();
+ break;
+ case 'var':
+ statement = this.parseVariableStatement();
+ break;
+ case 'while':
+ statement = this.parseWhileStatement();
+ break;
+ case 'with':
+ statement = this.parseWithStatement();
+ break;
+ default:
+ statement = this.parseExpressionStatement();
+ break;
+ }
+ break;
+ default:
+ statement = this.throwUnexpectedToken(this.lookahead);
+ }
+ return statement;
+ };
+ // https://tc39.github.io/ecma262/#sec-function-definitions
+ Parser.prototype.parseFunctionSourceElements = function () {
+ var node = this.createNode();
+ this.expect('{');
+ var body = this.parseDirectivePrologues();
+ var previousLabelSet = this.context.labelSet;
+ var previousInIteration = this.context.inIteration;
+ var previousInSwitch = this.context.inSwitch;
+ var previousInFunctionBody = this.context.inFunctionBody;
+ this.context.labelSet = {};
+ this.context.inIteration = false;
+ this.context.inSwitch = false;
+ this.context.inFunctionBody = true;
+ while (this.lookahead.type !== 2 /* EOF */) {
+ if (this.match('}')) {
+ break;
+ }
+ body.push(this.parseStatementListItem());
+ }
+ this.expect('}');
+ this.context.labelSet = previousLabelSet;
+ this.context.inIteration = previousInIteration;
+ this.context.inSwitch = previousInSwitch;
+ this.context.inFunctionBody = previousInFunctionBody;
+ return this.finalize(node, new Node.BlockStatement(body));
+ };
+ Parser.prototype.validateParam = function (options, param, name) {
+ var key = '$' + name;
+ if (this.context.strict) {
+ if (this.scanner.isRestrictedWord(name)) {
+ options.stricted = param;
+ options.message = messages_1.Messages.StrictParamName;
+ }
+ if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
+ options.stricted = param;
+ options.message = messages_1.Messages.StrictParamDupe;
+ }
+ }
+ else if (!options.firstRestricted) {
+ if (this.scanner.isRestrictedWord(name)) {
+ options.firstRestricted = param;
+ options.message = messages_1.Messages.StrictParamName;
+ }
+ else if (this.scanner.isStrictModeReservedWord(name)) {
+ options.firstRestricted = param;
+ options.message = messages_1.Messages.StrictReservedWord;
+ }
+ else if (Object.prototype.hasOwnProperty.call(options.paramSet, key)) {
+ options.stricted = param;
+ options.message = messages_1.Messages.StrictParamDupe;
+ }
+ }
+ /* istanbul ignore next */
+ if (typeof Object.defineProperty === 'function') {
+ Object.defineProperty(options.paramSet, key, { value: true, enumerable: true, writable: true, configurable: true });
+ }
+ else {
+ options.paramSet[key] = true;
+ }
+ };
+ Parser.prototype.parseRestElement = function (params) {
+ var node = this.createNode();
+ this.expect('...');
+ var arg = this.parsePattern(params);
+ if (this.match('=')) {
+ this.throwError(messages_1.Messages.DefaultRestParameter);
+ }
+ if (!this.match(')')) {
+ this.throwError(messages_1.Messages.ParameterAfterRestParameter);
+ }
+ return this.finalize(node, new Node.RestElement(arg));
+ };
+ Parser.prototype.parseFormalParameter = function (options) {
+ var params = [];
+ var param = this.match('...') ? this.parseRestElement(params) : this.parsePatternWithDefault(params);
+ for (var i = 0; i < params.length; i++) {
+ this.validateParam(options, params[i], params[i].value);
+ }
+ options.simple = options.simple && (param instanceof Node.Identifier);
+ options.params.push(param);
+ };
+ Parser.prototype.parseFormalParameters = function (firstRestricted) {
+ var options;
+ options = {
+ simple: true,
+ params: [],
+ firstRestricted: firstRestricted
+ };
+ this.expect('(');
+ if (!this.match(')')) {
+ options.paramSet = {};
+ while (this.lookahead.type !== 2 /* EOF */) {
+ this.parseFormalParameter(options);
+ if (this.match(')')) {
+ break;
+ }
+ this.expect(',');
+ if (this.match(')')) {
+ break;
+ }
+ }
+ }
+ this.expect(')');
+ return {
+ simple: options.simple,
+ params: options.params,
+ stricted: options.stricted,
+ firstRestricted: options.firstRestricted,
+ message: options.message
+ };
+ };
+ Parser.prototype.matchAsyncFunction = function () {
+ var match = this.matchContextualKeyword('async');
+ if (match) {
+ var state = this.scanner.saveState();
+ this.scanner.scanComments();
+ var next = this.scanner.lex();
+ this.scanner.restoreState(state);
+ match = (state.lineNumber === next.lineNumber) && (next.type === 4 /* Keyword */) && (next.value === 'function');
+ }
+ return match;
+ };
+ Parser.prototype.parseFunctionDeclaration = function (identifierIsOptional) {
+ var node = this.createNode();
+ var isAsync = this.matchContextualKeyword('async');
+ if (isAsync) {
+ this.nextToken();
+ }
+ this.expectKeyword('function');
+ var isGenerator = isAsync ? false : this.match('*');
+ if (isGenerator) {
+ this.nextToken();
+ }
+ var message;
+ var id = null;
+ var firstRestricted = null;
+ if (!identifierIsOptional || !this.match('(')) {
+ var token = this.lookahead;
+ id = this.parseVariableIdentifier();
+ if (this.context.strict) {
+ if (this.scanner.isRestrictedWord(token.value)) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
+ }
+ }
+ else {
+ if (this.scanner.isRestrictedWord(token.value)) {
+ firstRestricted = token;
+ message = messages_1.Messages.StrictFunctionName;
+ }
+ else if (this.scanner.isStrictModeReservedWord(token.value)) {
+ firstRestricted = token;
+ message = messages_1.Messages.StrictReservedWord;
+ }
+ }
+ }
+ var previousAllowAwait = this.context.await;
+ var previousAllowYield = this.context.allowYield;
+ this.context.await = isAsync;
+ this.context.allowYield = !isGenerator;
+ var formalParameters = this.parseFormalParameters(firstRestricted);
+ var params = formalParameters.params;
+ var stricted = formalParameters.stricted;
+ firstRestricted = formalParameters.firstRestricted;
+ if (formalParameters.message) {
+ message = formalParameters.message;
+ }
+ var previousStrict = this.context.strict;
+ var previousAllowStrictDirective = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = formalParameters.simple;
+ var body = this.parseFunctionSourceElements();
+ if (this.context.strict && firstRestricted) {
+ this.throwUnexpectedToken(firstRestricted, message);
+ }
+ if (this.context.strict && stricted) {
+ this.tolerateUnexpectedToken(stricted, message);
+ }
+ this.context.strict = previousStrict;
+ this.context.allowStrictDirective = previousAllowStrictDirective;
+ this.context.await = previousAllowAwait;
+ this.context.allowYield = previousAllowYield;
+ return isAsync ? this.finalize(node, new Node.AsyncFunctionDeclaration(id, params, body)) :
+ this.finalize(node, new Node.FunctionDeclaration(id, params, body, isGenerator));
+ };
+ Parser.prototype.parseFunctionExpression = function () {
+ var node = this.createNode();
+ var isAsync = this.matchContextualKeyword('async');
+ if (isAsync) {
+ this.nextToken();
+ }
+ this.expectKeyword('function');
+ var isGenerator = isAsync ? false : this.match('*');
+ if (isGenerator) {
+ this.nextToken();
+ }
+ var message;
+ var id = null;
+ var firstRestricted;
+ var previousAllowAwait = this.context.await;
+ var previousAllowYield = this.context.allowYield;
+ this.context.await = isAsync;
+ this.context.allowYield = !isGenerator;
+ if (!this.match('(')) {
+ var token = this.lookahead;
+ id = (!this.context.strict && !isGenerator && this.matchKeyword('yield')) ? this.parseIdentifierName() : this.parseVariableIdentifier();
+ if (this.context.strict) {
+ if (this.scanner.isRestrictedWord(token.value)) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.StrictFunctionName);
+ }
+ }
+ else {
+ if (this.scanner.isRestrictedWord(token.value)) {
+ firstRestricted = token;
+ message = messages_1.Messages.StrictFunctionName;
+ }
+ else if (this.scanner.isStrictModeReservedWord(token.value)) {
+ firstRestricted = token;
+ message = messages_1.Messages.StrictReservedWord;
+ }
+ }
+ }
+ var formalParameters = this.parseFormalParameters(firstRestricted);
+ var params = formalParameters.params;
+ var stricted = formalParameters.stricted;
+ firstRestricted = formalParameters.firstRestricted;
+ if (formalParameters.message) {
+ message = formalParameters.message;
+ }
+ var previousStrict = this.context.strict;
+ var previousAllowStrictDirective = this.context.allowStrictDirective;
+ this.context.allowStrictDirective = formalParameters.simple;
+ var body = this.parseFunctionSourceElements();
+ if (this.context.strict && firstRestricted) {
+ this.throwUnexpectedToken(firstRestricted, message);
+ }
+ if (this.context.strict && stricted) {
+ this.tolerateUnexpectedToken(stricted, message);
+ }
+ this.context.strict = previousStrict;
+ this.context.allowStrictDirective = previousAllowStrictDirective;
+ this.context.await = previousAllowAwait;
+ this.context.allowYield = previousAllowYield;
+ return isAsync ? this.finalize(node, new Node.AsyncFunctionExpression(id, params, body)) :
+ this.finalize(node, new Node.FunctionExpression(id, params, body, isGenerator));
+ };
+ // https://tc39.github.io/ecma262/#sec-directive-prologues-and-the-use-strict-directive
+ Parser.prototype.parseDirective = function () {
+ var token = this.lookahead;
+ var node = this.createNode();
+ var expr = this.parseExpression();
+ var directive = (expr.type === syntax_1.Syntax.Literal) ? this.getTokenRaw(token).slice(1, -1) : null;
+ this.consumeSemicolon();
+ return this.finalize(node, directive ? new Node.Directive(expr, directive) : new Node.ExpressionStatement(expr));
+ };
+ Parser.prototype.parseDirectivePrologues = function () {
+ var firstRestricted = null;
+ var body = [];
+ while (true) {
+ var token = this.lookahead;
+ if (token.type !== 8 /* StringLiteral */) {
+ break;
+ }
+ var statement = this.parseDirective();
+ body.push(statement);
+ var directive = statement.directive;
+ if (typeof directive !== 'string') {
+ break;
+ }
+ if (directive === 'use strict') {
+ this.context.strict = true;
+ if (firstRestricted) {
+ this.tolerateUnexpectedToken(firstRestricted, messages_1.Messages.StrictOctalLiteral);
+ }
+ if (!this.context.allowStrictDirective) {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.IllegalLanguageModeDirective);
+ }
+ }
+ else {
+ if (!firstRestricted && token.octal) {
+ firstRestricted = token;
+ }
+ }
+ }
+ return body;
+ };
+ // https://tc39.github.io/ecma262/#sec-method-definitions
+ Parser.prototype.qualifiedPropertyName = function (token) {
+ switch (token.type) {
+ case 3 /* Identifier */:
+ case 8 /* StringLiteral */:
+ case 1 /* BooleanLiteral */:
+ case 5 /* NullLiteral */:
+ case 6 /* NumericLiteral */:
+ case 4 /* Keyword */:
+ return true;
+ case 7 /* Punctuator */:
+ return token.value === '[';
+ default:
+ break;
+ }
+ return false;
+ };
+ Parser.prototype.parseGetterMethod = function () {
+ var node = this.createNode();
+ var isGenerator = false;
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = !isGenerator;
+ var formalParameters = this.parseFormalParameters();
+ if (formalParameters.params.length > 0) {
+ this.tolerateError(messages_1.Messages.BadGetterArity);
+ }
+ var method = this.parsePropertyMethod(formalParameters);
+ this.context.allowYield = previousAllowYield;
+ return this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator));
+ };
+ Parser.prototype.parseSetterMethod = function () {
+ var node = this.createNode();
+ var isGenerator = false;
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = !isGenerator;
+ var formalParameters = this.parseFormalParameters();
+ if (formalParameters.params.length !== 1) {
+ this.tolerateError(messages_1.Messages.BadSetterArity);
+ }
+ else if (formalParameters.params[0] instanceof Node.RestElement) {
+ this.tolerateError(messages_1.Messages.BadSetterRestParameter);
+ }
+ var method = this.parsePropertyMethod(formalParameters);
+ this.context.allowYield = previousAllowYield;
+ return this.finalize(node, new Node.FunctionExpression(null, formalParameters.params, method, isGenerator));
+ };
+ Parser.prototype.parseGeneratorMethod = function () {
+ var node = this.createNode();
+ var isGenerator = true;
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = true;
+ var params = this.parseFormalParameters();
+ this.context.allowYield = false;
+ var method = this.parsePropertyMethod(params);
+ this.context.allowYield = previousAllowYield;
+ return this.finalize(node, new Node.FunctionExpression(null, params.params, method, isGenerator));
+ };
+ // https://tc39.github.io/ecma262/#sec-generator-function-definitions
+ Parser.prototype.isStartOfExpression = function () {
+ var start = true;
+ var value = this.lookahead.value;
+ switch (this.lookahead.type) {
+ case 7 /* Punctuator */:
+ start = (value === '[') || (value === '(') || (value === '{') ||
+ (value === '+') || (value === '-') ||
+ (value === '!') || (value === '~') ||
+ (value === '++') || (value === '--') ||
+ (value === '/') || (value === '/='); // regular expression literal
+ break;
+ case 4 /* Keyword */:
+ start = (value === 'class') || (value === 'delete') ||
+ (value === 'function') || (value === 'let') || (value === 'new') ||
+ (value === 'super') || (value === 'this') || (value === 'typeof') ||
+ (value === 'void') || (value === 'yield');
+ break;
+ default:
+ break;
+ }
+ return start;
+ };
+ Parser.prototype.parseYieldExpression = function () {
+ var node = this.createNode();
+ this.expectKeyword('yield');
+ var argument = null;
+ var delegate = false;
+ if (!this.hasLineTerminator) {
+ var previousAllowYield = this.context.allowYield;
+ this.context.allowYield = false;
+ delegate = this.match('*');
+ if (delegate) {
+ this.nextToken();
+ argument = this.parseAssignmentExpression();
+ }
+ else if (this.isStartOfExpression()) {
+ argument = this.parseAssignmentExpression();
+ }
+ this.context.allowYield = previousAllowYield;
+ }
+ return this.finalize(node, new Node.YieldExpression(argument, delegate));
+ };
+ // https://tc39.github.io/ecma262/#sec-class-definitions
+ Parser.prototype.parseClassElement = function (hasConstructor) {
+ var token = this.lookahead;
+ var node = this.createNode();
+ var kind = '';
+ var key = null;
+ var value = null;
+ var computed = false;
+ var method = false;
+ var isStatic = false;
+ var isAsync = false;
+ if (this.match('*')) {
+ this.nextToken();
+ }
+ else {
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ var id = key;
+ if (id.name === 'static' && (this.qualifiedPropertyName(this.lookahead) || this.match('*'))) {
+ token = this.lookahead;
+ isStatic = true;
+ computed = this.match('[');
+ if (this.match('*')) {
+ this.nextToken();
+ }
+ else {
+ key = this.parseObjectPropertyKey();
+ }
+ }
+ if ((token.type === 3 /* Identifier */) && !this.hasLineTerminator && (token.value === 'async')) {
+ var punctuator = this.lookahead.value;
+ if (punctuator !== ':' && punctuator !== '(' && punctuator !== '*') {
+ isAsync = true;
+ token = this.lookahead;
+ key = this.parseObjectPropertyKey();
+ if (token.type === 3 /* Identifier */ && token.value === 'constructor') {
+ this.tolerateUnexpectedToken(token, messages_1.Messages.ConstructorIsAsync);
+ }
+ }
+ }
+ }
+ var lookaheadPropertyKey = this.qualifiedPropertyName(this.lookahead);
+ if (token.type === 3 /* Identifier */) {
+ if (token.value === 'get' && lookaheadPropertyKey) {
+ kind = 'get';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ this.context.allowYield = false;
+ value = this.parseGetterMethod();
+ }
+ else if (token.value === 'set' && lookaheadPropertyKey) {
+ kind = 'set';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ value = this.parseSetterMethod();
+ }
+ }
+ else if (token.type === 7 /* Punctuator */ && token.value === '*' && lookaheadPropertyKey) {
+ kind = 'init';
+ computed = this.match('[');
+ key = this.parseObjectPropertyKey();
+ value = this.parseGeneratorMethod();
+ method = true;
+ }
+ if (!kind && key && this.match('(')) {
+ kind = 'init';
+ value = isAsync ? this.parsePropertyMethodAsyncFunction() : this.parsePropertyMethodFunction();
+ method = true;
+ }
+ if (!kind) {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ if (kind === 'init') {
+ kind = 'method';
+ }
+ if (!computed) {
+ if (isStatic && this.isPropertyKey(key, 'prototype')) {
+ this.throwUnexpectedToken(token, messages_1.Messages.StaticPrototype);
+ }
+ if (!isStatic && this.isPropertyKey(key, 'constructor')) {
+ if (kind !== 'method' || !method || (value && value.generator)) {
+ this.throwUnexpectedToken(token, messages_1.Messages.ConstructorSpecialMethod);
+ }
+ if (hasConstructor.value) {
+ this.throwUnexpectedToken(token, messages_1.Messages.DuplicateConstructor);
+ }
+ else {
+ hasConstructor.value = true;
+ }
+ kind = 'constructor';
+ }
+ }
+ return this.finalize(node, new Node.MethodDefinition(key, computed, value, kind, isStatic));
+ };
+ Parser.prototype.parseClassElementList = function () {
+ var body = [];
+ var hasConstructor = { value: false };
+ this.expect('{');
+ while (!this.match('}')) {
+ if (this.match(';')) {
+ this.nextToken();
+ }
+ else {
+ body.push(this.parseClassElement(hasConstructor));
+ }
+ }
+ this.expect('}');
+ return body;
+ };
+ Parser.prototype.parseClassBody = function () {
+ var node = this.createNode();
+ var elementList = this.parseClassElementList();
+ return this.finalize(node, new Node.ClassBody(elementList));
+ };
+ Parser.prototype.parseClassDeclaration = function (identifierIsOptional) {
+ var node = this.createNode();
+ var previousStrict = this.context.strict;
+ this.context.strict = true;
+ this.expectKeyword('class');
+ var id = (identifierIsOptional && (this.lookahead.type !== 3 /* Identifier */)) ? null : this.parseVariableIdentifier();
+ var superClass = null;
+ if (this.matchKeyword('extends')) {
+ this.nextToken();
+ superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
+ }
+ var classBody = this.parseClassBody();
+ this.context.strict = previousStrict;
+ return this.finalize(node, new Node.ClassDeclaration(id, superClass, classBody));
+ };
+ Parser.prototype.parseClassExpression = function () {
+ var node = this.createNode();
+ var previousStrict = this.context.strict;
+ this.context.strict = true;
+ this.expectKeyword('class');
+ var id = (this.lookahead.type === 3 /* Identifier */) ? this.parseVariableIdentifier() : null;
+ var superClass = null;
+ if (this.matchKeyword('extends')) {
+ this.nextToken();
+ superClass = this.isolateCoverGrammar(this.parseLeftHandSideExpressionAllowCall);
+ }
+ var classBody = this.parseClassBody();
+ this.context.strict = previousStrict;
+ return this.finalize(node, new Node.ClassExpression(id, superClass, classBody));
+ };
+ // https://tc39.github.io/ecma262/#sec-scripts
+ // https://tc39.github.io/ecma262/#sec-modules
+ Parser.prototype.parseModule = function () {
+ this.context.strict = true;
+ this.context.isModule = true;
+ this.scanner.isModule = true;
+ var node = this.createNode();
+ var body = this.parseDirectivePrologues();
+ while (this.lookahead.type !== 2 /* EOF */) {
+ body.push(this.parseStatementListItem());
+ }
+ return this.finalize(node, new Node.Module(body));
+ };
+ Parser.prototype.parseScript = function () {
+ var node = this.createNode();
+ var body = this.parseDirectivePrologues();
+ while (this.lookahead.type !== 2 /* EOF */) {
+ body.push(this.parseStatementListItem());
+ }
+ return this.finalize(node, new Node.Script(body));
+ };
+ // https://tc39.github.io/ecma262/#sec-imports
+ Parser.prototype.parseModuleSpecifier = function () {
+ var node = this.createNode();
+ if (this.lookahead.type !== 8 /* StringLiteral */) {
+ this.throwError(messages_1.Messages.InvalidModuleSpecifier);
+ }
+ var token = this.nextToken();
+ var raw = this.getTokenRaw(token);
+ return this.finalize(node, new Node.Literal(token.value, raw));
+ };
+ // import {} ...;
+ Parser.prototype.parseImportSpecifier = function () {
+ var node = this.createNode();
+ var imported;
+ var local;
+ if (this.lookahead.type === 3 /* Identifier */) {
+ imported = this.parseVariableIdentifier();
+ local = imported;
+ if (this.matchContextualKeyword('as')) {
+ this.nextToken();
+ local = this.parseVariableIdentifier();
+ }
+ }
+ else {
+ imported = this.parseIdentifierName();
+ local = imported;
+ if (this.matchContextualKeyword('as')) {
+ this.nextToken();
+ local = this.parseVariableIdentifier();
+ }
+ else {
+ this.throwUnexpectedToken(this.nextToken());
+ }
+ }
+ return this.finalize(node, new Node.ImportSpecifier(local, imported));
+ };
+ // {foo, bar as bas}
+ Parser.prototype.parseNamedImports = function () {
+ this.expect('{');
+ var specifiers = [];
+ while (!this.match('}')) {
+ specifiers.push(this.parseImportSpecifier());
+ if (!this.match('}')) {
+ this.expect(',');
+ }
+ }
+ this.expect('}');
+ return specifiers;
+ };
+ // import ...;
+ Parser.prototype.parseImportDefaultSpecifier = function () {
+ var node = this.createNode();
+ var local = this.parseIdentifierName();
+ return this.finalize(node, new Node.ImportDefaultSpecifier(local));
+ };
+ // import <* as foo> ...;
+ Parser.prototype.parseImportNamespaceSpecifier = function () {
+ var node = this.createNode();
+ this.expect('*');
+ if (!this.matchContextualKeyword('as')) {
+ this.throwError(messages_1.Messages.NoAsAfterImportNamespace);
+ }
+ this.nextToken();
+ var local = this.parseIdentifierName();
+ return this.finalize(node, new Node.ImportNamespaceSpecifier(local));
+ };
+ Parser.prototype.parseImportDeclaration = function () {
+ if (this.context.inFunctionBody) {
+ this.throwError(messages_1.Messages.IllegalImportDeclaration);
+ }
+ var node = this.createNode();
+ this.expectKeyword('import');
+ var src;
+ var specifiers = [];
+ if (this.lookahead.type === 8 /* StringLiteral */) {
+ // import 'foo';
+ src = this.parseModuleSpecifier();
+ }
+ else {
+ if (this.match('{')) {
+ // import {bar}
+ specifiers = specifiers.concat(this.parseNamedImports());
+ }
+ else if (this.match('*')) {
+ // import * as foo
+ specifiers.push(this.parseImportNamespaceSpecifier());
+ }
+ else if (this.isIdentifierName(this.lookahead) && !this.matchKeyword('default')) {
+ // import foo
+ specifiers.push(this.parseImportDefaultSpecifier());
+ if (this.match(',')) {
+ this.nextToken();
+ if (this.match('*')) {
+ // import foo, * as foo
+ specifiers.push(this.parseImportNamespaceSpecifier());
+ }
+ else if (this.match('{')) {
+ // import foo, {bar}
+ specifiers = specifiers.concat(this.parseNamedImports());
+ }
+ else {
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ }
+ }
+ else {
+ this.throwUnexpectedToken(this.nextToken());
+ }
+ if (!this.matchContextualKeyword('from')) {
+ var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
+ this.throwError(message, this.lookahead.value);
+ }
+ this.nextToken();
+ src = this.parseModuleSpecifier();
+ }
+ this.consumeSemicolon();
+ return this.finalize(node, new Node.ImportDeclaration(specifiers, src));
+ };
+ // https://tc39.github.io/ecma262/#sec-exports
+ Parser.prototype.parseExportSpecifier = function () {
+ var node = this.createNode();
+ var local = this.parseIdentifierName();
+ var exported = local;
+ if (this.matchContextualKeyword('as')) {
+ this.nextToken();
+ exported = this.parseIdentifierName();
+ }
+ return this.finalize(node, new Node.ExportSpecifier(local, exported));
+ };
+ Parser.prototype.parseExportDeclaration = function () {
+ if (this.context.inFunctionBody) {
+ this.throwError(messages_1.Messages.IllegalExportDeclaration);
+ }
+ var node = this.createNode();
+ this.expectKeyword('export');
+ var exportDeclaration;
+ if (this.matchKeyword('default')) {
+ // export default ...
+ this.nextToken();
+ if (this.matchKeyword('function')) {
+ // export default function foo () {}
+ // export default function () {}
+ var declaration = this.parseFunctionDeclaration(true);
+ exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
+ }
+ else if (this.matchKeyword('class')) {
+ // export default class foo {}
+ var declaration = this.parseClassDeclaration(true);
+ exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
+ }
+ else if (this.matchContextualKeyword('async')) {
+ // export default async function f () {}
+ // export default async function () {}
+ // export default async x => x
+ var declaration = this.matchAsyncFunction() ? this.parseFunctionDeclaration(true) : this.parseAssignmentExpression();
+ exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
+ }
+ else {
+ if (this.matchContextualKeyword('from')) {
+ this.throwError(messages_1.Messages.UnexpectedToken, this.lookahead.value);
+ }
+ // export default {};
+ // export default [];
+ // export default (1 + 2);
+ var declaration = this.match('{') ? this.parseObjectInitializer() :
+ this.match('[') ? this.parseArrayInitializer() : this.parseAssignmentExpression();
+ this.consumeSemicolon();
+ exportDeclaration = this.finalize(node, new Node.ExportDefaultDeclaration(declaration));
+ }
+ }
+ else if (this.match('*')) {
+ // export * from 'foo';
+ this.nextToken();
+ if (!this.matchContextualKeyword('from')) {
+ var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
+ this.throwError(message, this.lookahead.value);
+ }
+ this.nextToken();
+ var src = this.parseModuleSpecifier();
+ this.consumeSemicolon();
+ exportDeclaration = this.finalize(node, new Node.ExportAllDeclaration(src));
+ }
+ else if (this.lookahead.type === 4 /* Keyword */) {
+ // export var f = 1;
+ var declaration = void 0;
+ switch (this.lookahead.value) {
+ case 'let':
+ case 'const':
+ declaration = this.parseLexicalDeclaration({ inFor: false });
+ break;
+ case 'var':
+ case 'class':
+ case 'function':
+ declaration = this.parseStatementListItem();
+ break;
+ default:
+ this.throwUnexpectedToken(this.lookahead);
+ }
+ exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(declaration, [], null));
+ }
+ else if (this.matchAsyncFunction()) {
+ var declaration = this.parseFunctionDeclaration();
+ exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(declaration, [], null));
+ }
+ else {
+ var specifiers = [];
+ var source = null;
+ var isExportFromIdentifier = false;
+ this.expect('{');
+ while (!this.match('}')) {
+ isExportFromIdentifier = isExportFromIdentifier || this.matchKeyword('default');
+ specifiers.push(this.parseExportSpecifier());
+ if (!this.match('}')) {
+ this.expect(',');
+ }
+ }
+ this.expect('}');
+ if (this.matchContextualKeyword('from')) {
+ // export {default} from 'foo';
+ // export {foo} from 'foo';
+ this.nextToken();
+ source = this.parseModuleSpecifier();
+ this.consumeSemicolon();
+ }
+ else if (isExportFromIdentifier) {
+ // export {default}; // missing fromClause
+ var message = this.lookahead.value ? messages_1.Messages.UnexpectedToken : messages_1.Messages.MissingFromClause;
+ this.throwError(message, this.lookahead.value);
+ }
+ else {
+ // export {foo};
+ this.consumeSemicolon();
+ }
+ exportDeclaration = this.finalize(node, new Node.ExportNamedDeclaration(null, specifiers, source));
+ }
+ return exportDeclaration;
+ };
+ return Parser;
+ }());
+ exports.Parser = Parser;
+
+
+/***/ },
+/* 9 */
+/***/ function(module, exports) {
+
+ "use strict";
+ // Ensure the condition is true, otherwise throw an error.
+ // This is only to have a better contract semantic, i.e. another safety net
+ // to catch a logic error. The condition shall be fulfilled in normal case.
+ // Do NOT use this to enforce a certain condition on any user input.
+ Object.defineProperty(exports, "__esModule", { value: true });
+ function assert(condition, message) {
+ /* istanbul ignore if */
+ if (!condition) {
+ throw new Error('ASSERT: ' + message);
+ }
+ }
+ exports.assert = assert;
+
+
+/***/ },
+/* 10 */
+/***/ function(module, exports) {
+
+ "use strict";
+ /* tslint:disable:max-classes-per-file */
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var ErrorHandler = (function () {
+ function ErrorHandler() {
+ this.errors = [];
+ this.tolerant = false;
+ }
+ ErrorHandler.prototype.recordError = function (error) {
+ this.errors.push(error);
+ };
+ ErrorHandler.prototype.tolerate = function (error) {
+ if (this.tolerant) {
+ this.recordError(error);
+ }
+ else {
+ throw error;
+ }
+ };
+ ErrorHandler.prototype.constructError = function (msg, column) {
+ var error = new Error(msg);
+ try {
+ throw error;
+ }
+ catch (base) {
+ /* istanbul ignore else */
+ if (Object.create && Object.defineProperty) {
+ error = Object.create(base);
+ Object.defineProperty(error, 'column', { value: column });
+ }
+ }
+ /* istanbul ignore next */
+ return error;
+ };
+ ErrorHandler.prototype.createError = function (index, line, col, description) {
+ var msg = 'Line ' + line + ': ' + description;
+ var error = this.constructError(msg, col);
+ error.index = index;
+ error.lineNumber = line;
+ error.description = description;
+ return error;
+ };
+ ErrorHandler.prototype.throwError = function (index, line, col, description) {
+ throw this.createError(index, line, col, description);
+ };
+ ErrorHandler.prototype.tolerateError = function (index, line, col, description) {
+ var error = this.createError(index, line, col, description);
+ if (this.tolerant) {
+ this.recordError(error);
+ }
+ else {
+ throw error;
+ }
+ };
+ return ErrorHandler;
+ }());
+ exports.ErrorHandler = ErrorHandler;
+
+
+/***/ },
+/* 11 */
+/***/ function(module, exports) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ // Error messages should be identical to V8.
+ exports.Messages = {
+ BadGetterArity: 'Getter must not have any formal parameters',
+ BadSetterArity: 'Setter must have exactly one formal parameter',
+ BadSetterRestParameter: 'Setter function argument must not be a rest parameter',
+ ConstructorIsAsync: 'Class constructor may not be an async method',
+ ConstructorSpecialMethod: 'Class constructor may not be an accessor',
+ DeclarationMissingInitializer: 'Missing initializer in %0 declaration',
+ DefaultRestParameter: 'Unexpected token =',
+ DuplicateBinding: 'Duplicate binding %0',
+ DuplicateConstructor: 'A class may only have one constructor',
+ DuplicateProtoProperty: 'Duplicate __proto__ fields are not allowed in object literals',
+ ForInOfLoopInitializer: '%0 loop variable declaration may not have an initializer',
+ GeneratorInLegacyContext: 'Generator declarations are not allowed in legacy contexts',
+ IllegalBreak: 'Illegal break statement',
+ IllegalContinue: 'Illegal continue statement',
+ IllegalExportDeclaration: 'Unexpected token',
+ IllegalImportDeclaration: 'Unexpected token',
+ IllegalLanguageModeDirective: 'Illegal \'use strict\' directive in function with non-simple parameter list',
+ IllegalReturn: 'Illegal return statement',
+ InvalidEscapedReservedWord: 'Keyword must not contain escaped characters',
+ InvalidHexEscapeSequence: 'Invalid hexadecimal escape sequence',
+ InvalidLHSInAssignment: 'Invalid left-hand side in assignment',
+ InvalidLHSInForIn: 'Invalid left-hand side in for-in',
+ InvalidLHSInForLoop: 'Invalid left-hand side in for-loop',
+ InvalidModuleSpecifier: 'Unexpected token',
+ InvalidRegExp: 'Invalid regular expression',
+ LetInLexicalBinding: 'let is disallowed as a lexically bound name',
+ MissingFromClause: 'Unexpected token',
+ MultipleDefaultsInSwitch: 'More than one default clause in switch statement',
+ NewlineAfterThrow: 'Illegal newline after throw',
+ NoAsAfterImportNamespace: 'Unexpected token',
+ NoCatchOrFinally: 'Missing catch or finally after try',
+ ParameterAfterRestParameter: 'Rest parameter must be last formal parameter',
+ Redeclaration: '%0 \'%1\' has already been declared',
+ StaticPrototype: 'Classes may not have static property named prototype',
+ StrictCatchVariable: 'Catch variable may not be eval or arguments in strict mode',
+ StrictDelete: 'Delete of an unqualified identifier in strict mode.',
+ StrictFunction: 'In strict mode code, functions can only be declared at top level or inside a block',
+ StrictFunctionName: 'Function name may not be eval or arguments in strict mode',
+ StrictLHSAssignment: 'Assignment to eval or arguments is not allowed in strict mode',
+ StrictLHSPostfix: 'Postfix increment/decrement may not have eval or arguments operand in strict mode',
+ StrictLHSPrefix: 'Prefix increment/decrement may not have eval or arguments operand in strict mode',
+ StrictModeWith: 'Strict mode code may not include a with statement',
+ StrictOctalLiteral: 'Octal literals are not allowed in strict mode.',
+ StrictParamDupe: 'Strict mode function may not have duplicate parameter names',
+ StrictParamName: 'Parameter name eval or arguments is not allowed in strict mode',
+ StrictReservedWord: 'Use of future reserved word in strict mode',
+ StrictVarName: 'Variable name may not be eval or arguments in strict mode',
+ TemplateOctalLiteral: 'Octal literals are not allowed in template strings.',
+ UnexpectedEOS: 'Unexpected end of input',
+ UnexpectedIdentifier: 'Unexpected identifier',
+ UnexpectedNumber: 'Unexpected number',
+ UnexpectedReserved: 'Unexpected reserved word',
+ UnexpectedString: 'Unexpected string',
+ UnexpectedTemplate: 'Unexpected quasi %0',
+ UnexpectedToken: 'Unexpected token %0',
+ UnexpectedTokenIllegal: 'Unexpected token ILLEGAL',
+ UnknownLabel: 'Undefined label \'%0\'',
+ UnterminatedRegExp: 'Invalid regular expression: missing /'
+ };
+
+
+/***/ },
+/* 12 */
+/***/ function(module, exports, __webpack_require__) {
+
+ "use strict";
+ Object.defineProperty(exports, "__esModule", { value: true });
+ var assert_1 = __webpack_require__(9);
+ var character_1 = __webpack_require__(4);
+ var messages_1 = __webpack_require__(11);
+ function hexValue(ch) {
+ return '0123456789abcdef'.indexOf(ch.toLowerCase());
+ }
+ function octalValue(ch) {
+ return '01234567'.indexOf(ch);
+ }
+ var Scanner = (function () {
+ function Scanner(code, handler) {
+ this.source = code;
+ this.errorHandler = handler;
+ this.trackComment = false;
+ this.isModule = false;
+ this.length = code.length;
+ this.index = 0;
+ this.lineNumber = (code.length > 0) ? 1 : 0;
+ this.lineStart = 0;
+ this.curlyStack = [];
+ }
+ Scanner.prototype.saveState = function () {
+ return {
+ index: this.index,
+ lineNumber: this.lineNumber,
+ lineStart: this.lineStart
+ };
+ };
+ Scanner.prototype.restoreState = function (state) {
+ this.index = state.index;
+ this.lineNumber = state.lineNumber;
+ this.lineStart = state.lineStart;
+ };
+ Scanner.prototype.eof = function () {
+ return this.index >= this.length;
+ };
+ Scanner.prototype.throwUnexpectedToken = function (message) {
+ if (message === void 0) { message = messages_1.Messages.UnexpectedTokenIllegal; }
+ return this.errorHandler.throwError(this.index, this.lineNumber, this.index - this.lineStart + 1, message);
+ };
+ Scanner.prototype.tolerateUnexpectedToken = function (message) {
+ if (message === void 0) { message = messages_1.Messages.UnexpectedTokenIllegal; }
+ this.errorHandler.tolerateError(this.index, this.lineNumber, this.index - this.lineStart + 1, message);
+ };
+ // https://tc39.github.io/ecma262/#sec-comments
+ Scanner.prototype.skipSingleLineComment = function (offset) {
+ var comments = [];
+ var start, loc;
+ if (this.trackComment) {
+ comments = [];
+ start = this.index - offset;
+ loc = {
+ start: {
+ line: this.lineNumber,
+ column: this.index - this.lineStart - offset
+ },
+ end: {}
+ };
+ }
+ while (!this.eof()) {
+ var ch = this.source.charCodeAt(this.index);
+ ++this.index;
+ if (character_1.Character.isLineTerminator(ch)) {
+ if (this.trackComment) {
+ loc.end = {
+ line: this.lineNumber,
+ column: this.index - this.lineStart - 1
+ };
+ var entry = {
+ multiLine: false,
+ slice: [start + offset, this.index - 1],
+ range: [start, this.index - 1],
+ loc: loc
+ };
+ comments.push(entry);
+ }
+ if (ch === 13 && this.source.charCodeAt(this.index) === 10) {
+ ++this.index;
+ }
+ ++this.lineNumber;
+ this.lineStart = this.index;
+ return comments;
+ }
+ }
+ if (this.trackComment) {
+ loc.end = {
+ line: this.lineNumber,
+ column: this.index - this.lineStart
+ };
+ var entry = {
+ multiLine: false,
+ slice: [start + offset, this.index],
+ range: [start, this.index],
+ loc: loc
+ };
+ comments.push(entry);
+ }
+ return comments;
+ };
+ Scanner.prototype.skipMultiLineComment = function () {
+ var comments = [];
+ var start, loc;
+ if (this.trackComment) {
+ comments = [];
+ start = this.index - 2;
+ loc = {
+ start: {
+ line: this.lineNumber,
+ column: this.index - this.lineStart - 2
+ },
+ end: {}
+ };
+ }
+ while (!this.eof()) {
+ var ch = this.source.charCodeAt(this.index);
+ if (character_1.Character.isLineTerminator(ch)) {
+ if (ch === 0x0D && this.source.charCodeAt(this.index + 1) === 0x0A) {
+ ++this.index;
+ }
+ ++this.lineNumber;
+ ++this.index;
+ this.lineStart = this.index;
+ }
+ else if (ch === 0x2A) {
+ // Block comment ends with '*/'.
+ if (this.source.charCodeAt(this.index + 1) === 0x2F) {
+ this.index += 2;
+ if (this.trackComment) {
+ loc.end = {
+ line: this.lineNumber,
+ column: this.index - this.lineStart
+ };
+ var entry = {
+ multiLine: true,
+ slice: [start + 2, this.index - 2],
+ range: [start, this.index],
+ loc: loc
+ };
+ comments.push(entry);
+ }
+ return comments;
+ }
+ ++this.index;
+ }
+ else {
+ ++this.index;
+ }
+ }
+ // Ran off the end of the file - the whole thing is a comment
+ if (this.trackComment) {
+ loc.end = {
+ line: this.lineNumber,
+ column: this.index - this.lineStart
+ };
+ var entry = {
+ multiLine: true,
+ slice: [start + 2, this.index],
+ range: [start, this.index],
+ loc: loc
+ };
+ comments.push(entry);
+ }
+ this.tolerateUnexpectedToken();
+ return comments;
+ };
+ Scanner.prototype.scanComments = function () {
+ var comments;
+ if (this.trackComment) {
+ comments = [];
+ }
+ var start = (this.index === 0);
+ while (!this.eof()) {
+ var ch = this.source.charCodeAt(this.index);
+ if (character_1.Character.isWhiteSpace(ch)) {
+ ++this.index;
+ }
+ else if (character_1.Character.isLineTerminator(ch)) {
+ ++this.index;
+ if (ch === 0x0D && this.source.charCodeAt(this.index) === 0x0A) {
+ ++this.index;
+ }
+ ++this.lineNumber;
+ this.lineStart = this.index;
+ start = true;
+ }
+ else if (ch === 0x2F) {
+ ch = this.source.charCodeAt(this.index + 1);
+ if (ch === 0x2F) {
+ this.index += 2;
+ var comment = this.skipSingleLineComment(2);
+ if (this.trackComment) {
+ comments = comments.concat(comment);
+ }
+ start = true;
+ }
+ else if (ch === 0x2A) {
+ this.index += 2;
+ var comment = this.skipMultiLineComment();
+ if (this.trackComment) {
+ comments = comments.concat(comment);
+ }
+ }
+ else {
+ break;
+ }
+ }
+ else if (start && ch === 0x2D) {
+ // U+003E is '>'
+ if ((this.source.charCodeAt(this.index + 1) === 0x2D) && (this.source.charCodeAt(this.index + 2) === 0x3E)) {
+ // '-->' is a single-line comment
+ this.index += 3;
+ var comment = this.skipSingleLineComment(3);
+ if (this.trackComment) {
+ comments = comments.concat(comment);
+ }
+ }
+ else {
+ break;
+ }
+ }
+ else if (ch === 0x3C && !this.isModule) {
+ if (this.source.slice(this.index + 1, this.index + 4) === '!--') {
+ this.index += 4; // `
+
+
+
+Implementation of function.prototype.bind
+
+## Example
+
+I mainly do this for unit tests I run on phantomjs.
+PhantomJS does not have Function.prototype.bind :(
+
+```js
+Function.prototype.bind = require("function-bind")
+```
+
+## Installation
+
+`npm install function-bind`
+
+## Contributors
+
+ - Raynos
+
+## MIT Licenced
+
+ [travis-svg]: https://travis-ci.org/Raynos/function-bind.svg
+ [travis-url]: https://travis-ci.org/Raynos/function-bind
+ [npm-badge-svg]: https://badge.fury.io/js/function-bind.svg
+ [npm-url]: https://npmjs.org/package/function-bind
+ [5]: https://coveralls.io/repos/Raynos/function-bind/badge.png
+ [6]: https://coveralls.io/r/Raynos/function-bind
+ [7]: https://gemnasium.com/Raynos/function-bind.png
+ [8]: https://gemnasium.com/Raynos/function-bind
+ [deps-svg]: https://david-dm.org/Raynos/function-bind.svg
+ [deps-url]: https://david-dm.org/Raynos/function-bind
+ [dev-deps-svg]: https://david-dm.org/Raynos/function-bind/dev-status.svg
+ [dev-deps-url]: https://david-dm.org/Raynos/function-bind#info=devDependencies
+ [11]: https://ci.testling.com/Raynos/function-bind.png
+ [12]: https://ci.testling.com/Raynos/function-bind
diff --git a/node_modules/function-bind/implementation.js b/node_modules/function-bind/implementation.js
new file mode 100644
index 00000000..cc4daec1
--- /dev/null
+++ b/node_modules/function-bind/implementation.js
@@ -0,0 +1,52 @@
+'use strict';
+
+/* eslint no-invalid-this: 1 */
+
+var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
+var slice = Array.prototype.slice;
+var toStr = Object.prototype.toString;
+var funcType = '[object Function]';
+
+module.exports = function bind(that) {
+ var target = this;
+ if (typeof target !== 'function' || toStr.call(target) !== funcType) {
+ throw new TypeError(ERROR_MESSAGE + target);
+ }
+ var args = slice.call(arguments, 1);
+
+ var bound;
+ var binder = function () {
+ if (this instanceof bound) {
+ var result = target.apply(
+ this,
+ args.concat(slice.call(arguments))
+ );
+ if (Object(result) === result) {
+ return result;
+ }
+ return this;
+ } else {
+ return target.apply(
+ that,
+ args.concat(slice.call(arguments))
+ );
+ }
+ };
+
+ var boundLength = Math.max(0, target.length - args.length);
+ var boundArgs = [];
+ for (var i = 0; i < boundLength; i++) {
+ boundArgs.push('$' + i);
+ }
+
+ bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
+
+ if (target.prototype) {
+ var Empty = function Empty() {};
+ Empty.prototype = target.prototype;
+ bound.prototype = new Empty();
+ Empty.prototype = null;
+ }
+
+ return bound;
+};
diff --git a/node_modules/function-bind/index.js b/node_modules/function-bind/index.js
new file mode 100644
index 00000000..3bb6b960
--- /dev/null
+++ b/node_modules/function-bind/index.js
@@ -0,0 +1,5 @@
+'use strict';
+
+var implementation = require('./implementation');
+
+module.exports = Function.prototype.bind || implementation;
diff --git a/node_modules/function-bind/package.json b/node_modules/function-bind/package.json
new file mode 100644
index 00000000..4a97873d
--- /dev/null
+++ b/node_modules/function-bind/package.json
@@ -0,0 +1,96 @@
+{
+ "_from": "function-bind@^1.1.1",
+ "_id": "function-bind@1.1.1",
+ "_inBundle": false,
+ "_integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",
+ "_location": "/function-bind",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "function-bind@^1.1.1",
+ "name": "function-bind",
+ "escapedName": "function-bind",
+ "rawSpec": "^1.1.1",
+ "saveSpec": null,
+ "fetchSpec": "^1.1.1"
+ },
+ "_requiredBy": [
+ "/call-bind",
+ "/get-intrinsic",
+ "/has"
+ ],
+ "_resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
+ "_shasum": "a56899d3ea3c9bab874bb9773b7c5ede92f4895d",
+ "_spec": "function-bind@^1.1.1",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/has",
+ "author": {
+ "name": "Raynos",
+ "email": "raynos2@gmail.com"
+ },
+ "bugs": {
+ "url": "https://github.com/Raynos/function-bind/issues",
+ "email": "raynos2@gmail.com"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Raynos"
+ },
+ {
+ "name": "Jordan Harband",
+ "url": "https://github.com/ljharb"
+ }
+ ],
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Implementation of Function.prototype.bind",
+ "devDependencies": {
+ "@ljharb/eslint-config": "^12.2.1",
+ "covert": "^1.1.0",
+ "eslint": "^4.5.0",
+ "jscs": "^3.0.7",
+ "tape": "^4.8.0"
+ },
+ "homepage": "https://github.com/Raynos/function-bind",
+ "keywords": [
+ "function",
+ "bind",
+ "shim",
+ "es5"
+ ],
+ "license": "MIT",
+ "main": "index",
+ "name": "function-bind",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/Raynos/function-bind.git"
+ },
+ "scripts": {
+ "coverage": "covert test/*.js",
+ "eslint": "eslint *.js */*.js",
+ "jscs": "jscs *.js */*.js",
+ "lint": "npm run jscs && npm run eslint",
+ "posttest": "npm run coverage -- --quiet",
+ "pretest": "npm run lint",
+ "test": "npm run tests-only",
+ "tests-only": "node test"
+ },
+ "testling": {
+ "files": "test/index.js",
+ "browsers": [
+ "ie/8..latest",
+ "firefox/16..latest",
+ "firefox/nightly",
+ "chrome/22..latest",
+ "chrome/canary",
+ "opera/12..latest",
+ "opera/next",
+ "safari/5.1..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "android-browser/4.2..latest"
+ ]
+ },
+ "version": "1.1.1"
+}
diff --git a/node_modules/function-bind/test/.eslintrc b/node_modules/function-bind/test/.eslintrc
new file mode 100644
index 00000000..8a56d5b7
--- /dev/null
+++ b/node_modules/function-bind/test/.eslintrc
@@ -0,0 +1,9 @@
+{
+ "rules": {
+ "array-bracket-newline": 0,
+ "array-element-newline": 0,
+ "max-statements-per-line": [2, { "max": 2 }],
+ "no-invalid-this": 0,
+ "no-magic-numbers": 0,
+ }
+}
diff --git a/node_modules/function-bind/test/index.js b/node_modules/function-bind/test/index.js
new file mode 100644
index 00000000..2edecce2
--- /dev/null
+++ b/node_modules/function-bind/test/index.js
@@ -0,0 +1,252 @@
+// jscs:disable requireUseStrict
+
+var test = require('tape');
+
+var functionBind = require('../implementation');
+var getCurrentContext = function () { return this; };
+
+test('functionBind is a function', function (t) {
+ t.equal(typeof functionBind, 'function');
+ t.end();
+});
+
+test('non-functions', function (t) {
+ var nonFunctions = [true, false, [], {}, 42, 'foo', NaN, /a/g];
+ t.plan(nonFunctions.length);
+ for (var i = 0; i < nonFunctions.length; ++i) {
+ try { functionBind.call(nonFunctions[i]); } catch (ex) {
+ t.ok(ex instanceof TypeError, 'throws when given ' + String(nonFunctions[i]));
+ }
+ }
+ t.end();
+});
+
+test('without a context', function (t) {
+ t.test('binds properly', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ })
+ };
+ namespace.func(1, 2, 3);
+ st.deepEqual(args, [1, 2, 3]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('binds properly, and still supplies bound arguments', function (st) {
+ var args, context;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, undefined, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6]);
+ st.equal(context, getCurrentContext.call());
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, null, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, getCurrentContext.call(), 'returned context is namespaced context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('called as a constructor', function (st) {
+ var thunkify = function (value) {
+ return function () { return value; };
+ };
+ st.test('returns object value', function (sst) {
+ var expectedReturnValue = [1, 2, 3];
+ var Constructor = functionBind.call(thunkify(expectedReturnValue), null);
+ var result = new Constructor();
+ sst.equal(result, expectedReturnValue);
+ sst.end();
+ });
+
+ st.test('does not return primitive value', function (sst) {
+ var Constructor = functionBind.call(thunkify(42), null);
+ var result = new Constructor();
+ sst.notEqual(result, 42);
+ sst.end();
+ });
+
+ st.test('object from bound constructor is instance of original and bound constructor', function (sst) {
+ var A = function (x) {
+ this.name = x || 'A';
+ };
+ var B = functionBind.call(A, null, 'B');
+
+ var result = new B();
+ sst.ok(result instanceof B, 'result is instance of bound constructor');
+ sst.ok(result instanceof A, 'result is instance of original constructor');
+ sst.end();
+ });
+
+ st.end();
+ });
+
+ t.end();
+});
+
+test('with a context', function (t) {
+ t.test('with no bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext)
+ };
+ namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3], 'supplies passed arguments');
+ st.end();
+ });
+
+ t.test('with bound arguments', function (st) {
+ var args, context;
+ var boundContext = {};
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ context = this;
+ }, boundContext, 1, 2, 3)
+ };
+ namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'binds a context properly');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'supplies bound and passed arguments');
+ st.end();
+ });
+
+ t.test('returns properly', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext)
+ };
+ var context = namespace.func(1, 2, 3);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('returns properly with bound arguments', function (st) {
+ var boundContext = {};
+ var args;
+ var namespace = {
+ func: functionBind.call(function () {
+ args = Array.prototype.slice.call(arguments);
+ return this;
+ }, boundContext, 1, 2, 3)
+ };
+ var context = namespace.func(4, 5, 6);
+ st.equal(context, boundContext, 'returned context is bound context');
+ st.notEqual(context, getCurrentContext.call(), 'returned context is not lexical context');
+ st.deepEqual(args, [1, 2, 3, 4, 5, 6], 'passed arguments are correct');
+ st.end();
+ });
+
+ t.test('passes the correct arguments when called as a constructor', function (st) {
+ var expected = { name: 'Correct' };
+ var namespace = {
+ Func: functionBind.call(function (arg) {
+ return arg;
+ }, { name: 'Incorrect' })
+ };
+ var returned = new namespace.Func(expected);
+ st.equal(returned, expected, 'returns the right arg when called as a constructor');
+ st.end();
+ });
+
+ t.test('has the new instance\'s context when called as a constructor', function (st) {
+ var actualContext;
+ var expectedContext = { foo: 'bar' };
+ var namespace = {
+ Func: functionBind.call(function () {
+ actualContext = this;
+ }, expectedContext)
+ };
+ var result = new namespace.Func();
+ st.equal(result instanceof namespace.Func, true);
+ st.notEqual(actualContext, expectedContext);
+ st.end();
+ });
+
+ t.end();
+});
+
+test('bound function length', function (t) {
+ t.test('sets a correct length without thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; });
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {});
+ st.equal(subject.length, 3);
+ st.equal(subject(1, 2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and first argument', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1);
+ st.equal(subject.length, 2);
+ st.equal(subject(2, 3), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length without thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, undefined, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+
+ t.test('sets a correct length with thisArg and too many arguments', function (st) {
+ var subject = functionBind.call(function (a, b, c) { return a + b + c; }, {}, 1, 2, 3, 4);
+ st.equal(subject.length, 0);
+ st.equal(subject(), 6);
+ st.end();
+ });
+});
diff --git a/node_modules/get-assigned-identifiers/.travis.yml b/node_modules/get-assigned-identifiers/.travis.yml
new file mode 100644
index 00000000..989f7919
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/.travis.yml
@@ -0,0 +1,8 @@
+language: node_js
+node_js:
+ - 8
+ - 6
+ - 4
+cache:
+ directories:
+ - ~/.npm
diff --git a/node_modules/get-assigned-identifiers/CHANGELOG.md b/node_modules/get-assigned-identifiers/CHANGELOG.md
new file mode 100644
index 00000000..fe525db0
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/CHANGELOG.md
@@ -0,0 +1,17 @@
+# get-destructure-identifiers change log
+
+All notable changes to this project will be documented in this file.
+
+This project adheres to [Semantic Versioning](http://semver.org/).
+
+## 1.2.0 / 2018-02-08
+
+* support object rest destructuring `{...a} = b`
+
+## 1.1.0 / 2017-12-02
+
+* support import declarations
+
+## 1.0.0 / 2017-11-11
+
+* initial release
diff --git a/node_modules/get-assigned-identifiers/LICENSE.md b/node_modules/get-assigned-identifiers/LICENSE.md
new file mode 100644
index 00000000..04361d9e
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/LICENSE.md
@@ -0,0 +1,15 @@
+# [Apache License 2.0](https://spdx.org/licenses/Apache-2.0)
+
+Copyright 2017 Renée Kooi
+
+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/node_modules/get-assigned-identifiers/README.md b/node_modules/get-assigned-identifiers/README.md
new file mode 100644
index 00000000..06957e4c
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/README.md
@@ -0,0 +1,45 @@
+# get-assigned-identifiers
+
+get a list of identifiers that are initialised by a JavaScript AST node.
+
+[![npm][npm-image]][npm-url]
+[![travis][travis-image]][travis-url]
+[![standard][standard-image]][standard-url]
+
+[npm-image]: https://img.shields.io/npm/v/get-assigned-identifiers.svg?style=flat-square
+[npm-url]: https://www.npmjs.com/package/get-assigned-identifiers
+[travis-image]: https://img.shields.io/travis/goto-bus-stop/get-assigned-identifiers.svg?style=flat-square
+[travis-url]: https://travis-ci.org/goto-bus-stop/get-assigned-identifiers
+[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square
+[standard-url]: http://npm.im/standard
+
+## Install
+
+```
+npm install get-assigned-identifiers
+```
+
+## Usage
+
+```js
+var getAssignedIdentifiers = require('get-assigned-identifiers')
+
+var ast = parse(`
+ var { a, b: [ c,, ...x ], d } = whatever()
+`)
+var node = ast.body[0].declarations[0].id
+getAssignedIdentifiers(node)
+// → [{ name: 'a' }, { name: 'c' }, { name: 'x' }, { name: 'd' }]
+```
+
+## API
+
+### `getAssignedIdentifiers(node)`
+
+Return an array of AST Nodes referencing identifiers that are initialised by the `node`, taking into account destructuring.
+
+If `node` is not an identifier or destructuring node, this returns an empty array.
+
+## License
+
+[Apache-2.0](LICENSE.md)
diff --git a/node_modules/get-assigned-identifiers/index.js b/node_modules/get-assigned-identifiers/index.js
new file mode 100644
index 00000000..5933f837
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/index.js
@@ -0,0 +1,57 @@
+var assert = require('assert')
+
+/**
+ * Get a list of all identifiers that are initialised by this (possibly destructuring)
+ * node.
+ *
+ * eg with input:
+ *
+ * var { a: [b, ...c], d } = xyz
+ *
+ * this returns the nodes for 'b', 'c', and 'd'
+ */
+module.exports = function getAssignedIdentifiers (node, identifiers) {
+ assert.equal(typeof node, 'object', 'get-assigned-identifiers: node must be object')
+ assert.equal(typeof node.type, 'string', 'get-assigned-identifiers: node must have a type')
+
+ identifiers = identifiers || []
+
+ if (node.type === 'ImportDeclaration') {
+ node.specifiers.forEach(function (el) {
+ getAssignedIdentifiers(el, identifiers)
+ })
+ }
+
+ if (node.type === 'ImportDefaultSpecifier' || node.type === 'ImportNamespaceSpecifier' || node.type === 'ImportSpecifier') {
+ node = node.local
+ }
+
+ if (node.type === 'RestElement') {
+ node = node.argument
+ }
+
+ if (node.type === 'ArrayPattern') {
+ node.elements.forEach(function (el) {
+ // `el` might be `null` in case of `[x,,y] = whatever`
+ if (el) {
+ getAssignedIdentifiers(el, identifiers)
+ }
+ })
+ }
+
+ if (node.type === 'ObjectPattern') {
+ node.properties.forEach(function (prop) {
+ if (prop.type === 'Property') {
+ getAssignedIdentifiers(prop.value, identifiers)
+ } else if (prop.type === 'RestElement') {
+ getAssignedIdentifiers(prop, identifiers)
+ }
+ })
+ }
+
+ if (node.type === 'Identifier') {
+ identifiers.push(node)
+ }
+
+ return identifiers
+}
diff --git a/node_modules/get-assigned-identifiers/package.json b/node_modules/get-assigned-identifiers/package.json
new file mode 100644
index 00000000..cc690a3b
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/package.json
@@ -0,0 +1,61 @@
+{
+ "_from": "get-assigned-identifiers@^1.2.0",
+ "_id": "get-assigned-identifiers@1.2.0",
+ "_inBundle": false,
+ "_integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==",
+ "_location": "/get-assigned-identifiers",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "get-assigned-identifiers@^1.2.0",
+ "name": "get-assigned-identifiers",
+ "escapedName": "get-assigned-identifiers",
+ "rawSpec": "^1.2.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.2.0"
+ },
+ "_requiredBy": [
+ "/undeclared-identifiers"
+ ],
+ "_resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz",
+ "_shasum": "6dbf411de648cbaf8d9169ebb0d2d576191e2ff1",
+ "_spec": "get-assigned-identifiers@^1.2.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/undeclared-identifiers",
+ "author": {
+ "name": "Renée Kooi",
+ "email": "renee@kooi.me"
+ },
+ "bugs": {
+ "url": "https://github.com/goto-bus-stop/get-assigned-identifiers/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "get a list of identifiers that are initialised by a JavaScript AST node.",
+ "devDependencies": {
+ "acorn": "^5.4.1",
+ "standard": "^10.0.3",
+ "tape": "^4.8.0"
+ },
+ "homepage": "https://github.com/goto-bus-stop/get-assigned-identifiers",
+ "keywords": [
+ "ast",
+ "bindings",
+ "destructuring",
+ "identifiers",
+ "javascript",
+ "names",
+ "node"
+ ],
+ "license": "Apache-2.0",
+ "main": "index.js",
+ "name": "get-assigned-identifiers",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/goto-bus-stop/get-assigned-identifiers.git"
+ },
+ "scripts": {
+ "test": "standard && tape test/*.js"
+ },
+ "version": "1.2.0"
+}
diff --git a/node_modules/get-assigned-identifiers/test/index.js b/node_modules/get-assigned-identifiers/test/index.js
new file mode 100644
index 00000000..3fbb2dd9
--- /dev/null
+++ b/node_modules/get-assigned-identifiers/test/index.js
@@ -0,0 +1,122 @@
+var test = require('tape')
+var assert = require('assert')
+var parse = require('acorn').parse
+var getAssignedIdentifiers = require('../')
+
+function getName (node) {
+ assert.equal(node.type, 'Identifier', 'Returned node must be an Identifier')
+ return node.name
+}
+
+test('example', function (t) {
+ t.plan(1)
+
+ var ast = parse(`
+ var { a, b: [ c,, ...x ], d } = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [
+ 'a',
+ 'c',
+ 'x',
+ 'd'
+ ])
+})
+
+test('simple identifiers', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var xyz = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'xyz' ])
+})
+
+test('array destructuring', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var [a, b, c] = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b', 'c' ])
+})
+
+test('array destructuring with rest element', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var [a, b, ...rest] = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b', 'rest' ])
+})
+
+test('array destructuring with holes', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var [a, b,,,,,, boop] = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b', 'boop' ])
+})
+
+test('nested array destructuring', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var [a, [[[b]], ...c], boop] = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b', 'c', 'boop' ])
+})
+
+test('object destructuring', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var {a, b} = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b' ])
+})
+
+test('object destructuring with different names', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var {a: b, b: lol} = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'b', 'lol' ])
+})
+
+test('nested object destructuring', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var {a: {b}, b: lol, c: {
+ d, e: { f: g }
+ }} = whatever()
+ `)
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'b', 'lol', 'd', 'g' ])
+})
+
+test('object rest destructuring', function (t) {
+ t.plan(1)
+ var ast = parse(`
+ var {a, ...b} = whatever()
+ `, { ecmaVersion: 9 })
+ var node = ast.body[0].declarations[0].id
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'a', 'b' ])
+})
+
+test('import declarations', function (t) {
+ t.plan(2)
+ var ast = parse(`
+ import x, { y, z as a } from 'module'
+ `, { sourceType: 'module' })
+ var node = ast.body[0]
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'x', 'y', 'a' ])
+
+ ast = parse(`
+ import * as ns from 'module'
+ `, { sourceType: 'module' })
+ node = ast.body[0]
+ t.deepEqual(getAssignedIdentifiers(node).map(getName), [ 'ns' ])
+})
diff --git a/node_modules/get-func-name/LICENSE b/node_modules/get-func-name/LICENSE
new file mode 100644
index 00000000..7ea799f0
--- /dev/null
+++ b/node_modules/get-func-name/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2013 Jake Luer (http://alogicalparadox.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/get-func-name/README.md b/node_modules/get-func-name/README.md
new file mode 100644
index 00000000..e9084162
--- /dev/null
+++ b/node_modules/get-func-name/README.md
@@ -0,0 +1,123 @@
+
+
+
+ Utility for getting a function's name for node and the browser.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## What is get-func-name?
+
+This is a module to retrieve a function's name securely and consistently both in NodeJS and the browser.
+
+## Installation
+
+### Node.js
+
+`get-func-name` is available on [npm](http://npmjs.org). To install it, type:
+
+ $ npm install get-func-name
+
+### Browsers
+
+You can also use it within the browser; install via npm and use the `get-func-name.js` file found within the download. For example:
+
+```html
+
+```
+
+## Usage
+
+The module `get-func-name` exports the following method:
+
+* `getFuncName(fn)` - Returns the name of a function.
+
+```js
+var getFuncName = require('get-func-name');
+```
+
+#### .getFuncName(fun)
+
+```js
+var getFuncName = require('get-func-name');
+
+var unknownFunction = function myCoolFunction(word) {
+ return word + 'is cool';
+};
+
+var anonymousFunction = (function () {
+ return function () {};
+}());
+
+getFuncName(unknownFunction) // 'myCoolFunction'
+getFuncName(anonymousFunction) // ''
+```
diff --git a/node_modules/get-func-name/get-func-name.js b/node_modules/get-func-name/get-func-name.js
new file mode 100644
index 00000000..f0c4069e
--- /dev/null
+++ b/node_modules/get-func-name/get-func-name.js
@@ -0,0 +1,48 @@
+(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.getFuncName = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o
+ * MIT Licensed
+ */
+
+/**
+ * ### .getFuncName(constructorFn)
+ *
+ * Returns the name of a function.
+ * When a non-function instance is passed, returns `null`.
+ * This also includes a polyfill function if `aFunc.name` is not defined.
+ *
+ * @name getFuncName
+ * @param {Function} funct
+ * @namespace Utils
+ * @api public
+ */
+
+var toString = Function.prototype.toString;
+var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
+function getFuncName(aFunc) {
+ if (typeof aFunc !== 'function') {
+ return null;
+ }
+
+ var name = '';
+ if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {
+ // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined
+ var match = toString.call(aFunc).match(functionNameMatch);
+ if (match) {
+ name = match[1];
+ }
+ } else {
+ // If we've got a `name` property we just use it
+ name = aFunc.name;
+ }
+
+ return name;
+}
+
+module.exports = getFuncName;
+
+},{}]},{},[1])(1)
+});
\ No newline at end of file
diff --git a/node_modules/get-func-name/index.js b/node_modules/get-func-name/index.js
new file mode 100644
index 00000000..e4aa5824
--- /dev/null
+++ b/node_modules/get-func-name/index.js
@@ -0,0 +1,44 @@
+'use strict';
+
+/* !
+ * Chai - getFuncName utility
+ * Copyright(c) 2012-2016 Jake Luer
+ * MIT Licensed
+ */
+
+/**
+ * ### .getFuncName(constructorFn)
+ *
+ * Returns the name of a function.
+ * When a non-function instance is passed, returns `null`.
+ * This also includes a polyfill function if `aFunc.name` is not defined.
+ *
+ * @name getFuncName
+ * @param {Function} funct
+ * @namespace Utils
+ * @api public
+ */
+
+var toString = Function.prototype.toString;
+var functionNameMatch = /\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;
+function getFuncName(aFunc) {
+ if (typeof aFunc !== 'function') {
+ return null;
+ }
+
+ var name = '';
+ if (typeof Function.prototype.name === 'undefined' && typeof aFunc.name === 'undefined') {
+ // Here we run a polyfill if Function does not support the `name` property and if aFunc.name is not defined
+ var match = toString.call(aFunc).match(functionNameMatch);
+ if (match) {
+ name = match[1];
+ }
+ } else {
+ // If we've got a `name` property we just use it
+ name = aFunc.name;
+ }
+
+ return name;
+}
+
+module.exports = getFuncName;
diff --git a/node_modules/get-func-name/package.json b/node_modules/get-func-name/package.json
new file mode 100644
index 00000000..66d6ed74
--- /dev/null
+++ b/node_modules/get-func-name/package.json
@@ -0,0 +1,133 @@
+{
+ "_from": "get-func-name@^2.0.0",
+ "_id": "get-func-name@2.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-6td0q+5y4gQJQzoGY2YCPdaIekE=",
+ "_location": "/get-func-name",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "get-func-name@^2.0.0",
+ "name": "get-func-name",
+ "escapedName": "get-func-name",
+ "rawSpec": "^2.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.0"
+ },
+ "_requiredBy": [
+ "/chai"
+ ],
+ "_resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.0.tgz",
+ "_shasum": "ead774abee72e20409433a066366023dd6887a41",
+ "_spec": "get-func-name@^2.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/chai",
+ "author": {
+ "name": "Jake Luer",
+ "email": "jake@alogicalparadox.com",
+ "url": "http://alogicalparadox.com"
+ },
+ "bugs": {
+ "url": "https://github.com/chaijs/get-func-name/issues"
+ },
+ "bundleDependencies": false,
+ "config": {
+ "ghooks": {
+ "commit-msg": "validate-commit-msg"
+ }
+ },
+ "contributors": [
+ {
+ "name": "Keith Cirkel",
+ "url": "https://github.com/keithamus"
+ },
+ {
+ "name": "Lucas Fernandes da Costa",
+ "url": "https://github.com/lucasfcosta"
+ },
+ {
+ "name": "Grant Snodgrass",
+ "url": "https://github.com/meeber"
+ },
+ {
+ "name": "Lucas Vieira",
+ "url": "https://github.com/vieiralucas"
+ },
+ {
+ "name": "Aleksey Shvayka",
+ "url": "https://github.com/shvaikalesh"
+ }
+ ],
+ "dependencies": {},
+ "deprecated": false,
+ "description": "Utility for getting a function's name for node and the browser",
+ "devDependencies": {
+ "browserify": "^13.0.0",
+ "browserify-istanbul": "^2.0.0",
+ "coveralls": "2.11.14",
+ "eslint": "^2.4.0",
+ "eslint-config-strict": "^9.1.0",
+ "eslint-plugin-filenames": "^1.1.0",
+ "ghooks": "^1.0.1",
+ "istanbul": "^0.4.2",
+ "karma": "^1.3.0",
+ "karma-browserify": "^5.0.2",
+ "karma-coverage": "^1.1.1",
+ "karma-mocha": "^1.2.0",
+ "karma-phantomjs-launcher": "^1.0.0",
+ "karma-sauce-launcher": "^1.0.0",
+ "lcov-result-merger": "^1.0.2",
+ "mocha": "^3.1.2",
+ "phantomjs-prebuilt": "^2.1.5",
+ "semantic-release": "^4.3.5",
+ "simple-assert": "^1.0.0",
+ "travis-after-all": "^1.4.4",
+ "validate-commit-msg": "^2.3.1"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "eslintConfig": {
+ "extends": [
+ "strict/es5"
+ ],
+ "env": {
+ "es6": true
+ },
+ "globals": {
+ "HTMLElement": false
+ },
+ "rules": {
+ "complexity": 0,
+ "max-statements": 0
+ }
+ },
+ "files": [
+ "index.js",
+ "get-func-name.js"
+ ],
+ "homepage": "https://github.com/chaijs/get-func-name#readme",
+ "keywords": [
+ "get-func-name",
+ "chai util"
+ ],
+ "license": "MIT",
+ "main": "./index.js",
+ "name": "get-func-name",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/chaijs/get-func-name.git"
+ },
+ "scripts": {
+ "build": "browserify --bare $npm_package_main --standalone getFuncName -o get-func-name.js",
+ "lint": "eslint --ignore-path .gitignore .",
+ "prepublish": "npm run build",
+ "pretest": "npm run lint",
+ "semantic-release": "semantic-release pre && npm publish && semantic-release post",
+ "test": "npm run test:node && npm run test:browser && npm run upload-coverage",
+ "test:browser": "karma start --singleRun=true",
+ "test:node": "istanbul cover _mocha",
+ "upload-coverage": "lcov-result-merger 'coverage/**/lcov.info' | coveralls; exit 0"
+ },
+ "version": "2.0.0"
+}
diff --git a/node_modules/get-intrinsic/.eslintignore b/node_modules/get-intrinsic/.eslintignore
new file mode 100644
index 00000000..404abb22
--- /dev/null
+++ b/node_modules/get-intrinsic/.eslintignore
@@ -0,0 +1 @@
+coverage/
diff --git a/node_modules/get-intrinsic/.eslintrc b/node_modules/get-intrinsic/.eslintrc
new file mode 100644
index 00000000..d04e4839
--- /dev/null
+++ b/node_modules/get-intrinsic/.eslintrc
@@ -0,0 +1,43 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "env": {
+ "es6": true,
+ "es2017": true,
+ "es2020": true,
+ "es2021": true,
+ },
+
+ "globals": {
+ "AggregateError": false,
+ },
+
+ "rules": {
+ "array-bracket-newline": 0,
+ "array-element-newline": 0,
+ "complexity": 0,
+ "eqeqeq": [2, "allow-null"],
+ "func-name-matching": 0,
+ "id-length": 0,
+ "max-lines-per-function": [2, 80],
+ "max-params": [2, 4],
+ "max-statements": 0,
+ "max-statements-per-line": [2, { "max": 2 }],
+ "multiline-comment-style": 0,
+ "no-magic-numbers": 0,
+ "operator-linebreak": [2, "before"],
+ "sort-keys": 0,
+ },
+
+ "overrides": [
+ {
+ "files": "test/**",
+ "rules": {
+ "max-lines-per-function": 0,
+ "new-cap": 0,
+ },
+ },
+ ],
+}
diff --git a/node_modules/get-intrinsic/.github/FUNDING.yml b/node_modules/get-intrinsic/.github/FUNDING.yml
new file mode 100644
index 00000000..8e8da0dd
--- /dev/null
+++ b/node_modules/get-intrinsic/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/get-intrinsic
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/get-intrinsic/.nycrc b/node_modules/get-intrinsic/.nycrc
new file mode 100644
index 00000000..1826526e
--- /dev/null
+++ b/node_modules/get-intrinsic/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/node_modules/get-intrinsic/CHANGELOG.md b/node_modules/get-intrinsic/CHANGELOG.md
new file mode 100644
index 00000000..32502ec1
--- /dev/null
+++ b/node_modules/get-intrinsic/CHANGELOG.md
@@ -0,0 +1,64 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.1.1](https://github.com/ljharb/get-intrinsic/compare/v1.1.0...v1.1.1) - 2021-02-03
+
+### Fixed
+
+- [meta] export `./package.json` [`#9`](https://github.com/ljharb/get-intrinsic/issues/9)
+
+### Commits
+
+- [readme] flesh out the readme; use `evalmd` [`d12f12c`](https://github.com/ljharb/get-intrinsic/commit/d12f12c15345a0a0772cc65a7c64369529abd614)
+- [eslint] set up proper globals config [`5a8c098`](https://github.com/ljharb/get-intrinsic/commit/5a8c0984e3319d1ac0e64b102f8ec18b64e79f36)
+- [Dev Deps] update `eslint` [`7b9a5c0`](https://github.com/ljharb/get-intrinsic/commit/7b9a5c0d31a90ca1a1234181c74988fb046701cd)
+
+## [v1.1.0](https://github.com/ljharb/get-intrinsic/compare/v1.0.2...v1.1.0) - 2021-01-25
+
+### Fixed
+
+- [Refactor] delay `Function` eval until syntax-derived values are requested [`#3`](https://github.com/ljharb/get-intrinsic/issues/3)
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`2ab762b`](https://github.com/ljharb/get-intrinsic/commit/2ab762b48164aea8af37a40ba105bbc8246ab8c4)
+- [meta] do not publish github action workflow files [`5e7108e`](https://github.com/ljharb/get-intrinsic/commit/5e7108e4768b244d48d9567ba4f8a6cab9c65b8e)
+- [Tests] add some coverage [`01ac7a8`](https://github.com/ljharb/get-intrinsic/commit/01ac7a87ac29738567e8524cd8c9e026b1fa8cb3)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `call-bind`, `es-abstract`, `tape`; add `call-bind` [`911b672`](https://github.com/ljharb/get-intrinsic/commit/911b672fbffae433a96924c6ce013585e425f4b7)
+- [Refactor] rearrange evalled constructors a bit [`7e7e4bf`](https://github.com/ljharb/get-intrinsic/commit/7e7e4bf583f3799c8ac1c6c5e10d2cb553957347)
+- [meta] add Automatic Rebase and Require Allow Edits workflows [`0199968`](https://github.com/ljharb/get-intrinsic/commit/01999687a263ffce0a3cb011dfbcb761754aedbc)
+
+## [v1.0.2](https://github.com/ljharb/get-intrinsic/compare/v1.0.1...v1.0.2) - 2020-12-17
+
+### Commits
+
+- [Fix] Throw for non‑existent intrinsics [`68f873b`](https://github.com/ljharb/get-intrinsic/commit/68f873b013c732a05ad6f5fc54f697e55515461b)
+- [Fix] Throw for non‑existent segments in the intrinsic path [`8325dee`](https://github.com/ljharb/get-intrinsic/commit/8325deee43128f3654d3399aa9591741ebe17b21)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `has-bigints`, `object-inspect` [`0c227a7`](https://github.com/ljharb/get-intrinsic/commit/0c227a7d8b629166f25715fd242553892e458525)
+- [meta] do not lint coverage output [`70d2419`](https://github.com/ljharb/get-intrinsic/commit/70d24199b620043cd9110fc5f426d214ebe21dc9)
+
+## [v1.0.1](https://github.com/ljharb/get-intrinsic/compare/v1.0.0...v1.0.1) - 2020-10-30
+
+### Commits
+
+- [Tests] gather coverage data on every job [`d1d280d`](https://github.com/ljharb/get-intrinsic/commit/d1d280dec714e3f0519cc877dbcb193057d9cac6)
+- [Fix] add missing dependencies [`5031771`](https://github.com/ljharb/get-intrinsic/commit/5031771bb1095b38be88ce7c41d5de88718e432e)
+- [Tests] use `es-value-fixtures` [`af48765`](https://github.com/ljharb/get-intrinsic/commit/af48765a23c5323fb0b6b38dbf00eb5099c7bebc)
+
+## v1.0.0 - 2020-10-29
+
+### Commits
+
+- Implementation [`bbce57c`](https://github.com/ljharb/get-intrinsic/commit/bbce57c6f33d05b2d8d3efa273ceeb3ee01127bb)
+- Tests [`17b4f0d`](https://github.com/ljharb/get-intrinsic/commit/17b4f0d56dea6b4059b56fc30ef3ee4d9500ebc2)
+- Initial commit [`3153294`](https://github.com/ljharb/get-intrinsic/commit/31532948de363b0a27dd9fd4649e7b7028ec4b44)
+- npm init [`fb326c4`](https://github.com/ljharb/get-intrinsic/commit/fb326c4d2817c8419ec31de1295f06bb268a7902)
+- [meta] add Automatic Rebase and Require Allow Edits workflows [`48862fb`](https://github.com/ljharb/get-intrinsic/commit/48862fb2508c8f6a57968e6d08b7c883afc9d550)
+- [meta] add `auto-changelog` [`5f28ad0`](https://github.com/ljharb/get-intrinsic/commit/5f28ad019e060a353d8028f9f2591a9cc93074a1)
+- [meta] add "funding"; create `FUNDING.yml` [`c2bbdde`](https://github.com/ljharb/get-intrinsic/commit/c2bbddeba73a875be61484ee4680b129a6d4e0a1)
+- [Tests] add `npm run lint` [`0a84b98`](https://github.com/ljharb/get-intrinsic/commit/0a84b98b22b7cf7a748666f705b0003a493c35fd)
+- Only apps should have lockfiles [`9586c75`](https://github.com/ljharb/get-intrinsic/commit/9586c75866c1ee678e4d5d4dbbdef6997e511b05)
diff --git a/node_modules/get-intrinsic/LICENSE b/node_modules/get-intrinsic/LICENSE
new file mode 100644
index 00000000..48f05d01
--- /dev/null
+++ b/node_modules/get-intrinsic/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/get-intrinsic/README.md b/node_modules/get-intrinsic/README.md
new file mode 100644
index 00000000..335a3b49
--- /dev/null
+++ b/node_modules/get-intrinsic/README.md
@@ -0,0 +1,65 @@
+# get-intrinsic [![Version Badge][npm-version-svg]][package-url]
+
+[![dependency status][deps-svg]][deps-url]
+[![dev dependency status][dev-deps-svg]][dev-deps-url]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][npm-badge-png]][package-url]
+
+Get and robustly cache all JS language-level intrinsics at first require time.
+
+See the syntax described [in the JS spec](https://tc39.es/ecma262/#sec-well-known-intrinsic-objects) for reference.
+
+## Example
+
+```js
+var GetIntrinsic = require('get-intrinsic');
+var assert = require('assert');
+
+// static methods
+assert.equal(GetIntrinsic('%Math.pow%'), Math.pow);
+assert.equal(Math.pow(2, 3), 8);
+assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
+delete Math.pow;
+assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
+
+// instance methods
+var arr = [1];
+assert.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push);
+assert.deepEqual(arr, [1]);
+
+arr.push(2);
+assert.deepEqual(arr, [1, 2]);
+
+GetIntrinsic('%Array.prototype.push%').call(arr, 3);
+assert.deepEqual(arr, [1, 2, 3]);
+
+delete Array.prototype.push;
+GetIntrinsic('%Array.prototype.push%').call(arr, 4);
+assert.deepEqual(arr, [1, 2, 3, 4]);
+
+// missing features
+delete JSON.parse; // to simulate a real intrinsic that is missing in the environment
+assert.throws(() => GetIntrinsic('%JSON.parse%'));
+assert.equal(undefined, GetIntrinsic('%JSON.parse%', true));
+```
+
+## Tests
+Simply clone the repo, `npm install`, and run `npm test`
+
+## Security
+
+Please email [@ljharb](https://github.com/ljharb) or see https://tidelift.com/security if you have a potential security vulnerability to report.
+
+[package-url]: https://npmjs.org/package/get-intrinsic
+[npm-version-svg]: http://versionbadg.es/ljharb/get-intrinsic.svg
+[deps-svg]: https://david-dm.org/ljharb/get-intrinsic.svg
+[deps-url]: https://david-dm.org/ljharb/get-intrinsic
+[dev-deps-svg]: https://david-dm.org/ljharb/get-intrinsic/dev-status.svg
+[dev-deps-url]: https://david-dm.org/ljharb/get-intrinsic#info=devDependencies
+[npm-badge-png]: https://nodei.co/npm/get-intrinsic.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/get-intrinsic.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/get-intrinsic.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=get-intrinsic
diff --git a/node_modules/get-intrinsic/index.js b/node_modules/get-intrinsic/index.js
new file mode 100644
index 00000000..d6c06c28
--- /dev/null
+++ b/node_modules/get-intrinsic/index.js
@@ -0,0 +1,330 @@
+'use strict';
+
+var undefined;
+
+var $SyntaxError = SyntaxError;
+var $Function = Function;
+var $TypeError = TypeError;
+
+// eslint-disable-next-line consistent-return
+var getEvalledConstructor = function (expressionSyntax) {
+ try {
+ return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
+ } catch (e) {}
+};
+
+var $gOPD = Object.getOwnPropertyDescriptor;
+if ($gOPD) {
+ try {
+ $gOPD({}, '');
+ } catch (e) {
+ $gOPD = null; // this is IE 8, which has a broken gOPD
+ }
+}
+
+var throwTypeError = function () {
+ throw new $TypeError();
+};
+var ThrowTypeError = $gOPD
+ ? (function () {
+ try {
+ // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
+ arguments.callee; // IE 8 does not throw here
+ return throwTypeError;
+ } catch (calleeThrows) {
+ try {
+ // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
+ return $gOPD(arguments, 'callee').get;
+ } catch (gOPDthrows) {
+ return throwTypeError;
+ }
+ }
+ }())
+ : throwTypeError;
+
+var hasSymbols = require('has-symbols')();
+
+var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
+
+var needsEval = {};
+
+var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
+
+var INTRINSICS = {
+ '%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
+ '%Array%': Array,
+ '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
+ '%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
+ '%AsyncFromSyncIteratorPrototype%': undefined,
+ '%AsyncFunction%': needsEval,
+ '%AsyncGenerator%': needsEval,
+ '%AsyncGeneratorFunction%': needsEval,
+ '%AsyncIteratorPrototype%': needsEval,
+ '%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
+ '%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
+ '%Boolean%': Boolean,
+ '%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
+ '%Date%': Date,
+ '%decodeURI%': decodeURI,
+ '%decodeURIComponent%': decodeURIComponent,
+ '%encodeURI%': encodeURI,
+ '%encodeURIComponent%': encodeURIComponent,
+ '%Error%': Error,
+ '%eval%': eval, // eslint-disable-line no-eval
+ '%EvalError%': EvalError,
+ '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
+ '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
+ '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
+ '%Function%': $Function,
+ '%GeneratorFunction%': needsEval,
+ '%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
+ '%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
+ '%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
+ '%isFinite%': isFinite,
+ '%isNaN%': isNaN,
+ '%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
+ '%JSON%': typeof JSON === 'object' ? JSON : undefined,
+ '%Map%': typeof Map === 'undefined' ? undefined : Map,
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
+ '%Math%': Math,
+ '%Number%': Number,
+ '%Object%': Object,
+ '%parseFloat%': parseFloat,
+ '%parseInt%': parseInt,
+ '%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
+ '%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
+ '%RangeError%': RangeError,
+ '%ReferenceError%': ReferenceError,
+ '%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
+ '%RegExp%': RegExp,
+ '%Set%': typeof Set === 'undefined' ? undefined : Set,
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
+ '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
+ '%String%': String,
+ '%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
+ '%Symbol%': hasSymbols ? Symbol : undefined,
+ '%SyntaxError%': $SyntaxError,
+ '%ThrowTypeError%': ThrowTypeError,
+ '%TypedArray%': TypedArray,
+ '%TypeError%': $TypeError,
+ '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
+ '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
+ '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
+ '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
+ '%URIError%': URIError,
+ '%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
+ '%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
+};
+
+var doEval = function doEval(name) {
+ var value;
+ if (name === '%AsyncFunction%') {
+ value = getEvalledConstructor('async function () {}');
+ } else if (name === '%GeneratorFunction%') {
+ value = getEvalledConstructor('function* () {}');
+ } else if (name === '%AsyncGeneratorFunction%') {
+ value = getEvalledConstructor('async function* () {}');
+ } else if (name === '%AsyncGenerator%') {
+ var fn = doEval('%AsyncGeneratorFunction%');
+ if (fn) {
+ value = fn.prototype;
+ }
+ } else if (name === '%AsyncIteratorPrototype%') {
+ var gen = doEval('%AsyncGenerator%');
+ if (gen) {
+ value = getProto(gen.prototype);
+ }
+ }
+
+ INTRINSICS[name] = value;
+
+ return value;
+};
+
+var LEGACY_ALIASES = {
+ '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
+ '%ArrayPrototype%': ['Array', 'prototype'],
+ '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
+ '%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
+ '%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
+ '%ArrayProto_values%': ['Array', 'prototype', 'values'],
+ '%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
+ '%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
+ '%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
+ '%BooleanPrototype%': ['Boolean', 'prototype'],
+ '%DataViewPrototype%': ['DataView', 'prototype'],
+ '%DatePrototype%': ['Date', 'prototype'],
+ '%ErrorPrototype%': ['Error', 'prototype'],
+ '%EvalErrorPrototype%': ['EvalError', 'prototype'],
+ '%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
+ '%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
+ '%FunctionPrototype%': ['Function', 'prototype'],
+ '%Generator%': ['GeneratorFunction', 'prototype'],
+ '%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
+ '%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
+ '%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
+ '%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
+ '%JSONParse%': ['JSON', 'parse'],
+ '%JSONStringify%': ['JSON', 'stringify'],
+ '%MapPrototype%': ['Map', 'prototype'],
+ '%NumberPrototype%': ['Number', 'prototype'],
+ '%ObjectPrototype%': ['Object', 'prototype'],
+ '%ObjProto_toString%': ['Object', 'prototype', 'toString'],
+ '%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
+ '%PromisePrototype%': ['Promise', 'prototype'],
+ '%PromiseProto_then%': ['Promise', 'prototype', 'then'],
+ '%Promise_all%': ['Promise', 'all'],
+ '%Promise_reject%': ['Promise', 'reject'],
+ '%Promise_resolve%': ['Promise', 'resolve'],
+ '%RangeErrorPrototype%': ['RangeError', 'prototype'],
+ '%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
+ '%RegExpPrototype%': ['RegExp', 'prototype'],
+ '%SetPrototype%': ['Set', 'prototype'],
+ '%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
+ '%StringPrototype%': ['String', 'prototype'],
+ '%SymbolPrototype%': ['Symbol', 'prototype'],
+ '%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
+ '%TypedArrayPrototype%': ['TypedArray', 'prototype'],
+ '%TypeErrorPrototype%': ['TypeError', 'prototype'],
+ '%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
+ '%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
+ '%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
+ '%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
+ '%URIErrorPrototype%': ['URIError', 'prototype'],
+ '%WeakMapPrototype%': ['WeakMap', 'prototype'],
+ '%WeakSetPrototype%': ['WeakSet', 'prototype']
+};
+
+var bind = require('function-bind');
+var hasOwn = require('has');
+var $concat = bind.call(Function.call, Array.prototype.concat);
+var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
+var $replace = bind.call(Function.call, String.prototype.replace);
+var $strSlice = bind.call(Function.call, String.prototype.slice);
+
+/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
+var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
+var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
+var stringToPath = function stringToPath(string) {
+ var first = $strSlice(string, 0, 1);
+ var last = $strSlice(string, -1);
+ if (first === '%' && last !== '%') {
+ throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
+ } else if (last === '%' && first !== '%') {
+ throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
+ }
+ var result = [];
+ $replace(string, rePropName, function (match, number, quote, subString) {
+ result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
+ });
+ return result;
+};
+/* end adaptation */
+
+var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
+ var intrinsicName = name;
+ var alias;
+ if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
+ alias = LEGACY_ALIASES[intrinsicName];
+ intrinsicName = '%' + alias[0] + '%';
+ }
+
+ if (hasOwn(INTRINSICS, intrinsicName)) {
+ var value = INTRINSICS[intrinsicName];
+ if (value === needsEval) {
+ value = doEval(intrinsicName);
+ }
+ if (typeof value === 'undefined' && !allowMissing) {
+ throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
+ }
+
+ return {
+ alias: alias,
+ name: intrinsicName,
+ value: value
+ };
+ }
+
+ throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
+};
+
+module.exports = function GetIntrinsic(name, allowMissing) {
+ if (typeof name !== 'string' || name.length === 0) {
+ throw new $TypeError('intrinsic name must be a non-empty string');
+ }
+ if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
+ throw new $TypeError('"allowMissing" argument must be a boolean');
+ }
+
+ var parts = stringToPath(name);
+ var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
+
+ var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
+ var intrinsicRealName = intrinsic.name;
+ var value = intrinsic.value;
+ var skipFurtherCaching = false;
+
+ var alias = intrinsic.alias;
+ if (alias) {
+ intrinsicBaseName = alias[0];
+ $spliceApply(parts, $concat([0, 1], alias));
+ }
+
+ for (var i = 1, isOwn = true; i < parts.length; i += 1) {
+ var part = parts[i];
+ var first = $strSlice(part, 0, 1);
+ var last = $strSlice(part, -1);
+ if (
+ (
+ (first === '"' || first === "'" || first === '`')
+ || (last === '"' || last === "'" || last === '`')
+ )
+ && first !== last
+ ) {
+ throw new $SyntaxError('property names with quotes must have matching quotes');
+ }
+ if (part === 'constructor' || !isOwn) {
+ skipFurtherCaching = true;
+ }
+
+ intrinsicBaseName += '.' + part;
+ intrinsicRealName = '%' + intrinsicBaseName + '%';
+
+ if (hasOwn(INTRINSICS, intrinsicRealName)) {
+ value = INTRINSICS[intrinsicRealName];
+ } else if (value != null) {
+ if (!(part in value)) {
+ if (!allowMissing) {
+ throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
+ }
+ return void undefined;
+ }
+ if ($gOPD && (i + 1) >= parts.length) {
+ var desc = $gOPD(value, part);
+ isOwn = !!desc;
+
+ // By convention, when a data property is converted to an accessor
+ // property to emulate a data property that does not suffer from
+ // the override mistake, that accessor's getter is marked with
+ // an `originalValue` property. Here, when we detect this, we
+ // uphold the illusion by pretending to see that original data
+ // property, i.e., returning the value rather than the getter
+ // itself.
+ if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
+ value = desc.get;
+ } else {
+ value = value[part];
+ }
+ } else {
+ isOwn = hasOwn(value, part);
+ value = value[part];
+ }
+
+ if (isOwn && !skipFurtherCaching) {
+ INTRINSICS[intrinsicRealName] = value;
+ }
+ }
+ }
+ return value;
+};
diff --git a/node_modules/get-intrinsic/package.json b/node_modules/get-intrinsic/package.json
new file mode 100644
index 00000000..840464ec
--- /dev/null
+++ b/node_modules/get-intrinsic/package.json
@@ -0,0 +1,106 @@
+{
+ "_from": "get-intrinsic@^1.0.2",
+ "_id": "get-intrinsic@1.1.1",
+ "_inBundle": false,
+ "_integrity": "sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q==",
+ "_location": "/get-intrinsic",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "get-intrinsic@^1.0.2",
+ "name": "get-intrinsic",
+ "escapedName": "get-intrinsic",
+ "rawSpec": "^1.0.2",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.2"
+ },
+ "_requiredBy": [
+ "/call-bind"
+ ],
+ "_resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.1.tgz",
+ "_shasum": "15f59f376f855c446963948f0d24cd3637b4abc6",
+ "_spec": "get-intrinsic@^1.0.2",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/call-bind",
+ "author": {
+ "name": "Jordan Harband",
+ "email": "ljharb@gmail.com"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "bugs": {
+ "url": "https://github.com/ljharb/get-intrinsic/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-symbols": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Get and robustly cache all JS language-level intrinsics at first require time",
+ "devDependencies": {
+ "@ljharb/eslint-config": "^17.5.0",
+ "aud": "^1.1.3",
+ "auto-changelog": "^2.2.1",
+ "call-bind": "^1.0.2",
+ "es-abstract": "^1.18.0-next.2",
+ "es-value-fixtures": "^1.0.0",
+ "eslint": "^7.19.0",
+ "evalmd": "^0.0.19",
+ "foreach": "^2.0.5",
+ "has-bigints": "^1.0.1",
+ "make-async-function": "^1.0.0",
+ "make-async-generator-function": "^1.0.0",
+ "make-generator-function": "^2.0.0",
+ "nyc": "^10.3.2",
+ "object-inspect": "^1.9.0",
+ "tape": "^5.1.1"
+ },
+ "exports": {
+ ".": [
+ {
+ "default": "./index.js"
+ },
+ "./index.js"
+ ],
+ "./package.json": "./package.json"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "homepage": "https://github.com/ljharb/get-intrinsic#readme",
+ "keywords": [
+ "javascript",
+ "ecmascript",
+ "es",
+ "js",
+ "intrinsic",
+ "getintrinsic",
+ "es-abstract"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "get-intrinsic",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/ljharb/get-intrinsic.git"
+ },
+ "scripts": {
+ "lint": "eslint --ext=.js,.mjs .",
+ "posttest": "aud --production",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
+ "prelint": "evalmd README.md",
+ "pretest": "npm run lint",
+ "test": "npm run tests-only",
+ "tests-only": "nyc tape 'test/**/*.js'",
+ "version": "auto-changelog && git add CHANGELOG.md"
+ },
+ "version": "1.1.1"
+}
diff --git a/node_modules/get-intrinsic/test/GetIntrinsic.js b/node_modules/get-intrinsic/test/GetIntrinsic.js
new file mode 100644
index 00000000..695e3ad4
--- /dev/null
+++ b/node_modules/get-intrinsic/test/GetIntrinsic.js
@@ -0,0 +1,260 @@
+'use strict';
+
+var GetIntrinsic = require('../');
+
+var test = require('tape');
+var forEach = require('foreach');
+var debug = require('object-inspect');
+var generatorFns = require('make-generator-function')();
+var asyncFns = require('make-async-function').list();
+var asyncGenFns = require('make-async-generator-function')();
+
+var callBound = require('call-bind/callBound');
+var v = require('es-value-fixtures');
+var $gOPD = require('es-abstract/helpers/getOwnPropertyDescriptor');
+var defineProperty = require('es-abstract/test/helpers/defineProperty');
+
+var $isProto = callBound('%Object.prototype.isPrototypeOf%');
+
+test('export', function (t) {
+ t.equal(typeof GetIntrinsic, 'function', 'it is a function');
+ t.equal(GetIntrinsic.length, 2, 'function has length of 2');
+
+ t.end();
+});
+
+test('throws', function (t) {
+ t['throws'](
+ function () { GetIntrinsic('not an intrinsic'); },
+ SyntaxError,
+ 'nonexistent intrinsic throws a syntax error'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic(''); },
+ TypeError,
+ 'empty string intrinsic throws a type error'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic('.'); },
+ SyntaxError,
+ '"just a dot" intrinsic throws a syntax error'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic('%String'); },
+ SyntaxError,
+ 'Leading % without trailing % throws a syntax error'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic('String%'); },
+ SyntaxError,
+ 'Trailing % without leading % throws a syntax error'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic("String['prototype]"); },
+ SyntaxError,
+ 'Dynamic property access is disallowed for intrinsics (unterminated string)'
+ );
+
+ t['throws'](
+ function () { GetIntrinsic('%Proxy.prototype.undefined%'); },
+ TypeError,
+ "Throws when middle part doesn't exist (%Proxy.prototype.undefined%)"
+ );
+
+ forEach(v.nonStrings, function (nonString) {
+ t['throws'](
+ function () { GetIntrinsic(nonString); },
+ TypeError,
+ debug(nonString) + ' is not a String'
+ );
+ });
+
+ forEach(v.nonBooleans, function (nonBoolean) {
+ t['throws'](
+ function () { GetIntrinsic('%', nonBoolean); },
+ TypeError,
+ debug(nonBoolean) + ' is not a Boolean'
+ );
+ });
+
+ forEach([
+ 'toString',
+ 'propertyIsEnumerable',
+ 'hasOwnProperty'
+ ], function (objectProtoMember) {
+ t['throws'](
+ function () { GetIntrinsic(objectProtoMember); },
+ SyntaxError,
+ debug(objectProtoMember) + ' is not an intrinsic'
+ );
+ });
+
+ t.end();
+});
+
+test('base intrinsics', function (t) {
+ t.equal(GetIntrinsic('%Object%'), Object, '%Object% yields Object');
+ t.equal(GetIntrinsic('Object'), Object, 'Object yields Object');
+ t.equal(GetIntrinsic('%Array%'), Array, '%Array% yields Array');
+ t.equal(GetIntrinsic('Array'), Array, 'Array yields Array');
+
+ t.end();
+});
+
+test('dotted paths', function (t) {
+ t.equal(GetIntrinsic('%Object.prototype.toString%'), Object.prototype.toString, '%Object.prototype.toString% yields Object.prototype.toString');
+ t.equal(GetIntrinsic('Object.prototype.toString'), Object.prototype.toString, 'Object.prototype.toString yields Object.prototype.toString');
+ t.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push, '%Array.prototype.push% yields Array.prototype.push');
+ t.equal(GetIntrinsic('Array.prototype.push'), Array.prototype.push, 'Array.prototype.push yields Array.prototype.push');
+
+ test('underscore paths are aliases for dotted paths', { skip: !Object.isFrozen || Object.isFrozen(Object.prototype) }, function (st) {
+ var original = GetIntrinsic('%ObjProto_toString%');
+
+ forEach([
+ '%Object.prototype.toString%',
+ 'Object.prototype.toString',
+ '%ObjectPrototype.toString%',
+ 'ObjectPrototype.toString',
+ '%ObjProto_toString%',
+ 'ObjProto_toString'
+ ], function (name) {
+ defineProperty(Object.prototype, 'toString', {
+ value: function toString() {
+ return original.apply(this, arguments);
+ }
+ });
+ st.equal(GetIntrinsic(name), original, name + ' yields original Object.prototype.toString');
+ });
+
+ defineProperty(Object.prototype, 'toString', { value: original });
+ st.end();
+ });
+
+ test('dotted paths cache', { skip: !Object.isFrozen || Object.isFrozen(Object.prototype) }, function (st) {
+ var original = GetIntrinsic('%Object.prototype.propertyIsEnumerable%');
+
+ forEach([
+ '%Object.prototype.propertyIsEnumerable%',
+ 'Object.prototype.propertyIsEnumerable',
+ '%ObjectPrototype.propertyIsEnumerable%',
+ 'ObjectPrototype.propertyIsEnumerable'
+ ], function (name) {
+ // eslint-disable-next-line no-extend-native
+ Object.prototype.propertyIsEnumerable = function propertyIsEnumerable() {
+ return original.apply(this, arguments);
+ };
+ st.equal(GetIntrinsic(name), original, name + ' yields cached Object.prototype.propertyIsEnumerable');
+ });
+
+ // eslint-disable-next-line no-extend-native
+ Object.prototype.propertyIsEnumerable = original;
+ st.end();
+ });
+
+ test('dotted path reports correct error', function (st) {
+ st['throws'](function () {
+ GetIntrinsic('%NonExistentIntrinsic.prototype.property%');
+ }, /%NonExistentIntrinsic%/, 'The base intrinsic of %NonExistentIntrinsic.prototype.property% is %NonExistentIntrinsic%');
+
+ st['throws'](function () {
+ GetIntrinsic('%NonExistentIntrinsicPrototype.property%');
+ }, /%NonExistentIntrinsicPrototype%/, 'The base intrinsic of %NonExistentIntrinsicPrototype.property% is %NonExistentIntrinsicPrototype%');
+
+ st.end();
+ });
+
+ t.end();
+});
+
+test('accessors', { skip: !$gOPD || typeof Map !== 'function' }, function (t) {
+ var actual = $gOPD(Map.prototype, 'size');
+ t.ok(actual, 'Map.prototype.size has a descriptor');
+ t.equal(typeof actual.get, 'function', 'Map.prototype.size has a getter function');
+ t.equal(GetIntrinsic('%Map.prototype.size%'), actual.get, '%Map.prototype.size% yields the getter for it');
+ t.equal(GetIntrinsic('Map.prototype.size'), actual.get, 'Map.prototype.size yields the getter for it');
+
+ t.end();
+});
+
+test('generator functions', { skip: !generatorFns.length }, function (t) {
+ var $GeneratorFunction = GetIntrinsic('%GeneratorFunction%');
+ var $GeneratorFunctionPrototype = GetIntrinsic('%Generator%');
+ var $GeneratorPrototype = GetIntrinsic('%GeneratorPrototype%');
+
+ forEach(generatorFns, function (genFn) {
+ var fnName = genFn.name;
+ fnName = fnName ? "'" + fnName + "'" : 'genFn';
+
+ t.ok(genFn instanceof $GeneratorFunction, fnName + ' instanceof %GeneratorFunction%');
+ t.ok($isProto($GeneratorFunctionPrototype, genFn), '%Generator% is prototype of ' + fnName);
+ t.ok($isProto($GeneratorPrototype, genFn.prototype), '%GeneratorPrototype% is prototype of ' + fnName + '.prototype');
+ });
+
+ t.end();
+});
+
+test('async functions', { skip: !asyncFns.length }, function (t) {
+ var $AsyncFunction = GetIntrinsic('%AsyncFunction%');
+ var $AsyncFunctionPrototype = GetIntrinsic('%AsyncFunctionPrototype%');
+
+ forEach(asyncFns, function (asyncFn) {
+ var fnName = asyncFn.name;
+ fnName = fnName ? "'" + fnName + "'" : 'asyncFn';
+
+ t.ok(asyncFn instanceof $AsyncFunction, fnName + ' instanceof %AsyncFunction%');
+ t.ok($isProto($AsyncFunctionPrototype, asyncFn), '%AsyncFunctionPrototype% is prototype of ' + fnName);
+ });
+
+ t.end();
+});
+
+test('async generator functions', { skip: asyncGenFns.length === 0 }, function (t) {
+ var $AsyncGeneratorFunction = GetIntrinsic('%AsyncGeneratorFunction%');
+ var $AsyncGeneratorFunctionPrototype = GetIntrinsic('%AsyncGenerator%');
+ var $AsyncGeneratorPrototype = GetIntrinsic('%AsyncGeneratorPrototype%');
+
+ forEach(asyncGenFns, function (asyncGenFn) {
+ var fnName = asyncGenFn.name;
+ fnName = fnName ? "'" + fnName + "'" : 'asyncGenFn';
+
+ t.ok(asyncGenFn instanceof $AsyncGeneratorFunction, fnName + ' instanceof %AsyncGeneratorFunction%');
+ t.ok($isProto($AsyncGeneratorFunctionPrototype, asyncGenFn), '%AsyncGenerator% is prototype of ' + fnName);
+ t.ok($isProto($AsyncGeneratorPrototype, asyncGenFn.prototype), '%AsyncGeneratorPrototype% is prototype of ' + fnName + '.prototype');
+ });
+
+ t.end();
+});
+
+test('%ThrowTypeError%', function (t) {
+ var $ThrowTypeError = GetIntrinsic('%ThrowTypeError%');
+
+ t.equal(typeof $ThrowTypeError, 'function', 'is a function');
+ t['throws'](
+ $ThrowTypeError,
+ TypeError,
+ '%ThrowTypeError% throws a TypeError'
+ );
+
+ t.end();
+});
+
+test('allowMissing', { skip: asyncGenFns.length > 0 }, function (t) {
+ t['throws'](
+ function () { GetIntrinsic('%AsyncGeneratorPrototype%'); },
+ TypeError,
+ 'throws when missing'
+ );
+
+ t.equal(
+ GetIntrinsic('%AsyncGeneratorPrototype%', true),
+ undefined,
+ 'does not throw when allowMissing'
+ );
+
+ t.end();
+});
diff --git a/node_modules/get-value/LICENSE b/node_modules/get-value/LICENSE
new file mode 100644
index 00000000..39245ac1
--- /dev/null
+++ b/node_modules/get-value/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2016, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/get-value/index.js b/node_modules/get-value/index.js
new file mode 100644
index 00000000..5879a884
--- /dev/null
+++ b/node_modules/get-value/index.js
@@ -0,0 +1,50 @@
+/*!
+ * get-value
+ *
+ * Copyright (c) 2014-2015, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+module.exports = function(obj, prop, a, b, c) {
+ if (!isObject(obj) || !prop) {
+ return obj;
+ }
+
+ prop = toString(prop);
+
+ // allowing for multiple properties to be passed as
+ // a string or array, but much faster (3-4x) than doing
+ // `[].slice.call(arguments)`
+ if (a) prop += '.' + toString(a);
+ if (b) prop += '.' + toString(b);
+ if (c) prop += '.' + toString(c);
+
+ if (prop in obj) {
+ return obj[prop];
+ }
+
+ var segs = prop.split('.');
+ var len = segs.length;
+ var i = -1;
+
+ while (obj && (++i < len)) {
+ var key = segs[i];
+ while (key[key.length - 1] === '\\') {
+ key = key.slice(0, -1) + '.' + segs[++i];
+ }
+ obj = obj[key];
+ }
+ return obj;
+};
+
+function isObject(val) {
+ return val !== null && (typeof val === 'object' || typeof val === 'function');
+}
+
+function toString(val) {
+ if (!val) return '';
+ if (Array.isArray(val)) {
+ return val.join('.');
+ }
+ return val;
+}
diff --git a/node_modules/get-value/package.json b/node_modules/get-value/package.json
new file mode 100644
index 00000000..b94612f8
--- /dev/null
+++ b/node_modules/get-value/package.json
@@ -0,0 +1,113 @@
+{
+ "_from": "get-value@^2.0.6",
+ "_id": "get-value@2.0.6",
+ "_inBundle": false,
+ "_integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=",
+ "_location": "/get-value",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "get-value@^2.0.6",
+ "name": "get-value",
+ "escapedName": "get-value",
+ "rawSpec": "^2.0.6",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.6"
+ },
+ "_requiredBy": [
+ "/cache-base",
+ "/has-value",
+ "/union-value",
+ "/unset-value/has-value"
+ ],
+ "_resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz",
+ "_shasum": "dc15ca1c672387ca76bd37ac0a395ba2042a2c28",
+ "_spec": "get-value@^2.0.6",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/cache-base",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/get-value/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Use property paths (`a.b.c`) to get a nested value from an object.",
+ "devDependencies": {
+ "ansi-bold": "^0.1.1",
+ "arr-reduce": "^1.0.1",
+ "benchmarked": "^0.1.4",
+ "dot-prop": "^2.2.0",
+ "getobject": "^0.1.0",
+ "gulp": "^3.9.0",
+ "gulp-eslint": "^1.1.1",
+ "gulp-format-md": "^0.1.5",
+ "gulp-istanbul": "^0.10.2",
+ "gulp-mocha": "^2.1.3",
+ "isobject": "^2.0.0",
+ "matched": "^0.3.2",
+ "minimist": "^1.2.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/get-value",
+ "keywords": [
+ "get",
+ "key",
+ "nested",
+ "object",
+ "path",
+ "paths",
+ "prop",
+ "properties",
+ "property",
+ "props",
+ "segment",
+ "value",
+ "values"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "get-value",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/get-value.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "has-any",
+ "has-any-deep",
+ "has-value",
+ "set-value",
+ "unset-value"
+ ]
+ },
+ "reflinks": [
+ "verb",
+ "verb-readme-generator"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "2.0.6"
+}
diff --git a/node_modules/gherkin/.github/ISSUE_TEMPLATE.md b/node_modules/gherkin/.github/ISSUE_TEMPLATE.md
new file mode 100644
index 00000000..fac96198
--- /dev/null
+++ b/node_modules/gherkin/.github/ISSUE_TEMPLATE.md
@@ -0,0 +1,5 @@
+PLEASE DO NOT CREATE ISSUES IN THIS REPO.
+THIS REPO IS A READ-ONLY MIRROR.
+
+Create your issue in the Cucumber monorepo instead:
+https://github.com/cucumber/cucumber/issues
diff --git a/node_modules/gherkin/.github/PULL_REQUEST_TEMPLATE.md b/node_modules/gherkin/.github/PULL_REQUEST_TEMPLATE.md
new file mode 100644
index 00000000..2c0c878d
--- /dev/null
+++ b/node_modules/gherkin/.github/PULL_REQUEST_TEMPLATE.md
@@ -0,0 +1,5 @@
+PLEASE DO NOT CREATE PULL REAUESTS IN THIS REPO.
+THIS REPO IS A READ-ONLY MIRROR.
+
+Create your pull request in the Cucumber monorepo instead:
+https://github.com/cucumber/cucumber/pulls
diff --git a/node_modules/gherkin/.rsync b/node_modules/gherkin/.rsync
new file mode 100644
index 00000000..b257541b
--- /dev/null
+++ b/node_modules/gherkin/.rsync
@@ -0,0 +1,7 @@
+../LICENSE LICENSE
+../../.templates/github/ .github/
+../../.templates/javascript/.travis.yml .travis.yml
+../testdata/ testdata/
+../gherkin.berp gherkin.berp
+../bin/ berp/
+../gherkin-languages.json lib/gherkin/gherkin-languages.json
diff --git a/node_modules/gherkin/.subrepo b/node_modules/gherkin/.subrepo
new file mode 100644
index 00000000..04c7835e
--- /dev/null
+++ b/node_modules/gherkin/.subrepo
@@ -0,0 +1 @@
+cucumber/gherkin-javascript.git
diff --git a/node_modules/gherkin/.travis.yml b/node_modules/gherkin/.travis.yml
new file mode 100644
index 00000000..5bf16e11
--- /dev/null
+++ b/node_modules/gherkin/.travis.yml
@@ -0,0 +1,15 @@
+# Please update /.templates/javascript/.travis.yml in the cucumber/cucumber monorepo
+# and sync:
+#
+# source scripts/functions.sh && rsync_files
+#
+sudo: false
+language: node_js
+node_js:
+ - "10"
+ - "9"
+ - "8"
+ - "6"
+ - "4"
+
+script: make default
\ No newline at end of file
diff --git a/node_modules/gherkin/CONTRIBUTING.md b/node_modules/gherkin/CONTRIBUTING.md
new file mode 100644
index 00000000..65544419
--- /dev/null
+++ b/node_modules/gherkin/CONTRIBUTING.md
@@ -0,0 +1,20 @@
+Please read [CONTRIBUTING](https://github.com/cucumber/gherkin/blob/master/CONTRIBUTING.md) first.
+You should clone the [cucumber/gherkin](https://github.com/cucumber/gherkin) repo if you want
+to contribute.
+
+## Run tests
+
+### Using make
+
+Just run `make` from this directory.
+
+### Using npm
+
+Just run `npm test` from this directory (you need to `npm install` first).
+
+Keep in mind that this will only run unit tests. The acceptance tests are only
+run when you build with `make`.
+
+## Browser Build
+
+ make dist/gherkin.js
diff --git a/node_modules/gherkin/LICENSE b/node_modules/gherkin/LICENSE
new file mode 100644
index 00000000..29e13610
--- /dev/null
+++ b/node_modules/gherkin/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) Cucumber Ltd, Gaspar Nagy, Björn Rasmusson, Peter Sergeant
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/gherkin/README.md b/node_modules/gherkin/README.md
new file mode 100644
index 00000000..3a4e58af
--- /dev/null
+++ b/node_modules/gherkin/README.md
@@ -0,0 +1,3 @@
+[](http://travis-ci.org/cucumber/gherkin-javascript)
+
+Gherkin parser/compiler for JavaScript. Please see [Gherkin](https://github.com/cucumber/gherkin) for details.
diff --git a/node_modules/gherkin/bin/gherkin b/node_modules/gherkin/bin/gherkin
new file mode 100755
index 00000000..a30bfb87
--- /dev/null
+++ b/node_modules/gherkin/bin/gherkin
@@ -0,0 +1,59 @@
+#!/usr/bin/env node
+'use strict'
+const Stream = require('stream')
+const fs = require('fs')
+const EventStream = require('../lib/gherkin/stream/event_stream')
+
+const args = process.argv.slice(2)
+const types = {
+ 'source': true,
+ 'gherkin-document': true,
+ 'pickle': true
+}
+
+const paths = []
+while (args.length > 0) {
+ const arg = args.shift()
+ switch (arg) {
+ case '--no-source':
+ types['source'] = false;
+ break;
+
+ case '--no-ast':
+ types['gherkin-document'] = false;
+ break;
+
+ case '--no-pickles':
+ types['pickle'] = false;
+ break;
+
+ default:
+ paths.push(arg);
+ }
+}
+
+const ndjsonStream = new Stream.Transform({
+ objectMode: true,
+ transform: function (event, _, callback) {
+ this.push(JSON.stringify(event) + "\n")
+ callback()
+ }
+})
+ndjsonStream.pipe(process.stdout)
+
+function pipeEventsFor(paths, i, callback) {
+ const path = paths[i++]
+ if (!path) return callback()
+ const stream = eventStream(path)
+ stream.pipe(ndjsonStream, { end: false })
+ stream.on('end', () => pipeEventsFor(paths, i, callback))
+}
+
+function eventStream(path) {
+ const fileStream = fs.createReadStream(path, { encoding: 'utf-8' })
+ const eventStream = new EventStream(path, types)
+ fileStream.pipe(eventStream)
+ return eventStream
+}
+
+pipeEventsFor(paths, 0, () => ndjsonStream.end())
diff --git a/node_modules/gherkin/bin/gherkin-generate-tokens b/node_modules/gherkin/bin/gherkin-generate-tokens
new file mode 100755
index 00000000..ac8cdb0c
--- /dev/null
+++ b/node_modules/gherkin/bin/gherkin-generate-tokens
@@ -0,0 +1,16 @@
+#!/usr/bin/env node
+var fs = require('fs');
+var Gherkin = require('..');
+
+// We're not exposing this on Gherkin since it's just used for testing
+// By not doing this it doesn't get included in the browserify build
+var TokenFormatterBuilder = require('../lib/gherkin/token_formatter_builder');
+
+var parser = new Gherkin.Parser(new TokenFormatterBuilder());
+parser.stopAtFirstError = true;
+var matcher = new Gherkin.TokenMatcher();
+var files = process.argv.slice(2)
+files.forEach(function (file) {
+ var scanner = new Gherkin.TokenScanner(fs.readFileSync(file, 'UTF-8'));
+ process.stdout.write(parser.parse(scanner, matcher));
+});
diff --git a/node_modules/gherkin/dist/gherkin.js b/node_modules/gherkin/dist/gherkin.js
new file mode 100644
index 00000000..f9db4ad0
--- /dev/null
+++ b/node_modules/gherkin/dist/gherkin.js
@@ -0,0 +1,6650 @@
+/*
+The MIT License (MIT)
+
+Copyright (c) Cucumber Ltd, Gaspar Nagy, Björn Rasmusson, Peter Sergeant
+
+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.
+*/
+(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i 0 ? separatorToken.matchedText : undefined;
+ var lineTokens = node.getTokens('Other');
+ var content = lineTokens.map(function (t) {return t.matchedText}).join("\n");
+
+ var result = {
+ type: node.ruleType,
+ location: getLocation(separatorToken),
+ content: content
+ };
+ // conditionally add this like this (needed to make tests pass on node 0.10 as well as 4.0)
+ if(contentType) {
+ result.contentType = contentType;
+ }
+ return result;
+ case 'DataTable':
+ var rows = getTableRows(node);
+ return {
+ type: node.ruleType,
+ location: rows[0].location,
+ rows: rows,
+ }
+ case 'Background':
+ var backgroundLine = node.getToken('BackgroundLine');
+ var description = getDescription(node);
+ var steps = getSteps(node);
+
+ return {
+ type: node.ruleType,
+ location: getLocation(backgroundLine),
+ keyword: backgroundLine.matchedKeyword,
+ name: backgroundLine.matchedText,
+ description: description,
+ steps: steps
+ };
+ case 'Scenario_Definition':
+ var tags = getTags(node);
+ var scenarioNode = node.getSingle('Scenario');
+ if(scenarioNode) {
+ var scenarioLine = scenarioNode.getToken('ScenarioLine');
+ var description = getDescription(scenarioNode);
+ var steps = getSteps(scenarioNode);
+
+ return {
+ type: scenarioNode.ruleType,
+ tags: tags,
+ location: getLocation(scenarioLine),
+ keyword: scenarioLine.matchedKeyword,
+ name: scenarioLine.matchedText,
+ description: description,
+ steps: steps
+ };
+ } else {
+ var scenarioOutlineNode = node.getSingle('ScenarioOutline');
+ if(!scenarioOutlineNode) throw new Error('Internal grammar error');
+
+ var scenarioOutlineLine = scenarioOutlineNode.getToken('ScenarioOutlineLine');
+ var description = getDescription(scenarioOutlineNode);
+ var steps = getSteps(scenarioOutlineNode);
+ var examples = scenarioOutlineNode.getItems('Examples_Definition');
+
+ return {
+ type: scenarioOutlineNode.ruleType,
+ tags: tags,
+ location: getLocation(scenarioOutlineLine),
+ keyword: scenarioOutlineLine.matchedKeyword,
+ name: scenarioOutlineLine.matchedText,
+ description: description,
+ steps: steps,
+ examples: examples
+ };
+ }
+ case 'Examples_Definition':
+ var tags = getTags(node);
+ var examplesNode = node.getSingle('Examples');
+ var examplesLine = examplesNode.getToken('ExamplesLine');
+ var description = getDescription(examplesNode);
+ var exampleTable = examplesNode.getSingle('Examples_Table')
+
+ return {
+ type: examplesNode.ruleType,
+ tags: tags,
+ location: getLocation(examplesLine),
+ keyword: examplesLine.matchedKeyword,
+ name: examplesLine.matchedText,
+ description: description,
+ tableHeader: exampleTable != undefined ? exampleTable.tableHeader : undefined,
+ tableBody: exampleTable != undefined ? exampleTable.tableBody : undefined
+ };
+ case 'Examples_Table':
+ var rows = getTableRows(node)
+
+ return {
+ tableHeader: rows != undefined ? rows[0] : undefined,
+ tableBody: rows != undefined ? rows.slice(1) : undefined
+ };
+ case 'Description':
+ var lineTokens = node.getTokens('Other');
+ // Trim trailing empty lines
+ var end = lineTokens.length;
+ while (end > 0 && lineTokens[end-1].line.trimmedLineText === '') {
+ end--;
+ }
+ lineTokens = lineTokens.slice(0, end);
+
+ var description = lineTokens.map(function (token) { return token.matchedText}).join("\n");
+ return description;
+
+ case 'Feature':
+ var header = node.getSingle('Feature_Header');
+ if(!header) return null;
+ var tags = getTags(header);
+ var featureLine = header.getToken('FeatureLine');
+ if(!featureLine) return null;
+ var children = []
+ var background = node.getSingle('Background');
+ if(background) children.push(background);
+ children = children.concat(node.getItems('Scenario_Definition'));
+ var description = getDescription(header);
+ var language = featureLine.matchedGherkinDialect;
+
+ return {
+ type: node.ruleType,
+ tags: tags,
+ location: getLocation(featureLine),
+ language: language,
+ keyword: featureLine.matchedKeyword,
+ name: featureLine.matchedText,
+ description: description,
+ children: children,
+ };
+ case 'GherkinDocument':
+ var feature = node.getSingle('Feature');
+
+ return {
+ type: node.ruleType,
+ feature: feature,
+ comments: comments
+ };
+ default:
+ return node;
+ }
+ }
+
+};
+
+},{"./ast_node":3,"./errors":6}],3:[function(require,module,exports){
+function AstNode (ruleType) {
+ this.ruleType = ruleType;
+ this._subItems = {};
+}
+
+AstNode.prototype.add = function (ruleType, obj) {
+ var items = this._subItems[ruleType];
+ if(items === undefined) this._subItems[ruleType] = items = [];
+ items.push(obj);
+}
+
+AstNode.prototype.getSingle = function (ruleType) {
+ return (this._subItems[ruleType] || [])[0];
+}
+
+AstNode.prototype.getItems = function (ruleType) {
+ return this._subItems[ruleType] || [];
+}
+
+AstNode.prototype.getToken = function (tokenType) {
+ return this.getSingle(tokenType);
+}
+
+AstNode.prototype.getTokens = function (tokenType) {
+ return this._subItems[tokenType] || [];
+}
+
+module.exports = AstNode;
+
+},{}],4:[function(require,module,exports){
+// https://mathiasbynens.be/notes/javascript-unicode
+var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
+
+module.exports = function countSymbols(string) {
+ return string.replace(regexAstralSymbols, '_').length;
+}
+
+},{}],5:[function(require,module,exports){
+module.exports = require('./gherkin-languages.json');
+
+},{"./gherkin-languages.json":8}],6:[function(require,module,exports){
+var Errors = {};
+
+[
+ 'ParserException',
+ 'CompositeParserException',
+ 'UnexpectedTokenException',
+ 'UnexpectedEOFException',
+ 'AstBuilderException',
+ 'NoSuchLanguageException'
+].forEach(function (name) {
+
+ function ErrorProto (message) {
+ this.message = message || ('Unspecified ' + name);
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, arguments.callee);
+ }
+ }
+
+ ErrorProto.prototype = Object.create(Error.prototype);
+ ErrorProto.prototype.name = name;
+ ErrorProto.prototype.constructor = ErrorProto;
+ Errors[name] = ErrorProto;
+});
+
+Errors.CompositeParserException.create = function(errors) {
+ var message = "Parser errors:\n" + errors.map(function (e) { return e.message; }).join("\n");
+ var err = new Errors.CompositeParserException(message);
+ err.errors = errors;
+ return err;
+};
+
+Errors.UnexpectedTokenException.create = function(token, expectedTokenTypes, stateComment) {
+ var message = "expected: " + expectedTokenTypes.join(', ') + ", got '" + token.getTokenValue().trim() + "'";
+ var location = !token.location.column
+ ? {line: token.location.line, column: token.line.indent + 1 }
+ : token.location;
+ return createError(Errors.UnexpectedEOFException, message, location);
+};
+
+Errors.UnexpectedEOFException.create = function(token, expectedTokenTypes, stateComment) {
+ var message = "unexpected end of file, expected: " + expectedTokenTypes.join(', ');
+ return createError(Errors.UnexpectedTokenException, message, token.location);
+};
+
+Errors.AstBuilderException.create = function(message, location) {
+ return createError(Errors.AstBuilderException, message, location);
+};
+
+Errors.NoSuchLanguageException.create = function(language, location) {
+ var message = "Language not supported: " + language;
+ return createError(Errors.NoSuchLanguageException, message, location);
+};
+
+function createError(Ctor, message, location) {
+ var fullMessage = "(" + location.line + ":" + location.column + "): " + message;
+ var error = new Ctor(fullMessage);
+ error.location = location;
+ return error;
+}
+
+module.exports = Errors;
+
+},{}],7:[function(require,module,exports){
+var Parser = require('./parser')
+var Compiler = require('./pickles/compiler')
+
+var compiler = new Compiler()
+var parser = new Parser()
+parser.stopAtFirstError = false
+
+function generateEvents(data, uri, types, language) {
+ types = Object.assign({
+ 'source': true,
+ 'gherkin-document': true,
+ 'pickle': true
+ }, types || {})
+
+ result = []
+
+ try {
+ if (types['source']) {
+ result.push({
+ type: 'source',
+ uri: uri,
+ data: data,
+ media: {
+ encoding: 'utf-8',
+ type: 'text/x.cucumber.gherkin+plain'
+ }
+ })
+ }
+
+ if (!types['gherkin-document'] && !types['pickle'])
+ return result
+
+ var gherkinDocument = parser.parse(data, language)
+
+ if (types['gherkin-document']) {
+ result.push({
+ type: 'gherkin-document',
+ uri: uri,
+ document: gherkinDocument
+ })
+ }
+
+ if (types['pickle']) {
+ var pickles = compiler.compile(gherkinDocument)
+ for (var p in pickles) {
+ result.push({
+ type: 'pickle',
+ uri: uri,
+ pickle: pickles[p]
+ })
+ }
+ }
+ } catch (err) {
+ var errors = err.errors || [err]
+ for (var e in errors) {
+ result.push({
+ type: "attachment",
+ source: {
+ uri: uri,
+ start: {
+ line: errors[e].location.line,
+ column: errors[e].location.column
+ }
+ },
+ data: errors[e].message,
+ media: {
+ encoding: "utf-8",
+ type: "text/x.cucumber.stacktrace+plain"
+ }
+ })
+ }
+ }
+ return result
+}
+
+module.exports = generateEvents
+
+},{"./parser":10,"./pickles/compiler":11}],8:[function(require,module,exports){
+module.exports={
+ "af": {
+ "and": [
+ "* ",
+ "En "
+ ],
+ "background": [
+ "Agtergrond"
+ ],
+ "but": [
+ "* ",
+ "Maar "
+ ],
+ "examples": [
+ "Voorbeelde"
+ ],
+ "feature": [
+ "Funksie",
+ "Besigheid Behoefte",
+ "Vermoë"
+ ],
+ "given": [
+ "* ",
+ "Gegewe "
+ ],
+ "name": "Afrikaans",
+ "native": "Afrikaans",
+ "scenario": [
+ "Situasie"
+ ],
+ "scenarioOutline": [
+ "Situasie Uiteensetting"
+ ],
+ "then": [
+ "* ",
+ "Dan "
+ ],
+ "when": [
+ "* ",
+ "Wanneer "
+ ]
+ },
+ "am": {
+ "and": [
+ "* ",
+ "Եվ "
+ ],
+ "background": [
+ "Կոնտեքստ"
+ ],
+ "but": [
+ "* ",
+ "Բայց "
+ ],
+ "examples": [
+ "Օրինակներ"
+ ],
+ "feature": [
+ "Ֆունկցիոնալություն",
+ "Հատկություն"
+ ],
+ "given": [
+ "* ",
+ "Դիցուք "
+ ],
+ "name": "Armenian",
+ "native": "հայերեն",
+ "scenario": [
+ "Սցենար"
+ ],
+ "scenarioOutline": [
+ "Սցենարի կառուցվացքը"
+ ],
+ "then": [
+ "* ",
+ "Ապա "
+ ],
+ "when": [
+ "* ",
+ "Եթե ",
+ "Երբ "
+ ]
+ },
+ "an": {
+ "and": [
+ "* ",
+ "Y ",
+ "E "
+ ],
+ "background": [
+ "Antecedents"
+ ],
+ "but": [
+ "* ",
+ "Pero "
+ ],
+ "examples": [
+ "Eixemplos"
+ ],
+ "feature": [
+ "Caracteristica"
+ ],
+ "given": [
+ "* ",
+ "Dau ",
+ "Dada ",
+ "Daus ",
+ "Dadas "
+ ],
+ "name": "Aragonese",
+ "native": "Aragonés",
+ "scenario": [
+ "Caso"
+ ],
+ "scenarioOutline": [
+ "Esquema del caso"
+ ],
+ "then": [
+ "* ",
+ "Alavez ",
+ "Allora ",
+ "Antonces "
+ ],
+ "when": [
+ "* ",
+ "Cuan "
+ ]
+ },
+ "ar": {
+ "and": [
+ "* ",
+ "و "
+ ],
+ "background": [
+ "الخلفية"
+ ],
+ "but": [
+ "* ",
+ "لكن "
+ ],
+ "examples": [
+ "امثلة"
+ ],
+ "feature": [
+ "خاصية"
+ ],
+ "given": [
+ "* ",
+ "بفرض "
+ ],
+ "name": "Arabic",
+ "native": "العربية",
+ "scenario": [
+ "سيناريو"
+ ],
+ "scenarioOutline": [
+ "سيناريو مخطط"
+ ],
+ "then": [
+ "* ",
+ "اذاً ",
+ "ثم "
+ ],
+ "when": [
+ "* ",
+ "متى ",
+ "عندما "
+ ]
+ },
+ "ast": {
+ "and": [
+ "* ",
+ "Y ",
+ "Ya "
+ ],
+ "background": [
+ "Antecedentes"
+ ],
+ "but": [
+ "* ",
+ "Peru "
+ ],
+ "examples": [
+ "Exemplos"
+ ],
+ "feature": [
+ "Carauterística"
+ ],
+ "given": [
+ "* ",
+ "Dáu ",
+ "Dada ",
+ "Daos ",
+ "Daes "
+ ],
+ "name": "Asturian",
+ "native": "asturianu",
+ "scenario": [
+ "Casu"
+ ],
+ "scenarioOutline": [
+ "Esbozu del casu"
+ ],
+ "then": [
+ "* ",
+ "Entós "
+ ],
+ "when": [
+ "* ",
+ "Cuando "
+ ]
+ },
+ "az": {
+ "and": [
+ "* ",
+ "Və ",
+ "Həm "
+ ],
+ "background": [
+ "Keçmiş",
+ "Kontekst"
+ ],
+ "but": [
+ "* ",
+ "Amma ",
+ "Ancaq "
+ ],
+ "examples": [
+ "Nümunələr"
+ ],
+ "feature": [
+ "Özəllik"
+ ],
+ "given": [
+ "* ",
+ "Tutaq ki ",
+ "Verilir "
+ ],
+ "name": "Azerbaijani",
+ "native": "Azərbaycanca",
+ "scenario": [
+ "Ssenari"
+ ],
+ "scenarioOutline": [
+ "Ssenarinin strukturu"
+ ],
+ "then": [
+ "* ",
+ "O halda "
+ ],
+ "when": [
+ "* ",
+ "Əgər ",
+ "Nə vaxt ki "
+ ]
+ },
+ "bg": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Предистория"
+ ],
+ "but": [
+ "* ",
+ "Но "
+ ],
+ "examples": [
+ "Примери"
+ ],
+ "feature": [
+ "Функционалност"
+ ],
+ "given": [
+ "* ",
+ "Дадено "
+ ],
+ "name": "Bulgarian",
+ "native": "български",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Рамка на сценарий"
+ ],
+ "then": [
+ "* ",
+ "То "
+ ],
+ "when": [
+ "* ",
+ "Когато "
+ ]
+ },
+ "bm": {
+ "and": [
+ "* ",
+ "Dan "
+ ],
+ "background": [
+ "Latar Belakang"
+ ],
+ "but": [
+ "* ",
+ "Tetapi ",
+ "Tapi "
+ ],
+ "examples": [
+ "Contoh"
+ ],
+ "feature": [
+ "Fungsi"
+ ],
+ "given": [
+ "* ",
+ "Diberi ",
+ "Bagi "
+ ],
+ "name": "Malay",
+ "native": "Bahasa Melayu",
+ "scenario": [
+ "Senario",
+ "Situasi",
+ "Keadaan"
+ ],
+ "scenarioOutline": [
+ "Kerangka Senario",
+ "Kerangka Situasi",
+ "Kerangka Keadaan",
+ "Garis Panduan Senario"
+ ],
+ "then": [
+ "* ",
+ "Maka ",
+ "Kemudian "
+ ],
+ "when": [
+ "* ",
+ "Apabila "
+ ]
+ },
+ "bs": {
+ "and": [
+ "* ",
+ "I ",
+ "A "
+ ],
+ "background": [
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primjeri"
+ ],
+ "feature": [
+ "Karakteristika"
+ ],
+ "given": [
+ "* ",
+ "Dato "
+ ],
+ "name": "Bosnian",
+ "native": "Bosanski",
+ "scenario": [
+ "Scenariju",
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenariju-obris",
+ "Scenario-outline"
+ ],
+ "then": [
+ "* ",
+ "Zatim "
+ ],
+ "when": [
+ "* ",
+ "Kada "
+ ]
+ },
+ "ca": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Rerefons",
+ "Antecedents"
+ ],
+ "but": [
+ "* ",
+ "Però "
+ ],
+ "examples": [
+ "Exemples"
+ ],
+ "feature": [
+ "Característica",
+ "Funcionalitat"
+ ],
+ "given": [
+ "* ",
+ "Donat ",
+ "Donada ",
+ "Atès ",
+ "Atesa "
+ ],
+ "name": "Catalan",
+ "native": "català",
+ "scenario": [
+ "Escenari"
+ ],
+ "scenarioOutline": [
+ "Esquema de l'escenari"
+ ],
+ "then": [
+ "* ",
+ "Aleshores ",
+ "Cal "
+ ],
+ "when": [
+ "* ",
+ "Quan "
+ ]
+ },
+ "cs": {
+ "and": [
+ "* ",
+ "A také ",
+ "A "
+ ],
+ "background": [
+ "Pozadí",
+ "Kontext"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Příklady"
+ ],
+ "feature": [
+ "Požadavek"
+ ],
+ "given": [
+ "* ",
+ "Pokud ",
+ "Za předpokladu "
+ ],
+ "name": "Czech",
+ "native": "Česky",
+ "scenario": [
+ "Scénář"
+ ],
+ "scenarioOutline": [
+ "Náčrt Scénáře",
+ "Osnova scénáře"
+ ],
+ "then": [
+ "* ",
+ "Pak "
+ ],
+ "when": [
+ "* ",
+ "Když "
+ ]
+ },
+ "cy-GB": {
+ "and": [
+ "* ",
+ "A "
+ ],
+ "background": [
+ "Cefndir"
+ ],
+ "but": [
+ "* ",
+ "Ond "
+ ],
+ "examples": [
+ "Enghreifftiau"
+ ],
+ "feature": [
+ "Arwedd"
+ ],
+ "given": [
+ "* ",
+ "Anrhegedig a "
+ ],
+ "name": "Welsh",
+ "native": "Cymraeg",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenario Amlinellol"
+ ],
+ "then": [
+ "* ",
+ "Yna "
+ ],
+ "when": [
+ "* ",
+ "Pryd "
+ ]
+ },
+ "da": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Baggrund"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Eksempler"
+ ],
+ "feature": [
+ "Egenskab"
+ ],
+ "given": [
+ "* ",
+ "Givet "
+ ],
+ "name": "Danish",
+ "native": "dansk",
+ "scenario": [
+ "Scenarie"
+ ],
+ "scenarioOutline": [
+ "Abstrakt Scenario"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "Når "
+ ]
+ },
+ "de": {
+ "and": [
+ "* ",
+ "Und "
+ ],
+ "background": [
+ "Grundlage"
+ ],
+ "but": [
+ "* ",
+ "Aber "
+ ],
+ "examples": [
+ "Beispiele"
+ ],
+ "feature": [
+ "Funktionalität"
+ ],
+ "given": [
+ "* ",
+ "Angenommen ",
+ "Gegeben sei ",
+ "Gegeben seien "
+ ],
+ "name": "German",
+ "native": "Deutsch",
+ "scenario": [
+ "Szenario"
+ ],
+ "scenarioOutline": [
+ "Szenariogrundriss"
+ ],
+ "then": [
+ "* ",
+ "Dann "
+ ],
+ "when": [
+ "* ",
+ "Wenn "
+ ]
+ },
+ "el": {
+ "and": [
+ "* ",
+ "Και "
+ ],
+ "background": [
+ "Υπόβαθρο"
+ ],
+ "but": [
+ "* ",
+ "Αλλά "
+ ],
+ "examples": [
+ "Παραδείγματα",
+ "Σενάρια"
+ ],
+ "feature": [
+ "Δυνατότητα",
+ "Λειτουργία"
+ ],
+ "given": [
+ "* ",
+ "Δεδομένου "
+ ],
+ "name": "Greek",
+ "native": "Ελληνικά",
+ "scenario": [
+ "Σενάριο"
+ ],
+ "scenarioOutline": [
+ "Περιγραφή Σεναρίου",
+ "Περίγραμμα Σεναρίου"
+ ],
+ "then": [
+ "* ",
+ "Τότε "
+ ],
+ "when": [
+ "* ",
+ "Όταν "
+ ]
+ },
+ "em": {
+ "and": [
+ "* ",
+ "😂"
+ ],
+ "background": [
+ "💤"
+ ],
+ "but": [
+ "* ",
+ "😔"
+ ],
+ "examples": [
+ "📓"
+ ],
+ "feature": [
+ "📚"
+ ],
+ "given": [
+ "* ",
+ "😐"
+ ],
+ "name": "Emoji",
+ "native": "😀",
+ "scenario": [
+ "📕"
+ ],
+ "scenarioOutline": [
+ "📖"
+ ],
+ "then": [
+ "* ",
+ "🙏"
+ ],
+ "when": [
+ "* ",
+ "🎬"
+ ]
+ },
+ "en": {
+ "and": [
+ "* ",
+ "And "
+ ],
+ "background": [
+ "Background"
+ ],
+ "but": [
+ "* ",
+ "But "
+ ],
+ "examples": [
+ "Examples",
+ "Scenarios"
+ ],
+ "feature": [
+ "Feature",
+ "Business Need",
+ "Ability"
+ ],
+ "given": [
+ "* ",
+ "Given "
+ ],
+ "name": "English",
+ "native": "English",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenario Outline",
+ "Scenario Template"
+ ],
+ "then": [
+ "* ",
+ "Then "
+ ],
+ "when": [
+ "* ",
+ "When "
+ ]
+ },
+ "en-Scouse": {
+ "and": [
+ "* ",
+ "An "
+ ],
+ "background": [
+ "Dis is what went down"
+ ],
+ "but": [
+ "* ",
+ "Buh "
+ ],
+ "examples": [
+ "Examples"
+ ],
+ "feature": [
+ "Feature"
+ ],
+ "given": [
+ "* ",
+ "Givun ",
+ "Youse know when youse got "
+ ],
+ "name": "Scouse",
+ "native": "Scouse",
+ "scenario": [
+ "The thing of it is"
+ ],
+ "scenarioOutline": [
+ "Wharrimean is"
+ ],
+ "then": [
+ "* ",
+ "Dun ",
+ "Den youse gotta "
+ ],
+ "when": [
+ "* ",
+ "Wun ",
+ "Youse know like when "
+ ]
+ },
+ "en-au": {
+ "and": [
+ "* ",
+ "Too right "
+ ],
+ "background": [
+ "First off"
+ ],
+ "but": [
+ "* ",
+ "Yeah nah "
+ ],
+ "examples": [
+ "You'll wanna"
+ ],
+ "feature": [
+ "Pretty much"
+ ],
+ "given": [
+ "* ",
+ "Y'know "
+ ],
+ "name": "Australian",
+ "native": "Australian",
+ "scenario": [
+ "Awww, look mate"
+ ],
+ "scenarioOutline": [
+ "Reckon it's like"
+ ],
+ "then": [
+ "* ",
+ "But at the end of the day I reckon "
+ ],
+ "when": [
+ "* ",
+ "It's just unbelievable "
+ ]
+ },
+ "en-lol": {
+ "and": [
+ "* ",
+ "AN "
+ ],
+ "background": [
+ "B4"
+ ],
+ "but": [
+ "* ",
+ "BUT "
+ ],
+ "examples": [
+ "EXAMPLZ"
+ ],
+ "feature": [
+ "OH HAI"
+ ],
+ "given": [
+ "* ",
+ "I CAN HAZ "
+ ],
+ "name": "LOLCAT",
+ "native": "LOLCAT",
+ "scenario": [
+ "MISHUN"
+ ],
+ "scenarioOutline": [
+ "MISHUN SRSLY"
+ ],
+ "then": [
+ "* ",
+ "DEN "
+ ],
+ "when": [
+ "* ",
+ "WEN "
+ ]
+ },
+ "en-old": {
+ "and": [
+ "* ",
+ "Ond ",
+ "7 "
+ ],
+ "background": [
+ "Aer",
+ "Ær"
+ ],
+ "but": [
+ "* ",
+ "Ac "
+ ],
+ "examples": [
+ "Se the",
+ "Se þe",
+ "Se ðe"
+ ],
+ "feature": [
+ "Hwaet",
+ "Hwæt"
+ ],
+ "given": [
+ "* ",
+ "Thurh ",
+ "Þurh ",
+ "Ðurh "
+ ],
+ "name": "Old English",
+ "native": "Englisc",
+ "scenario": [
+ "Swa"
+ ],
+ "scenarioOutline": [
+ "Swa hwaer swa",
+ "Swa hwær swa"
+ ],
+ "then": [
+ "* ",
+ "Tha ",
+ "Þa ",
+ "Ða ",
+ "Tha the ",
+ "Þa þe ",
+ "Ða ðe "
+ ],
+ "when": [
+ "* ",
+ "Tha ",
+ "Þa ",
+ "Ða "
+ ]
+ },
+ "en-pirate": {
+ "and": [
+ "* ",
+ "Aye "
+ ],
+ "background": [
+ "Yo-ho-ho"
+ ],
+ "but": [
+ "* ",
+ "Avast! "
+ ],
+ "examples": [
+ "Dead men tell no tales"
+ ],
+ "feature": [
+ "Ahoy matey!"
+ ],
+ "given": [
+ "* ",
+ "Gangway! "
+ ],
+ "name": "Pirate",
+ "native": "Pirate",
+ "scenario": [
+ "Heave to"
+ ],
+ "scenarioOutline": [
+ "Shiver me timbers"
+ ],
+ "then": [
+ "* ",
+ "Let go and haul "
+ ],
+ "when": [
+ "* ",
+ "Blimey! "
+ ]
+ },
+ "eo": {
+ "and": [
+ "* ",
+ "Kaj "
+ ],
+ "background": [
+ "Fono"
+ ],
+ "but": [
+ "* ",
+ "Sed "
+ ],
+ "examples": [
+ "Ekzemploj"
+ ],
+ "feature": [
+ "Trajto"
+ ],
+ "given": [
+ "* ",
+ "Donitaĵo ",
+ "Komence "
+ ],
+ "name": "Esperanto",
+ "native": "Esperanto",
+ "scenario": [
+ "Scenaro",
+ "Kazo"
+ ],
+ "scenarioOutline": [
+ "Konturo de la scenaro",
+ "Skizo",
+ "Kazo-skizo"
+ ],
+ "then": [
+ "* ",
+ "Do "
+ ],
+ "when": [
+ "* ",
+ "Se "
+ ]
+ },
+ "es": {
+ "and": [
+ "* ",
+ "Y ",
+ "E "
+ ],
+ "background": [
+ "Antecedentes"
+ ],
+ "but": [
+ "* ",
+ "Pero "
+ ],
+ "examples": [
+ "Ejemplos"
+ ],
+ "feature": [
+ "Característica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Spanish",
+ "native": "español",
+ "scenario": [
+ "Escenario"
+ ],
+ "scenarioOutline": [
+ "Esquema del escenario"
+ ],
+ "then": [
+ "* ",
+ "Entonces "
+ ],
+ "when": [
+ "* ",
+ "Cuando "
+ ]
+ },
+ "et": {
+ "and": [
+ "* ",
+ "Ja "
+ ],
+ "background": [
+ "Taust"
+ ],
+ "but": [
+ "* ",
+ "Kuid "
+ ],
+ "examples": [
+ "Juhtumid"
+ ],
+ "feature": [
+ "Omadus"
+ ],
+ "given": [
+ "* ",
+ "Eeldades "
+ ],
+ "name": "Estonian",
+ "native": "eesti keel",
+ "scenario": [
+ "Stsenaarium"
+ ],
+ "scenarioOutline": [
+ "Raamstsenaarium"
+ ],
+ "then": [
+ "* ",
+ "Siis "
+ ],
+ "when": [
+ "* ",
+ "Kui "
+ ]
+ },
+ "fa": {
+ "and": [
+ "* ",
+ "و "
+ ],
+ "background": [
+ "زمینه"
+ ],
+ "but": [
+ "* ",
+ "اما "
+ ],
+ "examples": [
+ "نمونه ها"
+ ],
+ "feature": [
+ "وِیژگی"
+ ],
+ "given": [
+ "* ",
+ "با فرض "
+ ],
+ "name": "Persian",
+ "native": "فارسی",
+ "scenario": [
+ "سناریو"
+ ],
+ "scenarioOutline": [
+ "الگوی سناریو"
+ ],
+ "then": [
+ "* ",
+ "آنگاه "
+ ],
+ "when": [
+ "* ",
+ "هنگامی "
+ ]
+ },
+ "fi": {
+ "and": [
+ "* ",
+ "Ja "
+ ],
+ "background": [
+ "Tausta"
+ ],
+ "but": [
+ "* ",
+ "Mutta "
+ ],
+ "examples": [
+ "Tapaukset"
+ ],
+ "feature": [
+ "Ominaisuus"
+ ],
+ "given": [
+ "* ",
+ "Oletetaan "
+ ],
+ "name": "Finnish",
+ "native": "suomi",
+ "scenario": [
+ "Tapaus"
+ ],
+ "scenarioOutline": [
+ "Tapausaihio"
+ ],
+ "then": [
+ "* ",
+ "Niin "
+ ],
+ "when": [
+ "* ",
+ "Kun "
+ ]
+ },
+ "fr": {
+ "and": [
+ "* ",
+ "Et que ",
+ "Et qu'",
+ "Et "
+ ],
+ "background": [
+ "Contexte"
+ ],
+ "but": [
+ "* ",
+ "Mais que ",
+ "Mais qu'",
+ "Mais "
+ ],
+ "examples": [
+ "Exemples"
+ ],
+ "feature": [
+ "Fonctionnalité"
+ ],
+ "given": [
+ "* ",
+ "Soit ",
+ "Etant donné que ",
+ "Etant donné qu'",
+ "Etant donné ",
+ "Etant donnée ",
+ "Etant donnés ",
+ "Etant données ",
+ "Étant donné que ",
+ "Étant donné qu'",
+ "Étant donné ",
+ "Étant donnée ",
+ "Étant donnés ",
+ "Étant données "
+ ],
+ "name": "French",
+ "native": "français",
+ "scenario": [
+ "Scénario"
+ ],
+ "scenarioOutline": [
+ "Plan du scénario",
+ "Plan du Scénario"
+ ],
+ "then": [
+ "* ",
+ "Alors "
+ ],
+ "when": [
+ "* ",
+ "Quand ",
+ "Lorsque ",
+ "Lorsqu'"
+ ]
+ },
+ "ga": {
+ "and": [
+ "* ",
+ "Agus"
+ ],
+ "background": [
+ "Cúlra"
+ ],
+ "but": [
+ "* ",
+ "Ach"
+ ],
+ "examples": [
+ "Samplaí"
+ ],
+ "feature": [
+ "Gné"
+ ],
+ "given": [
+ "* ",
+ "Cuir i gcás go",
+ "Cuir i gcás nach",
+ "Cuir i gcás gur",
+ "Cuir i gcás nár"
+ ],
+ "name": "Irish",
+ "native": "Gaeilge",
+ "scenario": [
+ "Cás"
+ ],
+ "scenarioOutline": [
+ "Cás Achomair"
+ ],
+ "then": [
+ "* ",
+ "Ansin"
+ ],
+ "when": [
+ "* ",
+ "Nuair a",
+ "Nuair nach",
+ "Nuair ba",
+ "Nuair nár"
+ ]
+ },
+ "gj": {
+ "and": [
+ "* ",
+ "અને "
+ ],
+ "background": [
+ "બેકગ્રાઉન્ડ"
+ ],
+ "but": [
+ "* ",
+ "પણ "
+ ],
+ "examples": [
+ "ઉદાહરણો"
+ ],
+ "feature": [
+ "લક્ષણ",
+ "વ્યાપાર જરૂર",
+ "ક્ષમતા"
+ ],
+ "given": [
+ "* ",
+ "આપેલ છે "
+ ],
+ "name": "Gujarati",
+ "native": "ગુજરાતી",
+ "scenario": [
+ "સ્થિતિ"
+ ],
+ "scenarioOutline": [
+ "પરિદ્દશ્ય રૂપરેખા",
+ "પરિદ્દશ્ય ઢાંચો"
+ ],
+ "then": [
+ "* ",
+ "પછી "
+ ],
+ "when": [
+ "* ",
+ "ક્યારે "
+ ]
+ },
+ "gl": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contexto"
+ ],
+ "but": [
+ "* ",
+ "Mais ",
+ "Pero "
+ ],
+ "examples": [
+ "Exemplos"
+ ],
+ "feature": [
+ "Característica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Galician",
+ "native": "galego",
+ "scenario": [
+ "Escenario"
+ ],
+ "scenarioOutline": [
+ "Esbozo do escenario"
+ ],
+ "then": [
+ "* ",
+ "Entón ",
+ "Logo "
+ ],
+ "when": [
+ "* ",
+ "Cando "
+ ]
+ },
+ "he": {
+ "and": [
+ "* ",
+ "וגם "
+ ],
+ "background": [
+ "רקע"
+ ],
+ "but": [
+ "* ",
+ "אבל "
+ ],
+ "examples": [
+ "דוגמאות"
+ ],
+ "feature": [
+ "תכונה"
+ ],
+ "given": [
+ "* ",
+ "בהינתן "
+ ],
+ "name": "Hebrew",
+ "native": "עברית",
+ "scenario": [
+ "תרחיש"
+ ],
+ "scenarioOutline": [
+ "תבנית תרחיש"
+ ],
+ "then": [
+ "* ",
+ "אז ",
+ "אזי "
+ ],
+ "when": [
+ "* ",
+ "כאשר "
+ ]
+ },
+ "hi": {
+ "and": [
+ "* ",
+ "और ",
+ "तथा "
+ ],
+ "background": [
+ "पृष्ठभूमि"
+ ],
+ "but": [
+ "* ",
+ "पर ",
+ "परन्तु ",
+ "किन्तु "
+ ],
+ "examples": [
+ "उदाहरण"
+ ],
+ "feature": [
+ "रूप लेख"
+ ],
+ "given": [
+ "* ",
+ "अगर ",
+ "यदि ",
+ "चूंकि "
+ ],
+ "name": "Hindi",
+ "native": "हिंदी",
+ "scenario": [
+ "परिदृश्य"
+ ],
+ "scenarioOutline": [
+ "परिदृश्य रूपरेखा"
+ ],
+ "then": [
+ "* ",
+ "तब ",
+ "तदा "
+ ],
+ "when": [
+ "* ",
+ "जब ",
+ "कदा "
+ ]
+ },
+ "hr": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primjeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Osobina",
+ "Mogućnost",
+ "Mogucnost"
+ ],
+ "given": [
+ "* ",
+ "Zadan ",
+ "Zadani ",
+ "Zadano "
+ ],
+ "name": "Croatian",
+ "native": "hrvatski",
+ "scenario": [
+ "Scenarij"
+ ],
+ "scenarioOutline": [
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Onda "
+ ],
+ "when": [
+ "* ",
+ "Kada ",
+ "Kad "
+ ]
+ },
+ "ht": {
+ "and": [
+ "* ",
+ "Ak ",
+ "Epi ",
+ "E "
+ ],
+ "background": [
+ "Kontèks",
+ "Istorik"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Egzanp"
+ ],
+ "feature": [
+ "Karakteristik",
+ "Mak",
+ "Fonksyonalite"
+ ],
+ "given": [
+ "* ",
+ "Sipoze ",
+ "Sipoze ke ",
+ "Sipoze Ke "
+ ],
+ "name": "Creole",
+ "native": "kreyòl",
+ "scenario": [
+ "Senaryo"
+ ],
+ "scenarioOutline": [
+ "Plan senaryo",
+ "Plan Senaryo",
+ "Senaryo deskripsyon",
+ "Senaryo Deskripsyon",
+ "Dyagram senaryo",
+ "Dyagram Senaryo"
+ ],
+ "then": [
+ "* ",
+ "Lè sa a ",
+ "Le sa a "
+ ],
+ "when": [
+ "* ",
+ "Lè ",
+ "Le "
+ ]
+ },
+ "hu": {
+ "and": [
+ "* ",
+ "És "
+ ],
+ "background": [
+ "Háttér"
+ ],
+ "but": [
+ "* ",
+ "De "
+ ],
+ "examples": [
+ "Példák"
+ ],
+ "feature": [
+ "Jellemző"
+ ],
+ "given": [
+ "* ",
+ "Amennyiben ",
+ "Adott "
+ ],
+ "name": "Hungarian",
+ "native": "magyar",
+ "scenario": [
+ "Forgatókönyv"
+ ],
+ "scenarioOutline": [
+ "Forgatókönyv vázlat"
+ ],
+ "then": [
+ "* ",
+ "Akkor "
+ ],
+ "when": [
+ "* ",
+ "Majd ",
+ "Ha ",
+ "Amikor "
+ ]
+ },
+ "id": {
+ "and": [
+ "* ",
+ "Dan "
+ ],
+ "background": [
+ "Dasar"
+ ],
+ "but": [
+ "* ",
+ "Tapi "
+ ],
+ "examples": [
+ "Contoh"
+ ],
+ "feature": [
+ "Fitur"
+ ],
+ "given": [
+ "* ",
+ "Dengan "
+ ],
+ "name": "Indonesian",
+ "native": "Bahasa Indonesia",
+ "scenario": [
+ "Skenario"
+ ],
+ "scenarioOutline": [
+ "Skenario konsep"
+ ],
+ "then": [
+ "* ",
+ "Maka "
+ ],
+ "when": [
+ "* ",
+ "Ketika "
+ ]
+ },
+ "is": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Bakgrunnur"
+ ],
+ "but": [
+ "* ",
+ "En "
+ ],
+ "examples": [
+ "Dæmi",
+ "Atburðarásir"
+ ],
+ "feature": [
+ "Eiginleiki"
+ ],
+ "given": [
+ "* ",
+ "Ef "
+ ],
+ "name": "Icelandic",
+ "native": "Íslenska",
+ "scenario": [
+ "Atburðarás"
+ ],
+ "scenarioOutline": [
+ "Lýsing Atburðarásar",
+ "Lýsing Dæma"
+ ],
+ "then": [
+ "* ",
+ "Þá "
+ ],
+ "when": [
+ "* ",
+ "Þegar "
+ ]
+ },
+ "it": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contesto"
+ ],
+ "but": [
+ "* ",
+ "Ma "
+ ],
+ "examples": [
+ "Esempi"
+ ],
+ "feature": [
+ "Funzionalità"
+ ],
+ "given": [
+ "* ",
+ "Dato ",
+ "Data ",
+ "Dati ",
+ "Date "
+ ],
+ "name": "Italian",
+ "native": "italiano",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Schema dello scenario"
+ ],
+ "then": [
+ "* ",
+ "Allora "
+ ],
+ "when": [
+ "* ",
+ "Quando "
+ ]
+ },
+ "ja": {
+ "and": [
+ "* ",
+ "かつ"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "しかし",
+ "但し",
+ "ただし"
+ ],
+ "examples": [
+ "例",
+ "サンプル"
+ ],
+ "feature": [
+ "フィーチャ",
+ "機能"
+ ],
+ "given": [
+ "* ",
+ "前提"
+ ],
+ "name": "Japanese",
+ "native": "日本語",
+ "scenario": [
+ "シナリオ"
+ ],
+ "scenarioOutline": [
+ "シナリオアウトライン",
+ "シナリオテンプレート",
+ "テンプレ",
+ "シナリオテンプレ"
+ ],
+ "then": [
+ "* ",
+ "ならば"
+ ],
+ "when": [
+ "* ",
+ "もし"
+ ]
+ },
+ "jv": {
+ "and": [
+ "* ",
+ "Lan "
+ ],
+ "background": [
+ "Dasar"
+ ],
+ "but": [
+ "* ",
+ "Tapi ",
+ "Nanging ",
+ "Ananging "
+ ],
+ "examples": [
+ "Conto",
+ "Contone"
+ ],
+ "feature": [
+ "Fitur"
+ ],
+ "given": [
+ "* ",
+ "Nalika ",
+ "Nalikaning "
+ ],
+ "name": "Javanese",
+ "native": "Basa Jawa",
+ "scenario": [
+ "Skenario"
+ ],
+ "scenarioOutline": [
+ "Konsep skenario"
+ ],
+ "then": [
+ "* ",
+ "Njuk ",
+ "Banjur "
+ ],
+ "when": [
+ "* ",
+ "Manawa ",
+ "Menawa "
+ ]
+ },
+ "ka": {
+ "and": [
+ "* ",
+ "და"
+ ],
+ "background": [
+ "კონტექსტი"
+ ],
+ "but": [
+ "* ",
+ "მაგრამ"
+ ],
+ "examples": [
+ "მაგალითები"
+ ],
+ "feature": [
+ "თვისება"
+ ],
+ "given": [
+ "* ",
+ "მოცემული"
+ ],
+ "name": "Georgian",
+ "native": "ქართველი",
+ "scenario": [
+ "სცენარის"
+ ],
+ "scenarioOutline": [
+ "სცენარის ნიმუში"
+ ],
+ "then": [
+ "* ",
+ "მაშინ"
+ ],
+ "when": [
+ "* ",
+ "როდესაც"
+ ]
+ },
+ "kn": {
+ "and": [
+ "* ",
+ "ಮತ್ತು "
+ ],
+ "background": [
+ "ಹಿನ್ನೆಲೆ"
+ ],
+ "but": [
+ "* ",
+ "ಆದರೆ "
+ ],
+ "examples": [
+ "ಉದಾಹರಣೆಗಳು"
+ ],
+ "feature": [
+ "ಹೆಚ್ಚಳ"
+ ],
+ "given": [
+ "* ",
+ "ನೀಡಿದ "
+ ],
+ "name": "Kannada",
+ "native": "ಕನ್ನಡ",
+ "scenario": [
+ "ಕಥಾಸಾರಾಂಶ"
+ ],
+ "scenarioOutline": [
+ "ವಿವರಣೆ"
+ ],
+ "then": [
+ "* ",
+ "ನಂತರ "
+ ],
+ "when": [
+ "* ",
+ "ಸ್ಥಿತಿಯನ್ನು "
+ ]
+ },
+ "ko": {
+ "and": [
+ "* ",
+ "그리고"
+ ],
+ "background": [
+ "배경"
+ ],
+ "but": [
+ "* ",
+ "하지만",
+ "단"
+ ],
+ "examples": [
+ "예"
+ ],
+ "feature": [
+ "기능"
+ ],
+ "given": [
+ "* ",
+ "조건",
+ "먼저"
+ ],
+ "name": "Korean",
+ "native": "한국어",
+ "scenario": [
+ "시나리오"
+ ],
+ "scenarioOutline": [
+ "시나리오 개요"
+ ],
+ "then": [
+ "* ",
+ "그러면"
+ ],
+ "when": [
+ "* ",
+ "만일",
+ "만약"
+ ]
+ },
+ "lt": {
+ "and": [
+ "* ",
+ "Ir "
+ ],
+ "background": [
+ "Kontekstas"
+ ],
+ "but": [
+ "* ",
+ "Bet "
+ ],
+ "examples": [
+ "Pavyzdžiai",
+ "Scenarijai",
+ "Variantai"
+ ],
+ "feature": [
+ "Savybė"
+ ],
+ "given": [
+ "* ",
+ "Duota "
+ ],
+ "name": "Lithuanian",
+ "native": "lietuvių kalba",
+ "scenario": [
+ "Scenarijus"
+ ],
+ "scenarioOutline": [
+ "Scenarijaus šablonas"
+ ],
+ "then": [
+ "* ",
+ "Tada "
+ ],
+ "when": [
+ "* ",
+ "Kai "
+ ]
+ },
+ "lu": {
+ "and": [
+ "* ",
+ "an ",
+ "a "
+ ],
+ "background": [
+ "Hannergrond"
+ ],
+ "but": [
+ "* ",
+ "awer ",
+ "mä "
+ ],
+ "examples": [
+ "Beispiller"
+ ],
+ "feature": [
+ "Funktionalitéit"
+ ],
+ "given": [
+ "* ",
+ "ugeholl "
+ ],
+ "name": "Luxemburgish",
+ "native": "Lëtzebuergesch",
+ "scenario": [
+ "Szenario"
+ ],
+ "scenarioOutline": [
+ "Plang vum Szenario"
+ ],
+ "then": [
+ "* ",
+ "dann "
+ ],
+ "when": [
+ "* ",
+ "wann "
+ ]
+ },
+ "lv": {
+ "and": [
+ "* ",
+ "Un "
+ ],
+ "background": [
+ "Konteksts",
+ "Situācija"
+ ],
+ "but": [
+ "* ",
+ "Bet "
+ ],
+ "examples": [
+ "Piemēri",
+ "Paraugs"
+ ],
+ "feature": [
+ "Funkcionalitāte",
+ "Fīča"
+ ],
+ "given": [
+ "* ",
+ "Kad "
+ ],
+ "name": "Latvian",
+ "native": "latviešu",
+ "scenario": [
+ "Scenārijs"
+ ],
+ "scenarioOutline": [
+ "Scenārijs pēc parauga"
+ ],
+ "then": [
+ "* ",
+ "Tad "
+ ],
+ "when": [
+ "* ",
+ "Ja "
+ ]
+ },
+ "mk-Cyrl": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Контекст",
+ "Содржина"
+ ],
+ "but": [
+ "* ",
+ "Но "
+ ],
+ "examples": [
+ "Примери",
+ "Сценарија"
+ ],
+ "feature": [
+ "Функционалност",
+ "Бизнис потреба",
+ "Можност"
+ ],
+ "given": [
+ "* ",
+ "Дадено ",
+ "Дадена "
+ ],
+ "name": "Macedonian",
+ "native": "Македонски",
+ "scenario": [
+ "Сценарио",
+ "На пример"
+ ],
+ "scenarioOutline": [
+ "Преглед на сценарија",
+ "Скица",
+ "Концепт"
+ ],
+ "then": [
+ "* ",
+ "Тогаш "
+ ],
+ "when": [
+ "* ",
+ "Кога "
+ ]
+ },
+ "mk-Latn": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Kontekst",
+ "Sodrzhina"
+ ],
+ "but": [
+ "* ",
+ "No "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenaria"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Biznis potreba",
+ "Mozhnost"
+ ],
+ "given": [
+ "* ",
+ "Dadeno ",
+ "Dadena "
+ ],
+ "name": "Macedonian (Latin)",
+ "native": "Makedonski (Latinica)",
+ "scenario": [
+ "Scenario",
+ "Na primer"
+ ],
+ "scenarioOutline": [
+ "Pregled na scenarija",
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Togash "
+ ],
+ "when": [
+ "* ",
+ "Koga "
+ ]
+ },
+ "mn": {
+ "and": [
+ "* ",
+ "Мөн ",
+ "Тэгээд "
+ ],
+ "background": [
+ "Агуулга"
+ ],
+ "but": [
+ "* ",
+ "Гэхдээ ",
+ "Харин "
+ ],
+ "examples": [
+ "Тухайлбал"
+ ],
+ "feature": [
+ "Функц",
+ "Функционал"
+ ],
+ "given": [
+ "* ",
+ "Өгөгдсөн нь ",
+ "Анх "
+ ],
+ "name": "Mongolian",
+ "native": "монгол",
+ "scenario": [
+ "Сценар"
+ ],
+ "scenarioOutline": [
+ "Сценарын төлөвлөгөө"
+ ],
+ "then": [
+ "* ",
+ "Тэгэхэд ",
+ "Үүний дараа "
+ ],
+ "when": [
+ "* ",
+ "Хэрэв "
+ ]
+ },
+ "nl": {
+ "and": [
+ "* ",
+ "En "
+ ],
+ "background": [
+ "Achtergrond"
+ ],
+ "but": [
+ "* ",
+ "Maar "
+ ],
+ "examples": [
+ "Voorbeelden"
+ ],
+ "feature": [
+ "Functionaliteit"
+ ],
+ "given": [
+ "* ",
+ "Gegeven ",
+ "Stel "
+ ],
+ "name": "Dutch",
+ "native": "Nederlands",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Abstract Scenario"
+ ],
+ "then": [
+ "* ",
+ "Dan "
+ ],
+ "when": [
+ "* ",
+ "Als ",
+ "Wanneer "
+ ]
+ },
+ "no": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Bakgrunn"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Eksempler"
+ ],
+ "feature": [
+ "Egenskap"
+ ],
+ "given": [
+ "* ",
+ "Gitt "
+ ],
+ "name": "Norwegian",
+ "native": "norsk",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenariomal",
+ "Abstrakt Scenario"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "Når "
+ ]
+ },
+ "pa": {
+ "and": [
+ "* ",
+ "ਅਤੇ "
+ ],
+ "background": [
+ "ਪਿਛੋਕੜ"
+ ],
+ "but": [
+ "* ",
+ "ਪਰ "
+ ],
+ "examples": [
+ "ਉਦਾਹਰਨਾਂ"
+ ],
+ "feature": [
+ "ਖਾਸੀਅਤ",
+ "ਮੁਹਾਂਦਰਾ",
+ "ਨਕਸ਼ ਨੁਹਾਰ"
+ ],
+ "given": [
+ "* ",
+ "ਜੇਕਰ ",
+ "ਜਿਵੇਂ ਕਿ "
+ ],
+ "name": "Panjabi",
+ "native": "ਪੰਜਾਬੀ",
+ "scenario": [
+ "ਪਟਕਥਾ"
+ ],
+ "scenarioOutline": [
+ "ਪਟਕਥਾ ਢਾਂਚਾ",
+ "ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ"
+ ],
+ "then": [
+ "* ",
+ "ਤਦ "
+ ],
+ "when": [
+ "* ",
+ "ਜਦੋਂ "
+ ]
+ },
+ "pl": {
+ "and": [
+ "* ",
+ "Oraz ",
+ "I "
+ ],
+ "background": [
+ "Założenia"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Przykłady"
+ ],
+ "feature": [
+ "Właściwość",
+ "Funkcja",
+ "Aspekt",
+ "Potrzeba biznesowa"
+ ],
+ "given": [
+ "* ",
+ "Zakładając ",
+ "Mając ",
+ "Zakładając, że "
+ ],
+ "name": "Polish",
+ "native": "polski",
+ "scenario": [
+ "Scenariusz"
+ ],
+ "scenarioOutline": [
+ "Szablon scenariusza"
+ ],
+ "then": [
+ "* ",
+ "Wtedy "
+ ],
+ "when": [
+ "* ",
+ "Jeżeli ",
+ "Jeśli ",
+ "Gdy ",
+ "Kiedy "
+ ]
+ },
+ "pt": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contexto",
+ "Cenário de Fundo",
+ "Cenario de Fundo",
+ "Fundo"
+ ],
+ "but": [
+ "* ",
+ "Mas "
+ ],
+ "examples": [
+ "Exemplos",
+ "Cenários",
+ "Cenarios"
+ ],
+ "feature": [
+ "Funcionalidade",
+ "Característica",
+ "Caracteristica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Portuguese",
+ "native": "português",
+ "scenario": [
+ "Cenário",
+ "Cenario"
+ ],
+ "scenarioOutline": [
+ "Esquema do Cenário",
+ "Esquema do Cenario",
+ "Delineação do Cenário",
+ "Delineacao do Cenario"
+ ],
+ "then": [
+ "* ",
+ "Então ",
+ "Entao "
+ ],
+ "when": [
+ "* ",
+ "Quando "
+ ]
+ },
+ "ro": {
+ "and": [
+ "* ",
+ "Si ",
+ "Și ",
+ "Şi "
+ ],
+ "background": [
+ "Context"
+ ],
+ "but": [
+ "* ",
+ "Dar "
+ ],
+ "examples": [
+ "Exemple"
+ ],
+ "feature": [
+ "Functionalitate",
+ "Funcționalitate",
+ "Funcţionalitate"
+ ],
+ "given": [
+ "* ",
+ "Date fiind ",
+ "Dat fiind ",
+ "Dată fiind",
+ "Dati fiind ",
+ "Dați fiind ",
+ "Daţi fiind "
+ ],
+ "name": "Romanian",
+ "native": "română",
+ "scenario": [
+ "Scenariu"
+ ],
+ "scenarioOutline": [
+ "Structura scenariu",
+ "Structură scenariu"
+ ],
+ "then": [
+ "* ",
+ "Atunci "
+ ],
+ "when": [
+ "* ",
+ "Cand ",
+ "Când "
+ ]
+ },
+ "ru": {
+ "and": [
+ "* ",
+ "И ",
+ "К тому же ",
+ "Также "
+ ],
+ "background": [
+ "Предыстория",
+ "Контекст"
+ ],
+ "but": [
+ "* ",
+ "Но ",
+ "А ",
+ "Иначе "
+ ],
+ "examples": [
+ "Примеры"
+ ],
+ "feature": [
+ "Функция",
+ "Функциональность",
+ "Функционал",
+ "Свойство"
+ ],
+ "given": [
+ "* ",
+ "Допустим ",
+ "Дано ",
+ "Пусть "
+ ],
+ "name": "Russian",
+ "native": "русский",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Структура сценария"
+ ],
+ "then": [
+ "* ",
+ "То ",
+ "Затем ",
+ "Тогда "
+ ],
+ "when": [
+ "* ",
+ "Когда ",
+ "Если "
+ ]
+ },
+ "sk": {
+ "and": [
+ "* ",
+ "A ",
+ "A tiež ",
+ "A taktiež ",
+ "A zároveň "
+ ],
+ "background": [
+ "Pozadie"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Príklady"
+ ],
+ "feature": [
+ "Požiadavka",
+ "Funkcia",
+ "Vlastnosť"
+ ],
+ "given": [
+ "* ",
+ "Pokiaľ ",
+ "Za predpokladu "
+ ],
+ "name": "Slovak",
+ "native": "Slovensky",
+ "scenario": [
+ "Scenár"
+ ],
+ "scenarioOutline": [
+ "Náčrt Scenáru",
+ "Náčrt Scenára",
+ "Osnova Scenára"
+ ],
+ "then": [
+ "* ",
+ "Tak ",
+ "Potom "
+ ],
+ "when": [
+ "* ",
+ "Keď ",
+ "Ak "
+ ]
+ },
+ "sl": {
+ "and": [
+ "In ",
+ "Ter "
+ ],
+ "background": [
+ "Kontekst",
+ "Osnova",
+ "Ozadje"
+ ],
+ "but": [
+ "Toda ",
+ "Ampak ",
+ "Vendar "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Funkcija",
+ "Možnosti",
+ "Moznosti",
+ "Lastnost",
+ "Značilnost"
+ ],
+ "given": [
+ "Dano ",
+ "Podano ",
+ "Zaradi ",
+ "Privzeto "
+ ],
+ "name": "Slovenian",
+ "native": "Slovenski",
+ "scenario": [
+ "Scenarij",
+ "Primer"
+ ],
+ "scenarioOutline": [
+ "Struktura scenarija",
+ "Skica",
+ "Koncept",
+ "Oris scenarija",
+ "Osnutek"
+ ],
+ "then": [
+ "Nato ",
+ "Potem ",
+ "Takrat "
+ ],
+ "when": [
+ "Ko ",
+ "Ce ",
+ "Če ",
+ "Kadar "
+ ]
+ },
+ "sr-Cyrl": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Контекст",
+ "Основа",
+ "Позадина"
+ ],
+ "but": [
+ "* ",
+ "Али "
+ ],
+ "examples": [
+ "Примери",
+ "Сценарији"
+ ],
+ "feature": [
+ "Функционалност",
+ "Могућност",
+ "Особина"
+ ],
+ "given": [
+ "* ",
+ "За дато ",
+ "За дате ",
+ "За дати "
+ ],
+ "name": "Serbian",
+ "native": "Српски",
+ "scenario": [
+ "Сценарио",
+ "Пример"
+ ],
+ "scenarioOutline": [
+ "Структура сценарија",
+ "Скица",
+ "Концепт"
+ ],
+ "then": [
+ "* ",
+ "Онда "
+ ],
+ "when": [
+ "* ",
+ "Када ",
+ "Кад "
+ ]
+ },
+ "sr-Latn": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Kontekst",
+ "Osnova",
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Mogućnost",
+ "Mogucnost",
+ "Osobina"
+ ],
+ "given": [
+ "* ",
+ "Za dato ",
+ "Za date ",
+ "Za dati "
+ ],
+ "name": "Serbian (Latin)",
+ "native": "Srpski (Latinica)",
+ "scenario": [
+ "Scenario",
+ "Primer"
+ ],
+ "scenarioOutline": [
+ "Struktura scenarija",
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Onda "
+ ],
+ "when": [
+ "* ",
+ "Kada ",
+ "Kad "
+ ]
+ },
+ "sv": {
+ "and": [
+ "* ",
+ "Och "
+ ],
+ "background": [
+ "Bakgrund"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Exempel"
+ ],
+ "feature": [
+ "Egenskap"
+ ],
+ "given": [
+ "* ",
+ "Givet "
+ ],
+ "name": "Swedish",
+ "native": "Svenska",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Abstrakt Scenario",
+ "Scenariomall"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "När "
+ ]
+ },
+ "ta": {
+ "and": [
+ "* ",
+ "மேலும் ",
+ "மற்றும் "
+ ],
+ "background": [
+ "பின்னணி"
+ ],
+ "but": [
+ "* ",
+ "ஆனால் "
+ ],
+ "examples": [
+ "எடுத்துக்காட்டுகள்",
+ "காட்சிகள்",
+ " நிலைமைகளில்"
+ ],
+ "feature": [
+ "அம்சம்",
+ "வணிக தேவை",
+ "திறன்"
+ ],
+ "given": [
+ "* ",
+ "கொடுக்கப்பட்ட "
+ ],
+ "name": "Tamil",
+ "native": "தமிழ்",
+ "scenario": [
+ "காட்சி"
+ ],
+ "scenarioOutline": [
+ "காட்சி சுருக்கம்",
+ "காட்சி வார்ப்புரு"
+ ],
+ "then": [
+ "* ",
+ "அப்பொழுது "
+ ],
+ "when": [
+ "* ",
+ "எப்போது "
+ ]
+ },
+ "th": {
+ "and": [
+ "* ",
+ "และ "
+ ],
+ "background": [
+ "แนวคิด"
+ ],
+ "but": [
+ "* ",
+ "แต่ "
+ ],
+ "examples": [
+ "ชุดของตัวอย่าง",
+ "ชุดของเหตุการณ์"
+ ],
+ "feature": [
+ "โครงหลัก",
+ "ความต้องการทางธุรกิจ",
+ "ความสามารถ"
+ ],
+ "given": [
+ "* ",
+ "กำหนดให้ "
+ ],
+ "name": "Thai",
+ "native": "ไทย",
+ "scenario": [
+ "เหตุการณ์"
+ ],
+ "scenarioOutline": [
+ "สรุปเหตุการณ์",
+ "โครงสร้างของเหตุการณ์"
+ ],
+ "then": [
+ "* ",
+ "ดังนั้น "
+ ],
+ "when": [
+ "* ",
+ "เมื่อ "
+ ]
+ },
+ "tl": {
+ "and": [
+ "* ",
+ "మరియు "
+ ],
+ "background": [
+ "నేపథ్యం"
+ ],
+ "but": [
+ "* ",
+ "కాని "
+ ],
+ "examples": [
+ "ఉదాహరణలు"
+ ],
+ "feature": [
+ "గుణము"
+ ],
+ "given": [
+ "* ",
+ "చెప్పబడినది "
+ ],
+ "name": "Telugu",
+ "native": "తెలుగు",
+ "scenario": [
+ "సన్నివేశం"
+ ],
+ "scenarioOutline": [
+ "కథనం"
+ ],
+ "then": [
+ "* ",
+ "అప్పుడు "
+ ],
+ "when": [
+ "* ",
+ "ఈ పరిస్థితిలో "
+ ]
+ },
+ "tlh": {
+ "and": [
+ "* ",
+ "'ej ",
+ "latlh "
+ ],
+ "background": [
+ "mo'"
+ ],
+ "but": [
+ "* ",
+ "'ach ",
+ "'a "
+ ],
+ "examples": [
+ "ghantoH",
+ "lutmey"
+ ],
+ "feature": [
+ "Qap",
+ "Qu'meH 'ut",
+ "perbogh",
+ "poQbogh malja'",
+ "laH"
+ ],
+ "given": [
+ "* ",
+ "ghu' noblu' ",
+ "DaH ghu' bejlu' "
+ ],
+ "name": "Klingon",
+ "native": "tlhIngan",
+ "scenario": [
+ "lut"
+ ],
+ "scenarioOutline": [
+ "lut chovnatlh"
+ ],
+ "then": [
+ "* ",
+ "vaj "
+ ],
+ "when": [
+ "* ",
+ "qaSDI' "
+ ]
+ },
+ "tr": {
+ "and": [
+ "* ",
+ "Ve "
+ ],
+ "background": [
+ "Geçmiş"
+ ],
+ "but": [
+ "* ",
+ "Fakat ",
+ "Ama "
+ ],
+ "examples": [
+ "Örnekler"
+ ],
+ "feature": [
+ "Özellik"
+ ],
+ "given": [
+ "* ",
+ "Diyelim ki "
+ ],
+ "name": "Turkish",
+ "native": "Türkçe",
+ "scenario": [
+ "Senaryo"
+ ],
+ "scenarioOutline": [
+ "Senaryo taslağı"
+ ],
+ "then": [
+ "* ",
+ "O zaman "
+ ],
+ "when": [
+ "* ",
+ "Eğer ki "
+ ]
+ },
+ "tt": {
+ "and": [
+ "* ",
+ "Һәм ",
+ "Вә "
+ ],
+ "background": [
+ "Кереш"
+ ],
+ "but": [
+ "* ",
+ "Ләкин ",
+ "Әмма "
+ ],
+ "examples": [
+ "Үрнәкләр",
+ "Мисаллар"
+ ],
+ "feature": [
+ "Мөмкинлек",
+ "Үзенчәлеклелек"
+ ],
+ "given": [
+ "* ",
+ "Әйтик "
+ ],
+ "name": "Tatar",
+ "native": "Татарча",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Сценарийның төзелеше"
+ ],
+ "then": [
+ "* ",
+ "Нәтиҗәдә "
+ ],
+ "when": [
+ "* ",
+ "Әгәр "
+ ]
+ },
+ "uk": {
+ "and": [
+ "* ",
+ "І ",
+ "А також ",
+ "Та "
+ ],
+ "background": [
+ "Передумова"
+ ],
+ "but": [
+ "* ",
+ "Але "
+ ],
+ "examples": [
+ "Приклади"
+ ],
+ "feature": [
+ "Функціонал"
+ ],
+ "given": [
+ "* ",
+ "Припустимо ",
+ "Припустимо, що ",
+ "Нехай ",
+ "Дано "
+ ],
+ "name": "Ukrainian",
+ "native": "Українська",
+ "scenario": [
+ "Сценарій"
+ ],
+ "scenarioOutline": [
+ "Структура сценарію"
+ ],
+ "then": [
+ "* ",
+ "То ",
+ "Тоді "
+ ],
+ "when": [
+ "* ",
+ "Якщо ",
+ "Коли "
+ ]
+ },
+ "ur": {
+ "and": [
+ "* ",
+ "اور "
+ ],
+ "background": [
+ "پس منظر"
+ ],
+ "but": [
+ "* ",
+ "لیکن "
+ ],
+ "examples": [
+ "مثالیں"
+ ],
+ "feature": [
+ "صلاحیت",
+ "کاروبار کی ضرورت",
+ "خصوصیت"
+ ],
+ "given": [
+ "* ",
+ "اگر ",
+ "بالفرض ",
+ "فرض کیا "
+ ],
+ "name": "Urdu",
+ "native": "اردو",
+ "scenario": [
+ "منظرنامہ"
+ ],
+ "scenarioOutline": [
+ "منظر نامے کا خاکہ"
+ ],
+ "then": [
+ "* ",
+ "پھر ",
+ "تب "
+ ],
+ "when": [
+ "* ",
+ "جب "
+ ]
+ },
+ "uz": {
+ "and": [
+ "* ",
+ "Ва "
+ ],
+ "background": [
+ "Тарих"
+ ],
+ "but": [
+ "* ",
+ "Лекин ",
+ "Бирок ",
+ "Аммо "
+ ],
+ "examples": [
+ "Мисоллар"
+ ],
+ "feature": [
+ "Функционал"
+ ],
+ "given": [
+ "* ",
+ "Агар "
+ ],
+ "name": "Uzbek",
+ "native": "Узбекча",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Сценарий структураси"
+ ],
+ "then": [
+ "* ",
+ "Унда "
+ ],
+ "when": [
+ "* ",
+ "Агар "
+ ]
+ },
+ "vi": {
+ "and": [
+ "* ",
+ "Và "
+ ],
+ "background": [
+ "Bối cảnh"
+ ],
+ "but": [
+ "* ",
+ "Nhưng "
+ ],
+ "examples": [
+ "Dữ liệu"
+ ],
+ "feature": [
+ "Tính năng"
+ ],
+ "given": [
+ "* ",
+ "Biết ",
+ "Cho "
+ ],
+ "name": "Vietnamese",
+ "native": "Tiếng Việt",
+ "scenario": [
+ "Tình huống",
+ "Kịch bản"
+ ],
+ "scenarioOutline": [
+ "Khung tình huống",
+ "Khung kịch bản"
+ ],
+ "then": [
+ "* ",
+ "Thì "
+ ],
+ "when": [
+ "* ",
+ "Khi "
+ ]
+ },
+ "zh-CN": {
+ "and": [
+ "* ",
+ "而且",
+ "并且",
+ "同时"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "但是"
+ ],
+ "examples": [
+ "例子"
+ ],
+ "feature": [
+ "功能"
+ ],
+ "given": [
+ "* ",
+ "假如",
+ "假设",
+ "假定"
+ ],
+ "name": "Chinese simplified",
+ "native": "简体中文",
+ "scenario": [
+ "场景",
+ "剧本"
+ ],
+ "scenarioOutline": [
+ "场景大纲",
+ "剧本大纲"
+ ],
+ "then": [
+ "* ",
+ "那么"
+ ],
+ "when": [
+ "* ",
+ "当"
+ ]
+ },
+ "zh-TW": {
+ "and": [
+ "* ",
+ "而且",
+ "並且",
+ "同時"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "但是"
+ ],
+ "examples": [
+ "例子"
+ ],
+ "feature": [
+ "功能"
+ ],
+ "given": [
+ "* ",
+ "假如",
+ "假設",
+ "假定"
+ ],
+ "name": "Chinese traditional",
+ "native": "繁體中文",
+ "scenario": [
+ "場景",
+ "劇本"
+ ],
+ "scenarioOutline": [
+ "場景大綱",
+ "劇本大綱"
+ ],
+ "then": [
+ "* ",
+ "那麼"
+ ],
+ "when": [
+ "* ",
+ "當"
+ ]
+ }
+}
+
+},{}],9:[function(require,module,exports){
+var countSymbols = require('./count_symbols')
+
+function GherkinLine(lineText, lineNumber) {
+ this.lineText = lineText;
+ this.lineNumber = lineNumber;
+ this.trimmedLineText = lineText.replace(/^\s+/g, ''); // ltrim
+ this.isEmpty = this.trimmedLineText.length == 0;
+ this.indent = countSymbols(lineText) - countSymbols(this.trimmedLineText);
+};
+
+GherkinLine.prototype.startsWith = function startsWith(prefix) {
+ return this.trimmedLineText.indexOf(prefix) == 0;
+};
+
+GherkinLine.prototype.startsWithTitleKeyword = function startsWithTitleKeyword(keyword) {
+ return this.startsWith(keyword+':'); // The C# impl is more complicated. Find out why.
+};
+
+GherkinLine.prototype.getLineText = function getLineText(indentToRemove) {
+ if (indentToRemove < 0 || indentToRemove > this.indent) {
+ return this.trimmedLineText;
+ } else {
+ return this.lineText.substring(indentToRemove);
+ }
+};
+
+GherkinLine.prototype.getRestTrimmed = function getRestTrimmed(length) {
+ return this.trimmedLineText.substring(length).trim();
+};
+
+GherkinLine.prototype.getTableCells = function getTableCells() {
+ var cells = [];
+ var col = 0;
+ var startCol = col + 1;
+ var cell = '';
+ var firstCell = true;
+ while (col < this.trimmedLineText.length) {
+ var chr = this.trimmedLineText[col];
+ col++;
+
+ if (chr == '|') {
+ if (firstCell) {
+ // First cell (content before the first |) is skipped
+ firstCell = false;
+ } else {
+ var cellIndent = cell.length - cell.replace(/^\s+/g, '').length;
+ var span = {column: this.indent + startCol + cellIndent, text: cell.trim()};
+ cells.push(span);
+ }
+ cell = '';
+ startCol = col + 1;
+ } else if (chr == '\\') {
+ chr = this.trimmedLineText[col];
+ col += 1;
+ if (chr == 'n') {
+ cell += '\n';
+ } else {
+ if (chr != '|' && chr != '\\') {
+ cell += '\\';
+ }
+ cell += chr;
+ }
+ } else {
+ cell += chr;
+ }
+ }
+
+ return cells;
+};
+
+GherkinLine.prototype.getTags = function getTags() {
+ var column = this.indent + 1;
+ var items = this.trimmedLineText.trim().split('@');
+ items.shift();
+ return items.map(function (item) {
+ var length = item.length;
+ var span = {column: column, text: '@' + item.trim()};
+ column += length + 1;
+ return span;
+ });
+};
+
+module.exports = GherkinLine;
+
+},{"./count_symbols":4}],10:[function(require,module,exports){
+// This file is generated. Do not edit! Edit gherkin-javascript.razor instead.
+var Errors = require('./errors');
+var AstBuilder = require('./ast_builder');
+var TokenScanner = require('./token_scanner');
+var TokenMatcher = require('./token_matcher');
+
+var RULE_TYPES = [
+ 'None',
+ '_EOF', // #EOF
+ '_Empty', // #Empty
+ '_Comment', // #Comment
+ '_TagLine', // #TagLine
+ '_FeatureLine', // #FeatureLine
+ '_BackgroundLine', // #BackgroundLine
+ '_ScenarioLine', // #ScenarioLine
+ '_ScenarioOutlineLine', // #ScenarioOutlineLine
+ '_ExamplesLine', // #ExamplesLine
+ '_StepLine', // #StepLine
+ '_DocStringSeparator', // #DocStringSeparator
+ '_TableRow', // #TableRow
+ '_Language', // #Language
+ '_Other', // #Other
+ 'GherkinDocument', // GherkinDocument! := Feature?
+ 'Feature', // Feature! := Feature_Header Background? Scenario_Definition*
+ 'Feature_Header', // Feature_Header! := #Language? Tags? #FeatureLine Description_Helper
+ 'Background', // Background! := #BackgroundLine Description_Helper Step*
+ 'Scenario_Definition', // Scenario_Definition! := Tags? (Scenario | ScenarioOutline)
+ 'Scenario', // Scenario! := #ScenarioLine Description_Helper Step*
+ 'ScenarioOutline', // ScenarioOutline! := #ScenarioOutlineLine Description_Helper Step* Examples_Definition*
+ 'Examples_Definition', // Examples_Definition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? Examples
+ 'Examples', // Examples! := #ExamplesLine Description_Helper Examples_Table?
+ 'Examples_Table', // Examples_Table! := #TableRow #TableRow*
+ 'Step', // Step! := #StepLine Step_Arg?
+ 'Step_Arg', // Step_Arg := (DataTable | DocString)
+ 'DataTable', // DataTable! := #TableRow+
+ 'DocString', // DocString! := #DocStringSeparator #Other* #DocStringSeparator
+ 'Tags', // Tags! := #TagLine+
+ 'Description_Helper', // Description_Helper := #Empty* Description? #Comment*
+ 'Description', // Description! := #Other+
+];
+
+module.exports = function Parser(builder) {
+ builder = builder || new AstBuilder();
+ var self = this;
+ var context;
+
+ this.parse = function(tokenScanner, tokenMatcher) {
+ if(typeof tokenScanner == 'string') {
+ tokenScanner = new TokenScanner(tokenScanner);
+ }
+ tokenMatcher = tokenMatcher || new TokenMatcher();
+ builder.reset();
+ tokenMatcher.reset();
+ context = {
+ tokenScanner: tokenScanner,
+ tokenMatcher: tokenMatcher,
+ tokenQueue: [],
+ errors: []
+ };
+ startRule(context, "GherkinDocument");
+ var state = 0;
+ var token = null;
+ while(true) {
+ token = readToken(context);
+ state = matchToken(state, token, context);
+ if(token.isEof) break;
+ }
+
+ endRule(context, "GherkinDocument");
+
+ if(context.errors.length > 0) {
+ throw Errors.CompositeParserException.create(context.errors);
+ }
+
+ return getResult();
+ };
+
+ function addError(context, error) {
+ context.errors.push(error);
+ if (context.errors.length > 10)
+ throw Errors.CompositeParserException.create(context.errors);
+ }
+
+ function startRule(context, ruleType) {
+ handleAstError(context, function () {
+ builder.startRule(ruleType);
+ });
+ }
+
+ function endRule(context, ruleType) {
+ handleAstError(context, function () {
+ builder.endRule(ruleType);
+ });
+ }
+
+ function build(context, token) {
+ handleAstError(context, function () {
+ builder.build(token);
+ });
+ }
+
+ function getResult() {
+ return builder.getResult();
+ }
+
+ function handleAstError(context, action) {
+ handleExternalError(context, true, action)
+ }
+
+ function handleExternalError(context, defaultValue, action) {
+ if(self.stopAtFirstError) return action();
+ try {
+ return action();
+ } catch (e) {
+ if(e instanceof Errors.CompositeParserException) {
+ e.errors.forEach(function (error) {
+ addError(context, error);
+ });
+ } else if(
+ e instanceof Errors.ParserException ||
+ e instanceof Errors.AstBuilderException ||
+ e instanceof Errors.UnexpectedTokenException ||
+ e instanceof Errors.NoSuchLanguageException
+ ) {
+ addError(context, e);
+ } else {
+ throw e;
+ }
+ }
+ return defaultValue;
+ }
+
+ function readToken(context) {
+ return context.tokenQueue.length > 0 ?
+ context.tokenQueue.shift() :
+ context.tokenScanner.read();
+ }
+
+ function matchToken(state, token, context) {
+ switch(state) {
+ case 0:
+ return matchTokenAt_0(token, context);
+ case 1:
+ return matchTokenAt_1(token, context);
+ case 2:
+ return matchTokenAt_2(token, context);
+ case 3:
+ return matchTokenAt_3(token, context);
+ case 4:
+ return matchTokenAt_4(token, context);
+ case 5:
+ return matchTokenAt_5(token, context);
+ case 6:
+ return matchTokenAt_6(token, context);
+ case 7:
+ return matchTokenAt_7(token, context);
+ case 8:
+ return matchTokenAt_8(token, context);
+ case 9:
+ return matchTokenAt_9(token, context);
+ case 10:
+ return matchTokenAt_10(token, context);
+ case 11:
+ return matchTokenAt_11(token, context);
+ case 12:
+ return matchTokenAt_12(token, context);
+ case 13:
+ return matchTokenAt_13(token, context);
+ case 14:
+ return matchTokenAt_14(token, context);
+ case 15:
+ return matchTokenAt_15(token, context);
+ case 16:
+ return matchTokenAt_16(token, context);
+ case 17:
+ return matchTokenAt_17(token, context);
+ case 18:
+ return matchTokenAt_18(token, context);
+ case 19:
+ return matchTokenAt_19(token, context);
+ case 20:
+ return matchTokenAt_20(token, context);
+ case 21:
+ return matchTokenAt_21(token, context);
+ case 22:
+ return matchTokenAt_22(token, context);
+ case 23:
+ return matchTokenAt_23(token, context);
+ case 24:
+ return matchTokenAt_24(token, context);
+ case 25:
+ return matchTokenAt_25(token, context);
+ case 26:
+ return matchTokenAt_26(token, context);
+ case 28:
+ return matchTokenAt_28(token, context);
+ case 29:
+ return matchTokenAt_29(token, context);
+ case 30:
+ return matchTokenAt_30(token, context);
+ case 31:
+ return matchTokenAt_31(token, context);
+ case 32:
+ return matchTokenAt_32(token, context);
+ case 33:
+ return matchTokenAt_33(token, context);
+ default:
+ throw new Error("Unknown state: " + state);
+ }
+ }
+
+
+ // Start
+ function matchTokenAt_0(token, context) {
+ if(match_EOF(context, token)) {
+ build(context, token);
+ return 27;
+ }
+ if(match_Language(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ build(context, token);
+ return 1;
+ }
+ if(match_TagLine(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 0;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 0;
+ }
+
+ var stateComment = "State: 0 - Start";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 0;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0
+ function matchTokenAt_1(token, context) {
+ if(match_TagLine(context, token)) {
+ startRule(context, 'Tags');
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 1;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 1;
+ }
+
+ var stateComment = "State: 1 - GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 1;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0
+ function matchTokenAt_2(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ endRule(context, 'Tags');
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 2;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 2;
+ }
+
+ var stateComment = "State: 2 - GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 2;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0
+ function matchTokenAt_3(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 4;
+ }
+
+ var stateComment = "State: 3 - GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 3;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_4(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 4;
+ }
+
+ var stateComment = "State: 4 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 4;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0
+ function matchTokenAt_5(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 5;
+ }
+
+ var stateComment = "State: 5 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 5;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
+ function matchTokenAt_6(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 6;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 7;
+ }
+
+ var stateComment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 6;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_7(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 7;
+ }
+
+ var stateComment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 7;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_8(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 8;
+ }
+
+ var stateComment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 8;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0
+ function matchTokenAt_9(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 10;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 32;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 9;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 9;
+ }
+
+ var stateComment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 9;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_10(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 10;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 10;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 10;
+ }
+
+ var stateComment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 10;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0
+ function matchTokenAt_11(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 11;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 11;
+ }
+
+ var stateComment = "State: 11 - GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 11;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0
+ function matchTokenAt_12(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 12;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 13;
+ }
+
+ var stateComment = "State: 12 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 12;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_13(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 13;
+ }
+
+ var stateComment = "State: 13 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 13;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_14(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 14;
+ }
+
+ var stateComment = "State: 14 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 14;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0
+ function matchTokenAt_15(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 16;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 30;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 15;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 15;
+ }
+
+ var stateComment = "State: 15 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 15;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_16(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 16;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 16;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 16;
+ }
+
+ var stateComment = "State: 16 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 16;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0
+ function matchTokenAt_17(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 18;
+ }
+
+ var stateComment = "State: 17 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 17;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_18(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 18;
+ }
+
+ var stateComment = "State: 18 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 18;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_19(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 19;
+ }
+
+ var stateComment = "State: 19 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 19;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0
+ function matchTokenAt_20(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 21;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 28;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 20;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 20;
+ }
+
+ var stateComment = "State: 20 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 20;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_21(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 21;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 21;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 21;
+ }
+
+ var stateComment = "State: 21 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 21;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0
+ function matchTokenAt_22(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 22;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 22;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 22;
+ }
+
+ var stateComment = "State: 22 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 22;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0
+ function matchTokenAt_23(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 23;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 24;
+ }
+
+ var stateComment = "State: 23 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 23;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_24(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 24;
+ }
+
+ var stateComment = "State: 24 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 24;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_25(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 25;
+ }
+
+ var stateComment = "State: 25 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 25;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0
+ function matchTokenAt_26(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 26;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 26;
+ }
+
+ var stateComment = "State: 26 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 26;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_28(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 29;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 28;
+ }
+
+ var stateComment = "State: 28 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 28;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_29(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 29;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 29;
+ }
+
+ var stateComment = "State: 29 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 29;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_30(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 31;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 30;
+ }
+
+ var stateComment = "State: 30 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 30;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_31(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 31;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 31;
+ }
+
+ var stateComment = "State: 31 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 31;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_32(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 33;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 32;
+ }
+
+ var stateComment = "State: 32 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 32;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_33(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 33;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 33;
+ }
+
+ var stateComment = "State: 33 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 33;
+ }
+
+
+
+ function match_EOF(context, token) {
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_EOF(token);
+ });
+ }
+
+
+ function match_Empty(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Empty(token);
+ });
+ }
+
+
+ function match_Comment(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Comment(token);
+ });
+ }
+
+
+ function match_TagLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_TagLine(token);
+ });
+ }
+
+
+ function match_FeatureLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_FeatureLine(token);
+ });
+ }
+
+
+ function match_BackgroundLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_BackgroundLine(token);
+ });
+ }
+
+
+ function match_ScenarioLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ScenarioLine(token);
+ });
+ }
+
+
+ function match_ScenarioOutlineLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ScenarioOutlineLine(token);
+ });
+ }
+
+
+ function match_ExamplesLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ExamplesLine(token);
+ });
+ }
+
+
+ function match_StepLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_StepLine(token);
+ });
+ }
+
+
+ function match_DocStringSeparator(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_DocStringSeparator(token);
+ });
+ }
+
+
+ function match_TableRow(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_TableRow(token);
+ });
+ }
+
+
+ function match_Language(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Language(token);
+ });
+ }
+
+
+ function match_Other(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Other(token);
+ });
+ }
+
+
+
+ function lookahead_0(context, currentToken) {
+ currentToken.detach();
+ var token;
+ var queue = [];
+ var match = false;
+ do {
+ token = readToken(context);
+ token.detach();
+ queue.push(token);
+
+ if (false || match_ExamplesLine(context, token)) {
+ match = true;
+ break;
+ }
+ } while(false || match_Empty(context, token) || match_Comment(context, token) || match_TagLine(context, token));
+
+ context.tokenQueue = context.tokenQueue.concat(queue);
+
+ return match;
+ }
+
+
+}
+
+},{"./ast_builder":2,"./errors":6,"./token_matcher":13,"./token_scanner":14}],11:[function(require,module,exports){
+var countSymbols = require('../count_symbols');
+
+function Compiler() {
+ this.compile = function (gherkin_document) {
+ var pickles = [];
+
+ if (gherkin_document.feature == null) return pickles;
+
+ var feature = gherkin_document.feature;
+ var language = feature.language;
+ var featureTags = feature.tags;
+ var backgroundSteps = [];
+
+ feature.children.forEach(function (scenarioDefinition) {
+ if(scenarioDefinition.type === 'Background') {
+ backgroundSteps = pickleSteps(scenarioDefinition);
+ } else if(scenarioDefinition.type === 'Scenario') {
+ compileScenario(featureTags, backgroundSteps, scenarioDefinition, language, pickles);
+ } else {
+ compileScenarioOutline(featureTags, backgroundSteps, scenarioDefinition, language, pickles);
+ }
+ });
+ return pickles;
+ };
+
+ function compileScenario(featureTags, backgroundSteps, scenario, language, pickles) {
+ var steps = scenario.steps.length == 0 ? [] : [].concat(backgroundSteps);
+
+ var tags = [].concat(featureTags).concat(scenario.tags);
+
+ scenario.steps.forEach(function (step) {
+ steps.push(pickleStep(step));
+ });
+
+ var pickle = {
+ tags: pickleTags(tags),
+ name: scenario.name,
+ language: language,
+ locations: [pickleLocation(scenario.location)],
+ steps: steps
+ };
+ pickles.push(pickle);
+ }
+
+ function compileScenarioOutline(featureTags, backgroundSteps, scenarioOutline, language, pickles) {
+ scenarioOutline.examples.filter(function(e) { return e.tableHeader != undefined; }).forEach(function (examples) {
+ var variableCells = examples.tableHeader.cells;
+ examples.tableBody.forEach(function (values) {
+ var valueCells = values.cells;
+ var steps = scenarioOutline.steps.length == 0 ? [] : [].concat(backgroundSteps);
+ var tags = [].concat(featureTags).concat(scenarioOutline.tags).concat(examples.tags);
+
+ scenarioOutline.steps.forEach(function (scenarioOutlineStep) {
+ var stepText = interpolate(scenarioOutlineStep.text, variableCells, valueCells);
+ var args = createPickleArguments(scenarioOutlineStep.argument, variableCells, valueCells);
+ var pickleStep = {
+ text: stepText,
+ arguments: args,
+ locations: [
+ pickleLocation(values.location),
+ pickleStepLocation(scenarioOutlineStep)
+ ]
+ };
+ steps.push(pickleStep);
+ });
+
+ var pickle = {
+ name: interpolate(scenarioOutline.name, variableCells, valueCells),
+ language: language,
+ steps: steps,
+ tags: pickleTags(tags),
+ locations: [
+ pickleLocation(values.location),
+ pickleLocation(scenarioOutline.location)
+ ]
+ };
+ pickles.push(pickle);
+
+ });
+ });
+ }
+
+ function createPickleArguments(argument, variableCells, valueCells) {
+ var result = [];
+ if (!argument) return result;
+ if (argument.type === 'DataTable') {
+ var table = {
+ rows: argument.rows.map(function (row) {
+ return {
+ cells: row.cells.map(function (cell) {
+ return {
+ location: pickleLocation(cell.location),
+ value: interpolate(cell.value, variableCells, valueCells)
+ };
+ })
+ };
+ })
+ };
+ result.push(table);
+ } else if (argument.type === 'DocString') {
+ var docString = {
+ location: pickleLocation(argument.location),
+ content: interpolate(argument.content, variableCells, valueCells),
+ };
+ if(argument.contentType) {
+ docString.contentType = interpolate(argument.contentType, variableCells, valueCells);
+ }
+ result.push(docString);
+ } else {
+ throw Error('Internal error');
+ }
+ return result;
+ }
+
+ function interpolate(name, variableCells, valueCells) {
+ variableCells.forEach(function (variableCell, n) {
+ var valueCell = valueCells[n];
+ var search = new RegExp('<' + variableCell.value + '>', 'g');
+ // JS Specific - dollar sign needs to be escaped with another dollar sign
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
+ var replacement = valueCell.value.replace(new RegExp('\\$', 'g'), '$$$$')
+ name = name.replace(search, replacement);
+ });
+ return name;
+ }
+
+ function pickleSteps(scenarioDefinition) {
+ return scenarioDefinition.steps.map(function (step) {
+ return pickleStep(step);
+ });
+ }
+
+ function pickleStep(step) {
+ return {
+ text: step.text,
+ arguments: createPickleArguments(step.argument, [], []),
+ locations: [pickleStepLocation(step)]
+ }
+ }
+
+ function pickleStepLocation(step) {
+ return {
+ line: step.location.line,
+ column: step.location.column + (step.keyword ? countSymbols(step.keyword) : 0)
+ };
+ }
+
+ function pickleLocation(location) {
+ return {
+ line: location.line,
+ column: location.column
+ }
+ }
+
+ function pickleTags(tags) {
+ return tags.map(function (tag) {
+ return pickleTag(tag);
+ });
+ }
+
+ function pickleTag(tag) {
+ return {
+ name: tag.name,
+ location: pickleLocation(tag.location)
+ };
+ }
+}
+
+module.exports = Compiler;
+
+},{"../count_symbols":4}],12:[function(require,module,exports){
+function Token(line, location) {
+ this.line = line;
+ this.location = location;
+ this.isEof = line == null;
+};
+
+Token.prototype.getTokenValue = function () {
+ return this.isEof ? "EOF" : this.line.getLineText(-1);
+};
+
+Token.prototype.detach = function () {
+ // TODO: Detach line, but is this really needed?
+};
+
+module.exports = Token;
+
+},{}],13:[function(require,module,exports){
+var DIALECTS = require('./dialects');
+var Errors = require('./errors');
+var LANGUAGE_PATTERN = /^\s*#\s*language\s*:\s*([a-zA-Z\-_]+)\s*$/;
+
+module.exports = function TokenMatcher(defaultDialectName) {
+ defaultDialectName = defaultDialectName || 'en';
+
+ var dialect;
+ var dialectName;
+ var activeDocStringSeparator;
+ var indentToRemove;
+
+ function changeDialect(newDialectName, location) {
+ var newDialect = DIALECTS[newDialectName];
+ if(!newDialect) {
+ throw Errors.NoSuchLanguageException.create(newDialectName, location);
+ }
+
+ dialectName = newDialectName;
+ dialect = newDialect;
+ }
+
+ this.reset = function () {
+ if(dialectName != defaultDialectName) changeDialect(defaultDialectName);
+ activeDocStringSeparator = null;
+ indentToRemove = 0;
+ };
+
+ this.reset();
+
+ this.match_TagLine = function match_TagLine(token) {
+ if(token.line.startsWith('@')) {
+ setTokenMatched(token, 'TagLine', null, null, null, token.line.getTags());
+ return true;
+ }
+ return false;
+ };
+
+ this.match_FeatureLine = function match_FeatureLine(token) {
+ return matchTitleLine(token, 'FeatureLine', dialect.feature);
+ };
+
+ this.match_ScenarioLine = function match_ScenarioLine(token) {
+ return matchTitleLine(token, 'ScenarioLine', dialect.scenario);
+ };
+
+ this.match_ScenarioOutlineLine = function match_ScenarioOutlineLine(token) {
+ return matchTitleLine(token, 'ScenarioOutlineLine', dialect.scenarioOutline);
+ };
+
+ this.match_BackgroundLine = function match_BackgroundLine(token) {
+ return matchTitleLine(token, 'BackgroundLine', dialect.background);
+ };
+
+ this.match_ExamplesLine = function match_ExamplesLine(token) {
+ return matchTitleLine(token, 'ExamplesLine', dialect.examples);
+ };
+
+ this.match_TableRow = function match_TableRow(token) {
+ if (token.line.startsWith('|')) {
+ // TODO: indent
+ setTokenMatched(token, 'TableRow', null, null, null, token.line.getTableCells());
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Empty = function match_Empty(token) {
+ if (token.line.isEmpty) {
+ setTokenMatched(token, 'Empty', null, null, 0);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Comment = function match_Comment(token) {
+ if(token.line.startsWith('#')) {
+ var text = token.line.getLineText(0); //take the entire line, including leading space
+ setTokenMatched(token, 'Comment', text, null, 0);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Language = function match_Language(token) {
+ var match;
+ if(match = token.line.trimmedLineText.match(LANGUAGE_PATTERN)) {
+ var newDialectName = match[1];
+ setTokenMatched(token, 'Language', newDialectName);
+
+ changeDialect(newDialectName, token.location);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_DocStringSeparator = function match_DocStringSeparator(token) {
+ return activeDocStringSeparator == null
+ ?
+ // open
+ _match_DocStringSeparator(token, '"""', true) ||
+ _match_DocStringSeparator(token, '```', true)
+ :
+ // close
+ _match_DocStringSeparator(token, activeDocStringSeparator, false);
+ };
+
+ function _match_DocStringSeparator(token, separator, isOpen) {
+ if (token.line.startsWith(separator)) {
+ var contentType = null;
+ if (isOpen) {
+ contentType = token.line.getRestTrimmed(separator.length);
+ activeDocStringSeparator = separator;
+ indentToRemove = token.line.indent;
+ } else {
+ activeDocStringSeparator = null;
+ indentToRemove = 0;
+ }
+
+ // TODO: Use the separator as keyword. That's needed for pretty printing.
+ setTokenMatched(token, 'DocStringSeparator', contentType);
+ return true;
+ }
+ return false;
+ }
+
+ this.match_EOF = function match_EOF(token) {
+ if(token.isEof) {
+ setTokenMatched(token, 'EOF');
+ return true;
+ }
+ return false;
+ };
+
+ this.match_StepLine = function match_StepLine(token) {
+ var keywords = []
+ .concat(dialect.given)
+ .concat(dialect.when)
+ .concat(dialect.then)
+ .concat(dialect.and)
+ .concat(dialect.but);
+ var length = keywords.length;
+ for(var i = 0, keyword; i < length; i++) {
+ var keyword = keywords[i];
+
+ if (token.line.startsWith(keyword)) {
+ var title = token.line.getRestTrimmed(keyword.length);
+ setTokenMatched(token, 'StepLine', title, keyword);
+ return true;
+ }
+ }
+ return false;
+ };
+
+ this.match_Other = function match_Other(token) {
+ var text = token.line.getLineText(indentToRemove); //take the entire line, except removing DocString indents
+ setTokenMatched(token, 'Other', unescapeDocString(text), null, 0);
+ return true;
+ };
+
+ function matchTitleLine(token, tokenType, keywords) {
+ var length = keywords.length;
+ for(var i = 0, keyword; i < length; i++) {
+ var keyword = keywords[i];
+
+ if (token.line.startsWithTitleKeyword(keyword)) {
+ var title = token.line.getRestTrimmed(keyword.length + ':'.length);
+ setTokenMatched(token, tokenType, title, keyword);
+ return true;
+ }
+ }
+ return false;
+ }
+
+ function setTokenMatched(token, matchedType, text, keyword, indent, items) {
+ token.matchedType = matchedType;
+ token.matchedText = text;
+ token.matchedKeyword = keyword;
+ token.matchedIndent = (typeof indent === 'number') ? indent : (token.line == null ? 0 : token.line.indent);
+ token.matchedItems = items || [];
+
+ token.location.column = token.matchedIndent + 1;
+ token.matchedGherkinDialect = dialectName;
+ }
+
+ function unescapeDocString(text) {
+ return activeDocStringSeparator != null ? text.replace("\\\"\\\"\\\"", "\"\"\"") : text;
+ }
+};
+
+},{"./dialects":5,"./errors":6}],14:[function(require,module,exports){
+var Token = require('./token');
+var GherkinLine = require('./gherkin_line');
+
+/**
+ * The scanner reads a gherkin doc (typically read from a .feature file) and creates a token for each line.
+ * The tokens are passed to the parser, which outputs an AST (Abstract Syntax Tree).
+ *
+ * If the scanner sees a `#` language header, it will reconfigure itself dynamically to look for
+ * Gherkin keywords for the associated language. The keywords are defined in gherkin-languages.json.
+ */
+module.exports = function TokenScanner(source) {
+ var lines = source.split(/\r?\n/);
+ if(lines.length > 0 && lines[lines.length-1].trim() == '') {
+ lines.pop();
+ }
+ var lineNumber = 0;
+
+ this.read = function () {
+ var line = lines[lineNumber++];
+ var location = {line: lineNumber, column: 0};
+ return line == null ? new Token(null, location) : new Token(new GherkinLine(line, lineNumber), location);
+ }
+};
+
+},{"./gherkin_line":9,"./token":12}]},{},[1]);
diff --git a/node_modules/gherkin/dist/gherkin.min.js b/node_modules/gherkin/dist/gherkin.min.js
new file mode 100644
index 00000000..1c772128
--- /dev/null
+++ b/node_modules/gherkin/dist/gherkin.min.js
@@ -0,0 +1,27 @@
+/*
+The MIT License (MIT)
+
+Copyright (c) Cucumber Ltd, Gaspar Nagy, Björn Rasmusson, Peter Sergeant
+
+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.
+*/
+(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i0?separatorToken.matchedText:undefined;var lineTokens=node.getTokens("Other");var content=lineTokens.map(function(t){return t.matchedText}).join("\n");var result={type:node.ruleType,location:getLocation(separatorToken),content:content};if(contentType){result.contentType=contentType}return result;case"DataTable":var rows=getTableRows(node);return{type:node.ruleType,location:rows[0].location,rows:rows};case"Background":var backgroundLine=node.getToken("BackgroundLine");var description=getDescription(node);var steps=getSteps(node);return{type:node.ruleType,location:getLocation(backgroundLine),keyword:backgroundLine.matchedKeyword,name:backgroundLine.matchedText,description:description,steps:steps};case"Scenario_Definition":var tags=getTags(node);var scenarioNode=node.getSingle("Scenario");if(scenarioNode){var scenarioLine=scenarioNode.getToken("ScenarioLine");var description=getDescription(scenarioNode);var steps=getSteps(scenarioNode);return{type:scenarioNode.ruleType,tags:tags,location:getLocation(scenarioLine),keyword:scenarioLine.matchedKeyword,name:scenarioLine.matchedText,description:description,steps:steps}}else{var scenarioOutlineNode=node.getSingle("ScenarioOutline");if(!scenarioOutlineNode)throw new Error("Internal grammar error");var scenarioOutlineLine=scenarioOutlineNode.getToken("ScenarioOutlineLine");var description=getDescription(scenarioOutlineNode);var steps=getSteps(scenarioOutlineNode);var examples=scenarioOutlineNode.getItems("Examples_Definition");return{type:scenarioOutlineNode.ruleType,tags:tags,location:getLocation(scenarioOutlineLine),keyword:scenarioOutlineLine.matchedKeyword,name:scenarioOutlineLine.matchedText,description:description,steps:steps,examples:examples}}case"Examples_Definition":var tags=getTags(node);var examplesNode=node.getSingle("Examples");var examplesLine=examplesNode.getToken("ExamplesLine");var description=getDescription(examplesNode);var exampleTable=examplesNode.getSingle("Examples_Table");return{type:examplesNode.ruleType,tags:tags,location:getLocation(examplesLine),keyword:examplesLine.matchedKeyword,name:examplesLine.matchedText,description:description,tableHeader:exampleTable!=undefined?exampleTable.tableHeader:undefined,tableBody:exampleTable!=undefined?exampleTable.tableBody:undefined};case"Examples_Table":var rows=getTableRows(node);return{tableHeader:rows!=undefined?rows[0]:undefined,tableBody:rows!=undefined?rows.slice(1):undefined};case"Description":var lineTokens=node.getTokens("Other");var end=lineTokens.length;while(end>0&&lineTokens[end-1].line.trimmedLineText===""){end--}lineTokens=lineTokens.slice(0,end);var description=lineTokens.map(function(token){return token.matchedText}).join("\n");return description;case"Feature":var header=node.getSingle("Feature_Header");if(!header)return null;var tags=getTags(header);var featureLine=header.getToken("FeatureLine");if(!featureLine)return null;var children=[];var background=node.getSingle("Background");if(background)children.push(background);children=children.concat(node.getItems("Scenario_Definition"));var description=getDescription(header);var language=featureLine.matchedGherkinDialect;return{type:node.ruleType,tags:tags,location:getLocation(featureLine),language:language,keyword:featureLine.matchedKeyword,name:featureLine.matchedText,description:description,children:children};case"GherkinDocument":var feature=node.getSingle("Feature");return{type:node.ruleType,feature:feature,comments:comments};default:return node}}}},{"./ast_node":3,"./errors":6}],3:[function(require,module,exports){function AstNode(ruleType){this.ruleType=ruleType;this._subItems={}}AstNode.prototype.add=function(ruleType,obj){var items=this._subItems[ruleType];if(items===undefined)this._subItems[ruleType]=items=[];items.push(obj)};AstNode.prototype.getSingle=function(ruleType){return(this._subItems[ruleType]||[])[0]};AstNode.prototype.getItems=function(ruleType){return this._subItems[ruleType]||[]};AstNode.prototype.getToken=function(tokenType){return this.getSingle(tokenType)};AstNode.prototype.getTokens=function(tokenType){return this._subItems[tokenType]||[]};module.exports=AstNode},{}],4:[function(require,module,exports){var regexAstralSymbols=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;module.exports=function countSymbols(string){return string.replace(regexAstralSymbols,"_").length}},{}],5:[function(require,module,exports){module.exports=require("./gherkin-languages.json")},{"./gherkin-languages.json":8}],6:[function(require,module,exports){var Errors={};["ParserException","CompositeParserException","UnexpectedTokenException","UnexpectedEOFException","AstBuilderException","NoSuchLanguageException"].forEach(function(name){function ErrorProto(message){this.message=message||"Unspecified "+name;if(Error.captureStackTrace){Error.captureStackTrace(this,arguments.callee)}}ErrorProto.prototype=Object.create(Error.prototype);ErrorProto.prototype.name=name;ErrorProto.prototype.constructor=ErrorProto;Errors[name]=ErrorProto});Errors.CompositeParserException.create=function(errors){var message="Parser errors:\n"+errors.map(function(e){return e.message}).join("\n");var err=new Errors.CompositeParserException(message);err.errors=errors;return err};Errors.UnexpectedTokenException.create=function(token,expectedTokenTypes,stateComment){var message="expected: "+expectedTokenTypes.join(", ")+", got '"+token.getTokenValue().trim()+"'";var location=!token.location.column?{line:token.location.line,column:token.line.indent+1}:token.location;return createError(Errors.UnexpectedEOFException,message,location)};Errors.UnexpectedEOFException.create=function(token,expectedTokenTypes,stateComment){var message="unexpected end of file, expected: "+expectedTokenTypes.join(", ");return createError(Errors.UnexpectedTokenException,message,token.location)};Errors.AstBuilderException.create=function(message,location){return createError(Errors.AstBuilderException,message,location)};Errors.NoSuchLanguageException.create=function(language,location){var message="Language not supported: "+language;return createError(Errors.NoSuchLanguageException,message,location)};function createError(Ctor,message,location){var fullMessage="("+location.line+":"+location.column+"): "+message;var error=new Ctor(fullMessage);error.location=location;return error}module.exports=Errors},{}],7:[function(require,module,exports){var Parser=require("./parser");var Compiler=require("./pickles/compiler");var compiler=new Compiler;var parser=new Parser;parser.stopAtFirstError=false;function generateEvents(data,uri,types,language){types=Object.assign({source:true,"gherkin-document":true,pickle:true},types||{});result=[];try{if(types["source"]){result.push({type:"source",uri:uri,data:data,media:{encoding:"utf-8",type:"text/x.cucumber.gherkin+plain"}})}if(!types["gherkin-document"]&&!types["pickle"])return result;var gherkinDocument=parser.parse(data,language);if(types["gherkin-document"]){result.push({type:"gherkin-document",uri:uri,document:gherkinDocument})}if(types["pickle"]){var pickles=compiler.compile(gherkinDocument);for(var p in pickles){result.push({type:"pickle",uri:uri,pickle:pickles[p]})}}}catch(err){var errors=err.errors||[err];for(var e in errors){result.push({type:"attachment",source:{uri:uri,start:{line:errors[e].location.line,column:errors[e].location.column}},data:errors[e].message,media:{encoding:"utf-8",type:"text/x.cucumber.stacktrace+plain"}})}}return result}module.exports=generateEvents},{"./parser":10,"./pickles/compiler":11}],8:[function(require,module,exports){module.exports={af:{and:["* ","En "],background:["Agtergrond"],but:["* ","Maar "],examples:["Voorbeelde"],feature:["Funksie","Besigheid Behoefte","Vermoë"],given:["* ","Gegewe "],name:"Afrikaans",native:"Afrikaans",scenario:["Situasie"],scenarioOutline:["Situasie Uiteensetting"],then:["* ","Dan "],when:["* ","Wanneer "]},am:{and:["* ","Եվ "],background:["Կոնտեքստ"],but:["* ","Բայց "],examples:["Օրինակներ"],feature:["Ֆունկցիոնալություն","Հատկություն"],given:["* ","Դիցուք "],name:"Armenian",native:"հայերեն",scenario:["Սցենար"],scenarioOutline:["Սցենարի կառուցվացքը"],then:["* ","Ապա "],when:["* ","Եթե ","Երբ "]},an:{and:["* ","Y ","E "],background:["Antecedents"],but:["* ","Pero "],examples:["Eixemplos"],feature:["Caracteristica"],given:["* ","Dau ","Dada ","Daus ","Dadas "],name:"Aragonese",native:"Aragonés",scenario:["Caso"],scenarioOutline:["Esquema del caso"],then:["* ","Alavez ","Allora ","Antonces "],when:["* ","Cuan "]},ar:{and:["* ","و "],background:["الخلفية"],but:["* ","لكن "],examples:["امثلة"],feature:["خاصية"],given:["* ","بفرض "],name:"Arabic",native:"العربية",scenario:["سيناريو"],scenarioOutline:["سيناريو مخطط"],then:["* ","اذاً ","ثم "],when:["* ","متى ","عندما "]},ast:{and:["* ","Y ","Ya "],background:["Antecedentes"],but:["* ","Peru "],examples:["Exemplos"],feature:["Carauterística"],given:["* ","Dáu ","Dada ","Daos ","Daes "],name:"Asturian",native:"asturianu",scenario:["Casu"],scenarioOutline:["Esbozu del casu"],then:["* ","Entós "],when:["* ","Cuando "]},az:{and:["* ","Və ","Həm "],background:["Keçmiş","Kontekst"],but:["* ","Amma ","Ancaq "],examples:["Nümunələr"],feature:["Özəllik"],given:["* ","Tutaq ki ","Verilir "],name:"Azerbaijani",native:"Azərbaycanca",scenario:["Ssenari"],scenarioOutline:["Ssenarinin strukturu"],then:["* ","O halda "],when:["* ","Əgər ","Nə vaxt ki "]},bg:{and:["* ","И "],background:["Предистория"],but:["* ","Но "],examples:["Примери"],feature:["Функционалност"],given:["* ","Дадено "],name:"Bulgarian",native:"български",scenario:["Сценарий"],scenarioOutline:["Рамка на сценарий"],then:["* ","То "],when:["* ","Когато "]},bm:{and:["* ","Dan "],background:["Latar Belakang"],but:["* ","Tetapi ","Tapi "],examples:["Contoh"],feature:["Fungsi"],given:["* ","Diberi ","Bagi "],name:"Malay",native:"Bahasa Melayu",scenario:["Senario","Situasi","Keadaan"],scenarioOutline:["Kerangka Senario","Kerangka Situasi","Kerangka Keadaan","Garis Panduan Senario"],then:["* ","Maka ","Kemudian "],when:["* ","Apabila "]},bs:{and:["* ","I ","A "],background:["Pozadina"],but:["* ","Ali "],examples:["Primjeri"],feature:["Karakteristika"],given:["* ","Dato "],name:"Bosnian",native:"Bosanski",scenario:["Scenariju","Scenario"],scenarioOutline:["Scenariju-obris","Scenario-outline"],then:["* ","Zatim "],when:["* ","Kada "]},ca:{and:["* ","I "],background:["Rerefons","Antecedents"],but:["* ","Però "],examples:["Exemples"],feature:["Característica","Funcionalitat"],given:["* ","Donat ","Donada ","Atès ","Atesa "],name:"Catalan",native:"català",scenario:["Escenari"],scenarioOutline:["Esquema de l'escenari"],then:["* ","Aleshores ","Cal "],when:["* ","Quan "]},cs:{and:["* ","A také ","A "],background:["Pozadí","Kontext"],but:["* ","Ale "],examples:["Příklady"],feature:["Požadavek"],given:["* ","Pokud ","Za předpokladu "],name:"Czech",native:"Česky",scenario:["Scénář"],scenarioOutline:["Náčrt Scénáře","Osnova scénáře"],then:["* ","Pak "],when:["* ","Když "]},"cy-GB":{and:["* ","A "],background:["Cefndir"],but:["* ","Ond "],examples:["Enghreifftiau"],feature:["Arwedd"],given:["* ","Anrhegedig a "],name:"Welsh",native:"Cymraeg",scenario:["Scenario"],scenarioOutline:["Scenario Amlinellol"],then:["* ","Yna "],when:["* ","Pryd "]},da:{and:["* ","Og "],background:["Baggrund"],but:["* ","Men "],examples:["Eksempler"],feature:["Egenskab"],given:["* ","Givet "],name:"Danish",native:"dansk",scenario:["Scenarie"],scenarioOutline:["Abstrakt Scenario"],then:["* ","Så "],when:["* ","Når "]},de:{and:["* ","Und "],background:["Grundlage"],but:["* ","Aber "],examples:["Beispiele"],feature:["Funktionalität"],given:["* ","Angenommen ","Gegeben sei ","Gegeben seien "],name:"German",native:"Deutsch",scenario:["Szenario"],scenarioOutline:["Szenariogrundriss"],then:["* ","Dann "],when:["* ","Wenn "]},el:{and:["* ","Και "],background:["Υπόβαθρο"],but:["* ","Αλλά "],examples:["Παραδείγματα","Σενάρια"],feature:["Δυνατότητα","Λειτουργία"],given:["* ","Δεδομένου "],name:"Greek",native:"Ελληνικά",scenario:["Σενάριο"],scenarioOutline:["Περιγραφή Σεναρίου","Περίγραμμα Σεναρίου"],then:["* ","Τότε "],when:["* ","Όταν "]},em:{and:["* ","😂"],background:["💤"],but:["* ","😔"],examples:["📓"],feature:["📚"],given:["* ","😐"],name:"Emoji",native:"😀",scenario:["📕"],scenarioOutline:["📖"],then:["* ","🙏"],when:["* ","🎬"]},en:{and:["* ","And "],background:["Background"],but:["* ","But "],examples:["Examples","Scenarios"],feature:["Feature","Business Need","Ability"],given:["* ","Given "],name:"English",native:"English",scenario:["Scenario"],scenarioOutline:["Scenario Outline","Scenario Template"],then:["* ","Then "],when:["* ","When "]},"en-Scouse":{and:["* ","An "],background:["Dis is what went down"],but:["* ","Buh "],examples:["Examples"],feature:["Feature"],given:["* ","Givun ","Youse know when youse got "],name:"Scouse",native:"Scouse",scenario:["The thing of it is"],scenarioOutline:["Wharrimean is"],then:["* ","Dun ","Den youse gotta "],when:["* ","Wun ","Youse know like when "]},"en-au":{and:["* ","Too right "],background:["First off"],but:["* ","Yeah nah "],examples:["You'll wanna"],feature:["Pretty much"],given:["* ","Y'know "],name:"Australian",native:"Australian",scenario:["Awww, look mate"],scenarioOutline:["Reckon it's like"],then:["* ","But at the end of the day I reckon "],when:["* ","It's just unbelievable "]},"en-lol":{and:["* ","AN "],background:["B4"],but:["* ","BUT "],examples:["EXAMPLZ"],feature:["OH HAI"],given:["* ","I CAN HAZ "],name:"LOLCAT",native:"LOLCAT",scenario:["MISHUN"],scenarioOutline:["MISHUN SRSLY"],then:["* ","DEN "],when:["* ","WEN "]},"en-old":{and:["* ","Ond ","7 "],background:["Aer","Ær"],but:["* ","Ac "],examples:["Se the","Se þe","Se ðe"],feature:["Hwaet","Hwæt"],given:["* ","Thurh ","Þurh ","Ðurh "],name:"Old English",native:"Englisc",scenario:["Swa"],scenarioOutline:["Swa hwaer swa","Swa hwær swa"],then:["* ","Tha ","Þa ","Ða ","Tha the ","Þa þe ","Ða ðe "],when:["* ","Tha ","Þa ","Ða "]},"en-pirate":{and:["* ","Aye "],background:["Yo-ho-ho"],but:["* ","Avast! "],examples:["Dead men tell no tales"],feature:["Ahoy matey!"],given:["* ","Gangway! "],name:"Pirate",native:"Pirate",scenario:["Heave to"],scenarioOutline:["Shiver me timbers"],then:["* ","Let go and haul "],when:["* ","Blimey! "]},eo:{and:["* ","Kaj "],background:["Fono"],but:["* ","Sed "],examples:["Ekzemploj"],feature:["Trajto"],given:["* ","Donitaĵo ","Komence "],name:"Esperanto",native:"Esperanto",scenario:["Scenaro","Kazo"],scenarioOutline:["Konturo de la scenaro","Skizo","Kazo-skizo"],then:["* ","Do "],when:["* ","Se "]},es:{and:["* ","Y ","E "],background:["Antecedentes"],but:["* ","Pero "],examples:["Ejemplos"],feature:["Característica"],given:["* ","Dado ","Dada ","Dados ","Dadas "],name:"Spanish",native:"español",scenario:["Escenario"],scenarioOutline:["Esquema del escenario"],then:["* ","Entonces "],when:["* ","Cuando "]},et:{and:["* ","Ja "],background:["Taust"],but:["* ","Kuid "],examples:["Juhtumid"],feature:["Omadus"],given:["* ","Eeldades "],name:"Estonian",native:"eesti keel",scenario:["Stsenaarium"],scenarioOutline:["Raamstsenaarium"],then:["* ","Siis "],when:["* ","Kui "]},fa:{and:["* ","و "],background:["زمینه"],but:["* ","اما "],examples:["نمونه ها"],feature:["وِیژگی"],given:["* ","با فرض "],name:"Persian",native:"فارسی",scenario:["سناریو"],scenarioOutline:["الگوی سناریو"],then:["* ","آنگاه "],when:["* ","هنگامی "]},fi:{and:["* ","Ja "],background:["Tausta"],but:["* ","Mutta "],examples:["Tapaukset"],feature:["Ominaisuus"],given:["* ","Oletetaan "],name:"Finnish",native:"suomi",scenario:["Tapaus"],scenarioOutline:["Tapausaihio"],then:["* ","Niin "],when:["* ","Kun "]},fr:{and:["* ","Et que ","Et qu'","Et "],background:["Contexte"],but:["* ","Mais que ","Mais qu'","Mais "],examples:["Exemples"],feature:["Fonctionnalité"],given:["* ","Soit ","Etant donné que ","Etant donné qu'","Etant donné ","Etant donnée ","Etant donnés ","Etant données ","Étant donné que ","Étant donné qu'","Étant donné ","Étant donnée ","Étant donnés ","Étant données "],name:"French",native:"français",scenario:["Scénario"],scenarioOutline:["Plan du scénario","Plan du Scénario"],then:["* ","Alors "],when:["* ","Quand ","Lorsque ","Lorsqu'"]},ga:{and:["* ","Agus"],background:["Cúlra"],but:["* ","Ach"],examples:["Samplaí"],feature:["Gné"],given:["* ","Cuir i gcás go","Cuir i gcás nach","Cuir i gcás gur","Cuir i gcás nár"],name:"Irish",native:"Gaeilge",scenario:["Cás"],scenarioOutline:["Cás Achomair"],then:["* ","Ansin"],when:["* ","Nuair a","Nuair nach","Nuair ba","Nuair nár"]},gj:{and:["* ","અને "],background:["બેકગ્રાઉન્ડ"],but:["* ","પણ "],examples:["ઉદાહરણો"],feature:["લક્ષણ","વ્યાપાર જરૂર","ક્ષમતા"],given:["* ","આપેલ છે "],name:"Gujarati",native:"ગુજરાતી",scenario:["સ્થિતિ"],scenarioOutline:["પરિદ્દશ્ય રૂપરેખા","પરિદ્દશ્ય ઢાંચો"],then:["* ","પછી "],when:["* ","ક્યારે "]},gl:{and:["* ","E "],background:["Contexto"],but:["* ","Mais ","Pero "],examples:["Exemplos"],feature:["Característica"],given:["* ","Dado ","Dada ","Dados ","Dadas "],name:"Galician",native:"galego",scenario:["Escenario"],scenarioOutline:["Esbozo do escenario"],then:["* ","Entón ","Logo "],when:["* ","Cando "]},he:{and:["* ","וגם "],background:["רקע"],but:["* ","אבל "],examples:["דוגמאות"],feature:["תכונה"],given:["* ","בהינתן "],name:"Hebrew",native:"עברית",scenario:["תרחיש"],scenarioOutline:["תבנית תרחיש"],then:["* ","אז ","אזי "],when:["* ","כאשר "]},hi:{and:["* ","और ","तथा "],background:["पृष्ठभूमि"],but:["* ","पर ","परन्तु ","किन्तु "],examples:["उदाहरण"],feature:["रूप लेख"],given:["* ","अगर ","यदि ","चूंकि "],name:"Hindi",native:"हिंदी",scenario:["परिदृश्य"],scenarioOutline:["परिदृश्य रूपरेखा"],then:["* ","तब ","तदा "],when:["* ","जब ","कदा "]},hr:{and:["* ","I "],background:["Pozadina"],but:["* ","Ali "],examples:["Primjeri","Scenariji"],feature:["Osobina","Mogućnost","Mogucnost"],given:["* ","Zadan ","Zadani ","Zadano "],name:"Croatian",native:"hrvatski",scenario:["Scenarij"],scenarioOutline:["Skica","Koncept"],then:["* ","Onda "],when:["* ","Kada ","Kad "]},ht:{and:["* ","Ak ","Epi ","E "],background:["Kontèks","Istorik"],but:["* ","Men "],examples:["Egzanp"],feature:["Karakteristik","Mak","Fonksyonalite"],given:["* ","Sipoze ","Sipoze ke ","Sipoze Ke "],name:"Creole",native:"kreyòl",scenario:["Senaryo"],scenarioOutline:["Plan senaryo","Plan Senaryo","Senaryo deskripsyon","Senaryo Deskripsyon","Dyagram senaryo","Dyagram Senaryo"],then:["* ","Lè sa a ","Le sa a "],when:["* ","Lè ","Le "]},hu:{and:["* ","És "],background:["Háttér"],but:["* ","De "],examples:["Példák"],feature:["Jellemző"],given:["* ","Amennyiben ","Adott "],name:"Hungarian",native:"magyar",scenario:["Forgatókönyv"],scenarioOutline:["Forgatókönyv vázlat"],then:["* ","Akkor "],when:["* ","Majd ","Ha ","Amikor "]},id:{and:["* ","Dan "],background:["Dasar"],but:["* ","Tapi "],examples:["Contoh"],feature:["Fitur"],given:["* ","Dengan "],name:"Indonesian",native:"Bahasa Indonesia",scenario:["Skenario"],scenarioOutline:["Skenario konsep"],then:["* ","Maka "],when:["* ","Ketika "]},is:{and:["* ","Og "],background:["Bakgrunnur"],but:["* ","En "],examples:["Dæmi","Atburðarásir"],feature:["Eiginleiki"],given:["* ","Ef "],name:"Icelandic",native:"Íslenska",scenario:["Atburðarás"],scenarioOutline:["Lýsing Atburðarásar","Lýsing Dæma"],then:["* ","Þá "],when:["* ","Þegar "]},it:{and:["* ","E "],background:["Contesto"],but:["* ","Ma "],examples:["Esempi"],feature:["Funzionalità"],given:["* ","Dato ","Data ","Dati ","Date "],name:"Italian",native:"italiano",scenario:["Scenario"],scenarioOutline:["Schema dello scenario"],then:["* ","Allora "],when:["* ","Quando "]},ja:{and:["* ","かつ"],background:["背景"],but:["* ","しかし","但し","ただし"],examples:["例","サンプル"],feature:["フィーチャ","機能"],given:["* ","前提"],name:"Japanese",native:"日本語",scenario:["シナリオ"],scenarioOutline:["シナリオアウトライン","シナリオテンプレート","テンプレ","シナリオテンプレ"],then:["* ","ならば"],when:["* ","もし"]},jv:{and:["* ","Lan "],background:["Dasar"],but:["* ","Tapi ","Nanging ","Ananging "],examples:["Conto","Contone"],feature:["Fitur"],given:["* ","Nalika ","Nalikaning "],name:"Javanese",native:"Basa Jawa",scenario:["Skenario"],scenarioOutline:["Konsep skenario"],then:["* ","Njuk ","Banjur "],when:["* ","Manawa ","Menawa "]},ka:{and:["* ","და"],background:["კონტექსტი"],but:["* ","მაგრამ"],examples:["მაგალითები"],feature:["თვისება"],given:["* ","მოცემული"],name:"Georgian",native:"ქართველი",scenario:["სცენარის"],scenarioOutline:["სცენარის ნიმუში"],then:["* ","მაშინ"],when:["* ","როდესაც"]},kn:{and:["* ","ಮತ್ತು "],background:["ಹಿನ್ನೆಲೆ"],but:["* ","ಆದರೆ "],examples:["ಉದಾಹರಣೆಗಳು"],feature:["ಹೆಚ್ಚಳ"],given:["* ","ನೀಡಿದ "],name:"Kannada",native:"ಕನ್ನಡ",scenario:["ಕಥಾಸಾರಾಂಶ"],scenarioOutline:["ವಿವರಣೆ"],then:["* ","ನಂತರ "],when:["* ","ಸ್ಥಿತಿಯನ್ನು "]},ko:{and:["* ","그리고"],background:["배경"],but:["* ","하지만","단"],examples:["예"],feature:["기능"],given:["* ","조건","먼저"],name:"Korean",native:"한국어",scenario:["시나리오"],scenarioOutline:["시나리오 개요"],then:["* ","그러면"],when:["* ","만일","만약"]},lt:{and:["* ","Ir "],background:["Kontekstas"],but:["* ","Bet "],examples:["Pavyzdžiai","Scenarijai","Variantai"],feature:["Savybė"],given:["* ","Duota "],name:"Lithuanian",native:"lietuvių kalba",scenario:["Scenarijus"],scenarioOutline:["Scenarijaus šablonas"],then:["* ","Tada "],when:["* ","Kai "]},lu:{and:["* ","an ","a "],background:["Hannergrond"],but:["* ","awer ","mä "],examples:["Beispiller"],feature:["Funktionalitéit"],given:["* ","ugeholl "],name:"Luxemburgish",native:"Lëtzebuergesch",scenario:["Szenario"],scenarioOutline:["Plang vum Szenario"],then:["* ","dann "],when:["* ","wann "]},lv:{and:["* ","Un "],background:["Konteksts","Situācija"],but:["* ","Bet "],examples:["Piemēri","Paraugs"],feature:["Funkcionalitāte","Fīča"],given:["* ","Kad "],name:"Latvian",native:"latviešu",scenario:["Scenārijs"],scenarioOutline:["Scenārijs pēc parauga"],then:["* ","Tad "],when:["* ","Ja "]},"mk-Cyrl":{and:["* ","И "],background:["Контекст","Содржина"],but:["* ","Но "],examples:["Примери","Сценарија"],feature:["Функционалност","Бизнис потреба","Можност"],given:["* ","Дадено ","Дадена "],name:"Macedonian",native:"Македонски",scenario:["Сценарио","На пример"],scenarioOutline:["Преглед на сценарија","Скица","Концепт"],then:["* ","Тогаш "],when:["* ","Кога "]},"mk-Latn":{and:["* ","I "],background:["Kontekst","Sodrzhina"],but:["* ","No "],examples:["Primeri","Scenaria"],feature:["Funkcionalnost","Biznis potreba","Mozhnost"],given:["* ","Dadeno ","Dadena "],name:"Macedonian (Latin)",native:"Makedonski (Latinica)",scenario:["Scenario","Na primer"],scenarioOutline:["Pregled na scenarija","Skica","Koncept"],then:["* ","Togash "],when:["* ","Koga "]},mn:{and:["* ","Мөн ","Тэгээд "],background:["Агуулга"],but:["* ","Гэхдээ ","Харин "],examples:["Тухайлбал"],feature:["Функц","Функционал"],given:["* ","Өгөгдсөн нь ","Анх "],name:"Mongolian",native:"монгол",scenario:["Сценар"],scenarioOutline:["Сценарын төлөвлөгөө"],then:["* ","Тэгэхэд ","Үүний дараа "],when:["* ","Хэрэв "]},nl:{and:["* ","En "],background:["Achtergrond"],but:["* ","Maar "],examples:["Voorbeelden"],feature:["Functionaliteit"],given:["* ","Gegeven ","Stel "],name:"Dutch",native:"Nederlands",scenario:["Scenario"],scenarioOutline:["Abstract Scenario"],then:["* ","Dan "],when:["* ","Als ","Wanneer "]},no:{and:["* ","Og "],background:["Bakgrunn"],but:["* ","Men "],examples:["Eksempler"],feature:["Egenskap"],given:["* ","Gitt "],name:"Norwegian",native:"norsk",scenario:["Scenario"],scenarioOutline:["Scenariomal","Abstrakt Scenario"],then:["* ","Så "],when:["* ","Når "]},pa:{and:["* ","ਅਤੇ "],background:["ਪਿਛੋਕੜ"],but:["* ","ਪਰ "],examples:["ਉਦਾਹਰਨਾਂ"],feature:["ਖਾਸੀਅਤ","ਮੁਹਾਂਦਰਾ","ਨਕਸ਼ ਨੁਹਾਰ"],given:["* ","ਜੇਕਰ ","ਜਿਵੇਂ ਕਿ "],name:"Panjabi",native:"ਪੰਜਾਬੀ",scenario:["ਪਟਕਥਾ"],scenarioOutline:["ਪਟਕਥਾ ਢਾਂਚਾ","ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ"],then:["* ","ਤਦ "],when:["* ","ਜਦੋਂ "]},pl:{and:["* ","Oraz ","I "],background:["Założenia"],but:["* ","Ale "],examples:["Przykłady"],feature:["Właściwość","Funkcja","Aspekt","Potrzeba biznesowa"],given:["* ","Zakładając ","Mając ","Zakładając, że "],name:"Polish",native:"polski",scenario:["Scenariusz"],scenarioOutline:["Szablon scenariusza"],then:["* ","Wtedy "],when:["* ","Jeżeli ","Jeśli ","Gdy ","Kiedy "]},pt:{and:["* ","E "],background:["Contexto","Cenário de Fundo","Cenario de Fundo","Fundo"],but:["* ","Mas "],examples:["Exemplos","Cenários","Cenarios"],feature:["Funcionalidade","Característica","Caracteristica"],given:["* ","Dado ","Dada ","Dados ","Dadas "],name:"Portuguese",native:"português",scenario:["Cenário","Cenario"],scenarioOutline:["Esquema do Cenário","Esquema do Cenario","Delineação do Cenário","Delineacao do Cenario"],then:["* ","Então ","Entao "],when:["* ","Quando "]},ro:{and:["* ","Si ","Și ","Şi "],background:["Context"],but:["* ","Dar "],examples:["Exemple"],feature:["Functionalitate","Funcționalitate","Funcţionalitate"],given:["* ","Date fiind ","Dat fiind ","Dată fiind","Dati fiind ","Dați fiind ","Daţi fiind "],name:"Romanian",native:"română",scenario:["Scenariu"],scenarioOutline:["Structura scenariu","Structură scenariu"],then:["* ","Atunci "],when:["* ","Cand ","Când "]},ru:{and:["* ","И ","К тому же ","Также "],background:["Предыстория","Контекст"],but:["* ","Но ","А ","Иначе "],examples:["Примеры"],feature:["Функция","Функциональность","Функционал","Свойство"],given:["* ","Допустим ","Дано ","Пусть "],name:"Russian",native:"русский",scenario:["Сценарий"],scenarioOutline:["Структура сценария"],then:["* ","То ","Затем ","Тогда "],when:["* ","Когда ","Если "]},sk:{and:["* ","A ","A tiež ","A taktiež ","A zároveň "],background:["Pozadie"],but:["* ","Ale "],examples:["Príklady"],feature:["Požiadavka","Funkcia","Vlastnosť"],given:["* ","Pokiaľ ","Za predpokladu "],name:"Slovak",native:"Slovensky",scenario:["Scenár"],scenarioOutline:["Náčrt Scenáru","Náčrt Scenára","Osnova Scenára"],then:["* ","Tak ","Potom "],when:["* ","Keď ","Ak "]},sl:{and:["In ","Ter "],background:["Kontekst","Osnova","Ozadje"],but:["Toda ","Ampak ","Vendar "],examples:["Primeri","Scenariji"],feature:["Funkcionalnost","Funkcija","Možnosti","Moznosti","Lastnost","Značilnost"],given:["Dano ","Podano ","Zaradi ","Privzeto "],name:"Slovenian",native:"Slovenski",scenario:["Scenarij","Primer"],scenarioOutline:["Struktura scenarija","Skica","Koncept","Oris scenarija","Osnutek"],then:["Nato ","Potem ","Takrat "],when:["Ko ","Ce ","Če ","Kadar "]},"sr-Cyrl":{and:["* ","И "],background:["Контекст","Основа","Позадина"],but:["* ","Али "],examples:["Примери","Сценарији"],feature:["Функционалност","Могућност","Особина"],given:["* ","За дато ","За дате ","За дати "],name:"Serbian",native:"Српски",scenario:["Сценарио","Пример"],scenarioOutline:["Структура сценарија","Скица","Концепт"],then:["* ","Онда "],when:["* ","Када ","Кад "]},"sr-Latn":{and:["* ","I "],background:["Kontekst","Osnova","Pozadina"],but:["* ","Ali "],examples:["Primeri","Scenariji"],feature:["Funkcionalnost","Mogućnost","Mogucnost","Osobina"],given:["* ","Za dato ","Za date ","Za dati "],name:"Serbian (Latin)",native:"Srpski (Latinica)",scenario:["Scenario","Primer"],scenarioOutline:["Struktura scenarija","Skica","Koncept"],then:["* ","Onda "],when:["* ","Kada ","Kad "]},sv:{and:["* ","Och "],background:["Bakgrund"],but:["* ","Men "],examples:["Exempel"],feature:["Egenskap"],given:["* ","Givet "],name:"Swedish",native:"Svenska",scenario:["Scenario"],scenarioOutline:["Abstrakt Scenario","Scenariomall"],then:["* ","Så "],when:["* ","När "]},ta:{and:["* ","மேலும் ","மற்றும் "],background:["பின்னணி"],but:["* ","ஆனால் "],examples:["எடுத்துக்காட்டுகள்","காட்சிகள்"," நிலைமைகளில்"],feature:["அம்சம்","வணிக தேவை","திறன்"],given:["* ","கொடுக்கப்பட்ட "],name:"Tamil",native:"தமிழ்",scenario:["காட்சி"],scenarioOutline:["காட்சி சுருக்கம்","காட்சி வார்ப்புரு"],then:["* ","அப்பொழுது "],when:["* ","எப்போது "]},th:{and:["* ","และ "],background:["แนวคิด"],but:["* ","แต่ "],examples:["ชุดของตัวอย่าง","ชุดของเหตุการณ์"],feature:["โครงหลัก","ความต้องการทางธุรกิจ","ความสามารถ"],given:["* ","กำหนดให้ "],name:"Thai",native:"ไทย",scenario:["เหตุการณ์"],scenarioOutline:["สรุปเหตุการณ์","โครงสร้างของเหตุการณ์"],then:["* ","ดังนั้น "],when:["* ","เมื่อ "]},tl:{and:["* ","మరియు "],background:["నేపథ్యం"],but:["* ","కాని "],examples:["ఉదాహరణలు"],feature:["గుణము"],given:["* ","చెప్పబడినది "],name:"Telugu",native:"తెలుగు",
+scenario:["సన్నివేశం"],scenarioOutline:["కథనం"],then:["* ","అప్పుడు "],when:["* ","ఈ పరిస్థితిలో "]},tlh:{and:["* ","'ej ","latlh "],background:["mo'"],but:["* ","'ach ","'a "],examples:["ghantoH","lutmey"],feature:["Qap","Qu'meH 'ut","perbogh","poQbogh malja'","laH"],given:["* ","ghu' noblu' ","DaH ghu' bejlu' "],name:"Klingon",native:"tlhIngan",scenario:["lut"],scenarioOutline:["lut chovnatlh"],then:["* ","vaj "],when:["* ","qaSDI' "]},tr:{and:["* ","Ve "],background:["Geçmiş"],but:["* ","Fakat ","Ama "],examples:["Örnekler"],feature:["Özellik"],given:["* ","Diyelim ki "],name:"Turkish",native:"Türkçe",scenario:["Senaryo"],scenarioOutline:["Senaryo taslağı"],then:["* ","O zaman "],when:["* ","Eğer ki "]},tt:{and:["* ","Һәм ","Вә "],background:["Кереш"],but:["* ","Ләкин ","Әмма "],examples:["Үрнәкләр","Мисаллар"],feature:["Мөмкинлек","Үзенчәлеклелек"],given:["* ","Әйтик "],name:"Tatar",native:"Татарча",scenario:["Сценарий"],scenarioOutline:["Сценарийның төзелеше"],then:["* ","Нәтиҗәдә "],when:["* ","Әгәр "]},uk:{and:["* ","І ","А також ","Та "],background:["Передумова"],but:["* ","Але "],examples:["Приклади"],feature:["Функціонал"],given:["* ","Припустимо ","Припустимо, що ","Нехай ","Дано "],name:"Ukrainian",native:"Українська",scenario:["Сценарій"],scenarioOutline:["Структура сценарію"],then:["* ","То ","Тоді "],when:["* ","Якщо ","Коли "]},ur:{and:["* ","اور "],background:["پس منظر"],but:["* ","لیکن "],examples:["مثالیں"],feature:["صلاحیت","کاروبار کی ضرورت","خصوصیت"],given:["* ","اگر ","بالفرض ","فرض کیا "],name:"Urdu",native:"اردو",scenario:["منظرنامہ"],scenarioOutline:["منظر نامے کا خاکہ"],then:["* ","پھر ","تب "],when:["* ","جب "]},uz:{and:["* ","Ва "],background:["Тарих"],but:["* ","Лекин ","Бирок ","Аммо "],examples:["Мисоллар"],feature:["Функционал"],given:["* ","Агар "],name:"Uzbek",native:"Узбекча",scenario:["Сценарий"],scenarioOutline:["Сценарий структураси"],then:["* ","Унда "],when:["* ","Агар "]},vi:{and:["* ","Và "],background:["Bối cảnh"],but:["* ","Nhưng "],examples:["Dữ liệu"],feature:["Tính năng"],given:["* ","Biết ","Cho "],name:"Vietnamese",native:"Tiếng Việt",scenario:["Tình huống","Kịch bản"],scenarioOutline:["Khung tình huống","Khung kịch bản"],then:["* ","Thì "],when:["* ","Khi "]},"zh-CN":{and:["* ","而且","并且","同时"],background:["背景"],but:["* ","但是"],examples:["例子"],feature:["功能"],given:["* ","假如","假设","假定"],name:"Chinese simplified",native:"简体中文",scenario:["场景","剧本"],scenarioOutline:["场景大纲","剧本大纲"],then:["* ","那么"],when:["* ","当"]},"zh-TW":{and:["* ","而且","並且","同時"],background:["背景"],but:["* ","但是"],examples:["例子"],feature:["功能"],given:["* ","假如","假設","假定"],name:"Chinese traditional",native:"繁體中文",scenario:["場景","劇本"],scenarioOutline:["場景大綱","劇本大綱"],then:["* ","那麼"],when:["* ","當"]}}},{}],9:[function(require,module,exports){var countSymbols=require("./count_symbols");function GherkinLine(lineText,lineNumber){this.lineText=lineText;this.lineNumber=lineNumber;this.trimmedLineText=lineText.replace(/^\s+/g,"");this.isEmpty=this.trimmedLineText.length==0;this.indent=countSymbols(lineText)-countSymbols(this.trimmedLineText)}GherkinLine.prototype.startsWith=function startsWith(prefix){return this.trimmedLineText.indexOf(prefix)==0};GherkinLine.prototype.startsWithTitleKeyword=function startsWithTitleKeyword(keyword){return this.startsWith(keyword+":")};GherkinLine.prototype.getLineText=function getLineText(indentToRemove){if(indentToRemove<0||indentToRemove>this.indent){return this.trimmedLineText}else{return this.lineText.substring(indentToRemove)}};GherkinLine.prototype.getRestTrimmed=function getRestTrimmed(length){return this.trimmedLineText.substring(length).trim()};GherkinLine.prototype.getTableCells=function getTableCells(){var cells=[];var col=0;var startCol=col+1;var cell="";var firstCell=true;while(col0){throw Errors.CompositeParserException.create(context.errors)}return getResult()};function addError(context,error){context.errors.push(error);if(context.errors.length>10)throw Errors.CompositeParserException.create(context.errors)}function startRule(context,ruleType){handleAstError(context,function(){builder.startRule(ruleType)})}function endRule(context,ruleType){handleAstError(context,function(){builder.endRule(ruleType)})}function build(context,token){handleAstError(context,function(){builder.build(token)})}function getResult(){return builder.getResult()}function handleAstError(context,action){handleExternalError(context,true,action)}function handleExternalError(context,defaultValue,action){if(self.stopAtFirstError)return action();try{return action()}catch(e){if(e instanceof Errors.CompositeParserException){e.errors.forEach(function(error){addError(context,error)})}else if(e instanceof Errors.ParserException||e instanceof Errors.AstBuilderException||e instanceof Errors.UnexpectedTokenException||e instanceof Errors.NoSuchLanguageException){addError(context,e)}else{throw e}}return defaultValue}function readToken(context){return context.tokenQueue.length>0?context.tokenQueue.shift():context.tokenScanner.read()}function matchToken(state,token,context){switch(state){case 0:return matchTokenAt_0(token,context);case 1:return matchTokenAt_1(token,context);case 2:return matchTokenAt_2(token,context);case 3:return matchTokenAt_3(token,context);case 4:return matchTokenAt_4(token,context);case 5:return matchTokenAt_5(token,context);case 6:return matchTokenAt_6(token,context);case 7:return matchTokenAt_7(token,context);case 8:return matchTokenAt_8(token,context);case 9:return matchTokenAt_9(token,context);case 10:return matchTokenAt_10(token,context);case 11:return matchTokenAt_11(token,context);case 12:return matchTokenAt_12(token,context);case 13:return matchTokenAt_13(token,context);case 14:return matchTokenAt_14(token,context);case 15:return matchTokenAt_15(token,context);case 16:return matchTokenAt_16(token,context);case 17:return matchTokenAt_17(token,context);case 18:return matchTokenAt_18(token,context);case 19:return matchTokenAt_19(token,context);case 20:return matchTokenAt_20(token,context);case 21:return matchTokenAt_21(token,context);case 22:return matchTokenAt_22(token,context);case 23:return matchTokenAt_23(token,context);case 24:return matchTokenAt_24(token,context);case 25:return matchTokenAt_25(token,context);case 26:return matchTokenAt_26(token,context);case 28:return matchTokenAt_28(token,context);case 29:return matchTokenAt_29(token,context);case 30:return matchTokenAt_30(token,context);case 31:return matchTokenAt_31(token,context);case 32:return matchTokenAt_32(token,context);case 33:return matchTokenAt_33(token,context);default:throw new Error("Unknown state: "+state)}}function matchTokenAt_0(token,context){if(match_EOF(context,token)){build(context,token);return 27}if(match_Language(context,token)){startRule(context,"Feature");startRule(context,"Feature_Header");build(context,token);return 1}if(match_TagLine(context,token)){startRule(context,"Feature");startRule(context,"Feature_Header");startRule(context,"Tags");build(context,token);return 2}if(match_FeatureLine(context,token)){startRule(context,"Feature");startRule(context,"Feature_Header");build(context,token);return 3}if(match_Comment(context,token)){build(context,token);return 0}if(match_Empty(context,token)){build(context,token);return 0}var stateComment="State: 0 - Start";token.detach();var expectedTokens=["#EOF","#Language","#TagLine","#FeatureLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 0}function matchTokenAt_1(token,context){if(match_TagLine(context,token)){startRule(context,"Tags");build(context,token);return 2}if(match_FeatureLine(context,token)){build(context,token);return 3}if(match_Comment(context,token)){build(context,token);return 1}if(match_Empty(context,token)){build(context,token);return 1}var stateComment="State: 1 - GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0";token.detach();var expectedTokens=["#TagLine","#FeatureLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 1}function matchTokenAt_2(token,context){if(match_TagLine(context,token)){build(context,token);return 2}if(match_FeatureLine(context,token)){endRule(context,"Tags");build(context,token);return 3}if(match_Comment(context,token)){build(context,token);return 2}if(match_Empty(context,token)){build(context,token);return 2}var stateComment="State: 2 - GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0";token.detach();var expectedTokens=["#TagLine","#FeatureLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 2}function matchTokenAt_3(token,context){if(match_EOF(context,token)){endRule(context,"Feature_Header");endRule(context,"Feature");build(context,token);return 27}if(match_Empty(context,token)){build(context,token);return 3}if(match_Comment(context,token)){build(context,token);return 5}if(match_BackgroundLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Background");build(context,token);return 6}if(match_TagLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){startRule(context,"Description");build(context,token);return 4}var stateComment="State: 3 - GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0";token.detach();var expectedTokens=["#EOF","#Empty","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 3}function matchTokenAt_4(token,context){if(match_EOF(context,token)){endRule(context,"Description");endRule(context,"Feature_Header");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){endRule(context,"Description");build(context,token);return 5}if(match_BackgroundLine(context,token)){endRule(context,"Description");endRule(context,"Feature_Header");startRule(context,"Background");build(context,token);return 6}if(match_TagLine(context,token)){endRule(context,"Description");endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Description");endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Description");endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){build(context,token);return 4}var stateComment="State: 4 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0";token.detach();var expectedTokens=["#EOF","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 4}function matchTokenAt_5(token,context){if(match_EOF(context,token)){endRule(context,"Feature_Header");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){build(context,token);return 5}if(match_BackgroundLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Background");build(context,token);return 6}if(match_TagLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Feature_Header");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Empty(context,token)){build(context,token);return 5}var stateComment="State: 5 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0";token.detach();var expectedTokens=["#EOF","#Comment","#BackgroundLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 5}function matchTokenAt_6(token,context){if(match_EOF(context,token)){endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_Empty(context,token)){build(context,token);return 6}if(match_Comment(context,token)){build(context,token);return 8}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){startRule(context,"Description");build(context,token);return 7}var stateComment="State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0";token.detach();var expectedTokens=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 6}function matchTokenAt_7(token,context){if(match_EOF(context,token)){endRule(context,"Description");endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){endRule(context,"Description");build(context,token);return 8}if(match_StepLine(context,token)){endRule(context,"Description");startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"Description");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Description");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Description");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){build(context,token);return 7}var stateComment="State: 7 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 7}function matchTokenAt_8(token,context){if(match_EOF(context,token)){endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){build(context,token);return 8}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Empty(context,token)){build(context,token);return 8}var stateComment="State: 8 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 8}function matchTokenAt_9(token,context){if(match_EOF(context,token)){endRule(context,"Step");endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){startRule(context,"DataTable");build(context,token);return 10}if(match_DocStringSeparator(context,token)){startRule(context,"DocString");build(context,token);return 32}if(match_StepLine(context,token)){endRule(context,"Step");startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 9}if(match_Empty(context,token)){build(context,token);return 9}var stateComment="State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0";token.detach();var expectedTokens=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 9}function matchTokenAt_10(token,context){if(match_EOF(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){build(context,token);return 10}if(match_StepLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 10}if(match_Empty(context,token)){build(context,token);return 10}var stateComment="State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";token.detach();var expectedTokens=["#EOF","#TableRow","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 10}function matchTokenAt_11(token,context){if(match_TagLine(context,token)){build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Tags");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Tags");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 11}if(match_Empty(context,token)){build(context,token);return 11}var stateComment="State: 11 - GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0";token.detach();var expectedTokens=["#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 11}function matchTokenAt_12(token,context){if(match_EOF(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Empty(context,token)){build(context,token);return 12}if(match_Comment(context,token)){build(context,token);return 14}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){startRule(context,"Description");build(context,token);return 13}var stateComment="State: 12 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0";token.detach();var expectedTokens=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 12}function matchTokenAt_13(token,context){if(match_EOF(context,token)){endRule(context,"Description");endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){endRule(context,"Description");build(context,token);return 14}if(match_StepLine(context,token)){endRule(context,"Description");startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"Description");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Description");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Description");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){build(context,token);return 13}var stateComment="State: 13 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 13}function matchTokenAt_14(token,context){if(match_EOF(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){build(context,token);return 14}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Empty(context,token)){build(context,token);return 14}var stateComment="State: 14 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 14}function matchTokenAt_15(token,context){if(match_EOF(context,token)){endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){startRule(context,"DataTable");build(context,token);return 16}if(match_DocStringSeparator(context,token)){startRule(context,"DocString");build(context,token);return 30}if(match_StepLine(context,token)){endRule(context,"Step");startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 15}if(match_Empty(context,token)){build(context,token);return 15}var stateComment="State: 15 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0";token.detach();var expectedTokens=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 15}function matchTokenAt_16(token,context){if(match_EOF(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){build(context,token);return 16}if(match_StepLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Scenario")
+;endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 16}if(match_Empty(context,token)){build(context,token);return 16}var stateComment="State: 16 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";token.detach();var expectedTokens=["#EOF","#TableRow","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 16}function matchTokenAt_17(token,context){if(match_EOF(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Empty(context,token)){build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 19}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){startRule(context,"Description");build(context,token);return 18}var stateComment="State: 17 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0";token.detach();var expectedTokens=["#EOF","#Empty","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 17}function matchTokenAt_18(token,context){if(match_EOF(context,token)){endRule(context,"Description");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){endRule(context,"Description");build(context,token);return 19}if(match_StepLine(context,token)){endRule(context,"Description");startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Description");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Description");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Description");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Description");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Description");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){build(context,token);return 18}var stateComment="State: 18 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 18}function matchTokenAt_19(token,context){if(match_EOF(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){build(context,token);return 19}if(match_StepLine(context,token)){startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Empty(context,token)){build(context,token);return 19}var stateComment="State: 19 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0";token.detach();var expectedTokens=["#EOF","#Comment","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 19}function matchTokenAt_20(token,context){if(match_EOF(context,token)){endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){startRule(context,"DataTable");build(context,token);return 21}if(match_DocStringSeparator(context,token)){startRule(context,"DocString");build(context,token);return 28}if(match_StepLine(context,token)){endRule(context,"Step");startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 20}if(match_Empty(context,token)){build(context,token);return 20}var stateComment="State: 20 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0";token.detach();var expectedTokens=["#EOF","#TableRow","#DocStringSeparator","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 20}function matchTokenAt_21(token,context){if(match_EOF(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){build(context,token);return 21}if(match_StepLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"DataTable");endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DataTable");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 21}if(match_Empty(context,token)){build(context,token);return 21}var stateComment="State: 21 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";token.detach();var expectedTokens=["#EOF","#TableRow","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 21}function matchTokenAt_22(token,context){if(match_TagLine(context,token)){build(context,token);return 22}if(match_ExamplesLine(context,token)){endRule(context,"Tags");startRule(context,"Examples");build(context,token);return 23}if(match_Comment(context,token)){build(context,token);return 22}if(match_Empty(context,token)){build(context,token);return 22}var stateComment="State: 22 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0";token.detach();var expectedTokens=["#TagLine","#ExamplesLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 22}function matchTokenAt_23(token,context){if(match_EOF(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Empty(context,token)){build(context,token);return 23}if(match_Comment(context,token)){build(context,token);return 25}if(match_TableRow(context,token)){startRule(context,"Examples_Table");build(context,token);return 26}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){startRule(context,"Description");build(context,token);return 24}var stateComment="State: 23 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0";token.detach();var expectedTokens=["#EOF","#Empty","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 23}function matchTokenAt_24(token,context){if(match_EOF(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){endRule(context,"Description");build(context,token);return 25}if(match_TableRow(context,token)){endRule(context,"Description");startRule(context,"Examples_Table");build(context,token);return 26}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Description");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Other(context,token)){build(context,token);return 24}var stateComment="State: 24 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0";token.detach();var expectedTokens=["#EOF","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 24}function matchTokenAt_25(token,context){if(match_EOF(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_Comment(context,token)){build(context,token);return 25}if(match_TableRow(context,token)){startRule(context,"Examples_Table");build(context,token);return 26}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Empty(context,token)){build(context,token);return 25}var stateComment="State: 25 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0";token.detach();var expectedTokens=["#EOF","#Comment","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 25}function matchTokenAt_26(token,context){if(match_EOF(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_TableRow(context,token)){build(context,token);return 26}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"Examples_Table");endRule(context,"Examples");endRule(context,"Examples_Definition");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 26}if(match_Empty(context,token)){build(context,token);return 26}var stateComment="State: 26 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0";token.detach();var expectedTokens=["#EOF","#TableRow","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 26}function matchTokenAt_28(token,context){if(match_DocStringSeparator(context,token)){build(context,token);return 29}if(match_Other(context,token)){build(context,token);return 28}var stateComment="State: 28 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";token.detach();var expectedTokens=["#DocStringSeparator","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 28}function matchTokenAt_29(token,context){if(match_EOF(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_StepLine(context,token)){endRule(context,"DocString");endRule(context,"Step");startRule(context,"Step");build(context,token);return 20}if(match_TagLine(context,token)){if(lookahead_0(context,token)){endRule(context,"DocString");endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Tags");build(context,token);return 22}}if(match_TagLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ExamplesLine(context,token)){endRule(context,"DocString");endRule(context,"Step");startRule(context,"Examples_Definition");startRule(context,"Examples");build(context,token);return 23}if(match_ScenarioLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"ScenarioOutline");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 29}if(match_Empty(context,token)){build(context,token);return 29}var stateComment="State: 29 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";token.detach();var expectedTokens=["#EOF","#StepLine","#TagLine","#ExamplesLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 29}function matchTokenAt_30(token,context){if(match_DocStringSeparator(context,token)){build(context,token);return 31}if(match_Other(context,token)){build(context,token);return 30}var stateComment="State: 30 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";token.detach();var expectedTokens=["#DocStringSeparator","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 30}function matchTokenAt_31(token,context){if(match_EOF(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");endRule(context,"Feature");build(context,token);return 27}if(match_StepLine(context,token)){endRule(context,"DocString");endRule(context,"Step");startRule(context,"Step");build(context,token);return 15}if(match_TagLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Scenario");endRule(context,"Scenario_Definition");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 31}if(match_Empty(context,token)){build(context,token);return 31}var stateComment="State: 31 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";token.detach();var expectedTokens=["#EOF","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 31}function matchTokenAt_32(token,context){if(match_DocStringSeparator(context,token)){build(context,token);return 33}if(match_Other(context,token)){build(context,token);return 32}var stateComment="State: 32 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";token.detach();var expectedTokens=["#DocStringSeparator","#Other"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 32}function matchTokenAt_33(token,context){if(match_EOF(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Background");endRule(context,"Feature");build(context,token);return 27}if(match_StepLine(context,token)){endRule(context,"DocString");endRule(context,"Step");startRule(context,"Step");build(context,token);return 9}if(match_TagLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Tags");build(context,token);return 11}if(match_ScenarioLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"Scenario");build(context,token);return 12}if(match_ScenarioOutlineLine(context,token)){endRule(context,"DocString");endRule(context,"Step");endRule(context,"Background");startRule(context,"Scenario_Definition");startRule(context,"ScenarioOutline");build(context,token);return 17}if(match_Comment(context,token)){build(context,token);return 33}if(match_Empty(context,token)){build(context,token);return 33}var stateComment="State: 33 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";token.detach();var expectedTokens=["#EOF","#StepLine","#TagLine","#ScenarioLine","#ScenarioOutlineLine","#Comment","#Empty"];var error=token.isEof?Errors.UnexpectedEOFException.create(token,expectedTokens,stateComment):Errors.UnexpectedTokenException.create(token,expectedTokens,stateComment);if(self.stopAtFirstError)throw error;addError(context,error);return 33}function match_EOF(context,token){return handleExternalError(context,false,function(){return context.tokenMatcher.match_EOF(token)})}function match_Empty(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_Empty(token)})}function match_Comment(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_Comment(token)})}function match_TagLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_TagLine(token)})}function match_FeatureLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_FeatureLine(token)})}function match_BackgroundLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_BackgroundLine(token)})}function match_ScenarioLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_ScenarioLine(token)})}function match_ScenarioOutlineLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_ScenarioOutlineLine(token)})}function match_ExamplesLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_ExamplesLine(token)})}function match_StepLine(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_StepLine(token)})}function match_DocStringSeparator(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_DocStringSeparator(token)})}
+function match_TableRow(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_TableRow(token)})}function match_Language(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_Language(token)})}function match_Other(context,token){if(token.isEof)return false;return handleExternalError(context,false,function(){return context.tokenMatcher.match_Other(token)})}function lookahead_0(context,currentToken){currentToken.detach();var token;var queue=[];var match=false;do{token=readToken(context);token.detach();queue.push(token);if(false||match_ExamplesLine(context,token)){match=true;break}}while(false||match_Empty(context,token)||match_Comment(context,token)||match_TagLine(context,token));context.tokenQueue=context.tokenQueue.concat(queue);return match}}},{"./ast_builder":2,"./errors":6,"./token_matcher":13,"./token_scanner":14}],11:[function(require,module,exports){var countSymbols=require("../count_symbols");function Compiler(){this.compile=function(gherkin_document){var pickles=[];if(gherkin_document.feature==null)return pickles;var feature=gherkin_document.feature;var language=feature.language;var featureTags=feature.tags;var backgroundSteps=[];feature.children.forEach(function(scenarioDefinition){if(scenarioDefinition.type==="Background"){backgroundSteps=pickleSteps(scenarioDefinition)}else if(scenarioDefinition.type==="Scenario"){compileScenario(featureTags,backgroundSteps,scenarioDefinition,language,pickles)}else{compileScenarioOutline(featureTags,backgroundSteps,scenarioDefinition,language,pickles)}});return pickles};function compileScenario(featureTags,backgroundSteps,scenario,language,pickles){var steps=scenario.steps.length==0?[]:[].concat(backgroundSteps);var tags=[].concat(featureTags).concat(scenario.tags);scenario.steps.forEach(function(step){steps.push(pickleStep(step))});var pickle={tags:pickleTags(tags),name:scenario.name,language:language,locations:[pickleLocation(scenario.location)],steps:steps};pickles.push(pickle)}function compileScenarioOutline(featureTags,backgroundSteps,scenarioOutline,language,pickles){scenarioOutline.examples.filter(function(e){return e.tableHeader!=undefined}).forEach(function(examples){var variableCells=examples.tableHeader.cells;examples.tableBody.forEach(function(values){var valueCells=values.cells;var steps=scenarioOutline.steps.length==0?[]:[].concat(backgroundSteps);var tags=[].concat(featureTags).concat(scenarioOutline.tags).concat(examples.tags);scenarioOutline.steps.forEach(function(scenarioOutlineStep){var stepText=interpolate(scenarioOutlineStep.text,variableCells,valueCells);var args=createPickleArguments(scenarioOutlineStep.argument,variableCells,valueCells);var pickleStep={text:stepText,arguments:args,locations:[pickleLocation(values.location),pickleStepLocation(scenarioOutlineStep)]};steps.push(pickleStep)});var pickle={name:interpolate(scenarioOutline.name,variableCells,valueCells),language:language,steps:steps,tags:pickleTags(tags),locations:[pickleLocation(values.location),pickleLocation(scenarioOutline.location)]};pickles.push(pickle)})})}function createPickleArguments(argument,variableCells,valueCells){var result=[];if(!argument)return result;if(argument.type==="DataTable"){var table={rows:argument.rows.map(function(row){return{cells:row.cells.map(function(cell){return{location:pickleLocation(cell.location),value:interpolate(cell.value,variableCells,valueCells)}})}})};result.push(table)}else if(argument.type==="DocString"){var docString={location:pickleLocation(argument.location),content:interpolate(argument.content,variableCells,valueCells)};if(argument.contentType){docString.contentType=interpolate(argument.contentType,variableCells,valueCells)}result.push(docString)}else{throw Error("Internal error")}return result}function interpolate(name,variableCells,valueCells){variableCells.forEach(function(variableCell,n){var valueCell=valueCells[n];var search=new RegExp("<"+variableCell.value+">","g");var replacement=valueCell.value.replace(new RegExp("\\$","g"),"$$$$");name=name.replace(search,replacement)});return name}function pickleSteps(scenarioDefinition){return scenarioDefinition.steps.map(function(step){return pickleStep(step)})}function pickleStep(step){return{text:step.text,arguments:createPickleArguments(step.argument,[],[]),locations:[pickleStepLocation(step)]}}function pickleStepLocation(step){return{line:step.location.line,column:step.location.column+(step.keyword?countSymbols(step.keyword):0)}}function pickleLocation(location){return{line:location.line,column:location.column}}function pickleTags(tags){return tags.map(function(tag){return pickleTag(tag)})}function pickleTag(tag){return{name:tag.name,location:pickleLocation(tag.location)}}}module.exports=Compiler},{"../count_symbols":4}],12:[function(require,module,exports){function Token(line,location){this.line=line;this.location=location;this.isEof=line==null}Token.prototype.getTokenValue=function(){return this.isEof?"EOF":this.line.getLineText(-1)};Token.prototype.detach=function(){};module.exports=Token},{}],13:[function(require,module,exports){var DIALECTS=require("./dialects");var Errors=require("./errors");var LANGUAGE_PATTERN=/^\s*#\s*language\s*:\s*([a-zA-Z\-_]+)\s*$/;module.exports=function TokenMatcher(defaultDialectName){defaultDialectName=defaultDialectName||"en";var dialect;var dialectName;var activeDocStringSeparator;var indentToRemove;function changeDialect(newDialectName,location){var newDialect=DIALECTS[newDialectName];if(!newDialect){throw Errors.NoSuchLanguageException.create(newDialectName,location)}dialectName=newDialectName;dialect=newDialect}this.reset=function(){if(dialectName!=defaultDialectName)changeDialect(defaultDialectName);activeDocStringSeparator=null;indentToRemove=0};this.reset();this.match_TagLine=function match_TagLine(token){if(token.line.startsWith("@")){setTokenMatched(token,"TagLine",null,null,null,token.line.getTags());return true}return false};this.match_FeatureLine=function match_FeatureLine(token){return matchTitleLine(token,"FeatureLine",dialect.feature)};this.match_ScenarioLine=function match_ScenarioLine(token){return matchTitleLine(token,"ScenarioLine",dialect.scenario)};this.match_ScenarioOutlineLine=function match_ScenarioOutlineLine(token){return matchTitleLine(token,"ScenarioOutlineLine",dialect.scenarioOutline)};this.match_BackgroundLine=function match_BackgroundLine(token){return matchTitleLine(token,"BackgroundLine",dialect.background)};this.match_ExamplesLine=function match_ExamplesLine(token){return matchTitleLine(token,"ExamplesLine",dialect.examples)};this.match_TableRow=function match_TableRow(token){if(token.line.startsWith("|")){setTokenMatched(token,"TableRow",null,null,null,token.line.getTableCells());return true}return false};this.match_Empty=function match_Empty(token){if(token.line.isEmpty){setTokenMatched(token,"Empty",null,null,0);return true}return false};this.match_Comment=function match_Comment(token){if(token.line.startsWith("#")){var text=token.line.getLineText(0);setTokenMatched(token,"Comment",text,null,0);return true}return false};this.match_Language=function match_Language(token){var match;if(match=token.line.trimmedLineText.match(LANGUAGE_PATTERN)){var newDialectName=match[1];setTokenMatched(token,"Language",newDialectName);changeDialect(newDialectName,token.location);return true}return false};this.match_DocStringSeparator=function match_DocStringSeparator(token){return activeDocStringSeparator==null?_match_DocStringSeparator(token,'"""',true)||_match_DocStringSeparator(token,"```",true):_match_DocStringSeparator(token,activeDocStringSeparator,false)};function _match_DocStringSeparator(token,separator,isOpen){if(token.line.startsWith(separator)){var contentType=null;if(isOpen){contentType=token.line.getRestTrimmed(separator.length);activeDocStringSeparator=separator;indentToRemove=token.line.indent}else{activeDocStringSeparator=null;indentToRemove=0}setTokenMatched(token,"DocStringSeparator",contentType);return true}return false}this.match_EOF=function match_EOF(token){if(token.isEof){setTokenMatched(token,"EOF");return true}return false};this.match_StepLine=function match_StepLine(token){var keywords=[].concat(dialect.given).concat(dialect.when).concat(dialect.then).concat(dialect.and).concat(dialect.but);var length=keywords.length;for(var i=0,keyword;i0&&lines[lines.length-1].trim()==""){lines.pop()}var lineNumber=0;this.read=function(){var line=lines[lineNumber++];var location={line:lineNumber,column:0};return line==null?new Token(null,location):new Token(new GherkinLine(line,lineNumber),location)}}},{"./gherkin_line":9,"./token":12}]},{},[1]);
diff --git a/node_modules/gherkin/index.js b/node_modules/gherkin/index.js
new file mode 100644
index 00000000..6545da08
--- /dev/null
+++ b/node_modules/gherkin/index.js
@@ -0,0 +1,24 @@
+(function (factory) {
+ if (typeof define === 'function' && define.amd) {
+ // AMD. Register as an anonymous module
+ define([], factory)
+ }
+ if (typeof module !== 'undefined' && module.exports) {
+ // Node.js/RequireJS
+ module.exports = factory();
+ }
+ if (typeof window === 'object'){
+ // Browser globals
+ window.Gherkin = factory();
+ }
+}(function () {
+ return {
+ Parser: require('./lib/gherkin/parser'),
+ TokenScanner: require('./lib/gherkin/token_scanner'),
+ TokenMatcher: require('./lib/gherkin/token_matcher'),
+ AstBuilder: require('./lib/gherkin/ast_builder'),
+ Compiler: require('./lib/gherkin/pickles/compiler'),
+ DIALECTS: require('./lib/gherkin/dialects'),
+ generateEvents: require('./lib/gherkin/generate_events')
+ };
+}));
diff --git a/node_modules/gherkin/lib/gherkin/ast_builder.js b/node_modules/gherkin/lib/gherkin/ast_builder.js
new file mode 100644
index 00000000..abb52590
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/ast_builder.js
@@ -0,0 +1,264 @@
+var AstNode = require('./ast_node');
+var Errors = require('./errors');
+
+module.exports = function AstBuilder () {
+
+ var stack = [new AstNode('None')];
+ var comments = [];
+
+ this.reset = function () {
+ stack = [new AstNode('None')];
+ comments = [];
+ };
+
+ this.startRule = function (ruleType) {
+ stack.push(new AstNode(ruleType));
+ };
+
+ this.endRule = function (ruleType) {
+ var node = stack.pop();
+ var transformedNode = transformNode(node);
+ currentNode().add(node.ruleType, transformedNode);
+ };
+
+ this.build = function (token) {
+ if(token.matchedType === 'Comment') {
+ comments.push({
+ type: 'Comment',
+ location: getLocation(token),
+ text: token.matchedText
+ });
+ } else {
+ currentNode().add(token.matchedType, token);
+ }
+ };
+
+ this.getResult = function () {
+ return currentNode().getSingle('GherkinDocument');
+ };
+
+ function currentNode () {
+ return stack[stack.length - 1];
+ }
+
+ function getLocation (token, column) {
+ return !column ? token.location : {line: token.location.line, column: column};
+ }
+
+ function getTags (node) {
+ var tags = [];
+ var tagsNode = node.getSingle('Tags');
+ if (!tagsNode) return tags;
+ tagsNode.getTokens('TagLine').forEach(function (token) {
+ token.matchedItems.forEach(function (tagItem) {
+ tags.push({
+ type: 'Tag',
+ location: getLocation(token, tagItem.column),
+ name: tagItem.text
+ });
+ });
+
+ });
+ return tags;
+ }
+
+ function getCells(tableRowToken) {
+ return tableRowToken.matchedItems.map(function (cellItem) {
+ return {
+ type: 'TableCell',
+ location: getLocation(tableRowToken, cellItem.column),
+ value: cellItem.text
+ }
+ });
+ }
+
+ function getDescription (node) {
+ return node.getSingle('Description');
+ }
+
+ function getSteps (node) {
+ return node.getItems('Step');
+ }
+
+ function getTableRows(node) {
+ var rows = node.getTokens('TableRow').map(function (token) {
+ return {
+ type: 'TableRow',
+ location: getLocation(token),
+ cells: getCells(token)
+ };
+ });
+ ensureCellCount(rows);
+ return rows;
+ }
+
+ function ensureCellCount(rows) {
+ if(rows.length == 0) return;
+ var cellCount = rows[0].cells.length;
+
+ rows.forEach(function (row) {
+ if (row.cells.length != cellCount) {
+ throw Errors.AstBuilderException.create("inconsistent cell count within the table", row.location);
+ }
+ });
+ }
+
+ function transformNode(node) {
+ switch(node.ruleType) {
+ case 'Step':
+ var stepLine = node.getToken('StepLine');
+ var stepArgument = node.getSingle('DataTable') || node.getSingle('DocString') || undefined;
+
+ return {
+ type: node.ruleType,
+ location: getLocation(stepLine),
+ keyword: stepLine.matchedKeyword,
+ text: stepLine.matchedText,
+ argument: stepArgument
+ }
+ case 'DocString':
+ var separatorToken = node.getTokens('DocStringSeparator')[0];
+ var contentType = separatorToken.matchedText.length > 0 ? separatorToken.matchedText : undefined;
+ var lineTokens = node.getTokens('Other');
+ var content = lineTokens.map(function (t) {return t.matchedText}).join("\n");
+
+ var result = {
+ type: node.ruleType,
+ location: getLocation(separatorToken),
+ content: content
+ };
+ // conditionally add this like this (needed to make tests pass on node 0.10 as well as 4.0)
+ if(contentType) {
+ result.contentType = contentType;
+ }
+ return result;
+ case 'DataTable':
+ var rows = getTableRows(node);
+ return {
+ type: node.ruleType,
+ location: rows[0].location,
+ rows: rows,
+ }
+ case 'Background':
+ var backgroundLine = node.getToken('BackgroundLine');
+ var description = getDescription(node);
+ var steps = getSteps(node);
+
+ return {
+ type: node.ruleType,
+ location: getLocation(backgroundLine),
+ keyword: backgroundLine.matchedKeyword,
+ name: backgroundLine.matchedText,
+ description: description,
+ steps: steps
+ };
+ case 'Scenario_Definition':
+ var tags = getTags(node);
+ var scenarioNode = node.getSingle('Scenario');
+ if(scenarioNode) {
+ var scenarioLine = scenarioNode.getToken('ScenarioLine');
+ var description = getDescription(scenarioNode);
+ var steps = getSteps(scenarioNode);
+
+ return {
+ type: scenarioNode.ruleType,
+ tags: tags,
+ location: getLocation(scenarioLine),
+ keyword: scenarioLine.matchedKeyword,
+ name: scenarioLine.matchedText,
+ description: description,
+ steps: steps
+ };
+ } else {
+ var scenarioOutlineNode = node.getSingle('ScenarioOutline');
+ if(!scenarioOutlineNode) throw new Error('Internal grammar error');
+
+ var scenarioOutlineLine = scenarioOutlineNode.getToken('ScenarioOutlineLine');
+ var description = getDescription(scenarioOutlineNode);
+ var steps = getSteps(scenarioOutlineNode);
+ var examples = scenarioOutlineNode.getItems('Examples_Definition');
+
+ return {
+ type: scenarioOutlineNode.ruleType,
+ tags: tags,
+ location: getLocation(scenarioOutlineLine),
+ keyword: scenarioOutlineLine.matchedKeyword,
+ name: scenarioOutlineLine.matchedText,
+ description: description,
+ steps: steps,
+ examples: examples
+ };
+ }
+ case 'Examples_Definition':
+ var tags = getTags(node);
+ var examplesNode = node.getSingle('Examples');
+ var examplesLine = examplesNode.getToken('ExamplesLine');
+ var description = getDescription(examplesNode);
+ var exampleTable = examplesNode.getSingle('Examples_Table')
+
+ return {
+ type: examplesNode.ruleType,
+ tags: tags,
+ location: getLocation(examplesLine),
+ keyword: examplesLine.matchedKeyword,
+ name: examplesLine.matchedText,
+ description: description,
+ tableHeader: exampleTable != undefined ? exampleTable.tableHeader : undefined,
+ tableBody: exampleTable != undefined ? exampleTable.tableBody : undefined
+ };
+ case 'Examples_Table':
+ var rows = getTableRows(node)
+
+ return {
+ tableHeader: rows != undefined ? rows[0] : undefined,
+ tableBody: rows != undefined ? rows.slice(1) : undefined
+ };
+ case 'Description':
+ var lineTokens = node.getTokens('Other');
+ // Trim trailing empty lines
+ var end = lineTokens.length;
+ while (end > 0 && lineTokens[end-1].line.trimmedLineText === '') {
+ end--;
+ }
+ lineTokens = lineTokens.slice(0, end);
+
+ var description = lineTokens.map(function (token) { return token.matchedText}).join("\n");
+ return description;
+
+ case 'Feature':
+ var header = node.getSingle('Feature_Header');
+ if(!header) return null;
+ var tags = getTags(header);
+ var featureLine = header.getToken('FeatureLine');
+ if(!featureLine) return null;
+ var children = []
+ var background = node.getSingle('Background');
+ if(background) children.push(background);
+ children = children.concat(node.getItems('Scenario_Definition'));
+ var description = getDescription(header);
+ var language = featureLine.matchedGherkinDialect;
+
+ return {
+ type: node.ruleType,
+ tags: tags,
+ location: getLocation(featureLine),
+ language: language,
+ keyword: featureLine.matchedKeyword,
+ name: featureLine.matchedText,
+ description: description,
+ children: children,
+ };
+ case 'GherkinDocument':
+ var feature = node.getSingle('Feature');
+
+ return {
+ type: node.ruleType,
+ feature: feature,
+ comments: comments
+ };
+ default:
+ return node;
+ }
+ }
+
+};
diff --git a/node_modules/gherkin/lib/gherkin/ast_node.js b/node_modules/gherkin/lib/gherkin/ast_node.js
new file mode 100644
index 00000000..16c5edf0
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/ast_node.js
@@ -0,0 +1,28 @@
+function AstNode (ruleType) {
+ this.ruleType = ruleType;
+ this._subItems = {};
+}
+
+AstNode.prototype.add = function (ruleType, obj) {
+ var items = this._subItems[ruleType];
+ if(items === undefined) this._subItems[ruleType] = items = [];
+ items.push(obj);
+}
+
+AstNode.prototype.getSingle = function (ruleType) {
+ return (this._subItems[ruleType] || [])[0];
+}
+
+AstNode.prototype.getItems = function (ruleType) {
+ return this._subItems[ruleType] || [];
+}
+
+AstNode.prototype.getToken = function (tokenType) {
+ return this.getSingle(tokenType);
+}
+
+AstNode.prototype.getTokens = function (tokenType) {
+ return this._subItems[tokenType] || [];
+}
+
+module.exports = AstNode;
diff --git a/node_modules/gherkin/lib/gherkin/count_symbols.js b/node_modules/gherkin/lib/gherkin/count_symbols.js
new file mode 100644
index 00000000..784674a7
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/count_symbols.js
@@ -0,0 +1,6 @@
+// https://mathiasbynens.be/notes/javascript-unicode
+var regexAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
+
+module.exports = function countSymbols(string) {
+ return string.replace(regexAstralSymbols, '_').length;
+}
diff --git a/node_modules/gherkin/lib/gherkin/dialects.js b/node_modules/gherkin/lib/gherkin/dialects.js
new file mode 100644
index 00000000..aac8f4e8
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/dialects.js
@@ -0,0 +1 @@
+module.exports = require('./gherkin-languages.json');
diff --git a/node_modules/gherkin/lib/gherkin/errors.js b/node_modules/gherkin/lib/gherkin/errors.js
new file mode 100644
index 00000000..1f7c73c8
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/errors.js
@@ -0,0 +1,61 @@
+var Errors = {};
+
+[
+ 'ParserException',
+ 'CompositeParserException',
+ 'UnexpectedTokenException',
+ 'UnexpectedEOFException',
+ 'AstBuilderException',
+ 'NoSuchLanguageException'
+].forEach(function (name) {
+
+ function ErrorProto (message) {
+ this.message = message || ('Unspecified ' + name);
+ if (Error.captureStackTrace) {
+ Error.captureStackTrace(this, arguments.callee);
+ }
+ }
+
+ ErrorProto.prototype = Object.create(Error.prototype);
+ ErrorProto.prototype.name = name;
+ ErrorProto.prototype.constructor = ErrorProto;
+ Errors[name] = ErrorProto;
+});
+
+Errors.CompositeParserException.create = function(errors) {
+ var message = "Parser errors:\n" + errors.map(function (e) { return e.message; }).join("\n");
+ var err = new Errors.CompositeParserException(message);
+ err.errors = errors;
+ return err;
+};
+
+Errors.UnexpectedTokenException.create = function(token, expectedTokenTypes, stateComment) {
+ var message = "expected: " + expectedTokenTypes.join(', ') + ", got '" + token.getTokenValue().trim() + "'";
+ var location = !token.location.column
+ ? {line: token.location.line, column: token.line.indent + 1 }
+ : token.location;
+ return createError(Errors.UnexpectedEOFException, message, location);
+};
+
+Errors.UnexpectedEOFException.create = function(token, expectedTokenTypes, stateComment) {
+ var message = "unexpected end of file, expected: " + expectedTokenTypes.join(', ');
+ return createError(Errors.UnexpectedTokenException, message, token.location);
+};
+
+Errors.AstBuilderException.create = function(message, location) {
+ return createError(Errors.AstBuilderException, message, location);
+};
+
+Errors.NoSuchLanguageException.create = function(language, location) {
+ var message = "Language not supported: " + language;
+ return createError(Errors.NoSuchLanguageException, message, location);
+};
+
+function createError(Ctor, message, location) {
+ var fullMessage = "(" + location.line + ":" + location.column + "): " + message;
+ var error = new Ctor(fullMessage);
+ error.location = location;
+ return error;
+}
+
+module.exports = Errors;
diff --git a/node_modules/gherkin/lib/gherkin/generate_events.js b/node_modules/gherkin/lib/gherkin/generate_events.js
new file mode 100644
index 00000000..197335a6
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/generate_events.js
@@ -0,0 +1,76 @@
+var Parser = require('./parser')
+var Compiler = require('./pickles/compiler')
+
+var compiler = new Compiler()
+var parser = new Parser()
+parser.stopAtFirstError = false
+
+function generateEvents(data, uri, types, language) {
+ types = Object.assign({
+ 'source': true,
+ 'gherkin-document': true,
+ 'pickle': true
+ }, types || {})
+
+ result = []
+
+ try {
+ if (types['source']) {
+ result.push({
+ type: 'source',
+ uri: uri,
+ data: data,
+ media: {
+ encoding: 'utf-8',
+ type: 'text/x.cucumber.gherkin+plain'
+ }
+ })
+ }
+
+ if (!types['gherkin-document'] && !types['pickle'])
+ return result
+
+ var gherkinDocument = parser.parse(data, language)
+
+ if (types['gherkin-document']) {
+ result.push({
+ type: 'gherkin-document',
+ uri: uri,
+ document: gherkinDocument
+ })
+ }
+
+ if (types['pickle']) {
+ var pickles = compiler.compile(gherkinDocument)
+ for (var p in pickles) {
+ result.push({
+ type: 'pickle',
+ uri: uri,
+ pickle: pickles[p]
+ })
+ }
+ }
+ } catch (err) {
+ var errors = err.errors || [err]
+ for (var e in errors) {
+ result.push({
+ type: "attachment",
+ source: {
+ uri: uri,
+ start: {
+ line: errors[e].location.line,
+ column: errors[e].location.column
+ }
+ },
+ data: errors[e].message,
+ media: {
+ encoding: "utf-8",
+ type: "text/x.cucumber.stacktrace+plain"
+ }
+ })
+ }
+ }
+ return result
+}
+
+module.exports = generateEvents
diff --git a/node_modules/gherkin/lib/gherkin/gherkin-languages.json b/node_modules/gherkin/lib/gherkin/gherkin-languages.json
new file mode 100644
index 00000000..470fa815
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/gherkin-languages.json
@@ -0,0 +1,3239 @@
+{
+ "af": {
+ "and": [
+ "* ",
+ "En "
+ ],
+ "background": [
+ "Agtergrond"
+ ],
+ "but": [
+ "* ",
+ "Maar "
+ ],
+ "examples": [
+ "Voorbeelde"
+ ],
+ "feature": [
+ "Funksie",
+ "Besigheid Behoefte",
+ "Vermoë"
+ ],
+ "given": [
+ "* ",
+ "Gegewe "
+ ],
+ "name": "Afrikaans",
+ "native": "Afrikaans",
+ "scenario": [
+ "Situasie"
+ ],
+ "scenarioOutline": [
+ "Situasie Uiteensetting"
+ ],
+ "then": [
+ "* ",
+ "Dan "
+ ],
+ "when": [
+ "* ",
+ "Wanneer "
+ ]
+ },
+ "am": {
+ "and": [
+ "* ",
+ "Եվ "
+ ],
+ "background": [
+ "Կոնտեքստ"
+ ],
+ "but": [
+ "* ",
+ "Բայց "
+ ],
+ "examples": [
+ "Օրինակներ"
+ ],
+ "feature": [
+ "Ֆունկցիոնալություն",
+ "Հատկություն"
+ ],
+ "given": [
+ "* ",
+ "Դիցուք "
+ ],
+ "name": "Armenian",
+ "native": "հայերեն",
+ "scenario": [
+ "Սցենար"
+ ],
+ "scenarioOutline": [
+ "Սցենարի կառուցվացքը"
+ ],
+ "then": [
+ "* ",
+ "Ապա "
+ ],
+ "when": [
+ "* ",
+ "Եթե ",
+ "Երբ "
+ ]
+ },
+ "an": {
+ "and": [
+ "* ",
+ "Y ",
+ "E "
+ ],
+ "background": [
+ "Antecedents"
+ ],
+ "but": [
+ "* ",
+ "Pero "
+ ],
+ "examples": [
+ "Eixemplos"
+ ],
+ "feature": [
+ "Caracteristica"
+ ],
+ "given": [
+ "* ",
+ "Dau ",
+ "Dada ",
+ "Daus ",
+ "Dadas "
+ ],
+ "name": "Aragonese",
+ "native": "Aragonés",
+ "scenario": [
+ "Caso"
+ ],
+ "scenarioOutline": [
+ "Esquema del caso"
+ ],
+ "then": [
+ "* ",
+ "Alavez ",
+ "Allora ",
+ "Antonces "
+ ],
+ "when": [
+ "* ",
+ "Cuan "
+ ]
+ },
+ "ar": {
+ "and": [
+ "* ",
+ "و "
+ ],
+ "background": [
+ "الخلفية"
+ ],
+ "but": [
+ "* ",
+ "لكن "
+ ],
+ "examples": [
+ "امثلة"
+ ],
+ "feature": [
+ "خاصية"
+ ],
+ "given": [
+ "* ",
+ "بفرض "
+ ],
+ "name": "Arabic",
+ "native": "العربية",
+ "scenario": [
+ "سيناريو"
+ ],
+ "scenarioOutline": [
+ "سيناريو مخطط"
+ ],
+ "then": [
+ "* ",
+ "اذاً ",
+ "ثم "
+ ],
+ "when": [
+ "* ",
+ "متى ",
+ "عندما "
+ ]
+ },
+ "ast": {
+ "and": [
+ "* ",
+ "Y ",
+ "Ya "
+ ],
+ "background": [
+ "Antecedentes"
+ ],
+ "but": [
+ "* ",
+ "Peru "
+ ],
+ "examples": [
+ "Exemplos"
+ ],
+ "feature": [
+ "Carauterística"
+ ],
+ "given": [
+ "* ",
+ "Dáu ",
+ "Dada ",
+ "Daos ",
+ "Daes "
+ ],
+ "name": "Asturian",
+ "native": "asturianu",
+ "scenario": [
+ "Casu"
+ ],
+ "scenarioOutline": [
+ "Esbozu del casu"
+ ],
+ "then": [
+ "* ",
+ "Entós "
+ ],
+ "when": [
+ "* ",
+ "Cuando "
+ ]
+ },
+ "az": {
+ "and": [
+ "* ",
+ "Və ",
+ "Həm "
+ ],
+ "background": [
+ "Keçmiş",
+ "Kontekst"
+ ],
+ "but": [
+ "* ",
+ "Amma ",
+ "Ancaq "
+ ],
+ "examples": [
+ "Nümunələr"
+ ],
+ "feature": [
+ "Özəllik"
+ ],
+ "given": [
+ "* ",
+ "Tutaq ki ",
+ "Verilir "
+ ],
+ "name": "Azerbaijani",
+ "native": "Azərbaycanca",
+ "scenario": [
+ "Ssenari"
+ ],
+ "scenarioOutline": [
+ "Ssenarinin strukturu"
+ ],
+ "then": [
+ "* ",
+ "O halda "
+ ],
+ "when": [
+ "* ",
+ "Əgər ",
+ "Nə vaxt ki "
+ ]
+ },
+ "bg": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Предистория"
+ ],
+ "but": [
+ "* ",
+ "Но "
+ ],
+ "examples": [
+ "Примери"
+ ],
+ "feature": [
+ "Функционалност"
+ ],
+ "given": [
+ "* ",
+ "Дадено "
+ ],
+ "name": "Bulgarian",
+ "native": "български",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Рамка на сценарий"
+ ],
+ "then": [
+ "* ",
+ "То "
+ ],
+ "when": [
+ "* ",
+ "Когато "
+ ]
+ },
+ "bm": {
+ "and": [
+ "* ",
+ "Dan "
+ ],
+ "background": [
+ "Latar Belakang"
+ ],
+ "but": [
+ "* ",
+ "Tetapi ",
+ "Tapi "
+ ],
+ "examples": [
+ "Contoh"
+ ],
+ "feature": [
+ "Fungsi"
+ ],
+ "given": [
+ "* ",
+ "Diberi ",
+ "Bagi "
+ ],
+ "name": "Malay",
+ "native": "Bahasa Melayu",
+ "scenario": [
+ "Senario",
+ "Situasi",
+ "Keadaan"
+ ],
+ "scenarioOutline": [
+ "Kerangka Senario",
+ "Kerangka Situasi",
+ "Kerangka Keadaan",
+ "Garis Panduan Senario"
+ ],
+ "then": [
+ "* ",
+ "Maka ",
+ "Kemudian "
+ ],
+ "when": [
+ "* ",
+ "Apabila "
+ ]
+ },
+ "bs": {
+ "and": [
+ "* ",
+ "I ",
+ "A "
+ ],
+ "background": [
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primjeri"
+ ],
+ "feature": [
+ "Karakteristika"
+ ],
+ "given": [
+ "* ",
+ "Dato "
+ ],
+ "name": "Bosnian",
+ "native": "Bosanski",
+ "scenario": [
+ "Scenariju",
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenariju-obris",
+ "Scenario-outline"
+ ],
+ "then": [
+ "* ",
+ "Zatim "
+ ],
+ "when": [
+ "* ",
+ "Kada "
+ ]
+ },
+ "ca": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Rerefons",
+ "Antecedents"
+ ],
+ "but": [
+ "* ",
+ "Però "
+ ],
+ "examples": [
+ "Exemples"
+ ],
+ "feature": [
+ "Característica",
+ "Funcionalitat"
+ ],
+ "given": [
+ "* ",
+ "Donat ",
+ "Donada ",
+ "Atès ",
+ "Atesa "
+ ],
+ "name": "Catalan",
+ "native": "català",
+ "scenario": [
+ "Escenari"
+ ],
+ "scenarioOutline": [
+ "Esquema de l'escenari"
+ ],
+ "then": [
+ "* ",
+ "Aleshores ",
+ "Cal "
+ ],
+ "when": [
+ "* ",
+ "Quan "
+ ]
+ },
+ "cs": {
+ "and": [
+ "* ",
+ "A také ",
+ "A "
+ ],
+ "background": [
+ "Pozadí",
+ "Kontext"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Příklady"
+ ],
+ "feature": [
+ "Požadavek"
+ ],
+ "given": [
+ "* ",
+ "Pokud ",
+ "Za předpokladu "
+ ],
+ "name": "Czech",
+ "native": "Česky",
+ "scenario": [
+ "Scénář"
+ ],
+ "scenarioOutline": [
+ "Náčrt Scénáře",
+ "Osnova scénáře"
+ ],
+ "then": [
+ "* ",
+ "Pak "
+ ],
+ "when": [
+ "* ",
+ "Když "
+ ]
+ },
+ "cy-GB": {
+ "and": [
+ "* ",
+ "A "
+ ],
+ "background": [
+ "Cefndir"
+ ],
+ "but": [
+ "* ",
+ "Ond "
+ ],
+ "examples": [
+ "Enghreifftiau"
+ ],
+ "feature": [
+ "Arwedd"
+ ],
+ "given": [
+ "* ",
+ "Anrhegedig a "
+ ],
+ "name": "Welsh",
+ "native": "Cymraeg",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenario Amlinellol"
+ ],
+ "then": [
+ "* ",
+ "Yna "
+ ],
+ "when": [
+ "* ",
+ "Pryd "
+ ]
+ },
+ "da": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Baggrund"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Eksempler"
+ ],
+ "feature": [
+ "Egenskab"
+ ],
+ "given": [
+ "* ",
+ "Givet "
+ ],
+ "name": "Danish",
+ "native": "dansk",
+ "scenario": [
+ "Scenarie"
+ ],
+ "scenarioOutline": [
+ "Abstrakt Scenario"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "Når "
+ ]
+ },
+ "de": {
+ "and": [
+ "* ",
+ "Und "
+ ],
+ "background": [
+ "Grundlage"
+ ],
+ "but": [
+ "* ",
+ "Aber "
+ ],
+ "examples": [
+ "Beispiele"
+ ],
+ "feature": [
+ "Funktionalität"
+ ],
+ "given": [
+ "* ",
+ "Angenommen ",
+ "Gegeben sei ",
+ "Gegeben seien "
+ ],
+ "name": "German",
+ "native": "Deutsch",
+ "scenario": [
+ "Szenario"
+ ],
+ "scenarioOutline": [
+ "Szenariogrundriss"
+ ],
+ "then": [
+ "* ",
+ "Dann "
+ ],
+ "when": [
+ "* ",
+ "Wenn "
+ ]
+ },
+ "el": {
+ "and": [
+ "* ",
+ "Και "
+ ],
+ "background": [
+ "Υπόβαθρο"
+ ],
+ "but": [
+ "* ",
+ "Αλλά "
+ ],
+ "examples": [
+ "Παραδείγματα",
+ "Σενάρια"
+ ],
+ "feature": [
+ "Δυνατότητα",
+ "Λειτουργία"
+ ],
+ "given": [
+ "* ",
+ "Δεδομένου "
+ ],
+ "name": "Greek",
+ "native": "Ελληνικά",
+ "scenario": [
+ "Σενάριο"
+ ],
+ "scenarioOutline": [
+ "Περιγραφή Σεναρίου",
+ "Περίγραμμα Σεναρίου"
+ ],
+ "then": [
+ "* ",
+ "Τότε "
+ ],
+ "when": [
+ "* ",
+ "Όταν "
+ ]
+ },
+ "em": {
+ "and": [
+ "* ",
+ "😂"
+ ],
+ "background": [
+ "💤"
+ ],
+ "but": [
+ "* ",
+ "😔"
+ ],
+ "examples": [
+ "📓"
+ ],
+ "feature": [
+ "📚"
+ ],
+ "given": [
+ "* ",
+ "😐"
+ ],
+ "name": "Emoji",
+ "native": "😀",
+ "scenario": [
+ "📕"
+ ],
+ "scenarioOutline": [
+ "📖"
+ ],
+ "then": [
+ "* ",
+ "🙏"
+ ],
+ "when": [
+ "* ",
+ "🎬"
+ ]
+ },
+ "en": {
+ "and": [
+ "* ",
+ "And "
+ ],
+ "background": [
+ "Background"
+ ],
+ "but": [
+ "* ",
+ "But "
+ ],
+ "examples": [
+ "Examples",
+ "Scenarios"
+ ],
+ "feature": [
+ "Feature",
+ "Business Need",
+ "Ability"
+ ],
+ "given": [
+ "* ",
+ "Given "
+ ],
+ "name": "English",
+ "native": "English",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenario Outline",
+ "Scenario Template"
+ ],
+ "then": [
+ "* ",
+ "Then "
+ ],
+ "when": [
+ "* ",
+ "When "
+ ]
+ },
+ "en-Scouse": {
+ "and": [
+ "* ",
+ "An "
+ ],
+ "background": [
+ "Dis is what went down"
+ ],
+ "but": [
+ "* ",
+ "Buh "
+ ],
+ "examples": [
+ "Examples"
+ ],
+ "feature": [
+ "Feature"
+ ],
+ "given": [
+ "* ",
+ "Givun ",
+ "Youse know when youse got "
+ ],
+ "name": "Scouse",
+ "native": "Scouse",
+ "scenario": [
+ "The thing of it is"
+ ],
+ "scenarioOutline": [
+ "Wharrimean is"
+ ],
+ "then": [
+ "* ",
+ "Dun ",
+ "Den youse gotta "
+ ],
+ "when": [
+ "* ",
+ "Wun ",
+ "Youse know like when "
+ ]
+ },
+ "en-au": {
+ "and": [
+ "* ",
+ "Too right "
+ ],
+ "background": [
+ "First off"
+ ],
+ "but": [
+ "* ",
+ "Yeah nah "
+ ],
+ "examples": [
+ "You'll wanna"
+ ],
+ "feature": [
+ "Pretty much"
+ ],
+ "given": [
+ "* ",
+ "Y'know "
+ ],
+ "name": "Australian",
+ "native": "Australian",
+ "scenario": [
+ "Awww, look mate"
+ ],
+ "scenarioOutline": [
+ "Reckon it's like"
+ ],
+ "then": [
+ "* ",
+ "But at the end of the day I reckon "
+ ],
+ "when": [
+ "* ",
+ "It's just unbelievable "
+ ]
+ },
+ "en-lol": {
+ "and": [
+ "* ",
+ "AN "
+ ],
+ "background": [
+ "B4"
+ ],
+ "but": [
+ "* ",
+ "BUT "
+ ],
+ "examples": [
+ "EXAMPLZ"
+ ],
+ "feature": [
+ "OH HAI"
+ ],
+ "given": [
+ "* ",
+ "I CAN HAZ "
+ ],
+ "name": "LOLCAT",
+ "native": "LOLCAT",
+ "scenario": [
+ "MISHUN"
+ ],
+ "scenarioOutline": [
+ "MISHUN SRSLY"
+ ],
+ "then": [
+ "* ",
+ "DEN "
+ ],
+ "when": [
+ "* ",
+ "WEN "
+ ]
+ },
+ "en-old": {
+ "and": [
+ "* ",
+ "Ond ",
+ "7 "
+ ],
+ "background": [
+ "Aer",
+ "Ær"
+ ],
+ "but": [
+ "* ",
+ "Ac "
+ ],
+ "examples": [
+ "Se the",
+ "Se þe",
+ "Se ðe"
+ ],
+ "feature": [
+ "Hwaet",
+ "Hwæt"
+ ],
+ "given": [
+ "* ",
+ "Thurh ",
+ "Þurh ",
+ "Ðurh "
+ ],
+ "name": "Old English",
+ "native": "Englisc",
+ "scenario": [
+ "Swa"
+ ],
+ "scenarioOutline": [
+ "Swa hwaer swa",
+ "Swa hwær swa"
+ ],
+ "then": [
+ "* ",
+ "Tha ",
+ "Þa ",
+ "Ða ",
+ "Tha the ",
+ "Þa þe ",
+ "Ða ðe "
+ ],
+ "when": [
+ "* ",
+ "Tha ",
+ "Þa ",
+ "Ða "
+ ]
+ },
+ "en-pirate": {
+ "and": [
+ "* ",
+ "Aye "
+ ],
+ "background": [
+ "Yo-ho-ho"
+ ],
+ "but": [
+ "* ",
+ "Avast! "
+ ],
+ "examples": [
+ "Dead men tell no tales"
+ ],
+ "feature": [
+ "Ahoy matey!"
+ ],
+ "given": [
+ "* ",
+ "Gangway! "
+ ],
+ "name": "Pirate",
+ "native": "Pirate",
+ "scenario": [
+ "Heave to"
+ ],
+ "scenarioOutline": [
+ "Shiver me timbers"
+ ],
+ "then": [
+ "* ",
+ "Let go and haul "
+ ],
+ "when": [
+ "* ",
+ "Blimey! "
+ ]
+ },
+ "eo": {
+ "and": [
+ "* ",
+ "Kaj "
+ ],
+ "background": [
+ "Fono"
+ ],
+ "but": [
+ "* ",
+ "Sed "
+ ],
+ "examples": [
+ "Ekzemploj"
+ ],
+ "feature": [
+ "Trajto"
+ ],
+ "given": [
+ "* ",
+ "Donitaĵo ",
+ "Komence "
+ ],
+ "name": "Esperanto",
+ "native": "Esperanto",
+ "scenario": [
+ "Scenaro",
+ "Kazo"
+ ],
+ "scenarioOutline": [
+ "Konturo de la scenaro",
+ "Skizo",
+ "Kazo-skizo"
+ ],
+ "then": [
+ "* ",
+ "Do "
+ ],
+ "when": [
+ "* ",
+ "Se "
+ ]
+ },
+ "es": {
+ "and": [
+ "* ",
+ "Y ",
+ "E "
+ ],
+ "background": [
+ "Antecedentes"
+ ],
+ "but": [
+ "* ",
+ "Pero "
+ ],
+ "examples": [
+ "Ejemplos"
+ ],
+ "feature": [
+ "Característica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Spanish",
+ "native": "español",
+ "scenario": [
+ "Escenario"
+ ],
+ "scenarioOutline": [
+ "Esquema del escenario"
+ ],
+ "then": [
+ "* ",
+ "Entonces "
+ ],
+ "when": [
+ "* ",
+ "Cuando "
+ ]
+ },
+ "et": {
+ "and": [
+ "* ",
+ "Ja "
+ ],
+ "background": [
+ "Taust"
+ ],
+ "but": [
+ "* ",
+ "Kuid "
+ ],
+ "examples": [
+ "Juhtumid"
+ ],
+ "feature": [
+ "Omadus"
+ ],
+ "given": [
+ "* ",
+ "Eeldades "
+ ],
+ "name": "Estonian",
+ "native": "eesti keel",
+ "scenario": [
+ "Stsenaarium"
+ ],
+ "scenarioOutline": [
+ "Raamstsenaarium"
+ ],
+ "then": [
+ "* ",
+ "Siis "
+ ],
+ "when": [
+ "* ",
+ "Kui "
+ ]
+ },
+ "fa": {
+ "and": [
+ "* ",
+ "و "
+ ],
+ "background": [
+ "زمینه"
+ ],
+ "but": [
+ "* ",
+ "اما "
+ ],
+ "examples": [
+ "نمونه ها"
+ ],
+ "feature": [
+ "وِیژگی"
+ ],
+ "given": [
+ "* ",
+ "با فرض "
+ ],
+ "name": "Persian",
+ "native": "فارسی",
+ "scenario": [
+ "سناریو"
+ ],
+ "scenarioOutline": [
+ "الگوی سناریو"
+ ],
+ "then": [
+ "* ",
+ "آنگاه "
+ ],
+ "when": [
+ "* ",
+ "هنگامی "
+ ]
+ },
+ "fi": {
+ "and": [
+ "* ",
+ "Ja "
+ ],
+ "background": [
+ "Tausta"
+ ],
+ "but": [
+ "* ",
+ "Mutta "
+ ],
+ "examples": [
+ "Tapaukset"
+ ],
+ "feature": [
+ "Ominaisuus"
+ ],
+ "given": [
+ "* ",
+ "Oletetaan "
+ ],
+ "name": "Finnish",
+ "native": "suomi",
+ "scenario": [
+ "Tapaus"
+ ],
+ "scenarioOutline": [
+ "Tapausaihio"
+ ],
+ "then": [
+ "* ",
+ "Niin "
+ ],
+ "when": [
+ "* ",
+ "Kun "
+ ]
+ },
+ "fr": {
+ "and": [
+ "* ",
+ "Et que ",
+ "Et qu'",
+ "Et "
+ ],
+ "background": [
+ "Contexte"
+ ],
+ "but": [
+ "* ",
+ "Mais que ",
+ "Mais qu'",
+ "Mais "
+ ],
+ "examples": [
+ "Exemples"
+ ],
+ "feature": [
+ "Fonctionnalité"
+ ],
+ "given": [
+ "* ",
+ "Soit ",
+ "Etant donné que ",
+ "Etant donné qu'",
+ "Etant donné ",
+ "Etant donnée ",
+ "Etant donnés ",
+ "Etant données ",
+ "Étant donné que ",
+ "Étant donné qu'",
+ "Étant donné ",
+ "Étant donnée ",
+ "Étant donnés ",
+ "Étant données "
+ ],
+ "name": "French",
+ "native": "français",
+ "scenario": [
+ "Scénario"
+ ],
+ "scenarioOutline": [
+ "Plan du scénario",
+ "Plan du Scénario"
+ ],
+ "then": [
+ "* ",
+ "Alors "
+ ],
+ "when": [
+ "* ",
+ "Quand ",
+ "Lorsque ",
+ "Lorsqu'"
+ ]
+ },
+ "ga": {
+ "and": [
+ "* ",
+ "Agus"
+ ],
+ "background": [
+ "Cúlra"
+ ],
+ "but": [
+ "* ",
+ "Ach"
+ ],
+ "examples": [
+ "Samplaí"
+ ],
+ "feature": [
+ "Gné"
+ ],
+ "given": [
+ "* ",
+ "Cuir i gcás go",
+ "Cuir i gcás nach",
+ "Cuir i gcás gur",
+ "Cuir i gcás nár"
+ ],
+ "name": "Irish",
+ "native": "Gaeilge",
+ "scenario": [
+ "Cás"
+ ],
+ "scenarioOutline": [
+ "Cás Achomair"
+ ],
+ "then": [
+ "* ",
+ "Ansin"
+ ],
+ "when": [
+ "* ",
+ "Nuair a",
+ "Nuair nach",
+ "Nuair ba",
+ "Nuair nár"
+ ]
+ },
+ "gj": {
+ "and": [
+ "* ",
+ "અને "
+ ],
+ "background": [
+ "બેકગ્રાઉન્ડ"
+ ],
+ "but": [
+ "* ",
+ "પણ "
+ ],
+ "examples": [
+ "ઉદાહરણો"
+ ],
+ "feature": [
+ "લક્ષણ",
+ "વ્યાપાર જરૂર",
+ "ક્ષમતા"
+ ],
+ "given": [
+ "* ",
+ "આપેલ છે "
+ ],
+ "name": "Gujarati",
+ "native": "ગુજરાતી",
+ "scenario": [
+ "સ્થિતિ"
+ ],
+ "scenarioOutline": [
+ "પરિદ્દશ્ય રૂપરેખા",
+ "પરિદ્દશ્ય ઢાંચો"
+ ],
+ "then": [
+ "* ",
+ "પછી "
+ ],
+ "when": [
+ "* ",
+ "ક્યારે "
+ ]
+ },
+ "gl": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contexto"
+ ],
+ "but": [
+ "* ",
+ "Mais ",
+ "Pero "
+ ],
+ "examples": [
+ "Exemplos"
+ ],
+ "feature": [
+ "Característica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Galician",
+ "native": "galego",
+ "scenario": [
+ "Escenario"
+ ],
+ "scenarioOutline": [
+ "Esbozo do escenario"
+ ],
+ "then": [
+ "* ",
+ "Entón ",
+ "Logo "
+ ],
+ "when": [
+ "* ",
+ "Cando "
+ ]
+ },
+ "he": {
+ "and": [
+ "* ",
+ "וגם "
+ ],
+ "background": [
+ "רקע"
+ ],
+ "but": [
+ "* ",
+ "אבל "
+ ],
+ "examples": [
+ "דוגמאות"
+ ],
+ "feature": [
+ "תכונה"
+ ],
+ "given": [
+ "* ",
+ "בהינתן "
+ ],
+ "name": "Hebrew",
+ "native": "עברית",
+ "scenario": [
+ "תרחיש"
+ ],
+ "scenarioOutline": [
+ "תבנית תרחיש"
+ ],
+ "then": [
+ "* ",
+ "אז ",
+ "אזי "
+ ],
+ "when": [
+ "* ",
+ "כאשר "
+ ]
+ },
+ "hi": {
+ "and": [
+ "* ",
+ "और ",
+ "तथा "
+ ],
+ "background": [
+ "पृष्ठभूमि"
+ ],
+ "but": [
+ "* ",
+ "पर ",
+ "परन्तु ",
+ "किन्तु "
+ ],
+ "examples": [
+ "उदाहरण"
+ ],
+ "feature": [
+ "रूप लेख"
+ ],
+ "given": [
+ "* ",
+ "अगर ",
+ "यदि ",
+ "चूंकि "
+ ],
+ "name": "Hindi",
+ "native": "हिंदी",
+ "scenario": [
+ "परिदृश्य"
+ ],
+ "scenarioOutline": [
+ "परिदृश्य रूपरेखा"
+ ],
+ "then": [
+ "* ",
+ "तब ",
+ "तदा "
+ ],
+ "when": [
+ "* ",
+ "जब ",
+ "कदा "
+ ]
+ },
+ "hr": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primjeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Osobina",
+ "Mogućnost",
+ "Mogucnost"
+ ],
+ "given": [
+ "* ",
+ "Zadan ",
+ "Zadani ",
+ "Zadano "
+ ],
+ "name": "Croatian",
+ "native": "hrvatski",
+ "scenario": [
+ "Scenarij"
+ ],
+ "scenarioOutline": [
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Onda "
+ ],
+ "when": [
+ "* ",
+ "Kada ",
+ "Kad "
+ ]
+ },
+ "ht": {
+ "and": [
+ "* ",
+ "Ak ",
+ "Epi ",
+ "E "
+ ],
+ "background": [
+ "Kontèks",
+ "Istorik"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Egzanp"
+ ],
+ "feature": [
+ "Karakteristik",
+ "Mak",
+ "Fonksyonalite"
+ ],
+ "given": [
+ "* ",
+ "Sipoze ",
+ "Sipoze ke ",
+ "Sipoze Ke "
+ ],
+ "name": "Creole",
+ "native": "kreyòl",
+ "scenario": [
+ "Senaryo"
+ ],
+ "scenarioOutline": [
+ "Plan senaryo",
+ "Plan Senaryo",
+ "Senaryo deskripsyon",
+ "Senaryo Deskripsyon",
+ "Dyagram senaryo",
+ "Dyagram Senaryo"
+ ],
+ "then": [
+ "* ",
+ "Lè sa a ",
+ "Le sa a "
+ ],
+ "when": [
+ "* ",
+ "Lè ",
+ "Le "
+ ]
+ },
+ "hu": {
+ "and": [
+ "* ",
+ "És "
+ ],
+ "background": [
+ "Háttér"
+ ],
+ "but": [
+ "* ",
+ "De "
+ ],
+ "examples": [
+ "Példák"
+ ],
+ "feature": [
+ "Jellemző"
+ ],
+ "given": [
+ "* ",
+ "Amennyiben ",
+ "Adott "
+ ],
+ "name": "Hungarian",
+ "native": "magyar",
+ "scenario": [
+ "Forgatókönyv"
+ ],
+ "scenarioOutline": [
+ "Forgatókönyv vázlat"
+ ],
+ "then": [
+ "* ",
+ "Akkor "
+ ],
+ "when": [
+ "* ",
+ "Majd ",
+ "Ha ",
+ "Amikor "
+ ]
+ },
+ "id": {
+ "and": [
+ "* ",
+ "Dan "
+ ],
+ "background": [
+ "Dasar"
+ ],
+ "but": [
+ "* ",
+ "Tapi "
+ ],
+ "examples": [
+ "Contoh"
+ ],
+ "feature": [
+ "Fitur"
+ ],
+ "given": [
+ "* ",
+ "Dengan "
+ ],
+ "name": "Indonesian",
+ "native": "Bahasa Indonesia",
+ "scenario": [
+ "Skenario"
+ ],
+ "scenarioOutline": [
+ "Skenario konsep"
+ ],
+ "then": [
+ "* ",
+ "Maka "
+ ],
+ "when": [
+ "* ",
+ "Ketika "
+ ]
+ },
+ "is": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Bakgrunnur"
+ ],
+ "but": [
+ "* ",
+ "En "
+ ],
+ "examples": [
+ "Dæmi",
+ "Atburðarásir"
+ ],
+ "feature": [
+ "Eiginleiki"
+ ],
+ "given": [
+ "* ",
+ "Ef "
+ ],
+ "name": "Icelandic",
+ "native": "Íslenska",
+ "scenario": [
+ "Atburðarás"
+ ],
+ "scenarioOutline": [
+ "Lýsing Atburðarásar",
+ "Lýsing Dæma"
+ ],
+ "then": [
+ "* ",
+ "Þá "
+ ],
+ "when": [
+ "* ",
+ "Þegar "
+ ]
+ },
+ "it": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contesto"
+ ],
+ "but": [
+ "* ",
+ "Ma "
+ ],
+ "examples": [
+ "Esempi"
+ ],
+ "feature": [
+ "Funzionalità"
+ ],
+ "given": [
+ "* ",
+ "Dato ",
+ "Data ",
+ "Dati ",
+ "Date "
+ ],
+ "name": "Italian",
+ "native": "italiano",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Schema dello scenario"
+ ],
+ "then": [
+ "* ",
+ "Allora "
+ ],
+ "when": [
+ "* ",
+ "Quando "
+ ]
+ },
+ "ja": {
+ "and": [
+ "* ",
+ "かつ"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "しかし",
+ "但し",
+ "ただし"
+ ],
+ "examples": [
+ "例",
+ "サンプル"
+ ],
+ "feature": [
+ "フィーチャ",
+ "機能"
+ ],
+ "given": [
+ "* ",
+ "前提"
+ ],
+ "name": "Japanese",
+ "native": "日本語",
+ "scenario": [
+ "シナリオ"
+ ],
+ "scenarioOutline": [
+ "シナリオアウトライン",
+ "シナリオテンプレート",
+ "テンプレ",
+ "シナリオテンプレ"
+ ],
+ "then": [
+ "* ",
+ "ならば"
+ ],
+ "when": [
+ "* ",
+ "もし"
+ ]
+ },
+ "jv": {
+ "and": [
+ "* ",
+ "Lan "
+ ],
+ "background": [
+ "Dasar"
+ ],
+ "but": [
+ "* ",
+ "Tapi ",
+ "Nanging ",
+ "Ananging "
+ ],
+ "examples": [
+ "Conto",
+ "Contone"
+ ],
+ "feature": [
+ "Fitur"
+ ],
+ "given": [
+ "* ",
+ "Nalika ",
+ "Nalikaning "
+ ],
+ "name": "Javanese",
+ "native": "Basa Jawa",
+ "scenario": [
+ "Skenario"
+ ],
+ "scenarioOutline": [
+ "Konsep skenario"
+ ],
+ "then": [
+ "* ",
+ "Njuk ",
+ "Banjur "
+ ],
+ "when": [
+ "* ",
+ "Manawa ",
+ "Menawa "
+ ]
+ },
+ "ka": {
+ "and": [
+ "* ",
+ "და"
+ ],
+ "background": [
+ "კონტექსტი"
+ ],
+ "but": [
+ "* ",
+ "მაგრამ"
+ ],
+ "examples": [
+ "მაგალითები"
+ ],
+ "feature": [
+ "თვისება"
+ ],
+ "given": [
+ "* ",
+ "მოცემული"
+ ],
+ "name": "Georgian",
+ "native": "ქართველი",
+ "scenario": [
+ "სცენარის"
+ ],
+ "scenarioOutline": [
+ "სცენარის ნიმუში"
+ ],
+ "then": [
+ "* ",
+ "მაშინ"
+ ],
+ "when": [
+ "* ",
+ "როდესაც"
+ ]
+ },
+ "kn": {
+ "and": [
+ "* ",
+ "ಮತ್ತು "
+ ],
+ "background": [
+ "ಹಿನ್ನೆಲೆ"
+ ],
+ "but": [
+ "* ",
+ "ಆದರೆ "
+ ],
+ "examples": [
+ "ಉದಾಹರಣೆಗಳು"
+ ],
+ "feature": [
+ "ಹೆಚ್ಚಳ"
+ ],
+ "given": [
+ "* ",
+ "ನೀಡಿದ "
+ ],
+ "name": "Kannada",
+ "native": "ಕನ್ನಡ",
+ "scenario": [
+ "ಕಥಾಸಾರಾಂಶ"
+ ],
+ "scenarioOutline": [
+ "ವಿವರಣೆ"
+ ],
+ "then": [
+ "* ",
+ "ನಂತರ "
+ ],
+ "when": [
+ "* ",
+ "ಸ್ಥಿತಿಯನ್ನು "
+ ]
+ },
+ "ko": {
+ "and": [
+ "* ",
+ "그리고"
+ ],
+ "background": [
+ "배경"
+ ],
+ "but": [
+ "* ",
+ "하지만",
+ "단"
+ ],
+ "examples": [
+ "예"
+ ],
+ "feature": [
+ "기능"
+ ],
+ "given": [
+ "* ",
+ "조건",
+ "먼저"
+ ],
+ "name": "Korean",
+ "native": "한국어",
+ "scenario": [
+ "시나리오"
+ ],
+ "scenarioOutline": [
+ "시나리오 개요"
+ ],
+ "then": [
+ "* ",
+ "그러면"
+ ],
+ "when": [
+ "* ",
+ "만일",
+ "만약"
+ ]
+ },
+ "lt": {
+ "and": [
+ "* ",
+ "Ir "
+ ],
+ "background": [
+ "Kontekstas"
+ ],
+ "but": [
+ "* ",
+ "Bet "
+ ],
+ "examples": [
+ "Pavyzdžiai",
+ "Scenarijai",
+ "Variantai"
+ ],
+ "feature": [
+ "Savybė"
+ ],
+ "given": [
+ "* ",
+ "Duota "
+ ],
+ "name": "Lithuanian",
+ "native": "lietuvių kalba",
+ "scenario": [
+ "Scenarijus"
+ ],
+ "scenarioOutline": [
+ "Scenarijaus šablonas"
+ ],
+ "then": [
+ "* ",
+ "Tada "
+ ],
+ "when": [
+ "* ",
+ "Kai "
+ ]
+ },
+ "lu": {
+ "and": [
+ "* ",
+ "an ",
+ "a "
+ ],
+ "background": [
+ "Hannergrond"
+ ],
+ "but": [
+ "* ",
+ "awer ",
+ "mä "
+ ],
+ "examples": [
+ "Beispiller"
+ ],
+ "feature": [
+ "Funktionalitéit"
+ ],
+ "given": [
+ "* ",
+ "ugeholl "
+ ],
+ "name": "Luxemburgish",
+ "native": "Lëtzebuergesch",
+ "scenario": [
+ "Szenario"
+ ],
+ "scenarioOutline": [
+ "Plang vum Szenario"
+ ],
+ "then": [
+ "* ",
+ "dann "
+ ],
+ "when": [
+ "* ",
+ "wann "
+ ]
+ },
+ "lv": {
+ "and": [
+ "* ",
+ "Un "
+ ],
+ "background": [
+ "Konteksts",
+ "Situācija"
+ ],
+ "but": [
+ "* ",
+ "Bet "
+ ],
+ "examples": [
+ "Piemēri",
+ "Paraugs"
+ ],
+ "feature": [
+ "Funkcionalitāte",
+ "Fīča"
+ ],
+ "given": [
+ "* ",
+ "Kad "
+ ],
+ "name": "Latvian",
+ "native": "latviešu",
+ "scenario": [
+ "Scenārijs"
+ ],
+ "scenarioOutline": [
+ "Scenārijs pēc parauga"
+ ],
+ "then": [
+ "* ",
+ "Tad "
+ ],
+ "when": [
+ "* ",
+ "Ja "
+ ]
+ },
+ "mk-Cyrl": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Контекст",
+ "Содржина"
+ ],
+ "but": [
+ "* ",
+ "Но "
+ ],
+ "examples": [
+ "Примери",
+ "Сценарија"
+ ],
+ "feature": [
+ "Функционалност",
+ "Бизнис потреба",
+ "Можност"
+ ],
+ "given": [
+ "* ",
+ "Дадено ",
+ "Дадена "
+ ],
+ "name": "Macedonian",
+ "native": "Македонски",
+ "scenario": [
+ "Сценарио",
+ "На пример"
+ ],
+ "scenarioOutline": [
+ "Преглед на сценарија",
+ "Скица",
+ "Концепт"
+ ],
+ "then": [
+ "* ",
+ "Тогаш "
+ ],
+ "when": [
+ "* ",
+ "Кога "
+ ]
+ },
+ "mk-Latn": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Kontekst",
+ "Sodrzhina"
+ ],
+ "but": [
+ "* ",
+ "No "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenaria"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Biznis potreba",
+ "Mozhnost"
+ ],
+ "given": [
+ "* ",
+ "Dadeno ",
+ "Dadena "
+ ],
+ "name": "Macedonian (Latin)",
+ "native": "Makedonski (Latinica)",
+ "scenario": [
+ "Scenario",
+ "Na primer"
+ ],
+ "scenarioOutline": [
+ "Pregled na scenarija",
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Togash "
+ ],
+ "when": [
+ "* ",
+ "Koga "
+ ]
+ },
+ "mn": {
+ "and": [
+ "* ",
+ "Мөн ",
+ "Тэгээд "
+ ],
+ "background": [
+ "Агуулга"
+ ],
+ "but": [
+ "* ",
+ "Гэхдээ ",
+ "Харин "
+ ],
+ "examples": [
+ "Тухайлбал"
+ ],
+ "feature": [
+ "Функц",
+ "Функционал"
+ ],
+ "given": [
+ "* ",
+ "Өгөгдсөн нь ",
+ "Анх "
+ ],
+ "name": "Mongolian",
+ "native": "монгол",
+ "scenario": [
+ "Сценар"
+ ],
+ "scenarioOutline": [
+ "Сценарын төлөвлөгөө"
+ ],
+ "then": [
+ "* ",
+ "Тэгэхэд ",
+ "Үүний дараа "
+ ],
+ "when": [
+ "* ",
+ "Хэрэв "
+ ]
+ },
+ "nl": {
+ "and": [
+ "* ",
+ "En "
+ ],
+ "background": [
+ "Achtergrond"
+ ],
+ "but": [
+ "* ",
+ "Maar "
+ ],
+ "examples": [
+ "Voorbeelden"
+ ],
+ "feature": [
+ "Functionaliteit"
+ ],
+ "given": [
+ "* ",
+ "Gegeven ",
+ "Stel "
+ ],
+ "name": "Dutch",
+ "native": "Nederlands",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Abstract Scenario"
+ ],
+ "then": [
+ "* ",
+ "Dan "
+ ],
+ "when": [
+ "* ",
+ "Als ",
+ "Wanneer "
+ ]
+ },
+ "no": {
+ "and": [
+ "* ",
+ "Og "
+ ],
+ "background": [
+ "Bakgrunn"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Eksempler"
+ ],
+ "feature": [
+ "Egenskap"
+ ],
+ "given": [
+ "* ",
+ "Gitt "
+ ],
+ "name": "Norwegian",
+ "native": "norsk",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Scenariomal",
+ "Abstrakt Scenario"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "Når "
+ ]
+ },
+ "pa": {
+ "and": [
+ "* ",
+ "ਅਤੇ "
+ ],
+ "background": [
+ "ਪਿਛੋਕੜ"
+ ],
+ "but": [
+ "* ",
+ "ਪਰ "
+ ],
+ "examples": [
+ "ਉਦਾਹਰਨਾਂ"
+ ],
+ "feature": [
+ "ਖਾਸੀਅਤ",
+ "ਮੁਹਾਂਦਰਾ",
+ "ਨਕਸ਼ ਨੁਹਾਰ"
+ ],
+ "given": [
+ "* ",
+ "ਜੇਕਰ ",
+ "ਜਿਵੇਂ ਕਿ "
+ ],
+ "name": "Panjabi",
+ "native": "ਪੰਜਾਬੀ",
+ "scenario": [
+ "ਪਟਕਥਾ"
+ ],
+ "scenarioOutline": [
+ "ਪਟਕਥਾ ਢਾਂਚਾ",
+ "ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ"
+ ],
+ "then": [
+ "* ",
+ "ਤਦ "
+ ],
+ "when": [
+ "* ",
+ "ਜਦੋਂ "
+ ]
+ },
+ "pl": {
+ "and": [
+ "* ",
+ "Oraz ",
+ "I "
+ ],
+ "background": [
+ "Założenia"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Przykłady"
+ ],
+ "feature": [
+ "Właściwość",
+ "Funkcja",
+ "Aspekt",
+ "Potrzeba biznesowa"
+ ],
+ "given": [
+ "* ",
+ "Zakładając ",
+ "Mając ",
+ "Zakładając, że "
+ ],
+ "name": "Polish",
+ "native": "polski",
+ "scenario": [
+ "Scenariusz"
+ ],
+ "scenarioOutline": [
+ "Szablon scenariusza"
+ ],
+ "then": [
+ "* ",
+ "Wtedy "
+ ],
+ "when": [
+ "* ",
+ "Jeżeli ",
+ "Jeśli ",
+ "Gdy ",
+ "Kiedy "
+ ]
+ },
+ "pt": {
+ "and": [
+ "* ",
+ "E "
+ ],
+ "background": [
+ "Contexto",
+ "Cenário de Fundo",
+ "Cenario de Fundo",
+ "Fundo"
+ ],
+ "but": [
+ "* ",
+ "Mas "
+ ],
+ "examples": [
+ "Exemplos",
+ "Cenários",
+ "Cenarios"
+ ],
+ "feature": [
+ "Funcionalidade",
+ "Característica",
+ "Caracteristica"
+ ],
+ "given": [
+ "* ",
+ "Dado ",
+ "Dada ",
+ "Dados ",
+ "Dadas "
+ ],
+ "name": "Portuguese",
+ "native": "português",
+ "scenario": [
+ "Cenário",
+ "Cenario"
+ ],
+ "scenarioOutline": [
+ "Esquema do Cenário",
+ "Esquema do Cenario",
+ "Delineação do Cenário",
+ "Delineacao do Cenario"
+ ],
+ "then": [
+ "* ",
+ "Então ",
+ "Entao "
+ ],
+ "when": [
+ "* ",
+ "Quando "
+ ]
+ },
+ "ro": {
+ "and": [
+ "* ",
+ "Si ",
+ "Și ",
+ "Şi "
+ ],
+ "background": [
+ "Context"
+ ],
+ "but": [
+ "* ",
+ "Dar "
+ ],
+ "examples": [
+ "Exemple"
+ ],
+ "feature": [
+ "Functionalitate",
+ "Funcționalitate",
+ "Funcţionalitate"
+ ],
+ "given": [
+ "* ",
+ "Date fiind ",
+ "Dat fiind ",
+ "Dată fiind",
+ "Dati fiind ",
+ "Dați fiind ",
+ "Daţi fiind "
+ ],
+ "name": "Romanian",
+ "native": "română",
+ "scenario": [
+ "Scenariu"
+ ],
+ "scenarioOutline": [
+ "Structura scenariu",
+ "Structură scenariu"
+ ],
+ "then": [
+ "* ",
+ "Atunci "
+ ],
+ "when": [
+ "* ",
+ "Cand ",
+ "Când "
+ ]
+ },
+ "ru": {
+ "and": [
+ "* ",
+ "И ",
+ "К тому же ",
+ "Также "
+ ],
+ "background": [
+ "Предыстория",
+ "Контекст"
+ ],
+ "but": [
+ "* ",
+ "Но ",
+ "А ",
+ "Иначе "
+ ],
+ "examples": [
+ "Примеры"
+ ],
+ "feature": [
+ "Функция",
+ "Функциональность",
+ "Функционал",
+ "Свойство"
+ ],
+ "given": [
+ "* ",
+ "Допустим ",
+ "Дано ",
+ "Пусть "
+ ],
+ "name": "Russian",
+ "native": "русский",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Структура сценария"
+ ],
+ "then": [
+ "* ",
+ "То ",
+ "Затем ",
+ "Тогда "
+ ],
+ "when": [
+ "* ",
+ "Когда ",
+ "Если "
+ ]
+ },
+ "sk": {
+ "and": [
+ "* ",
+ "A ",
+ "A tiež ",
+ "A taktiež ",
+ "A zároveň "
+ ],
+ "background": [
+ "Pozadie"
+ ],
+ "but": [
+ "* ",
+ "Ale "
+ ],
+ "examples": [
+ "Príklady"
+ ],
+ "feature": [
+ "Požiadavka",
+ "Funkcia",
+ "Vlastnosť"
+ ],
+ "given": [
+ "* ",
+ "Pokiaľ ",
+ "Za predpokladu "
+ ],
+ "name": "Slovak",
+ "native": "Slovensky",
+ "scenario": [
+ "Scenár"
+ ],
+ "scenarioOutline": [
+ "Náčrt Scenáru",
+ "Náčrt Scenára",
+ "Osnova Scenára"
+ ],
+ "then": [
+ "* ",
+ "Tak ",
+ "Potom "
+ ],
+ "when": [
+ "* ",
+ "Keď ",
+ "Ak "
+ ]
+ },
+ "sl": {
+ "and": [
+ "In ",
+ "Ter "
+ ],
+ "background": [
+ "Kontekst",
+ "Osnova",
+ "Ozadje"
+ ],
+ "but": [
+ "Toda ",
+ "Ampak ",
+ "Vendar "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Funkcija",
+ "Možnosti",
+ "Moznosti",
+ "Lastnost",
+ "Značilnost"
+ ],
+ "given": [
+ "Dano ",
+ "Podano ",
+ "Zaradi ",
+ "Privzeto "
+ ],
+ "name": "Slovenian",
+ "native": "Slovenski",
+ "scenario": [
+ "Scenarij",
+ "Primer"
+ ],
+ "scenarioOutline": [
+ "Struktura scenarija",
+ "Skica",
+ "Koncept",
+ "Oris scenarija",
+ "Osnutek"
+ ],
+ "then": [
+ "Nato ",
+ "Potem ",
+ "Takrat "
+ ],
+ "when": [
+ "Ko ",
+ "Ce ",
+ "Če ",
+ "Kadar "
+ ]
+ },
+ "sr-Cyrl": {
+ "and": [
+ "* ",
+ "И "
+ ],
+ "background": [
+ "Контекст",
+ "Основа",
+ "Позадина"
+ ],
+ "but": [
+ "* ",
+ "Али "
+ ],
+ "examples": [
+ "Примери",
+ "Сценарији"
+ ],
+ "feature": [
+ "Функционалност",
+ "Могућност",
+ "Особина"
+ ],
+ "given": [
+ "* ",
+ "За дато ",
+ "За дате ",
+ "За дати "
+ ],
+ "name": "Serbian",
+ "native": "Српски",
+ "scenario": [
+ "Сценарио",
+ "Пример"
+ ],
+ "scenarioOutline": [
+ "Структура сценарија",
+ "Скица",
+ "Концепт"
+ ],
+ "then": [
+ "* ",
+ "Онда "
+ ],
+ "when": [
+ "* ",
+ "Када ",
+ "Кад "
+ ]
+ },
+ "sr-Latn": {
+ "and": [
+ "* ",
+ "I "
+ ],
+ "background": [
+ "Kontekst",
+ "Osnova",
+ "Pozadina"
+ ],
+ "but": [
+ "* ",
+ "Ali "
+ ],
+ "examples": [
+ "Primeri",
+ "Scenariji"
+ ],
+ "feature": [
+ "Funkcionalnost",
+ "Mogućnost",
+ "Mogucnost",
+ "Osobina"
+ ],
+ "given": [
+ "* ",
+ "Za dato ",
+ "Za date ",
+ "Za dati "
+ ],
+ "name": "Serbian (Latin)",
+ "native": "Srpski (Latinica)",
+ "scenario": [
+ "Scenario",
+ "Primer"
+ ],
+ "scenarioOutline": [
+ "Struktura scenarija",
+ "Skica",
+ "Koncept"
+ ],
+ "then": [
+ "* ",
+ "Onda "
+ ],
+ "when": [
+ "* ",
+ "Kada ",
+ "Kad "
+ ]
+ },
+ "sv": {
+ "and": [
+ "* ",
+ "Och "
+ ],
+ "background": [
+ "Bakgrund"
+ ],
+ "but": [
+ "* ",
+ "Men "
+ ],
+ "examples": [
+ "Exempel"
+ ],
+ "feature": [
+ "Egenskap"
+ ],
+ "given": [
+ "* ",
+ "Givet "
+ ],
+ "name": "Swedish",
+ "native": "Svenska",
+ "scenario": [
+ "Scenario"
+ ],
+ "scenarioOutline": [
+ "Abstrakt Scenario",
+ "Scenariomall"
+ ],
+ "then": [
+ "* ",
+ "Så "
+ ],
+ "when": [
+ "* ",
+ "När "
+ ]
+ },
+ "ta": {
+ "and": [
+ "* ",
+ "மேலும் ",
+ "மற்றும் "
+ ],
+ "background": [
+ "பின்னணி"
+ ],
+ "but": [
+ "* ",
+ "ஆனால் "
+ ],
+ "examples": [
+ "எடுத்துக்காட்டுகள்",
+ "காட்சிகள்",
+ " நிலைமைகளில்"
+ ],
+ "feature": [
+ "அம்சம்",
+ "வணிக தேவை",
+ "திறன்"
+ ],
+ "given": [
+ "* ",
+ "கொடுக்கப்பட்ட "
+ ],
+ "name": "Tamil",
+ "native": "தமிழ்",
+ "scenario": [
+ "காட்சி"
+ ],
+ "scenarioOutline": [
+ "காட்சி சுருக்கம்",
+ "காட்சி வார்ப்புரு"
+ ],
+ "then": [
+ "* ",
+ "அப்பொழுது "
+ ],
+ "when": [
+ "* ",
+ "எப்போது "
+ ]
+ },
+ "th": {
+ "and": [
+ "* ",
+ "และ "
+ ],
+ "background": [
+ "แนวคิด"
+ ],
+ "but": [
+ "* ",
+ "แต่ "
+ ],
+ "examples": [
+ "ชุดของตัวอย่าง",
+ "ชุดของเหตุการณ์"
+ ],
+ "feature": [
+ "โครงหลัก",
+ "ความต้องการทางธุรกิจ",
+ "ความสามารถ"
+ ],
+ "given": [
+ "* ",
+ "กำหนดให้ "
+ ],
+ "name": "Thai",
+ "native": "ไทย",
+ "scenario": [
+ "เหตุการณ์"
+ ],
+ "scenarioOutline": [
+ "สรุปเหตุการณ์",
+ "โครงสร้างของเหตุการณ์"
+ ],
+ "then": [
+ "* ",
+ "ดังนั้น "
+ ],
+ "when": [
+ "* ",
+ "เมื่อ "
+ ]
+ },
+ "tl": {
+ "and": [
+ "* ",
+ "మరియు "
+ ],
+ "background": [
+ "నేపథ్యం"
+ ],
+ "but": [
+ "* ",
+ "కాని "
+ ],
+ "examples": [
+ "ఉదాహరణలు"
+ ],
+ "feature": [
+ "గుణము"
+ ],
+ "given": [
+ "* ",
+ "చెప్పబడినది "
+ ],
+ "name": "Telugu",
+ "native": "తెలుగు",
+ "scenario": [
+ "సన్నివేశం"
+ ],
+ "scenarioOutline": [
+ "కథనం"
+ ],
+ "then": [
+ "* ",
+ "అప్పుడు "
+ ],
+ "when": [
+ "* ",
+ "ఈ పరిస్థితిలో "
+ ]
+ },
+ "tlh": {
+ "and": [
+ "* ",
+ "'ej ",
+ "latlh "
+ ],
+ "background": [
+ "mo'"
+ ],
+ "but": [
+ "* ",
+ "'ach ",
+ "'a "
+ ],
+ "examples": [
+ "ghantoH",
+ "lutmey"
+ ],
+ "feature": [
+ "Qap",
+ "Qu'meH 'ut",
+ "perbogh",
+ "poQbogh malja'",
+ "laH"
+ ],
+ "given": [
+ "* ",
+ "ghu' noblu' ",
+ "DaH ghu' bejlu' "
+ ],
+ "name": "Klingon",
+ "native": "tlhIngan",
+ "scenario": [
+ "lut"
+ ],
+ "scenarioOutline": [
+ "lut chovnatlh"
+ ],
+ "then": [
+ "* ",
+ "vaj "
+ ],
+ "when": [
+ "* ",
+ "qaSDI' "
+ ]
+ },
+ "tr": {
+ "and": [
+ "* ",
+ "Ve "
+ ],
+ "background": [
+ "Geçmiş"
+ ],
+ "but": [
+ "* ",
+ "Fakat ",
+ "Ama "
+ ],
+ "examples": [
+ "Örnekler"
+ ],
+ "feature": [
+ "Özellik"
+ ],
+ "given": [
+ "* ",
+ "Diyelim ki "
+ ],
+ "name": "Turkish",
+ "native": "Türkçe",
+ "scenario": [
+ "Senaryo"
+ ],
+ "scenarioOutline": [
+ "Senaryo taslağı"
+ ],
+ "then": [
+ "* ",
+ "O zaman "
+ ],
+ "when": [
+ "* ",
+ "Eğer ki "
+ ]
+ },
+ "tt": {
+ "and": [
+ "* ",
+ "Һәм ",
+ "Вә "
+ ],
+ "background": [
+ "Кереш"
+ ],
+ "but": [
+ "* ",
+ "Ләкин ",
+ "Әмма "
+ ],
+ "examples": [
+ "Үрнәкләр",
+ "Мисаллар"
+ ],
+ "feature": [
+ "Мөмкинлек",
+ "Үзенчәлеклелек"
+ ],
+ "given": [
+ "* ",
+ "Әйтик "
+ ],
+ "name": "Tatar",
+ "native": "Татарча",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Сценарийның төзелеше"
+ ],
+ "then": [
+ "* ",
+ "Нәтиҗәдә "
+ ],
+ "when": [
+ "* ",
+ "Әгәр "
+ ]
+ },
+ "uk": {
+ "and": [
+ "* ",
+ "І ",
+ "А також ",
+ "Та "
+ ],
+ "background": [
+ "Передумова"
+ ],
+ "but": [
+ "* ",
+ "Але "
+ ],
+ "examples": [
+ "Приклади"
+ ],
+ "feature": [
+ "Функціонал"
+ ],
+ "given": [
+ "* ",
+ "Припустимо ",
+ "Припустимо, що ",
+ "Нехай ",
+ "Дано "
+ ],
+ "name": "Ukrainian",
+ "native": "Українська",
+ "scenario": [
+ "Сценарій"
+ ],
+ "scenarioOutline": [
+ "Структура сценарію"
+ ],
+ "then": [
+ "* ",
+ "То ",
+ "Тоді "
+ ],
+ "when": [
+ "* ",
+ "Якщо ",
+ "Коли "
+ ]
+ },
+ "ur": {
+ "and": [
+ "* ",
+ "اور "
+ ],
+ "background": [
+ "پس منظر"
+ ],
+ "but": [
+ "* ",
+ "لیکن "
+ ],
+ "examples": [
+ "مثالیں"
+ ],
+ "feature": [
+ "صلاحیت",
+ "کاروبار کی ضرورت",
+ "خصوصیت"
+ ],
+ "given": [
+ "* ",
+ "اگر ",
+ "بالفرض ",
+ "فرض کیا "
+ ],
+ "name": "Urdu",
+ "native": "اردو",
+ "scenario": [
+ "منظرنامہ"
+ ],
+ "scenarioOutline": [
+ "منظر نامے کا خاکہ"
+ ],
+ "then": [
+ "* ",
+ "پھر ",
+ "تب "
+ ],
+ "when": [
+ "* ",
+ "جب "
+ ]
+ },
+ "uz": {
+ "and": [
+ "* ",
+ "Ва "
+ ],
+ "background": [
+ "Тарих"
+ ],
+ "but": [
+ "* ",
+ "Лекин ",
+ "Бирок ",
+ "Аммо "
+ ],
+ "examples": [
+ "Мисоллар"
+ ],
+ "feature": [
+ "Функционал"
+ ],
+ "given": [
+ "* ",
+ "Агар "
+ ],
+ "name": "Uzbek",
+ "native": "Узбекча",
+ "scenario": [
+ "Сценарий"
+ ],
+ "scenarioOutline": [
+ "Сценарий структураси"
+ ],
+ "then": [
+ "* ",
+ "Унда "
+ ],
+ "when": [
+ "* ",
+ "Агар "
+ ]
+ },
+ "vi": {
+ "and": [
+ "* ",
+ "Và "
+ ],
+ "background": [
+ "Bối cảnh"
+ ],
+ "but": [
+ "* ",
+ "Nhưng "
+ ],
+ "examples": [
+ "Dữ liệu"
+ ],
+ "feature": [
+ "Tính năng"
+ ],
+ "given": [
+ "* ",
+ "Biết ",
+ "Cho "
+ ],
+ "name": "Vietnamese",
+ "native": "Tiếng Việt",
+ "scenario": [
+ "Tình huống",
+ "Kịch bản"
+ ],
+ "scenarioOutline": [
+ "Khung tình huống",
+ "Khung kịch bản"
+ ],
+ "then": [
+ "* ",
+ "Thì "
+ ],
+ "when": [
+ "* ",
+ "Khi "
+ ]
+ },
+ "zh-CN": {
+ "and": [
+ "* ",
+ "而且",
+ "并且",
+ "同时"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "但是"
+ ],
+ "examples": [
+ "例子"
+ ],
+ "feature": [
+ "功能"
+ ],
+ "given": [
+ "* ",
+ "假如",
+ "假设",
+ "假定"
+ ],
+ "name": "Chinese simplified",
+ "native": "简体中文",
+ "scenario": [
+ "场景",
+ "剧本"
+ ],
+ "scenarioOutline": [
+ "场景大纲",
+ "剧本大纲"
+ ],
+ "then": [
+ "* ",
+ "那么"
+ ],
+ "when": [
+ "* ",
+ "当"
+ ]
+ },
+ "zh-TW": {
+ "and": [
+ "* ",
+ "而且",
+ "並且",
+ "同時"
+ ],
+ "background": [
+ "背景"
+ ],
+ "but": [
+ "* ",
+ "但是"
+ ],
+ "examples": [
+ "例子"
+ ],
+ "feature": [
+ "功能"
+ ],
+ "given": [
+ "* ",
+ "假如",
+ "假設",
+ "假定"
+ ],
+ "name": "Chinese traditional",
+ "native": "繁體中文",
+ "scenario": [
+ "場景",
+ "劇本"
+ ],
+ "scenarioOutline": [
+ "場景大綱",
+ "劇本大綱"
+ ],
+ "then": [
+ "* ",
+ "那麼"
+ ],
+ "when": [
+ "* ",
+ "當"
+ ]
+ }
+}
diff --git a/node_modules/gherkin/lib/gherkin/gherkin_line.js b/node_modules/gherkin/lib/gherkin/gherkin_line.js
new file mode 100644
index 00000000..20058ece
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/gherkin_line.js
@@ -0,0 +1,83 @@
+var countSymbols = require('./count_symbols')
+
+function GherkinLine(lineText, lineNumber) {
+ this.lineText = lineText;
+ this.lineNumber = lineNumber;
+ this.trimmedLineText = lineText.replace(/^\s+/g, ''); // ltrim
+ this.isEmpty = this.trimmedLineText.length == 0;
+ this.indent = countSymbols(lineText) - countSymbols(this.trimmedLineText);
+};
+
+GherkinLine.prototype.startsWith = function startsWith(prefix) {
+ return this.trimmedLineText.indexOf(prefix) == 0;
+};
+
+GherkinLine.prototype.startsWithTitleKeyword = function startsWithTitleKeyword(keyword) {
+ return this.startsWith(keyword+':'); // The C# impl is more complicated. Find out why.
+};
+
+GherkinLine.prototype.getLineText = function getLineText(indentToRemove) {
+ if (indentToRemove < 0 || indentToRemove > this.indent) {
+ return this.trimmedLineText;
+ } else {
+ return this.lineText.substring(indentToRemove);
+ }
+};
+
+GherkinLine.prototype.getRestTrimmed = function getRestTrimmed(length) {
+ return this.trimmedLineText.substring(length).trim();
+};
+
+GherkinLine.prototype.getTableCells = function getTableCells() {
+ var cells = [];
+ var col = 0;
+ var startCol = col + 1;
+ var cell = '';
+ var firstCell = true;
+ while (col < this.trimmedLineText.length) {
+ var chr = this.trimmedLineText[col];
+ col++;
+
+ if (chr == '|') {
+ if (firstCell) {
+ // First cell (content before the first |) is skipped
+ firstCell = false;
+ } else {
+ var cellIndent = cell.length - cell.replace(/^\s+/g, '').length;
+ var span = {column: this.indent + startCol + cellIndent, text: cell.trim()};
+ cells.push(span);
+ }
+ cell = '';
+ startCol = col + 1;
+ } else if (chr == '\\') {
+ chr = this.trimmedLineText[col];
+ col += 1;
+ if (chr == 'n') {
+ cell += '\n';
+ } else {
+ if (chr != '|' && chr != '\\') {
+ cell += '\\';
+ }
+ cell += chr;
+ }
+ } else {
+ cell += chr;
+ }
+ }
+
+ return cells;
+};
+
+GherkinLine.prototype.getTags = function getTags() {
+ var column = this.indent + 1;
+ var items = this.trimmedLineText.trim().split('@');
+ items.shift();
+ return items.map(function (item) {
+ var length = item.length;
+ var span = {column: column, text: '@' + item.trim()};
+ column += length + 1;
+ return span;
+ });
+};
+
+module.exports = GherkinLine;
diff --git a/node_modules/gherkin/lib/gherkin/ndjson.js b/node_modules/gherkin/lib/gherkin/ndjson.js
new file mode 100644
index 00000000..bb262139
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/ndjson.js
@@ -0,0 +1,3 @@
+/**
+ * Created by aslakhellesoy on 23/10/2016.
+ */
diff --git a/node_modules/gherkin/lib/gherkin/parser.js b/node_modules/gherkin/lib/gherkin/parser.js
new file mode 100644
index 00000000..cfa7b19a
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/parser.js
@@ -0,0 +1,2420 @@
+// This file is generated. Do not edit! Edit gherkin-javascript.razor instead.
+var Errors = require('./errors');
+var AstBuilder = require('./ast_builder');
+var TokenScanner = require('./token_scanner');
+var TokenMatcher = require('./token_matcher');
+
+var RULE_TYPES = [
+ 'None',
+ '_EOF', // #EOF
+ '_Empty', // #Empty
+ '_Comment', // #Comment
+ '_TagLine', // #TagLine
+ '_FeatureLine', // #FeatureLine
+ '_BackgroundLine', // #BackgroundLine
+ '_ScenarioLine', // #ScenarioLine
+ '_ScenarioOutlineLine', // #ScenarioOutlineLine
+ '_ExamplesLine', // #ExamplesLine
+ '_StepLine', // #StepLine
+ '_DocStringSeparator', // #DocStringSeparator
+ '_TableRow', // #TableRow
+ '_Language', // #Language
+ '_Other', // #Other
+ 'GherkinDocument', // GherkinDocument! := Feature?
+ 'Feature', // Feature! := Feature_Header Background? Scenario_Definition*
+ 'Feature_Header', // Feature_Header! := #Language? Tags? #FeatureLine Description_Helper
+ 'Background', // Background! := #BackgroundLine Description_Helper Step*
+ 'Scenario_Definition', // Scenario_Definition! := Tags? (Scenario | ScenarioOutline)
+ 'Scenario', // Scenario! := #ScenarioLine Description_Helper Step*
+ 'ScenarioOutline', // ScenarioOutline! := #ScenarioOutlineLine Description_Helper Step* Examples_Definition*
+ 'Examples_Definition', // Examples_Definition! [#Empty|#Comment|#TagLine->#ExamplesLine] := Tags? Examples
+ 'Examples', // Examples! := #ExamplesLine Description_Helper Examples_Table?
+ 'Examples_Table', // Examples_Table! := #TableRow #TableRow*
+ 'Step', // Step! := #StepLine Step_Arg?
+ 'Step_Arg', // Step_Arg := (DataTable | DocString)
+ 'DataTable', // DataTable! := #TableRow+
+ 'DocString', // DocString! := #DocStringSeparator #Other* #DocStringSeparator
+ 'Tags', // Tags! := #TagLine+
+ 'Description_Helper', // Description_Helper := #Empty* Description? #Comment*
+ 'Description', // Description! := #Other+
+];
+
+module.exports = function Parser(builder) {
+ builder = builder || new AstBuilder();
+ var self = this;
+ var context;
+
+ this.parse = function(tokenScanner, tokenMatcher) {
+ if(typeof tokenScanner == 'string') {
+ tokenScanner = new TokenScanner(tokenScanner);
+ }
+ tokenMatcher = tokenMatcher || new TokenMatcher();
+ builder.reset();
+ tokenMatcher.reset();
+ context = {
+ tokenScanner: tokenScanner,
+ tokenMatcher: tokenMatcher,
+ tokenQueue: [],
+ errors: []
+ };
+ startRule(context, "GherkinDocument");
+ var state = 0;
+ var token = null;
+ while(true) {
+ token = readToken(context);
+ state = matchToken(state, token, context);
+ if(token.isEof) break;
+ }
+
+ endRule(context, "GherkinDocument");
+
+ if(context.errors.length > 0) {
+ throw Errors.CompositeParserException.create(context.errors);
+ }
+
+ return getResult();
+ };
+
+ function addError(context, error) {
+ context.errors.push(error);
+ if (context.errors.length > 10)
+ throw Errors.CompositeParserException.create(context.errors);
+ }
+
+ function startRule(context, ruleType) {
+ handleAstError(context, function () {
+ builder.startRule(ruleType);
+ });
+ }
+
+ function endRule(context, ruleType) {
+ handleAstError(context, function () {
+ builder.endRule(ruleType);
+ });
+ }
+
+ function build(context, token) {
+ handleAstError(context, function () {
+ builder.build(token);
+ });
+ }
+
+ function getResult() {
+ return builder.getResult();
+ }
+
+ function handleAstError(context, action) {
+ handleExternalError(context, true, action)
+ }
+
+ function handleExternalError(context, defaultValue, action) {
+ if(self.stopAtFirstError) return action();
+ try {
+ return action();
+ } catch (e) {
+ if(e instanceof Errors.CompositeParserException) {
+ e.errors.forEach(function (error) {
+ addError(context, error);
+ });
+ } else if(
+ e instanceof Errors.ParserException ||
+ e instanceof Errors.AstBuilderException ||
+ e instanceof Errors.UnexpectedTokenException ||
+ e instanceof Errors.NoSuchLanguageException
+ ) {
+ addError(context, e);
+ } else {
+ throw e;
+ }
+ }
+ return defaultValue;
+ }
+
+ function readToken(context) {
+ return context.tokenQueue.length > 0 ?
+ context.tokenQueue.shift() :
+ context.tokenScanner.read();
+ }
+
+ function matchToken(state, token, context) {
+ switch(state) {
+ case 0:
+ return matchTokenAt_0(token, context);
+ case 1:
+ return matchTokenAt_1(token, context);
+ case 2:
+ return matchTokenAt_2(token, context);
+ case 3:
+ return matchTokenAt_3(token, context);
+ case 4:
+ return matchTokenAt_4(token, context);
+ case 5:
+ return matchTokenAt_5(token, context);
+ case 6:
+ return matchTokenAt_6(token, context);
+ case 7:
+ return matchTokenAt_7(token, context);
+ case 8:
+ return matchTokenAt_8(token, context);
+ case 9:
+ return matchTokenAt_9(token, context);
+ case 10:
+ return matchTokenAt_10(token, context);
+ case 11:
+ return matchTokenAt_11(token, context);
+ case 12:
+ return matchTokenAt_12(token, context);
+ case 13:
+ return matchTokenAt_13(token, context);
+ case 14:
+ return matchTokenAt_14(token, context);
+ case 15:
+ return matchTokenAt_15(token, context);
+ case 16:
+ return matchTokenAt_16(token, context);
+ case 17:
+ return matchTokenAt_17(token, context);
+ case 18:
+ return matchTokenAt_18(token, context);
+ case 19:
+ return matchTokenAt_19(token, context);
+ case 20:
+ return matchTokenAt_20(token, context);
+ case 21:
+ return matchTokenAt_21(token, context);
+ case 22:
+ return matchTokenAt_22(token, context);
+ case 23:
+ return matchTokenAt_23(token, context);
+ case 24:
+ return matchTokenAt_24(token, context);
+ case 25:
+ return matchTokenAt_25(token, context);
+ case 26:
+ return matchTokenAt_26(token, context);
+ case 28:
+ return matchTokenAt_28(token, context);
+ case 29:
+ return matchTokenAt_29(token, context);
+ case 30:
+ return matchTokenAt_30(token, context);
+ case 31:
+ return matchTokenAt_31(token, context);
+ case 32:
+ return matchTokenAt_32(token, context);
+ case 33:
+ return matchTokenAt_33(token, context);
+ default:
+ throw new Error("Unknown state: " + state);
+ }
+ }
+
+
+ // Start
+ function matchTokenAt_0(token, context) {
+ if(match_EOF(context, token)) {
+ build(context, token);
+ return 27;
+ }
+ if(match_Language(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ build(context, token);
+ return 1;
+ }
+ if(match_TagLine(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ startRule(context, 'Feature');
+ startRule(context, 'Feature_Header');
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 0;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 0;
+ }
+
+ var stateComment = "State: 0 - Start";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Language", "#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 0;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0
+ function matchTokenAt_1(token, context) {
+ if(match_TagLine(context, token)) {
+ startRule(context, 'Tags');
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 1;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 1;
+ }
+
+ var stateComment = "State: 1 - GherkinDocument:0>Feature:0>Feature_Header:0>#Language:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 1;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0
+ function matchTokenAt_2(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 2;
+ }
+ if(match_FeatureLine(context, token)) {
+ endRule(context, 'Tags');
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 2;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 2;
+ }
+
+ var stateComment = "State: 2 - GherkinDocument:0>Feature:0>Feature_Header:1>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#FeatureLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 2;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0
+ function matchTokenAt_3(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 3;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 4;
+ }
+
+ var stateComment = "State: 3 - GherkinDocument:0>Feature:0>Feature_Header:2>#FeatureLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 3;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_4(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 4;
+ }
+
+ var stateComment = "State: 4 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 4;
+ }
+
+
+ // GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0
+ function matchTokenAt_5(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Feature_Header');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 5;
+ }
+ if(match_BackgroundLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Background');
+ build(context, token);
+ return 6;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Feature_Header');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 5;
+ }
+
+ var stateComment = "State: 5 - GherkinDocument:0>Feature:0>Feature_Header:3>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#BackgroundLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 5;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0
+ function matchTokenAt_6(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 6;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 7;
+ }
+
+ var stateComment = "State: 6 - GherkinDocument:0>Feature:1>Background:0>#BackgroundLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 6;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_7(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 7;
+ }
+
+ var stateComment = "State: 7 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 7;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_8(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 8;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 8;
+ }
+
+ var stateComment = "State: 8 - GherkinDocument:0>Feature:1>Background:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 8;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0
+ function matchTokenAt_9(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 10;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 32;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 9;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 9;
+ }
+
+ var stateComment = "State: 9 - GherkinDocument:0>Feature:1>Background:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 9;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_10(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 10;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 10;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 10;
+ }
+
+ var stateComment = "State: 10 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 10;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0
+ function matchTokenAt_11(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 11;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 11;
+ }
+
+ var stateComment = "State: 11 - GherkinDocument:0>Feature:2>Scenario_Definition:0>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 11;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0
+ function matchTokenAt_12(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 12;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 13;
+ }
+
+ var stateComment = "State: 12 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:0>#ScenarioLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 12;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_13(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 13;
+ }
+
+ var stateComment = "State: 13 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 13;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_14(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 14;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 14;
+ }
+
+ var stateComment = "State: 14 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 14;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0
+ function matchTokenAt_15(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 16;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 30;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 15;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 15;
+ }
+
+ var stateComment = "State: 15 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 15;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_16(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 16;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 16;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 16;
+ }
+
+ var stateComment = "State: 16 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 16;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0
+ function matchTokenAt_17(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 18;
+ }
+
+ var stateComment = "State: 17 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:0>#ScenarioOutlineLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 17;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_18(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 18;
+ }
+
+ var stateComment = "State: 18 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 18;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_19(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 19;
+ }
+ if(match_StepLine(context, token)) {
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 19;
+ }
+
+ var stateComment = "State: 19 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 19;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0
+ function matchTokenAt_20(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'DataTable');
+ build(context, token);
+ return 21;
+ }
+ if(match_DocStringSeparator(context, token)) {
+ startRule(context, 'DocString');
+ build(context, token);
+ return 28;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 20;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 20;
+ }
+
+ var stateComment = "State: 20 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:0>#StepLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#DocStringSeparator", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 20;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0
+ function matchTokenAt_21(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 21;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DataTable');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 21;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 21;
+ }
+
+ var stateComment = "State: 21 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:0>DataTable:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 21;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0
+ function matchTokenAt_22(token, context) {
+ if(match_TagLine(context, token)) {
+ build(context, token);
+ return 22;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Tags');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 22;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 22;
+ }
+
+ var stateComment = "State: 22 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:0>Tags:0>#TagLine:0";
+ token.detach();
+ var expectedTokens = ["#TagLine", "#ExamplesLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 22;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0
+ function matchTokenAt_23(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 23;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ startRule(context, 'Description');
+ build(context, token);
+ return 24;
+ }
+
+ var stateComment = "State: 23 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:0>#ExamplesLine:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Empty", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 23;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0
+ function matchTokenAt_24(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ endRule(context, 'Description');
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ endRule(context, 'Description');
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Description');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 24;
+ }
+
+ var stateComment = "State: 24 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:1>Description:0>#Other:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 24;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0
+ function matchTokenAt_25(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 25;
+ }
+ if(match_TableRow(context, token)) {
+ startRule(context, 'Examples_Table');
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 25;
+ }
+
+ var stateComment = "State: 25 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:1>Description_Helper:2>#Comment:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#Comment", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 25;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0
+ function matchTokenAt_26(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_TableRow(context, token)) {
+ build(context, token);
+ return 26;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'Examples_Table');
+ endRule(context, 'Examples');
+ endRule(context, 'Examples_Definition');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 26;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 26;
+ }
+
+ var stateComment = "State: 26 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:3>Examples_Definition:1>Examples:2>Examples_Table:0>#TableRow:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#TableRow", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 26;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_28(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 29;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 28;
+ }
+
+ var stateComment = "State: 28 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 28;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_29(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 20;
+ }
+ if(match_TagLine(context, token)) {
+ if(lookahead_0(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 22;
+ }
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ExamplesLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Examples_Definition');
+ startRule(context, 'Examples');
+ build(context, token);
+ return 23;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'ScenarioOutline');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 29;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 29;
+ }
+
+ var stateComment = "State: 29 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:1>ScenarioOutline:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ExamplesLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 29;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_30(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 31;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 30;
+ }
+
+ var stateComment = "State: 30 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 30;
+ }
+
+
+ // GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_31(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 15;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Scenario');
+ endRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 31;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 31;
+ }
+
+ var stateComment = "State: 31 - GherkinDocument:0>Feature:2>Scenario_Definition:1>__alt0:0>Scenario:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 31;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0
+ function matchTokenAt_32(token, context) {
+ if(match_DocStringSeparator(context, token)) {
+ build(context, token);
+ return 33;
+ }
+ if(match_Other(context, token)) {
+ build(context, token);
+ return 32;
+ }
+
+ var stateComment = "State: 32 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:0>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#DocStringSeparator", "#Other"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 32;
+ }
+
+
+ // GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0
+ function matchTokenAt_33(token, context) {
+ if(match_EOF(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ endRule(context, 'Feature');
+ build(context, token);
+ return 27;
+ }
+ if(match_StepLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ startRule(context, 'Step');
+ build(context, token);
+ return 9;
+ }
+ if(match_TagLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Tags');
+ build(context, token);
+ return 11;
+ }
+ if(match_ScenarioLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'Scenario');
+ build(context, token);
+ return 12;
+ }
+ if(match_ScenarioOutlineLine(context, token)) {
+ endRule(context, 'DocString');
+ endRule(context, 'Step');
+ endRule(context, 'Background');
+ startRule(context, 'Scenario_Definition');
+ startRule(context, 'ScenarioOutline');
+ build(context, token);
+ return 17;
+ }
+ if(match_Comment(context, token)) {
+ build(context, token);
+ return 33;
+ }
+ if(match_Empty(context, token)) {
+ build(context, token);
+ return 33;
+ }
+
+ var stateComment = "State: 33 - GherkinDocument:0>Feature:1>Background:2>Step:1>Step_Arg:0>__alt1:1>DocString:2>#DocStringSeparator:0";
+ token.detach();
+ var expectedTokens = ["#EOF", "#StepLine", "#TagLine", "#ScenarioLine", "#ScenarioOutlineLine", "#Comment", "#Empty"];
+ var error = token.isEof ?
+ Errors.UnexpectedEOFException.create(token, expectedTokens, stateComment) :
+ Errors.UnexpectedTokenException.create(token, expectedTokens, stateComment);
+ if (self.stopAtFirstError) throw error;
+ addError(context, error);
+ return 33;
+ }
+
+
+
+ function match_EOF(context, token) {
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_EOF(token);
+ });
+ }
+
+
+ function match_Empty(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Empty(token);
+ });
+ }
+
+
+ function match_Comment(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Comment(token);
+ });
+ }
+
+
+ function match_TagLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_TagLine(token);
+ });
+ }
+
+
+ function match_FeatureLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_FeatureLine(token);
+ });
+ }
+
+
+ function match_BackgroundLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_BackgroundLine(token);
+ });
+ }
+
+
+ function match_ScenarioLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ScenarioLine(token);
+ });
+ }
+
+
+ function match_ScenarioOutlineLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ScenarioOutlineLine(token);
+ });
+ }
+
+
+ function match_ExamplesLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_ExamplesLine(token);
+ });
+ }
+
+
+ function match_StepLine(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_StepLine(token);
+ });
+ }
+
+
+ function match_DocStringSeparator(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_DocStringSeparator(token);
+ });
+ }
+
+
+ function match_TableRow(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_TableRow(token);
+ });
+ }
+
+
+ function match_Language(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Language(token);
+ });
+ }
+
+
+ function match_Other(context, token) {
+ if(token.isEof) return false;
+ return handleExternalError(context, false, function () {
+ return context.tokenMatcher.match_Other(token);
+ });
+ }
+
+
+
+ function lookahead_0(context, currentToken) {
+ currentToken.detach();
+ var token;
+ var queue = [];
+ var match = false;
+ do {
+ token = readToken(context);
+ token.detach();
+ queue.push(token);
+
+ if (false || match_ExamplesLine(context, token)) {
+ match = true;
+ break;
+ }
+ } while(false || match_Empty(context, token) || match_Comment(context, token) || match_TagLine(context, token));
+
+ context.tokenQueue = context.tokenQueue.concat(queue);
+
+ return match;
+ }
+
+
+}
diff --git a/node_modules/gherkin/lib/gherkin/pickles/compiler.js b/node_modules/gherkin/lib/gherkin/pickles/compiler.js
new file mode 100644
index 00000000..611f87d7
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/pickles/compiler.js
@@ -0,0 +1,169 @@
+var countSymbols = require('../count_symbols');
+
+function Compiler() {
+ this.compile = function (gherkin_document) {
+ var pickles = [];
+
+ if (gherkin_document.feature == null) return pickles;
+
+ var feature = gherkin_document.feature;
+ var language = feature.language;
+ var featureTags = feature.tags;
+ var backgroundSteps = [];
+
+ feature.children.forEach(function (scenarioDefinition) {
+ if(scenarioDefinition.type === 'Background') {
+ backgroundSteps = pickleSteps(scenarioDefinition);
+ } else if(scenarioDefinition.type === 'Scenario') {
+ compileScenario(featureTags, backgroundSteps, scenarioDefinition, language, pickles);
+ } else {
+ compileScenarioOutline(featureTags, backgroundSteps, scenarioDefinition, language, pickles);
+ }
+ });
+ return pickles;
+ };
+
+ function compileScenario(featureTags, backgroundSteps, scenario, language, pickles) {
+ var steps = scenario.steps.length == 0 ? [] : [].concat(backgroundSteps);
+
+ var tags = [].concat(featureTags).concat(scenario.tags);
+
+ scenario.steps.forEach(function (step) {
+ steps.push(pickleStep(step));
+ });
+
+ var pickle = {
+ tags: pickleTags(tags),
+ name: scenario.name,
+ language: language,
+ locations: [pickleLocation(scenario.location)],
+ steps: steps
+ };
+ pickles.push(pickle);
+ }
+
+ function compileScenarioOutline(featureTags, backgroundSteps, scenarioOutline, language, pickles) {
+ scenarioOutline.examples.filter(function(e) { return e.tableHeader != undefined; }).forEach(function (examples) {
+ var variableCells = examples.tableHeader.cells;
+ examples.tableBody.forEach(function (values) {
+ var valueCells = values.cells;
+ var steps = scenarioOutline.steps.length == 0 ? [] : [].concat(backgroundSteps);
+ var tags = [].concat(featureTags).concat(scenarioOutline.tags).concat(examples.tags);
+
+ scenarioOutline.steps.forEach(function (scenarioOutlineStep) {
+ var stepText = interpolate(scenarioOutlineStep.text, variableCells, valueCells);
+ var args = createPickleArguments(scenarioOutlineStep.argument, variableCells, valueCells);
+ var pickleStep = {
+ text: stepText,
+ arguments: args,
+ locations: [
+ pickleLocation(values.location),
+ pickleStepLocation(scenarioOutlineStep)
+ ]
+ };
+ steps.push(pickleStep);
+ });
+
+ var pickle = {
+ name: interpolate(scenarioOutline.name, variableCells, valueCells),
+ language: language,
+ steps: steps,
+ tags: pickleTags(tags),
+ locations: [
+ pickleLocation(values.location),
+ pickleLocation(scenarioOutline.location)
+ ]
+ };
+ pickles.push(pickle);
+
+ });
+ });
+ }
+
+ function createPickleArguments(argument, variableCells, valueCells) {
+ var result = [];
+ if (!argument) return result;
+ if (argument.type === 'DataTable') {
+ var table = {
+ rows: argument.rows.map(function (row) {
+ return {
+ cells: row.cells.map(function (cell) {
+ return {
+ location: pickleLocation(cell.location),
+ value: interpolate(cell.value, variableCells, valueCells)
+ };
+ })
+ };
+ })
+ };
+ result.push(table);
+ } else if (argument.type === 'DocString') {
+ var docString = {
+ location: pickleLocation(argument.location),
+ content: interpolate(argument.content, variableCells, valueCells),
+ };
+ if(argument.contentType) {
+ docString.contentType = interpolate(argument.contentType, variableCells, valueCells);
+ }
+ result.push(docString);
+ } else {
+ throw Error('Internal error');
+ }
+ return result;
+ }
+
+ function interpolate(name, variableCells, valueCells) {
+ variableCells.forEach(function (variableCell, n) {
+ var valueCell = valueCells[n];
+ var search = new RegExp('<' + variableCell.value + '>', 'g');
+ // JS Specific - dollar sign needs to be escaped with another dollar sign
+ // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace#Specifying_a_string_as_a_parameter
+ var replacement = valueCell.value.replace(new RegExp('\\$', 'g'), '$$$$')
+ name = name.replace(search, replacement);
+ });
+ return name;
+ }
+
+ function pickleSteps(scenarioDefinition) {
+ return scenarioDefinition.steps.map(function (step) {
+ return pickleStep(step);
+ });
+ }
+
+ function pickleStep(step) {
+ return {
+ text: step.text,
+ arguments: createPickleArguments(step.argument, [], []),
+ locations: [pickleStepLocation(step)]
+ }
+ }
+
+ function pickleStepLocation(step) {
+ return {
+ line: step.location.line,
+ column: step.location.column + (step.keyword ? countSymbols(step.keyword) : 0)
+ };
+ }
+
+ function pickleLocation(location) {
+ return {
+ line: location.line,
+ column: location.column
+ }
+ }
+
+ function pickleTags(tags) {
+ return tags.map(function (tag) {
+ return pickleTag(tag);
+ });
+ }
+
+ function pickleTag(tag) {
+ return {
+ name: tag.name,
+ location: pickleLocation(tag.location)
+ };
+ }
+}
+
+module.exports = Compiler;
diff --git a/node_modules/gherkin/lib/gherkin/stream/event_stream.js b/node_modules/gherkin/lib/gherkin/stream/event_stream.js
new file mode 100644
index 00000000..409b10b0
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/stream/event_stream.js
@@ -0,0 +1,38 @@
+'use strict'
+
+const Stream = require('stream')
+const generateEvents = require('../generate_events')
+
+/**
+ * Stream that reads a Gherkin document as plain text and writes
+ * events.
+ */
+class EventStream extends Stream.Transform {
+ /**
+ * @param uri the uri of the Gherkin document written to this stream
+ * @param types {object} with keys source,gherkin-document and pickle,
+ * indicating what kinds of events to emit
+ */
+ constructor(uri, types, language) {
+ super({ objectMode: true })
+ this._uri = uri
+ this._types = types
+ this._language = language
+ this._gherkin = ""
+ }
+
+ _transform(chunk, _, callback) {
+ this._gherkin += chunk
+ callback()
+ }
+
+ _flush(callback) {
+ const events = generateEvents(this._gherkin, this._uri, this._types, this._language)
+ for (const event of events) {
+ this.push(event)
+ }
+ callback()
+ }
+}
+
+module.exports = EventStream
diff --git a/node_modules/gherkin/lib/gherkin/token.js b/node_modules/gherkin/lib/gherkin/token.js
new file mode 100644
index 00000000..ffdf449c
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/token.js
@@ -0,0 +1,15 @@
+function Token(line, location) {
+ this.line = line;
+ this.location = location;
+ this.isEof = line == null;
+};
+
+Token.prototype.getTokenValue = function () {
+ return this.isEof ? "EOF" : this.line.getLineText(-1);
+};
+
+Token.prototype.detach = function () {
+ // TODO: Detach line, but is this really needed?
+};
+
+module.exports = Token;
diff --git a/node_modules/gherkin/lib/gherkin/token_formatter_builder.js b/node_modules/gherkin/lib/gherkin/token_formatter_builder.js
new file mode 100644
index 00000000..60c9342a
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/token_formatter_builder.js
@@ -0,0 +1,36 @@
+module.exports = function TokenFormatterBuilder() {
+ var tokensText = '';
+
+ this.reset = function () {
+ tokensText = '';
+ };
+
+ this.startRule = function(ruleType) {};
+
+ this.endRule = function(ruleType) {};
+
+ this.build = function(token) {
+ tokensText += formatToken(token) + '\n';
+ };
+
+ this.getResult = function() {
+ return tokensText;
+ }
+
+ function formatToken(token) {
+ if(token.isEof) return 'EOF';
+
+ return "(" +
+ token.location.line +
+ ":" +
+ token.location.column +
+ ")" +
+ token.matchedType +
+ ":" +
+ (typeof token.matchedKeyword === 'string' ? token.matchedKeyword : '') +
+ "/" +
+ (typeof token.matchedText === 'string' ? token.matchedText : '') +
+ "/" +
+ token.matchedItems.map(function (i) { return i.column + ':' + i.text; }).join(',');
+ }
+};
diff --git a/node_modules/gherkin/lib/gherkin/token_matcher.js b/node_modules/gherkin/lib/gherkin/token_matcher.js
new file mode 100644
index 00000000..33f9db2a
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/token_matcher.js
@@ -0,0 +1,189 @@
+var DIALECTS = require('./dialects');
+var Errors = require('./errors');
+var LANGUAGE_PATTERN = /^\s*#\s*language\s*:\s*([a-zA-Z\-_]+)\s*$/;
+
+module.exports = function TokenMatcher(defaultDialectName) {
+ defaultDialectName = defaultDialectName || 'en';
+
+ var dialect;
+ var dialectName;
+ var activeDocStringSeparator;
+ var indentToRemove;
+
+ function changeDialect(newDialectName, location) {
+ var newDialect = DIALECTS[newDialectName];
+ if(!newDialect) {
+ throw Errors.NoSuchLanguageException.create(newDialectName, location);
+ }
+
+ dialectName = newDialectName;
+ dialect = newDialect;
+ }
+
+ this.reset = function () {
+ if(dialectName != defaultDialectName) changeDialect(defaultDialectName);
+ activeDocStringSeparator = null;
+ indentToRemove = 0;
+ };
+
+ this.reset();
+
+ this.match_TagLine = function match_TagLine(token) {
+ if(token.line.startsWith('@')) {
+ setTokenMatched(token, 'TagLine', null, null, null, token.line.getTags());
+ return true;
+ }
+ return false;
+ };
+
+ this.match_FeatureLine = function match_FeatureLine(token) {
+ return matchTitleLine(token, 'FeatureLine', dialect.feature);
+ };
+
+ this.match_ScenarioLine = function match_ScenarioLine(token) {
+ return matchTitleLine(token, 'ScenarioLine', dialect.scenario);
+ };
+
+ this.match_ScenarioOutlineLine = function match_ScenarioOutlineLine(token) {
+ return matchTitleLine(token, 'ScenarioOutlineLine', dialect.scenarioOutline);
+ };
+
+ this.match_BackgroundLine = function match_BackgroundLine(token) {
+ return matchTitleLine(token, 'BackgroundLine', dialect.background);
+ };
+
+ this.match_ExamplesLine = function match_ExamplesLine(token) {
+ return matchTitleLine(token, 'ExamplesLine', dialect.examples);
+ };
+
+ this.match_TableRow = function match_TableRow(token) {
+ if (token.line.startsWith('|')) {
+ // TODO: indent
+ setTokenMatched(token, 'TableRow', null, null, null, token.line.getTableCells());
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Empty = function match_Empty(token) {
+ if (token.line.isEmpty) {
+ setTokenMatched(token, 'Empty', null, null, 0);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Comment = function match_Comment(token) {
+ if(token.line.startsWith('#')) {
+ var text = token.line.getLineText(0); //take the entire line, including leading space
+ setTokenMatched(token, 'Comment', text, null, 0);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_Language = function match_Language(token) {
+ var match;
+ if(match = token.line.trimmedLineText.match(LANGUAGE_PATTERN)) {
+ var newDialectName = match[1];
+ setTokenMatched(token, 'Language', newDialectName);
+
+ changeDialect(newDialectName, token.location);
+ return true;
+ }
+ return false;
+ };
+
+ this.match_DocStringSeparator = function match_DocStringSeparator(token) {
+ return activeDocStringSeparator == null
+ ?
+ // open
+ _match_DocStringSeparator(token, '"""', true) ||
+ _match_DocStringSeparator(token, '```', true)
+ :
+ // close
+ _match_DocStringSeparator(token, activeDocStringSeparator, false);
+ };
+
+ function _match_DocStringSeparator(token, separator, isOpen) {
+ if (token.line.startsWith(separator)) {
+ var contentType = null;
+ if (isOpen) {
+ contentType = token.line.getRestTrimmed(separator.length);
+ activeDocStringSeparator = separator;
+ indentToRemove = token.line.indent;
+ } else {
+ activeDocStringSeparator = null;
+ indentToRemove = 0;
+ }
+
+ // TODO: Use the separator as keyword. That's needed for pretty printing.
+ setTokenMatched(token, 'DocStringSeparator', contentType);
+ return true;
+ }
+ return false;
+ }
+
+ this.match_EOF = function match_EOF(token) {
+ if(token.isEof) {
+ setTokenMatched(token, 'EOF');
+ return true;
+ }
+ return false;
+ };
+
+ this.match_StepLine = function match_StepLine(token) {
+ var keywords = []
+ .concat(dialect.given)
+ .concat(dialect.when)
+ .concat(dialect.then)
+ .concat(dialect.and)
+ .concat(dialect.but);
+ var length = keywords.length;
+ for(var i = 0, keyword; i < length; i++) {
+ var keyword = keywords[i];
+
+ if (token.line.startsWith(keyword)) {
+ var title = token.line.getRestTrimmed(keyword.length);
+ setTokenMatched(token, 'StepLine', title, keyword);
+ return true;
+ }
+ }
+ return false;
+ };
+
+ this.match_Other = function match_Other(token) {
+ var text = token.line.getLineText(indentToRemove); //take the entire line, except removing DocString indents
+ setTokenMatched(token, 'Other', unescapeDocString(text), null, 0);
+ return true;
+ };
+
+ function matchTitleLine(token, tokenType, keywords) {
+ var length = keywords.length;
+ for(var i = 0, keyword; i < length; i++) {
+ var keyword = keywords[i];
+
+ if (token.line.startsWithTitleKeyword(keyword)) {
+ var title = token.line.getRestTrimmed(keyword.length + ':'.length);
+ setTokenMatched(token, tokenType, title, keyword);
+ return true;
+ }
+ }
+ return false;
+ }
+
+ function setTokenMatched(token, matchedType, text, keyword, indent, items) {
+ token.matchedType = matchedType;
+ token.matchedText = text;
+ token.matchedKeyword = keyword;
+ token.matchedIndent = (typeof indent === 'number') ? indent : (token.line == null ? 0 : token.line.indent);
+ token.matchedItems = items || [];
+
+ token.location.column = token.matchedIndent + 1;
+ token.matchedGherkinDialect = dialectName;
+ }
+
+ function unescapeDocString(text) {
+ return activeDocStringSeparator != null ? text.replace("\\\"\\\"\\\"", "\"\"\"") : text;
+ }
+};
diff --git a/node_modules/gherkin/lib/gherkin/token_scanner.js b/node_modules/gherkin/lib/gherkin/token_scanner.js
new file mode 100644
index 00000000..3a447545
--- /dev/null
+++ b/node_modules/gherkin/lib/gherkin/token_scanner.js
@@ -0,0 +1,23 @@
+var Token = require('./token');
+var GherkinLine = require('./gherkin_line');
+
+/**
+ * The scanner reads a gherkin doc (typically read from a .feature file) and creates a token for each line.
+ * The tokens are passed to the parser, which outputs an AST (Abstract Syntax Tree).
+ *
+ * If the scanner sees a `#` language header, it will reconfigure itself dynamically to look for
+ * Gherkin keywords for the associated language. The keywords are defined in gherkin-languages.json.
+ */
+module.exports = function TokenScanner(source) {
+ var lines = source.split(/\r?\n/);
+ if(lines.length > 0 && lines[lines.length-1].trim() == '') {
+ lines.pop();
+ }
+ var lineNumber = 0;
+
+ this.read = function () {
+ var line = lines[lineNumber++];
+ var location = {line: lineNumber, column: 0};
+ return line == null ? new Token(null, location) : new Token(new GherkinLine(line, lineNumber), location);
+ }
+};
diff --git a/node_modules/gherkin/package.json b/node_modules/gherkin/package.json
new file mode 100644
index 00000000..4666f151
--- /dev/null
+++ b/node_modules/gherkin/package.json
@@ -0,0 +1,59 @@
+{
+ "_from": "gherkin@^5.1.0",
+ "_id": "gherkin@5.1.0",
+ "_inBundle": false,
+ "_integrity": "sha1-aEu7A63STq9731RPWAM+so+zxtU=",
+ "_location": "/gherkin",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "gherkin@^5.1.0",
+ "name": "gherkin",
+ "escapedName": "gherkin",
+ "rawSpec": "^5.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^5.1.0"
+ },
+ "_requiredBy": [
+ "/cucumber",
+ "/cypress-cucumber-preprocessor"
+ ],
+ "_resolved": "https://registry.npmjs.org/gherkin/-/gherkin-5.1.0.tgz",
+ "_shasum": "684bbb03add24eaf7bdf544f58033eb28fb3c6d5",
+ "_spec": "gherkin@^5.1.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/cypress-cucumber-preprocessor",
+ "author": {
+ "name": "Aslak Hellesøy"
+ },
+ "bin": {
+ "gherkin-javascript": "bin/gherkin"
+ },
+ "bugs": {
+ "url": "https://github.com/cucumber/gherkin/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Gherkin parser",
+ "devDependencies": {
+ "browserify": "^14.1.0",
+ "mocha": "^3.0.2",
+ "uglify-js": "^2.7.3"
+ },
+ "homepage": "https://github.com/cucumber/gherkin",
+ "keywords": [
+ "gherkin",
+ "cucumber"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "gherkin",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/cucumber/gherkin-javascript.git"
+ },
+ "scripts": {
+ "test": "make && mocha"
+ },
+ "version": "5.1.0"
+}
diff --git a/node_modules/glob-parent/LICENSE b/node_modules/glob-parent/LICENSE
new file mode 100644
index 00000000..734076d8
--- /dev/null
+++ b/node_modules/glob-parent/LICENSE
@@ -0,0 +1,15 @@
+The ISC License
+
+Copyright (c) 2015 Elan Shanker
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
+IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/node_modules/glob-parent/README.md b/node_modules/glob-parent/README.md
new file mode 100644
index 00000000..3bec5c78
--- /dev/null
+++ b/node_modules/glob-parent/README.md
@@ -0,0 +1,109 @@
+glob-parent [](https://travis-ci.org/es128/glob-parent) [](https://coveralls.io/r/es128/glob-parent?branch=master)
+======
+Javascript module to extract the non-magic parent path from a glob string.
+
+[](https://nodei.co/npm/glob-parent/)
+[](https://nodei.co/npm-dl/glob-parent/)
+
+Usage
+-----
+```sh
+npm install glob-parent --save
+```
+
+**Examples**
+
+```js
+var globParent = require('glob-parent');
+
+globParent('path/to/*.js'); // 'path/to'
+globParent('/root/path/to/*.js'); // '/root/path/to'
+globParent('/*.js'); // '/'
+globParent('*.js'); // '.'
+globParent('**/*.js'); // '.'
+globParent('path/{to,from}'); // 'path'
+globParent('path/!(to|from)'); // 'path'
+globParent('path/?(to|from)'); // 'path'
+globParent('path/+(to|from)'); // 'path'
+globParent('path/*(to|from)'); // 'path'
+globParent('path/@(to|from)'); // 'path'
+globParent('path/**/*'); // 'path'
+
+// if provided a non-glob path, returns the nearest dir
+globParent('path/foo/bar.js'); // 'path/foo'
+globParent('path/foo/'); // 'path/foo'
+globParent('path/foo'); // 'path' (see issue #3 for details)
+```
+
+## Escaping
+
+The following characters have special significance in glob patterns and must be escaped if you want them to be treated as regular path characters:
+
+- `?` (question mark)
+- `*` (star)
+- `|` (pipe)
+- `(` (opening parenthesis)
+- `)` (closing parenthesis)
+- `{` (opening curly brace)
+- `}` (closing curly brace)
+- `[` (opening bracket)
+- `]` (closing bracket)
+
+**Example**
+
+```js
+globParent('foo/[bar]/') // 'foo'
+globParent('foo/\\[bar]/') // 'foo/[bar]'
+```
+
+## Limitations
+
+#### Braces & Brackets
+This library attempts a quick and imperfect method of determining which path
+parts have glob magic without fully parsing/lexing the pattern. There are some
+advanced use cases that can trip it up, such as nested braces where the outer
+pair is escaped and the inner one contains a path separator. If you find
+yourself in the unlikely circumstance of being affected by this or need to
+ensure higher-fidelity glob handling in your library, it is recommended that you
+pre-process your input with [expand-braces] and/or [expand-brackets].
+
+#### Windows
+Backslashes are not valid path separators for globs. If a path with backslashes
+is provided anyway, for simple cases, glob-parent will replace the path
+separator for you and return the non-glob parent path (now with
+forward-slashes, which are still valid as Windows path separators).
+
+This cannot be used in conjunction with escape characters.
+
+```js
+// BAD
+globParent('C:\\Program Files \\(x86\\)\\*.ext') // 'C:/Program Files /(x86/)'
+
+// GOOD
+globParent('C:/Program Files\\(x86\\)/*.ext') // 'C:/Program Files (x86)'
+```
+
+If you are using escape characters for a pattern without path parts (i.e.
+relative to `cwd`), prefix with `./` to avoid confusing glob-parent.
+
+```js
+// BAD
+globParent('foo \\[bar]') // 'foo '
+globParent('foo \\[bar]*') // 'foo '
+
+// GOOD
+globParent('./foo \\[bar]') // 'foo [bar]'
+globParent('./foo \\[bar]*') // '.'
+```
+
+
+Change Log
+----------
+[See release notes page on GitHub](https://github.com/es128/glob-parent/releases)
+
+License
+-------
+[ISC](https://raw.github.com/es128/glob-parent/master/LICENSE)
+
+[expand-braces]: https://github.com/jonschlinkert/expand-braces
+[expand-brackets]: https://github.com/jonschlinkert/expand-brackets
diff --git a/node_modules/glob-parent/index.js b/node_modules/glob-parent/index.js
new file mode 100644
index 00000000..3a14a539
--- /dev/null
+++ b/node_modules/glob-parent/index.js
@@ -0,0 +1,24 @@
+'use strict';
+
+var path = require('path');
+var isglob = require('is-glob');
+var pathDirname = require('path-dirname');
+var isWin32 = require('os').platform() === 'win32';
+
+module.exports = function globParent(str) {
+ // flip windows path separators
+ if (isWin32 && str.indexOf('/') < 0) str = str.split('\\').join('/');
+
+ // special case for strings ending in enclosure containing path separator
+ if (/[\{\[].*[\/]*.*[\}\]]$/.test(str)) str += '/';
+
+ // preserves full path in case of trailing path separator
+ str += 'a';
+
+ // remove path parts that are globby
+ do {str = pathDirname.posix(str)}
+ while (isglob(str) || /(^|[^\\])([\{\[]|\([^\)]+$)/.test(str));
+
+ // remove escape chars and return result
+ return str.replace(/\\([\*\?\|\[\]\(\)\{\}])/g, '$1');
+};
diff --git a/node_modules/glob-parent/node_modules/is-glob/LICENSE b/node_modules/glob-parent/node_modules/is-glob/LICENSE
new file mode 100644
index 00000000..39245ac1
--- /dev/null
+++ b/node_modules/glob-parent/node_modules/is-glob/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2016, Jon Schlinkert.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/glob-parent/node_modules/is-glob/README.md b/node_modules/glob-parent/node_modules/is-glob/README.md
new file mode 100644
index 00000000..6f4404fe
--- /dev/null
+++ b/node_modules/glob-parent/node_modules/is-glob/README.md
@@ -0,0 +1,142 @@
+# is-glob [](https://www.npmjs.com/package/is-glob) [](https://npmjs.org/package/is-glob) [](https://travis-ci.org/jonschlinkert/is-glob)
+
+> Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save is-glob
+```
+
+You might also be interested in [is-valid-glob](https://github.com/jonschlinkert/is-valid-glob) and [has-glob](https://github.com/jonschlinkert/has-glob).
+
+## Usage
+
+```js
+var isGlob = require('is-glob');
+```
+
+**True**
+
+Patterns that have glob characters or regex patterns will return `true`:
+
+```js
+isGlob('!foo.js');
+isGlob('*.js');
+isGlob('**/abc.js');
+isGlob('abc/*.js');
+isGlob('abc/(aaa|bbb).js');
+isGlob('abc/[a-z].js');
+isGlob('abc/{a,b}.js');
+isGlob('abc/?.js');
+//=> true
+```
+
+Extglobs
+
+```js
+isGlob('abc/@(a).js');
+isGlob('abc/!(a).js');
+isGlob('abc/+(a).js');
+isGlob('abc/*(a).js');
+isGlob('abc/?(a).js');
+//=> true
+```
+
+**False**
+
+Escaped globs or extglobs return `false`:
+
+```js
+isGlob('abc/\\@(a).js');
+isGlob('abc/\\!(a).js');
+isGlob('abc/\\+(a).js');
+isGlob('abc/\\*(a).js');
+isGlob('abc/\\?(a).js');
+isGlob('\\!foo.js');
+isGlob('\\*.js');
+isGlob('\\*\\*/abc.js');
+isGlob('abc/\\*.js');
+isGlob('abc/\\(aaa|bbb).js');
+isGlob('abc/\\[a-z].js');
+isGlob('abc/\\{a,b}.js');
+isGlob('abc/\\?.js');
+//=> false
+```
+
+Patterns that do not have glob patterns return `false`:
+
+```js
+isGlob('abc.js');
+isGlob('abc/def/ghi.js');
+isGlob('foo.js');
+isGlob('abc/@.js');
+isGlob('abc/+.js');
+isGlob();
+isGlob(null);
+//=> false
+```
+
+Arrays are also `false` (If you want to check if an array has a glob pattern, use [has-glob](https://github.com/jonschlinkert/has-glob)):
+
+```js
+isGlob(['**/*.js']);
+isGlob(['foo.js']);
+//=> false
+```
+
+## About
+
+### Related projects
+
+* [assemble](https://www.npmjs.com/package/assemble): Get the rocks out of your socks! Assemble makes you fast at creating web projects… [more](https://github.com/assemble/assemble) | [homepage](https://github.com/assemble/assemble "Get the rocks out of your socks! Assemble makes you fast at creating web projects. Assemble is used by thousands of projects for rapid prototyping, creating themes, scaffolds, boilerplates, e-books, UI components, API documentation, blogs, building websit")
+* [base](https://www.npmjs.com/package/base): base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting… [more](https://github.com/node-base/base) | [homepage](https://github.com/node-base/base "base is the foundation for creating modular, unit testable and highly pluggable node.js applications, starting with a handful of common methods, like `set`, `get`, `del` and `use`.")
+* [update](https://www.npmjs.com/package/update): Be scalable! Update is a new, open source developer framework and CLI for automating updates… [more](https://github.com/update/update) | [homepage](https://github.com/update/update "Be scalable! Update is a new, open source developer framework and CLI for automating updates of any kind in code projects.")
+* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb "Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used on hundreds of projects of all sizes to generate everything from API docs to readmes.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 40 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 1 | [tuvistavie](https://github.com/tuvistavie) |
+
+### Building docs
+
+_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_
+
+To generate the readme and API documentation with [verb](https://github.com/verbose/verb):
+
+```sh
+$ npm install -g verb verb-generate-readme && verb
+```
+
+### Running tests
+
+Install dev dependencies:
+
+```sh
+$ npm install -d && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT license](https://github.com/jonschlinkert/is-glob/blob/master/LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.31, on October 12, 2016._
\ No newline at end of file
diff --git a/node_modules/glob-parent/node_modules/is-glob/index.js b/node_modules/glob-parent/node_modules/is-glob/index.js
new file mode 100644
index 00000000..2ecbe2a7
--- /dev/null
+++ b/node_modules/glob-parent/node_modules/is-glob/index.js
@@ -0,0 +1,25 @@
+/*!
+ * is-glob
+ *
+ * Copyright (c) 2014-2016, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+var isExtglob = require('is-extglob');
+
+module.exports = function isGlob(str) {
+ if (typeof str !== 'string' || str === '') {
+ return false;
+ }
+
+ if (isExtglob(str)) return true;
+
+ var regex = /(\\).|([*?]|\[.*\]|\{.*\}|\(.*\|.*\)|^!)/;
+ var match;
+
+ while ((match = regex.exec(str))) {
+ if (match[2]) return true;
+ str = str.slice(match.index + match[0].length);
+ }
+ return false;
+};
diff --git a/node_modules/glob-parent/node_modules/is-glob/package.json b/node_modules/glob-parent/node_modules/is-glob/package.json
new file mode 100644
index 00000000..8bfcb707
--- /dev/null
+++ b/node_modules/glob-parent/node_modules/is-glob/package.json
@@ -0,0 +1,119 @@
+{
+ "_from": "is-glob@^3.1.0",
+ "_id": "is-glob@3.1.0",
+ "_inBundle": false,
+ "_integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=",
+ "_location": "/glob-parent/is-glob",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "is-glob@^3.1.0",
+ "name": "is-glob",
+ "escapedName": "is-glob",
+ "rawSpec": "^3.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^3.1.0"
+ },
+ "_requiredBy": [
+ "/glob-parent"
+ ],
+ "_resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz",
+ "_shasum": "7ba5ae24217804ac70707b96922567486cc3e84a",
+ "_spec": "is-glob@^3.1.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/glob-parent",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/is-glob/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Daniel Perez",
+ "email": "daniel@claudetech.com",
+ "url": "http://tuvistavie.com"
+ },
+ {
+ "name": "Jon Schlinkert",
+ "email": "jon.schlinkert@sellside.com",
+ "url": "http://twitter.com/jonschlinkert"
+ }
+ ],
+ "dependencies": {
+ "is-extglob": "^2.1.0"
+ },
+ "deprecated": false,
+ "description": "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a better user experience.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.10",
+ "mocha": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/is-glob",
+ "keywords": [
+ "bash",
+ "braces",
+ "check",
+ "exec",
+ "expression",
+ "extglob",
+ "glob",
+ "globbing",
+ "globstar",
+ "is",
+ "match",
+ "matches",
+ "pattern",
+ "regex",
+ "regular",
+ "string",
+ "test"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "is-glob",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/is-glob.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "layout": "default",
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "assemble",
+ "base",
+ "update",
+ "verb"
+ ]
+ },
+ "reflinks": [
+ "assemble",
+ "bach",
+ "base",
+ "composer",
+ "gulp",
+ "has-glob",
+ "is-valid-glob",
+ "micromatch",
+ "npm",
+ "scaffold",
+ "verb",
+ "vinyl"
+ ]
+ },
+ "version": "3.1.0"
+}
diff --git a/node_modules/glob-parent/package.json b/node_modules/glob-parent/package.json
new file mode 100644
index 00000000..5b40fcf2
--- /dev/null
+++ b/node_modules/glob-parent/package.json
@@ -0,0 +1,73 @@
+{
+ "_from": "glob-parent@^3.1.0",
+ "_id": "glob-parent@3.1.0",
+ "_inBundle": false,
+ "_integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=",
+ "_location": "/glob-parent",
+ "_phantomChildren": {
+ "is-extglob": "2.1.1"
+ },
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "glob-parent@^3.1.0",
+ "name": "glob-parent",
+ "escapedName": "glob-parent",
+ "rawSpec": "^3.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^3.1.0"
+ },
+ "_requiredBy": [
+ "/babel-plugin-add-module-exports/chokidar",
+ "/watchify/chokidar"
+ ],
+ "_resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz",
+ "_shasum": "9e6af6299d8d3bd2bd40430832bd113df906c5ae",
+ "_spec": "glob-parent@^3.1.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/babel-plugin-add-module-exports/node_modules/chokidar",
+ "author": {
+ "name": "Elan Shanker",
+ "url": "https://github.com/es128"
+ },
+ "bugs": {
+ "url": "https://github.com/es128/glob-parent/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "is-glob": "^3.1.0",
+ "path-dirname": "^1.0.0"
+ },
+ "deprecated": false,
+ "description": "Strips glob magic from a string to provide the parent directory path",
+ "devDependencies": {
+ "coveralls": "^2.11.2",
+ "istanbul": "^0.3.5",
+ "mocha": "^2.1.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/es128/glob-parent",
+ "keywords": [
+ "glob",
+ "parent",
+ "strip",
+ "path",
+ "dirname",
+ "directory",
+ "base",
+ "wildcard"
+ ],
+ "license": "ISC",
+ "main": "index.js",
+ "name": "glob-parent",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/es128/glob-parent.git"
+ },
+ "scripts": {
+ "ci-test": "istanbul cover _mocha && cat ./coverage/lcov.info | coveralls",
+ "test": "istanbul test node_modules/mocha/bin/_mocha"
+ },
+ "version": "3.1.0"
+}
diff --git a/node_modules/globals/globals.json b/node_modules/globals/globals.json
new file mode 100644
index 00000000..6f5ac02f
--- /dev/null
+++ b/node_modules/globals/globals.json
@@ -0,0 +1,1563 @@
+{
+ "builtin": {
+ "Array": false,
+ "ArrayBuffer": false,
+ "Atomics": false,
+ "BigInt": false,
+ "BigInt64Array": false,
+ "BigUint64Array": false,
+ "Boolean": false,
+ "constructor": false,
+ "DataView": false,
+ "Date": false,
+ "decodeURI": false,
+ "decodeURIComponent": false,
+ "encodeURI": false,
+ "encodeURIComponent": false,
+ "Error": false,
+ "escape": false,
+ "eval": false,
+ "EvalError": false,
+ "Float32Array": false,
+ "Float64Array": false,
+ "Function": false,
+ "globalThis": false,
+ "hasOwnProperty": false,
+ "Infinity": false,
+ "Int16Array": false,
+ "Int32Array": false,
+ "Int8Array": false,
+ "isFinite": false,
+ "isNaN": false,
+ "isPrototypeOf": false,
+ "JSON": false,
+ "Map": false,
+ "Math": false,
+ "NaN": false,
+ "Number": false,
+ "Object": false,
+ "parseFloat": false,
+ "parseInt": false,
+ "Promise": false,
+ "propertyIsEnumerable": false,
+ "Proxy": false,
+ "RangeError": false,
+ "ReferenceError": false,
+ "Reflect": false,
+ "RegExp": false,
+ "Set": false,
+ "SharedArrayBuffer": false,
+ "String": false,
+ "Symbol": false,
+ "SyntaxError": false,
+ "toLocaleString": false,
+ "toString": false,
+ "TypeError": false,
+ "Uint16Array": false,
+ "Uint32Array": false,
+ "Uint8Array": false,
+ "Uint8ClampedArray": false,
+ "undefined": false,
+ "unescape": false,
+ "URIError": false,
+ "valueOf": false,
+ "WeakMap": false,
+ "WeakSet": false
+ },
+ "es5": {
+ "Array": false,
+ "Boolean": false,
+ "constructor": false,
+ "Date": false,
+ "decodeURI": false,
+ "decodeURIComponent": false,
+ "encodeURI": false,
+ "encodeURIComponent": false,
+ "Error": false,
+ "escape": false,
+ "eval": false,
+ "EvalError": false,
+ "Function": false,
+ "hasOwnProperty": false,
+ "Infinity": false,
+ "isFinite": false,
+ "isNaN": false,
+ "isPrototypeOf": false,
+ "JSON": false,
+ "Math": false,
+ "NaN": false,
+ "Number": false,
+ "Object": false,
+ "parseFloat": false,
+ "parseInt": false,
+ "propertyIsEnumerable": false,
+ "RangeError": false,
+ "ReferenceError": false,
+ "RegExp": false,
+ "String": false,
+ "SyntaxError": false,
+ "toLocaleString": false,
+ "toString": false,
+ "TypeError": false,
+ "undefined": false,
+ "unescape": false,
+ "URIError": false,
+ "valueOf": false
+ },
+ "es2015": {
+ "Array": false,
+ "ArrayBuffer": false,
+ "Boolean": false,
+ "constructor": false,
+ "DataView": false,
+ "Date": false,
+ "decodeURI": false,
+ "decodeURIComponent": false,
+ "encodeURI": false,
+ "encodeURIComponent": false,
+ "Error": false,
+ "escape": false,
+ "eval": false,
+ "EvalError": false,
+ "Float32Array": false,
+ "Float64Array": false,
+ "Function": false,
+ "hasOwnProperty": false,
+ "Infinity": false,
+ "Int16Array": false,
+ "Int32Array": false,
+ "Int8Array": false,
+ "isFinite": false,
+ "isNaN": false,
+ "isPrototypeOf": false,
+ "JSON": false,
+ "Map": false,
+ "Math": false,
+ "NaN": false,
+ "Number": false,
+ "Object": false,
+ "parseFloat": false,
+ "parseInt": false,
+ "Promise": false,
+ "propertyIsEnumerable": false,
+ "Proxy": false,
+ "RangeError": false,
+ "ReferenceError": false,
+ "Reflect": false,
+ "RegExp": false,
+ "Set": false,
+ "String": false,
+ "Symbol": false,
+ "SyntaxError": false,
+ "toLocaleString": false,
+ "toString": false,
+ "TypeError": false,
+ "Uint16Array": false,
+ "Uint32Array": false,
+ "Uint8Array": false,
+ "Uint8ClampedArray": false,
+ "undefined": false,
+ "unescape": false,
+ "URIError": false,
+ "valueOf": false,
+ "WeakMap": false,
+ "WeakSet": false
+ },
+ "es2017": {
+ "Array": false,
+ "ArrayBuffer": false,
+ "Atomics": false,
+ "Boolean": false,
+ "constructor": false,
+ "DataView": false,
+ "Date": false,
+ "decodeURI": false,
+ "decodeURIComponent": false,
+ "encodeURI": false,
+ "encodeURIComponent": false,
+ "Error": false,
+ "escape": false,
+ "eval": false,
+ "EvalError": false,
+ "Float32Array": false,
+ "Float64Array": false,
+ "Function": false,
+ "hasOwnProperty": false,
+ "Infinity": false,
+ "Int16Array": false,
+ "Int32Array": false,
+ "Int8Array": false,
+ "isFinite": false,
+ "isNaN": false,
+ "isPrototypeOf": false,
+ "JSON": false,
+ "Map": false,
+ "Math": false,
+ "NaN": false,
+ "Number": false,
+ "Object": false,
+ "parseFloat": false,
+ "parseInt": false,
+ "Promise": false,
+ "propertyIsEnumerable": false,
+ "Proxy": false,
+ "RangeError": false,
+ "ReferenceError": false,
+ "Reflect": false,
+ "RegExp": false,
+ "Set": false,
+ "SharedArrayBuffer": false,
+ "String": false,
+ "Symbol": false,
+ "SyntaxError": false,
+ "toLocaleString": false,
+ "toString": false,
+ "TypeError": false,
+ "Uint16Array": false,
+ "Uint32Array": false,
+ "Uint8Array": false,
+ "Uint8ClampedArray": false,
+ "undefined": false,
+ "unescape": false,
+ "URIError": false,
+ "valueOf": false,
+ "WeakMap": false,
+ "WeakSet": false
+ },
+ "browser": {
+ "AbortController": false,
+ "AbortSignal": false,
+ "addEventListener": false,
+ "alert": false,
+ "AnalyserNode": false,
+ "Animation": false,
+ "AnimationEffectReadOnly": false,
+ "AnimationEffectTiming": false,
+ "AnimationEffectTimingReadOnly": false,
+ "AnimationEvent": false,
+ "AnimationPlaybackEvent": false,
+ "AnimationTimeline": false,
+ "applicationCache": false,
+ "ApplicationCache": false,
+ "ApplicationCacheErrorEvent": false,
+ "atob": false,
+ "Attr": false,
+ "Audio": false,
+ "AudioBuffer": false,
+ "AudioBufferSourceNode": false,
+ "AudioContext": false,
+ "AudioDestinationNode": false,
+ "AudioListener": false,
+ "AudioNode": false,
+ "AudioParam": false,
+ "AudioProcessingEvent": false,
+ "AudioScheduledSourceNode": false,
+ "AudioWorkletGlobalScope ": false,
+ "AudioWorkletNode": false,
+ "AudioWorkletProcessor": false,
+ "BarProp": false,
+ "BaseAudioContext": false,
+ "BatteryManager": false,
+ "BeforeUnloadEvent": false,
+ "BiquadFilterNode": false,
+ "Blob": false,
+ "BlobEvent": false,
+ "blur": false,
+ "BroadcastChannel": false,
+ "btoa": false,
+ "BudgetService": false,
+ "ByteLengthQueuingStrategy": false,
+ "Cache": false,
+ "caches": false,
+ "CacheStorage": false,
+ "cancelAnimationFrame": false,
+ "cancelIdleCallback": false,
+ "CanvasCaptureMediaStreamTrack": false,
+ "CanvasGradient": false,
+ "CanvasPattern": false,
+ "CanvasRenderingContext2D": false,
+ "ChannelMergerNode": false,
+ "ChannelSplitterNode": false,
+ "CharacterData": false,
+ "clearInterval": false,
+ "clearTimeout": false,
+ "clientInformation": false,
+ "ClipboardEvent": false,
+ "close": false,
+ "closed": false,
+ "CloseEvent": false,
+ "Comment": false,
+ "CompositionEvent": false,
+ "confirm": false,
+ "console": false,
+ "ConstantSourceNode": false,
+ "ConvolverNode": false,
+ "CountQueuingStrategy": false,
+ "createImageBitmap": false,
+ "Credential": false,
+ "CredentialsContainer": false,
+ "crypto": false,
+ "Crypto": false,
+ "CryptoKey": false,
+ "CSS": false,
+ "CSSConditionRule": false,
+ "CSSFontFaceRule": false,
+ "CSSGroupingRule": false,
+ "CSSImportRule": false,
+ "CSSKeyframeRule": false,
+ "CSSKeyframesRule": false,
+ "CSSMediaRule": false,
+ "CSSNamespaceRule": false,
+ "CSSPageRule": false,
+ "CSSRule": false,
+ "CSSRuleList": false,
+ "CSSStyleDeclaration": false,
+ "CSSStyleRule": false,
+ "CSSStyleSheet": false,
+ "CSSSupportsRule": false,
+ "CustomElementRegistry": false,
+ "customElements": false,
+ "CustomEvent": false,
+ "DataTransfer": false,
+ "DataTransferItem": false,
+ "DataTransferItemList": false,
+ "defaultstatus": false,
+ "defaultStatus": false,
+ "DelayNode": false,
+ "DeviceMotionEvent": false,
+ "DeviceOrientationEvent": false,
+ "devicePixelRatio": false,
+ "dispatchEvent": false,
+ "document": false,
+ "Document": false,
+ "DocumentFragment": false,
+ "DocumentType": false,
+ "DOMError": false,
+ "DOMException": false,
+ "DOMImplementation": false,
+ "DOMMatrix": false,
+ "DOMMatrixReadOnly": false,
+ "DOMParser": false,
+ "DOMPoint": false,
+ "DOMPointReadOnly": false,
+ "DOMQuad": false,
+ "DOMRect": false,
+ "DOMRectReadOnly": false,
+ "DOMStringList": false,
+ "DOMStringMap": false,
+ "DOMTokenList": false,
+ "DragEvent": false,
+ "DynamicsCompressorNode": false,
+ "Element": false,
+ "ErrorEvent": false,
+ "event": false,
+ "Event": false,
+ "EventSource": false,
+ "EventTarget": false,
+ "external": false,
+ "fetch": false,
+ "File": false,
+ "FileList": false,
+ "FileReader": false,
+ "find": false,
+ "focus": false,
+ "FocusEvent": false,
+ "FontFace": false,
+ "FontFaceSetLoadEvent": false,
+ "FormData": false,
+ "frameElement": false,
+ "frames": false,
+ "GainNode": false,
+ "Gamepad": false,
+ "GamepadButton": false,
+ "GamepadEvent": false,
+ "getComputedStyle": false,
+ "getSelection": false,
+ "HashChangeEvent": false,
+ "Headers": false,
+ "history": false,
+ "History": false,
+ "HTMLAllCollection": false,
+ "HTMLAnchorElement": false,
+ "HTMLAreaElement": false,
+ "HTMLAudioElement": false,
+ "HTMLBaseElement": false,
+ "HTMLBodyElement": false,
+ "HTMLBRElement": false,
+ "HTMLButtonElement": false,
+ "HTMLCanvasElement": false,
+ "HTMLCollection": false,
+ "HTMLContentElement": false,
+ "HTMLDataElement": false,
+ "HTMLDataListElement": false,
+ "HTMLDetailsElement": false,
+ "HTMLDialogElement": false,
+ "HTMLDirectoryElement": false,
+ "HTMLDivElement": false,
+ "HTMLDListElement": false,
+ "HTMLDocument": false,
+ "HTMLElement": false,
+ "HTMLEmbedElement": false,
+ "HTMLFieldSetElement": false,
+ "HTMLFontElement": false,
+ "HTMLFormControlsCollection": false,
+ "HTMLFormElement": false,
+ "HTMLFrameElement": false,
+ "HTMLFrameSetElement": false,
+ "HTMLHeadElement": false,
+ "HTMLHeadingElement": false,
+ "HTMLHRElement": false,
+ "HTMLHtmlElement": false,
+ "HTMLIFrameElement": false,
+ "HTMLImageElement": false,
+ "HTMLInputElement": false,
+ "HTMLLabelElement": false,
+ "HTMLLegendElement": false,
+ "HTMLLIElement": false,
+ "HTMLLinkElement": false,
+ "HTMLMapElement": false,
+ "HTMLMarqueeElement": false,
+ "HTMLMediaElement": false,
+ "HTMLMenuElement": false,
+ "HTMLMetaElement": false,
+ "HTMLMeterElement": false,
+ "HTMLModElement": false,
+ "HTMLObjectElement": false,
+ "HTMLOListElement": false,
+ "HTMLOptGroupElement": false,
+ "HTMLOptionElement": false,
+ "HTMLOptionsCollection": false,
+ "HTMLOutputElement": false,
+ "HTMLParagraphElement": false,
+ "HTMLParamElement": false,
+ "HTMLPictureElement": false,
+ "HTMLPreElement": false,
+ "HTMLProgressElement": false,
+ "HTMLQuoteElement": false,
+ "HTMLScriptElement": false,
+ "HTMLSelectElement": false,
+ "HTMLShadowElement": false,
+ "HTMLSlotElement": false,
+ "HTMLSourceElement": false,
+ "HTMLSpanElement": false,
+ "HTMLStyleElement": false,
+ "HTMLTableCaptionElement": false,
+ "HTMLTableCellElement": false,
+ "HTMLTableColElement": false,
+ "HTMLTableElement": false,
+ "HTMLTableRowElement": false,
+ "HTMLTableSectionElement": false,
+ "HTMLTemplateElement": false,
+ "HTMLTextAreaElement": false,
+ "HTMLTimeElement": false,
+ "HTMLTitleElement": false,
+ "HTMLTrackElement": false,
+ "HTMLUListElement": false,
+ "HTMLUnknownElement": false,
+ "HTMLVideoElement": false,
+ "IDBCursor": false,
+ "IDBCursorWithValue": false,
+ "IDBDatabase": false,
+ "IDBFactory": false,
+ "IDBIndex": false,
+ "IDBKeyRange": false,
+ "IDBObjectStore": false,
+ "IDBOpenDBRequest": false,
+ "IDBRequest": false,
+ "IDBTransaction": false,
+ "IDBVersionChangeEvent": false,
+ "IdleDeadline": false,
+ "IIRFilterNode": false,
+ "Image": false,
+ "ImageBitmap": false,
+ "ImageBitmapRenderingContext": false,
+ "ImageCapture": false,
+ "ImageData": false,
+ "indexedDB": false,
+ "innerHeight": false,
+ "innerWidth": false,
+ "InputEvent": false,
+ "IntersectionObserver": false,
+ "IntersectionObserverEntry": false,
+ "Intl": false,
+ "isSecureContext": false,
+ "KeyboardEvent": false,
+ "KeyframeEffect": false,
+ "KeyframeEffectReadOnly": false,
+ "length": false,
+ "localStorage": false,
+ "location": true,
+ "Location": false,
+ "locationbar": false,
+ "matchMedia": false,
+ "MediaDeviceInfo": false,
+ "MediaDevices": false,
+ "MediaElementAudioSourceNode": false,
+ "MediaEncryptedEvent": false,
+ "MediaError": false,
+ "MediaKeyMessageEvent": false,
+ "MediaKeySession": false,
+ "MediaKeyStatusMap": false,
+ "MediaKeySystemAccess": false,
+ "MediaList": false,
+ "MediaQueryList": false,
+ "MediaQueryListEvent": false,
+ "MediaRecorder": false,
+ "MediaSettingsRange": false,
+ "MediaSource": false,
+ "MediaStream": false,
+ "MediaStreamAudioDestinationNode": false,
+ "MediaStreamAudioSourceNode": false,
+ "MediaStreamEvent": false,
+ "MediaStreamTrack": false,
+ "MediaStreamTrackEvent": false,
+ "menubar": false,
+ "MessageChannel": false,
+ "MessageEvent": false,
+ "MessagePort": false,
+ "MIDIAccess": false,
+ "MIDIConnectionEvent": false,
+ "MIDIInput": false,
+ "MIDIInputMap": false,
+ "MIDIMessageEvent": false,
+ "MIDIOutput": false,
+ "MIDIOutputMap": false,
+ "MIDIPort": false,
+ "MimeType": false,
+ "MimeTypeArray": false,
+ "MouseEvent": false,
+ "moveBy": false,
+ "moveTo": false,
+ "MutationEvent": false,
+ "MutationObserver": false,
+ "MutationRecord": false,
+ "name": false,
+ "NamedNodeMap": false,
+ "NavigationPreloadManager": false,
+ "navigator": false,
+ "Navigator": false,
+ "NetworkInformation": false,
+ "Node": false,
+ "NodeFilter": false,
+ "NodeIterator": false,
+ "NodeList": false,
+ "Notification": false,
+ "OfflineAudioCompletionEvent": false,
+ "OfflineAudioContext": false,
+ "offscreenBuffering": false,
+ "OffscreenCanvas": true,
+ "onabort": true,
+ "onafterprint": true,
+ "onanimationend": true,
+ "onanimationiteration": true,
+ "onanimationstart": true,
+ "onappinstalled": true,
+ "onauxclick": true,
+ "onbeforeinstallprompt": true,
+ "onbeforeprint": true,
+ "onbeforeunload": true,
+ "onblur": true,
+ "oncancel": true,
+ "oncanplay": true,
+ "oncanplaythrough": true,
+ "onchange": true,
+ "onclick": true,
+ "onclose": true,
+ "oncontextmenu": true,
+ "oncuechange": true,
+ "ondblclick": true,
+ "ondevicemotion": true,
+ "ondeviceorientation": true,
+ "ondeviceorientationabsolute": true,
+ "ondrag": true,
+ "ondragend": true,
+ "ondragenter": true,
+ "ondragleave": true,
+ "ondragover": true,
+ "ondragstart": true,
+ "ondrop": true,
+ "ondurationchange": true,
+ "onemptied": true,
+ "onended": true,
+ "onerror": true,
+ "onfocus": true,
+ "ongotpointercapture": true,
+ "onhashchange": true,
+ "oninput": true,
+ "oninvalid": true,
+ "onkeydown": true,
+ "onkeypress": true,
+ "onkeyup": true,
+ "onlanguagechange": true,
+ "onload": true,
+ "onloadeddata": true,
+ "onloadedmetadata": true,
+ "onloadstart": true,
+ "onlostpointercapture": true,
+ "onmessage": true,
+ "onmessageerror": true,
+ "onmousedown": true,
+ "onmouseenter": true,
+ "onmouseleave": true,
+ "onmousemove": true,
+ "onmouseout": true,
+ "onmouseover": true,
+ "onmouseup": true,
+ "onmousewheel": true,
+ "onoffline": true,
+ "ononline": true,
+ "onpagehide": true,
+ "onpageshow": true,
+ "onpause": true,
+ "onplay": true,
+ "onplaying": true,
+ "onpointercancel": true,
+ "onpointerdown": true,
+ "onpointerenter": true,
+ "onpointerleave": true,
+ "onpointermove": true,
+ "onpointerout": true,
+ "onpointerover": true,
+ "onpointerup": true,
+ "onpopstate": true,
+ "onprogress": true,
+ "onratechange": true,
+ "onrejectionhandled": true,
+ "onreset": true,
+ "onresize": true,
+ "onscroll": true,
+ "onsearch": true,
+ "onseeked": true,
+ "onseeking": true,
+ "onselect": true,
+ "onstalled": true,
+ "onstorage": true,
+ "onsubmit": true,
+ "onsuspend": true,
+ "ontimeupdate": true,
+ "ontoggle": true,
+ "ontransitionend": true,
+ "onunhandledrejection": true,
+ "onunload": true,
+ "onvolumechange": true,
+ "onwaiting": true,
+ "onwheel": true,
+ "open": false,
+ "openDatabase": false,
+ "opener": false,
+ "Option": false,
+ "origin": false,
+ "OscillatorNode": false,
+ "outerHeight": false,
+ "outerWidth": false,
+ "PageTransitionEvent": false,
+ "pageXOffset": false,
+ "pageYOffset": false,
+ "PannerNode": false,
+ "parent": false,
+ "Path2D": false,
+ "PaymentAddress": false,
+ "PaymentRequest": false,
+ "PaymentRequestUpdateEvent": false,
+ "PaymentResponse": false,
+ "performance": false,
+ "Performance": false,
+ "PerformanceEntry": false,
+ "PerformanceLongTaskTiming": false,
+ "PerformanceMark": false,
+ "PerformanceMeasure": false,
+ "PerformanceNavigation": false,
+ "PerformanceNavigationTiming": false,
+ "PerformanceObserver": false,
+ "PerformanceObserverEntryList": false,
+ "PerformancePaintTiming": false,
+ "PerformanceResourceTiming": false,
+ "PerformanceTiming": false,
+ "PeriodicWave": false,
+ "Permissions": false,
+ "PermissionStatus": false,
+ "personalbar": false,
+ "PhotoCapabilities": false,
+ "Plugin": false,
+ "PluginArray": false,
+ "PointerEvent": false,
+ "PopStateEvent": false,
+ "postMessage": false,
+ "Presentation": false,
+ "PresentationAvailability": false,
+ "PresentationConnection": false,
+ "PresentationConnectionAvailableEvent": false,
+ "PresentationConnectionCloseEvent": false,
+ "PresentationConnectionList": false,
+ "PresentationReceiver": false,
+ "PresentationRequest": false,
+ "print": false,
+ "ProcessingInstruction": false,
+ "ProgressEvent": false,
+ "PromiseRejectionEvent": false,
+ "prompt": false,
+ "PushManager": false,
+ "PushSubscription": false,
+ "PushSubscriptionOptions": false,
+ "queueMicrotask": false,
+ "RadioNodeList": false,
+ "Range": false,
+ "ReadableStream": false,
+ "registerProcessor": false,
+ "RemotePlayback": false,
+ "removeEventListener": false,
+ "Request": false,
+ "requestAnimationFrame": false,
+ "requestIdleCallback": false,
+ "resizeBy": false,
+ "ResizeObserver": false,
+ "ResizeObserverEntry": false,
+ "resizeTo": false,
+ "Response": false,
+ "RTCCertificate": false,
+ "RTCDataChannel": false,
+ "RTCDataChannelEvent": false,
+ "RTCDtlsTransport": false,
+ "RTCIceCandidate": false,
+ "RTCIceGatherer": false,
+ "RTCIceTransport": false,
+ "RTCPeerConnection": false,
+ "RTCPeerConnectionIceEvent": false,
+ "RTCRtpContributingSource": false,
+ "RTCRtpReceiver": false,
+ "RTCRtpSender": false,
+ "RTCSctpTransport": false,
+ "RTCSessionDescription": false,
+ "RTCStatsReport": false,
+ "RTCTrackEvent": false,
+ "screen": false,
+ "Screen": false,
+ "screenLeft": false,
+ "ScreenOrientation": false,
+ "screenTop": false,
+ "screenX": false,
+ "screenY": false,
+ "ScriptProcessorNode": false,
+ "scroll": false,
+ "scrollbars": false,
+ "scrollBy": false,
+ "scrollTo": false,
+ "scrollX": false,
+ "scrollY": false,
+ "SecurityPolicyViolationEvent": false,
+ "Selection": false,
+ "self": false,
+ "ServiceWorker": false,
+ "ServiceWorkerContainer": false,
+ "ServiceWorkerRegistration": false,
+ "sessionStorage": false,
+ "setInterval": false,
+ "setTimeout": false,
+ "ShadowRoot": false,
+ "SharedWorker": false,
+ "SourceBuffer": false,
+ "SourceBufferList": false,
+ "speechSynthesis": false,
+ "SpeechSynthesisEvent": false,
+ "SpeechSynthesisUtterance": false,
+ "StaticRange": false,
+ "status": false,
+ "statusbar": false,
+ "StereoPannerNode": false,
+ "stop": false,
+ "Storage": false,
+ "StorageEvent": false,
+ "StorageManager": false,
+ "styleMedia": false,
+ "StyleSheet": false,
+ "StyleSheetList": false,
+ "SubtleCrypto": false,
+ "SVGAElement": false,
+ "SVGAngle": false,
+ "SVGAnimatedAngle": false,
+ "SVGAnimatedBoolean": false,
+ "SVGAnimatedEnumeration": false,
+ "SVGAnimatedInteger": false,
+ "SVGAnimatedLength": false,
+ "SVGAnimatedLengthList": false,
+ "SVGAnimatedNumber": false,
+ "SVGAnimatedNumberList": false,
+ "SVGAnimatedPreserveAspectRatio": false,
+ "SVGAnimatedRect": false,
+ "SVGAnimatedString": false,
+ "SVGAnimatedTransformList": false,
+ "SVGAnimateElement": false,
+ "SVGAnimateMotionElement": false,
+ "SVGAnimateTransformElement": false,
+ "SVGAnimationElement": false,
+ "SVGCircleElement": false,
+ "SVGClipPathElement": false,
+ "SVGComponentTransferFunctionElement": false,
+ "SVGDefsElement": false,
+ "SVGDescElement": false,
+ "SVGDiscardElement": false,
+ "SVGElement": false,
+ "SVGEllipseElement": false,
+ "SVGFEBlendElement": false,
+ "SVGFEColorMatrixElement": false,
+ "SVGFEComponentTransferElement": false,
+ "SVGFECompositeElement": false,
+ "SVGFEConvolveMatrixElement": false,
+ "SVGFEDiffuseLightingElement": false,
+ "SVGFEDisplacementMapElement": false,
+ "SVGFEDistantLightElement": false,
+ "SVGFEDropShadowElement": false,
+ "SVGFEFloodElement": false,
+ "SVGFEFuncAElement": false,
+ "SVGFEFuncBElement": false,
+ "SVGFEFuncGElement": false,
+ "SVGFEFuncRElement": false,
+ "SVGFEGaussianBlurElement": false,
+ "SVGFEImageElement": false,
+ "SVGFEMergeElement": false,
+ "SVGFEMergeNodeElement": false,
+ "SVGFEMorphologyElement": false,
+ "SVGFEOffsetElement": false,
+ "SVGFEPointLightElement": false,
+ "SVGFESpecularLightingElement": false,
+ "SVGFESpotLightElement": false,
+ "SVGFETileElement": false,
+ "SVGFETurbulenceElement": false,
+ "SVGFilterElement": false,
+ "SVGForeignObjectElement": false,
+ "SVGGElement": false,
+ "SVGGeometryElement": false,
+ "SVGGradientElement": false,
+ "SVGGraphicsElement": false,
+ "SVGImageElement": false,
+ "SVGLength": false,
+ "SVGLengthList": false,
+ "SVGLinearGradientElement": false,
+ "SVGLineElement": false,
+ "SVGMarkerElement": false,
+ "SVGMaskElement": false,
+ "SVGMatrix": false,
+ "SVGMetadataElement": false,
+ "SVGMPathElement": false,
+ "SVGNumber": false,
+ "SVGNumberList": false,
+ "SVGPathElement": false,
+ "SVGPatternElement": false,
+ "SVGPoint": false,
+ "SVGPointList": false,
+ "SVGPolygonElement": false,
+ "SVGPolylineElement": false,
+ "SVGPreserveAspectRatio": false,
+ "SVGRadialGradientElement": false,
+ "SVGRect": false,
+ "SVGRectElement": false,
+ "SVGScriptElement": false,
+ "SVGSetElement": false,
+ "SVGStopElement": false,
+ "SVGStringList": false,
+ "SVGStyleElement": false,
+ "SVGSVGElement": false,
+ "SVGSwitchElement": false,
+ "SVGSymbolElement": false,
+ "SVGTextContentElement": false,
+ "SVGTextElement": false,
+ "SVGTextPathElement": false,
+ "SVGTextPositioningElement": false,
+ "SVGTitleElement": false,
+ "SVGTransform": false,
+ "SVGTransformList": false,
+ "SVGTSpanElement": false,
+ "SVGUnitTypes": false,
+ "SVGUseElement": false,
+ "SVGViewElement": false,
+ "TaskAttributionTiming": false,
+ "Text": false,
+ "TextDecoder": false,
+ "TextEncoder": false,
+ "TextEvent": false,
+ "TextMetrics": false,
+ "TextTrack": false,
+ "TextTrackCue": false,
+ "TextTrackCueList": false,
+ "TextTrackList": false,
+ "TimeRanges": false,
+ "toolbar": false,
+ "top": false,
+ "Touch": false,
+ "TouchEvent": false,
+ "TouchList": false,
+ "TrackEvent": false,
+ "TransitionEvent": false,
+ "TreeWalker": false,
+ "UIEvent": false,
+ "URL": false,
+ "URLSearchParams": false,
+ "ValidityState": false,
+ "visualViewport": false,
+ "VisualViewport": false,
+ "VTTCue": false,
+ "WaveShaperNode": false,
+ "WebAssembly": false,
+ "WebGL2RenderingContext": false,
+ "WebGLActiveInfo": false,
+ "WebGLBuffer": false,
+ "WebGLContextEvent": false,
+ "WebGLFramebuffer": false,
+ "WebGLProgram": false,
+ "WebGLQuery": false,
+ "WebGLRenderbuffer": false,
+ "WebGLRenderingContext": false,
+ "WebGLSampler": false,
+ "WebGLShader": false,
+ "WebGLShaderPrecisionFormat": false,
+ "WebGLSync": false,
+ "WebGLTexture": false,
+ "WebGLTransformFeedback": false,
+ "WebGLUniformLocation": false,
+ "WebGLVertexArrayObject": false,
+ "WebSocket": false,
+ "WheelEvent": false,
+ "window": false,
+ "Window": false,
+ "Worker": false,
+ "WritableStream": false,
+ "XMLDocument": false,
+ "XMLHttpRequest": false,
+ "XMLHttpRequestEventTarget": false,
+ "XMLHttpRequestUpload": false,
+ "XMLSerializer": false,
+ "XPathEvaluator": false,
+ "XPathExpression": false,
+ "XPathResult": false,
+ "XSLTProcessor": false
+ },
+ "worker": {
+ "addEventListener": false,
+ "applicationCache": false,
+ "atob": false,
+ "Blob": false,
+ "BroadcastChannel": false,
+ "btoa": false,
+ "Cache": false,
+ "caches": false,
+ "clearInterval": false,
+ "clearTimeout": false,
+ "close": true,
+ "console": false,
+ "fetch": false,
+ "FileReaderSync": false,
+ "FormData": false,
+ "Headers": false,
+ "IDBCursor": false,
+ "IDBCursorWithValue": false,
+ "IDBDatabase": false,
+ "IDBFactory": false,
+ "IDBIndex": false,
+ "IDBKeyRange": false,
+ "IDBObjectStore": false,
+ "IDBOpenDBRequest": false,
+ "IDBRequest": false,
+ "IDBTransaction": false,
+ "IDBVersionChangeEvent": false,
+ "ImageData": false,
+ "importScripts": true,
+ "indexedDB": false,
+ "location": false,
+ "MessageChannel": false,
+ "MessagePort": false,
+ "name": false,
+ "navigator": false,
+ "Notification": false,
+ "onclose": true,
+ "onconnect": true,
+ "onerror": true,
+ "onlanguagechange": true,
+ "onmessage": true,
+ "onoffline": true,
+ "ononline": true,
+ "onrejectionhandled": true,
+ "onunhandledrejection": true,
+ "performance": false,
+ "Performance": false,
+ "PerformanceEntry": false,
+ "PerformanceMark": false,
+ "PerformanceMeasure": false,
+ "PerformanceNavigation": false,
+ "PerformanceResourceTiming": false,
+ "PerformanceTiming": false,
+ "postMessage": true,
+ "Promise": false,
+ "queueMicrotask": false,
+ "removeEventListener": false,
+ "Request": false,
+ "Response": false,
+ "self": true,
+ "ServiceWorkerRegistration": false,
+ "setInterval": false,
+ "setTimeout": false,
+ "TextDecoder": false,
+ "TextEncoder": false,
+ "URL": false,
+ "URLSearchParams": false,
+ "WebSocket": false,
+ "Worker": false,
+ "WorkerGlobalScope": false,
+ "XMLHttpRequest": false
+ },
+ "node": {
+ "__dirname": false,
+ "__filename": false,
+ "Buffer": false,
+ "clearImmediate": false,
+ "clearInterval": false,
+ "clearTimeout": false,
+ "console": false,
+ "exports": true,
+ "global": false,
+ "Intl": false,
+ "module": false,
+ "process": false,
+ "queueMicrotask": false,
+ "require": false,
+ "setImmediate": false,
+ "setInterval": false,
+ "setTimeout": false,
+ "TextDecoder": false,
+ "TextEncoder": false,
+ "URL": false,
+ "URLSearchParams": false
+ },
+ "commonjs": {
+ "exports": true,
+ "global": false,
+ "module": false,
+ "require": false
+ },
+ "amd": {
+ "define": false,
+ "require": false
+ },
+ "mocha": {
+ "after": false,
+ "afterEach": false,
+ "before": false,
+ "beforeEach": false,
+ "context": false,
+ "describe": false,
+ "it": false,
+ "mocha": false,
+ "run": false,
+ "setup": false,
+ "specify": false,
+ "suite": false,
+ "suiteSetup": false,
+ "suiteTeardown": false,
+ "teardown": false,
+ "test": false,
+ "xcontext": false,
+ "xdescribe": false,
+ "xit": false,
+ "xspecify": false
+ },
+ "jasmine": {
+ "afterAll": false,
+ "afterEach": false,
+ "beforeAll": false,
+ "beforeEach": false,
+ "describe": false,
+ "expect": false,
+ "fail": false,
+ "fdescribe": false,
+ "fit": false,
+ "it": false,
+ "jasmine": false,
+ "pending": false,
+ "runs": false,
+ "spyOn": false,
+ "spyOnProperty": false,
+ "waits": false,
+ "waitsFor": false,
+ "xdescribe": false,
+ "xit": false
+ },
+ "jest": {
+ "afterAll": false,
+ "afterEach": false,
+ "beforeAll": false,
+ "beforeEach": false,
+ "describe": false,
+ "expect": false,
+ "fdescribe": false,
+ "fit": false,
+ "it": false,
+ "jest": false,
+ "pit": false,
+ "require": false,
+ "test": false,
+ "xdescribe": false,
+ "xit": false,
+ "xtest": false
+ },
+ "qunit": {
+ "asyncTest": false,
+ "deepEqual": false,
+ "equal": false,
+ "expect": false,
+ "module": false,
+ "notDeepEqual": false,
+ "notEqual": false,
+ "notOk": false,
+ "notPropEqual": false,
+ "notStrictEqual": false,
+ "ok": false,
+ "propEqual": false,
+ "QUnit": false,
+ "raises": false,
+ "start": false,
+ "stop": false,
+ "strictEqual": false,
+ "test": false,
+ "throws": false
+ },
+ "phantomjs": {
+ "console": true,
+ "exports": true,
+ "phantom": true,
+ "require": true,
+ "WebPage": true
+ },
+ "couch": {
+ "emit": false,
+ "exports": false,
+ "getRow": false,
+ "log": false,
+ "module": false,
+ "provides": false,
+ "require": false,
+ "respond": false,
+ "send": false,
+ "start": false,
+ "sum": false
+ },
+ "rhino": {
+ "defineClass": false,
+ "deserialize": false,
+ "gc": false,
+ "help": false,
+ "importClass": false,
+ "importPackage": false,
+ "java": false,
+ "load": false,
+ "loadClass": false,
+ "Packages": false,
+ "print": false,
+ "quit": false,
+ "readFile": false,
+ "readUrl": false,
+ "runCommand": false,
+ "seal": false,
+ "serialize": false,
+ "spawn": false,
+ "sync": false,
+ "toint32": false,
+ "version": false
+ },
+ "nashorn": {
+ "__DIR__": false,
+ "__FILE__": false,
+ "__LINE__": false,
+ "com": false,
+ "edu": false,
+ "exit": false,
+ "java": false,
+ "Java": false,
+ "javafx": false,
+ "JavaImporter": false,
+ "javax": false,
+ "JSAdapter": false,
+ "load": false,
+ "loadWithNewGlobal": false,
+ "org": false,
+ "Packages": false,
+ "print": false,
+ "quit": false
+ },
+ "wsh": {
+ "ActiveXObject": true,
+ "Enumerator": true,
+ "GetObject": true,
+ "ScriptEngine": true,
+ "ScriptEngineBuildVersion": true,
+ "ScriptEngineMajorVersion": true,
+ "ScriptEngineMinorVersion": true,
+ "VBArray": true,
+ "WScript": true,
+ "WSH": true,
+ "XDomainRequest": true
+ },
+ "jquery": {
+ "$": false,
+ "jQuery": false
+ },
+ "yui": {
+ "YAHOO": false,
+ "YAHOO_config": false,
+ "YUI": false,
+ "YUI_config": false
+ },
+ "shelljs": {
+ "cat": false,
+ "cd": false,
+ "chmod": false,
+ "config": false,
+ "cp": false,
+ "dirs": false,
+ "echo": false,
+ "env": false,
+ "error": false,
+ "exec": false,
+ "exit": false,
+ "find": false,
+ "grep": false,
+ "ln": false,
+ "ls": false,
+ "mkdir": false,
+ "mv": false,
+ "popd": false,
+ "pushd": false,
+ "pwd": false,
+ "rm": false,
+ "sed": false,
+ "set": false,
+ "target": false,
+ "tempdir": false,
+ "test": false,
+ "touch": false,
+ "which": false
+ },
+ "prototypejs": {
+ "$": false,
+ "$$": false,
+ "$A": false,
+ "$break": false,
+ "$continue": false,
+ "$F": false,
+ "$H": false,
+ "$R": false,
+ "$w": false,
+ "Abstract": false,
+ "Ajax": false,
+ "Autocompleter": false,
+ "Builder": false,
+ "Class": false,
+ "Control": false,
+ "Draggable": false,
+ "Draggables": false,
+ "Droppables": false,
+ "Effect": false,
+ "Element": false,
+ "Enumerable": false,
+ "Event": false,
+ "Field": false,
+ "Form": false,
+ "Hash": false,
+ "Insertion": false,
+ "ObjectRange": false,
+ "PeriodicalExecuter": false,
+ "Position": false,
+ "Prototype": false,
+ "Scriptaculous": false,
+ "Selector": false,
+ "Sortable": false,
+ "SortableObserver": false,
+ "Sound": false,
+ "Template": false,
+ "Toggle": false,
+ "Try": false
+ },
+ "meteor": {
+ "_": false,
+ "$": false,
+ "Accounts": false,
+ "AccountsClient": false,
+ "AccountsCommon": false,
+ "AccountsServer": false,
+ "App": false,
+ "Assets": false,
+ "Blaze": false,
+ "check": false,
+ "Cordova": false,
+ "DDP": false,
+ "DDPRateLimiter": false,
+ "DDPServer": false,
+ "Deps": false,
+ "EJSON": false,
+ "Email": false,
+ "HTTP": false,
+ "Log": false,
+ "Match": false,
+ "Meteor": false,
+ "Mongo": false,
+ "MongoInternals": false,
+ "Npm": false,
+ "Package": false,
+ "Plugin": false,
+ "process": false,
+ "Random": false,
+ "ReactiveDict": false,
+ "ReactiveVar": false,
+ "Router": false,
+ "ServiceConfiguration": false,
+ "Session": false,
+ "share": false,
+ "Spacebars": false,
+ "Template": false,
+ "Tinytest": false,
+ "Tracker": false,
+ "UI": false,
+ "Utils": false,
+ "WebApp": false,
+ "WebAppInternals": false
+ },
+ "mongo": {
+ "_isWindows": false,
+ "_rand": false,
+ "BulkWriteResult": false,
+ "cat": false,
+ "cd": false,
+ "connect": false,
+ "db": false,
+ "getHostName": false,
+ "getMemInfo": false,
+ "hostname": false,
+ "ISODate": false,
+ "listFiles": false,
+ "load": false,
+ "ls": false,
+ "md5sumFile": false,
+ "mkdir": false,
+ "Mongo": false,
+ "NumberInt": false,
+ "NumberLong": false,
+ "ObjectId": false,
+ "PlanCache": false,
+ "print": false,
+ "printjson": false,
+ "pwd": false,
+ "quit": false,
+ "removeFile": false,
+ "rs": false,
+ "sh": false,
+ "UUID": false,
+ "version": false,
+ "WriteResult": false
+ },
+ "applescript": {
+ "$": false,
+ "Application": false,
+ "Automation": false,
+ "console": false,
+ "delay": false,
+ "Library": false,
+ "ObjC": false,
+ "ObjectSpecifier": false,
+ "Path": false,
+ "Progress": false,
+ "Ref": false
+ },
+ "serviceworker": {
+ "addEventListener": false,
+ "applicationCache": false,
+ "atob": false,
+ "Blob": false,
+ "BroadcastChannel": false,
+ "btoa": false,
+ "Cache": false,
+ "caches": false,
+ "CacheStorage": false,
+ "clearInterval": false,
+ "clearTimeout": false,
+ "Client": false,
+ "clients": false,
+ "Clients": false,
+ "close": true,
+ "console": false,
+ "ExtendableEvent": false,
+ "ExtendableMessageEvent": false,
+ "fetch": false,
+ "FetchEvent": false,
+ "FileReaderSync": false,
+ "FormData": false,
+ "Headers": false,
+ "IDBCursor": false,
+ "IDBCursorWithValue": false,
+ "IDBDatabase": false,
+ "IDBFactory": false,
+ "IDBIndex": false,
+ "IDBKeyRange": false,
+ "IDBObjectStore": false,
+ "IDBOpenDBRequest": false,
+ "IDBRequest": false,
+ "IDBTransaction": false,
+ "IDBVersionChangeEvent": false,
+ "ImageData": false,
+ "importScripts": false,
+ "indexedDB": false,
+ "location": false,
+ "MessageChannel": false,
+ "MessagePort": false,
+ "name": false,
+ "navigator": false,
+ "Notification": false,
+ "onclose": true,
+ "onconnect": true,
+ "onerror": true,
+ "onfetch": true,
+ "oninstall": true,
+ "onlanguagechange": true,
+ "onmessage": true,
+ "onmessageerror": true,
+ "onnotificationclick": true,
+ "onnotificationclose": true,
+ "onoffline": true,
+ "ononline": true,
+ "onpush": true,
+ "onpushsubscriptionchange": true,
+ "onrejectionhandled": true,
+ "onsync": true,
+ "onunhandledrejection": true,
+ "performance": false,
+ "Performance": false,
+ "PerformanceEntry": false,
+ "PerformanceMark": false,
+ "PerformanceMeasure": false,
+ "PerformanceNavigation": false,
+ "PerformanceResourceTiming": false,
+ "PerformanceTiming": false,
+ "postMessage": true,
+ "Promise": false,
+ "queueMicrotask": false,
+ "registration": false,
+ "removeEventListener": false,
+ "Request": false,
+ "Response": false,
+ "self": false,
+ "ServiceWorker": false,
+ "ServiceWorkerContainer": false,
+ "ServiceWorkerGlobalScope": false,
+ "ServiceWorkerMessageEvent": false,
+ "ServiceWorkerRegistration": false,
+ "setInterval": false,
+ "setTimeout": false,
+ "skipWaiting": false,
+ "TextDecoder": false,
+ "TextEncoder": false,
+ "URL": false,
+ "URLSearchParams": false,
+ "WebSocket": false,
+ "WindowClient": false,
+ "Worker": false,
+ "WorkerGlobalScope": false,
+ "XMLHttpRequest": false
+ },
+ "atomtest": {
+ "advanceClock": false,
+ "fakeClearInterval": false,
+ "fakeClearTimeout": false,
+ "fakeSetInterval": false,
+ "fakeSetTimeout": false,
+ "resetTimeouts": false,
+ "waitsForPromise": false
+ },
+ "embertest": {
+ "andThen": false,
+ "click": false,
+ "currentPath": false,
+ "currentRouteName": false,
+ "currentURL": false,
+ "fillIn": false,
+ "find": false,
+ "findAll": false,
+ "findWithAssert": false,
+ "keyEvent": false,
+ "pauseTest": false,
+ "resumeTest": false,
+ "triggerEvent": false,
+ "visit": false,
+ "wait": false
+ },
+ "protractor": {
+ "$": false,
+ "$$": false,
+ "browser": false,
+ "by": false,
+ "By": false,
+ "DartObject": false,
+ "element": false,
+ "protractor": false
+ },
+ "shared-node-browser": {
+ "clearInterval": false,
+ "clearTimeout": false,
+ "console": false,
+ "setInterval": false,
+ "setTimeout": false,
+ "URL": false,
+ "URLSearchParams": false
+ },
+ "webextensions": {
+ "browser": false,
+ "chrome": false,
+ "opr": false
+ },
+ "greasemonkey": {
+ "cloneInto": false,
+ "createObjectIn": false,
+ "exportFunction": false,
+ "GM": false,
+ "GM_addStyle": false,
+ "GM_deleteValue": false,
+ "GM_getResourceText": false,
+ "GM_getResourceURL": false,
+ "GM_getValue": false,
+ "GM_info": false,
+ "GM_listValues": false,
+ "GM_log": false,
+ "GM_openInTab": false,
+ "GM_registerMenuCommand": false,
+ "GM_setClipboard": false,
+ "GM_setValue": false,
+ "GM_xmlhttpRequest": false,
+ "unsafeWindow": false
+ },
+ "devtools": {
+ "$": false,
+ "$_": false,
+ "$$": false,
+ "$0": false,
+ "$1": false,
+ "$2": false,
+ "$3": false,
+ "$4": false,
+ "$x": false,
+ "chrome": false,
+ "clear": false,
+ "copy": false,
+ "debug": false,
+ "dir": false,
+ "dirxml": false,
+ "getEventListeners": false,
+ "inspect": false,
+ "keys": false,
+ "monitor": false,
+ "monitorEvents": false,
+ "profile": false,
+ "profileEnd": false,
+ "queryObjects": false,
+ "table": false,
+ "undebug": false,
+ "unmonitor": false,
+ "unmonitorEvents": false,
+ "values": false
+ }
+}
diff --git a/node_modules/globals/index.js b/node_modules/globals/index.js
new file mode 100644
index 00000000..a951582e
--- /dev/null
+++ b/node_modules/globals/index.js
@@ -0,0 +1,2 @@
+'use strict';
+module.exports = require('./globals.json');
diff --git a/node_modules/globals/license b/node_modules/globals/license
new file mode 100644
index 00000000..e7af2f77
--- /dev/null
+++ b/node_modules/globals/license
@@ -0,0 +1,9 @@
+MIT License
+
+Copyright (c) Sindre Sorhus (sindresorhus.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/globals/package.json b/node_modules/globals/package.json
new file mode 100644
index 00000000..d0cfb5da
--- /dev/null
+++ b/node_modules/globals/package.json
@@ -0,0 +1,74 @@
+{
+ "_from": "globals@^11.1.0",
+ "_id": "globals@11.12.0",
+ "_inBundle": false,
+ "_integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==",
+ "_location": "/globals",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "globals@^11.1.0",
+ "name": "globals",
+ "escapedName": "globals",
+ "rawSpec": "^11.1.0",
+ "saveSpec": null,
+ "fetchSpec": "^11.1.0"
+ },
+ "_requiredBy": [
+ "/@babel/plugin-transform-classes",
+ "/@babel/traverse"
+ ],
+ "_resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz",
+ "_shasum": "ab8795338868a0babd8525758018c2a7eb95c42e",
+ "_spec": "globals@^11.1.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/@babel/traverse",
+ "author": {
+ "name": "Sindre Sorhus",
+ "email": "sindresorhus@gmail.com",
+ "url": "sindresorhus.com"
+ },
+ "bugs": {
+ "url": "https://github.com/sindresorhus/globals/issues"
+ },
+ "bundleDependencies": false,
+ "deprecated": false,
+ "description": "Global identifiers from different JavaScript environments",
+ "devDependencies": {
+ "ava": "0.21.0",
+ "xo": "0.18.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "files": [
+ "index.js",
+ "globals.json"
+ ],
+ "homepage": "https://github.com/sindresorhus/globals#readme",
+ "keywords": [
+ "globals",
+ "global",
+ "identifiers",
+ "variables",
+ "vars",
+ "jshint",
+ "eslint",
+ "environments"
+ ],
+ "license": "MIT",
+ "name": "globals",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/sindresorhus/globals.git"
+ },
+ "scripts": {
+ "test": "xo && ava"
+ },
+ "version": "11.12.0",
+ "xo": {
+ "ignores": [
+ "get-browser-globals.js"
+ ]
+ }
+}
diff --git a/node_modules/globals/readme.md b/node_modules/globals/readme.md
new file mode 100644
index 00000000..8c47855f
--- /dev/null
+++ b/node_modules/globals/readme.md
@@ -0,0 +1,41 @@
+# globals [](https://travis-ci.org/sindresorhus/globals)
+
+> Global identifiers from different JavaScript environments
+
+Extracted from [JSHint](https://github.com/jshint/jshint/blob/3a8efa979dbb157bfb5c10b5826603a55a33b9ad/src/vars.js) and [ESLint](https://github.com/eslint/eslint/blob/b648406218f8a2d7302b98f5565e23199f44eb31/conf/environments.json) and merged.
+
+It's just a [JSON file](globals.json), so use it in whatever environment you like.
+
+**This module [no longer accepts](https://github.com/sindresorhus/globals/issues/82) new environments. If you need it for ESLint, just [create a plugin](http://eslint.org/docs/developer-guide/working-with-plugins#environments-in-plugins).**
+
+
+## Install
+
+```
+$ npm install globals
+```
+
+
+## Usage
+
+```js
+const globals = require('globals');
+
+console.log(globals.browser);
+/*
+{
+ addEventListener: false,
+ applicationCache: false,
+ ArrayBuffer: false,
+ atob: false,
+ ...
+}
+*/
+```
+
+Each global is given a value of `true` or `false`. A value of `true` indicates that the variable may be overwritten. A value of `false` indicates that the variable should be considered read-only. This information is used by static analysis tools to flag incorrect behavior. We assume all variables should be `false` unless we hear otherwise.
+
+
+## License
+
+MIT © [Sindre Sorhus](https://sindresorhus.com)
diff --git a/node_modules/has-symbols/.eslintignore b/node_modules/has-symbols/.eslintignore
new file mode 100644
index 00000000..404abb22
--- /dev/null
+++ b/node_modules/has-symbols/.eslintignore
@@ -0,0 +1 @@
+coverage/
diff --git a/node_modules/has-symbols/.eslintrc b/node_modules/has-symbols/.eslintrc
new file mode 100644
index 00000000..2d9a66a8
--- /dev/null
+++ b/node_modules/has-symbols/.eslintrc
@@ -0,0 +1,11 @@
+{
+ "root": true,
+
+ "extends": "@ljharb",
+
+ "rules": {
+ "max-statements-per-line": [2, { "max": 2 }],
+ "no-magic-numbers": 0,
+ "multiline-comment-style": 0,
+ }
+}
diff --git a/node_modules/has-symbols/.github/FUNDING.yml b/node_modules/has-symbols/.github/FUNDING.yml
new file mode 100644
index 00000000..04cf87e6
--- /dev/null
+++ b/node_modules/has-symbols/.github/FUNDING.yml
@@ -0,0 +1,12 @@
+# These are supported funding model platforms
+
+github: [ljharb]
+patreon: # Replace with a single Patreon username
+open_collective: # Replace with a single Open Collective username
+ko_fi: # Replace with a single Ko-fi username
+tidelift: npm/has-symbols
+community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
+liberapay: # Replace with a single Liberapay username
+issuehunt: # Replace with a single IssueHunt username
+otechie: # Replace with a single Otechie username
+custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
diff --git a/node_modules/has-symbols/.nycrc b/node_modules/has-symbols/.nycrc
new file mode 100644
index 00000000..1826526e
--- /dev/null
+++ b/node_modules/has-symbols/.nycrc
@@ -0,0 +1,13 @@
+{
+ "all": true,
+ "check-coverage": false,
+ "reporter": ["text-summary", "text", "html", "json"],
+ "lines": 86,
+ "statements": 85.93,
+ "functions": 82.43,
+ "branches": 76.06,
+ "exclude": [
+ "coverage",
+ "test"
+ ]
+}
diff --git a/node_modules/has-symbols/CHANGELOG.md b/node_modules/has-symbols/CHANGELOG.md
new file mode 100644
index 00000000..852ca042
--- /dev/null
+++ b/node_modules/has-symbols/CHANGELOG.md
@@ -0,0 +1,58 @@
+# Changelog
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+## [v1.0.2](https://github.com/inspect-js/has-symbols/compare/v1.0.1...v1.0.2) - 2021-02-27
+
+### Fixed
+
+- [Fix] use a universal way to get the original Symbol [`#11`](https://github.com/inspect-js/has-symbols/issues/11)
+
+### Commits
+
+- [Tests] migrate tests to Github Actions [`90ae798`](https://github.com/inspect-js/has-symbols/commit/90ae79820bdfe7bc703d67f5f3c5e205f98556d3)
+- [meta] do not publish github action workflow files [`29e60a1`](https://github.com/inspect-js/has-symbols/commit/29e60a1b7c25c7f1acf7acff4a9320d0d10c49b4)
+- [Tests] run `nyc` on all tests [`8476b91`](https://github.com/inspect-js/has-symbols/commit/8476b915650d360915abe2522505abf4b0e8f0ae)
+- [readme] fix repo URLs, remove defunct badges [`126288e`](https://github.com/inspect-js/has-symbols/commit/126288ecc1797c0a40247a6b78bcb2e0bc5d7036)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `auto-changelog`, `core-js`, `get-own-property-symbols` [`d84bdfa`](https://github.com/inspect-js/has-symbols/commit/d84bdfa48ac5188abbb4904b42614cd6c030940a)
+- [Tests] fix linting errors [`0df3070`](https://github.com/inspect-js/has-symbols/commit/0df3070b981b6c9f2ee530c09189a7f5c6def839)
+- [actions] add "Allow Edits" workflow [`1e6bc29`](https://github.com/inspect-js/has-symbols/commit/1e6bc29b188f32b9648657b07eda08504be5aa9c)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`36cea2a`](https://github.com/inspect-js/has-symbols/commit/36cea2addd4e6ec435f35a2656b4e9ef82498e9b)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`1278338`](https://github.com/inspect-js/has-symbols/commit/127833801865fbc2cc8979beb9ca869c7bfe8222)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `tape` [`1493254`](https://github.com/inspect-js/has-symbols/commit/1493254eda13db5fb8fc5e4a3e8324b3d196029d)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js` [`b090bf2`](https://github.com/inspect-js/has-symbols/commit/b090bf214d3679a30edc1e2d729d466ab5183e1d)
+- [actions] switch Automatic Rebase workflow to `pull_request_target` event [`4addb7a`](https://github.com/inspect-js/has-symbols/commit/4addb7ab4dc73f927ae99928d68817554fc21dc0)
+- [Dev Deps] update `auto-changelog`, `tape` [`81d0baf`](https://github.com/inspect-js/has-symbols/commit/81d0baf3816096a89a8558e8043895f7a7d10d8b)
+- [Dev Deps] update `auto-changelog`; add `aud` [`1a4e561`](https://github.com/inspect-js/has-symbols/commit/1a4e5612c25d91c3a03d509721d02630bc4fe3da)
+- [readme] remove unused testling URLs [`3000941`](https://github.com/inspect-js/has-symbols/commit/3000941f958046e923ed8152edb1ef4a599e6fcc)
+- [Tests] only audit prod deps [`692e974`](https://github.com/inspect-js/has-symbols/commit/692e9743c912410e9440207631a643a34b4741a1)
+- [Dev Deps] update `@ljharb/eslint-config` [`51c946c`](https://github.com/inspect-js/has-symbols/commit/51c946c7f6baa793ec5390bb5a45cdce16b4ba76)
+
+## [v1.0.1](https://github.com/inspect-js/has-symbols/compare/v1.0.0...v1.0.1) - 2019-11-16
+
+### Commits
+
+- [Tests] use shared travis-ci configs [`ce396c9`](https://github.com/inspect-js/has-symbols/commit/ce396c9419ff11c43d0da5d05cdbb79f7fb42229)
+- [Tests] up to `node` `v12.4`, `v11.15`, `v10.15`, `v9.11`, `v8.15`, `v7.10`, `v6.17`, `v4.9`; use `nvm install-latest-npm` [`0690732`](https://github.com/inspect-js/has-symbols/commit/0690732801f47ab429f39ba1962f522d5c462d6b)
+- [meta] add `auto-changelog` [`2163d0b`](https://github.com/inspect-js/has-symbols/commit/2163d0b7f36343076b8f947cd1667dd1750f26fc)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `core-js`, `safe-publish-latest`, `tape` [`8e0951f`](https://github.com/inspect-js/has-symbols/commit/8e0951f1a7a2e52068222b7bb73511761e6e4d9c)
+- [actions] add automatic rebasing / merge commit blocking [`b09cdb7`](https://github.com/inspect-js/has-symbols/commit/b09cdb7cd7ee39e7a769878f56e2d6066f5ccd1d)
+- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `core-js`, `get-own-property-symbols`, `tape` [`1dd42cd`](https://github.com/inspect-js/has-symbols/commit/1dd42cd86183ed0c50f99b1062345c458babca91)
+- [meta] create FUNDING.yml [`aa57a17`](https://github.com/inspect-js/has-symbols/commit/aa57a17b19708906d1927f821ea8e73394d84ca4)
+- Only apps should have lockfiles [`a2d8bea`](https://github.com/inspect-js/has-symbols/commit/a2d8bea23a97d15c09eaf60f5b107fcf9a4d57aa)
+- [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops [`9e96cb7`](https://github.com/inspect-js/has-symbols/commit/9e96cb783746cbed0c10ef78e599a8eaa7ebe193)
+- [meta] add `funding` field [`a0b32cf`](https://github.com/inspect-js/has-symbols/commit/a0b32cf68e803f963c1639b6d47b0a9d6440bab0)
+- [Dev Deps] update `safe-publish-latest` [`cb9f0a5`](https://github.com/inspect-js/has-symbols/commit/cb9f0a521a3a1790f1064d437edd33bb6c3d6af0)
+
+## v1.0.0 - 2016-09-19
+
+### Commits
+
+- Tests. [`ecb6eb9`](https://github.com/inspect-js/has-symbols/commit/ecb6eb934e4883137f3f93b965ba5e0a98df430d)
+- package.json [`88a337c`](https://github.com/inspect-js/has-symbols/commit/88a337cee0864a0da35f5d19e69ff0ef0150e46a)
+- Initial commit [`42e1e55`](https://github.com/inspect-js/has-symbols/commit/42e1e5502536a2b8ac529c9443984acd14836b1c)
+- Initial implementation. [`33f5cc6`](https://github.com/inspect-js/has-symbols/commit/33f5cc6cdff86e2194b081ee842bfdc63caf43fb)
+- read me [`01f1170`](https://github.com/inspect-js/has-symbols/commit/01f1170188ff7cb1558aa297f6ba5b516c6d7b0c)
diff --git a/node_modules/has-symbols/LICENSE b/node_modules/has-symbols/LICENSE
new file mode 100644
index 00000000..df31cbf3
--- /dev/null
+++ b/node_modules/has-symbols/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016 Jordan Harband
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/node_modules/has-symbols/README.md b/node_modules/has-symbols/README.md
new file mode 100644
index 00000000..3875d7e5
--- /dev/null
+++ b/node_modules/has-symbols/README.md
@@ -0,0 +1,40 @@
+# has-symbols [![Version Badge][2]][1]
+
+[![dependency status][5]][6]
+[![dev dependency status][7]][8]
+[![License][license-image]][license-url]
+[![Downloads][downloads-image]][downloads-url]
+
+[![npm badge][11]][1]
+
+Determine if the JS environment has Symbol support. Supports spec, or shams.
+
+## Example
+
+```js
+var hasSymbols = require('has-symbols');
+
+hasSymbols() === true; // if the environment has native Symbol support. Not polyfillable, not forgeable.
+
+var hasSymbolsKinda = require('has-symbols/shams');
+hasSymbolsKinda() === true; // if the environment has a Symbol sham that mostly follows the spec.
+```
+
+## Supported Symbol shams
+ - get-own-property-symbols [npm](https://www.npmjs.com/package/get-own-property-symbols) | [github](https://github.com/WebReflection/get-own-property-symbols)
+ - core-js [npm](https://www.npmjs.com/package/core-js) | [github](https://github.com/zloirock/core-js)
+
+## Tests
+Simply clone the repo, `npm install`, and run `npm test`
+
+[1]: https://npmjs.org/package/has-symbols
+[2]: https://versionbadg.es/inspect-js/has-symbols.svg
+[5]: https://david-dm.org/inspect-js/has-symbols.svg
+[6]: https://david-dm.org/inspect-js/has-symbols
+[7]: https://david-dm.org/inspect-js/has-symbols/dev-status.svg
+[8]: https://david-dm.org/inspect-js/has-symbols#info=devDependencies
+[11]: https://nodei.co/npm/has-symbols.png?downloads=true&stars=true
+[license-image]: https://img.shields.io/npm/l/has-symbols.svg
+[license-url]: LICENSE
+[downloads-image]: https://img.shields.io/npm/dm/has-symbols.svg
+[downloads-url]: https://npm-stat.com/charts.html?package=has-symbols
diff --git a/node_modules/has-symbols/index.js b/node_modules/has-symbols/index.js
new file mode 100644
index 00000000..17044fa2
--- /dev/null
+++ b/node_modules/has-symbols/index.js
@@ -0,0 +1,13 @@
+'use strict';
+
+var origSymbol = typeof Symbol !== 'undefined' && Symbol;
+var hasSymbolSham = require('./shams');
+
+module.exports = function hasNativeSymbols() {
+ if (typeof origSymbol !== 'function') { return false; }
+ if (typeof Symbol !== 'function') { return false; }
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
+
+ return hasSymbolSham();
+};
diff --git a/node_modules/has-symbols/package.json b/node_modules/has-symbols/package.json
new file mode 100644
index 00000000..e834063d
--- /dev/null
+++ b/node_modules/has-symbols/package.json
@@ -0,0 +1,126 @@
+{
+ "_from": "has-symbols@^1.0.1",
+ "_id": "has-symbols@1.0.2",
+ "_inBundle": false,
+ "_integrity": "sha512-chXa79rL/UC2KlX17jo3vRGz0azaWEx5tGqZg5pO3NUyEJVB17dMruQlzCCOfUvElghKcm5194+BCRvi2Rv/Gw==",
+ "_location": "/has-symbols",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "has-symbols@^1.0.1",
+ "name": "has-symbols",
+ "escapedName": "has-symbols",
+ "rawSpec": "^1.0.1",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.1"
+ },
+ "_requiredBy": [
+ "/get-intrinsic",
+ "/object.assign"
+ ],
+ "_resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.2.tgz",
+ "_shasum": "165d3070c00309752a1236a479331e3ac56f1423",
+ "_spec": "has-symbols@^1.0.1",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/object.assign",
+ "author": {
+ "name": "Jordan Harband",
+ "email": "ljharb@gmail.com",
+ "url": "http://ljharb.codes"
+ },
+ "auto-changelog": {
+ "output": "CHANGELOG.md",
+ "template": "keepachangelog",
+ "unreleased": false,
+ "commitLimit": false,
+ "backfillLimit": false,
+ "hideCredit": true
+ },
+ "bugs": {
+ "url": "https://github.com/inspect-js/has-symbols/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Jordan Harband",
+ "email": "ljharb@gmail.com",
+ "url": "http://ljharb.codes"
+ }
+ ],
+ "deprecated": false,
+ "description": "Determine if the JS environment has Symbol support. Supports spec, or shams.",
+ "devDependencies": {
+ "@ljharb/eslint-config": "^17.5.1",
+ "aud": "^1.1.4",
+ "auto-changelog": "^2.2.1",
+ "core-js": "^2.6.12",
+ "eslint": "^7.20.0",
+ "get-own-property-symbols": "^0.9.5",
+ "nyc": "^10.3.2",
+ "safe-publish-latest": "^1.1.4",
+ "tape": "^5.2.0"
+ },
+ "engines": {
+ "node": ">= 0.4"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
+ },
+ "greenkeeper": {
+ "ignore": [
+ "core-js"
+ ]
+ },
+ "homepage": "https://github.com/inspect-js/has-symbols#readme",
+ "keywords": [
+ "Symbol",
+ "symbols",
+ "typeof",
+ "sham",
+ "polyfill",
+ "native",
+ "core-js",
+ "ES6"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "has-symbols",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/inspect-js/has-symbols.git"
+ },
+ "scripts": {
+ "lint": "eslint --ext=js,mjs .",
+ "posttest": "aud --production",
+ "postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
+ "prepublish": "safe-publish-latest",
+ "pretest": "npm run --silent lint",
+ "test": "npm run tests-only",
+ "test:shams": "npm run --silent test:shams:getownpropertysymbols && npm run --silent test:shams:corejs",
+ "test:shams:corejs": "nyc node test/shams/core-js.js",
+ "test:shams:getownpropertysymbols": "nyc node test/shams/get-own-property-symbols.js",
+ "test:staging": "nyc node --harmony --es-staging test",
+ "test:stock": "nyc node test",
+ "tests-only": "npm run test:stock && npm run test:staging && npm run test:shams",
+ "version": "auto-changelog && git add CHANGELOG.md"
+ },
+ "testling": {
+ "files": "test/index.js",
+ "browsers": [
+ "iexplore/6.0..latest",
+ "firefox/3.0..6.0",
+ "firefox/15.0..latest",
+ "firefox/nightly",
+ "chrome/4.0..10.0",
+ "chrome/20.0..latest",
+ "chrome/canary",
+ "opera/10.0..latest",
+ "opera/next",
+ "safari/4.0..latest",
+ "ipad/6.0..latest",
+ "iphone/6.0..latest",
+ "android-browser/4.2"
+ ]
+ },
+ "version": "1.0.2"
+}
diff --git a/node_modules/has-symbols/shams.js b/node_modules/has-symbols/shams.js
new file mode 100644
index 00000000..1285210e
--- /dev/null
+++ b/node_modules/has-symbols/shams.js
@@ -0,0 +1,42 @@
+'use strict';
+
+/* eslint complexity: [2, 18], max-statements: [2, 33] */
+module.exports = function hasSymbols() {
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
+ if (typeof Symbol.iterator === 'symbol') { return true; }
+
+ var obj = {};
+ var sym = Symbol('test');
+ var symObj = Object(sym);
+ if (typeof sym === 'string') { return false; }
+
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
+
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
+ // if (sym instanceof Symbol) { return false; }
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
+ // if (!(symObj instanceof Symbol)) { return false; }
+
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
+
+ var symVal = 42;
+ obj[sym] = symVal;
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
+
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
+
+ var syms = Object.getOwnPropertySymbols(obj);
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
+
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
+
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
+ }
+
+ return true;
+};
diff --git a/node_modules/has-symbols/test/index.js b/node_modules/has-symbols/test/index.js
new file mode 100644
index 00000000..352129ca
--- /dev/null
+++ b/node_modules/has-symbols/test/index.js
@@ -0,0 +1,22 @@
+'use strict';
+
+var test = require('tape');
+var hasSymbols = require('../');
+var runSymbolTests = require('./tests');
+
+test('interface', function (t) {
+ t.equal(typeof hasSymbols, 'function', 'is a function');
+ t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
+ t.end();
+});
+
+test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
+ runSymbolTests(t);
+ t.end();
+});
+
+test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
+ t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
+ t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
+ t.end();
+});
diff --git a/node_modules/has-symbols/test/shams/core-js.js b/node_modules/has-symbols/test/shams/core-js.js
new file mode 100644
index 00000000..df5365c2
--- /dev/null
+++ b/node_modules/has-symbols/test/shams/core-js.js
@@ -0,0 +1,28 @@
+'use strict';
+
+var test = require('tape');
+
+if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
+ test('has native Symbol support', function (t) {
+ t.equal(typeof Symbol, 'function');
+ t.equal(typeof Symbol(), 'symbol');
+ t.end();
+ });
+ return;
+}
+
+var hasSymbols = require('../../shams');
+
+test('polyfilled Symbols', function (t) {
+ /* eslint-disable global-require */
+ t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
+ require('core-js/fn/symbol');
+ require('core-js/fn/symbol/to-string-tag');
+
+ require('../tests')(t);
+
+ var hasSymbolsAfter = hasSymbols();
+ t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
+ /* eslint-enable global-require */
+ t.end();
+});
diff --git a/node_modules/has-symbols/test/shams/get-own-property-symbols.js b/node_modules/has-symbols/test/shams/get-own-property-symbols.js
new file mode 100644
index 00000000..9191b248
--- /dev/null
+++ b/node_modules/has-symbols/test/shams/get-own-property-symbols.js
@@ -0,0 +1,28 @@
+'use strict';
+
+var test = require('tape');
+
+if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
+ test('has native Symbol support', function (t) {
+ t.equal(typeof Symbol, 'function');
+ t.equal(typeof Symbol(), 'symbol');
+ t.end();
+ });
+ return;
+}
+
+var hasSymbols = require('../../shams');
+
+test('polyfilled Symbols', function (t) {
+ /* eslint-disable global-require */
+ t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
+
+ require('get-own-property-symbols');
+
+ require('../tests')(t);
+
+ var hasSymbolsAfter = hasSymbols();
+ t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
+ /* eslint-enable global-require */
+ t.end();
+});
diff --git a/node_modules/has-symbols/test/tests.js b/node_modules/has-symbols/test/tests.js
new file mode 100644
index 00000000..89edd129
--- /dev/null
+++ b/node_modules/has-symbols/test/tests.js
@@ -0,0 +1,56 @@
+'use strict';
+
+// eslint-disable-next-line consistent-return
+module.exports = function runSymbolTests(t) {
+ t.equal(typeof Symbol, 'function', 'global Symbol is a function');
+
+ if (typeof Symbol !== 'function') { return false; }
+
+ t.notEqual(Symbol(), Symbol(), 'two symbols are not equal');
+
+ /*
+ t.equal(
+ Symbol.prototype.toString.call(Symbol('foo')),
+ Symbol.prototype.toString.call(Symbol('foo')),
+ 'two symbols with the same description stringify the same'
+ );
+ */
+
+ /*
+ var foo = Symbol('foo');
+
+ t.notEqual(
+ String(foo),
+ String(Symbol('bar')),
+ 'two symbols with different descriptions do not stringify the same'
+ );
+ */
+
+ t.equal(typeof Symbol.prototype.toString, 'function', 'Symbol#toString is a function');
+ // t.equal(String(foo), Symbol.prototype.toString.call(foo), 'Symbol#toString equals String of the same symbol');
+
+ t.equal(typeof Object.getOwnPropertySymbols, 'function', 'Object.getOwnPropertySymbols is a function');
+
+ var obj = {};
+ var sym = Symbol('test');
+ var symObj = Object(sym);
+ t.notEqual(typeof sym, 'string', 'Symbol is not a string');
+ t.equal(Object.prototype.toString.call(sym), '[object Symbol]', 'symbol primitive Object#toStrings properly');
+ t.equal(Object.prototype.toString.call(symObj), '[object Symbol]', 'symbol primitive Object#toStrings properly');
+
+ var symVal = 42;
+ obj[sym] = symVal;
+ // eslint-disable-next-line no-restricted-syntax
+ for (sym in obj) { t.fail('symbol property key was found in for..in of object'); }
+
+ t.deepEqual(Object.keys(obj), [], 'no enumerable own keys on symbol-valued object');
+ t.deepEqual(Object.getOwnPropertyNames(obj), [], 'no own names on symbol-valued object');
+ t.deepEqual(Object.getOwnPropertySymbols(obj), [sym], 'one own symbol on symbol-valued object');
+ t.equal(Object.prototype.propertyIsEnumerable.call(obj, sym), true, 'symbol is enumerable');
+ t.deepEqual(Object.getOwnPropertyDescriptor(obj, sym), {
+ configurable: true,
+ enumerable: true,
+ value: 42,
+ writable: true
+ }, 'property descriptor is correct');
+};
diff --git a/node_modules/has-value/LICENSE b/node_modules/has-value/LICENSE
new file mode 100644
index 00000000..d734237b
--- /dev/null
+++ b/node_modules/has-value/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/has-value/README.md b/node_modules/has-value/README.md
new file mode 100644
index 00000000..f9b428c9
--- /dev/null
+++ b/node_modules/has-value/README.md
@@ -0,0 +1,149 @@
+# has-value [](https://www.npmjs.com/package/has-value) [](https://npmjs.org/package/has-value) [](https://npmjs.org/package/has-value) [](https://travis-ci.org/jonschlinkert/has-value)
+
+> Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save has-value
+```
+
+**Works for:**
+
+* booleans
+* functions
+* numbers
+* strings
+* nulls
+* object
+* arrays
+
+## Usage
+
+Works with property values (supports object-path notation, like `foo.bar`) or a single value:
+
+```js
+var hasValue = require('has-value');
+
+hasValue('foo');
+hasValue({foo: 'bar'}, 'foo');
+hasValue({a: {b: {c: 'foo'}}}, 'a.b.c');
+//=> true
+
+hasValue('');
+hasValue({foo: ''}, 'foo');
+//=> false
+
+hasValue(0);
+hasValue(1);
+hasValue({foo: 0}, 'foo');
+hasValue({foo: 1}, 'foo');
+hasValue({foo: null}, 'foo');
+hasValue({foo: {bar: 'a'}}}, 'foo');
+hasValue({foo: {bar: 'a'}}}, 'foo.bar');
+//=> true
+
+hasValue({foo: {}}}, 'foo');
+hasValue({foo: {bar: {}}}}, 'foo.bar');
+hasValue({foo: undefined}, 'foo');
+//=> false
+
+hasValue([]);
+hasValue([[]]);
+hasValue([[], []]);
+hasValue([undefined]);
+hasValue({foo: []}, 'foo');
+//=> false
+
+hasValue([0]);
+hasValue([null]);
+hasValue(['foo']);
+hasValue({foo: ['a']}, 'foo');
+//=> true
+
+hasValue(function() {})
+hasValue(function(foo) {})
+hasValue({foo: function(foo) {}}, 'foo');
+hasValue({foo: function() {}}, 'foo');
+//=> true
+
+hasValue(true);
+hasValue(false);
+hasValue({foo: true}, 'foo');
+hasValue({foo: false}, 'foo');
+//=> true
+```
+
+## isEmpty
+
+To do the opposite and test for empty values, do:
+
+```js
+function isEmpty(o) {
+ return !hasValue.apply(hasValue, arguments);
+}
+```
+
+## Release history
+
+### v1.0.0
+
+* `zero` always returns true
+* `array` now recurses, so that an array of empty arrays will return `false`
+* `null` now returns true
+
+## About
+
+### Related projects
+
+* [define-property](https://www.npmjs.com/package/define-property): Define a non-enumerable property on an object. | [homepage](https://github.com/jonschlinkert/define-property "Define a non-enumerable property on an object.")
+* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value "Use property paths (`a.b.c`) to get a nested value from an object.")
+* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value "Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.")
+* [unset-value](https://www.npmjs.com/package/unset-value): Delete nested properties from an object using dot notation. | [homepage](https://github.com/jonschlinkert/unset-value "Delete nested properties from an object using dot notation.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 17 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 2 | [rmharrison](https://github.com/rmharrison) |
+
+### Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+### Running tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 19, 2017._
\ No newline at end of file
diff --git a/node_modules/has-value/index.js b/node_modules/has-value/index.js
new file mode 100644
index 00000000..c2374948
--- /dev/null
+++ b/node_modules/has-value/index.js
@@ -0,0 +1,16 @@
+/*!
+ * has-value
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Licensed under the MIT License.
+ */
+
+'use strict';
+
+var isObject = require('isobject');
+var hasValues = require('has-values');
+var get = require('get-value');
+
+module.exports = function(val, prop) {
+ return hasValues(isObject(val) && prop ? get(val, prop) : val);
+};
diff --git a/node_modules/has-value/package.json b/node_modules/has-value/package.json
new file mode 100644
index 00000000..6b457173
--- /dev/null
+++ b/node_modules/has-value/package.json
@@ -0,0 +1,120 @@
+{
+ "_from": "has-value@^1.0.0",
+ "_id": "has-value@1.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=",
+ "_location": "/has-value",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "has-value@^1.0.0",
+ "name": "has-value",
+ "escapedName": "has-value",
+ "rawSpec": "^1.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
+ },
+ "_requiredBy": [
+ "/cache-base"
+ ],
+ "_resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz",
+ "_shasum": "18b281da585b1c5c51def24c930ed29a0be6b177",
+ "_spec": "has-value@^1.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/cache-base",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/has-value/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Jon Schlinkert",
+ "url": "http://twitter.com/jonschlinkert"
+ },
+ {
+ "name": "Ryan M Harrison",
+ "url": "https://linkedin.com/in/harrisonrm"
+ }
+ ],
+ "dependencies": {
+ "get-value": "^2.0.6",
+ "has-values": "^1.0.0",
+ "isobject": "^3.0.0"
+ },
+ "deprecated": false,
+ "description": "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.12",
+ "mocha": "^3.4.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/has-value",
+ "keywords": [
+ "array",
+ "boolean",
+ "empty",
+ "find",
+ "function",
+ "has",
+ "hasOwn",
+ "javascript",
+ "js",
+ "key",
+ "keys",
+ "node.js",
+ "null",
+ "number",
+ "object",
+ "properties",
+ "property",
+ "string",
+ "type",
+ "util",
+ "utilities",
+ "utility",
+ "value"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "has-value",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/has-value.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "define-property",
+ "get-value",
+ "set-value",
+ "unset-value"
+ ]
+ },
+ "reflinks": [],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/has-values/LICENSE b/node_modules/has-values/LICENSE
new file mode 100644
index 00000000..d734237b
--- /dev/null
+++ b/node_modules/has-values/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/has-values/README.md b/node_modules/has-values/README.md
new file mode 100644
index 00000000..98d4367a
--- /dev/null
+++ b/node_modules/has-values/README.md
@@ -0,0 +1,129 @@
+# has-values [](https://www.npmjs.com/package/has-values) [](https://npmjs.org/package/has-values) [](https://npmjs.org/package/has-values) [](https://travis-ci.org/jonschlinkert/has-values)
+
+> Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save has-values
+```
+
+## Usage
+
+```js
+var hasValue = require('has-values');
+
+hasValue('a');
+//=> true
+
+hasValue('');
+//=> false
+
+hasValue(1);
+//=> true
+
+hasValue(0);
+//=> false
+
+hasValue({a: 'a'}});
+//=> true
+
+hasValue({});
+hasValue({foo: undefined});
+//=> false
+
+hasValue({foo: null});
+//=> true
+
+hasValue(['a']);
+//=> true
+
+hasValue([]);
+hasValue([[], []]);
+hasValue([[[]]]);
+//=> false
+
+hasValue(['foo']);
+hasValue([0]);
+//=> true
+
+hasValue(function(foo) {});
+//=> true
+
+hasValue(function() {});
+//=> true
+
+hasValue(true);
+//=> true
+
+hasValue(false);
+//=> true
+```
+
+## isEmpty
+
+To test for empty values, do:
+
+```js
+function isEmpty(o, isZero) {
+ return !hasValue(o, isZero);
+}
+```
+
+## Release history
+
+### v1.0.0
+
+* `zero` always returns true
+* `array` now recurses, so that an array of empty arrays will return `false`
+* `null` now returns true
+
+## About
+
+### Related projects
+
+* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.")
+* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.")
+* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.")
+* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
+* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+### Running tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 19, 2017._
\ No newline at end of file
diff --git a/node_modules/has-values/index.js b/node_modules/has-values/index.js
new file mode 100644
index 00000000..9bebb9fc
--- /dev/null
+++ b/node_modules/has-values/index.js
@@ -0,0 +1,60 @@
+/*!
+ * has-values
+ *
+ * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+var typeOf = require('kind-of');
+var isNumber = require('is-number');
+
+module.exports = function hasValue(val) {
+ // is-number checks for NaN and other edge cases
+ if (isNumber(val)) {
+ return true;
+ }
+
+ switch (typeOf(val)) {
+ case 'null':
+ case 'boolean':
+ case 'function':
+ return true;
+ case 'string':
+ case 'arguments':
+ return val.length !== 0;
+ case 'error':
+ return val.message !== '';
+ case 'array':
+ var len = val.length;
+ if (len === 0) {
+ return false;
+ }
+ for (var i = 0; i < len; i++) {
+ if (hasValue(val[i])) {
+ return true;
+ }
+ }
+ return false;
+ case 'file':
+ case 'map':
+ case 'set':
+ return val.size !== 0;
+ case 'object':
+ var keys = Object.keys(val);
+ if (keys.length === 0) {
+ return false;
+ }
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
+ if (hasValue(val[key])) {
+ return true;
+ }
+ }
+ return false;
+ default: {
+ return false;
+ }
+ }
+};
diff --git a/node_modules/has-values/node_modules/kind-of/LICENSE b/node_modules/has-values/node_modules/kind-of/LICENSE
new file mode 100644
index 00000000..d734237b
--- /dev/null
+++ b/node_modules/has-values/node_modules/kind-of/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2017, Jon Schlinkert
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/has-values/node_modules/kind-of/README.md b/node_modules/has-values/node_modules/kind-of/README.md
new file mode 100644
index 00000000..83469b0b
--- /dev/null
+++ b/node_modules/has-values/node_modules/kind-of/README.md
@@ -0,0 +1,267 @@
+# kind-of [](https://www.npmjs.com/package/kind-of) [](https://npmjs.org/package/kind-of) [](https://npmjs.org/package/kind-of) [](https://travis-ci.org/jonschlinkert/kind-of)
+
+> Get the native type of a value.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save kind-of
+```
+
+Install with [bower](https://bower.io/)
+
+```sh
+$ bower install kind-of --save
+```
+
+## Usage
+
+> es5, browser and es6 ready
+
+```js
+var kindOf = require('kind-of');
+
+kindOf(undefined);
+//=> 'undefined'
+
+kindOf(null);
+//=> 'null'
+
+kindOf(true);
+//=> 'boolean'
+
+kindOf(false);
+//=> 'boolean'
+
+kindOf(new Boolean(true));
+//=> 'boolean'
+
+kindOf(new Buffer(''));
+//=> 'buffer'
+
+kindOf(42);
+//=> 'number'
+
+kindOf(new Number(42));
+//=> 'number'
+
+kindOf('str');
+//=> 'string'
+
+kindOf(new String('str'));
+//=> 'string'
+
+kindOf(arguments);
+//=> 'arguments'
+
+kindOf({});
+//=> 'object'
+
+kindOf(Object.create(null));
+//=> 'object'
+
+kindOf(new Test());
+//=> 'object'
+
+kindOf(new Date());
+//=> 'date'
+
+kindOf([]);
+//=> 'array'
+
+kindOf([1, 2, 3]);
+//=> 'array'
+
+kindOf(new Array());
+//=> 'array'
+
+kindOf(/foo/);
+//=> 'regexp'
+
+kindOf(new RegExp('foo'));
+//=> 'regexp'
+
+kindOf(function () {});
+//=> 'function'
+
+kindOf(function * () {});
+//=> 'function'
+
+kindOf(new Function());
+//=> 'function'
+
+kindOf(new Map());
+//=> 'map'
+
+kindOf(new WeakMap());
+//=> 'weakmap'
+
+kindOf(new Set());
+//=> 'set'
+
+kindOf(new WeakSet());
+//=> 'weakset'
+
+kindOf(Symbol('str'));
+//=> 'symbol'
+
+kindOf(new Int8Array());
+//=> 'int8array'
+
+kindOf(new Uint8Array());
+//=> 'uint8array'
+
+kindOf(new Uint8ClampedArray());
+//=> 'uint8clampedarray'
+
+kindOf(new Int16Array());
+//=> 'int16array'
+
+kindOf(new Uint16Array());
+//=> 'uint16array'
+
+kindOf(new Int32Array());
+//=> 'int32array'
+
+kindOf(new Uint32Array());
+//=> 'uint32array'
+
+kindOf(new Float32Array());
+//=> 'float32array'
+
+kindOf(new Float64Array());
+//=> 'float64array'
+```
+
+## Benchmarks
+
+Benchmarked against [typeof](http://github.com/CodingFu/typeof) and [type-of](https://github.com/ForbesLindesay/type-of).
+Note that performaces is slower for es6 features `Map`, `WeakMap`, `Set` and `WeakSet`.
+
+```bash
+#1: array
+ current x 23,329,397 ops/sec ±0.82% (94 runs sampled)
+ lib-type-of x 4,170,273 ops/sec ±0.55% (94 runs sampled)
+ lib-typeof x 9,686,935 ops/sec ±0.59% (98 runs sampled)
+
+#2: boolean
+ current x 27,197,115 ops/sec ±0.85% (94 runs sampled)
+ lib-type-of x 3,145,791 ops/sec ±0.73% (97 runs sampled)
+ lib-typeof x 9,199,562 ops/sec ±0.44% (99 runs sampled)
+
+#3: date
+ current x 20,190,117 ops/sec ±0.86% (92 runs sampled)
+ lib-type-of x 5,166,970 ops/sec ±0.74% (94 runs sampled)
+ lib-typeof x 9,610,821 ops/sec ±0.50% (96 runs sampled)
+
+#4: function
+ current x 23,855,460 ops/sec ±0.60% (97 runs sampled)
+ lib-type-of x 5,667,740 ops/sec ±0.54% (100 runs sampled)
+ lib-typeof x 10,010,644 ops/sec ±0.44% (100 runs sampled)
+
+#5: null
+ current x 27,061,047 ops/sec ±0.97% (96 runs sampled)
+ lib-type-of x 13,965,573 ops/sec ±0.62% (97 runs sampled)
+ lib-typeof x 8,460,194 ops/sec ±0.61% (97 runs sampled)
+
+#6: number
+ current x 25,075,682 ops/sec ±0.53% (99 runs sampled)
+ lib-type-of x 2,266,405 ops/sec ±0.41% (98 runs sampled)
+ lib-typeof x 9,821,481 ops/sec ±0.45% (99 runs sampled)
+
+#7: object
+ current x 3,348,980 ops/sec ±0.49% (99 runs sampled)
+ lib-type-of x 3,245,138 ops/sec ±0.60% (94 runs sampled)
+ lib-typeof x 9,262,952 ops/sec ±0.59% (99 runs sampled)
+
+#8: regex
+ current x 21,284,827 ops/sec ±0.72% (96 runs sampled)
+ lib-type-of x 4,689,241 ops/sec ±0.43% (100 runs sampled)
+ lib-typeof x 8,957,593 ops/sec ±0.62% (98 runs sampled)
+
+#9: string
+ current x 25,379,234 ops/sec ±0.58% (96 runs sampled)
+ lib-type-of x 3,635,148 ops/sec ±0.76% (93 runs sampled)
+ lib-typeof x 9,494,134 ops/sec ±0.49% (98 runs sampled)
+
+#10: undef
+ current x 27,459,221 ops/sec ±1.01% (93 runs sampled)
+ lib-type-of x 14,360,433 ops/sec ±0.52% (99 runs sampled)
+ lib-typeof x 23,202,868 ops/sec ±0.59% (94 runs sampled)
+
+```
+
+## Release history
+
+### v4.0.0
+
+**Added**
+
+* `promise` support
+
+## Optimizations
+
+In 7 out of 8 cases, this library is 2x-10x faster than other top libraries included in the benchmarks. There are a few things that lead to this performance advantage, none of them hard and fast rules, but all of them simple and repeatable in almost any code library:
+
+1. Optimize around the fastest and most common use cases first. Of course, this will change from project-to-project, but I took some time to understand how and why `typeof` checks were being used in my own libraries and other libraries I use a lot.
+2. Optimize around bottlenecks - In other words, the order in which conditionals are implemented is significant, because each check is only as fast as the failing checks that came before it. Here, the biggest bottleneck by far is checking for plain objects (an object that was created by the `Object` constructor). I opted to make this check happen by process of elimination rather than brute force up front (e.g. by using something like `val.constructor.name`), so that every other type check would not be penalized it.
+3. Don't do uneccessary processing - why do `.slice(8, -1).toLowerCase();` just to get the word `regex`? It's much faster to do `if (type === '[object RegExp]') return 'regex'`
+
+## About
+
+### Related projects
+
+* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern… [more](https://github.com/jonschlinkert/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob "Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet")
+* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number "Returns true if the value is a number. comprehensive tests.")
+* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive "Returns `true` if the value is a primitive. ")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 64 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 2 | [miguelmota](https://github.com/miguelmota) |
+| 1 | [dtothefp](https://github.com/dtothefp) |
+| 1 | [ksheedlo](https://github.com/ksheedlo) |
+| 1 | [pdehaan](https://github.com/pdehaan) |
+| 1 | [laggingreflex](https://github.com/laggingreflex) |
+
+### Building docs
+
+_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
+
+To generate the readme, run the following command:
+
+```sh
+$ npm install -g verbose/verb#dev verb-generate-readme && verb
+```
+
+### Running tests
+
+Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
+
+```sh
+$ npm install && npm test
+```
+
+### Author
+
+**Jon Schlinkert**
+
+* [github/jonschlinkert](https://github.com/jonschlinkert)
+* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
+
+### License
+
+Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
+Released under the [MIT License](LICENSE).
+
+***
+
+_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 19, 2017._
\ No newline at end of file
diff --git a/node_modules/has-values/node_modules/kind-of/index.js b/node_modules/has-values/node_modules/kind-of/index.js
new file mode 100644
index 00000000..4c0233bc
--- /dev/null
+++ b/node_modules/has-values/node_modules/kind-of/index.js
@@ -0,0 +1,119 @@
+var isBuffer = require('is-buffer');
+var toString = Object.prototype.toString;
+
+/**
+ * Get the native `typeof` a value.
+ *
+ * @param {*} `val`
+ * @return {*} Native javascript type
+ */
+
+module.exports = function kindOf(val) {
+ // primitivies
+ if (typeof val === 'undefined') {
+ return 'undefined';
+ }
+ if (val === null) {
+ return 'null';
+ }
+ if (val === true || val === false || val instanceof Boolean) {
+ return 'boolean';
+ }
+ if (typeof val === 'string' || val instanceof String) {
+ return 'string';
+ }
+ if (typeof val === 'number' || val instanceof Number) {
+ return 'number';
+ }
+
+ // functions
+ if (typeof val === 'function' || val instanceof Function) {
+ return 'function';
+ }
+
+ // array
+ if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {
+ return 'array';
+ }
+
+ // check for instances of RegExp and Date before calling `toString`
+ if (val instanceof RegExp) {
+ return 'regexp';
+ }
+ if (val instanceof Date) {
+ return 'date';
+ }
+
+ // other objects
+ var type = toString.call(val);
+
+ if (type === '[object RegExp]') {
+ return 'regexp';
+ }
+ if (type === '[object Date]') {
+ return 'date';
+ }
+ if (type === '[object Arguments]') {
+ return 'arguments';
+ }
+ if (type === '[object Error]') {
+ return 'error';
+ }
+ if (type === '[object Promise]') {
+ return 'promise';
+ }
+
+ // buffer
+ if (isBuffer(val)) {
+ return 'buffer';
+ }
+
+ // es6: Map, WeakMap, Set, WeakSet
+ if (type === '[object Set]') {
+ return 'set';
+ }
+ if (type === '[object WeakSet]') {
+ return 'weakset';
+ }
+ if (type === '[object Map]') {
+ return 'map';
+ }
+ if (type === '[object WeakMap]') {
+ return 'weakmap';
+ }
+ if (type === '[object Symbol]') {
+ return 'symbol';
+ }
+
+ // typed arrays
+ if (type === '[object Int8Array]') {
+ return 'int8array';
+ }
+ if (type === '[object Uint8Array]') {
+ return 'uint8array';
+ }
+ if (type === '[object Uint8ClampedArray]') {
+ return 'uint8clampedarray';
+ }
+ if (type === '[object Int16Array]') {
+ return 'int16array';
+ }
+ if (type === '[object Uint16Array]') {
+ return 'uint16array';
+ }
+ if (type === '[object Int32Array]') {
+ return 'int32array';
+ }
+ if (type === '[object Uint32Array]') {
+ return 'uint32array';
+ }
+ if (type === '[object Float32Array]') {
+ return 'float32array';
+ }
+ if (type === '[object Float64Array]') {
+ return 'float64array';
+ }
+
+ // must be a plain object
+ return 'object';
+};
diff --git a/node_modules/has-values/node_modules/kind-of/package.json b/node_modules/has-values/node_modules/kind-of/package.json
new file mode 100644
index 00000000..86a90ff6
--- /dev/null
+++ b/node_modules/has-values/node_modules/kind-of/package.json
@@ -0,0 +1,139 @@
+{
+ "_from": "kind-of@^4.0.0",
+ "_id": "kind-of@4.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=",
+ "_location": "/has-values/kind-of",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "kind-of@^4.0.0",
+ "name": "kind-of",
+ "escapedName": "kind-of",
+ "rawSpec": "^4.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^4.0.0"
+ },
+ "_requiredBy": [
+ "/has-values"
+ ],
+ "_resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz",
+ "_shasum": "20813df3d712928b207378691a45066fae72dd57",
+ "_spec": "kind-of@^4.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/has-values",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/kind-of/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "David Fox-Powell",
+ "url": "https://dtothefp.github.io/me"
+ },
+ {
+ "name": "Jon Schlinkert",
+ "url": "http://twitter.com/jonschlinkert"
+ },
+ {
+ "name": "Ken Sheedlo",
+ "url": "kensheedlo.com"
+ },
+ {
+ "name": "laggingreflex",
+ "url": "https://github.com/laggingreflex"
+ },
+ {
+ "name": "Miguel Mota",
+ "url": "https://miguelmota.com"
+ },
+ {
+ "name": "Peter deHaan",
+ "url": "http://about.me/peterdehaan"
+ }
+ ],
+ "dependencies": {
+ "is-buffer": "^1.1.5"
+ },
+ "deprecated": false,
+ "description": "Get the native type of a value.",
+ "devDependencies": {
+ "ansi-bold": "^0.1.1",
+ "benchmarked": "^1.1.1",
+ "browserify": "^14.3.0",
+ "glob": "^7.1.1",
+ "gulp-format-md": "^0.1.12",
+ "mocha": "^3.4.1",
+ "type-of": "^2.0.1",
+ "typeof": "^1.0.0"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/kind-of",
+ "keywords": [
+ "arguments",
+ "array",
+ "boolean",
+ "check",
+ "date",
+ "function",
+ "is",
+ "is-type",
+ "is-type-of",
+ "kind",
+ "kind-of",
+ "number",
+ "object",
+ "of",
+ "regexp",
+ "string",
+ "test",
+ "type",
+ "type-of",
+ "typeof",
+ "types"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "kind-of",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/kind-of.git"
+ },
+ "scripts": {
+ "prepublish": "browserify -o browser.js -e index.js -s index --bare",
+ "test": "mocha"
+ },
+ "verb": {
+ "related": {
+ "list": [
+ "is-glob",
+ "is-number",
+ "is-primitive"
+ ]
+ },
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "lint": {
+ "reflinks": true
+ },
+ "reflinks": [
+ "verb"
+ ]
+ },
+ "version": "4.0.0"
+}
diff --git a/node_modules/has-values/package.json b/node_modules/has-values/package.json
new file mode 100644
index 00000000..667e1109
--- /dev/null
+++ b/node_modules/has-values/package.json
@@ -0,0 +1,115 @@
+{
+ "_from": "has-values@^1.0.0",
+ "_id": "has-values@1.0.0",
+ "_inBundle": false,
+ "_integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=",
+ "_location": "/has-values",
+ "_phantomChildren": {
+ "is-buffer": "1.1.6"
+ },
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "has-values@^1.0.0",
+ "name": "has-values",
+ "escapedName": "has-values",
+ "rawSpec": "^1.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
+ },
+ "_requiredBy": [
+ "/has-value"
+ ],
+ "_resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz",
+ "_shasum": "95b0b63fec2146619a6fe57fe75628d5a39efe4f",
+ "_spec": "has-values@^1.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/has-value",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/has-values/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "is-number": "^3.0.0",
+ "kind-of": "^4.0.0"
+ },
+ "deprecated": false,
+ "description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.12",
+ "mocha": "^3.4.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/has-values",
+ "keywords": [
+ "array",
+ "boolean",
+ "empty",
+ "find",
+ "function",
+ "has",
+ "hasOwn",
+ "javascript",
+ "js",
+ "key",
+ "keys",
+ "node.js",
+ "null",
+ "number",
+ "object",
+ "properties",
+ "property",
+ "string",
+ "type",
+ "util",
+ "utilities",
+ "utility",
+ "value",
+ "values"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "has-values",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/has-values.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "has-value",
+ "kind-of",
+ "is-number",
+ "is-plain-object",
+ "isobject"
+ ]
+ },
+ "reflinks": [
+ "verb"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "1.0.0"
+}
diff --git a/node_modules/has/LICENSE-MIT b/node_modules/has/LICENSE-MIT
new file mode 100644
index 00000000..ae7014d3
--- /dev/null
+++ b/node_modules/has/LICENSE-MIT
@@ -0,0 +1,22 @@
+Copyright (c) 2013 Thiago de Arruda
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/has/README.md b/node_modules/has/README.md
new file mode 100644
index 00000000..635e3a4b
--- /dev/null
+++ b/node_modules/has/README.md
@@ -0,0 +1,18 @@
+# has
+
+> Object.prototype.hasOwnProperty.call shortcut
+
+## Installation
+
+```sh
+npm install --save has
+```
+
+## Usage
+
+```js
+var has = require('has');
+
+has({}, 'hasOwnProperty'); // false
+has(Object.prototype, 'hasOwnProperty'); // true
+```
diff --git a/node_modules/has/package.json b/node_modules/has/package.json
new file mode 100644
index 00000000..408bae5c
--- /dev/null
+++ b/node_modules/has/package.json
@@ -0,0 +1,75 @@
+{
+ "_from": "has@^1.0.3",
+ "_id": "has@1.0.3",
+ "_inBundle": false,
+ "_integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",
+ "_location": "/has",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "has@^1.0.3",
+ "name": "has",
+ "escapedName": "has",
+ "rawSpec": "^1.0.3",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.3"
+ },
+ "_requiredBy": [
+ "/browserify",
+ "/get-intrinsic",
+ "/is-core-module"
+ ],
+ "_resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
+ "_shasum": "722d7cbfc1f6aa8241f16dd814e011e1f41e8796",
+ "_spec": "has@^1.0.3",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/is-core-module",
+ "author": {
+ "name": "Thiago de Arruda",
+ "email": "tpadilha84@gmail.com"
+ },
+ "bugs": {
+ "url": "https://github.com/tarruda/has/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Jordan Harband",
+ "email": "ljharb@gmail.com",
+ "url": "http://ljharb.codes"
+ }
+ ],
+ "dependencies": {
+ "function-bind": "^1.1.1"
+ },
+ "deprecated": false,
+ "description": "Object.prototype.hasOwnProperty.call shortcut",
+ "devDependencies": {
+ "@ljharb/eslint-config": "^12.2.1",
+ "eslint": "^4.19.1",
+ "tape": "^4.9.0"
+ },
+ "engines": {
+ "node": ">= 0.4.0"
+ },
+ "homepage": "https://github.com/tarruda/has",
+ "license": "MIT",
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT"
+ }
+ ],
+ "main": "./src",
+ "name": "has",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/tarruda/has.git"
+ },
+ "scripts": {
+ "lint": "eslint .",
+ "pretest": "npm run lint",
+ "test": "tape test"
+ },
+ "version": "1.0.3"
+}
diff --git a/node_modules/has/src/index.js b/node_modules/has/src/index.js
new file mode 100644
index 00000000..dd92dd90
--- /dev/null
+++ b/node_modules/has/src/index.js
@@ -0,0 +1,5 @@
+'use strict';
+
+var bind = require('function-bind');
+
+module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
diff --git a/node_modules/has/test/index.js b/node_modules/has/test/index.js
new file mode 100644
index 00000000..43d480b2
--- /dev/null
+++ b/node_modules/has/test/index.js
@@ -0,0 +1,10 @@
+'use strict';
+
+var test = require('tape');
+var has = require('../');
+
+test('has', function (t) {
+ t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
+ t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
+ t.end();
+});
diff --git a/node_modules/hash-base/LICENSE b/node_modules/hash-base/LICENSE
new file mode 100644
index 00000000..6f02ae80
--- /dev/null
+++ b/node_modules/hash-base/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Kirill Fomichev
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/node_modules/hash-base/README.md b/node_modules/hash-base/README.md
new file mode 100644
index 00000000..83ae2edc
--- /dev/null
+++ b/node_modules/hash-base/README.md
@@ -0,0 +1,48 @@
+# hash-base
+
+[](https://www.npmjs.org/package/hash-base)
+[](https://travis-ci.org/crypto-browserify/hash-base)
+[](https://david-dm.org/crypto-browserify/hash-base#info=dependencies)
+
+[](https://github.com/feross/standard)
+
+Abstract base class to inherit from if you want to create streams implementing the same API as node crypto [Hash][1] (for [Cipher][2] / [Decipher][3] check [crypto-browserify/cipher-base][4]).
+
+## Example
+
+```js
+const HashBase = require('hash-base')
+const inherits = require('inherits')
+
+// our hash function is XOR sum of all bytes
+function MyHash () {
+ HashBase.call(this, 1) // in bytes
+
+ this._sum = 0x00
+}
+
+inherits(MyHash, HashBase)
+
+MyHash.prototype._update = function () {
+ for (let i = 0; i < this._block.length; ++i) this._sum ^= this._block[i]
+}
+
+MyHash.prototype._digest = function () {
+ return this._sum
+}
+
+const data = Buffer.from([ 0x00, 0x42, 0x01 ])
+const hash = new MyHash().update(data).digest()
+console.log(hash) // => 67
+```
+You also can check [source code](index.js) or [crypto-browserify/md5.js][5]
+
+## LICENSE
+
+MIT
+
+[1]: https://nodejs.org/api/crypto.html#crypto_class_hash
+[2]: https://nodejs.org/api/crypto.html#crypto_class_cipher
+[3]: https://nodejs.org/api/crypto.html#crypto_class_decipher
+[4]: https://github.com/crypto-browserify/cipher-base
+[5]: https://github.com/crypto-browserify/md5.js
diff --git a/node_modules/hash-base/index.js b/node_modules/hash-base/index.js
new file mode 100644
index 00000000..059480bf
--- /dev/null
+++ b/node_modules/hash-base/index.js
@@ -0,0 +1,95 @@
+'use strict'
+var Buffer = require('safe-buffer').Buffer
+var Transform = require('readable-stream').Transform
+var inherits = require('inherits')
+
+function throwIfNotStringOrBuffer (val, prefix) {
+ if (!Buffer.isBuffer(val) && typeof val !== 'string') {
+ throw new TypeError(prefix + ' must be a string or a buffer')
+ }
+}
+
+function HashBase (blockSize) {
+ Transform.call(this)
+
+ this._block = Buffer.allocUnsafe(blockSize)
+ this._blockSize = blockSize
+ this._blockOffset = 0
+ this._length = [0, 0, 0, 0]
+
+ this._finalized = false
+}
+
+inherits(HashBase, Transform)
+
+HashBase.prototype._transform = function (chunk, encoding, callback) {
+ var error = null
+ try {
+ this.update(chunk, encoding)
+ } catch (err) {
+ error = err
+ }
+
+ callback(error)
+}
+
+HashBase.prototype._flush = function (callback) {
+ var error = null
+ try {
+ this.push(this.digest())
+ } catch (err) {
+ error = err
+ }
+
+ callback(error)
+}
+
+HashBase.prototype.update = function (data, encoding) {
+ throwIfNotStringOrBuffer(data, 'Data')
+ if (this._finalized) throw new Error('Digest already called')
+ if (!Buffer.isBuffer(data)) data = Buffer.from(data, encoding)
+
+ // consume data
+ var block = this._block
+ var offset = 0
+ while (this._blockOffset + data.length - offset >= this._blockSize) {
+ for (var i = this._blockOffset; i < this._blockSize;) block[i++] = data[offset++]
+ this._update()
+ this._blockOffset = 0
+ }
+ while (offset < data.length) block[this._blockOffset++] = data[offset++]
+
+ // update length
+ for (var j = 0, carry = data.length * 8; carry > 0; ++j) {
+ this._length[j] += carry
+ carry = (this._length[j] / 0x0100000000) | 0
+ if (carry > 0) this._length[j] -= 0x0100000000 * carry
+ }
+
+ return this
+}
+
+HashBase.prototype._update = function () {
+ throw new Error('_update is not implemented')
+}
+
+HashBase.prototype.digest = function (encoding) {
+ if (this._finalized) throw new Error('Digest already called')
+ this._finalized = true
+
+ var digest = this._digest()
+ if (encoding !== undefined) digest = digest.toString(encoding)
+
+ // reset state
+ this._block.fill(0)
+ this._blockOffset = 0
+ for (var i = 0; i < 4; ++i) this._length[i] = 0
+
+ return digest
+}
+
+HashBase.prototype._digest = function () {
+ throw new Error('_digest is not implemented')
+}
+
+module.exports = HashBase
diff --git a/node_modules/hash-base/node_modules/readable-stream/CONTRIBUTING.md b/node_modules/hash-base/node_modules/readable-stream/CONTRIBUTING.md
new file mode 100644
index 00000000..f478d58d
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/CONTRIBUTING.md
@@ -0,0 +1,38 @@
+# Developer's Certificate of Origin 1.1
+
+By making a contribution to this project, I certify that:
+
+* (a) The contribution was created in whole or in part by me and I
+ have the right to submit it under the open source license
+ indicated in the file; or
+
+* (b) The contribution is based upon previous work that, to the best
+ of my knowledge, is covered under an appropriate open source
+ license and I have the right under that license to submit that
+ work with modifications, whether created in whole or in part
+ by me, under the same open source license (unless I am
+ permitted to submit under a different license), as indicated
+ in the file; or
+
+* (c) The contribution was provided directly to me by some other
+ person who certified (a), (b) or (c) and I have not modified
+ it.
+
+* (d) I understand and agree that this project and the contribution
+ are public and that a record of the contribution (including all
+ personal information I submit with it, including my sign-off) is
+ maintained indefinitely and may be redistributed consistent with
+ this project or the open source license(s) involved.
+
+## Moderation Policy
+
+The [Node.js Moderation Policy] applies to this WG.
+
+## Code of Conduct
+
+The [Node.js Code of Conduct][] applies to this WG.
+
+[Node.js Code of Conduct]:
+https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md
+[Node.js Moderation Policy]:
+https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md
diff --git a/node_modules/hash-base/node_modules/readable-stream/GOVERNANCE.md b/node_modules/hash-base/node_modules/readable-stream/GOVERNANCE.md
new file mode 100644
index 00000000..16ffb93f
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/GOVERNANCE.md
@@ -0,0 +1,136 @@
+### Streams Working Group
+
+The Node.js Streams is jointly governed by a Working Group
+(WG)
+that is responsible for high-level guidance of the project.
+
+The WG has final authority over this project including:
+
+* Technical direction
+* Project governance and process (including this policy)
+* Contribution policy
+* GitHub repository hosting
+* Conduct guidelines
+* Maintaining the list of additional Collaborators
+
+For the current list of WG members, see the project
+[README.md](./README.md#current-project-team-members).
+
+### Collaborators
+
+The readable-stream GitHub repository is
+maintained by the WG and additional Collaborators who are added by the
+WG on an ongoing basis.
+
+Individuals making significant and valuable contributions are made
+Collaborators and given commit-access to the project. These
+individuals are identified by the WG and their addition as
+Collaborators is discussed during the WG meeting.
+
+_Note:_ If you make a significant contribution and are not considered
+for commit-access log an issue or contact a WG member directly and it
+will be brought up in the next WG meeting.
+
+Modifications of the contents of the readable-stream repository are
+made on
+a collaborative basis. Anybody with a GitHub account may propose a
+modification via pull request and it will be considered by the project
+Collaborators. All pull requests must be reviewed and accepted by a
+Collaborator with sufficient expertise who is able to take full
+responsibility for the change. In the case of pull requests proposed
+by an existing Collaborator, an additional Collaborator is required
+for sign-off. Consensus should be sought if additional Collaborators
+participate and there is disagreement around a particular
+modification. See _Consensus Seeking Process_ below for further detail
+on the consensus model used for governance.
+
+Collaborators may opt to elevate significant or controversial
+modifications, or modifications that have not found consensus to the
+WG for discussion by assigning the ***WG-agenda*** tag to a pull
+request or issue. The WG should serve as the final arbiter where
+required.
+
+For the current list of Collaborators, see the project
+[README.md](./README.md#members).
+
+### WG Membership
+
+WG seats are not time-limited. There is no fixed size of the WG.
+However, the expected target is between 6 and 12, to ensure adequate
+coverage of important areas of expertise, balanced with the ability to
+make decisions efficiently.
+
+There is no specific set of requirements or qualifications for WG
+membership beyond these rules.
+
+The WG may add additional members to the WG by unanimous consensus.
+
+A WG member may be removed from the WG by voluntary resignation, or by
+unanimous consensus of all other WG members.
+
+Changes to WG membership should be posted in the agenda, and may be
+suggested as any other agenda item (see "WG Meetings" below).
+
+If an addition or removal is proposed during a meeting, and the full
+WG is not in attendance to participate, then the addition or removal
+is added to the agenda for the subsequent meeting. This is to ensure
+that all members are given the opportunity to participate in all
+membership decisions. If a WG member is unable to attend a meeting
+where a planned membership decision is being made, then their consent
+is assumed.
+
+No more than 1/3 of the WG members may be affiliated with the same
+employer. If removal or resignation of a WG member, or a change of
+employment by a WG member, creates a situation where more than 1/3 of
+the WG membership shares an employer, then the situation must be
+immediately remedied by the resignation or removal of one or more WG
+members affiliated with the over-represented employer(s).
+
+### WG Meetings
+
+The WG meets occasionally on a Google Hangout On Air. A designated moderator
+approved by the WG runs the meeting. Each meeting should be
+published to YouTube.
+
+Items are added to the WG agenda that are considered contentious or
+are modifications of governance, contribution policy, WG membership,
+or release process.
+
+The intention of the agenda is not to approve or review all patches;
+that should happen continuously on GitHub and be handled by the larger
+group of Collaborators.
+
+Any community member or contributor can ask that something be added to
+the next meeting's agenda by logging a GitHub Issue. Any Collaborator,
+WG member or the moderator can add the item to the agenda by adding
+the ***WG-agenda*** tag to the issue.
+
+Prior to each WG meeting the moderator will share the Agenda with
+members of the WG. WG members can add any items they like to the
+agenda at the beginning of each meeting. The moderator and the WG
+cannot veto or remove items.
+
+The WG may invite persons or representatives from certain projects to
+participate in a non-voting capacity.
+
+The moderator is responsible for summarizing the discussion of each
+agenda item and sends it as a pull request after the meeting.
+
+### Consensus Seeking Process
+
+The WG follows a
+[Consensus
+Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making)
+decision-making model.
+
+When an agenda item has appeared to reach a consensus the moderator
+will ask "Does anyone object?" as a final call for dissent from the
+consensus.
+
+If an agenda item cannot reach a consensus a WG member can call for
+either a closing vote or a vote to table the issue to the next
+meeting. The call for a vote must be seconded by a majority of the WG
+or else the discussion will continue. Simple majority wins.
+
+Note that changes to WG membership require a majority consensus. See
+"WG Membership" above.
diff --git a/node_modules/hash-base/node_modules/readable-stream/LICENSE b/node_modules/hash-base/node_modules/readable-stream/LICENSE
new file mode 100644
index 00000000..2873b3b2
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/LICENSE
@@ -0,0 +1,47 @@
+Node.js is licensed for use as follows:
+
+"""
+Copyright Node.js contributors. All rights reserved.
+
+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.
+"""
+
+This license applies to parts of Node.js originating from the
+https://github.com/joyent/node repository:
+
+"""
+Copyright Joyent, Inc. and other Node contributors. All rights reserved.
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to
+deal in the Software without restriction, including without limitation the
+rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+sell copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
+IN THE SOFTWARE.
+"""
diff --git a/node_modules/hash-base/node_modules/readable-stream/README.md b/node_modules/hash-base/node_modules/readable-stream/README.md
new file mode 100644
index 00000000..6f035ab1
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/README.md
@@ -0,0 +1,106 @@
+# readable-stream
+
+***Node.js core streams for userland*** [](https://travis-ci.com/nodejs/readable-stream)
+
+
+[](https://nodei.co/npm/readable-stream/)
+[](https://nodei.co/npm/readable-stream/)
+
+
+[](https://saucelabs.com/u/readabe-stream)
+
+```bash
+npm install --save readable-stream
+```
+
+This package is a mirror of the streams implementations in Node.js.
+
+Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.19.0/docs/api/stream.html).
+
+If you want to guarantee a stable streams base, regardless of what version of
+Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html).
+
+As of version 2.0.0 **readable-stream** uses semantic versioning.
+
+## Version 3.x.x
+
+v3.x.x of `readable-stream` is a cut from Node 10. This version supports Node 6, 8, and 10, as well as evergreen browsers, IE 11 and latest Safari. The breaking changes introduced by v3 are composed by the combined breaking changes in [Node v9](https://nodejs.org/en/blog/release/v9.0.0/) and [Node v10](https://nodejs.org/en/blog/release/v10.0.0/), as follows:
+
+1. Error codes: https://github.com/nodejs/node/pull/13310,
+ https://github.com/nodejs/node/pull/13291,
+ https://github.com/nodejs/node/pull/16589,
+ https://github.com/nodejs/node/pull/15042,
+ https://github.com/nodejs/node/pull/15665,
+ https://github.com/nodejs/readable-stream/pull/344
+2. 'readable' have precedence over flowing
+ https://github.com/nodejs/node/pull/18994
+3. make virtual methods errors consistent
+ https://github.com/nodejs/node/pull/18813
+4. updated streams error handling
+ https://github.com/nodejs/node/pull/18438
+5. writable.end should return this.
+ https://github.com/nodejs/node/pull/18780
+6. readable continues to read when push('')
+ https://github.com/nodejs/node/pull/18211
+7. add custom inspect to BufferList
+ https://github.com/nodejs/node/pull/17907
+8. always defer 'readable' with nextTick
+ https://github.com/nodejs/node/pull/17979
+
+## Version 2.x.x
+v2.x.x of `readable-stream` is a cut of the stream module from Node 8 (there have been no semver-major changes from Node 4 to 8). This version supports all Node.js versions from 0.8, as well as evergreen browsers and IE 10 & 11.
+
+### Big Thanks
+
+Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauce]
+
+# Usage
+
+You can swap your `require('stream')` with `require('readable-stream')`
+without any changes, if you are just using one of the main classes and
+functions.
+
+```js
+const {
+ Readable,
+ Writable,
+ Transform,
+ Duplex,
+ pipeline,
+ finished
+} = require('readable-stream')
+````
+
+Note that `require('stream')` will return `Stream`, while
+`require('readable-stream')` will return `Readable`. We discourage using
+whatever is exported directly, but rather use one of the properties as
+shown in the example above.
+
+# Streams Working Group
+
+`readable-stream` is maintained by the Streams Working Group, which
+oversees the development and maintenance of the Streams API within
+Node.js. The responsibilities of the Streams Working Group include:
+
+* Addressing stream issues on the Node.js issue tracker.
+* Authoring and editing stream documentation within the Node.js project.
+* Reviewing changes to stream subclasses within the Node.js project.
+* Redirecting changes to streams from the Node.js project to this
+ project.
+* Assisting in the implementation of stream providers within Node.js.
+* Recommending versions of `readable-stream` to be included in Node.js.
+* Messaging about the future of streams to give the community advance
+ notice of changes.
+
+
+## Team Members
+
+* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com>
+ - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242
+* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com>
+* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com>
+ - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E
+* **Irina Shestak** ([@lrlna](https://github.com/lrlna)) <shestak.irina@gmail.com>
+* **Yoshua Wyuts** ([@yoshuawuyts](https://github.com/yoshuawuyts)) <yoshuawuyts@gmail.com>
+
+[sauce]: https://saucelabs.com
diff --git a/node_modules/hash-base/node_modules/readable-stream/errors-browser.js b/node_modules/hash-base/node_modules/readable-stream/errors-browser.js
new file mode 100644
index 00000000..fb8e73e1
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/errors-browser.js
@@ -0,0 +1,127 @@
+'use strict';
+
+function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
+
+var codes = {};
+
+function createErrorType(code, message, Base) {
+ if (!Base) {
+ Base = Error;
+ }
+
+ function getMessage(arg1, arg2, arg3) {
+ if (typeof message === 'string') {
+ return message;
+ } else {
+ return message(arg1, arg2, arg3);
+ }
+ }
+
+ var NodeError =
+ /*#__PURE__*/
+ function (_Base) {
+ _inheritsLoose(NodeError, _Base);
+
+ function NodeError(arg1, arg2, arg3) {
+ return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;
+ }
+
+ return NodeError;
+ }(Base);
+
+ NodeError.prototype.name = Base.name;
+ NodeError.prototype.code = code;
+ codes[code] = NodeError;
+} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js
+
+
+function oneOf(expected, thing) {
+ if (Array.isArray(expected)) {
+ var len = expected.length;
+ expected = expected.map(function (i) {
+ return String(i);
+ });
+
+ if (len > 2) {
+ return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1];
+ } else if (len === 2) {
+ return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]);
+ } else {
+ return "of ".concat(thing, " ").concat(expected[0]);
+ }
+ } else {
+ return "of ".concat(thing, " ").concat(String(expected));
+ }
+} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
+
+
+function startsWith(str, search, pos) {
+ return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
+} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
+
+
+function endsWith(str, search, this_len) {
+ if (this_len === undefined || this_len > str.length) {
+ this_len = str.length;
+ }
+
+ return str.substring(this_len - search.length, this_len) === search;
+} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
+
+
+function includes(str, search, start) {
+ if (typeof start !== 'number') {
+ start = 0;
+ }
+
+ if (start + search.length > str.length) {
+ return false;
+ } else {
+ return str.indexOf(search, start) !== -1;
+ }
+}
+
+createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {
+ return 'The value "' + value + '" is invalid for option "' + name + '"';
+}, TypeError);
+createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
+ // determiner: 'must be' or 'must not be'
+ var determiner;
+
+ if (typeof expected === 'string' && startsWith(expected, 'not ')) {
+ determiner = 'must not be';
+ expected = expected.replace(/^not /, '');
+ } else {
+ determiner = 'must be';
+ }
+
+ var msg;
+
+ if (endsWith(name, ' argument')) {
+ // For cases like 'first argument'
+ msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));
+ } else {
+ var type = includes(name, '.') ? 'property' : 'argument';
+ msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type'));
+ }
+
+ msg += ". Received type ".concat(typeof actual);
+ return msg;
+}, TypeError);
+createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');
+createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {
+ return 'The ' + name + ' method is not implemented';
+});
+createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');
+createErrorType('ERR_STREAM_DESTROYED', function (name) {
+ return 'Cannot call ' + name + ' after a stream was destroyed';
+});
+createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
+createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');
+createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');
+createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
+createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
+ return 'Unknown encoding: ' + arg;
+}, TypeError);
+createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
+module.exports.codes = codes;
diff --git a/node_modules/hash-base/node_modules/readable-stream/errors.js b/node_modules/hash-base/node_modules/readable-stream/errors.js
new file mode 100644
index 00000000..8471526d
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/errors.js
@@ -0,0 +1,116 @@
+'use strict';
+
+const codes = {};
+
+function createErrorType(code, message, Base) {
+ if (!Base) {
+ Base = Error
+ }
+
+ function getMessage (arg1, arg2, arg3) {
+ if (typeof message === 'string') {
+ return message
+ } else {
+ return message(arg1, arg2, arg3)
+ }
+ }
+
+ class NodeError extends Base {
+ constructor (arg1, arg2, arg3) {
+ super(getMessage(arg1, arg2, arg3));
+ }
+ }
+
+ NodeError.prototype.name = Base.name;
+ NodeError.prototype.code = code;
+
+ codes[code] = NodeError;
+}
+
+// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js
+function oneOf(expected, thing) {
+ if (Array.isArray(expected)) {
+ const len = expected.length;
+ expected = expected.map((i) => String(i));
+ if (len > 2) {
+ return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` +
+ expected[len - 1];
+ } else if (len === 2) {
+ return `one of ${thing} ${expected[0]} or ${expected[1]}`;
+ } else {
+ return `of ${thing} ${expected[0]}`;
+ }
+ } else {
+ return `of ${thing} ${String(expected)}`;
+ }
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
+function startsWith(str, search, pos) {
+ return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith
+function endsWith(str, search, this_len) {
+ if (this_len === undefined || this_len > str.length) {
+ this_len = str.length;
+ }
+ return str.substring(this_len - search.length, this_len) === search;
+}
+
+// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
+function includes(str, search, start) {
+ if (typeof start !== 'number') {
+ start = 0;
+ }
+
+ if (start + search.length > str.length) {
+ return false;
+ } else {
+ return str.indexOf(search, start) !== -1;
+ }
+}
+
+createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {
+ return 'The value "' + value + '" is invalid for option "' + name + '"'
+}, TypeError);
+createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {
+ // determiner: 'must be' or 'must not be'
+ let determiner;
+ if (typeof expected === 'string' && startsWith(expected, 'not ')) {
+ determiner = 'must not be';
+ expected = expected.replace(/^not /, '');
+ } else {
+ determiner = 'must be';
+ }
+
+ let msg;
+ if (endsWith(name, ' argument')) {
+ // For cases like 'first argument'
+ msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`;
+ } else {
+ const type = includes(name, '.') ? 'property' : 'argument';
+ msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`;
+ }
+
+ msg += `. Received type ${typeof actual}`;
+ return msg;
+}, TypeError);
+createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');
+createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {
+ return 'The ' + name + ' method is not implemented'
+});
+createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');
+createErrorType('ERR_STREAM_DESTROYED', function (name) {
+ return 'Cannot call ' + name + ' after a stream was destroyed';
+});
+createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');
+createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');
+createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');
+createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);
+createErrorType('ERR_UNKNOWN_ENCODING', function (arg) {
+ return 'Unknown encoding: ' + arg
+}, TypeError);
+createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');
+
+module.exports.codes = codes;
diff --git a/node_modules/hash-base/node_modules/readable-stream/experimentalWarning.js b/node_modules/hash-base/node_modules/readable-stream/experimentalWarning.js
new file mode 100644
index 00000000..78e84149
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/experimentalWarning.js
@@ -0,0 +1,17 @@
+'use strict'
+
+var experimentalWarnings = new Set();
+
+function emitExperimentalWarning(feature) {
+ if (experimentalWarnings.has(feature)) return;
+ var msg = feature + ' is an experimental feature. This feature could ' +
+ 'change at any time';
+ experimentalWarnings.add(feature);
+ process.emitWarning(msg, 'ExperimentalWarning');
+}
+
+function noop() {}
+
+module.exports.emitExperimentalWarning = process.emitWarning
+ ? emitExperimentalWarning
+ : noop;
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/_stream_duplex.js b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_duplex.js
new file mode 100644
index 00000000..67525192
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_duplex.js
@@ -0,0 +1,139 @@
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// 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.
+// a duplex stream is just a stream that is both readable and writable.
+// Since JS doesn't have multiple prototypal inheritance, this class
+// prototypally inherits from Readable, and then parasitically from
+// Writable.
+'use strict';
+/**/
+
+var objectKeys = Object.keys || function (obj) {
+ var keys = [];
+
+ for (var key in obj) {
+ keys.push(key);
+ }
+
+ return keys;
+};
+/* */
+
+
+module.exports = Duplex;
+
+var Readable = require('./_stream_readable');
+
+var Writable = require('./_stream_writable');
+
+require('inherits')(Duplex, Readable);
+
+{
+ // Allow the keys array to be GC'ed.
+ var keys = objectKeys(Writable.prototype);
+
+ for (var v = 0; v < keys.length; v++) {
+ var method = keys[v];
+ if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];
+ }
+}
+
+function Duplex(options) {
+ if (!(this instanceof Duplex)) return new Duplex(options);
+ Readable.call(this, options);
+ Writable.call(this, options);
+ this.allowHalfOpen = true;
+
+ if (options) {
+ if (options.readable === false) this.readable = false;
+ if (options.writable === false) this.writable = false;
+
+ if (options.allowHalfOpen === false) {
+ this.allowHalfOpen = false;
+ this.once('end', onend);
+ }
+ }
+}
+
+Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState.highWaterMark;
+ }
+});
+Object.defineProperty(Duplex.prototype, 'writableBuffer', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+});
+Object.defineProperty(Duplex.prototype, 'writableLength', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState.length;
+ }
+}); // the no-half-open enforcer
+
+function onend() {
+ // If the writable side ended, then we're ok.
+ if (this._writableState.ended) return; // no more data can be written.
+ // But allow more writes to happen in this tick.
+
+ process.nextTick(onEndNT, this);
+}
+
+function onEndNT(self) {
+ self.end();
+}
+
+Object.defineProperty(Duplex.prototype, 'destroyed', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ if (this._readableState === undefined || this._writableState === undefined) {
+ return false;
+ }
+
+ return this._readableState.destroyed && this._writableState.destroyed;
+ },
+ set: function set(value) {
+ // we ignore the value if the stream
+ // has not been initialized yet
+ if (this._readableState === undefined || this._writableState === undefined) {
+ return;
+ } // backward compatibility, the user is explicitly
+ // managing destroyed
+
+
+ this._readableState.destroyed = value;
+ this._writableState.destroyed = value;
+ }
+});
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/_stream_passthrough.js b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_passthrough.js
new file mode 100644
index 00000000..32e7414c
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_passthrough.js
@@ -0,0 +1,39 @@
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// 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.
+// a passthrough stream.
+// basically just the most minimal sort of Transform stream.
+// Every written chunk gets output as-is.
+'use strict';
+
+module.exports = PassThrough;
+
+var Transform = require('./_stream_transform');
+
+require('inherits')(PassThrough, Transform);
+
+function PassThrough(options) {
+ if (!(this instanceof PassThrough)) return new PassThrough(options);
+ Transform.call(this, options);
+}
+
+PassThrough.prototype._transform = function (chunk, encoding, cb) {
+ cb(null, chunk);
+};
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_readable.js
new file mode 100644
index 00000000..192d4514
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_readable.js
@@ -0,0 +1,1124 @@
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// 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.
+'use strict';
+
+module.exports = Readable;
+/**/
+
+var Duplex;
+/* */
+
+Readable.ReadableState = ReadableState;
+/**/
+
+var EE = require('events').EventEmitter;
+
+var EElistenerCount = function EElistenerCount(emitter, type) {
+ return emitter.listeners(type).length;
+};
+/* */
+
+/**/
+
+
+var Stream = require('./internal/streams/stream');
+/* */
+
+
+var Buffer = require('buffer').Buffer;
+
+var OurUint8Array = global.Uint8Array || function () {};
+
+function _uint8ArrayToBuffer(chunk) {
+ return Buffer.from(chunk);
+}
+
+function _isUint8Array(obj) {
+ return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
+}
+/**/
+
+
+var debugUtil = require('util');
+
+var debug;
+
+if (debugUtil && debugUtil.debuglog) {
+ debug = debugUtil.debuglog('stream');
+} else {
+ debug = function debug() {};
+}
+/* */
+
+
+var BufferList = require('./internal/streams/buffer_list');
+
+var destroyImpl = require('./internal/streams/destroy');
+
+var _require = require('./internal/streams/state'),
+ getHighWaterMark = _require.getHighWaterMark;
+
+var _require$codes = require('../errors').codes,
+ ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
+ ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,
+ ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
+ ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance.
+
+
+var StringDecoder;
+var createReadableStreamAsyncIterator;
+var from;
+
+require('inherits')(Readable, Stream);
+
+var errorOrDestroy = destroyImpl.errorOrDestroy;
+var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];
+
+function prependListener(emitter, event, fn) {
+ // Sadly this is not cacheable as some libraries bundle their own
+ // event emitter implementation with them.
+ if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any
+ // userland ones. NEVER DO THIS. This is here only because this code needs
+ // to continue to work with older versions of Node.js that do not include
+ // the prependListener() method. The goal is to eventually remove this hack.
+
+ if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];
+}
+
+function ReadableState(options, stream, isDuplex) {
+ Duplex = Duplex || require('./_stream_duplex');
+ options = options || {}; // Duplex streams are both readable and writable, but share
+ // the same options object.
+ // However, some cases require setting options to different
+ // values for the readable and the writable sides of the duplex stream.
+ // These options can be provided separately as readableXXX and writableXXX.
+
+ if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to
+ // make all the buffer merging and length checks go away
+
+ this.objectMode = !!options.objectMode;
+ if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer
+ // Note: 0 is a valid value, means "don't call _read preemptively ever"
+
+ this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the
+ // linked list can remove elements from the beginning faster than
+ // array.shift()
+
+ this.buffer = new BufferList();
+ this.length = 0;
+ this.pipes = null;
+ this.pipesCount = 0;
+ this.flowing = null;
+ this.ended = false;
+ this.endEmitted = false;
+ this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted
+ // immediately, or on a later tick. We set this to true at first, because
+ // any actions that shouldn't happen until "later" should generally also
+ // not happen before the first read call.
+
+ this.sync = true; // whenever we return null, then we set a flag to say
+ // that we're awaiting a 'readable' event emission.
+
+ this.needReadable = false;
+ this.emittedReadable = false;
+ this.readableListening = false;
+ this.resumeScheduled = false;
+ this.paused = true; // Should close be emitted on destroy. Defaults to true.
+
+ this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish')
+
+ this.autoDestroy = !!options.autoDestroy; // has it been destroyed
+
+ this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string
+ // encoding is 'binary' so we have to make this configurable.
+ // Everything else in the universe uses 'utf8', though.
+
+ this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s
+
+ this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled
+
+ this.readingMore = false;
+ this.decoder = null;
+ this.encoding = null;
+
+ if (options.encoding) {
+ if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
+ this.decoder = new StringDecoder(options.encoding);
+ this.encoding = options.encoding;
+ }
+}
+
+function Readable(options) {
+ Duplex = Duplex || require('./_stream_duplex');
+ if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside
+ // the ReadableState constructor, at least with V8 6.5
+
+ var isDuplex = this instanceof Duplex;
+ this._readableState = new ReadableState(options, this, isDuplex); // legacy
+
+ this.readable = true;
+
+ if (options) {
+ if (typeof options.read === 'function') this._read = options.read;
+ if (typeof options.destroy === 'function') this._destroy = options.destroy;
+ }
+
+ Stream.call(this);
+}
+
+Object.defineProperty(Readable.prototype, 'destroyed', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ if (this._readableState === undefined) {
+ return false;
+ }
+
+ return this._readableState.destroyed;
+ },
+ set: function set(value) {
+ // we ignore the value if the stream
+ // has not been initialized yet
+ if (!this._readableState) {
+ return;
+ } // backward compatibility, the user is explicitly
+ // managing destroyed
+
+
+ this._readableState.destroyed = value;
+ }
+});
+Readable.prototype.destroy = destroyImpl.destroy;
+Readable.prototype._undestroy = destroyImpl.undestroy;
+
+Readable.prototype._destroy = function (err, cb) {
+ cb(err);
+}; // Manually shove something into the read() buffer.
+// This returns true if the highWaterMark has not been hit yet,
+// similar to how Writable.write() returns true if you should
+// write() some more.
+
+
+Readable.prototype.push = function (chunk, encoding) {
+ var state = this._readableState;
+ var skipChunkCheck;
+
+ if (!state.objectMode) {
+ if (typeof chunk === 'string') {
+ encoding = encoding || state.defaultEncoding;
+
+ if (encoding !== state.encoding) {
+ chunk = Buffer.from(chunk, encoding);
+ encoding = '';
+ }
+
+ skipChunkCheck = true;
+ }
+ } else {
+ skipChunkCheck = true;
+ }
+
+ return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
+}; // Unshift should *always* be something directly out of read()
+
+
+Readable.prototype.unshift = function (chunk) {
+ return readableAddChunk(this, chunk, null, true, false);
+};
+
+function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
+ debug('readableAddChunk', chunk);
+ var state = stream._readableState;
+
+ if (chunk === null) {
+ state.reading = false;
+ onEofChunk(stream, state);
+ } else {
+ var er;
+ if (!skipChunkCheck) er = chunkInvalid(state, chunk);
+
+ if (er) {
+ errorOrDestroy(stream, er);
+ } else if (state.objectMode || chunk && chunk.length > 0) {
+ if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {
+ chunk = _uint8ArrayToBuffer(chunk);
+ }
+
+ if (addToFront) {
+ if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);
+ } else if (state.ended) {
+ errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());
+ } else if (state.destroyed) {
+ return false;
+ } else {
+ state.reading = false;
+
+ if (state.decoder && !encoding) {
+ chunk = state.decoder.write(chunk);
+ if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);
+ } else {
+ addChunk(stream, state, chunk, false);
+ }
+ }
+ } else if (!addToFront) {
+ state.reading = false;
+ maybeReadMore(stream, state);
+ }
+ } // We can push more data if we are below the highWaterMark.
+ // Also, if we have no data yet, we can stand some more bytes.
+ // This is to work around cases where hwm=0, such as the repl.
+
+
+ return !state.ended && (state.length < state.highWaterMark || state.length === 0);
+}
+
+function addChunk(stream, state, chunk, addToFront) {
+ if (state.flowing && state.length === 0 && !state.sync) {
+ state.awaitDrain = 0;
+ stream.emit('data', chunk);
+ } else {
+ // update the buffer info.
+ state.length += state.objectMode ? 1 : chunk.length;
+ if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);
+ if (state.needReadable) emitReadable(stream);
+ }
+
+ maybeReadMore(stream, state);
+}
+
+function chunkInvalid(state, chunk) {
+ var er;
+
+ if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {
+ er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);
+ }
+
+ return er;
+}
+
+Readable.prototype.isPaused = function () {
+ return this._readableState.flowing === false;
+}; // backwards compatibility.
+
+
+Readable.prototype.setEncoding = function (enc) {
+ if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;
+ var decoder = new StringDecoder(enc);
+ this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8
+
+ this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers:
+
+ var p = this._readableState.buffer.head;
+ var content = '';
+
+ while (p !== null) {
+ content += decoder.write(p.data);
+ p = p.next;
+ }
+
+ this._readableState.buffer.clear();
+
+ if (content !== '') this._readableState.buffer.push(content);
+ this._readableState.length = content.length;
+ return this;
+}; // Don't raise the hwm > 1GB
+
+
+var MAX_HWM = 0x40000000;
+
+function computeNewHighWaterMark(n) {
+ if (n >= MAX_HWM) {
+ // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.
+ n = MAX_HWM;
+ } else {
+ // Get the next highest power of 2 to prevent increasing hwm excessively in
+ // tiny amounts
+ n--;
+ n |= n >>> 1;
+ n |= n >>> 2;
+ n |= n >>> 4;
+ n |= n >>> 8;
+ n |= n >>> 16;
+ n++;
+ }
+
+ return n;
+} // This function is designed to be inlinable, so please take care when making
+// changes to the function body.
+
+
+function howMuchToRead(n, state) {
+ if (n <= 0 || state.length === 0 && state.ended) return 0;
+ if (state.objectMode) return 1;
+
+ if (n !== n) {
+ // Only flow one buffer at a time
+ if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;
+ } // If we're asking for more than the current hwm, then raise the hwm.
+
+
+ if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
+ if (n <= state.length) return n; // Don't have enough
+
+ if (!state.ended) {
+ state.needReadable = true;
+ return 0;
+ }
+
+ return state.length;
+} // you can override either this method, or the async _read(n) below.
+
+
+Readable.prototype.read = function (n) {
+ debug('read', n);
+ n = parseInt(n, 10);
+ var state = this._readableState;
+ var nOrig = n;
+ if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we
+ // already have a bunch of data in the buffer, then just trigger
+ // the 'readable' event and move on.
+
+ if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {
+ debug('read: emitReadable', state.length, state.ended);
+ if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);
+ return null;
+ }
+
+ n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up.
+
+ if (n === 0 && state.ended) {
+ if (state.length === 0) endReadable(this);
+ return null;
+ } // All the actual chunk generation logic needs to be
+ // *below* the call to _read. The reason is that in certain
+ // synthetic stream cases, such as passthrough streams, _read
+ // may be a completely synchronous operation which may change
+ // the state of the read buffer, providing enough data when
+ // before there was *not* enough.
+ //
+ // So, the steps are:
+ // 1. Figure out what the state of things will be after we do
+ // a read from the buffer.
+ //
+ // 2. If that resulting state will trigger a _read, then call _read.
+ // Note that this may be asynchronous, or synchronous. Yes, it is
+ // deeply ugly to write APIs this way, but that still doesn't mean
+ // that the Readable class should behave improperly, as streams are
+ // designed to be sync/async agnostic.
+ // Take note if the _read call is sync or async (ie, if the read call
+ // has returned yet), so that we know whether or not it's safe to emit
+ // 'readable' etc.
+ //
+ // 3. Actually pull the requested chunks out of the buffer and return.
+ // if we need a readable event, then we need to do some reading.
+
+
+ var doRead = state.needReadable;
+ debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some
+
+ if (state.length === 0 || state.length - n < state.highWaterMark) {
+ doRead = true;
+ debug('length less than watermark', doRead);
+ } // however, if we've ended, then there's no point, and if we're already
+ // reading, then it's unnecessary.
+
+
+ if (state.ended || state.reading) {
+ doRead = false;
+ debug('reading or ended', doRead);
+ } else if (doRead) {
+ debug('do read');
+ state.reading = true;
+ state.sync = true; // if the length is currently zero, then we *need* a readable event.
+
+ if (state.length === 0) state.needReadable = true; // call internal read method
+
+ this._read(state.highWaterMark);
+
+ state.sync = false; // If _read pushed data synchronously, then `reading` will be false,
+ // and we need to re-evaluate how much data we can return to the user.
+
+ if (!state.reading) n = howMuchToRead(nOrig, state);
+ }
+
+ var ret;
+ if (n > 0) ret = fromList(n, state);else ret = null;
+
+ if (ret === null) {
+ state.needReadable = state.length <= state.highWaterMark;
+ n = 0;
+ } else {
+ state.length -= n;
+ state.awaitDrain = 0;
+ }
+
+ if (state.length === 0) {
+ // If we have nothing in the buffer, then we want to know
+ // as soon as we *do* get something into the buffer.
+ if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick.
+
+ if (nOrig !== n && state.ended) endReadable(this);
+ }
+
+ if (ret !== null) this.emit('data', ret);
+ return ret;
+};
+
+function onEofChunk(stream, state) {
+ debug('onEofChunk');
+ if (state.ended) return;
+
+ if (state.decoder) {
+ var chunk = state.decoder.end();
+
+ if (chunk && chunk.length) {
+ state.buffer.push(chunk);
+ state.length += state.objectMode ? 1 : chunk.length;
+ }
+ }
+
+ state.ended = true;
+
+ if (state.sync) {
+ // if we are sync, wait until next tick to emit the data.
+ // Otherwise we risk emitting data in the flow()
+ // the readable code triggers during a read() call
+ emitReadable(stream);
+ } else {
+ // emit 'readable' now to make sure it gets picked up.
+ state.needReadable = false;
+
+ if (!state.emittedReadable) {
+ state.emittedReadable = true;
+ emitReadable_(stream);
+ }
+ }
+} // Don't emit readable right away in sync mode, because this can trigger
+// another read() call => stack overflow. This way, it might trigger
+// a nextTick recursion warning, but that's not so bad.
+
+
+function emitReadable(stream) {
+ var state = stream._readableState;
+ debug('emitReadable', state.needReadable, state.emittedReadable);
+ state.needReadable = false;
+
+ if (!state.emittedReadable) {
+ debug('emitReadable', state.flowing);
+ state.emittedReadable = true;
+ process.nextTick(emitReadable_, stream);
+ }
+}
+
+function emitReadable_(stream) {
+ var state = stream._readableState;
+ debug('emitReadable_', state.destroyed, state.length, state.ended);
+
+ if (!state.destroyed && (state.length || state.ended)) {
+ stream.emit('readable');
+ state.emittedReadable = false;
+ } // The stream needs another readable event if
+ // 1. It is not flowing, as the flow mechanism will take
+ // care of it.
+ // 2. It is not ended.
+ // 3. It is below the highWaterMark, so we can schedule
+ // another readable later.
+
+
+ state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;
+ flow(stream);
+} // at this point, the user has presumably seen the 'readable' event,
+// and called read() to consume some data. that may have triggered
+// in turn another _read(n) call, in which case reading = true if
+// it's in progress.
+// However, if we're not ended, or reading, and the length < hwm,
+// then go ahead and try to read some more preemptively.
+
+
+function maybeReadMore(stream, state) {
+ if (!state.readingMore) {
+ state.readingMore = true;
+ process.nextTick(maybeReadMore_, stream, state);
+ }
+}
+
+function maybeReadMore_(stream, state) {
+ // Attempt to read more data if we should.
+ //
+ // The conditions for reading more data are (one of):
+ // - Not enough data buffered (state.length < state.highWaterMark). The loop
+ // is responsible for filling the buffer with enough data if such data
+ // is available. If highWaterMark is 0 and we are not in the flowing mode
+ // we should _not_ attempt to buffer any extra data. We'll get more data
+ // when the stream consumer calls read() instead.
+ // - No data in the buffer, and the stream is in flowing mode. In this mode
+ // the loop below is responsible for ensuring read() is called. Failing to
+ // call read here would abort the flow and there's no other mechanism for
+ // continuing the flow if the stream consumer has just subscribed to the
+ // 'data' event.
+ //
+ // In addition to the above conditions to keep reading data, the following
+ // conditions prevent the data from being read:
+ // - The stream has ended (state.ended).
+ // - There is already a pending 'read' operation (state.reading). This is a
+ // case where the the stream has called the implementation defined _read()
+ // method, but they are processing the call asynchronously and have _not_
+ // called push() with new data. In this case we skip performing more
+ // read()s. The execution ends in this method again after the _read() ends
+ // up calling push() with more data.
+ while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {
+ var len = state.length;
+ debug('maybeReadMore read 0');
+ stream.read(0);
+ if (len === state.length) // didn't get any data, stop spinning.
+ break;
+ }
+
+ state.readingMore = false;
+} // abstract method. to be overridden in specific implementation classes.
+// call cb(er, data) where data is <= n in length.
+// for virtual (non-string, non-buffer) streams, "length" is somewhat
+// arbitrary, and perhaps not very meaningful.
+
+
+Readable.prototype._read = function (n) {
+ errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));
+};
+
+Readable.prototype.pipe = function (dest, pipeOpts) {
+ var src = this;
+ var state = this._readableState;
+
+ switch (state.pipesCount) {
+ case 0:
+ state.pipes = dest;
+ break;
+
+ case 1:
+ state.pipes = [state.pipes, dest];
+ break;
+
+ default:
+ state.pipes.push(dest);
+ break;
+ }
+
+ state.pipesCount += 1;
+ debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);
+ var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;
+ var endFn = doEnd ? onend : unpipe;
+ if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);
+ dest.on('unpipe', onunpipe);
+
+ function onunpipe(readable, unpipeInfo) {
+ debug('onunpipe');
+
+ if (readable === src) {
+ if (unpipeInfo && unpipeInfo.hasUnpiped === false) {
+ unpipeInfo.hasUnpiped = true;
+ cleanup();
+ }
+ }
+ }
+
+ function onend() {
+ debug('onend');
+ dest.end();
+ } // when the dest drains, it reduces the awaitDrain counter
+ // on the source. This would be more elegant with a .once()
+ // handler in flow(), but adding and removing repeatedly is
+ // too slow.
+
+
+ var ondrain = pipeOnDrain(src);
+ dest.on('drain', ondrain);
+ var cleanedUp = false;
+
+ function cleanup() {
+ debug('cleanup'); // cleanup event handlers once the pipe is broken
+
+ dest.removeListener('close', onclose);
+ dest.removeListener('finish', onfinish);
+ dest.removeListener('drain', ondrain);
+ dest.removeListener('error', onerror);
+ dest.removeListener('unpipe', onunpipe);
+ src.removeListener('end', onend);
+ src.removeListener('end', unpipe);
+ src.removeListener('data', ondata);
+ cleanedUp = true; // if the reader is waiting for a drain event from this
+ // specific writer, then it would cause it to never start
+ // flowing again.
+ // So, if this is awaiting a drain, then we just call it now.
+ // If we don't know, then assume that we are waiting for one.
+
+ if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();
+ }
+
+ src.on('data', ondata);
+
+ function ondata(chunk) {
+ debug('ondata');
+ var ret = dest.write(chunk);
+ debug('dest.write', ret);
+
+ if (ret === false) {
+ // If the user unpiped during `dest.write()`, it is possible
+ // to get stuck in a permanently paused state if that write
+ // also returned false.
+ // => Check whether `dest` is still a piping destination.
+ if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {
+ debug('false write response, pause', state.awaitDrain);
+ state.awaitDrain++;
+ }
+
+ src.pause();
+ }
+ } // if the dest has an error, then stop piping into it.
+ // however, don't suppress the throwing behavior for this.
+
+
+ function onerror(er) {
+ debug('onerror', er);
+ unpipe();
+ dest.removeListener('error', onerror);
+ if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);
+ } // Make sure our error handler is attached before userland ones.
+
+
+ prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once.
+
+ function onclose() {
+ dest.removeListener('finish', onfinish);
+ unpipe();
+ }
+
+ dest.once('close', onclose);
+
+ function onfinish() {
+ debug('onfinish');
+ dest.removeListener('close', onclose);
+ unpipe();
+ }
+
+ dest.once('finish', onfinish);
+
+ function unpipe() {
+ debug('unpipe');
+ src.unpipe(dest);
+ } // tell the dest that it's being piped to
+
+
+ dest.emit('pipe', src); // start the flow if it hasn't been started already.
+
+ if (!state.flowing) {
+ debug('pipe resume');
+ src.resume();
+ }
+
+ return dest;
+};
+
+function pipeOnDrain(src) {
+ return function pipeOnDrainFunctionResult() {
+ var state = src._readableState;
+ debug('pipeOnDrain', state.awaitDrain);
+ if (state.awaitDrain) state.awaitDrain--;
+
+ if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
+ state.flowing = true;
+ flow(src);
+ }
+ };
+}
+
+Readable.prototype.unpipe = function (dest) {
+ var state = this._readableState;
+ var unpipeInfo = {
+ hasUnpiped: false
+ }; // if we're not piping anywhere, then do nothing.
+
+ if (state.pipesCount === 0) return this; // just one destination. most common case.
+
+ if (state.pipesCount === 1) {
+ // passed in one, but it's not the right one.
+ if (dest && dest !== state.pipes) return this;
+ if (!dest) dest = state.pipes; // got a match.
+
+ state.pipes = null;
+ state.pipesCount = 0;
+ state.flowing = false;
+ if (dest) dest.emit('unpipe', this, unpipeInfo);
+ return this;
+ } // slow case. multiple pipe destinations.
+
+
+ if (!dest) {
+ // remove all.
+ var dests = state.pipes;
+ var len = state.pipesCount;
+ state.pipes = null;
+ state.pipesCount = 0;
+ state.flowing = false;
+
+ for (var i = 0; i < len; i++) {
+ dests[i].emit('unpipe', this, {
+ hasUnpiped: false
+ });
+ }
+
+ return this;
+ } // try to find the right one.
+
+
+ var index = indexOf(state.pipes, dest);
+ if (index === -1) return this;
+ state.pipes.splice(index, 1);
+ state.pipesCount -= 1;
+ if (state.pipesCount === 1) state.pipes = state.pipes[0];
+ dest.emit('unpipe', this, unpipeInfo);
+ return this;
+}; // set up data events if they are asked for
+// Ensure readable listeners eventually get something
+
+
+Readable.prototype.on = function (ev, fn) {
+ var res = Stream.prototype.on.call(this, ev, fn);
+ var state = this._readableState;
+
+ if (ev === 'data') {
+ // update readableListening so that resume() may be a no-op
+ // a few lines down. This is needed to support once('readable').
+ state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused
+
+ if (state.flowing !== false) this.resume();
+ } else if (ev === 'readable') {
+ if (!state.endEmitted && !state.readableListening) {
+ state.readableListening = state.needReadable = true;
+ state.flowing = false;
+ state.emittedReadable = false;
+ debug('on readable', state.length, state.reading);
+
+ if (state.length) {
+ emitReadable(this);
+ } else if (!state.reading) {
+ process.nextTick(nReadingNextTick, this);
+ }
+ }
+ }
+
+ return res;
+};
+
+Readable.prototype.addListener = Readable.prototype.on;
+
+Readable.prototype.removeListener = function (ev, fn) {
+ var res = Stream.prototype.removeListener.call(this, ev, fn);
+
+ if (ev === 'readable') {
+ // We need to check if there is someone still listening to
+ // readable and reset the state. However this needs to happen
+ // after readable has been emitted but before I/O (nextTick) to
+ // support once('readable', fn) cycles. This means that calling
+ // resume within the same tick will have no
+ // effect.
+ process.nextTick(updateReadableListening, this);
+ }
+
+ return res;
+};
+
+Readable.prototype.removeAllListeners = function (ev) {
+ var res = Stream.prototype.removeAllListeners.apply(this, arguments);
+
+ if (ev === 'readable' || ev === undefined) {
+ // We need to check if there is someone still listening to
+ // readable and reset the state. However this needs to happen
+ // after readable has been emitted but before I/O (nextTick) to
+ // support once('readable', fn) cycles. This means that calling
+ // resume within the same tick will have no
+ // effect.
+ process.nextTick(updateReadableListening, this);
+ }
+
+ return res;
+};
+
+function updateReadableListening(self) {
+ var state = self._readableState;
+ state.readableListening = self.listenerCount('readable') > 0;
+
+ if (state.resumeScheduled && !state.paused) {
+ // flowing needs to be set to true now, otherwise
+ // the upcoming resume will not flow.
+ state.flowing = true; // crude way to check if we should resume
+ } else if (self.listenerCount('data') > 0) {
+ self.resume();
+ }
+}
+
+function nReadingNextTick(self) {
+ debug('readable nexttick read 0');
+ self.read(0);
+} // pause() and resume() are remnants of the legacy readable stream API
+// If the user uses them, then switch into old mode.
+
+
+Readable.prototype.resume = function () {
+ var state = this._readableState;
+
+ if (!state.flowing) {
+ debug('resume'); // we flow only if there is no one listening
+ // for readable, but we still have to call
+ // resume()
+
+ state.flowing = !state.readableListening;
+ resume(this, state);
+ }
+
+ state.paused = false;
+ return this;
+};
+
+function resume(stream, state) {
+ if (!state.resumeScheduled) {
+ state.resumeScheduled = true;
+ process.nextTick(resume_, stream, state);
+ }
+}
+
+function resume_(stream, state) {
+ debug('resume', state.reading);
+
+ if (!state.reading) {
+ stream.read(0);
+ }
+
+ state.resumeScheduled = false;
+ stream.emit('resume');
+ flow(stream);
+ if (state.flowing && !state.reading) stream.read(0);
+}
+
+Readable.prototype.pause = function () {
+ debug('call pause flowing=%j', this._readableState.flowing);
+
+ if (this._readableState.flowing !== false) {
+ debug('pause');
+ this._readableState.flowing = false;
+ this.emit('pause');
+ }
+
+ this._readableState.paused = true;
+ return this;
+};
+
+function flow(stream) {
+ var state = stream._readableState;
+ debug('flow', state.flowing);
+
+ while (state.flowing && stream.read() !== null) {
+ ;
+ }
+} // wrap an old-style stream as the async data source.
+// This is *not* part of the readable stream interface.
+// It is an ugly unfortunate mess of history.
+
+
+Readable.prototype.wrap = function (stream) {
+ var _this = this;
+
+ var state = this._readableState;
+ var paused = false;
+ stream.on('end', function () {
+ debug('wrapped end');
+
+ if (state.decoder && !state.ended) {
+ var chunk = state.decoder.end();
+ if (chunk && chunk.length) _this.push(chunk);
+ }
+
+ _this.push(null);
+ });
+ stream.on('data', function (chunk) {
+ debug('wrapped data');
+ if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode
+
+ if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;
+
+ var ret = _this.push(chunk);
+
+ if (!ret) {
+ paused = true;
+ stream.pause();
+ }
+ }); // proxy all the other methods.
+ // important when wrapping filters and duplexes.
+
+ for (var i in stream) {
+ if (this[i] === undefined && typeof stream[i] === 'function') {
+ this[i] = function methodWrap(method) {
+ return function methodWrapReturnFunction() {
+ return stream[method].apply(stream, arguments);
+ };
+ }(i);
+ }
+ } // proxy certain important events.
+
+
+ for (var n = 0; n < kProxyEvents.length; n++) {
+ stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));
+ } // when we try to consume some more bytes, simply unpause the
+ // underlying stream.
+
+
+ this._read = function (n) {
+ debug('wrapped _read', n);
+
+ if (paused) {
+ paused = false;
+ stream.resume();
+ }
+ };
+
+ return this;
+};
+
+if (typeof Symbol === 'function') {
+ Readable.prototype[Symbol.asyncIterator] = function () {
+ if (createReadableStreamAsyncIterator === undefined) {
+ createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');
+ }
+
+ return createReadableStreamAsyncIterator(this);
+ };
+}
+
+Object.defineProperty(Readable.prototype, 'readableHighWaterMark', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._readableState.highWaterMark;
+ }
+});
+Object.defineProperty(Readable.prototype, 'readableBuffer', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._readableState && this._readableState.buffer;
+ }
+});
+Object.defineProperty(Readable.prototype, 'readableFlowing', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._readableState.flowing;
+ },
+ set: function set(state) {
+ if (this._readableState) {
+ this._readableState.flowing = state;
+ }
+ }
+}); // exposed for testing purposes only.
+
+Readable._fromList = fromList;
+Object.defineProperty(Readable.prototype, 'readableLength', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._readableState.length;
+ }
+}); // Pluck off n bytes from an array of buffers.
+// Length is the combined lengths of all the buffers in the list.
+// This function is designed to be inlinable, so please take care when making
+// changes to the function body.
+
+function fromList(n, state) {
+ // nothing buffered
+ if (state.length === 0) return null;
+ var ret;
+ if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {
+ // read it all, truncate the list
+ if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);
+ state.buffer.clear();
+ } else {
+ // read part of list
+ ret = state.buffer.consume(n, state.decoder);
+ }
+ return ret;
+}
+
+function endReadable(stream) {
+ var state = stream._readableState;
+ debug('endReadable', state.endEmitted);
+
+ if (!state.endEmitted) {
+ state.ended = true;
+ process.nextTick(endReadableNT, state, stream);
+ }
+}
+
+function endReadableNT(state, stream) {
+ debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift.
+
+ if (!state.endEmitted && state.length === 0) {
+ state.endEmitted = true;
+ stream.readable = false;
+ stream.emit('end');
+
+ if (state.autoDestroy) {
+ // In case of duplex streams we need a way to detect
+ // if the writable side is ready for autoDestroy as well
+ var wState = stream._writableState;
+
+ if (!wState || wState.autoDestroy && wState.finished) {
+ stream.destroy();
+ }
+ }
+ }
+}
+
+if (typeof Symbol === 'function') {
+ Readable.from = function (iterable, opts) {
+ if (from === undefined) {
+ from = require('./internal/streams/from');
+ }
+
+ return from(Readable, iterable, opts);
+ };
+}
+
+function indexOf(xs, x) {
+ for (var i = 0, l = xs.length; i < l; i++) {
+ if (xs[i] === x) return i;
+ }
+
+ return -1;
+}
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/_stream_transform.js b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_transform.js
new file mode 100644
index 00000000..41a738c4
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_transform.js
@@ -0,0 +1,201 @@
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// 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.
+// a transform stream is a readable/writable stream where you do
+// something with the data. Sometimes it's called a "filter",
+// but that's not a great name for it, since that implies a thing where
+// some bits pass through, and others are simply ignored. (That would
+// be a valid example of a transform, of course.)
+//
+// While the output is causally related to the input, it's not a
+// necessarily symmetric or synchronous transformation. For example,
+// a zlib stream might take multiple plain-text writes(), and then
+// emit a single compressed chunk some time in the future.
+//
+// Here's how this works:
+//
+// The Transform stream has all the aspects of the readable and writable
+// stream classes. When you write(chunk), that calls _write(chunk,cb)
+// internally, and returns false if there's a lot of pending writes
+// buffered up. When you call read(), that calls _read(n) until
+// there's enough pending readable data buffered up.
+//
+// In a transform stream, the written data is placed in a buffer. When
+// _read(n) is called, it transforms the queued up data, calling the
+// buffered _write cb's as it consumes chunks. If consuming a single
+// written chunk would result in multiple output chunks, then the first
+// outputted bit calls the readcb, and subsequent chunks just go into
+// the read buffer, and will cause it to emit 'readable' if necessary.
+//
+// This way, back-pressure is actually determined by the reading side,
+// since _read has to be called to start processing a new chunk. However,
+// a pathological inflate type of transform can cause excessive buffering
+// here. For example, imagine a stream where every byte of input is
+// interpreted as an integer from 0-255, and then results in that many
+// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in
+// 1kb of data being output. In this case, you could write a very small
+// amount of input, and end up with a very large amount of output. In
+// such a pathological inflating mechanism, there'd be no way to tell
+// the system to stop doing the transform. A single 4MB write could
+// cause the system to run out of memory.
+//
+// However, even in such a pathological case, only a single written chunk
+// would be consumed, and then the rest would wait (un-transformed) until
+// the results of the previous transformed chunk were consumed.
+'use strict';
+
+module.exports = Transform;
+
+var _require$codes = require('../errors').codes,
+ ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
+ ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
+ ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,
+ ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;
+
+var Duplex = require('./_stream_duplex');
+
+require('inherits')(Transform, Duplex);
+
+function afterTransform(er, data) {
+ var ts = this._transformState;
+ ts.transforming = false;
+ var cb = ts.writecb;
+
+ if (cb === null) {
+ return this.emit('error', new ERR_MULTIPLE_CALLBACK());
+ }
+
+ ts.writechunk = null;
+ ts.writecb = null;
+ if (data != null) // single equals check for both `null` and `undefined`
+ this.push(data);
+ cb(er);
+ var rs = this._readableState;
+ rs.reading = false;
+
+ if (rs.needReadable || rs.length < rs.highWaterMark) {
+ this._read(rs.highWaterMark);
+ }
+}
+
+function Transform(options) {
+ if (!(this instanceof Transform)) return new Transform(options);
+ Duplex.call(this, options);
+ this._transformState = {
+ afterTransform: afterTransform.bind(this),
+ needTransform: false,
+ transforming: false,
+ writecb: null,
+ writechunk: null,
+ writeencoding: null
+ }; // start out asking for a readable event once data is transformed.
+
+ this._readableState.needReadable = true; // we have implemented the _read method, and done the other things
+ // that Readable wants before the first _read call, so unset the
+ // sync guard flag.
+
+ this._readableState.sync = false;
+
+ if (options) {
+ if (typeof options.transform === 'function') this._transform = options.transform;
+ if (typeof options.flush === 'function') this._flush = options.flush;
+ } // When the writable side finishes, then flush out anything remaining.
+
+
+ this.on('prefinish', prefinish);
+}
+
+function prefinish() {
+ var _this = this;
+
+ if (typeof this._flush === 'function' && !this._readableState.destroyed) {
+ this._flush(function (er, data) {
+ done(_this, er, data);
+ });
+ } else {
+ done(this, null, null);
+ }
+}
+
+Transform.prototype.push = function (chunk, encoding) {
+ this._transformState.needTransform = false;
+ return Duplex.prototype.push.call(this, chunk, encoding);
+}; // This is the part where you do stuff!
+// override this function in implementation classes.
+// 'chunk' is an input chunk.
+//
+// Call `push(newChunk)` to pass along transformed output
+// to the readable side. You may call 'push' zero or more times.
+//
+// Call `cb(err)` when you are done with this chunk. If you pass
+// an error, then that'll put the hurt on the whole operation. If you
+// never call cb(), then you'll never get another chunk.
+
+
+Transform.prototype._transform = function (chunk, encoding, cb) {
+ cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));
+};
+
+Transform.prototype._write = function (chunk, encoding, cb) {
+ var ts = this._transformState;
+ ts.writecb = cb;
+ ts.writechunk = chunk;
+ ts.writeencoding = encoding;
+
+ if (!ts.transforming) {
+ var rs = this._readableState;
+ if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);
+ }
+}; // Doesn't matter what the args are here.
+// _transform does all the work.
+// That we got here means that the readable side wants more data.
+
+
+Transform.prototype._read = function (n) {
+ var ts = this._transformState;
+
+ if (ts.writechunk !== null && !ts.transforming) {
+ ts.transforming = true;
+
+ this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);
+ } else {
+ // mark that we need a transform, so that any data that comes in
+ // will get processed, now that we've asked for it.
+ ts.needTransform = true;
+ }
+};
+
+Transform.prototype._destroy = function (err, cb) {
+ Duplex.prototype._destroy.call(this, err, function (err2) {
+ cb(err2);
+ });
+};
+
+function done(stream, er, data) {
+ if (er) return stream.emit('error', er);
+ if (data != null) // single equals check for both `null` and `undefined`
+ stream.push(data); // TODO(BridgeAR): Write a test for these two error cases
+ // if there's nothing in the write buffer, then that means
+ // that nothing more will ever be provided
+
+ if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();
+ if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();
+ return stream.push(null);
+}
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/_stream_writable.js b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_writable.js
new file mode 100644
index 00000000..a2634d7c
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/_stream_writable.js
@@ -0,0 +1,697 @@
+// Copyright Joyent, Inc. and other Node contributors.
+//
+// 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.
+// A bit simpler than readable streams.
+// Implement an async ._write(chunk, encoding, cb), and it'll handle all
+// the drain event emission and buffering.
+'use strict';
+
+module.exports = Writable;
+/* */
+
+function WriteReq(chunk, encoding, cb) {
+ this.chunk = chunk;
+ this.encoding = encoding;
+ this.callback = cb;
+ this.next = null;
+} // It seems a linked list but it is not
+// there will be only 2 of these for each stream
+
+
+function CorkedRequest(state) {
+ var _this = this;
+
+ this.next = null;
+ this.entry = null;
+
+ this.finish = function () {
+ onCorkedFinish(_this, state);
+ };
+}
+/* */
+
+/**/
+
+
+var Duplex;
+/* */
+
+Writable.WritableState = WritableState;
+/**/
+
+var internalUtil = {
+ deprecate: require('util-deprecate')
+};
+/* */
+
+/**/
+
+var Stream = require('./internal/streams/stream');
+/* */
+
+
+var Buffer = require('buffer').Buffer;
+
+var OurUint8Array = global.Uint8Array || function () {};
+
+function _uint8ArrayToBuffer(chunk) {
+ return Buffer.from(chunk);
+}
+
+function _isUint8Array(obj) {
+ return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;
+}
+
+var destroyImpl = require('./internal/streams/destroy');
+
+var _require = require('./internal/streams/state'),
+ getHighWaterMark = _require.getHighWaterMark;
+
+var _require$codes = require('../errors').codes,
+ ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,
+ ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,
+ ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,
+ ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,
+ ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,
+ ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,
+ ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,
+ ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;
+
+var errorOrDestroy = destroyImpl.errorOrDestroy;
+
+require('inherits')(Writable, Stream);
+
+function nop() {}
+
+function WritableState(options, stream, isDuplex) {
+ Duplex = Duplex || require('./_stream_duplex');
+ options = options || {}; // Duplex streams are both readable and writable, but share
+ // the same options object.
+ // However, some cases require setting options to different
+ // values for the readable and the writable sides of the duplex stream,
+ // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.
+
+ if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream
+ // contains buffers or objects.
+
+ this.objectMode = !!options.objectMode;
+ if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false
+ // Note: 0 is a valid value, means that we always return false if
+ // the entire buffer is not flushed immediately on write()
+
+ this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called
+
+ this.finalCalled = false; // drain event flag.
+
+ this.needDrain = false; // at the start of calling end()
+
+ this.ending = false; // when end() has been called, and returned
+
+ this.ended = false; // when 'finish' is emitted
+
+ this.finished = false; // has it been destroyed
+
+ this.destroyed = false; // should we decode strings into buffers before passing to _write?
+ // this is here so that some node-core streams can optimize string
+ // handling at a lower level.
+
+ var noDecode = options.decodeStrings === false;
+ this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string
+ // encoding is 'binary' so we have to make this configurable.
+ // Everything else in the universe uses 'utf8', though.
+
+ this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement
+ // of how much we're waiting to get pushed to some underlying
+ // socket or file.
+
+ this.length = 0; // a flag to see when we're in the middle of a write.
+
+ this.writing = false; // when true all writes will be buffered until .uncork() call
+
+ this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately,
+ // or on a later tick. We set this to true at first, because any
+ // actions that shouldn't happen until "later" should generally also
+ // not happen before the first write call.
+
+ this.sync = true; // a flag to know if we're processing previously buffered items, which
+ // may call the _write() callback in the same tick, so that we don't
+ // end up in an overlapped onwrite situation.
+
+ this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb)
+
+ this.onwrite = function (er) {
+ onwrite(stream, er);
+ }; // the callback that the user supplies to write(chunk,encoding,cb)
+
+
+ this.writecb = null; // the amount that is being written when _write is called.
+
+ this.writelen = 0;
+ this.bufferedRequest = null;
+ this.lastBufferedRequest = null; // number of pending user-supplied write callbacks
+ // this must be 0 before 'finish' can be emitted
+
+ this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs
+ // This is relevant for synchronous Transform streams
+
+ this.prefinished = false; // True if the error was already emitted and should not be thrown again
+
+ this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true.
+
+ this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end')
+
+ this.autoDestroy = !!options.autoDestroy; // count buffered requests
+
+ this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always
+ // one allocated and free to use, and we maintain at most two
+
+ this.corkedRequestsFree = new CorkedRequest(this);
+}
+
+WritableState.prototype.getBuffer = function getBuffer() {
+ var current = this.bufferedRequest;
+ var out = [];
+
+ while (current) {
+ out.push(current);
+ current = current.next;
+ }
+
+ return out;
+};
+
+(function () {
+ try {
+ Object.defineProperty(WritableState.prototype, 'buffer', {
+ get: internalUtil.deprecate(function writableStateBufferGetter() {
+ return this.getBuffer();
+ }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')
+ });
+ } catch (_) {}
+})(); // Test _writableState for inheritance to account for Duplex streams,
+// whose prototype chain only points to Readable.
+
+
+var realHasInstance;
+
+if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {
+ realHasInstance = Function.prototype[Symbol.hasInstance];
+ Object.defineProperty(Writable, Symbol.hasInstance, {
+ value: function value(object) {
+ if (realHasInstance.call(this, object)) return true;
+ if (this !== Writable) return false;
+ return object && object._writableState instanceof WritableState;
+ }
+ });
+} else {
+ realHasInstance = function realHasInstance(object) {
+ return object instanceof this;
+ };
+}
+
+function Writable(options) {
+ Duplex = Duplex || require('./_stream_duplex'); // Writable ctor is applied to Duplexes, too.
+ // `realHasInstance` is necessary because using plain `instanceof`
+ // would return false, as no `_writableState` property is attached.
+ // Trying to use the custom `instanceof` for Writable here will also break the
+ // Node.js LazyTransform implementation, which has a non-trivial getter for
+ // `_writableState` that would lead to infinite recursion.
+ // Checking for a Stream.Duplex instance is faster here instead of inside
+ // the WritableState constructor, at least with V8 6.5
+
+ var isDuplex = this instanceof Duplex;
+ if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);
+ this._writableState = new WritableState(options, this, isDuplex); // legacy.
+
+ this.writable = true;
+
+ if (options) {
+ if (typeof options.write === 'function') this._write = options.write;
+ if (typeof options.writev === 'function') this._writev = options.writev;
+ if (typeof options.destroy === 'function') this._destroy = options.destroy;
+ if (typeof options.final === 'function') this._final = options.final;
+ }
+
+ Stream.call(this);
+} // Otherwise people can pipe Writable streams, which is just wrong.
+
+
+Writable.prototype.pipe = function () {
+ errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());
+};
+
+function writeAfterEnd(stream, cb) {
+ var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb
+
+ errorOrDestroy(stream, er);
+ process.nextTick(cb, er);
+} // Checks that a user-supplied chunk is valid, especially for the particular
+// mode the stream is in. Currently this means that `null` is never accepted
+// and undefined/non-string values are only allowed in object mode.
+
+
+function validChunk(stream, state, chunk, cb) {
+ var er;
+
+ if (chunk === null) {
+ er = new ERR_STREAM_NULL_VALUES();
+ } else if (typeof chunk !== 'string' && !state.objectMode) {
+ er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);
+ }
+
+ if (er) {
+ errorOrDestroy(stream, er);
+ process.nextTick(cb, er);
+ return false;
+ }
+
+ return true;
+}
+
+Writable.prototype.write = function (chunk, encoding, cb) {
+ var state = this._writableState;
+ var ret = false;
+
+ var isBuf = !state.objectMode && _isUint8Array(chunk);
+
+ if (isBuf && !Buffer.isBuffer(chunk)) {
+ chunk = _uint8ArrayToBuffer(chunk);
+ }
+
+ if (typeof encoding === 'function') {
+ cb = encoding;
+ encoding = null;
+ }
+
+ if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;
+ if (typeof cb !== 'function') cb = nop;
+ if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {
+ state.pendingcb++;
+ ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);
+ }
+ return ret;
+};
+
+Writable.prototype.cork = function () {
+ this._writableState.corked++;
+};
+
+Writable.prototype.uncork = function () {
+ var state = this._writableState;
+
+ if (state.corked) {
+ state.corked--;
+ if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);
+ }
+};
+
+Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
+ // node::ParseEncoding() requires lower case.
+ if (typeof encoding === 'string') encoding = encoding.toLowerCase();
+ if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);
+ this._writableState.defaultEncoding = encoding;
+ return this;
+};
+
+Object.defineProperty(Writable.prototype, 'writableBuffer', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState && this._writableState.getBuffer();
+ }
+});
+
+function decodeChunk(state, chunk, encoding) {
+ if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {
+ chunk = Buffer.from(chunk, encoding);
+ }
+
+ return chunk;
+}
+
+Object.defineProperty(Writable.prototype, 'writableHighWaterMark', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState.highWaterMark;
+ }
+}); // if we're already writing something, then just put this
+// in the queue, and wait our turn. Otherwise, call _write
+// If we return false, then we need a drain event, so set that flag.
+
+function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {
+ if (!isBuf) {
+ var newChunk = decodeChunk(state, chunk, encoding);
+
+ if (chunk !== newChunk) {
+ isBuf = true;
+ encoding = 'buffer';
+ chunk = newChunk;
+ }
+ }
+
+ var len = state.objectMode ? 1 : chunk.length;
+ state.length += len;
+ var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false.
+
+ if (!ret) state.needDrain = true;
+
+ if (state.writing || state.corked) {
+ var last = state.lastBufferedRequest;
+ state.lastBufferedRequest = {
+ chunk: chunk,
+ encoding: encoding,
+ isBuf: isBuf,
+ callback: cb,
+ next: null
+ };
+
+ if (last) {
+ last.next = state.lastBufferedRequest;
+ } else {
+ state.bufferedRequest = state.lastBufferedRequest;
+ }
+
+ state.bufferedRequestCount += 1;
+ } else {
+ doWrite(stream, state, false, len, chunk, encoding, cb);
+ }
+
+ return ret;
+}
+
+function doWrite(stream, state, writev, len, chunk, encoding, cb) {
+ state.writelen = len;
+ state.writecb = cb;
+ state.writing = true;
+ state.sync = true;
+ if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);
+ state.sync = false;
+}
+
+function onwriteError(stream, state, sync, er, cb) {
+ --state.pendingcb;
+
+ if (sync) {
+ // defer the callback if we are being called synchronously
+ // to avoid piling up things on the stack
+ process.nextTick(cb, er); // this can emit finish, and it will always happen
+ // after error
+
+ process.nextTick(finishMaybe, stream, state);
+ stream._writableState.errorEmitted = true;
+ errorOrDestroy(stream, er);
+ } else {
+ // the caller expect this to happen before if
+ // it is async
+ cb(er);
+ stream._writableState.errorEmitted = true;
+ errorOrDestroy(stream, er); // this can emit finish, but finish must
+ // always follow error
+
+ finishMaybe(stream, state);
+ }
+}
+
+function onwriteStateUpdate(state) {
+ state.writing = false;
+ state.writecb = null;
+ state.length -= state.writelen;
+ state.writelen = 0;
+}
+
+function onwrite(stream, er) {
+ var state = stream._writableState;
+ var sync = state.sync;
+ var cb = state.writecb;
+ if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();
+ onwriteStateUpdate(state);
+ if (er) onwriteError(stream, state, sync, er, cb);else {
+ // Check if we're actually ready to finish, but don't emit yet
+ var finished = needFinish(state) || stream.destroyed;
+
+ if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {
+ clearBuffer(stream, state);
+ }
+
+ if (sync) {
+ process.nextTick(afterWrite, stream, state, finished, cb);
+ } else {
+ afterWrite(stream, state, finished, cb);
+ }
+ }
+}
+
+function afterWrite(stream, state, finished, cb) {
+ if (!finished) onwriteDrain(stream, state);
+ state.pendingcb--;
+ cb();
+ finishMaybe(stream, state);
+} // Must force callback to be called on nextTick, so that we don't
+// emit 'drain' before the write() consumer gets the 'false' return
+// value, and has a chance to attach a 'drain' listener.
+
+
+function onwriteDrain(stream, state) {
+ if (state.length === 0 && state.needDrain) {
+ state.needDrain = false;
+ stream.emit('drain');
+ }
+} // if there's something in the buffer waiting, then process it
+
+
+function clearBuffer(stream, state) {
+ state.bufferProcessing = true;
+ var entry = state.bufferedRequest;
+
+ if (stream._writev && entry && entry.next) {
+ // Fast case, write everything using _writev()
+ var l = state.bufferedRequestCount;
+ var buffer = new Array(l);
+ var holder = state.corkedRequestsFree;
+ holder.entry = entry;
+ var count = 0;
+ var allBuffers = true;
+
+ while (entry) {
+ buffer[count] = entry;
+ if (!entry.isBuf) allBuffers = false;
+ entry = entry.next;
+ count += 1;
+ }
+
+ buffer.allBuffers = allBuffers;
+ doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time
+ // as the hot path ends with doWrite
+
+ state.pendingcb++;
+ state.lastBufferedRequest = null;
+
+ if (holder.next) {
+ state.corkedRequestsFree = holder.next;
+ holder.next = null;
+ } else {
+ state.corkedRequestsFree = new CorkedRequest(state);
+ }
+
+ state.bufferedRequestCount = 0;
+ } else {
+ // Slow case, write chunks one-by-one
+ while (entry) {
+ var chunk = entry.chunk;
+ var encoding = entry.encoding;
+ var cb = entry.callback;
+ var len = state.objectMode ? 1 : chunk.length;
+ doWrite(stream, state, false, len, chunk, encoding, cb);
+ entry = entry.next;
+ state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then
+ // it means that we need to wait until it does.
+ // also, that means that the chunk and cb are currently
+ // being processed, so move the buffer counter past them.
+
+ if (state.writing) {
+ break;
+ }
+ }
+
+ if (entry === null) state.lastBufferedRequest = null;
+ }
+
+ state.bufferedRequest = entry;
+ state.bufferProcessing = false;
+}
+
+Writable.prototype._write = function (chunk, encoding, cb) {
+ cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));
+};
+
+Writable.prototype._writev = null;
+
+Writable.prototype.end = function (chunk, encoding, cb) {
+ var state = this._writableState;
+
+ if (typeof chunk === 'function') {
+ cb = chunk;
+ chunk = null;
+ encoding = null;
+ } else if (typeof encoding === 'function') {
+ cb = encoding;
+ encoding = null;
+ }
+
+ if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks
+
+ if (state.corked) {
+ state.corked = 1;
+ this.uncork();
+ } // ignore unnecessary end() calls.
+
+
+ if (!state.ending) endWritable(this, state, cb);
+ return this;
+};
+
+Object.defineProperty(Writable.prototype, 'writableLength', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ return this._writableState.length;
+ }
+});
+
+function needFinish(state) {
+ return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
+}
+
+function callFinal(stream, state) {
+ stream._final(function (err) {
+ state.pendingcb--;
+
+ if (err) {
+ errorOrDestroy(stream, err);
+ }
+
+ state.prefinished = true;
+ stream.emit('prefinish');
+ finishMaybe(stream, state);
+ });
+}
+
+function prefinish(stream, state) {
+ if (!state.prefinished && !state.finalCalled) {
+ if (typeof stream._final === 'function' && !state.destroyed) {
+ state.pendingcb++;
+ state.finalCalled = true;
+ process.nextTick(callFinal, stream, state);
+ } else {
+ state.prefinished = true;
+ stream.emit('prefinish');
+ }
+ }
+}
+
+function finishMaybe(stream, state) {
+ var need = needFinish(state);
+
+ if (need) {
+ prefinish(stream, state);
+
+ if (state.pendingcb === 0) {
+ state.finished = true;
+ stream.emit('finish');
+
+ if (state.autoDestroy) {
+ // In case of duplex streams we need a way to detect
+ // if the readable side is ready for autoDestroy as well
+ var rState = stream._readableState;
+
+ if (!rState || rState.autoDestroy && rState.endEmitted) {
+ stream.destroy();
+ }
+ }
+ }
+ }
+
+ return need;
+}
+
+function endWritable(stream, state, cb) {
+ state.ending = true;
+ finishMaybe(stream, state);
+
+ if (cb) {
+ if (state.finished) process.nextTick(cb);else stream.once('finish', cb);
+ }
+
+ state.ended = true;
+ stream.writable = false;
+}
+
+function onCorkedFinish(corkReq, state, err) {
+ var entry = corkReq.entry;
+ corkReq.entry = null;
+
+ while (entry) {
+ var cb = entry.callback;
+ state.pendingcb--;
+ cb(err);
+ entry = entry.next;
+ } // reuse the free corkReq.
+
+
+ state.corkedRequestsFree.next = corkReq;
+}
+
+Object.defineProperty(Writable.prototype, 'destroyed', {
+ // making it explicit this property is not enumerable
+ // because otherwise some prototype manipulation in
+ // userland will fail
+ enumerable: false,
+ get: function get() {
+ if (this._writableState === undefined) {
+ return false;
+ }
+
+ return this._writableState.destroyed;
+ },
+ set: function set(value) {
+ // we ignore the value if the stream
+ // has not been initialized yet
+ if (!this._writableState) {
+ return;
+ } // backward compatibility, the user is explicitly
+ // managing destroyed
+
+
+ this._writableState.destroyed = value;
+ }
+});
+Writable.prototype.destroy = destroyImpl.destroy;
+Writable.prototype._undestroy = destroyImpl.undestroy;
+
+Writable.prototype._destroy = function (err, cb) {
+ cb(err);
+};
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/async_iterator.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/async_iterator.js
new file mode 100644
index 00000000..9fb615a2
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/async_iterator.js
@@ -0,0 +1,207 @@
+'use strict';
+
+var _Object$setPrototypeO;
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+var finished = require('./end-of-stream');
+
+var kLastResolve = Symbol('lastResolve');
+var kLastReject = Symbol('lastReject');
+var kError = Symbol('error');
+var kEnded = Symbol('ended');
+var kLastPromise = Symbol('lastPromise');
+var kHandlePromise = Symbol('handlePromise');
+var kStream = Symbol('stream');
+
+function createIterResult(value, done) {
+ return {
+ value: value,
+ done: done
+ };
+}
+
+function readAndResolve(iter) {
+ var resolve = iter[kLastResolve];
+
+ if (resolve !== null) {
+ var data = iter[kStream].read(); // we defer if data is null
+ // we can be expecting either 'end' or
+ // 'error'
+
+ if (data !== null) {
+ iter[kLastPromise] = null;
+ iter[kLastResolve] = null;
+ iter[kLastReject] = null;
+ resolve(createIterResult(data, false));
+ }
+ }
+}
+
+function onReadable(iter) {
+ // we wait for the next tick, because it might
+ // emit an error with process.nextTick
+ process.nextTick(readAndResolve, iter);
+}
+
+function wrapForNext(lastPromise, iter) {
+ return function (resolve, reject) {
+ lastPromise.then(function () {
+ if (iter[kEnded]) {
+ resolve(createIterResult(undefined, true));
+ return;
+ }
+
+ iter[kHandlePromise](resolve, reject);
+ }, reject);
+ };
+}
+
+var AsyncIteratorPrototype = Object.getPrototypeOf(function () {});
+var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {
+ get stream() {
+ return this[kStream];
+ },
+
+ next: function next() {
+ var _this = this;
+
+ // if we have detected an error in the meanwhile
+ // reject straight away
+ var error = this[kError];
+
+ if (error !== null) {
+ return Promise.reject(error);
+ }
+
+ if (this[kEnded]) {
+ return Promise.resolve(createIterResult(undefined, true));
+ }
+
+ if (this[kStream].destroyed) {
+ // We need to defer via nextTick because if .destroy(err) is
+ // called, the error will be emitted via nextTick, and
+ // we cannot guarantee that there is no error lingering around
+ // waiting to be emitted.
+ return new Promise(function (resolve, reject) {
+ process.nextTick(function () {
+ if (_this[kError]) {
+ reject(_this[kError]);
+ } else {
+ resolve(createIterResult(undefined, true));
+ }
+ });
+ });
+ } // if we have multiple next() calls
+ // we will wait for the previous Promise to finish
+ // this logic is optimized to support for await loops,
+ // where next() is only called once at a time
+
+
+ var lastPromise = this[kLastPromise];
+ var promise;
+
+ if (lastPromise) {
+ promise = new Promise(wrapForNext(lastPromise, this));
+ } else {
+ // fast path needed to support multiple this.push()
+ // without triggering the next() queue
+ var data = this[kStream].read();
+
+ if (data !== null) {
+ return Promise.resolve(createIterResult(data, false));
+ }
+
+ promise = new Promise(this[kHandlePromise]);
+ }
+
+ this[kLastPromise] = promise;
+ return promise;
+ }
+}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {
+ return this;
+}), _defineProperty(_Object$setPrototypeO, "return", function _return() {
+ var _this2 = this;
+
+ // destroy(err, cb) is a private API
+ // we can guarantee we have that here, because we control the
+ // Readable class this is attached to
+ return new Promise(function (resolve, reject) {
+ _this2[kStream].destroy(null, function (err) {
+ if (err) {
+ reject(err);
+ return;
+ }
+
+ resolve(createIterResult(undefined, true));
+ });
+ });
+}), _Object$setPrototypeO), AsyncIteratorPrototype);
+
+var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {
+ var _Object$create;
+
+ var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {
+ value: stream,
+ writable: true
+ }), _defineProperty(_Object$create, kLastResolve, {
+ value: null,
+ writable: true
+ }), _defineProperty(_Object$create, kLastReject, {
+ value: null,
+ writable: true
+ }), _defineProperty(_Object$create, kError, {
+ value: null,
+ writable: true
+ }), _defineProperty(_Object$create, kEnded, {
+ value: stream._readableState.endEmitted,
+ writable: true
+ }), _defineProperty(_Object$create, kHandlePromise, {
+ value: function value(resolve, reject) {
+ var data = iterator[kStream].read();
+
+ if (data) {
+ iterator[kLastPromise] = null;
+ iterator[kLastResolve] = null;
+ iterator[kLastReject] = null;
+ resolve(createIterResult(data, false));
+ } else {
+ iterator[kLastResolve] = resolve;
+ iterator[kLastReject] = reject;
+ }
+ },
+ writable: true
+ }), _Object$create));
+ iterator[kLastPromise] = null;
+ finished(stream, function (err) {
+ if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {
+ var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise
+ // returned by next() and store the error
+
+ if (reject !== null) {
+ iterator[kLastPromise] = null;
+ iterator[kLastResolve] = null;
+ iterator[kLastReject] = null;
+ reject(err);
+ }
+
+ iterator[kError] = err;
+ return;
+ }
+
+ var resolve = iterator[kLastResolve];
+
+ if (resolve !== null) {
+ iterator[kLastPromise] = null;
+ iterator[kLastResolve] = null;
+ iterator[kLastReject] = null;
+ resolve(createIterResult(undefined, true));
+ }
+
+ iterator[kEnded] = true;
+ });
+ stream.on('readable', onReadable.bind(null, iterator));
+ return iterator;
+};
+
+module.exports = createReadableStreamAsyncIterator;
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/buffer_list.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/buffer_list.js
new file mode 100644
index 00000000..cdea425f
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/buffer_list.js
@@ -0,0 +1,210 @@
+'use strict';
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
+
+function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
+
+function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
+
+var _require = require('buffer'),
+ Buffer = _require.Buffer;
+
+var _require2 = require('util'),
+ inspect = _require2.inspect;
+
+var custom = inspect && inspect.custom || 'inspect';
+
+function copyBuffer(src, target, offset) {
+ Buffer.prototype.copy.call(src, target, offset);
+}
+
+module.exports =
+/*#__PURE__*/
+function () {
+ function BufferList() {
+ _classCallCheck(this, BufferList);
+
+ this.head = null;
+ this.tail = null;
+ this.length = 0;
+ }
+
+ _createClass(BufferList, [{
+ key: "push",
+ value: function push(v) {
+ var entry = {
+ data: v,
+ next: null
+ };
+ if (this.length > 0) this.tail.next = entry;else this.head = entry;
+ this.tail = entry;
+ ++this.length;
+ }
+ }, {
+ key: "unshift",
+ value: function unshift(v) {
+ var entry = {
+ data: v,
+ next: this.head
+ };
+ if (this.length === 0) this.tail = entry;
+ this.head = entry;
+ ++this.length;
+ }
+ }, {
+ key: "shift",
+ value: function shift() {
+ if (this.length === 0) return;
+ var ret = this.head.data;
+ if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;
+ --this.length;
+ return ret;
+ }
+ }, {
+ key: "clear",
+ value: function clear() {
+ this.head = this.tail = null;
+ this.length = 0;
+ }
+ }, {
+ key: "join",
+ value: function join(s) {
+ if (this.length === 0) return '';
+ var p = this.head;
+ var ret = '' + p.data;
+
+ while (p = p.next) {
+ ret += s + p.data;
+ }
+
+ return ret;
+ }
+ }, {
+ key: "concat",
+ value: function concat(n) {
+ if (this.length === 0) return Buffer.alloc(0);
+ var ret = Buffer.allocUnsafe(n >>> 0);
+ var p = this.head;
+ var i = 0;
+
+ while (p) {
+ copyBuffer(p.data, ret, i);
+ i += p.data.length;
+ p = p.next;
+ }
+
+ return ret;
+ } // Consumes a specified amount of bytes or characters from the buffered data.
+
+ }, {
+ key: "consume",
+ value: function consume(n, hasStrings) {
+ var ret;
+
+ if (n < this.head.data.length) {
+ // `slice` is the same for buffers and strings.
+ ret = this.head.data.slice(0, n);
+ this.head.data = this.head.data.slice(n);
+ } else if (n === this.head.data.length) {
+ // First chunk is a perfect match.
+ ret = this.shift();
+ } else {
+ // Result spans more than one buffer.
+ ret = hasStrings ? this._getString(n) : this._getBuffer(n);
+ }
+
+ return ret;
+ }
+ }, {
+ key: "first",
+ value: function first() {
+ return this.head.data;
+ } // Consumes a specified amount of characters from the buffered data.
+
+ }, {
+ key: "_getString",
+ value: function _getString(n) {
+ var p = this.head;
+ var c = 1;
+ var ret = p.data;
+ n -= ret.length;
+
+ while (p = p.next) {
+ var str = p.data;
+ var nb = n > str.length ? str.length : n;
+ if (nb === str.length) ret += str;else ret += str.slice(0, n);
+ n -= nb;
+
+ if (n === 0) {
+ if (nb === str.length) {
+ ++c;
+ if (p.next) this.head = p.next;else this.head = this.tail = null;
+ } else {
+ this.head = p;
+ p.data = str.slice(nb);
+ }
+
+ break;
+ }
+
+ ++c;
+ }
+
+ this.length -= c;
+ return ret;
+ } // Consumes a specified amount of bytes from the buffered data.
+
+ }, {
+ key: "_getBuffer",
+ value: function _getBuffer(n) {
+ var ret = Buffer.allocUnsafe(n);
+ var p = this.head;
+ var c = 1;
+ p.data.copy(ret);
+ n -= p.data.length;
+
+ while (p = p.next) {
+ var buf = p.data;
+ var nb = n > buf.length ? buf.length : n;
+ buf.copy(ret, ret.length - n, 0, nb);
+ n -= nb;
+
+ if (n === 0) {
+ if (nb === buf.length) {
+ ++c;
+ if (p.next) this.head = p.next;else this.head = this.tail = null;
+ } else {
+ this.head = p;
+ p.data = buf.slice(nb);
+ }
+
+ break;
+ }
+
+ ++c;
+ }
+
+ this.length -= c;
+ return ret;
+ } // Make sure the linked list only shows the minimal necessary information.
+
+ }, {
+ key: custom,
+ value: function value(_, options) {
+ return inspect(this, _objectSpread({}, options, {
+ // Only inspect one level.
+ depth: 0,
+ // It should not recurse.
+ customInspect: false
+ }));
+ }
+ }]);
+
+ return BufferList;
+}();
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/destroy.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/destroy.js
new file mode 100644
index 00000000..3268a16f
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/destroy.js
@@ -0,0 +1,105 @@
+'use strict'; // undocumented cb() API, needed for core, not for public API
+
+function destroy(err, cb) {
+ var _this = this;
+
+ var readableDestroyed = this._readableState && this._readableState.destroyed;
+ var writableDestroyed = this._writableState && this._writableState.destroyed;
+
+ if (readableDestroyed || writableDestroyed) {
+ if (cb) {
+ cb(err);
+ } else if (err) {
+ if (!this._writableState) {
+ process.nextTick(emitErrorNT, this, err);
+ } else if (!this._writableState.errorEmitted) {
+ this._writableState.errorEmitted = true;
+ process.nextTick(emitErrorNT, this, err);
+ }
+ }
+
+ return this;
+ } // we set destroyed to true before firing error callbacks in order
+ // to make it re-entrance safe in case destroy() is called within callbacks
+
+
+ if (this._readableState) {
+ this._readableState.destroyed = true;
+ } // if this is a duplex stream mark the writable part as destroyed as well
+
+
+ if (this._writableState) {
+ this._writableState.destroyed = true;
+ }
+
+ this._destroy(err || null, function (err) {
+ if (!cb && err) {
+ if (!_this._writableState) {
+ process.nextTick(emitErrorAndCloseNT, _this, err);
+ } else if (!_this._writableState.errorEmitted) {
+ _this._writableState.errorEmitted = true;
+ process.nextTick(emitErrorAndCloseNT, _this, err);
+ } else {
+ process.nextTick(emitCloseNT, _this);
+ }
+ } else if (cb) {
+ process.nextTick(emitCloseNT, _this);
+ cb(err);
+ } else {
+ process.nextTick(emitCloseNT, _this);
+ }
+ });
+
+ return this;
+}
+
+function emitErrorAndCloseNT(self, err) {
+ emitErrorNT(self, err);
+ emitCloseNT(self);
+}
+
+function emitCloseNT(self) {
+ if (self._writableState && !self._writableState.emitClose) return;
+ if (self._readableState && !self._readableState.emitClose) return;
+ self.emit('close');
+}
+
+function undestroy() {
+ if (this._readableState) {
+ this._readableState.destroyed = false;
+ this._readableState.reading = false;
+ this._readableState.ended = false;
+ this._readableState.endEmitted = false;
+ }
+
+ if (this._writableState) {
+ this._writableState.destroyed = false;
+ this._writableState.ended = false;
+ this._writableState.ending = false;
+ this._writableState.finalCalled = false;
+ this._writableState.prefinished = false;
+ this._writableState.finished = false;
+ this._writableState.errorEmitted = false;
+ }
+}
+
+function emitErrorNT(self, err) {
+ self.emit('error', err);
+}
+
+function errorOrDestroy(stream, err) {
+ // We have tests that rely on errors being emitted
+ // in the same tick, so changing this is semver major.
+ // For now when you opt-in to autoDestroy we allow
+ // the error to be emitted nextTick. In a future
+ // semver major update we should change the default to this.
+ var rState = stream._readableState;
+ var wState = stream._writableState;
+ if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);
+}
+
+module.exports = {
+ destroy: destroy,
+ undestroy: undestroy,
+ errorOrDestroy: errorOrDestroy
+};
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/end-of-stream.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
new file mode 100644
index 00000000..831f286d
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
@@ -0,0 +1,104 @@
+// Ported from https://github.com/mafintosh/end-of-stream with
+// permission from the author, Mathias Buus (@mafintosh).
+'use strict';
+
+var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;
+
+function once(callback) {
+ var called = false;
+ return function () {
+ if (called) return;
+ called = true;
+
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ callback.apply(this, args);
+ };
+}
+
+function noop() {}
+
+function isRequest(stream) {
+ return stream.setHeader && typeof stream.abort === 'function';
+}
+
+function eos(stream, opts, callback) {
+ if (typeof opts === 'function') return eos(stream, null, opts);
+ if (!opts) opts = {};
+ callback = once(callback || noop);
+ var readable = opts.readable || opts.readable !== false && stream.readable;
+ var writable = opts.writable || opts.writable !== false && stream.writable;
+
+ var onlegacyfinish = function onlegacyfinish() {
+ if (!stream.writable) onfinish();
+ };
+
+ var writableEnded = stream._writableState && stream._writableState.finished;
+
+ var onfinish = function onfinish() {
+ writable = false;
+ writableEnded = true;
+ if (!readable) callback.call(stream);
+ };
+
+ var readableEnded = stream._readableState && stream._readableState.endEmitted;
+
+ var onend = function onend() {
+ readable = false;
+ readableEnded = true;
+ if (!writable) callback.call(stream);
+ };
+
+ var onerror = function onerror(err) {
+ callback.call(stream, err);
+ };
+
+ var onclose = function onclose() {
+ var err;
+
+ if (readable && !readableEnded) {
+ if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
+ return callback.call(stream, err);
+ }
+
+ if (writable && !writableEnded) {
+ if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();
+ return callback.call(stream, err);
+ }
+ };
+
+ var onrequest = function onrequest() {
+ stream.req.on('finish', onfinish);
+ };
+
+ if (isRequest(stream)) {
+ stream.on('complete', onfinish);
+ stream.on('abort', onclose);
+ if (stream.req) onrequest();else stream.on('request', onrequest);
+ } else if (writable && !stream._writableState) {
+ // legacy streams
+ stream.on('end', onlegacyfinish);
+ stream.on('close', onlegacyfinish);
+ }
+
+ stream.on('end', onend);
+ stream.on('finish', onfinish);
+ if (opts.error !== false) stream.on('error', onerror);
+ stream.on('close', onclose);
+ return function () {
+ stream.removeListener('complete', onfinish);
+ stream.removeListener('abort', onclose);
+ stream.removeListener('request', onrequest);
+ if (stream.req) stream.req.removeListener('finish', onfinish);
+ stream.removeListener('end', onlegacyfinish);
+ stream.removeListener('close', onlegacyfinish);
+ stream.removeListener('finish', onfinish);
+ stream.removeListener('end', onend);
+ stream.removeListener('error', onerror);
+ stream.removeListener('close', onclose);
+ };
+}
+
+module.exports = eos;
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from-browser.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from-browser.js
new file mode 100644
index 00000000..a4ce56f3
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from-browser.js
@@ -0,0 +1,3 @@
+module.exports = function () {
+ throw new Error('Readable.from is not available in the browser')
+};
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from.js
new file mode 100644
index 00000000..6c412844
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/from.js
@@ -0,0 +1,64 @@
+'use strict';
+
+function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
+
+function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
+
+function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
+
+function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
+
+function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
+
+var ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE;
+
+function from(Readable, iterable, opts) {
+ var iterator;
+
+ if (iterable && typeof iterable.next === 'function') {
+ iterator = iterable;
+ } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable);
+
+ var readable = new Readable(_objectSpread({
+ objectMode: true
+ }, opts)); // Reading boolean to protect against _read
+ // being called before last iteration completion.
+
+ var reading = false;
+
+ readable._read = function () {
+ if (!reading) {
+ reading = true;
+ next();
+ }
+ };
+
+ function next() {
+ return _next2.apply(this, arguments);
+ }
+
+ function _next2() {
+ _next2 = _asyncToGenerator(function* () {
+ try {
+ var _ref = yield iterator.next(),
+ value = _ref.value,
+ done = _ref.done;
+
+ if (done) {
+ readable.push(null);
+ } else if (readable.push((yield value))) {
+ next();
+ } else {
+ reading = false;
+ }
+ } catch (err) {
+ readable.destroy(err);
+ }
+ });
+ return _next2.apply(this, arguments);
+ }
+
+ return readable;
+}
+
+module.exports = from;
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/pipeline.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/pipeline.js
new file mode 100644
index 00000000..65899098
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/pipeline.js
@@ -0,0 +1,97 @@
+// Ported from https://github.com/mafintosh/pump with
+// permission from the author, Mathias Buus (@mafintosh).
+'use strict';
+
+var eos;
+
+function once(callback) {
+ var called = false;
+ return function () {
+ if (called) return;
+ called = true;
+ callback.apply(void 0, arguments);
+ };
+}
+
+var _require$codes = require('../../../errors').codes,
+ ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,
+ ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;
+
+function noop(err) {
+ // Rethrow the error if it exists to avoid swallowing it
+ if (err) throw err;
+}
+
+function isRequest(stream) {
+ return stream.setHeader && typeof stream.abort === 'function';
+}
+
+function destroyer(stream, reading, writing, callback) {
+ callback = once(callback);
+ var closed = false;
+ stream.on('close', function () {
+ closed = true;
+ });
+ if (eos === undefined) eos = require('./end-of-stream');
+ eos(stream, {
+ readable: reading,
+ writable: writing
+ }, function (err) {
+ if (err) return callback(err);
+ closed = true;
+ callback();
+ });
+ var destroyed = false;
+ return function (err) {
+ if (closed) return;
+ if (destroyed) return;
+ destroyed = true; // request.destroy just do .end - .abort is what we want
+
+ if (isRequest(stream)) return stream.abort();
+ if (typeof stream.destroy === 'function') return stream.destroy();
+ callback(err || new ERR_STREAM_DESTROYED('pipe'));
+ };
+}
+
+function call(fn) {
+ fn();
+}
+
+function pipe(from, to) {
+ return from.pipe(to);
+}
+
+function popCallback(streams) {
+ if (!streams.length) return noop;
+ if (typeof streams[streams.length - 1] !== 'function') return noop;
+ return streams.pop();
+}
+
+function pipeline() {
+ for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {
+ streams[_key] = arguments[_key];
+ }
+
+ var callback = popCallback(streams);
+ if (Array.isArray(streams[0])) streams = streams[0];
+
+ if (streams.length < 2) {
+ throw new ERR_MISSING_ARGS('streams');
+ }
+
+ var error;
+ var destroys = streams.map(function (stream, i) {
+ var reading = i < streams.length - 1;
+ var writing = i > 0;
+ return destroyer(stream, reading, writing, function (err) {
+ if (!error) error = err;
+ if (err) destroys.forEach(call);
+ if (reading) return;
+ destroys.forEach(call);
+ callback(error);
+ });
+ });
+ return streams.reduce(pipe);
+}
+
+module.exports = pipeline;
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/state.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/state.js
new file mode 100644
index 00000000..19887eb8
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/state.js
@@ -0,0 +1,27 @@
+'use strict';
+
+var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;
+
+function highWaterMarkFrom(options, isDuplex, duplexKey) {
+ return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;
+}
+
+function getHighWaterMark(state, options, duplexKey, isDuplex) {
+ var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
+
+ if (hwm != null) {
+ if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {
+ var name = isDuplex ? duplexKey : 'highWaterMark';
+ throw new ERR_INVALID_OPT_VALUE(name, hwm);
+ }
+
+ return Math.floor(hwm);
+ } // Default value
+
+
+ return state.objectMode ? 16 : 16 * 1024;
+}
+
+module.exports = {
+ getHighWaterMark: getHighWaterMark
+};
\ No newline at end of file
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream-browser.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream-browser.js
new file mode 100644
index 00000000..9332a3fd
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream-browser.js
@@ -0,0 +1 @@
+module.exports = require('events').EventEmitter;
diff --git a/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream.js b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream.js
new file mode 100644
index 00000000..ce2ad5b6
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/lib/internal/streams/stream.js
@@ -0,0 +1 @@
+module.exports = require('stream');
diff --git a/node_modules/hash-base/node_modules/readable-stream/package.json b/node_modules/hash-base/node_modules/readable-stream/package.json
new file mode 100644
index 00000000..df49f1ba
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/package.json
@@ -0,0 +1,97 @@
+{
+ "_from": "readable-stream@^3.6.0",
+ "_id": "readable-stream@3.6.0",
+ "_inBundle": false,
+ "_integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",
+ "_location": "/hash-base/readable-stream",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "readable-stream@^3.6.0",
+ "name": "readable-stream",
+ "escapedName": "readable-stream",
+ "rawSpec": "^3.6.0",
+ "saveSpec": null,
+ "fetchSpec": "^3.6.0"
+ },
+ "_requiredBy": [
+ "/hash-base"
+ ],
+ "_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",
+ "_shasum": "337bbda3adc0706bd3e024426a286d4b4b2c9198",
+ "_spec": "readable-stream@^3.6.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/hash-base",
+ "browser": {
+ "util": false,
+ "worker_threads": false,
+ "./errors": "./errors-browser.js",
+ "./readable.js": "./readable-browser.js",
+ "./lib/internal/streams/from.js": "./lib/internal/streams/from-browser.js",
+ "./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js"
+ },
+ "bugs": {
+ "url": "https://github.com/nodejs/readable-stream/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "string_decoder": "^1.1.1",
+ "util-deprecate": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Streams3, a user-land copy of the stream library from Node.js",
+ "devDependencies": {
+ "@babel/cli": "^7.2.0",
+ "@babel/core": "^7.2.0",
+ "@babel/polyfill": "^7.0.0",
+ "@babel/preset-env": "^7.2.0",
+ "airtap": "0.0.9",
+ "assert": "^1.4.0",
+ "bl": "^2.0.0",
+ "deep-strict-equal": "^0.2.0",
+ "events.once": "^2.0.2",
+ "glob": "^7.1.2",
+ "gunzip-maybe": "^1.4.1",
+ "hyperquest": "^2.1.3",
+ "lolex": "^2.6.0",
+ "nyc": "^11.0.0",
+ "pump": "^3.0.0",
+ "rimraf": "^2.6.2",
+ "tap": "^12.0.0",
+ "tape": "^4.9.0",
+ "tar-fs": "^1.16.2",
+ "util-promisify": "^2.1.0"
+ },
+ "engines": {
+ "node": ">= 6"
+ },
+ "homepage": "https://github.com/nodejs/readable-stream#readme",
+ "keywords": [
+ "readable",
+ "stream",
+ "pipe"
+ ],
+ "license": "MIT",
+ "main": "readable.js",
+ "name": "readable-stream",
+ "nyc": {
+ "include": [
+ "lib/**.js"
+ ]
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/nodejs/readable-stream.git"
+ },
+ "scripts": {
+ "ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap",
+ "cover": "nyc npm test",
+ "report": "nyc report --reporter=lcov",
+ "test": "tap -J --no-esm test/parallel/*.js test/ours/*.js",
+ "test-browser-local": "airtap --open --local -- test/browser.js",
+ "test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js",
+ "update-browser-errors": "babel -o errors-browser.js errors.js"
+ },
+ "version": "3.6.0"
+}
diff --git a/node_modules/hash-base/node_modules/readable-stream/readable-browser.js b/node_modules/hash-base/node_modules/readable-stream/readable-browser.js
new file mode 100644
index 00000000..adbf60de
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/readable-browser.js
@@ -0,0 +1,9 @@
+exports = module.exports = require('./lib/_stream_readable.js');
+exports.Stream = exports;
+exports.Readable = exports;
+exports.Writable = require('./lib/_stream_writable.js');
+exports.Duplex = require('./lib/_stream_duplex.js');
+exports.Transform = require('./lib/_stream_transform.js');
+exports.PassThrough = require('./lib/_stream_passthrough.js');
+exports.finished = require('./lib/internal/streams/end-of-stream.js');
+exports.pipeline = require('./lib/internal/streams/pipeline.js');
diff --git a/node_modules/hash-base/node_modules/readable-stream/readable.js b/node_modules/hash-base/node_modules/readable-stream/readable.js
new file mode 100644
index 00000000..9e0ca120
--- /dev/null
+++ b/node_modules/hash-base/node_modules/readable-stream/readable.js
@@ -0,0 +1,16 @@
+var Stream = require('stream');
+if (process.env.READABLE_STREAM === 'disable' && Stream) {
+ module.exports = Stream.Readable;
+ Object.assign(module.exports, Stream);
+ module.exports.Stream = Stream;
+} else {
+ exports = module.exports = require('./lib/_stream_readable.js');
+ exports.Stream = Stream || exports;
+ exports.Readable = exports;
+ exports.Writable = require('./lib/_stream_writable.js');
+ exports.Duplex = require('./lib/_stream_duplex.js');
+ exports.Transform = require('./lib/_stream_transform.js');
+ exports.PassThrough = require('./lib/_stream_passthrough.js');
+ exports.finished = require('./lib/internal/streams/end-of-stream.js');
+ exports.pipeline = require('./lib/internal/streams/pipeline.js');
+}
diff --git a/node_modules/hash-base/package.json b/node_modules/hash-base/package.json
new file mode 100644
index 00000000..2837bb71
--- /dev/null
+++ b/node_modules/hash-base/package.json
@@ -0,0 +1,76 @@
+{
+ "_from": "hash-base@^3.0.0",
+ "_id": "hash-base@3.1.0",
+ "_inBundle": false,
+ "_integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==",
+ "_location": "/hash-base",
+ "_phantomChildren": {
+ "inherits": "2.0.4",
+ "string_decoder": "1.1.1",
+ "util-deprecate": "1.0.2"
+ },
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "hash-base@^3.0.0",
+ "name": "hash-base",
+ "escapedName": "hash-base",
+ "rawSpec": "^3.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^3.0.0"
+ },
+ "_requiredBy": [
+ "/md5.js",
+ "/ripemd160"
+ ],
+ "_resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz",
+ "_shasum": "55c381d9e06e1d2997a883b4a3fddfe7f0d3af33",
+ "_spec": "hash-base@^3.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/md5.js",
+ "author": {
+ "name": "Kirill Fomichev",
+ "email": "fanatid@ya.ru",
+ "url": "https://github.com/fanatid"
+ },
+ "bugs": {
+ "url": "https://github.com/crypto-browserify/hash-base/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "inherits": "^2.0.4",
+ "readable-stream": "^3.6.0",
+ "safe-buffer": "^5.2.0"
+ },
+ "deprecated": false,
+ "description": "abstract base class for hash-streams",
+ "devDependencies": {
+ "nyc": "^15.0.1",
+ "standard": "^14.3.3",
+ "tape": "^5.0.0"
+ },
+ "engines": {
+ "node": ">=4"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/crypto-browserify/hash-base",
+ "keywords": [
+ "hash",
+ "stream"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "hash-base",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/crypto-browserify/hash-base.git"
+ },
+ "scripts": {
+ "coverage": "nyc node test/*.js",
+ "lint": "standard",
+ "test": "npm run lint && npm run unit",
+ "unit": "node test/*.js"
+ },
+ "version": "3.1.0"
+}
diff --git a/node_modules/hash.js/.eslintrc.js b/node_modules/hash.js/.eslintrc.js
new file mode 100644
index 00000000..614f8fc4
--- /dev/null
+++ b/node_modules/hash.js/.eslintrc.js
@@ -0,0 +1,41 @@
+module.exports = {
+ 'env': {
+ 'browser': true,
+ 'commonjs': true,
+ 'node': true,
+ 'es6': true
+ },
+ 'parserOptions': {
+ 'ecmaVersion': 8
+ },
+ 'extends': 'eslint:recommended',
+ 'rules': {
+ 'indent': [
+ 'error',
+ 2,
+ {
+ 'FunctionDeclaration': {
+ 'parameters': 'first'
+ },
+ 'FunctionExpression': {
+ 'parameters': 'first'
+ },
+ 'CallExpression': {
+ 'arguments': 'first'
+ }
+ }
+ ],
+ 'linebreak-style': [
+ 'error',
+ 'unix'
+ ],
+ 'quotes': [
+ 'error',
+ 'single'
+ ],
+ 'semi': [
+ 'error',
+ 'always'
+ ]
+ }
+};
diff --git a/node_modules/hash.js/.travis.yml b/node_modules/hash.js/.travis.yml
new file mode 100644
index 00000000..5406edc0
--- /dev/null
+++ b/node_modules/hash.js/.travis.yml
@@ -0,0 +1,10 @@
+sudo: false
+language: node_js
+node_js:
+ - "6"
+ - "8"
+ - "10"
+ - "stable"
+branches:
+ only:
+ - master
diff --git a/node_modules/hash.js/README.md b/node_modules/hash.js/README.md
new file mode 100644
index 00000000..006d3bbf
--- /dev/null
+++ b/node_modules/hash.js/README.md
@@ -0,0 +1,48 @@
+# hash.js [](http://travis-ci.org/indutny/hash.js)
+
+Just a bike-shed.
+
+## Install
+
+```sh
+npm install hash.js
+```
+
+## Usage
+
+```js
+var hash = require('hash.js')
+hash.sha256().update('abc').digest('hex')
+```
+
+## Selective hash usage
+
+```js
+var sha512 = require('hash.js/lib/hash/sha/512');
+sha512().update('abc').digest('hex');
+```
+
+#### LICENSE
+
+This software is licensed under the MIT License.
+
+Copyright Fedor Indutny, 2014.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to permit
+persons to whom the Software is furnished to do so, subject to the
+following conditions:
+
+The above copyright notice and this permission notice shall be included
+in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
+NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
+OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
+USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/hash.js/lib/hash.d.ts b/node_modules/hash.js/lib/hash.d.ts
new file mode 100644
index 00000000..abbb5c53
--- /dev/null
+++ b/node_modules/hash.js/lib/hash.d.ts
@@ -0,0 +1,106 @@
+declare var hash: Hash;
+
+declare module "hash.js" {
+ export = hash;
+}
+
+interface BlockHash {
+ hmacStrength: number
+ padLength: number
+ endian: 'big' | 'little'
+}
+
+interface MessageDigest {
+ blockSize: number
+ outSize: number
+ update(msg: any, enc?: 'hex'): T
+ digest(): number[]
+ digest(enc: 'hex'): string
+}
+
+interface Hash {
+ hmac: HmacConstructor
+ ripemd: RipemdSet
+ ripemd160: Ripemd160Constructor
+ sha: ShaSet
+ sha1: Sha1Constructor
+ sha224: Sha224Constructor
+ sha256: Sha256Constructor
+ sha384: Sha384Constructor
+ sha512: Sha512Constructor
+ utils: Utils
+}
+
+interface Utils {
+ toArray(msg: any, enc: 'hex'): Array
+ toHex(msg: any): string
+}
+
+interface RipemdSet {
+ ripemd160: Ripemd160Constructor
+}
+
+interface ShaSet {
+ sha1: Sha1Constructor
+ sha224: Sha224Constructor
+ sha256: Sha256Constructor
+ sha384: Sha384Constructor
+ sha512: Sha512Constructor
+}
+
+interface HmacConstructor { (hash: BlockHash, key: any, enc?: 'hex'): Hmac }
+interface Ripemd160Constructor { (): Ripemd160 }
+interface Sha1Constructor { (): Sha1; }
+interface Sha224Constructor { (): Sha224; }
+interface Sha256Constructor { (): Sha256; }
+interface Sha384Constructor { (): Sha384; }
+interface Sha512Constructor { (): Sha512; }
+
+interface Hmac extends MessageDigest {
+ blockSize: 512
+ outSize: 160
+}
+
+interface Ripemd160 extends BlockHash, MessageDigest {
+ blockSize: 512
+ hmacStrength: 192
+ outSize: 160
+ padLength: 64
+ endian: 'little'
+}
+
+interface Sha1 extends BlockHash, MessageDigest {
+ blockSize: 512
+ hmacStrength: 80
+ outSize: 160
+ padLength: 64
+ endian: 'big'
+}
+interface Sha224 extends BlockHash, MessageDigest {
+ blockSize: 512
+ hmacStrength: 192
+ outSize: 224
+ padLength: 64
+ endian: 'big'
+}
+interface Sha256 extends BlockHash, MessageDigest {
+ blockSize: 512
+ hmacStrength: 192
+ outSize: 256
+ padLength: 64
+ endian: 'big'
+}
+interface Sha384 extends BlockHash, MessageDigest {
+ blockSize: 1024
+ hmacStrength: 192
+ outSize: 384
+ padLength: 128
+ endian: 'big'
+}
+interface Sha512 extends BlockHash, MessageDigest {
+ blockSize: 1024
+ hmacStrength: 192
+ outSize: 512
+ padLength: 128
+ endian: 'big'
+}
diff --git a/node_modules/hash.js/lib/hash.js b/node_modules/hash.js/lib/hash.js
new file mode 100644
index 00000000..f59b6730
--- /dev/null
+++ b/node_modules/hash.js/lib/hash.js
@@ -0,0 +1,15 @@
+var hash = exports;
+
+hash.utils = require('./hash/utils');
+hash.common = require('./hash/common');
+hash.sha = require('./hash/sha');
+hash.ripemd = require('./hash/ripemd');
+hash.hmac = require('./hash/hmac');
+
+// Proxy hash functions to the main object
+hash.sha1 = hash.sha.sha1;
+hash.sha256 = hash.sha.sha256;
+hash.sha224 = hash.sha.sha224;
+hash.sha384 = hash.sha.sha384;
+hash.sha512 = hash.sha.sha512;
+hash.ripemd160 = hash.ripemd.ripemd160;
diff --git a/node_modules/hash.js/lib/hash/common.js b/node_modules/hash.js/lib/hash/common.js
new file mode 100644
index 00000000..c49f4763
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/common.js
@@ -0,0 +1,92 @@
+'use strict';
+
+var utils = require('./utils');
+var assert = require('minimalistic-assert');
+
+function BlockHash() {
+ this.pending = null;
+ this.pendingTotal = 0;
+ this.blockSize = this.constructor.blockSize;
+ this.outSize = this.constructor.outSize;
+ this.hmacStrength = this.constructor.hmacStrength;
+ this.padLength = this.constructor.padLength / 8;
+ this.endian = 'big';
+
+ this._delta8 = this.blockSize / 8;
+ this._delta32 = this.blockSize / 32;
+}
+exports.BlockHash = BlockHash;
+
+BlockHash.prototype.update = function update(msg, enc) {
+ // Convert message to array, pad it, and join into 32bit blocks
+ msg = utils.toArray(msg, enc);
+ if (!this.pending)
+ this.pending = msg;
+ else
+ this.pending = this.pending.concat(msg);
+ this.pendingTotal += msg.length;
+
+ // Enough data, try updating
+ if (this.pending.length >= this._delta8) {
+ msg = this.pending;
+
+ // Process pending data in blocks
+ var r = msg.length % this._delta8;
+ this.pending = msg.slice(msg.length - r, msg.length);
+ if (this.pending.length === 0)
+ this.pending = null;
+
+ msg = utils.join32(msg, 0, msg.length - r, this.endian);
+ for (var i = 0; i < msg.length; i += this._delta32)
+ this._update(msg, i, i + this._delta32);
+ }
+
+ return this;
+};
+
+BlockHash.prototype.digest = function digest(enc) {
+ this.update(this._pad());
+ assert(this.pending === null);
+
+ return this._digest(enc);
+};
+
+BlockHash.prototype._pad = function pad() {
+ var len = this.pendingTotal;
+ var bytes = this._delta8;
+ var k = bytes - ((len + this.padLength) % bytes);
+ var res = new Array(k + this.padLength);
+ res[0] = 0x80;
+ for (var i = 1; i < k; i++)
+ res[i] = 0;
+
+ // Append length
+ len <<= 3;
+ if (this.endian === 'big') {
+ for (var t = 8; t < this.padLength; t++)
+ res[i++] = 0;
+
+ res[i++] = 0;
+ res[i++] = 0;
+ res[i++] = 0;
+ res[i++] = 0;
+ res[i++] = (len >>> 24) & 0xff;
+ res[i++] = (len >>> 16) & 0xff;
+ res[i++] = (len >>> 8) & 0xff;
+ res[i++] = len & 0xff;
+ } else {
+ res[i++] = len & 0xff;
+ res[i++] = (len >>> 8) & 0xff;
+ res[i++] = (len >>> 16) & 0xff;
+ res[i++] = (len >>> 24) & 0xff;
+ res[i++] = 0;
+ res[i++] = 0;
+ res[i++] = 0;
+ res[i++] = 0;
+
+ for (t = 8; t < this.padLength; t++)
+ res[i++] = 0;
+ }
+
+ return res;
+};
diff --git a/node_modules/hash.js/lib/hash/hmac.js b/node_modules/hash.js/lib/hash/hmac.js
new file mode 100644
index 00000000..faff12d3
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/hmac.js
@@ -0,0 +1,47 @@
+'use strict';
+
+var utils = require('./utils');
+var assert = require('minimalistic-assert');
+
+function Hmac(hash, key, enc) {
+ if (!(this instanceof Hmac))
+ return new Hmac(hash, key, enc);
+ this.Hash = hash;
+ this.blockSize = hash.blockSize / 8;
+ this.outSize = hash.outSize / 8;
+ this.inner = null;
+ this.outer = null;
+
+ this._init(utils.toArray(key, enc));
+}
+module.exports = Hmac;
+
+Hmac.prototype._init = function init(key) {
+ // Shorten key, if needed
+ if (key.length > this.blockSize)
+ key = new this.Hash().update(key).digest();
+ assert(key.length <= this.blockSize);
+
+ // Add padding to key
+ for (var i = key.length; i < this.blockSize; i++)
+ key.push(0);
+
+ for (i = 0; i < key.length; i++)
+ key[i] ^= 0x36;
+ this.inner = new this.Hash().update(key);
+
+ // 0x36 ^ 0x5c = 0x6a
+ for (i = 0; i < key.length; i++)
+ key[i] ^= 0x6a;
+ this.outer = new this.Hash().update(key);
+};
+
+Hmac.prototype.update = function update(msg, enc) {
+ this.inner.update(msg, enc);
+ return this;
+};
+
+Hmac.prototype.digest = function digest(enc) {
+ this.outer.update(this.inner.digest());
+ return this.outer.digest(enc);
+};
diff --git a/node_modules/hash.js/lib/hash/ripemd.js b/node_modules/hash.js/lib/hash/ripemd.js
new file mode 100644
index 00000000..2dcdff27
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/ripemd.js
@@ -0,0 +1,146 @@
+'use strict';
+
+var utils = require('./utils');
+var common = require('./common');
+
+var rotl32 = utils.rotl32;
+var sum32 = utils.sum32;
+var sum32_3 = utils.sum32_3;
+var sum32_4 = utils.sum32_4;
+var BlockHash = common.BlockHash;
+
+function RIPEMD160() {
+ if (!(this instanceof RIPEMD160))
+ return new RIPEMD160();
+
+ BlockHash.call(this);
+
+ this.h = [ 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0 ];
+ this.endian = 'little';
+}
+utils.inherits(RIPEMD160, BlockHash);
+exports.ripemd160 = RIPEMD160;
+
+RIPEMD160.blockSize = 512;
+RIPEMD160.outSize = 160;
+RIPEMD160.hmacStrength = 192;
+RIPEMD160.padLength = 64;
+
+RIPEMD160.prototype._update = function update(msg, start) {
+ var A = this.h[0];
+ var B = this.h[1];
+ var C = this.h[2];
+ var D = this.h[3];
+ var E = this.h[4];
+ var Ah = A;
+ var Bh = B;
+ var Ch = C;
+ var Dh = D;
+ var Eh = E;
+ for (var j = 0; j < 80; j++) {
+ var T = sum32(
+ rotl32(
+ sum32_4(A, f(j, B, C, D), msg[r[j] + start], K(j)),
+ s[j]),
+ E);
+ A = E;
+ E = D;
+ D = rotl32(C, 10);
+ C = B;
+ B = T;
+ T = sum32(
+ rotl32(
+ sum32_4(Ah, f(79 - j, Bh, Ch, Dh), msg[rh[j] + start], Kh(j)),
+ sh[j]),
+ Eh);
+ Ah = Eh;
+ Eh = Dh;
+ Dh = rotl32(Ch, 10);
+ Ch = Bh;
+ Bh = T;
+ }
+ T = sum32_3(this.h[1], C, Dh);
+ this.h[1] = sum32_3(this.h[2], D, Eh);
+ this.h[2] = sum32_3(this.h[3], E, Ah);
+ this.h[3] = sum32_3(this.h[4], A, Bh);
+ this.h[4] = sum32_3(this.h[0], B, Ch);
+ this.h[0] = T;
+};
+
+RIPEMD160.prototype._digest = function digest(enc) {
+ if (enc === 'hex')
+ return utils.toHex32(this.h, 'little');
+ else
+ return utils.split32(this.h, 'little');
+};
+
+function f(j, x, y, z) {
+ if (j <= 15)
+ return x ^ y ^ z;
+ else if (j <= 31)
+ return (x & y) | ((~x) & z);
+ else if (j <= 47)
+ return (x | (~y)) ^ z;
+ else if (j <= 63)
+ return (x & z) | (y & (~z));
+ else
+ return x ^ (y | (~z));
+}
+
+function K(j) {
+ if (j <= 15)
+ return 0x00000000;
+ else if (j <= 31)
+ return 0x5a827999;
+ else if (j <= 47)
+ return 0x6ed9eba1;
+ else if (j <= 63)
+ return 0x8f1bbcdc;
+ else
+ return 0xa953fd4e;
+}
+
+function Kh(j) {
+ if (j <= 15)
+ return 0x50a28be6;
+ else if (j <= 31)
+ return 0x5c4dd124;
+ else if (j <= 47)
+ return 0x6d703ef3;
+ else if (j <= 63)
+ return 0x7a6d76e9;
+ else
+ return 0x00000000;
+}
+
+var r = [
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
+];
+
+var rh = [
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
+];
+
+var s = [
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
+];
+
+var sh = [
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
+];
diff --git a/node_modules/hash.js/lib/hash/sha.js b/node_modules/hash.js/lib/hash/sha.js
new file mode 100644
index 00000000..f34a38d7
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha.js
@@ -0,0 +1,7 @@
+'use strict';
+
+exports.sha1 = require('./sha/1');
+exports.sha224 = require('./sha/224');
+exports.sha256 = require('./sha/256');
+exports.sha384 = require('./sha/384');
+exports.sha512 = require('./sha/512');
diff --git a/node_modules/hash.js/lib/hash/sha/1.js b/node_modules/hash.js/lib/hash/sha/1.js
new file mode 100644
index 00000000..fcdfa294
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/1.js
@@ -0,0 +1,74 @@
+'use strict';
+
+var utils = require('../utils');
+var common = require('../common');
+var shaCommon = require('./common');
+
+var rotl32 = utils.rotl32;
+var sum32 = utils.sum32;
+var sum32_5 = utils.sum32_5;
+var ft_1 = shaCommon.ft_1;
+var BlockHash = common.BlockHash;
+
+var sha1_K = [
+ 0x5A827999, 0x6ED9EBA1,
+ 0x8F1BBCDC, 0xCA62C1D6
+];
+
+function SHA1() {
+ if (!(this instanceof SHA1))
+ return new SHA1();
+
+ BlockHash.call(this);
+ this.h = [
+ 0x67452301, 0xefcdab89, 0x98badcfe,
+ 0x10325476, 0xc3d2e1f0 ];
+ this.W = new Array(80);
+}
+
+utils.inherits(SHA1, BlockHash);
+module.exports = SHA1;
+
+SHA1.blockSize = 512;
+SHA1.outSize = 160;
+SHA1.hmacStrength = 80;
+SHA1.padLength = 64;
+
+SHA1.prototype._update = function _update(msg, start) {
+ var W = this.W;
+
+ for (var i = 0; i < 16; i++)
+ W[i] = msg[start + i];
+
+ for(; i < W.length; i++)
+ W[i] = rotl32(W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16], 1);
+
+ var a = this.h[0];
+ var b = this.h[1];
+ var c = this.h[2];
+ var d = this.h[3];
+ var e = this.h[4];
+
+ for (i = 0; i < W.length; i++) {
+ var s = ~~(i / 20);
+ var t = sum32_5(rotl32(a, 5), ft_1(s, b, c, d), e, W[i], sha1_K[s]);
+ e = d;
+ d = c;
+ c = rotl32(b, 30);
+ b = a;
+ a = t;
+ }
+
+ this.h[0] = sum32(this.h[0], a);
+ this.h[1] = sum32(this.h[1], b);
+ this.h[2] = sum32(this.h[2], c);
+ this.h[3] = sum32(this.h[3], d);
+ this.h[4] = sum32(this.h[4], e);
+};
+
+SHA1.prototype._digest = function digest(enc) {
+ if (enc === 'hex')
+ return utils.toHex32(this.h, 'big');
+ else
+ return utils.split32(this.h, 'big');
+};
diff --git a/node_modules/hash.js/lib/hash/sha/224.js b/node_modules/hash.js/lib/hash/sha/224.js
new file mode 100644
index 00000000..c69882db
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/224.js
@@ -0,0 +1,30 @@
+'use strict';
+
+var utils = require('../utils');
+var SHA256 = require('./256');
+
+function SHA224() {
+ if (!(this instanceof SHA224))
+ return new SHA224();
+
+ SHA256.call(this);
+ this.h = [
+ 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
+ 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4 ];
+}
+utils.inherits(SHA224, SHA256);
+module.exports = SHA224;
+
+SHA224.blockSize = 512;
+SHA224.outSize = 224;
+SHA224.hmacStrength = 192;
+SHA224.padLength = 64;
+
+SHA224.prototype._digest = function digest(enc) {
+ // Just truncate output
+ if (enc === 'hex')
+ return utils.toHex32(this.h.slice(0, 7), 'big');
+ else
+ return utils.split32(this.h.slice(0, 7), 'big');
+};
+
diff --git a/node_modules/hash.js/lib/hash/sha/256.js b/node_modules/hash.js/lib/hash/sha/256.js
new file mode 100644
index 00000000..6dbd6a0c
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/256.js
@@ -0,0 +1,105 @@
+'use strict';
+
+var utils = require('../utils');
+var common = require('../common');
+var shaCommon = require('./common');
+var assert = require('minimalistic-assert');
+
+var sum32 = utils.sum32;
+var sum32_4 = utils.sum32_4;
+var sum32_5 = utils.sum32_5;
+var ch32 = shaCommon.ch32;
+var maj32 = shaCommon.maj32;
+var s0_256 = shaCommon.s0_256;
+var s1_256 = shaCommon.s1_256;
+var g0_256 = shaCommon.g0_256;
+var g1_256 = shaCommon.g1_256;
+
+var BlockHash = common.BlockHash;
+
+var sha256_K = [
+ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5,
+ 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5,
+ 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3,
+ 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174,
+ 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc,
+ 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da,
+ 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7,
+ 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967,
+ 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13,
+ 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85,
+ 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3,
+ 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070,
+ 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5,
+ 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3,
+ 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208,
+ 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2
+];
+
+function SHA256() {
+ if (!(this instanceof SHA256))
+ return new SHA256();
+
+ BlockHash.call(this);
+ this.h = [
+ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a,
+ 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19
+ ];
+ this.k = sha256_K;
+ this.W = new Array(64);
+}
+utils.inherits(SHA256, BlockHash);
+module.exports = SHA256;
+
+SHA256.blockSize = 512;
+SHA256.outSize = 256;
+SHA256.hmacStrength = 192;
+SHA256.padLength = 64;
+
+SHA256.prototype._update = function _update(msg, start) {
+ var W = this.W;
+
+ for (var i = 0; i < 16; i++)
+ W[i] = msg[start + i];
+ for (; i < W.length; i++)
+ W[i] = sum32_4(g1_256(W[i - 2]), W[i - 7], g0_256(W[i - 15]), W[i - 16]);
+
+ var a = this.h[0];
+ var b = this.h[1];
+ var c = this.h[2];
+ var d = this.h[3];
+ var e = this.h[4];
+ var f = this.h[5];
+ var g = this.h[6];
+ var h = this.h[7];
+
+ assert(this.k.length === W.length);
+ for (i = 0; i < W.length; i++) {
+ var T1 = sum32_5(h, s1_256(e), ch32(e, f, g), this.k[i], W[i]);
+ var T2 = sum32(s0_256(a), maj32(a, b, c));
+ h = g;
+ g = f;
+ f = e;
+ e = sum32(d, T1);
+ d = c;
+ c = b;
+ b = a;
+ a = sum32(T1, T2);
+ }
+
+ this.h[0] = sum32(this.h[0], a);
+ this.h[1] = sum32(this.h[1], b);
+ this.h[2] = sum32(this.h[2], c);
+ this.h[3] = sum32(this.h[3], d);
+ this.h[4] = sum32(this.h[4], e);
+ this.h[5] = sum32(this.h[5], f);
+ this.h[6] = sum32(this.h[6], g);
+ this.h[7] = sum32(this.h[7], h);
+};
+
+SHA256.prototype._digest = function digest(enc) {
+ if (enc === 'hex')
+ return utils.toHex32(this.h, 'big');
+ else
+ return utils.split32(this.h, 'big');
+};
diff --git a/node_modules/hash.js/lib/hash/sha/384.js b/node_modules/hash.js/lib/hash/sha/384.js
new file mode 100644
index 00000000..01df2560
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/384.js
@@ -0,0 +1,35 @@
+'use strict';
+
+var utils = require('../utils');
+
+var SHA512 = require('./512');
+
+function SHA384() {
+ if (!(this instanceof SHA384))
+ return new SHA384();
+
+ SHA512.call(this);
+ this.h = [
+ 0xcbbb9d5d, 0xc1059ed8,
+ 0x629a292a, 0x367cd507,
+ 0x9159015a, 0x3070dd17,
+ 0x152fecd8, 0xf70e5939,
+ 0x67332667, 0xffc00b31,
+ 0x8eb44a87, 0x68581511,
+ 0xdb0c2e0d, 0x64f98fa7,
+ 0x47b5481d, 0xbefa4fa4 ];
+}
+utils.inherits(SHA384, SHA512);
+module.exports = SHA384;
+
+SHA384.blockSize = 1024;
+SHA384.outSize = 384;
+SHA384.hmacStrength = 192;
+SHA384.padLength = 128;
+
+SHA384.prototype._digest = function digest(enc) {
+ if (enc === 'hex')
+ return utils.toHex32(this.h.slice(0, 12), 'big');
+ else
+ return utils.split32(this.h.slice(0, 12), 'big');
+};
diff --git a/node_modules/hash.js/lib/hash/sha/512.js b/node_modules/hash.js/lib/hash/sha/512.js
new file mode 100644
index 00000000..c371a259
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/512.js
@@ -0,0 +1,330 @@
+'use strict';
+
+var utils = require('../utils');
+var common = require('../common');
+var assert = require('minimalistic-assert');
+
+var rotr64_hi = utils.rotr64_hi;
+var rotr64_lo = utils.rotr64_lo;
+var shr64_hi = utils.shr64_hi;
+var shr64_lo = utils.shr64_lo;
+var sum64 = utils.sum64;
+var sum64_hi = utils.sum64_hi;
+var sum64_lo = utils.sum64_lo;
+var sum64_4_hi = utils.sum64_4_hi;
+var sum64_4_lo = utils.sum64_4_lo;
+var sum64_5_hi = utils.sum64_5_hi;
+var sum64_5_lo = utils.sum64_5_lo;
+
+var BlockHash = common.BlockHash;
+
+var sha512_K = [
+ 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,
+ 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,
+ 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,
+ 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,
+ 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,
+ 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,
+ 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,
+ 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,
+ 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,
+ 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,
+ 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,
+ 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,
+ 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,
+ 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,
+ 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,
+ 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,
+ 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,
+ 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,
+ 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,
+ 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,
+ 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,
+ 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,
+ 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,
+ 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,
+ 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,
+ 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,
+ 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,
+ 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,
+ 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,
+ 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,
+ 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,
+ 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,
+ 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,
+ 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,
+ 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,
+ 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,
+ 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,
+ 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,
+ 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,
+ 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817
+];
+
+function SHA512() {
+ if (!(this instanceof SHA512))
+ return new SHA512();
+
+ BlockHash.call(this);
+ this.h = [
+ 0x6a09e667, 0xf3bcc908,
+ 0xbb67ae85, 0x84caa73b,
+ 0x3c6ef372, 0xfe94f82b,
+ 0xa54ff53a, 0x5f1d36f1,
+ 0x510e527f, 0xade682d1,
+ 0x9b05688c, 0x2b3e6c1f,
+ 0x1f83d9ab, 0xfb41bd6b,
+ 0x5be0cd19, 0x137e2179 ];
+ this.k = sha512_K;
+ this.W = new Array(160);
+}
+utils.inherits(SHA512, BlockHash);
+module.exports = SHA512;
+
+SHA512.blockSize = 1024;
+SHA512.outSize = 512;
+SHA512.hmacStrength = 192;
+SHA512.padLength = 128;
+
+SHA512.prototype._prepareBlock = function _prepareBlock(msg, start) {
+ var W = this.W;
+
+ // 32 x 32bit words
+ for (var i = 0; i < 32; i++)
+ W[i] = msg[start + i];
+ for (; i < W.length; i += 2) {
+ var c0_hi = g1_512_hi(W[i - 4], W[i - 3]); // i - 2
+ var c0_lo = g1_512_lo(W[i - 4], W[i - 3]);
+ var c1_hi = W[i - 14]; // i - 7
+ var c1_lo = W[i - 13];
+ var c2_hi = g0_512_hi(W[i - 30], W[i - 29]); // i - 15
+ var c2_lo = g0_512_lo(W[i - 30], W[i - 29]);
+ var c3_hi = W[i - 32]; // i - 16
+ var c3_lo = W[i - 31];
+
+ W[i] = sum64_4_hi(
+ c0_hi, c0_lo,
+ c1_hi, c1_lo,
+ c2_hi, c2_lo,
+ c3_hi, c3_lo);
+ W[i + 1] = sum64_4_lo(
+ c0_hi, c0_lo,
+ c1_hi, c1_lo,
+ c2_hi, c2_lo,
+ c3_hi, c3_lo);
+ }
+};
+
+SHA512.prototype._update = function _update(msg, start) {
+ this._prepareBlock(msg, start);
+
+ var W = this.W;
+
+ var ah = this.h[0];
+ var al = this.h[1];
+ var bh = this.h[2];
+ var bl = this.h[3];
+ var ch = this.h[4];
+ var cl = this.h[5];
+ var dh = this.h[6];
+ var dl = this.h[7];
+ var eh = this.h[8];
+ var el = this.h[9];
+ var fh = this.h[10];
+ var fl = this.h[11];
+ var gh = this.h[12];
+ var gl = this.h[13];
+ var hh = this.h[14];
+ var hl = this.h[15];
+
+ assert(this.k.length === W.length);
+ for (var i = 0; i < W.length; i += 2) {
+ var c0_hi = hh;
+ var c0_lo = hl;
+ var c1_hi = s1_512_hi(eh, el);
+ var c1_lo = s1_512_lo(eh, el);
+ var c2_hi = ch64_hi(eh, el, fh, fl, gh, gl);
+ var c2_lo = ch64_lo(eh, el, fh, fl, gh, gl);
+ var c3_hi = this.k[i];
+ var c3_lo = this.k[i + 1];
+ var c4_hi = W[i];
+ var c4_lo = W[i + 1];
+
+ var T1_hi = sum64_5_hi(
+ c0_hi, c0_lo,
+ c1_hi, c1_lo,
+ c2_hi, c2_lo,
+ c3_hi, c3_lo,
+ c4_hi, c4_lo);
+ var T1_lo = sum64_5_lo(
+ c0_hi, c0_lo,
+ c1_hi, c1_lo,
+ c2_hi, c2_lo,
+ c3_hi, c3_lo,
+ c4_hi, c4_lo);
+
+ c0_hi = s0_512_hi(ah, al);
+ c0_lo = s0_512_lo(ah, al);
+ c1_hi = maj64_hi(ah, al, bh, bl, ch, cl);
+ c1_lo = maj64_lo(ah, al, bh, bl, ch, cl);
+
+ var T2_hi = sum64_hi(c0_hi, c0_lo, c1_hi, c1_lo);
+ var T2_lo = sum64_lo(c0_hi, c0_lo, c1_hi, c1_lo);
+
+ hh = gh;
+ hl = gl;
+
+ gh = fh;
+ gl = fl;
+
+ fh = eh;
+ fl = el;
+
+ eh = sum64_hi(dh, dl, T1_hi, T1_lo);
+ el = sum64_lo(dl, dl, T1_hi, T1_lo);
+
+ dh = ch;
+ dl = cl;
+
+ ch = bh;
+ cl = bl;
+
+ bh = ah;
+ bl = al;
+
+ ah = sum64_hi(T1_hi, T1_lo, T2_hi, T2_lo);
+ al = sum64_lo(T1_hi, T1_lo, T2_hi, T2_lo);
+ }
+
+ sum64(this.h, 0, ah, al);
+ sum64(this.h, 2, bh, bl);
+ sum64(this.h, 4, ch, cl);
+ sum64(this.h, 6, dh, dl);
+ sum64(this.h, 8, eh, el);
+ sum64(this.h, 10, fh, fl);
+ sum64(this.h, 12, gh, gl);
+ sum64(this.h, 14, hh, hl);
+};
+
+SHA512.prototype._digest = function digest(enc) {
+ if (enc === 'hex')
+ return utils.toHex32(this.h, 'big');
+ else
+ return utils.split32(this.h, 'big');
+};
+
+function ch64_hi(xh, xl, yh, yl, zh) {
+ var r = (xh & yh) ^ ((~xh) & zh);
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function ch64_lo(xh, xl, yh, yl, zh, zl) {
+ var r = (xl & yl) ^ ((~xl) & zl);
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function maj64_hi(xh, xl, yh, yl, zh) {
+ var r = (xh & yh) ^ (xh & zh) ^ (yh & zh);
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function maj64_lo(xh, xl, yh, yl, zh, zl) {
+ var r = (xl & yl) ^ (xl & zl) ^ (yl & zl);
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function s0_512_hi(xh, xl) {
+ var c0_hi = rotr64_hi(xh, xl, 28);
+ var c1_hi = rotr64_hi(xl, xh, 2); // 34
+ var c2_hi = rotr64_hi(xl, xh, 7); // 39
+
+ var r = c0_hi ^ c1_hi ^ c2_hi;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function s0_512_lo(xh, xl) {
+ var c0_lo = rotr64_lo(xh, xl, 28);
+ var c1_lo = rotr64_lo(xl, xh, 2); // 34
+ var c2_lo = rotr64_lo(xl, xh, 7); // 39
+
+ var r = c0_lo ^ c1_lo ^ c2_lo;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function s1_512_hi(xh, xl) {
+ var c0_hi = rotr64_hi(xh, xl, 14);
+ var c1_hi = rotr64_hi(xh, xl, 18);
+ var c2_hi = rotr64_hi(xl, xh, 9); // 41
+
+ var r = c0_hi ^ c1_hi ^ c2_hi;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function s1_512_lo(xh, xl) {
+ var c0_lo = rotr64_lo(xh, xl, 14);
+ var c1_lo = rotr64_lo(xh, xl, 18);
+ var c2_lo = rotr64_lo(xl, xh, 9); // 41
+
+ var r = c0_lo ^ c1_lo ^ c2_lo;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function g0_512_hi(xh, xl) {
+ var c0_hi = rotr64_hi(xh, xl, 1);
+ var c1_hi = rotr64_hi(xh, xl, 8);
+ var c2_hi = shr64_hi(xh, xl, 7);
+
+ var r = c0_hi ^ c1_hi ^ c2_hi;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function g0_512_lo(xh, xl) {
+ var c0_lo = rotr64_lo(xh, xl, 1);
+ var c1_lo = rotr64_lo(xh, xl, 8);
+ var c2_lo = shr64_lo(xh, xl, 7);
+
+ var r = c0_lo ^ c1_lo ^ c2_lo;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function g1_512_hi(xh, xl) {
+ var c0_hi = rotr64_hi(xh, xl, 19);
+ var c1_hi = rotr64_hi(xl, xh, 29); // 61
+ var c2_hi = shr64_hi(xh, xl, 6);
+
+ var r = c0_hi ^ c1_hi ^ c2_hi;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
+
+function g1_512_lo(xh, xl) {
+ var c0_lo = rotr64_lo(xh, xl, 19);
+ var c1_lo = rotr64_lo(xl, xh, 29); // 61
+ var c2_lo = shr64_lo(xh, xl, 6);
+
+ var r = c0_lo ^ c1_lo ^ c2_lo;
+ if (r < 0)
+ r += 0x100000000;
+ return r;
+}
diff --git a/node_modules/hash.js/lib/hash/sha/common.js b/node_modules/hash.js/lib/hash/sha/common.js
new file mode 100644
index 00000000..d41b4643
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/sha/common.js
@@ -0,0 +1,49 @@
+'use strict';
+
+var utils = require('../utils');
+var rotr32 = utils.rotr32;
+
+function ft_1(s, x, y, z) {
+ if (s === 0)
+ return ch32(x, y, z);
+ if (s === 1 || s === 3)
+ return p32(x, y, z);
+ if (s === 2)
+ return maj32(x, y, z);
+}
+exports.ft_1 = ft_1;
+
+function ch32(x, y, z) {
+ return (x & y) ^ ((~x) & z);
+}
+exports.ch32 = ch32;
+
+function maj32(x, y, z) {
+ return (x & y) ^ (x & z) ^ (y & z);
+}
+exports.maj32 = maj32;
+
+function p32(x, y, z) {
+ return x ^ y ^ z;
+}
+exports.p32 = p32;
+
+function s0_256(x) {
+ return rotr32(x, 2) ^ rotr32(x, 13) ^ rotr32(x, 22);
+}
+exports.s0_256 = s0_256;
+
+function s1_256(x) {
+ return rotr32(x, 6) ^ rotr32(x, 11) ^ rotr32(x, 25);
+}
+exports.s1_256 = s1_256;
+
+function g0_256(x) {
+ return rotr32(x, 7) ^ rotr32(x, 18) ^ (x >>> 3);
+}
+exports.g0_256 = g0_256;
+
+function g1_256(x) {
+ return rotr32(x, 17) ^ rotr32(x, 19) ^ (x >>> 10);
+}
+exports.g1_256 = g1_256;
diff --git a/node_modules/hash.js/lib/hash/utils.js b/node_modules/hash.js/lib/hash/utils.js
new file mode 100644
index 00000000..7487f8e3
--- /dev/null
+++ b/node_modules/hash.js/lib/hash/utils.js
@@ -0,0 +1,278 @@
+'use strict';
+
+var assert = require('minimalistic-assert');
+var inherits = require('inherits');
+
+exports.inherits = inherits;
+
+function isSurrogatePair(msg, i) {
+ if ((msg.charCodeAt(i) & 0xFC00) !== 0xD800) {
+ return false;
+ }
+ if (i < 0 || i + 1 >= msg.length) {
+ return false;
+ }
+ return (msg.charCodeAt(i + 1) & 0xFC00) === 0xDC00;
+}
+
+function toArray(msg, enc) {
+ if (Array.isArray(msg))
+ return msg.slice();
+ if (!msg)
+ return [];
+ var res = [];
+ if (typeof msg === 'string') {
+ if (!enc) {
+ // Inspired by stringToUtf8ByteArray() in closure-library by Google
+ // https://github.com/google/closure-library/blob/8598d87242af59aac233270742c8984e2b2bdbe0/closure/goog/crypt/crypt.js#L117-L143
+ // Apache License 2.0
+ // https://github.com/google/closure-library/blob/master/LICENSE
+ var p = 0;
+ for (var i = 0; i < msg.length; i++) {
+ var c = msg.charCodeAt(i);
+ if (c < 128) {
+ res[p++] = c;
+ } else if (c < 2048) {
+ res[p++] = (c >> 6) | 192;
+ res[p++] = (c & 63) | 128;
+ } else if (isSurrogatePair(msg, i)) {
+ c = 0x10000 + ((c & 0x03FF) << 10) + (msg.charCodeAt(++i) & 0x03FF);
+ res[p++] = (c >> 18) | 240;
+ res[p++] = ((c >> 12) & 63) | 128;
+ res[p++] = ((c >> 6) & 63) | 128;
+ res[p++] = (c & 63) | 128;
+ } else {
+ res[p++] = (c >> 12) | 224;
+ res[p++] = ((c >> 6) & 63) | 128;
+ res[p++] = (c & 63) | 128;
+ }
+ }
+ } else if (enc === 'hex') {
+ msg = msg.replace(/[^a-z0-9]+/ig, '');
+ if (msg.length % 2 !== 0)
+ msg = '0' + msg;
+ for (i = 0; i < msg.length; i += 2)
+ res.push(parseInt(msg[i] + msg[i + 1], 16));
+ }
+ } else {
+ for (i = 0; i < msg.length; i++)
+ res[i] = msg[i] | 0;
+ }
+ return res;
+}
+exports.toArray = toArray;
+
+function toHex(msg) {
+ var res = '';
+ for (var i = 0; i < msg.length; i++)
+ res += zero2(msg[i].toString(16));
+ return res;
+}
+exports.toHex = toHex;
+
+function htonl(w) {
+ var res = (w >>> 24) |
+ ((w >>> 8) & 0xff00) |
+ ((w << 8) & 0xff0000) |
+ ((w & 0xff) << 24);
+ return res >>> 0;
+}
+exports.htonl = htonl;
+
+function toHex32(msg, endian) {
+ var res = '';
+ for (var i = 0; i < msg.length; i++) {
+ var w = msg[i];
+ if (endian === 'little')
+ w = htonl(w);
+ res += zero8(w.toString(16));
+ }
+ return res;
+}
+exports.toHex32 = toHex32;
+
+function zero2(word) {
+ if (word.length === 1)
+ return '0' + word;
+ else
+ return word;
+}
+exports.zero2 = zero2;
+
+function zero8(word) {
+ if (word.length === 7)
+ return '0' + word;
+ else if (word.length === 6)
+ return '00' + word;
+ else if (word.length === 5)
+ return '000' + word;
+ else if (word.length === 4)
+ return '0000' + word;
+ else if (word.length === 3)
+ return '00000' + word;
+ else if (word.length === 2)
+ return '000000' + word;
+ else if (word.length === 1)
+ return '0000000' + word;
+ else
+ return word;
+}
+exports.zero8 = zero8;
+
+function join32(msg, start, end, endian) {
+ var len = end - start;
+ assert(len % 4 === 0);
+ var res = new Array(len / 4);
+ for (var i = 0, k = start; i < res.length; i++, k += 4) {
+ var w;
+ if (endian === 'big')
+ w = (msg[k] << 24) | (msg[k + 1] << 16) | (msg[k + 2] << 8) | msg[k + 3];
+ else
+ w = (msg[k + 3] << 24) | (msg[k + 2] << 16) | (msg[k + 1] << 8) | msg[k];
+ res[i] = w >>> 0;
+ }
+ return res;
+}
+exports.join32 = join32;
+
+function split32(msg, endian) {
+ var res = new Array(msg.length * 4);
+ for (var i = 0, k = 0; i < msg.length; i++, k += 4) {
+ var m = msg[i];
+ if (endian === 'big') {
+ res[k] = m >>> 24;
+ res[k + 1] = (m >>> 16) & 0xff;
+ res[k + 2] = (m >>> 8) & 0xff;
+ res[k + 3] = m & 0xff;
+ } else {
+ res[k + 3] = m >>> 24;
+ res[k + 2] = (m >>> 16) & 0xff;
+ res[k + 1] = (m >>> 8) & 0xff;
+ res[k] = m & 0xff;
+ }
+ }
+ return res;
+}
+exports.split32 = split32;
+
+function rotr32(w, b) {
+ return (w >>> b) | (w << (32 - b));
+}
+exports.rotr32 = rotr32;
+
+function rotl32(w, b) {
+ return (w << b) | (w >>> (32 - b));
+}
+exports.rotl32 = rotl32;
+
+function sum32(a, b) {
+ return (a + b) >>> 0;
+}
+exports.sum32 = sum32;
+
+function sum32_3(a, b, c) {
+ return (a + b + c) >>> 0;
+}
+exports.sum32_3 = sum32_3;
+
+function sum32_4(a, b, c, d) {
+ return (a + b + c + d) >>> 0;
+}
+exports.sum32_4 = sum32_4;
+
+function sum32_5(a, b, c, d, e) {
+ return (a + b + c + d + e) >>> 0;
+}
+exports.sum32_5 = sum32_5;
+
+function sum64(buf, pos, ah, al) {
+ var bh = buf[pos];
+ var bl = buf[pos + 1];
+
+ var lo = (al + bl) >>> 0;
+ var hi = (lo < al ? 1 : 0) + ah + bh;
+ buf[pos] = hi >>> 0;
+ buf[pos + 1] = lo;
+}
+exports.sum64 = sum64;
+
+function sum64_hi(ah, al, bh, bl) {
+ var lo = (al + bl) >>> 0;
+ var hi = (lo < al ? 1 : 0) + ah + bh;
+ return hi >>> 0;
+}
+exports.sum64_hi = sum64_hi;
+
+function sum64_lo(ah, al, bh, bl) {
+ var lo = al + bl;
+ return lo >>> 0;
+}
+exports.sum64_lo = sum64_lo;
+
+function sum64_4_hi(ah, al, bh, bl, ch, cl, dh, dl) {
+ var carry = 0;
+ var lo = al;
+ lo = (lo + bl) >>> 0;
+ carry += lo < al ? 1 : 0;
+ lo = (lo + cl) >>> 0;
+ carry += lo < cl ? 1 : 0;
+ lo = (lo + dl) >>> 0;
+ carry += lo < dl ? 1 : 0;
+
+ var hi = ah + bh + ch + dh + carry;
+ return hi >>> 0;
+}
+exports.sum64_4_hi = sum64_4_hi;
+
+function sum64_4_lo(ah, al, bh, bl, ch, cl, dh, dl) {
+ var lo = al + bl + cl + dl;
+ return lo >>> 0;
+}
+exports.sum64_4_lo = sum64_4_lo;
+
+function sum64_5_hi(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
+ var carry = 0;
+ var lo = al;
+ lo = (lo + bl) >>> 0;
+ carry += lo < al ? 1 : 0;
+ lo = (lo + cl) >>> 0;
+ carry += lo < cl ? 1 : 0;
+ lo = (lo + dl) >>> 0;
+ carry += lo < dl ? 1 : 0;
+ lo = (lo + el) >>> 0;
+ carry += lo < el ? 1 : 0;
+
+ var hi = ah + bh + ch + dh + eh + carry;
+ return hi >>> 0;
+}
+exports.sum64_5_hi = sum64_5_hi;
+
+function sum64_5_lo(ah, al, bh, bl, ch, cl, dh, dl, eh, el) {
+ var lo = al + bl + cl + dl + el;
+
+ return lo >>> 0;
+}
+exports.sum64_5_lo = sum64_5_lo;
+
+function rotr64_hi(ah, al, num) {
+ var r = (al << (32 - num)) | (ah >>> num);
+ return r >>> 0;
+}
+exports.rotr64_hi = rotr64_hi;
+
+function rotr64_lo(ah, al, num) {
+ var r = (ah << (32 - num)) | (al >>> num);
+ return r >>> 0;
+}
+exports.rotr64_lo = rotr64_lo;
+
+function shr64_hi(ah, al, num) {
+ return ah >>> num;
+}
+exports.shr64_hi = shr64_hi;
+
+function shr64_lo(ah, al, num) {
+ var r = (ah << (32 - num)) | (al >>> num);
+ return r >>> 0;
+}
+exports.shr64_lo = shr64_lo;
diff --git a/node_modules/hash.js/package.json b/node_modules/hash.js/package.json
new file mode 100644
index 00000000..49bc81f2
--- /dev/null
+++ b/node_modules/hash.js/package.json
@@ -0,0 +1,64 @@
+{
+ "_from": "hash.js@^1.0.0",
+ "_id": "hash.js@1.1.7",
+ "_inBundle": false,
+ "_integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==",
+ "_location": "/hash.js",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "hash.js@^1.0.0",
+ "name": "hash.js",
+ "escapedName": "hash.js",
+ "rawSpec": "^1.0.0",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.0"
+ },
+ "_requiredBy": [
+ "/elliptic",
+ "/hmac-drbg"
+ ],
+ "_resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz",
+ "_shasum": "0babca538e8d4ee4a0f8988d68866537a003cf42",
+ "_spec": "hash.js@^1.0.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/elliptic",
+ "author": {
+ "name": "Fedor Indutny",
+ "email": "fedor@indutny.com"
+ },
+ "bugs": {
+ "url": "https://github.com/indutny/hash.js/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "inherits": "^2.0.3",
+ "minimalistic-assert": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Various hash functions that could be run by both browser and node",
+ "devDependencies": {
+ "eslint": "^4.19.1",
+ "mocha": "^5.2.0"
+ },
+ "homepage": "https://github.com/indutny/hash.js",
+ "keywords": [
+ "hash",
+ "sha256",
+ "sha224",
+ "hmac"
+ ],
+ "license": "MIT",
+ "main": "lib/hash.js",
+ "name": "hash.js",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/indutny/hash.js.git"
+ },
+ "scripts": {
+ "lint": "eslint lib/*.js lib/**/*.js lib/**/**/*.js test/*.js",
+ "test": "mocha --reporter=spec test/*-test.js && npm run lint"
+ },
+ "typings": "lib/hash.d.ts",
+ "version": "1.1.7"
+}
diff --git a/node_modules/hash.js/test/hash-test.js b/node_modules/hash.js/test/hash-test.js
new file mode 100644
index 00000000..f6ca564a
--- /dev/null
+++ b/node_modules/hash.js/test/hash-test.js
@@ -0,0 +1,140 @@
+'use strict';
+/* global describe it */
+
+var assert = require('assert');
+var crypto = require('crypto');
+var hash = require('../');
+
+describe('Hash', function() {
+ function test(fn, cases) {
+ for (var i = 0; i < cases.length; i++) {
+ var msg = cases[i][0];
+ var res = cases[i][1];
+ var enc = cases[i][2];
+
+ var dgst = fn().update(msg, enc).digest('hex');
+ assert.equal(dgst, res);
+
+ // Split message
+ dgst = fn().update(msg.slice(0, 2), enc)
+ .update(msg.slice(2), enc)
+ .digest('hex');
+ assert.equal(dgst, res);
+ }
+ }
+
+ it('should support sha256', function() {
+ assert.equal(hash.sha256.blockSize, 512);
+ assert.equal(hash.sha256.outSize, 256);
+
+ test(hash.sha256, [
+ [ 'abc',
+ 'ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad' ],
+ [ 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+ '248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1' ],
+ [ 'deadbeef',
+ '5f78c33274e43fa9de5659265c1d917e25c03722dcb0b8d27db8d5feaa813953',
+ 'hex' ],
+ ]);
+ });
+
+ it('should support sha224', function() {
+ assert.equal(hash.sha224.blockSize, 512);
+ assert.equal(hash.sha224.outSize, 224);
+
+ test(hash.sha224, [
+ [ 'abc',
+ '23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7' ],
+ [ 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+ '75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525' ],
+ [ 'deadbeef',
+ '55b9eee5f60cc362ddc07676f620372611e22272f60fdbec94f243f8',
+ 'hex' ],
+ ]);
+ });
+
+ it('should support ripemd160', function() {
+ assert.equal(hash.ripemd160.blockSize, 512);
+ assert.equal(hash.ripemd160.outSize, 160);
+
+ test(hash.ripemd160, [
+ [ '', '9c1185a5c5e9fc54612808977ee8f548b2258d31'],
+ [ 'abc',
+ '8eb208f7e05d987a9b044a8e98c6b087f15a0bfc' ],
+ [ 'message digest',
+ '5d0689ef49d2fae572b881b123a85ffa21595f36' ],
+ [ 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+ '12a053384a9c0c88e405a06c27dcf49ada62eb2b' ],
+ [ 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789',
+ 'b0e20b6e3116640286ed3a87a5713079b21f5189' ],
+ ]);
+ });
+
+ it('should support sha1', function() {
+ assert.equal(hash.sha1.blockSize, 512);
+ assert.equal(hash.sha1.outSize, 160);
+
+ test(hash.sha1, [
+ [ '',
+ 'da39a3ee5e6b4b0d3255bfef95601890afd80709' ],
+ [ 'abc',
+ 'a9993e364706816aba3e25717850c26c9cd0d89d' ],
+ [ 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq',
+ '84983e441c3bd26ebaae4aa1f95129e5e54670f1' ],
+ [ 'deadbeef',
+ 'd78f8bb992a56a597f6c7a1fb918bb78271367eb',
+ 'hex' ],
+ ]);
+ });
+
+ it('should support sha512', function() {
+ assert.equal(hash.sha512.blockSize, 1024);
+ assert.equal(hash.sha512.outSize, 512);
+
+ test(hash.sha512, [
+ [ 'abc',
+ 'ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a' +
+ '2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f'
+ ],
+ [
+ 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn' +
+ 'hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu',
+ '8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018' +
+ '501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909'
+ ]
+ ]);
+ });
+
+ it('should support sha384', function() {
+ assert.equal(hash.sha384.blockSize, 1024);
+ assert.equal(hash.sha384.outSize, 384);
+
+ test(hash.sha384, [
+ [ 'abc',
+ 'cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed' +
+ '8086072ba1e7cc2358baeca134c825a7'
+ ],
+ [
+ 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn' +
+ 'hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu',
+ '09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712' +
+ 'fcc7c71a557e2db966c3e9fa91746039'
+ ]
+ ]);
+ });
+
+ it('handles utf8 in strings just like crypto', function() {
+ const algorithm = 'sha256';
+ test(hash[algorithm], [
+ 'hello', // one byte per character
+ 'привет', // two bytes per character
+ '您好', // three bytes per character
+ '👋', // four bytes per character
+ 'hello привет 您好 👋!!!' // mixed character lengths
+ ].map(str => [str, crypto
+ .createHash(algorithm)
+ .update(str)
+ .digest('hex')]));
+ });
+
+});
diff --git a/node_modules/hash.js/test/hmac-test.js b/node_modules/hash.js/test/hmac-test.js
new file mode 100644
index 00000000..6fe18e38
--- /dev/null
+++ b/node_modules/hash.js/test/hmac-test.js
@@ -0,0 +1,62 @@
+'use strict';
+/* global describe it */
+
+var assert = require('assert');
+var hash = require('../');
+
+describe('Hmac', function() {
+ describe('mixed test vector', function() {
+ test({
+ name: 'nist 1',
+ key: '00010203 04050607 08090A0B 0C0D0E0F' +
+ '10111213 14151617 18191A1B 1C1D1E1F 20212223 24252627' +
+ '28292A2B 2C2D2E2F 30313233 34353637 38393A3B 3C3D3E3F',
+ msg: 'Sample message for keylen=blocklen',
+ res: '8bb9a1db9806f20df7f77b82138c7914d174d59e13dc4d0169c9057b133e1d62'
+ });
+ test({
+ name: 'nist 2',
+ key: '00010203 04050607' +
+ '08090A0B 0C0D0E0F 10111213 14151617 18191A1B 1C1D1E1F',
+ msg: 'Sample message for keylen= (this.minEntropy / 8),
+ 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
+ this._init(entropy, nonce, pers);
+}
+module.exports = HmacDRBG;
+
+HmacDRBG.prototype._init = function init(entropy, nonce, pers) {
+ var seed = entropy.concat(nonce).concat(pers);
+
+ this.K = new Array(this.outLen / 8);
+ this.V = new Array(this.outLen / 8);
+ for (var i = 0; i < this.V.length; i++) {
+ this.K[i] = 0x00;
+ this.V[i] = 0x01;
+ }
+
+ this._update(seed);
+ this._reseed = 1;
+ this.reseedInterval = 0x1000000000000; // 2^48
+};
+
+HmacDRBG.prototype._hmac = function hmac() {
+ return new hash.hmac(this.hash, this.K);
+};
+
+HmacDRBG.prototype._update = function update(seed) {
+ var kmac = this._hmac()
+ .update(this.V)
+ .update([ 0x00 ]);
+ if (seed)
+ kmac = kmac.update(seed);
+ this.K = kmac.digest();
+ this.V = this._hmac().update(this.V).digest();
+ if (!seed)
+ return;
+
+ this.K = this._hmac()
+ .update(this.V)
+ .update([ 0x01 ])
+ .update(seed)
+ .digest();
+ this.V = this._hmac().update(this.V).digest();
+};
+
+HmacDRBG.prototype.reseed = function reseed(entropy, entropyEnc, add, addEnc) {
+ // Optional entropy enc
+ if (typeof entropyEnc !== 'string') {
+ addEnc = add;
+ add = entropyEnc;
+ entropyEnc = null;
+ }
+
+ entropy = utils.toArray(entropy, entropyEnc);
+ add = utils.toArray(add, addEnc);
+
+ assert(entropy.length >= (this.minEntropy / 8),
+ 'Not enough entropy. Minimum is: ' + this.minEntropy + ' bits');
+
+ this._update(entropy.concat(add || []));
+ this._reseed = 1;
+};
+
+HmacDRBG.prototype.generate = function generate(len, enc, add, addEnc) {
+ if (this._reseed > this.reseedInterval)
+ throw new Error('Reseed is required');
+
+ // Optional encoding
+ if (typeof enc !== 'string') {
+ addEnc = add;
+ add = enc;
+ enc = null;
+ }
+
+ // Optional additional data
+ if (add) {
+ add = utils.toArray(add, addEnc || 'hex');
+ this._update(add);
+ }
+
+ var temp = [];
+ while (temp.length < len) {
+ this.V = this._hmac().update(this.V).digest();
+ temp = temp.concat(this.V);
+ }
+
+ var res = temp.slice(0, len);
+ this._update(add);
+ this._reseed++;
+ return utils.encode(res, enc);
+};
diff --git a/node_modules/hmac-drbg/package.json b/node_modules/hmac-drbg/package.json
new file mode 100644
index 00000000..f312d9db
--- /dev/null
+++ b/node_modules/hmac-drbg/package.json
@@ -0,0 +1,60 @@
+{
+ "_from": "hmac-drbg@^1.0.1",
+ "_id": "hmac-drbg@1.0.1",
+ "_inBundle": false,
+ "_integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=",
+ "_location": "/hmac-drbg",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "hmac-drbg@^1.0.1",
+ "name": "hmac-drbg",
+ "escapedName": "hmac-drbg",
+ "rawSpec": "^1.0.1",
+ "saveSpec": null,
+ "fetchSpec": "^1.0.1"
+ },
+ "_requiredBy": [
+ "/elliptic"
+ ],
+ "_resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz",
+ "_shasum": "d2745701025a6c775a6c545793ed502fc0c649a1",
+ "_spec": "hmac-drbg@^1.0.1",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/elliptic",
+ "author": {
+ "name": "Fedor Indutny",
+ "email": "fedor@indutny.com"
+ },
+ "bugs": {
+ "url": "https://github.com/indutny/hmac-drbg/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "hash.js": "^1.0.3",
+ "minimalistic-assert": "^1.0.0",
+ "minimalistic-crypto-utils": "^1.0.1"
+ },
+ "deprecated": false,
+ "description": "Deterministic random bit generator (hmac)",
+ "devDependencies": {
+ "mocha": "^3.2.0"
+ },
+ "homepage": "https://github.com/indutny/hmac-drbg#readme",
+ "keywords": [
+ "hmac",
+ "drbg",
+ "prng"
+ ],
+ "license": "MIT",
+ "main": "lib/hmac-drbg.js",
+ "name": "hmac-drbg",
+ "repository": {
+ "type": "git",
+ "url": "git+ssh://git@github.com/indutny/hmac-drbg.git"
+ },
+ "scripts": {
+ "test": "mocha --reporter=spec test/*-test.js"
+ },
+ "version": "1.0.1"
+}
diff --git a/node_modules/hmac-drbg/test/drbg-test.js b/node_modules/hmac-drbg/test/drbg-test.js
new file mode 100644
index 00000000..14fd28a8
--- /dev/null
+++ b/node_modules/hmac-drbg/test/drbg-test.js
@@ -0,0 +1,91 @@
+'use strict';
+
+const assert = require('assert');
+const HmacDRBG = require('../');
+const hash = require('hash.js');
+
+describe('Hmac_DRBG', () => {
+ it('should support hmac-drbg-sha256', () => {
+ function doDrbg(opt) {
+ const drbg = HmacDRBG({
+ hash: hash.sha256,
+ entropy: opt.entropy,
+ entropyEnc: 'utf8',
+ nonce: opt.nonce,
+ nonceEnc: 'utf8',
+ pers: opt.pers,
+ persEnc: 'utf8'
+ });
+ return drbg.generate(opt.size, 'hex');
+ }
+
+ const test = [
+ {
+ entropy: 'totally random0123456789',
+ nonce: 'secret nonce',
+ pers: 'my drbg',
+ size: 32,
+ res: '018ec5f8e08c41e5ac974eb129ac297c5388ee1864324fa13d9b15cf98d9a157'
+ },
+ {
+ entropy: 'totally random0123456789',
+ nonce: 'secret nonce',
+ pers: null,
+ size: 32,
+ res: 'ed5d61ecf0ef38258e62f03bbb49f19f2cd07ba5145a840d83b134d5963b3633'
+ }
+ ];
+ for (let i = 0; i < test.length; i++)
+ assert.equal(doDrbg(test[i]), test[i].res);
+ });
+
+ describe('NIST vector', function() {
+ require('./fixtures/hmac-drbg-nist.json').forEach(function (opt) {
+ it('should not fail at ' + opt.name, function() {
+ const drbg = HmacDRBG({
+ hash: hash.sha256,
+ entropy: opt.entropy,
+ nonce: opt.nonce,
+ pers: opt.pers
+ });
+
+ let last;
+ for (let i = 0; i < opt.add.length; i++) {
+ let add = opt.add[i];
+ last = drbg.generate(opt.expected.length / 2, 'hex', add);
+ }
+ assert.equal(last, opt.expected);
+ });
+ });
+ });
+
+ describe('reseeding', function() {
+ it('should reseed', function() {
+ const entropy = 'totally random string with many chars that I typed ' +
+ 'in agony';
+ const nonce = 'nonce';
+ const pers = 'pers';
+
+ const original = HmacDRBG({
+ hash: hash.sha256,
+ entropy,
+ nonce,
+ pers
+ });
+ const reseeded = HmacDRBG({
+ hash: hash.sha256,
+ entropy,
+ nonce,
+ pers
+ });
+
+ assert.strictEqual(original.generate(32, 'hex'),
+ reseeded.generate(32, 'hex'));
+
+ reseeded.reseed('another absolutely random string');
+
+ assert.notEqual(original.generate(32, 'hex'),
+ reseeded.generate(32, 'hex'));
+ });
+ });
+});
diff --git a/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json b/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json
new file mode 100644
index 00000000..fce148a8
--- /dev/null
+++ b/node_modules/hmac-drbg/test/fixtures/hmac-drbg-nist.json
@@ -0,0 +1,332 @@
+[
+ {
+ "name": "0",
+ "entropy": "ca851911349384bffe89de1cbdc46e6831e44d34a4fb935ee285dd14b71a7488",
+ "nonce": "659ba96c601dc69fc902940805ec0ca8",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "e528e9abf2dece54d47c7e75e5fe302149f817ea9fb4bee6f4199697d04d5b89d54fbb978a15b5c443c9ec21036d2460b6f73ebad0dc2aba6e624abf07745bc107694bb7547bb0995f70de25d6b29e2d3011bb19d27676c07162c8b5ccde0668961df86803482cb37ed6d5c0bb8d50cf1f50d476aa0458bdaba806f48be9dcb8"
+ },
+ {
+ "name": "1",
+ "entropy": "79737479ba4e7642a221fcfd1b820b134e9e3540a35bb48ffae29c20f5418ea3",
+ "nonce": "3593259c092bef4129bc2c6c9e19f343",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "cf5ad5984f9e43917aa9087380dac46e410ddc8a7731859c84e9d0f31bd43655b924159413e2293b17610f211e09f770f172b8fb693a35b85d3b9e5e63b1dc252ac0e115002e9bedfb4b5b6fd43f33b8e0eafb2d072e1a6fee1f159df9b51e6c8da737e60d5032dd30544ec51558c6f080bdbdab1de8a939e961e06b5f1aca37"
+ },
+ {
+ "name": "2",
+ "entropy": "b340907445b97a8b589264de4a17c0bea11bb53ad72f9f33297f05d2879d898d",
+ "nonce": "65cb27735d83c0708f72684ea58f7ee5",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "75183aaaf3574bc68003352ad655d0e9ce9dd17552723b47fab0e84ef903694a32987eeddbdc48efd24195dbdac8a46ba2d972f5808f23a869e71343140361f58b243e62722088fe10a98e43372d252b144e00c89c215a76a121734bdc485486f65c0b16b8963524a3a70e6f38f169c12f6cbdd169dd48fe4421a235847a23ff"
+ },
+ {
+ "name": "3",
+ "entropy": "8e159f60060a7d6a7e6fe7c9f769c30b98acb1240b25e7ee33f1da834c0858e7",
+ "nonce": "c39d35052201bdcce4e127a04f04d644",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "62910a77213967ea93d6457e255af51fc79d49629af2fccd81840cdfbb4910991f50a477cbd29edd8a47c4fec9d141f50dfde7c4d8fcab473eff3cc2ee9e7cc90871f180777a97841597b0dd7e779eff9784b9cc33689fd7d48c0dcd341515ac8fecf5c55a6327aea8d58f97220b7462373e84e3b7417a57e80ce946d6120db5"
+ },
+ {
+ "name": "4",
+ "entropy": "74755f196305f7fb6689b2fe6835dc1d81484fc481a6b8087f649a1952f4df6a",
+ "nonce": "c36387a544a5f2b78007651a7b74b749",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "b2896f3af4375dab67e8062d82c1a005ef4ed119d13a9f18371b1b873774418684805fd659bfd69964f83a5cfe08667ddad672cafd16befffa9faed49865214f703951b443e6dca22edb636f3308380144b9333de4bcb0735710e4d9266786342fc53babe7bdbe3c01a3addb7f23c63ce2834729fabbd419b47beceb4a460236"
+ },
+ {
+ "name": "5",
+ "entropy": "4b222718f56a3260b3c2625a4cf80950b7d6c1250f170bd5c28b118abdf23b2f",
+ "nonce": "7aed52d0016fcaef0b6492bc40bbe0e9",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "a6da029b3665cd39fd50a54c553f99fed3626f4902ffe322dc51f0670dfe8742ed48415cf04bbad5ed3b23b18b7892d170a7dcf3ef8052d5717cb0c1a8b3010d9a9ea5de70ae5356249c0e098946030c46d9d3d209864539444374d8fbcae068e1d6548fa59e6562e6b2d1acbda8da0318c23752ebc9be0c1c1c5b3cf66dd967"
+ },
+ {
+ "name": "6",
+ "entropy": "b512633f27fb182a076917e39888ba3ff35d23c3742eb8f3c635a044163768e0",
+ "nonce": "e2c39b84629a3de5c301db5643af1c21",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "fb931d0d0194a97b48d5d4c231fdad5c61aedf1c3a55ac24983ecbf38487b1c93396c6b86ff3920cfa8c77e0146de835ea5809676e702dee6a78100da9aa43d8ec0bf5720befa71f82193205ac2ea403e8d7e0e6270b366dc4200be26afd9f63b7e79286a35c688c57cbff55ac747d4c28bb80a2b2097b3b62ea439950d75dff"
+ },
+ {
+ "name": "7",
+ "entropy": "aae3ffc8605a975befefcea0a7a286642bc3b95fb37bd0eb0585a4cabf8b3d1e",
+ "nonce": "9504c3c0c4310c1c0746a036c91d9034",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "2819bd3b0d216dad59ddd6c354c4518153a2b04374b07c49e64a8e4d055575dfbc9a8fcde68bd257ff1ba5c6000564b46d6dd7ecd9c5d684fd757df62d85211575d3562d7814008ab5c8bc00e7b5a649eae2318665b55d762de36eba00c2906c0e0ec8706edb493e51ca5eb4b9f015dc932f262f52a86b11c41e9a6d5b3bd431"
+ },
+ {
+ "name": "8",
+ "entropy": "b9475210b79b87180e746df704b3cbc7bf8424750e416a7fbb5ce3ef25a82cc6",
+ "nonce": "24baf03599c10df6ef44065d715a93f7",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "ae12d784f796183c50db5a1a283aa35ed9a2b685dacea97c596ff8c294906d1b1305ba1f80254eb062b874a8dfffa3378c809ab2869aa51a4e6a489692284a25038908a347342175c38401193b8afc498077e10522bec5c70882b7f760ea5946870bd9fc72961eedbe8bff4fd58c7cc1589bb4f369ed0d3bf26c5bbc62e0b2b2"
+ },
+ {
+ "name": "9",
+ "entropy": "27838eb44ceccb4e36210703ebf38f659bc39dd3277cd76b7a9bcd6bc964b628",
+ "nonce": "39cfe0210db2e7b0eb52a387476e7ea1",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "e5e72a53605d2aaa67832f97536445ab774dd9bff7f13a0d11fd27bf6593bfb52309f2d4f09d147192199ea584503181de87002f4ee085c7dc18bf32ce5315647a3708e6f404d6588c92b2dda599c131aa350d18c747b33dc8eda15cf40e95263d1231e1b4b68f8d829f86054d49cfdb1b8d96ab0465110569c8583a424a099a"
+ },
+ {
+ "name": "10",
+ "entropy": "d7129e4f47008ad60c9b5d081ff4ca8eb821a6e4deb91608bf4e2647835373a5",
+ "nonce": "a72882773f78c2fc4878295840a53012",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "0cbf48585c5de9183b7ff76557f8fc9ebcfdfde07e588a8641156f61b7952725bbee954f87e9b937513b16bba0f2e523d095114658e00f0f3772175acfcb3240a01de631c19c5a834c94cc58d04a6837f0d2782fa53d2f9f65178ee9c837222494c799e64c60406069bd319549b889fa00a0032dd7ba5b1cc9edbf58de82bfcd"
+ },
+ {
+ "name": "11",
+ "entropy": "67fe5e300c513371976c80de4b20d4473889c9f1214bce718bc32d1da3ab7532",
+ "nonce": "e256d88497738a33923aa003a8d7845c",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "b44660d64ef7bcebc7a1ab71f8407a02285c7592d755ae6766059e894f694373ed9c776c0cfc8594413eefb400ed427e158d687e28da3ecc205e0f7370fb089676bbb0fa591ec8d916c3d5f18a3eb4a417120705f3e2198154cd60648dbfcfc901242e15711cacd501b2c2826abe870ba32da785ed6f1fdc68f203d1ab43a64f"
+ },
+ {
+ "name": "12",
+ "entropy": "de8142541255c46d66efc6173b0fe3ffaf5936c897a3ce2e9d5835616aafa2cb",
+ "nonce": "d01f9002c407127bc3297a561d89b81d",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "64d1020929d74716446d8a4e17205d0756b5264867811aa24d0d0da8644db25d5cde474143c57d12482f6bf0f31d10af9d1da4eb6d701bdd605a8db74fb4e77f79aaa9e450afda50b18d19fae68f03db1d7b5f1738d2fdce9ad3ee9461b58ee242daf7a1d72c45c9213eca34e14810a9fca5208d5c56d8066bab1586f1513de7"
+ },
+ {
+ "name": "13",
+ "entropy": "4a8e0bd90bdb12f7748ad5f147b115d7385bb1b06aee7d8b76136a25d779bcb7",
+ "nonce": "7f3cce4af8c8ce3c45bdf23c6b181a00",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "320c7ca4bbeb7af977bc054f604b5086a3f237aa5501658112f3e7a33d2231f5536d2c85c1dad9d9b0bf7f619c81be4854661626839c8c10ae7fdc0c0b571be34b58d66da553676167b00e7d8e49f416aacb2926c6eb2c66ec98bffae20864cf92496db15e3b09e530b7b9648be8d3916b3c20a3a779bec7d66da63396849aaf"
+ },
+ {
+ "name": "14",
+ "entropy": "451ed024bc4b95f1025b14ec3616f5e42e80824541dc795a2f07500f92adc665",
+ "nonce": "2f28e6ee8de5879db1eccd58c994e5f0",
+ "pers": null,
+ "add": [
+ null,
+ null
+ ],
+ "expected": "3fb637085ab75f4e95655faae95885166a5fbb423bb03dbf0543be063bcd48799c4f05d4e522634d9275fe02e1edd920e26d9accd43709cb0d8f6e50aa54a5f3bdd618be23cf73ef736ed0ef7524b0d14d5bef8c8aec1cf1ed3e1c38a808b35e61a44078127c7cb3a8fd7addfa50fcf3ff3bc6d6bc355d5436fe9b71eb44f7fd"
+ },
+ {
+ "name": "0 with additional data",
+ "entropy": "d3cc4d1acf3dde0c4bd2290d262337042dc632948223d3a2eaab87da44295fbd",
+ "nonce": "0109b0e729f457328aa18569a9224921",
+ "pers": null,
+ "add": [
+ "3c311848183c9a212a26f27f8c6647e40375e466a0857cc39c4e47575d53f1f6",
+ "fcb9abd19ccfbccef88c9c39bfb3dd7b1c12266c9808992e305bc3cff566e4e4"
+ ],
+ "expected": "9c7b758b212cd0fcecd5daa489821712e3cdea4467b560ef5ddc24ab47749a1f1ffdbbb118f4e62fcfca3371b8fbfc5b0646b83e06bfbbab5fac30ea09ea2bc76f1ea568c9be0444b2cc90517b20ca825f2d0eccd88e7175538b85d90ab390183ca6395535d34473af6b5a5b88f5a59ee7561573337ea819da0dcc3573a22974"
+ },
+ {
+ "name": "1 with additional data",
+ "entropy": "f97a3cfd91faa046b9e61b9493d436c4931f604b22f1081521b3419151e8ff06",
+ "nonce": "11f3a7d43595357d58120bd1e2dd8aed",
+ "pers": null,
+ "add": [
+ "517289afe444a0fe5ed1a41dbbb5eb17150079bdd31e29cf2ff30034d8268e3b",
+ "88028d29ef80b4e6f0fe12f91d7449fe75062682e89c571440c0c9b52c42a6e0"
+ ],
+ "expected": "c6871cff0824fe55ea7689a52229886730450e5d362da5bf590dcf9acd67fed4cb32107df5d03969a66b1f6494fdf5d63d5b4d0d34ea7399a07d0116126d0d518c7c55ba46e12f62efc8fe28a51c9d428e6d371d7397ab319fc73ded4722e5b4f30004032a6128df5e7497ecf82ca7b0a50e867ef6728a4f509a8c859087039c"
+ },
+ {
+ "name": "2 with additional data",
+ "entropy": "0f2f23d64f481cabec7abb01db3aabf125c3173a044b9bf26844300b69dcac8b",
+ "nonce": "9a5ae13232b43aa19cfe8d7958b4b590",
+ "pers": null,
+ "add": [
+ "ec4c7a62acab73385f567da10e892ff395a0929f959231a5628188ce0c26e818",
+ "6b97b8c6b6bb8935e676c410c17caa8042aa3145f856d0a32b641e4ae5298648"
+ ],
+ "expected": "7480a361058bd9afa3db82c9d7586e42269102013f6ec5c269b6d05f17987847748684766b44918fd4b65e1648622fc0e0954178b0279dfc9fa99b66c6f53e51c4860131e9e0644287a4afe4ca8e480417e070db68008a97c3397e4b320b5d1a1d7e1d18a95cfedd7d1e74997052bf649d132deb9ec53aae7dafdab55e6dae93"
+ },
+ {
+ "name": "3 with additional data",
+ "entropy": "53c56660c78481be9c63284e005fcc14fbc7fb27732c9bf1366d01a426765a31",
+ "nonce": "dc7a14d0eb5b0b3534e717a0b3c64614",
+ "pers": null,
+ "add": [
+ "3aa848706ecb877f5bedf4ffc332d57c22e08747a47e75cff6f0fd1316861c95",
+ "9a401afa739b8f752fddacd291e0b854f5eff4a55b515e20cb319852189d3722"
+ ],
+ "expected": "5c0eb420e0bf41ce9323e815310e4e8303cd677a8a8b023f31f0d79f0ca15aeb636099a369fd074d69889865eac1b72ab3cbfebdb8cf460b00072802e2ec648b1349a5303be4ccaadd729f1a9ea17482fd026aaeb93f1602bc1404b9853adde40d6c34b844cf148bc088941ecfc1642c8c0b9778e45f3b07e06e21ee2c9e0300"
+ },
+ {
+ "name": "4 with additional data",
+ "entropy": "f63c804404902db334c54bb298fc271a21d7acd9f770278e089775710bf4fdd7",
+ "nonce": "3e45009ea9cb2a36ba1aa4bf39178200",
+ "pers": null,
+ "add": [
+ "d165a13dc8cc43f3f0952c3f5d3de4136954d983683d4a3e6d2dc4c89bf23423",
+ "75106bc86d0336df85097f6af8e80e2da59046a03fa65b06706b8bbc7ffc6785"
+ ],
+ "expected": "6363139bba32c22a0f5cd23ca6d437b5669b7d432f786b8af445471bee0b2d24c9d5f2f93717cbe00d1f010cc3b9c515fc9f7336d53d4d26ba5c0d76a90186663c8582eb739c7b6578a3328bf68dc2cec2cd89b3a90201f6993adcc854df0f5c6974d0f5570765a15fe03dbce28942dd2fd16ba2027e68abac83926969349af8"
+ },
+ {
+ "name": "5 with additional data",
+ "entropy": "2aaca9147da66c176615726b69e3e851cc3537f5f279fe7344233d8e44cfc99d",
+ "nonce": "4e171f080af9a6081bee9f183ac9e340",
+ "pers": null,
+ "add": [
+ "d75a2a6eb66c3833e50f5ec3d2e434cf791448d618026d0c360806d120ded669",
+ "b643b74c15b37612e6577ed7ca2a4c67a78d560af9eb50a4108fca742e87b8d6"
+ ],
+ "expected": "501dcdc977f4ba856f24eaa4968b374bebb3166b280334cb510232c31ebffde10fa47b7840ef3fe3b77725c2272d3a1d4219baf23e0290c622271edcced58838cf428f0517425d2e19e0d8c89377eecfc378245f283236fafa466c914b99672ceafab369e8889a0c866d8bd639db9fb797254262c6fd44cfa9045ad6340a60ef"
+ },
+ {
+ "name": "6 with additional data",
+ "entropy": "a2e4cd48a5cf918d6f55942d95fcb4e8465cdc4f77b7c52b6fae5b16a25ca306",
+ "nonce": "bef036716440db6e6d333d9d760b7ca8",
+ "pers": null,
+ "add": [
+ "bfa591c7287f3f931168f95e38869441d1f9a11035ad8ea625bb61b9ea17591c",
+ "c00c735463bca215adc372cb892b05e939bf669583341c06d4e31d0e5b363a37"
+ ],
+ "expected": "e7d136af69926a5421d4266ee0420fd729f2a4f7c295d3c966bdfa05268180b508b8a2852d1b3a06fd2ab3e13c54005123ef319f42d0c6d3a575e6e7e1496cb28aacadbcf83740fba8f35fcee04bb2ed8a51db3d3362b01094a62fb57e33c99a432f29fce6676cffbbcc05107e794e75e44a02d5e6d9d748c5fbff00a0178d65"
+ },
+ {
+ "name": "7 with additional data",
+ "entropy": "95a67771cba69011a79776e713145d309edae56fad5fd6d41d83eaff89df6e5e",
+ "nonce": "be5b5164e31ecc51ba6f7c3c5199eb33",
+ "pers": null,
+ "add": [
+ "065f693b229a7c4fd373cd15b3807552dd9bf98c5485cef361949d4e7d774b53",
+ "9afb62406f0e812c4f156d58b19a656c904813c1b4a45a0029ae7f50731f8014"
+ ],
+ "expected": "f61b61a6e79a41183e8ed6647899d2dc85cdaf5c3abf5c7f3bf37685946dc28f4923dc842f2d4326bd6ce0d50a84cb3ba869d72a36e246910eba6512ba36cd7ed3a5437c9245b00a344308c792b668b458d3c3e16dee2fbec41867da31084d46d8ec168de2148ef64fc5b72069abf5a6ada1ead2b7146bb793ff1c9c3690fa56"
+ },
+ {
+ "name": "8 with additional data",
+ "entropy": "a459e1815cbca4514ec8094d5ab2414a557ba6fe10e613c345338d0521e4bf90",
+ "nonce": "62221392e2552e76cd0d36df6e6068eb",
+ "pers": null,
+ "add": [
+ "0a3642b02b23b3ef62c701a63401124022f5b896de86dab6e6c7451497aa1dcc",
+ "c80514865901371c45ba92d9f95d50bb7c9dd1768cb3dfbc45b968da94965c6e"
+ ],
+ "expected": "464e6977b8adaef307c9623e41c357013249c9ffd77f405f3925cebb69f151ce8fbb6a277164002aee7858fc224f6499042aa1e6322deee9a5d133c31d640e12a7487c731ba03ad866a24675badb1d79220c40be689f79c2a0be93cb4dada3e0eac4ab140cb91998b6f11953e68f2319b050c40f71c34de9905ae41b2de1c2f6"
+ },
+ {
+ "name": "9 with additional data",
+ "entropy": "252c2cad613e002478162861880979ee4e323025eebb6fb2e0aa9f200e28e0a1",
+ "nonce": "d001bc9a8f2c8c242e4369df0c191989",
+ "pers": null,
+ "add": [
+ "9bcfc61cb2bc000034bb3db980eb47c76fb5ecdd40553eff113368d639b947fd",
+ "8b0565c767c2610ee0014582e9fbecb96e173005b60e9581503a6dca5637a26e"
+ ],
+ "expected": "e96c15fe8a60692b0a7d67171e0195ff6e1c87aab844221e71700d1bbee75feea695f6a740c9760bbe0e812ecf4061d8f0955bc0195e18c4fd1516ebca50ba6a6db86881737dbab8321707675479b87611db6af2c97ea361a5484555ead454defb1a64335de964fc803d40f3a6f057893d2afc25725754f4f00abc51920743dc"
+ },
+ {
+ "name": "10 with additional data",
+ "entropy": "8be0ca6adc8b3870c9d69d6021bc1f1d8eb9e649073d35ee6c5aa0b7e56ad8a5",
+ "nonce": "9d1265f7d51fdb65377f1e6edd6ae0e4",
+ "pers": null,
+ "add": [
+ "da86167ac997c406bb7979f423986a84ec6614d6caa7afc10aff0699a9b2cf7f",
+ "e4baa3c555950b53e2bfdba480cb4c94b59381bac1e33947e0c22e838a9534cf"
+ ],
+ "expected": "64384ecc4ea6b458efc227ca697eac5510092265520c0a0d8a0ccf9ed3ca9d58074671188c6a7ad16d0b050cdc072c125d7298d3a31d9f044a9ee40da0089a84fea28cc7f05f1716db952fad29a0e779635cb7a912a959be67be2f0a4170aace2981802e2ff6467e5b46f0ffbff3b42ba5935fd553c82482ac266acf1cd247d7"
+ },
+ {
+ "name": "11 with additional data",
+ "entropy": "d43a75b6adf26d60322284cb12ac38327792442aa8f040f60a2f331b33ac4a8f",
+ "nonce": "0682f8b091f811afacaacaec9b04d279",
+ "pers": null,
+ "add": [
+ "7fd3b8f512940da7de5d80199d9a7b42670c04a945775a3dba869546cbb9bc65",
+ "2575db20bc7aafc2a90a5dabab760db851d754777bc9f05616af1858b24ff3da"
+ ],
+ "expected": "0da7a8dc73c163014bf0841913d3067806456bbca6d5de92b85534c6545467313648d71ef17c923d090dc92cff8d4d1a9a2bb63e001dc2e8ab1a597999be3d6cf70ff63fee9985801395fbd4f4990430c4259fcae4fa1fcd73dc3187ccc102d04af7c07532885e5a226fc42809c48f22eecf4f6ab996ae4fcb144786957d9f41"
+ },
+ {
+ "name": "12 with additional data",
+ "entropy": "64352f236af5d32067a529a8fd05ba00a338c9de306371a0b00c36e610a48d18",
+ "nonce": "df99ed2c7608c870624b962a5dc68acd",
+ "pers": null,
+ "add": [
+ "da416335e7aaf60cf3d06fb438735ce796aad09034f8969c8f8c3f81e32fef24",
+ "a28c07c21a2297311adf172c19e83ca0a87731bdffb80548978d2d1cd82cf8a3"
+ ],
+ "expected": "132b9f25868729e3853d3c51f99a3b5fae6d4204bea70890daf62e042b776a526c8fb831b80a6d5d3f153237df1fd39b6fd9137963f5516d9cdd4e3f9195c46e9972c15d3edc6606e3368bde1594977fb88d0ca6e6f5f3d057ccadc7d7dab77dfc42658a1e972aa446b20d418286386a52dfc1c714d2ac548713268b0b709729"
+ },
+ {
+ "name": "13 with additional data",
+ "entropy": "282f4d2e05a2cd30e9087f5633089389449f04bac11df718c90bb351cd3653a5",
+ "nonce": "90a7daf3c0de9ea286081efc4a684dfb",
+ "pers": null,
+ "add": [
+ "2630b4ccc7271cc379cb580b0aaede3d3aa8c1c7ba002cf791f0752c3d739007",
+ "c31d69de499f1017be44e3d4fa77ecebc6a9b9934749fcf136f267b29115d2cc"
+ ],
+ "expected": "c899094520e0197c37b91dd50778e20a5b950decfb308d39f1db709447ae48f6101d9abe63a783fbb830eec1d359a5f61a2013728966d349213ee96382614aa4135058a967627183810c6622a2158cababe3b8ab99169c89e362108bf5955b4ffc47440f87e4bad0d36bc738e737e072e64d8842e7619f1be0af1141f05afe2d"
+ },
+ {
+ "name": "14 with additional data",
+ "entropy": "13c752b9e745ce77bbc7c0dbda982313d3fe66f903e83ebd8dbe4ff0c11380e9",
+ "nonce": "f1a533095d6174164bd7c82532464ae7",
+ "pers": null,
+ "add": [
+ "4f53db89b9ba7fc00767bc751fb8f3c103fe0f76acd6d5c7891ab15b2b7cf67c",
+ "582c2a7d34679088cca6bd28723c99aac07db46c332dc0153d1673256903b446"
+ ],
+ "expected": "6311f4c0c4cd1f86bd48349abb9eb930d4f63df5e5f7217d1d1b91a71d8a6938b0ad2b3e897bd7e3d8703db125fab30e03464fad41e5ddf5bf9aeeb5161b244468cfb26a9d956931a5412c97d64188b0da1bd907819c686f39af82e91cfeef0cbffb5d1e229e383bed26d06412988640706815a6e820796876f416653e464961"
+ }
+]
diff --git a/node_modules/htmlescape/.npmignore b/node_modules/htmlescape/.npmignore
new file mode 100644
index 00000000..e2a6af87
--- /dev/null
+++ b/node_modules/htmlescape/.npmignore
@@ -0,0 +1,4 @@
+/.gitignore
+/CHANGELOG.md
+/LICENSE
+/test
diff --git a/node_modules/htmlescape/CHANGELOG.md b/node_modules/htmlescape/CHANGELOG.md
new file mode 100644
index 00000000..d03d6204
--- /dev/null
+++ b/node_modules/htmlescape/CHANGELOG.md
@@ -0,0 +1,9 @@
+1.0.0 / 2014-09-29
+==================
+
+ * No more API changes
+
+0.0.1 / 2014-09-28
+==================
+
+ * Initial release
diff --git a/node_modules/htmlescape/LICENSE b/node_modules/htmlescape/LICENSE
new file mode 100644
index 00000000..bdff13e8
--- /dev/null
+++ b/node_modules/htmlescape/LICENSE
@@ -0,0 +1,9 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Andres Suarez
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/htmlescape/README.md b/node_modules/htmlescape/README.md
new file mode 100644
index 00000000..870ba166
--- /dev/null
+++ b/node_modules/htmlescape/README.md
@@ -0,0 +1,30 @@
+# htmlescape
+
+Properly escape JSON for usage as an object literal inside of a `
+```
diff --git a/node_modules/htmlescape/htmlescape.js b/node_modules/htmlescape/htmlescape.js
new file mode 100644
index 00000000..5f0ce6c7
--- /dev/null
+++ b/node_modules/htmlescape/htmlescape.js
@@ -0,0 +1,42 @@
+/**
+ * Properly escape JSON for usage as an object literal inside of a `
+
+
+```
+
+Browser support was done mostly for the online demo. If you find any errors - feel
+free to send pull requests with fixes. Also note, that IE and other old browsers
+needs [es5-shims](https://github.com/kriskowal/es5-shim) to operate.
+
+Notes:
+
+1. We have no resources to support browserified version. Don't expect it to be
+ well tested. Don't expect fast fixes if something goes wrong there.
+2. `!!js/function` in browser bundle will not work by default. If you really need
+ it - load `esprima` parser first (via amd or directly).
+3. `!!bin` in browser will return `Array`, because browsers do not support
+ node.js `Buffer` and adding Buffer shims is completely useless on practice.
+
+
+API
+---
+
+Here we cover the most 'useful' methods. If you need advanced details (creating
+your own tags), see [wiki](https://github.com/nodeca/js-yaml/wiki) and
+[examples](https://github.com/nodeca/js-yaml/tree/master/examples) for more
+info.
+
+``` javascript
+const yaml = require('js-yaml');
+const fs = require('fs');
+
+// Get document, or throw exception on error
+try {
+ const doc = yaml.safeLoad(fs.readFileSync('/home/ixti/example.yml', 'utf8'));
+ console.log(doc);
+} catch (e) {
+ console.log(e);
+}
+```
+
+
+### safeLoad (string [ , options ])
+
+**Recommended loading way.** Parses `string` as single YAML document. Returns either a
+plain object, a string or `undefined`, or throws `YAMLException` on error. By default, does
+not support regexps, functions and undefined. This method is safe for untrusted data.
+
+options:
+
+- `filename` _(default: null)_ - string to be used as a file path in
+ error/warning messages.
+- `onWarning` _(default: null)_ - function to call on warning messages.
+ Loader will call this function with an instance of `YAMLException` for each warning.
+- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ - specifies a schema to use.
+ - `FAILSAFE_SCHEMA` - only strings, arrays and plain objects:
+ http://www.yaml.org/spec/1.2/spec.html#id2802346
+ - `JSON_SCHEMA` - all JSON-supported types:
+ http://www.yaml.org/spec/1.2/spec.html#id2803231
+ - `CORE_SCHEMA` - same as `JSON_SCHEMA`:
+ http://www.yaml.org/spec/1.2/spec.html#id2804923
+ - `DEFAULT_SAFE_SCHEMA` - all supported YAML types, without unsafe ones
+ (`!!js/undefined`, `!!js/regexp` and `!!js/function`):
+ http://yaml.org/type/
+ - `DEFAULT_FULL_SCHEMA` - all supported YAML types.
+- `json` _(default: false)_ - compatibility with JSON.parse behaviour. If true, then duplicate keys in a mapping will override values rather than throwing an error.
+
+NOTE: This function **does not** understand multi-document sources, it throws
+exception on those.
+
+NOTE: JS-YAML **does not** support schema-specific tag resolution restrictions.
+So, the JSON schema is not as strictly defined in the YAML specification.
+It allows numbers in any notation, use `Null` and `NULL` as `null`, etc.
+The core schema also has no such restrictions. It allows binary notation for integers.
+
+
+### load (string [ , options ])
+
+**Use with care with untrusted sources**. The same as `safeLoad()` but uses
+`DEFAULT_FULL_SCHEMA` by default - adds some JavaScript-specific types:
+`!!js/function`, `!!js/regexp` and `!!js/undefined`. For untrusted sources, you
+must additionally validate object structure to avoid injections:
+
+``` javascript
+const untrusted_code = '"toString": ! "function (){very_evil_thing();}"';
+
+// I'm just converting that string, what could possibly go wrong?
+require('js-yaml').load(untrusted_code) + ''
+```
+
+
+### safeLoadAll (string [, iterator] [, options ])
+
+Same as `safeLoad()`, but understands multi-document sources. Applies
+`iterator` to each document if specified, or returns array of documents.
+
+``` javascript
+const yaml = require('js-yaml');
+
+yaml.safeLoadAll(data, function (doc) {
+ console.log(doc);
+});
+```
+
+
+### loadAll (string [, iterator] [ , options ])
+
+Same as `safeLoadAll()` but uses `DEFAULT_FULL_SCHEMA` by default.
+
+
+### safeDump (object [ , options ])
+
+Serializes `object` as a YAML document. Uses `DEFAULT_SAFE_SCHEMA`, so it will
+throw an exception if you try to dump regexps or functions. However, you can
+disable exceptions by setting the `skipInvalid` option to `true`.
+
+options:
+
+- `indent` _(default: 2)_ - indentation width to use (in spaces).
+- `noArrayIndent` _(default: false)_ - when true, will not add an indentation level to array elements
+- `skipInvalid` _(default: false)_ - do not throw on invalid types (like function
+ in the safe schema) and skip pairs and single values with such types.
+- `flowLevel` (default: -1) - specifies level of nesting, when to switch from
+ block to flow style for collections. -1 means block style everwhere
+- `styles` - "tag" => "style" map. Each tag may have own set of styles.
+- `schema` _(default: `DEFAULT_SAFE_SCHEMA`)_ specifies a schema to use.
+- `sortKeys` _(default: `false`)_ - if `true`, sort keys when dumping YAML. If a
+ function, use the function to sort the keys.
+- `lineWidth` _(default: `80`)_ - set max line width.
+- `noRefs` _(default: `false`)_ - if `true`, don't convert duplicate objects into references
+- `noCompatMode` _(default: `false`)_ - if `true` don't try to be compatible with older
+ yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1
+- `condenseFlow` _(default: `false`)_ - if `true` flow sequences will be condensed, omitting the space between `a, b`. Eg. `'[a,b]'`, and omitting the space between `key: value` and quoting the key. Eg. `'{"a":b}'` Can be useful when using yaml for pretty URL query params as spaces are %-encoded.
+
+The following table show availlable styles (e.g. "canonical",
+"binary"...) available for each tag (.e.g. !!null, !!int ...). Yaml
+output is shown on the right side after `=>` (default setting) or `->`:
+
+``` none
+!!null
+ "canonical" -> "~"
+ "lowercase" => "null"
+ "uppercase" -> "NULL"
+ "camelcase" -> "Null"
+
+!!int
+ "binary" -> "0b1", "0b101010", "0b1110001111010"
+ "octal" -> "01", "052", "016172"
+ "decimal" => "1", "42", "7290"
+ "hexadecimal" -> "0x1", "0x2A", "0x1C7A"
+
+!!bool
+ "lowercase" => "true", "false"
+ "uppercase" -> "TRUE", "FALSE"
+ "camelcase" -> "True", "False"
+
+!!float
+ "lowercase" => ".nan", '.inf'
+ "uppercase" -> ".NAN", '.INF'
+ "camelcase" -> ".NaN", '.Inf'
+```
+
+Example:
+
+``` javascript
+safeDump (object, {
+ 'styles': {
+ '!!null': 'canonical' // dump null as ~
+ },
+ 'sortKeys': true // sort object keys
+});
+```
+
+### dump (object [ , options ])
+
+Same as `safeDump()` but without limits (uses `DEFAULT_FULL_SCHEMA` by default).
+
+
+Supported YAML types
+--------------------
+
+The list of standard YAML tags and corresponding JavaScipt types. See also
+[YAML tag discussion](http://pyyaml.org/wiki/YAMLTagDiscussion) and
+[YAML types repository](http://yaml.org/type/).
+
+```
+!!null '' # null
+!!bool 'yes' # bool
+!!int '3...' # number
+!!float '3.14...' # number
+!!binary '...base64...' # buffer
+!!timestamp 'YYYY-...' # date
+!!omap [ ... ] # array of key-value pairs
+!!pairs [ ... ] # array or array pairs
+!!set { ... } # array of objects with given keys and null values
+!!str '...' # string
+!!seq [ ... ] # array
+!!map { ... } # object
+```
+
+**JavaScript-specific tags**
+
+```
+!!js/regexp /pattern/gim # RegExp
+!!js/undefined '' # Undefined
+!!js/function 'function () {...}' # Function
+```
+
+Caveats
+-------
+
+Note, that you use arrays or objects as key in JS-YAML. JS does not allow objects
+or arrays as keys, and stringifies (by calling `toString()` method) them at the
+moment of adding them.
+
+``` yaml
+---
+? [ foo, bar ]
+: - baz
+? { foo: bar }
+: - baz
+ - baz
+```
+
+``` javascript
+{ "foo,bar": ["baz"], "[object Object]": ["baz", "baz"] }
+```
+
+Also, reading of properties on implicit block mapping keys is not supported yet.
+So, the following YAML document cannot be loaded.
+
+``` yaml
+&anchor foo:
+ foo: bar
+ *anchor: duplicate key
+ baz: bat
+ *anchor: duplicate key
+```
+
+
+js-yaml for enterprise
+----------------------
+
+Available as part of the Tidelift Subscription
+
+The maintainers of js-yaml and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-js-yaml?utm_source=npm-js-yaml&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
diff --git a/node_modules/js-yaml/bin/js-yaml.js b/node_modules/js-yaml/bin/js-yaml.js
new file mode 100755
index 00000000..e79186be
--- /dev/null
+++ b/node_modules/js-yaml/bin/js-yaml.js
@@ -0,0 +1,132 @@
+#!/usr/bin/env node
+
+
+'use strict';
+
+/*eslint-disable no-console*/
+
+
+// stdlib
+var fs = require('fs');
+
+
+// 3rd-party
+var argparse = require('argparse');
+
+
+// internal
+var yaml = require('..');
+
+
+////////////////////////////////////////////////////////////////////////////////
+
+
+var cli = new argparse.ArgumentParser({
+ prog: 'js-yaml',
+ version: require('../package.json').version,
+ addHelp: true
+});
+
+
+cli.addArgument([ '-c', '--compact' ], {
+ help: 'Display errors in compact mode',
+ action: 'storeTrue'
+});
+
+
+// deprecated (not needed after we removed output colors)
+// option suppressed, but not completely removed for compatibility
+cli.addArgument([ '-j', '--to-json' ], {
+ help: argparse.Const.SUPPRESS,
+ dest: 'json',
+ action: 'storeTrue'
+});
+
+
+cli.addArgument([ '-t', '--trace' ], {
+ help: 'Show stack trace on error',
+ action: 'storeTrue'
+});
+
+cli.addArgument([ 'file' ], {
+ help: 'File to read, utf-8 encoded without BOM',
+ nargs: '?',
+ defaultValue: '-'
+});
+
+
+////////////////////////////////////////////////////////////////////////////////
+
+
+var options = cli.parseArgs();
+
+
+////////////////////////////////////////////////////////////////////////////////
+
+function readFile(filename, encoding, callback) {
+ if (options.file === '-') {
+ // read from stdin
+
+ var chunks = [];
+
+ process.stdin.on('data', function (chunk) {
+ chunks.push(chunk);
+ });
+
+ process.stdin.on('end', function () {
+ return callback(null, Buffer.concat(chunks).toString(encoding));
+ });
+ } else {
+ fs.readFile(filename, encoding, callback);
+ }
+}
+
+readFile(options.file, 'utf8', function (error, input) {
+ var output, isYaml;
+
+ if (error) {
+ if (error.code === 'ENOENT') {
+ console.error('File not found: ' + options.file);
+ process.exit(2);
+ }
+
+ console.error(
+ options.trace && error.stack ||
+ error.message ||
+ String(error));
+
+ process.exit(1);
+ }
+
+ try {
+ output = JSON.parse(input);
+ isYaml = false;
+ } catch (err) {
+ if (err instanceof SyntaxError) {
+ try {
+ output = [];
+ yaml.loadAll(input, function (doc) { output.push(doc); }, {});
+ isYaml = true;
+
+ if (output.length === 0) output = null;
+ else if (output.length === 1) output = output[0];
+
+ } catch (e) {
+ if (options.trace && err.stack) console.error(e.stack);
+ else console.error(e.toString(options.compact));
+
+ process.exit(1);
+ }
+ } else {
+ console.error(
+ options.trace && err.stack ||
+ err.message ||
+ String(err));
+
+ process.exit(1);
+ }
+ }
+
+ if (isYaml) console.log(JSON.stringify(output, null, ' '));
+ else console.log(yaml.dump(output));
+});
diff --git a/node_modules/js-yaml/dist/js-yaml.js b/node_modules/js-yaml/dist/js-yaml.js
new file mode 100644
index 00000000..78783207
--- /dev/null
+++ b/node_modules/js-yaml/dist/js-yaml.js
@@ -0,0 +1,3989 @@
+/*! js-yaml 3.14.1 https://github.com/nodeca/js-yaml */(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.jsyaml = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i */
+var CHAR_QUESTION = 0x3F; /* ? */
+var CHAR_COMMERCIAL_AT = 0x40; /* @ */
+var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
+var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
+var CHAR_GRAVE_ACCENT = 0x60; /* ` */
+var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
+var CHAR_VERTICAL_LINE = 0x7C; /* | */
+var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
+
+var ESCAPE_SEQUENCES = {};
+
+ESCAPE_SEQUENCES[0x00] = '\\0';
+ESCAPE_SEQUENCES[0x07] = '\\a';
+ESCAPE_SEQUENCES[0x08] = '\\b';
+ESCAPE_SEQUENCES[0x09] = '\\t';
+ESCAPE_SEQUENCES[0x0A] = '\\n';
+ESCAPE_SEQUENCES[0x0B] = '\\v';
+ESCAPE_SEQUENCES[0x0C] = '\\f';
+ESCAPE_SEQUENCES[0x0D] = '\\r';
+ESCAPE_SEQUENCES[0x1B] = '\\e';
+ESCAPE_SEQUENCES[0x22] = '\\"';
+ESCAPE_SEQUENCES[0x5C] = '\\\\';
+ESCAPE_SEQUENCES[0x85] = '\\N';
+ESCAPE_SEQUENCES[0xA0] = '\\_';
+ESCAPE_SEQUENCES[0x2028] = '\\L';
+ESCAPE_SEQUENCES[0x2029] = '\\P';
+
+var DEPRECATED_BOOLEANS_SYNTAX = [
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
+];
+
+function compileStyleMap(schema, map) {
+ var result, keys, index, length, tag, style, type;
+
+ if (map === null) return {};
+
+ result = {};
+ keys = Object.keys(map);
+
+ for (index = 0, length = keys.length; index < length; index += 1) {
+ tag = keys[index];
+ style = String(map[tag]);
+
+ if (tag.slice(0, 2) === '!!') {
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
+ }
+ type = schema.compiledTypeMap['fallback'][tag];
+
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
+ style = type.styleAliases[style];
+ }
+
+ result[tag] = style;
+ }
+
+ return result;
+}
+
+function encodeHex(character) {
+ var string, handle, length;
+
+ string = character.toString(16).toUpperCase();
+
+ if (character <= 0xFF) {
+ handle = 'x';
+ length = 2;
+ } else if (character <= 0xFFFF) {
+ handle = 'u';
+ length = 4;
+ } else if (character <= 0xFFFFFFFF) {
+ handle = 'U';
+ length = 8;
+ } else {
+ throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
+ }
+
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
+}
+
+function State(options) {
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
+ this.indent = Math.max(1, (options['indent'] || 2));
+ this.noArrayIndent = options['noArrayIndent'] || false;
+ this.skipInvalid = options['skipInvalid'] || false;
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
+ this.sortKeys = options['sortKeys'] || false;
+ this.lineWidth = options['lineWidth'] || 80;
+ this.noRefs = options['noRefs'] || false;
+ this.noCompatMode = options['noCompatMode'] || false;
+ this.condenseFlow = options['condenseFlow'] || false;
+
+ this.implicitTypes = this.schema.compiledImplicit;
+ this.explicitTypes = this.schema.compiledExplicit;
+
+ this.tag = null;
+ this.result = '';
+
+ this.duplicates = [];
+ this.usedDuplicates = null;
+}
+
+// Indents every line in a string. Empty lines (\n only) are not indented.
+function indentString(string, spaces) {
+ var ind = common.repeat(' ', spaces),
+ position = 0,
+ next = -1,
+ result = '',
+ line,
+ length = string.length;
+
+ while (position < length) {
+ next = string.indexOf('\n', position);
+ if (next === -1) {
+ line = string.slice(position);
+ position = length;
+ } else {
+ line = string.slice(position, next + 1);
+ position = next + 1;
+ }
+
+ if (line.length && line !== '\n') result += ind;
+
+ result += line;
+ }
+
+ return result;
+}
+
+function generateNextLine(state, level) {
+ return '\n' + common.repeat(' ', state.indent * level);
+}
+
+function testImplicitResolving(state, str) {
+ var index, length, type;
+
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
+ type = state.implicitTypes[index];
+
+ if (type.resolve(str)) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// [33] s-white ::= s-space | s-tab
+function isWhitespace(c) {
+ return c === CHAR_SPACE || c === CHAR_TAB;
+}
+
+// Returns true if the character can be printed without escaping.
+// From YAML 1.2: "any allowed characters known to be non-printable
+// should also be escaped. [However,] This isn’t mandatory"
+// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
+function isPrintable(c) {
+ return (0x00020 <= c && c <= 0x00007E)
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */)
+ || (0x10000 <= c && c <= 0x10FFFF);
+}
+
+// [34] ns-char ::= nb-char - s-white
+// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
+// [26] b-char ::= b-line-feed | b-carriage-return
+// [24] b-line-feed ::= #xA /* LF */
+// [25] b-carriage-return ::= #xD /* CR */
+// [3] c-byte-order-mark ::= #xFEFF
+function isNsChar(c) {
+ return isPrintable(c) && !isWhitespace(c)
+ // byte-order-mark
+ && c !== 0xFEFF
+ // b-char
+ && c !== CHAR_CARRIAGE_RETURN
+ && c !== CHAR_LINE_FEED;
+}
+
+// Simplified test for values allowed after the first character in plain style.
+function isPlainSafe(c, prev) {
+ // Uses a subset of nb-char - c-flow-indicator - ":" - "#"
+ // where nb-char ::= c-printable - b-char - c-byte-order-mark.
+ return isPrintable(c) && c !== 0xFEFF
+ // - c-flow-indicator
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ // - ":" - "#"
+ // /* An ns-char preceding */ "#"
+ && c !== CHAR_COLON
+ && ((c !== CHAR_SHARP) || (prev && isNsChar(prev)));
+}
+
+// Simplified test for values allowed as the first character in plain style.
+function isPlainSafeFirst(c) {
+ // Uses a subset of ns-char - c-indicator
+ // where ns-char = nb-char - s-white.
+ return isPrintable(c) && c !== 0xFEFF
+ && !isWhitespace(c) // - s-white
+ // - (c-indicator ::=
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
+ && c !== CHAR_MINUS
+ && c !== CHAR_QUESTION
+ && c !== CHAR_COLON
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
+ && c !== CHAR_SHARP
+ && c !== CHAR_AMPERSAND
+ && c !== CHAR_ASTERISK
+ && c !== CHAR_EXCLAMATION
+ && c !== CHAR_VERTICAL_LINE
+ && c !== CHAR_EQUALS
+ && c !== CHAR_GREATER_THAN
+ && c !== CHAR_SINGLE_QUOTE
+ && c !== CHAR_DOUBLE_QUOTE
+ // | “%” | “@” | “`”)
+ && c !== CHAR_PERCENT
+ && c !== CHAR_COMMERCIAL_AT
+ && c !== CHAR_GRAVE_ACCENT;
+}
+
+// Determines whether block indentation indicator is required.
+function needIndentIndicator(string) {
+ var leadingSpaceRe = /^\n* /;
+ return leadingSpaceRe.test(string);
+}
+
+var STYLE_PLAIN = 1,
+ STYLE_SINGLE = 2,
+ STYLE_LITERAL = 3,
+ STYLE_FOLDED = 4,
+ STYLE_DOUBLE = 5;
+
+// Determines which scalar styles are possible and returns the preferred style.
+// lineWidth = -1 => no limit.
+// Pre-conditions: str.length > 0.
+// Post-conditions:
+// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
+// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
+// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
+function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
+ var i;
+ var char, prev_char;
+ var hasLineBreak = false;
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
+ var shouldTrackWidth = lineWidth !== -1;
+ var previousLineBreak = -1; // count the first line correctly
+ var plain = isPlainSafeFirst(string.charCodeAt(0))
+ && !isWhitespace(string.charCodeAt(string.length - 1));
+
+ if (singleLineOnly) {
+ // Case: no block styles.
+ // Check for disallowed characters to rule out plain and single.
+ for (i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
+ plain = plain && isPlainSafe(char, prev_char);
+ }
+ } else {
+ // Case: block styles permitted.
+ for (i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ if (char === CHAR_LINE_FEED) {
+ hasLineBreak = true;
+ // Check if any line can be folded.
+ if (shouldTrackWidth) {
+ hasFoldableLine = hasFoldableLine ||
+ // Foldable line = too long, and not more-indented.
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' ');
+ previousLineBreak = i;
+ }
+ } else if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
+ plain = plain && isPlainSafe(char, prev_char);
+ }
+ // in case the end is missing a \n
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' '));
+ }
+ // Although every style can represent \n without escaping, prefer block styles
+ // for multiline, since they're more readable and they don't add empty lines.
+ // Also prefer folding a super-long line.
+ if (!hasLineBreak && !hasFoldableLine) {
+ // Strings interpretable as another type have to be quoted;
+ // e.g. the string 'true' vs. the boolean true.
+ return plain && !testAmbiguousType(string)
+ ? STYLE_PLAIN : STYLE_SINGLE;
+ }
+ // Edge case: block indentation indicator can only have one digit.
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
+ return STYLE_DOUBLE;
+ }
+ // At this point we know block styles are valid.
+ // Prefer literal style unless we want to fold.
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
+}
+
+// Note: line breaking/folding is implemented for only the folded style.
+// NB. We drop the last trailing newline (if any) of a returned block scalar
+// since the dumper adds its own newline. This always works:
+// • No ending newline => unaffected; already using strip "-" chomping.
+// • Ending newline => removed then restored.
+// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
+function writeScalar(state, string, level, iskey) {
+ state.dump = (function () {
+ if (string.length === 0) {
+ return "''";
+ }
+ if (!state.noCompatMode &&
+ DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
+ return "'" + string + "'";
+ }
+
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
+ // As indentation gets deeper, let the width decrease monotonically
+ // to the lower bound min(state.lineWidth, 40).
+ // Note that this implies
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
+ // This behaves better than a constant minimum width which disallows narrower options,
+ // or an indent threshold which causes the width to suddenly increase.
+ var lineWidth = state.lineWidth === -1
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
+
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
+ var singleLineOnly = iskey
+ // No block styles in flow mode.
+ || (state.flowLevel > -1 && level >= state.flowLevel);
+ function testAmbiguity(string) {
+ return testImplicitResolving(state, string);
+ }
+
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
+ case STYLE_PLAIN:
+ return string;
+ case STYLE_SINGLE:
+ return "'" + string.replace(/'/g, "''") + "'";
+ case STYLE_LITERAL:
+ return '|' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(string, indent));
+ case STYLE_FOLDED:
+ return '>' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
+ case STYLE_DOUBLE:
+ return '"' + escapeString(string, lineWidth) + '"';
+ default:
+ throw new YAMLException('impossible error: invalid scalar style');
+ }
+ }());
+}
+
+// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
+function blockHeader(string, indentPerLevel) {
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
+
+ // note the special case: the string '\n' counts as a "trailing" empty line.
+ var clip = string[string.length - 1] === '\n';
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
+ var chomp = keep ? '+' : (clip ? '' : '-');
+
+ return indentIndicator + chomp + '\n';
+}
+
+// (See the note for writeScalar.)
+function dropEndingNewline(string) {
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
+}
+
+// Note: a long line without a suitable break point will exceed the width limit.
+// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
+function foldString(string, width) {
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
+ // unless they're before or after a more-indented line, or at the very
+ // beginning or end, in which case $k$ maps to $k$.
+ // Therefore, parse each chunk as newline(s) followed by a content line.
+ var lineRe = /(\n+)([^\n]*)/g;
+
+ // first line (possibly an empty line)
+ var result = (function () {
+ var nextLF = string.indexOf('\n');
+ nextLF = nextLF !== -1 ? nextLF : string.length;
+ lineRe.lastIndex = nextLF;
+ return foldLine(string.slice(0, nextLF), width);
+ }());
+ // If we haven't reached the first content line yet, don't add an extra \n.
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
+ var moreIndented;
+
+ // rest of the lines
+ var match;
+ while ((match = lineRe.exec(string))) {
+ var prefix = match[1], line = match[2];
+ moreIndented = (line[0] === ' ');
+ result += prefix
+ + (!prevMoreIndented && !moreIndented && line !== ''
+ ? '\n' : '')
+ + foldLine(line, width);
+ prevMoreIndented = moreIndented;
+ }
+
+ return result;
+}
+
+// Greedy line breaking.
+// Picks the longest line under the limit each time,
+// otherwise settles for the shortest line over the limit.
+// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
+function foldLine(line, width) {
+ if (line === '' || line[0] === ' ') return line;
+
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
+ var match;
+ // start is an inclusive index. end, curr, and next are exclusive.
+ var start = 0, end, curr = 0, next = 0;
+ var result = '';
+
+ // Invariants: 0 <= start <= length-1.
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
+ // Inside the loop:
+ // A match implies length >= 2, so curr and next are <= length-2.
+ while ((match = breakRe.exec(line))) {
+ next = match.index;
+ // maintain invariant: curr - start <= width
+ if (next - start > width) {
+ end = (curr > start) ? curr : next; // derive end <= length-2
+ result += '\n' + line.slice(start, end);
+ // skip the space that was output as \n
+ start = end + 1; // derive start <= length-1
+ }
+ curr = next;
+ }
+
+ // By the invariants, start <= length-1, so there is something left over.
+ // It is either the whole string or a part starting from non-whitespace.
+ result += '\n';
+ // Insert a break if the remainder is too long and there is a break available.
+ if (line.length - start > width && curr > start) {
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
+ } else {
+ result += line.slice(start);
+ }
+
+ return result.slice(1); // drop extra \n joiner
+}
+
+// Escapes a double-quoted string.
+function escapeString(string) {
+ var result = '';
+ var char, nextChar;
+ var escapeSeq;
+
+ for (var i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ // Check for surrogate pairs (reference Unicode 3.0 section "3.7 Surrogates").
+ if (char >= 0xD800 && char <= 0xDBFF/* high surrogate */) {
+ nextChar = string.charCodeAt(i + 1);
+ if (nextChar >= 0xDC00 && nextChar <= 0xDFFF/* low surrogate */) {
+ // Combine the surrogate pair and store it escaped.
+ result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);
+ // Advance index one extra since we already used that char here.
+ i++; continue;
+ }
+ }
+ escapeSeq = ESCAPE_SEQUENCES[char];
+ result += !escapeSeq && isPrintable(char)
+ ? string[i]
+ : escapeSeq || encodeHex(char);
+ }
+
+ return result;
+}
+
+function writeFlowSequence(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ // Write only valid elements.
+ if (writeNode(state, level, object[index], false, false)) {
+ if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');
+ _result += state.dump;
+ }
+ }
+
+ state.tag = _tag;
+ state.dump = '[' + _result + ']';
+}
+
+function writeBlockSequence(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ // Write only valid elements.
+ if (writeNode(state, level + 1, object[index], true, true)) {
+ if (!compact || index !== 0) {
+ _result += generateNextLine(state, level);
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ _result += '-';
+ } else {
+ _result += '- ';
+ }
+
+ _result += state.dump;
+ }
+ }
+
+ state.tag = _tag;
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
+}
+
+function writeFlowMapping(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ pairBuffer;
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+
+ pairBuffer = '';
+ if (index !== 0) pairBuffer += ', ';
+
+ if (state.condenseFlow) pairBuffer += '"';
+
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
+
+ if (!writeNode(state, level, objectKey, false, false)) {
+ continue; // Skip this pair because of invalid key;
+ }
+
+ if (state.dump.length > 1024) pairBuffer += '? ';
+
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
+
+ if (!writeNode(state, level, objectValue, false, false)) {
+ continue; // Skip this pair because of invalid value.
+ }
+
+ pairBuffer += state.dump;
+
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
+
+ state.tag = _tag;
+ state.dump = '{' + _result + '}';
+}
+
+function writeBlockMapping(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ explicitPair,
+ pairBuffer;
+
+ // Allow sorting keys so that the output file is deterministic
+ if (state.sortKeys === true) {
+ // Default sorting
+ objectKeyList.sort();
+ } else if (typeof state.sortKeys === 'function') {
+ // Custom sort function
+ objectKeyList.sort(state.sortKeys);
+ } else if (state.sortKeys) {
+ // Something is wrong
+ throw new YAMLException('sortKeys must be a boolean or a function');
+ }
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ pairBuffer = '';
+
+ if (!compact || index !== 0) {
+ pairBuffer += generateNextLine(state, level);
+ }
+
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
+
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
+ continue; // Skip this pair because of invalid key.
+ }
+
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
+ (state.dump && state.dump.length > 1024);
+
+ if (explicitPair) {
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += '?';
+ } else {
+ pairBuffer += '? ';
+ }
+ }
+
+ pairBuffer += state.dump;
+
+ if (explicitPair) {
+ pairBuffer += generateNextLine(state, level);
+ }
+
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
+ continue; // Skip this pair because of invalid value.
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += ':';
+ } else {
+ pairBuffer += ': ';
+ }
+
+ pairBuffer += state.dump;
+
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
+
+ state.tag = _tag;
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
+}
+
+function detectType(state, object, explicit) {
+ var _result, typeList, index, length, type, style;
+
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
+
+ for (index = 0, length = typeList.length; index < length; index += 1) {
+ type = typeList[index];
+
+ if ((type.instanceOf || type.predicate) &&
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
+ (!type.predicate || type.predicate(object))) {
+
+ state.tag = explicit ? type.tag : '?';
+
+ if (type.represent) {
+ style = state.styleMap[type.tag] || type.defaultStyle;
+
+ if (_toString.call(type.represent) === '[object Function]') {
+ _result = type.represent(object, style);
+ } else if (_hasOwnProperty.call(type.represent, style)) {
+ _result = type.represent[style](object, style);
+ } else {
+ throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
+ }
+
+ state.dump = _result;
+ }
+
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// Serializes `object` and writes it to global `result`.
+// Returns true on success, or false on invalid object.
+//
+function writeNode(state, level, object, block, compact, iskey) {
+ state.tag = null;
+ state.dump = object;
+
+ if (!detectType(state, object, false)) {
+ detectType(state, object, true);
+ }
+
+ var type = _toString.call(state.dump);
+
+ if (block) {
+ block = (state.flowLevel < 0 || state.flowLevel > level);
+ }
+
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
+ duplicateIndex,
+ duplicate;
+
+ if (objectOrArray) {
+ duplicateIndex = state.duplicates.indexOf(object);
+ duplicate = duplicateIndex !== -1;
+ }
+
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
+ compact = false;
+ }
+
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
+ state.dump = '*ref_' + duplicateIndex;
+ } else {
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
+ state.usedDuplicates[duplicateIndex] = true;
+ }
+ if (type === '[object Object]') {
+ if (block && (Object.keys(state.dump).length !== 0)) {
+ writeBlockMapping(state, level, state.dump, compact);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowMapping(state, level, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object Array]') {
+ var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;
+ if (block && (state.dump.length !== 0)) {
+ writeBlockSequence(state, arrayLevel, state.dump, compact);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowSequence(state, arrayLevel, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object String]') {
+ if (state.tag !== '?') {
+ writeScalar(state, state.dump, level, iskey);
+ }
+ } else {
+ if (state.skipInvalid) return false;
+ throw new YAMLException('unacceptable kind of an object to dump ' + type);
+ }
+
+ if (state.tag !== null && state.tag !== '?') {
+ state.dump = '!<' + state.tag + '> ' + state.dump;
+ }
+ }
+
+ return true;
+}
+
+function getDuplicateReferences(object, state) {
+ var objects = [],
+ duplicatesIndexes = [],
+ index,
+ length;
+
+ inspectNode(object, objects, duplicatesIndexes);
+
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
+ }
+ state.usedDuplicates = new Array(length);
+}
+
+function inspectNode(object, objects, duplicatesIndexes) {
+ var objectKeyList,
+ index,
+ length;
+
+ if (object !== null && typeof object === 'object') {
+ index = objects.indexOf(object);
+ if (index !== -1) {
+ if (duplicatesIndexes.indexOf(index) === -1) {
+ duplicatesIndexes.push(index);
+ }
+ } else {
+ objects.push(object);
+
+ if (Array.isArray(object)) {
+ for (index = 0, length = object.length; index < length; index += 1) {
+ inspectNode(object[index], objects, duplicatesIndexes);
+ }
+ } else {
+ objectKeyList = Object.keys(object);
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
+ }
+ }
+ }
+ }
+}
+
+function dump(input, options) {
+ options = options || {};
+
+ var state = new State(options);
+
+ if (!state.noRefs) getDuplicateReferences(input, state);
+
+ if (writeNode(state, 0, input, true, true)) return state.dump + '\n';
+
+ return '';
+}
+
+function safeDump(input, options) {
+ return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+module.exports.dump = dump;
+module.exports.safeDump = safeDump;
+
+},{"./common":2,"./exception":4,"./schema/default_full":9,"./schema/default_safe":10}],4:[function(require,module,exports){
+// YAML error class. http://stackoverflow.com/questions/8458984
+//
+'use strict';
+
+function YAMLException(reason, mark) {
+ // Super constructor
+ Error.call(this);
+
+ this.name = 'YAMLException';
+ this.reason = reason;
+ this.mark = mark;
+ this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
+
+ // Include stack trace in error object
+ if (Error.captureStackTrace) {
+ // Chrome and NodeJS
+ Error.captureStackTrace(this, this.constructor);
+ } else {
+ // FF, IE 10+ and Safari 6+. Fallback for others
+ this.stack = (new Error()).stack || '';
+ }
+}
+
+
+// Inherit from Error
+YAMLException.prototype = Object.create(Error.prototype);
+YAMLException.prototype.constructor = YAMLException;
+
+
+YAMLException.prototype.toString = function toString(compact) {
+ var result = this.name + ': ';
+
+ result += this.reason || '(unknown reason)';
+
+ if (!compact && this.mark) {
+ result += ' ' + this.mark.toString();
+ }
+
+ return result;
+};
+
+
+module.exports = YAMLException;
+
+},{}],5:[function(require,module,exports){
+'use strict';
+
+/*eslint-disable max-len,no-use-before-define*/
+
+var common = require('./common');
+var YAMLException = require('./exception');
+var Mark = require('./mark');
+var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
+var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
+
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+
+
+var CONTEXT_FLOW_IN = 1;
+var CONTEXT_FLOW_OUT = 2;
+var CONTEXT_BLOCK_IN = 3;
+var CONTEXT_BLOCK_OUT = 4;
+
+
+var CHOMPING_CLIP = 1;
+var CHOMPING_STRIP = 2;
+var CHOMPING_KEEP = 3;
+
+
+var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
+var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
+var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
+var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
+var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
+
+
+function _class(obj) { return Object.prototype.toString.call(obj); }
+
+function is_EOL(c) {
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
+}
+
+function is_WHITE_SPACE(c) {
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
+}
+
+function is_WS_OR_EOL(c) {
+ return (c === 0x09/* Tab */) ||
+ (c === 0x20/* Space */) ||
+ (c === 0x0A/* LF */) ||
+ (c === 0x0D/* CR */);
+}
+
+function is_FLOW_INDICATOR(c) {
+ return c === 0x2C/* , */ ||
+ c === 0x5B/* [ */ ||
+ c === 0x5D/* ] */ ||
+ c === 0x7B/* { */ ||
+ c === 0x7D/* } */;
+}
+
+function fromHexCode(c) {
+ var lc;
+
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
+ return c - 0x30;
+ }
+
+ /*eslint-disable no-bitwise*/
+ lc = c | 0x20;
+
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
+ return lc - 0x61 + 10;
+ }
+
+ return -1;
+}
+
+function escapedHexLen(c) {
+ if (c === 0x78/* x */) { return 2; }
+ if (c === 0x75/* u */) { return 4; }
+ if (c === 0x55/* U */) { return 8; }
+ return 0;
+}
+
+function fromDecimalCode(c) {
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
+ return c - 0x30;
+ }
+
+ return -1;
+}
+
+function simpleEscapeSequence(c) {
+ /* eslint-disable indent */
+ return (c === 0x30/* 0 */) ? '\x00' :
+ (c === 0x61/* a */) ? '\x07' :
+ (c === 0x62/* b */) ? '\x08' :
+ (c === 0x74/* t */) ? '\x09' :
+ (c === 0x09/* Tab */) ? '\x09' :
+ (c === 0x6E/* n */) ? '\x0A' :
+ (c === 0x76/* v */) ? '\x0B' :
+ (c === 0x66/* f */) ? '\x0C' :
+ (c === 0x72/* r */) ? '\x0D' :
+ (c === 0x65/* e */) ? '\x1B' :
+ (c === 0x20/* Space */) ? ' ' :
+ (c === 0x22/* " */) ? '\x22' :
+ (c === 0x2F/* / */) ? '/' :
+ (c === 0x5C/* \ */) ? '\x5C' :
+ (c === 0x4E/* N */) ? '\x85' :
+ (c === 0x5F/* _ */) ? '\xA0' :
+ (c === 0x4C/* L */) ? '\u2028' :
+ (c === 0x50/* P */) ? '\u2029' : '';
+}
+
+function charFromCodepoint(c) {
+ if (c <= 0xFFFF) {
+ return String.fromCharCode(c);
+ }
+ // Encode UTF-16 surrogate pair
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
+ return String.fromCharCode(
+ ((c - 0x010000) >> 10) + 0xD800,
+ ((c - 0x010000) & 0x03FF) + 0xDC00
+ );
+}
+
+var simpleEscapeCheck = new Array(256); // integer, for fast access
+var simpleEscapeMap = new Array(256);
+for (var i = 0; i < 256; i++) {
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
+}
+
+
+function State(input, options) {
+ this.input = input;
+
+ this.filename = options['filename'] || null;
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
+ this.onWarning = options['onWarning'] || null;
+ this.legacy = options['legacy'] || false;
+ this.json = options['json'] || false;
+ this.listener = options['listener'] || null;
+
+ this.implicitTypes = this.schema.compiledImplicit;
+ this.typeMap = this.schema.compiledTypeMap;
+
+ this.length = input.length;
+ this.position = 0;
+ this.line = 0;
+ this.lineStart = 0;
+ this.lineIndent = 0;
+
+ this.documents = [];
+
+ /*
+ this.version;
+ this.checkLineBreaks;
+ this.tagMap;
+ this.anchorMap;
+ this.tag;
+ this.anchor;
+ this.kind;
+ this.result;*/
+
+}
+
+
+function generateError(state, message) {
+ return new YAMLException(
+ message,
+ new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));
+}
+
+function throwError(state, message) {
+ throw generateError(state, message);
+}
+
+function throwWarning(state, message) {
+ if (state.onWarning) {
+ state.onWarning.call(null, generateError(state, message));
+ }
+}
+
+
+var directiveHandlers = {
+
+ YAML: function handleYamlDirective(state, name, args) {
+
+ var match, major, minor;
+
+ if (state.version !== null) {
+ throwError(state, 'duplication of %YAML directive');
+ }
+
+ if (args.length !== 1) {
+ throwError(state, 'YAML directive accepts exactly one argument');
+ }
+
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
+
+ if (match === null) {
+ throwError(state, 'ill-formed argument of the YAML directive');
+ }
+
+ major = parseInt(match[1], 10);
+ minor = parseInt(match[2], 10);
+
+ if (major !== 1) {
+ throwError(state, 'unacceptable YAML version of the document');
+ }
+
+ state.version = args[0];
+ state.checkLineBreaks = (minor < 2);
+
+ if (minor !== 1 && minor !== 2) {
+ throwWarning(state, 'unsupported YAML version of the document');
+ }
+ },
+
+ TAG: function handleTagDirective(state, name, args) {
+
+ var handle, prefix;
+
+ if (args.length !== 2) {
+ throwError(state, 'TAG directive accepts exactly two arguments');
+ }
+
+ handle = args[0];
+ prefix = args[1];
+
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
+ }
+
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
+ }
+
+ if (!PATTERN_TAG_URI.test(prefix)) {
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
+ }
+
+ state.tagMap[handle] = prefix;
+ }
+};
+
+
+function captureSegment(state, start, end, checkJson) {
+ var _position, _length, _character, _result;
+
+ if (start < end) {
+ _result = state.input.slice(start, end);
+
+ if (checkJson) {
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
+ _character = _result.charCodeAt(_position);
+ if (!(_character === 0x09 ||
+ (0x20 <= _character && _character <= 0x10FFFF))) {
+ throwError(state, 'expected valid JSON character');
+ }
+ }
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
+ throwError(state, 'the stream contains non-printable characters');
+ }
+
+ state.result += _result;
+ }
+}
+
+function mergeMappings(state, destination, source, overridableKeys) {
+ var sourceKeys, key, index, quantity;
+
+ if (!common.isObject(source)) {
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
+ }
+
+ sourceKeys = Object.keys(source);
+
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
+ key = sourceKeys[index];
+
+ if (!_hasOwnProperty.call(destination, key)) {
+ destination[key] = source[key];
+ overridableKeys[key] = true;
+ }
+ }
+}
+
+function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
+ var index, quantity;
+
+ // The output is a plain object here, so keys can only be strings.
+ // We need to convert keyNode to a string, but doing so can hang the process
+ // (deeply nested arrays that explode exponentially using aliases).
+ if (Array.isArray(keyNode)) {
+ keyNode = Array.prototype.slice.call(keyNode);
+
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
+ if (Array.isArray(keyNode[index])) {
+ throwError(state, 'nested arrays are not supported inside keys');
+ }
+
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
+ keyNode[index] = '[object Object]';
+ }
+ }
+ }
+
+ // Avoid code execution in load() via toString property
+ // (still use its own toString for arrays, timestamps,
+ // and whatever user schema extensions happen to have @@toStringTag)
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
+ keyNode = '[object Object]';
+ }
+
+
+ keyNode = String(keyNode);
+
+ if (_result === null) {
+ _result = {};
+ }
+
+ if (keyTag === 'tag:yaml.org,2002:merge') {
+ if (Array.isArray(valueNode)) {
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
+ }
+ } else {
+ mergeMappings(state, _result, valueNode, overridableKeys);
+ }
+ } else {
+ if (!state.json &&
+ !_hasOwnProperty.call(overridableKeys, keyNode) &&
+ _hasOwnProperty.call(_result, keyNode)) {
+ state.line = startLine || state.line;
+ state.position = startPos || state.position;
+ throwError(state, 'duplicated mapping key');
+ }
+ _result[keyNode] = valueNode;
+ delete overridableKeys[keyNode];
+ }
+
+ return _result;
+}
+
+function readLineBreak(state) {
+ var ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x0A/* LF */) {
+ state.position++;
+ } else if (ch === 0x0D/* CR */) {
+ state.position++;
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
+ state.position++;
+ }
+ } else {
+ throwError(state, 'a line break is expected');
+ }
+
+ state.line += 1;
+ state.lineStart = state.position;
+}
+
+function skipSeparationSpace(state, allowComments, checkIndent) {
+ var lineBreaks = 0,
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (allowComments && ch === 0x23/* # */) {
+ do {
+ ch = state.input.charCodeAt(++state.position);
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
+ }
+
+ if (is_EOL(ch)) {
+ readLineBreak(state);
+
+ ch = state.input.charCodeAt(state.position);
+ lineBreaks++;
+ state.lineIndent = 0;
+
+ while (ch === 0x20/* Space */) {
+ state.lineIndent++;
+ ch = state.input.charCodeAt(++state.position);
+ }
+ } else {
+ break;
+ }
+ }
+
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
+ throwWarning(state, 'deficient indentation');
+ }
+
+ return lineBreaks;
+}
+
+function testDocumentSeparator(state) {
+ var _position = state.position,
+ ch;
+
+ ch = state.input.charCodeAt(_position);
+
+ // Condition state.position === state.lineStart is tested
+ // in parent on each call, for efficiency. No needs to test here again.
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
+ ch === state.input.charCodeAt(_position + 1) &&
+ ch === state.input.charCodeAt(_position + 2)) {
+
+ _position += 3;
+
+ ch = state.input.charCodeAt(_position);
+
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+function writeFoldedLines(state, count) {
+ if (count === 1) {
+ state.result += ' ';
+ } else if (count > 1) {
+ state.result += common.repeat('\n', count - 1);
+ }
+}
+
+
+function readPlainScalar(state, nodeIndent, withinFlowCollection) {
+ var preceding,
+ following,
+ captureStart,
+ captureEnd,
+ hasPendingContent,
+ _line,
+ _lineStart,
+ _lineIndent,
+ _kind = state.kind,
+ _result = state.result,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (is_WS_OR_EOL(ch) ||
+ is_FLOW_INDICATOR(ch) ||
+ ch === 0x23/* # */ ||
+ ch === 0x26/* & */ ||
+ ch === 0x2A/* * */ ||
+ ch === 0x21/* ! */ ||
+ ch === 0x7C/* | */ ||
+ ch === 0x3E/* > */ ||
+ ch === 0x27/* ' */ ||
+ ch === 0x22/* " */ ||
+ ch === 0x25/* % */ ||
+ ch === 0x40/* @ */ ||
+ ch === 0x60/* ` */) {
+ return false;
+ }
+
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following) ||
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
+ return false;
+ }
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ captureStart = captureEnd = state.position;
+ hasPendingContent = false;
+
+ while (ch !== 0) {
+ if (ch === 0x3A/* : */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following) ||
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
+ break;
+ }
+
+ } else if (ch === 0x23/* # */) {
+ preceding = state.input.charCodeAt(state.position - 1);
+
+ if (is_WS_OR_EOL(preceding)) {
+ break;
+ }
+
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
+ break;
+
+ } else if (is_EOL(ch)) {
+ _line = state.line;
+ _lineStart = state.lineStart;
+ _lineIndent = state.lineIndent;
+ skipSeparationSpace(state, false, -1);
+
+ if (state.lineIndent >= nodeIndent) {
+ hasPendingContent = true;
+ ch = state.input.charCodeAt(state.position);
+ continue;
+ } else {
+ state.position = captureEnd;
+ state.line = _line;
+ state.lineStart = _lineStart;
+ state.lineIndent = _lineIndent;
+ break;
+ }
+ }
+
+ if (hasPendingContent) {
+ captureSegment(state, captureStart, captureEnd, false);
+ writeFoldedLines(state, state.line - _line);
+ captureStart = captureEnd = state.position;
+ hasPendingContent = false;
+ }
+
+ if (!is_WHITE_SPACE(ch)) {
+ captureEnd = state.position + 1;
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ captureSegment(state, captureStart, captureEnd, false);
+
+ if (state.result) {
+ return true;
+ }
+
+ state.kind = _kind;
+ state.result = _result;
+ return false;
+}
+
+function readSingleQuotedScalar(state, nodeIndent) {
+ var ch,
+ captureStart, captureEnd;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x27/* ' */) {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ state.position++;
+ captureStart = captureEnd = state.position;
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x27/* ' */) {
+ captureSegment(state, captureStart, state.position, true);
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x27/* ' */) {
+ captureStart = state.position;
+ state.position++;
+ captureEnd = state.position;
+ } else {
+ return true;
+ }
+
+ } else if (is_EOL(ch)) {
+ captureSegment(state, captureStart, captureEnd, true);
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
+ captureStart = captureEnd = state.position;
+
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
+
+ } else {
+ state.position++;
+ captureEnd = state.position;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
+}
+
+function readDoubleQuotedScalar(state, nodeIndent) {
+ var captureStart,
+ captureEnd,
+ hexLength,
+ hexResult,
+ tmp,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x22/* " */) {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ state.position++;
+ captureStart = captureEnd = state.position;
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x22/* " */) {
+ captureSegment(state, captureStart, state.position, true);
+ state.position++;
+ return true;
+
+ } else if (ch === 0x5C/* \ */) {
+ captureSegment(state, captureStart, state.position, true);
+ ch = state.input.charCodeAt(++state.position);
+
+ if (is_EOL(ch)) {
+ skipSeparationSpace(state, false, nodeIndent);
+
+ // TODO: rework to inline fn with no type cast?
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
+ state.result += simpleEscapeMap[ch];
+ state.position++;
+
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
+ hexLength = tmp;
+ hexResult = 0;
+
+ for (; hexLength > 0; hexLength--) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if ((tmp = fromHexCode(ch)) >= 0) {
+ hexResult = (hexResult << 4) + tmp;
+
+ } else {
+ throwError(state, 'expected hexadecimal character');
+ }
+ }
+
+ state.result += charFromCodepoint(hexResult);
+
+ state.position++;
+
+ } else {
+ throwError(state, 'unknown escape sequence');
+ }
+
+ captureStart = captureEnd = state.position;
+
+ } else if (is_EOL(ch)) {
+ captureSegment(state, captureStart, captureEnd, true);
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
+ captureStart = captureEnd = state.position;
+
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
+
+ } else {
+ state.position++;
+ captureEnd = state.position;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
+}
+
+function readFlowCollection(state, nodeIndent) {
+ var readNext = true,
+ _line,
+ _tag = state.tag,
+ _result,
+ _anchor = state.anchor,
+ following,
+ terminator,
+ isPair,
+ isExplicitPair,
+ isMapping,
+ overridableKeys = {},
+ keyNode,
+ keyTag,
+ valueNode,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x5B/* [ */) {
+ terminator = 0x5D;/* ] */
+ isMapping = false;
+ _result = [];
+ } else if (ch === 0x7B/* { */) {
+ terminator = 0x7D;/* } */
+ isMapping = true;
+ _result = {};
+ } else {
+ return false;
+ }
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+
+ while (ch !== 0) {
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === terminator) {
+ state.position++;
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = isMapping ? 'mapping' : 'sequence';
+ state.result = _result;
+ return true;
+ } else if (!readNext) {
+ throwError(state, 'missed comma between flow collection entries');
+ }
+
+ keyTag = keyNode = valueNode = null;
+ isPair = isExplicitPair = false;
+
+ if (ch === 0x3F/* ? */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following)) {
+ isPair = isExplicitPair = true;
+ state.position++;
+ skipSeparationSpace(state, true, nodeIndent);
+ }
+ }
+
+ _line = state.line;
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
+ keyTag = state.tag;
+ keyNode = state.result;
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
+ isPair = true;
+ ch = state.input.charCodeAt(++state.position);
+ skipSeparationSpace(state, true, nodeIndent);
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
+ valueNode = state.result;
+ }
+
+ if (isMapping) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
+ } else if (isPair) {
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
+ } else {
+ _result.push(keyNode);
+ }
+
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x2C/* , */) {
+ readNext = true;
+ ch = state.input.charCodeAt(++state.position);
+ } else {
+ readNext = false;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a flow collection');
+}
+
+function readBlockScalar(state, nodeIndent) {
+ var captureStart,
+ folding,
+ chomping = CHOMPING_CLIP,
+ didReadContent = false,
+ detectedIndent = false,
+ textIndent = nodeIndent,
+ emptyLines = 0,
+ atMoreIndented = false,
+ tmp,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x7C/* | */) {
+ folding = false;
+ } else if (ch === 0x3E/* > */) {
+ folding = true;
+ } else {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+
+ while (ch !== 0) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
+ if (CHOMPING_CLIP === chomping) {
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
+ } else {
+ throwError(state, 'repeat of a chomping mode identifier');
+ }
+
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
+ if (tmp === 0) {
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
+ } else if (!detectedIndent) {
+ textIndent = nodeIndent + tmp - 1;
+ detectedIndent = true;
+ } else {
+ throwError(state, 'repeat of an indentation width identifier');
+ }
+
+ } else {
+ break;
+ }
+ }
+
+ if (is_WHITE_SPACE(ch)) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (is_WHITE_SPACE(ch));
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (!is_EOL(ch) && (ch !== 0));
+ }
+ }
+
+ while (ch !== 0) {
+ readLineBreak(state);
+ state.lineIndent = 0;
+
+ ch = state.input.charCodeAt(state.position);
+
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
+ (ch === 0x20/* Space */)) {
+ state.lineIndent++;
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (!detectedIndent && state.lineIndent > textIndent) {
+ textIndent = state.lineIndent;
+ }
+
+ if (is_EOL(ch)) {
+ emptyLines++;
+ continue;
+ }
+
+ // End of the scalar.
+ if (state.lineIndent < textIndent) {
+
+ // Perform the chomping.
+ if (chomping === CHOMPING_KEEP) {
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+ } else if (chomping === CHOMPING_CLIP) {
+ if (didReadContent) { // i.e. only if the scalar is not empty.
+ state.result += '\n';
+ }
+ }
+
+ // Break this `while` cycle and go to the funciton's epilogue.
+ break;
+ }
+
+ // Folded style: use fancy rules to handle line breaks.
+ if (folding) {
+
+ // Lines starting with white space characters (more-indented lines) are not folded.
+ if (is_WHITE_SPACE(ch)) {
+ atMoreIndented = true;
+ // except for the first content line (cf. Example 8.1)
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+
+ // End of more-indented block.
+ } else if (atMoreIndented) {
+ atMoreIndented = false;
+ state.result += common.repeat('\n', emptyLines + 1);
+
+ // Just one line break - perceive as the same line.
+ } else if (emptyLines === 0) {
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
+ state.result += ' ';
+ }
+
+ // Several line breaks - perceive as different lines.
+ } else {
+ state.result += common.repeat('\n', emptyLines);
+ }
+
+ // Literal style: just add exact number of line breaks between content lines.
+ } else {
+ // Keep all line breaks except the header line break.
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+ }
+
+ didReadContent = true;
+ detectedIndent = true;
+ emptyLines = 0;
+ captureStart = state.position;
+
+ while (!is_EOL(ch) && (ch !== 0)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ captureSegment(state, captureStart, state.position, false);
+ }
+
+ return true;
+}
+
+function readBlockSequence(state, nodeIndent) {
+ var _line,
+ _tag = state.tag,
+ _anchor = state.anchor,
+ _result = [],
+ following,
+ detected = false,
+ ch;
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+
+ if (ch !== 0x2D/* - */) {
+ break;
+ }
+
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (!is_WS_OR_EOL(following)) {
+ break;
+ }
+
+ detected = true;
+ state.position++;
+
+ if (skipSeparationSpace(state, true, -1)) {
+ if (state.lineIndent <= nodeIndent) {
+ _result.push(null);
+ ch = state.input.charCodeAt(state.position);
+ continue;
+ }
+ }
+
+ _line = state.line;
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
+ _result.push(state.result);
+ skipSeparationSpace(state, true, -1);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
+ throwError(state, 'bad indentation of a sequence entry');
+ } else if (state.lineIndent < nodeIndent) {
+ break;
+ }
+ }
+
+ if (detected) {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = 'sequence';
+ state.result = _result;
+ return true;
+ }
+ return false;
+}
+
+function readBlockMapping(state, nodeIndent, flowIndent) {
+ var following,
+ allowCompact,
+ _line,
+ _pos,
+ _tag = state.tag,
+ _anchor = state.anchor,
+ _result = {},
+ overridableKeys = {},
+ keyTag = null,
+ keyNode = null,
+ valueNode = null,
+ atExplicitKey = false,
+ detected = false,
+ ch;
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+ following = state.input.charCodeAt(state.position + 1);
+ _line = state.line; // Save the current line.
+ _pos = state.position;
+
+ //
+ // Explicit notation case. There are two separate blocks:
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
+ //
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
+
+ if (ch === 0x3F/* ? */) {
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ detected = true;
+ atExplicitKey = true;
+ allowCompact = true;
+
+ } else if (atExplicitKey) {
+ // i.e. 0x3A/* : */ === character after the explicit key.
+ atExplicitKey = false;
+ allowCompact = true;
+
+ } else {
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
+ }
+
+ state.position += 1;
+ ch = following;
+
+ //
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
+ //
+ } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
+
+ if (state.line === _line) {
+ ch = state.input.charCodeAt(state.position);
+
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (ch === 0x3A/* : */) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if (!is_WS_OR_EOL(ch)) {
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
+ }
+
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ detected = true;
+ atExplicitKey = false;
+ allowCompact = false;
+ keyTag = state.tag;
+ keyNode = state.result;
+
+ } else if (detected) {
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
+
+ } else {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ return true; // Keep the result of `composeNode`.
+ }
+
+ } else if (detected) {
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
+
+ } else {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ return true; // Keep the result of `composeNode`.
+ }
+
+ } else {
+ break; // Reading is done. Go to the epilogue.
+ }
+
+ //
+ // Common reading code for both explicit and implicit notations.
+ //
+ if (state.line === _line || state.lineIndent > nodeIndent) {
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
+ if (atExplicitKey) {
+ keyNode = state.result;
+ } else {
+ valueNode = state.result;
+ }
+ }
+
+ if (!atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ skipSeparationSpace(state, true, -1);
+ ch = state.input.charCodeAt(state.position);
+ }
+
+ if (state.lineIndent > nodeIndent && (ch !== 0)) {
+ throwError(state, 'bad indentation of a mapping entry');
+ } else if (state.lineIndent < nodeIndent) {
+ break;
+ }
+ }
+
+ //
+ // Epilogue.
+ //
+
+ // Special case: last mapping's node contains only the key in explicit notation.
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ }
+
+ // Expose the resulting mapping.
+ if (detected) {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = 'mapping';
+ state.result = _result;
+ }
+
+ return detected;
+}
+
+function readTagProperty(state) {
+ var _position,
+ isVerbatim = false,
+ isNamed = false,
+ tagHandle,
+ tagName,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x21/* ! */) return false;
+
+ if (state.tag !== null) {
+ throwError(state, 'duplication of a tag property');
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x3C/* < */) {
+ isVerbatim = true;
+ ch = state.input.charCodeAt(++state.position);
+
+ } else if (ch === 0x21/* ! */) {
+ isNamed = true;
+ tagHandle = '!!';
+ ch = state.input.charCodeAt(++state.position);
+
+ } else {
+ tagHandle = '!';
+ }
+
+ _position = state.position;
+
+ if (isVerbatim) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (ch !== 0 && ch !== 0x3E/* > */);
+
+ if (state.position < state.length) {
+ tagName = state.input.slice(_position, state.position);
+ ch = state.input.charCodeAt(++state.position);
+ } else {
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
+ }
+ } else {
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+
+ if (ch === 0x21/* ! */) {
+ if (!isNamed) {
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
+
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
+ throwError(state, 'named tag handle cannot contain such characters');
+ }
+
+ isNamed = true;
+ _position = state.position + 1;
+ } else {
+ throwError(state, 'tag suffix cannot contain exclamation marks');
+ }
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ tagName = state.input.slice(_position, state.position);
+
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
+ }
+ }
+
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
+ }
+
+ if (isVerbatim) {
+ state.tag = tagName;
+
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
+ state.tag = state.tagMap[tagHandle] + tagName;
+
+ } else if (tagHandle === '!') {
+ state.tag = '!' + tagName;
+
+ } else if (tagHandle === '!!') {
+ state.tag = 'tag:yaml.org,2002:' + tagName;
+
+ } else {
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
+ }
+
+ return true;
+}
+
+function readAnchorProperty(state) {
+ var _position,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x26/* & */) return false;
+
+ if (state.anchor !== null) {
+ throwError(state, 'duplication of an anchor property');
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an anchor node must contain at least one character');
+ }
+
+ state.anchor = state.input.slice(_position, state.position);
+ return true;
+}
+
+function readAlias(state) {
+ var _position, alias,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x2A/* * */) return false;
+
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an alias node must contain at least one character');
+ }
+
+ alias = state.input.slice(_position, state.position);
+
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
+ throwError(state, 'unidentified alias "' + alias + '"');
+ }
+
+ state.result = state.anchorMap[alias];
+ skipSeparationSpace(state, true, -1);
+ return true;
+}
+
+function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
+ var allowBlockStyles,
+ allowBlockScalars,
+ allowBlockCollections,
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {
+ indentStatus = 1;
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0;
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1;
+ }
+ }
+ }
+
+ if (indentStatus === 1) {
+ while (readTagProperty(state) || readAnchorProperty(state)) {
+ if (skipSeparationSpace(state, true, -1)) {
+ atNewLine = true;
+ allowBlockCollections = allowBlockStyles;
+
+ if (state.lineIndent > parentIndent) {
+ indentStatus = 1;
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0;
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1;
+ }
+ } else {
+ allowBlockCollections = false;
+ }
+ }
+ }
+
+ if (allowBlockCollections) {
+ allowBlockCollections = atNewLine || allowCompact;
+ }
+
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
+ flowIndent = parentIndent;
+ } else {
+ flowIndent = parentIndent + 1;
+ }
+
+ blockIndent = state.position - state.lineStart;
+
+ if (indentStatus === 1) {
+ if (allowBlockCollections &&
+ (readBlockSequence(state, blockIndent) ||
+ readBlockMapping(state, blockIndent, flowIndent)) ||
+ readFlowCollection(state, flowIndent)) {
+ hasContent = true;
+ } else {
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
+ readSingleQuotedScalar(state, flowIndent) ||
+ readDoubleQuotedScalar(state, flowIndent)) {
+ hasContent = true;
+
+ } else if (readAlias(state)) {
+ hasContent = true;
+
+ if (state.tag !== null || state.anchor !== null) {
+ throwError(state, 'alias node should not have any properties');
+ }
+
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
+ hasContent = true;
+
+ if (state.tag === null) {
+ state.tag = '?';
+ }
+ }
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ }
+ } else if (indentStatus === 0) {
+ // Special case: block sequences are allowed to have same indentation level as the parent.
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
+ }
+ }
+
+ if (state.tag !== null && state.tag !== '!') {
+ if (state.tag === '?') {
+ // Implicit resolving is not allowed for non-scalar types, and '?'
+ // non-specific tag is only automatically assigned to plain scalars.
+ //
+ // We only need to check kind conformity in case user explicitly assigns '?'
+ // tag, for example like this: "!> [0]"
+ //
+ if (state.result !== null && state.kind !== 'scalar') {
+ throwError(state, 'unacceptable node kind for !> tag; it should be "scalar", not "' + state.kind + '"');
+ }
+
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
+ type = state.implicitTypes[typeIndex];
+
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
+ state.result = type.construct(state.result);
+ state.tag = type.tag;
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ break;
+ }
+ }
+ } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
+
+ if (state.result !== null && type.kind !== state.kind) {
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
+ }
+
+ if (!type.resolve(state.result)) { // `state.result` updated in resolver if matched
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
+ } else {
+ state.result = type.construct(state.result);
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ }
+ } else {
+ throwError(state, 'unknown tag !<' + state.tag + '>');
+ }
+ }
+
+ if (state.listener !== null) {
+ state.listener('close', state);
+ }
+ return state.tag !== null || state.anchor !== null || hasContent;
+}
+
+function readDocument(state) {
+ var documentStart = state.position,
+ _position,
+ directiveName,
+ directiveArgs,
+ hasDirectives = false,
+ ch;
+
+ state.version = null;
+ state.checkLineBreaks = state.legacy;
+ state.tagMap = {};
+ state.anchorMap = {};
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ skipSeparationSpace(state, true, -1);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
+ break;
+ }
+
+ hasDirectives = true;
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ directiveName = state.input.slice(_position, state.position);
+ directiveArgs = [];
+
+ if (directiveName.length < 1) {
+ throwError(state, 'directive name must not be less than one character in length');
+ }
+
+ while (ch !== 0) {
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (ch !== 0 && !is_EOL(ch));
+ break;
+ }
+
+ if (is_EOL(ch)) break;
+
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ directiveArgs.push(state.input.slice(_position, state.position));
+ }
+
+ if (ch !== 0) readLineBreak(state);
+
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
+ } else {
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
+ }
+ }
+
+ skipSeparationSpace(state, true, -1);
+
+ if (state.lineIndent === 0 &&
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
+ state.position += 3;
+ skipSeparationSpace(state, true, -1);
+
+ } else if (hasDirectives) {
+ throwError(state, 'directives end mark is expected');
+ }
+
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
+ skipSeparationSpace(state, true, -1);
+
+ if (state.checkLineBreaks &&
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
+ }
+
+ state.documents.push(state.result);
+
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
+
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
+ state.position += 3;
+ skipSeparationSpace(state, true, -1);
+ }
+ return;
+ }
+
+ if (state.position < (state.length - 1)) {
+ throwError(state, 'end of the stream or a document separator is expected');
+ } else {
+ return;
+ }
+}
+
+
+function loadDocuments(input, options) {
+ input = String(input);
+ options = options || {};
+
+ if (input.length !== 0) {
+
+ // Add tailing `\n` if not exists
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
+ input += '\n';
+ }
+
+ // Strip BOM
+ if (input.charCodeAt(0) === 0xFEFF) {
+ input = input.slice(1);
+ }
+ }
+
+ var state = new State(input, options);
+
+ var nullpos = input.indexOf('\0');
+
+ if (nullpos !== -1) {
+ state.position = nullpos;
+ throwError(state, 'null byte is not allowed in input');
+ }
+
+ // Use 0 as string terminator. That significantly simplifies bounds check.
+ state.input += '\0';
+
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
+ state.lineIndent += 1;
+ state.position += 1;
+ }
+
+ while (state.position < (state.length - 1)) {
+ readDocument(state);
+ }
+
+ return state.documents;
+}
+
+
+function loadAll(input, iterator, options) {
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
+ options = iterator;
+ iterator = null;
+ }
+
+ var documents = loadDocuments(input, options);
+
+ if (typeof iterator !== 'function') {
+ return documents;
+ }
+
+ for (var index = 0, length = documents.length; index < length; index += 1) {
+ iterator(documents[index]);
+ }
+}
+
+
+function load(input, options) {
+ var documents = loadDocuments(input, options);
+
+ if (documents.length === 0) {
+ /*eslint-disable no-undefined*/
+ return undefined;
+ } else if (documents.length === 1) {
+ return documents[0];
+ }
+ throw new YAMLException('expected a single document in the stream, but found more');
+}
+
+
+function safeLoadAll(input, iterator, options) {
+ if (typeof iterator === 'object' && iterator !== null && typeof options === 'undefined') {
+ options = iterator;
+ iterator = null;
+ }
+
+ return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+
+function safeLoad(input, options) {
+ return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+
+module.exports.loadAll = loadAll;
+module.exports.load = load;
+module.exports.safeLoadAll = safeLoadAll;
+module.exports.safeLoad = safeLoad;
+
+},{"./common":2,"./exception":4,"./mark":6,"./schema/default_full":9,"./schema/default_safe":10}],6:[function(require,module,exports){
+'use strict';
+
+
+var common = require('./common');
+
+
+function Mark(name, buffer, position, line, column) {
+ this.name = name;
+ this.buffer = buffer;
+ this.position = position;
+ this.line = line;
+ this.column = column;
+}
+
+
+Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
+ var head, start, tail, end, snippet;
+
+ if (!this.buffer) return null;
+
+ indent = indent || 4;
+ maxLength = maxLength || 75;
+
+ head = '';
+ start = this.position;
+
+ while (start > 0 && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {
+ start -= 1;
+ if (this.position - start > (maxLength / 2 - 1)) {
+ head = ' ... ';
+ start += 5;
+ break;
+ }
+ }
+
+ tail = '';
+ end = this.position;
+
+ while (end < this.buffer.length && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end)) === -1) {
+ end += 1;
+ if (end - this.position > (maxLength / 2 - 1)) {
+ tail = ' ... ';
+ end -= 5;
+ break;
+ }
+ }
+
+ snippet = this.buffer.slice(start, end);
+
+ return common.repeat(' ', indent) + head + snippet + tail + '\n' +
+ common.repeat(' ', indent + this.position - start + head.length) + '^';
+};
+
+
+Mark.prototype.toString = function toString(compact) {
+ var snippet, where = '';
+
+ if (this.name) {
+ where += 'in "' + this.name + '" ';
+ }
+
+ where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
+
+ if (!compact) {
+ snippet = this.getSnippet();
+
+ if (snippet) {
+ where += ':\n' + snippet;
+ }
+ }
+
+ return where;
+};
+
+
+module.exports = Mark;
+
+},{"./common":2}],7:[function(require,module,exports){
+'use strict';
+
+/*eslint-disable max-len*/
+
+var common = require('./common');
+var YAMLException = require('./exception');
+var Type = require('./type');
+
+
+function compileList(schema, name, result) {
+ var exclude = [];
+
+ schema.include.forEach(function (includedSchema) {
+ result = compileList(includedSchema, name, result);
+ });
+
+ schema[name].forEach(function (currentType) {
+ result.forEach(function (previousType, previousIndex) {
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
+ exclude.push(previousIndex);
+ }
+ });
+
+ result.push(currentType);
+ });
+
+ return result.filter(function (type, index) {
+ return exclude.indexOf(index) === -1;
+ });
+}
+
+
+function compileMap(/* lists... */) {
+ var result = {
+ scalar: {},
+ sequence: {},
+ mapping: {},
+ fallback: {}
+ }, index, length;
+
+ function collectType(type) {
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
+ }
+
+ for (index = 0, length = arguments.length; index < length; index += 1) {
+ arguments[index].forEach(collectType);
+ }
+ return result;
+}
+
+
+function Schema(definition) {
+ this.include = definition.include || [];
+ this.implicit = definition.implicit || [];
+ this.explicit = definition.explicit || [];
+
+ this.implicit.forEach(function (type) {
+ if (type.loadKind && type.loadKind !== 'scalar') {
+ throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
+ }
+ });
+
+ this.compiledImplicit = compileList(this, 'implicit', []);
+ this.compiledExplicit = compileList(this, 'explicit', []);
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
+}
+
+
+Schema.DEFAULT = null;
+
+
+Schema.create = function createSchema() {
+ var schemas, types;
+
+ switch (arguments.length) {
+ case 1:
+ schemas = Schema.DEFAULT;
+ types = arguments[0];
+ break;
+
+ case 2:
+ schemas = arguments[0];
+ types = arguments[1];
+ break;
+
+ default:
+ throw new YAMLException('Wrong number of arguments for Schema.create function');
+ }
+
+ schemas = common.toArray(schemas);
+ types = common.toArray(types);
+
+ if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
+ throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
+ }
+
+ if (!types.every(function (type) { return type instanceof Type; })) {
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
+ }
+
+ return new Schema({
+ include: schemas,
+ explicit: types
+ });
+};
+
+
+module.exports = Schema;
+
+},{"./common":2,"./exception":4,"./type":13}],8:[function(require,module,exports){
+// Standard YAML's Core schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2804923
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, Core schema has no distinctions from JSON schema is JS-YAML.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./json')
+ ]
+});
+
+},{"../schema":7,"./json":12}],9:[function(require,module,exports){
+// JS-YAML's default schema for `load` function.
+// It is not described in the YAML specification.
+//
+// This schema is based on JS-YAML's default safe schema and includes
+// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
+//
+// Also this schema is used as default base schema at `Schema.create` function.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = Schema.DEFAULT = new Schema({
+ include: [
+ require('./default_safe')
+ ],
+ explicit: [
+ require('../type/js/undefined'),
+ require('../type/js/regexp'),
+ require('../type/js/function')
+ ]
+});
+
+},{"../schema":7,"../type/js/function":18,"../type/js/regexp":19,"../type/js/undefined":20,"./default_safe":10}],10:[function(require,module,exports){
+// JS-YAML's default schema for `safeLoad` function.
+// It is not described in the YAML specification.
+//
+// This schema is based on standard YAML's Core schema and includes most of
+// extra types described at YAML tag repository. (http://yaml.org/type/)
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./core')
+ ],
+ implicit: [
+ require('../type/timestamp'),
+ require('../type/merge')
+ ],
+ explicit: [
+ require('../type/binary'),
+ require('../type/omap'),
+ require('../type/pairs'),
+ require('../type/set')
+ ]
+});
+
+},{"../schema":7,"../type/binary":14,"../type/merge":22,"../type/omap":24,"../type/pairs":25,"../type/set":27,"../type/timestamp":29,"./core":8}],11:[function(require,module,exports){
+// Standard YAML's Failsafe schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2802346
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ explicit: [
+ require('../type/str'),
+ require('../type/seq'),
+ require('../type/map')
+ ]
+});
+
+},{"../schema":7,"../type/map":21,"../type/seq":26,"../type/str":28}],12:[function(require,module,exports){
+// Standard YAML's JSON schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2803231
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, this schema is not such strict as defined in the YAML specification.
+// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./failsafe')
+ ],
+ implicit: [
+ require('../type/null'),
+ require('../type/bool'),
+ require('../type/int'),
+ require('../type/float')
+ ]
+});
+
+},{"../schema":7,"../type/bool":15,"../type/float":16,"../type/int":17,"../type/null":23,"./failsafe":11}],13:[function(require,module,exports){
+'use strict';
+
+var YAMLException = require('./exception');
+
+var TYPE_CONSTRUCTOR_OPTIONS = [
+ 'kind',
+ 'resolve',
+ 'construct',
+ 'instanceOf',
+ 'predicate',
+ 'represent',
+ 'defaultStyle',
+ 'styleAliases'
+];
+
+var YAML_NODE_KINDS = [
+ 'scalar',
+ 'sequence',
+ 'mapping'
+];
+
+function compileStyleAliases(map) {
+ var result = {};
+
+ if (map !== null) {
+ Object.keys(map).forEach(function (style) {
+ map[style].forEach(function (alias) {
+ result[String(alias)] = style;
+ });
+ });
+ }
+
+ return result;
+}
+
+function Type(tag, options) {
+ options = options || {};
+
+ Object.keys(options).forEach(function (name) {
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
+ }
+ });
+
+ // TODO: Add tag format check.
+ this.tag = tag;
+ this.kind = options['kind'] || null;
+ this.resolve = options['resolve'] || function () { return true; };
+ this.construct = options['construct'] || function (data) { return data; };
+ this.instanceOf = options['instanceOf'] || null;
+ this.predicate = options['predicate'] || null;
+ this.represent = options['represent'] || null;
+ this.defaultStyle = options['defaultStyle'] || null;
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
+
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
+ }
+}
+
+module.exports = Type;
+
+},{"./exception":4}],14:[function(require,module,exports){
+'use strict';
+
+/*eslint-disable no-bitwise*/
+
+var NodeBuffer;
+
+try {
+ // A trick for browserified version, to not include `Buffer` shim
+ var _require = require;
+ NodeBuffer = _require('buffer').Buffer;
+} catch (__) {}
+
+var Type = require('../type');
+
+
+// [ 64, 65, 66 ] -> [ padding, CR, LF ]
+var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
+
+
+function resolveYamlBinary(data) {
+ if (data === null) return false;
+
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
+
+ // Convert one by one.
+ for (idx = 0; idx < max; idx++) {
+ code = map.indexOf(data.charAt(idx));
+
+ // Skip CR/LF
+ if (code > 64) continue;
+
+ // Fail on illegal characters
+ if (code < 0) return false;
+
+ bitlen += 6;
+ }
+
+ // If there are any bits left, source was corrupted
+ return (bitlen % 8) === 0;
+}
+
+function constructYamlBinary(data) {
+ var idx, tailbits,
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
+ max = input.length,
+ map = BASE64_MAP,
+ bits = 0,
+ result = [];
+
+ // Collect by 6*4 bits (3 bytes)
+
+ for (idx = 0; idx < max; idx++) {
+ if ((idx % 4 === 0) && idx) {
+ result.push((bits >> 16) & 0xFF);
+ result.push((bits >> 8) & 0xFF);
+ result.push(bits & 0xFF);
+ }
+
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
+ }
+
+ // Dump tail
+
+ tailbits = (max % 4) * 6;
+
+ if (tailbits === 0) {
+ result.push((bits >> 16) & 0xFF);
+ result.push((bits >> 8) & 0xFF);
+ result.push(bits & 0xFF);
+ } else if (tailbits === 18) {
+ result.push((bits >> 10) & 0xFF);
+ result.push((bits >> 2) & 0xFF);
+ } else if (tailbits === 12) {
+ result.push((bits >> 4) & 0xFF);
+ }
+
+ // Wrap into Buffer for NodeJS and leave Array for browser
+ if (NodeBuffer) {
+ // Support node 6.+ Buffer API when available
+ return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
+ }
+
+ return result;
+}
+
+function representYamlBinary(object /*, style*/) {
+ var result = '', bits = 0, idx, tail,
+ max = object.length,
+ map = BASE64_MAP;
+
+ // Convert every three bytes to 4 ASCII characters.
+
+ for (idx = 0; idx < max; idx++) {
+ if ((idx % 3 === 0) && idx) {
+ result += map[(bits >> 18) & 0x3F];
+ result += map[(bits >> 12) & 0x3F];
+ result += map[(bits >> 6) & 0x3F];
+ result += map[bits & 0x3F];
+ }
+
+ bits = (bits << 8) + object[idx];
+ }
+
+ // Dump tail
+
+ tail = max % 3;
+
+ if (tail === 0) {
+ result += map[(bits >> 18) & 0x3F];
+ result += map[(bits >> 12) & 0x3F];
+ result += map[(bits >> 6) & 0x3F];
+ result += map[bits & 0x3F];
+ } else if (tail === 2) {
+ result += map[(bits >> 10) & 0x3F];
+ result += map[(bits >> 4) & 0x3F];
+ result += map[(bits << 2) & 0x3F];
+ result += map[64];
+ } else if (tail === 1) {
+ result += map[(bits >> 2) & 0x3F];
+ result += map[(bits << 4) & 0x3F];
+ result += map[64];
+ result += map[64];
+ }
+
+ return result;
+}
+
+function isBinary(object) {
+ return NodeBuffer && NodeBuffer.isBuffer(object);
+}
+
+module.exports = new Type('tag:yaml.org,2002:binary', {
+ kind: 'scalar',
+ resolve: resolveYamlBinary,
+ construct: constructYamlBinary,
+ predicate: isBinary,
+ represent: representYamlBinary
+});
+
+},{"../type":13}],15:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlBoolean(data) {
+ if (data === null) return false;
+
+ var max = data.length;
+
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
+}
+
+function constructYamlBoolean(data) {
+ return data === 'true' ||
+ data === 'True' ||
+ data === 'TRUE';
+}
+
+function isBoolean(object) {
+ return Object.prototype.toString.call(object) === '[object Boolean]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:bool', {
+ kind: 'scalar',
+ resolve: resolveYamlBoolean,
+ construct: constructYamlBoolean,
+ predicate: isBoolean,
+ represent: {
+ lowercase: function (object) { return object ? 'true' : 'false'; },
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
+ camelcase: function (object) { return object ? 'True' : 'False'; }
+ },
+ defaultStyle: 'lowercase'
+});
+
+},{"../type":13}],16:[function(require,module,exports){
+'use strict';
+
+var common = require('../common');
+var Type = require('../type');
+
+var YAML_FLOAT_PATTERN = new RegExp(
+ // 2.5e4, 2.5 and integers
+ '^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
+ // .2e4, .2
+ // special case, seems not from spec
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
+ // 20:59
+ '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
+ // .inf
+ '|[-+]?\\.(?:inf|Inf|INF)' +
+ // .nan
+ '|\\.(?:nan|NaN|NAN))$');
+
+function resolveYamlFloat(data) {
+ if (data === null) return false;
+
+ if (!YAML_FLOAT_PATTERN.test(data) ||
+ // Quick hack to not allow integers end with `_`
+ // Probably should update regexp & check speed
+ data[data.length - 1] === '_') {
+ return false;
+ }
+
+ return true;
+}
+
+function constructYamlFloat(data) {
+ var value, sign, base, digits;
+
+ value = data.replace(/_/g, '').toLowerCase();
+ sign = value[0] === '-' ? -1 : 1;
+ digits = [];
+
+ if ('+-'.indexOf(value[0]) >= 0) {
+ value = value.slice(1);
+ }
+
+ if (value === '.inf') {
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
+
+ } else if (value === '.nan') {
+ return NaN;
+
+ } else if (value.indexOf(':') >= 0) {
+ value.split(':').forEach(function (v) {
+ digits.unshift(parseFloat(v, 10));
+ });
+
+ value = 0.0;
+ base = 1;
+
+ digits.forEach(function (d) {
+ value += d * base;
+ base *= 60;
+ });
+
+ return sign * value;
+
+ }
+ return sign * parseFloat(value, 10);
+}
+
+
+var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
+
+function representYamlFloat(object, style) {
+ var res;
+
+ if (isNaN(object)) {
+ switch (style) {
+ case 'lowercase': return '.nan';
+ case 'uppercase': return '.NAN';
+ case 'camelcase': return '.NaN';
+ }
+ } else if (Number.POSITIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '.inf';
+ case 'uppercase': return '.INF';
+ case 'camelcase': return '.Inf';
+ }
+ } else if (Number.NEGATIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '-.inf';
+ case 'uppercase': return '-.INF';
+ case 'camelcase': return '-.Inf';
+ }
+ } else if (common.isNegativeZero(object)) {
+ return '-0.0';
+ }
+
+ res = object.toString(10);
+
+ // JS stringifier can build scientific format without dots: 5e-100,
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
+
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
+}
+
+function isFloat(object) {
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
+ (object % 1 !== 0 || common.isNegativeZero(object));
+}
+
+module.exports = new Type('tag:yaml.org,2002:float', {
+ kind: 'scalar',
+ resolve: resolveYamlFloat,
+ construct: constructYamlFloat,
+ predicate: isFloat,
+ represent: representYamlFloat,
+ defaultStyle: 'lowercase'
+});
+
+},{"../common":2,"../type":13}],17:[function(require,module,exports){
+'use strict';
+
+var common = require('../common');
+var Type = require('../type');
+
+function isHexCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
+}
+
+function isOctCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
+}
+
+function isDecCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
+}
+
+function resolveYamlInteger(data) {
+ if (data === null) return false;
+
+ var max = data.length,
+ index = 0,
+ hasDigits = false,
+ ch;
+
+ if (!max) return false;
+
+ ch = data[index];
+
+ // sign
+ if (ch === '-' || ch === '+') {
+ ch = data[++index];
+ }
+
+ if (ch === '0') {
+ // 0
+ if (index + 1 === max) return true;
+ ch = data[++index];
+
+ // base 2, base 8, base 16
+
+ if (ch === 'b') {
+ // base 2
+ index++;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (ch !== '0' && ch !== '1') return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+
+ if (ch === 'x') {
+ // base 16
+ index++;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (!isHexCode(data.charCodeAt(index))) return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+ // base 8
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (!isOctCode(data.charCodeAt(index))) return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+ // base 10 (except 0) or base 60
+
+ // value should not start with `_`;
+ if (ch === '_') return false;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (ch === ':') break;
+ if (!isDecCode(data.charCodeAt(index))) {
+ return false;
+ }
+ hasDigits = true;
+ }
+
+ // Should have digits and should not end with `_`
+ if (!hasDigits || ch === '_') return false;
+
+ // if !base60 - done;
+ if (ch !== ':') return true;
+
+ // base60 almost not used, no needs to optimize
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
+}
+
+function constructYamlInteger(data) {
+ var value = data, sign = 1, ch, base, digits = [];
+
+ if (value.indexOf('_') !== -1) {
+ value = value.replace(/_/g, '');
+ }
+
+ ch = value[0];
+
+ if (ch === '-' || ch === '+') {
+ if (ch === '-') sign = -1;
+ value = value.slice(1);
+ ch = value[0];
+ }
+
+ if (value === '0') return 0;
+
+ if (ch === '0') {
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
+ if (value[1] === 'x') return sign * parseInt(value, 16);
+ return sign * parseInt(value, 8);
+ }
+
+ if (value.indexOf(':') !== -1) {
+ value.split(':').forEach(function (v) {
+ digits.unshift(parseInt(v, 10));
+ });
+
+ value = 0;
+ base = 1;
+
+ digits.forEach(function (d) {
+ value += (d * base);
+ base *= 60;
+ });
+
+ return sign * value;
+
+ }
+
+ return sign * parseInt(value, 10);
+}
+
+function isInteger(object) {
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
+ (object % 1 === 0 && !common.isNegativeZero(object));
+}
+
+module.exports = new Type('tag:yaml.org,2002:int', {
+ kind: 'scalar',
+ resolve: resolveYamlInteger,
+ construct: constructYamlInteger,
+ predicate: isInteger,
+ represent: {
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
+ octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },
+ decimal: function (obj) { return obj.toString(10); },
+ /* eslint-disable max-len */
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
+ },
+ defaultStyle: 'decimal',
+ styleAliases: {
+ binary: [ 2, 'bin' ],
+ octal: [ 8, 'oct' ],
+ decimal: [ 10, 'dec' ],
+ hexadecimal: [ 16, 'hex' ]
+ }
+});
+
+},{"../common":2,"../type":13}],18:[function(require,module,exports){
+'use strict';
+
+var esprima;
+
+// Browserified version does not have esprima
+//
+// 1. For node.js just require module as deps
+// 2. For browser try to require mudule via external AMD system.
+// If not found - try to fallback to window.esprima. If not
+// found too - then fail to parse.
+//
+try {
+ // workaround to exclude package from browserify list.
+ var _require = require;
+ esprima = _require('esprima');
+} catch (_) {
+ /* eslint-disable no-redeclare */
+ /* global window */
+ if (typeof window !== 'undefined') esprima = window.esprima;
+}
+
+var Type = require('../../type');
+
+function resolveJavascriptFunction(data) {
+ if (data === null) return false;
+
+ try {
+ var source = '(' + data + ')',
+ ast = esprima.parse(source, { range: true });
+
+ if (ast.type !== 'Program' ||
+ ast.body.length !== 1 ||
+ ast.body[0].type !== 'ExpressionStatement' ||
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
+ ast.body[0].expression.type !== 'FunctionExpression')) {
+ return false;
+ }
+
+ return true;
+ } catch (err) {
+ return false;
+ }
+}
+
+function constructJavascriptFunction(data) {
+ /*jslint evil:true*/
+
+ var source = '(' + data + ')',
+ ast = esprima.parse(source, { range: true }),
+ params = [],
+ body;
+
+ if (ast.type !== 'Program' ||
+ ast.body.length !== 1 ||
+ ast.body[0].type !== 'ExpressionStatement' ||
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
+ ast.body[0].expression.type !== 'FunctionExpression')) {
+ throw new Error('Failed to resolve function');
+ }
+
+ ast.body[0].expression.params.forEach(function (param) {
+ params.push(param.name);
+ });
+
+ body = ast.body[0].expression.body.range;
+
+ // Esprima's ranges include the first '{' and the last '}' characters on
+ // function expressions. So cut them out.
+ if (ast.body[0].expression.body.type === 'BlockStatement') {
+ /*eslint-disable no-new-func*/
+ return new Function(params, source.slice(body[0] + 1, body[1] - 1));
+ }
+ // ES6 arrow functions can omit the BlockStatement. In that case, just return
+ // the body.
+ /*eslint-disable no-new-func*/
+ return new Function(params, 'return ' + source.slice(body[0], body[1]));
+}
+
+function representJavascriptFunction(object /*, style*/) {
+ return object.toString();
+}
+
+function isFunction(object) {
+ return Object.prototype.toString.call(object) === '[object Function]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/function', {
+ kind: 'scalar',
+ resolve: resolveJavascriptFunction,
+ construct: constructJavascriptFunction,
+ predicate: isFunction,
+ represent: representJavascriptFunction
+});
+
+},{"../../type":13}],19:[function(require,module,exports){
+'use strict';
+
+var Type = require('../../type');
+
+function resolveJavascriptRegExp(data) {
+ if (data === null) return false;
+ if (data.length === 0) return false;
+
+ var regexp = data,
+ tail = /\/([gim]*)$/.exec(data),
+ modifiers = '';
+
+ // if regexp starts with '/' it can have modifiers and must be properly closed
+ // `/foo/gim` - modifiers tail can be maximum 3 chars
+ if (regexp[0] === '/') {
+ if (tail) modifiers = tail[1];
+
+ if (modifiers.length > 3) return false;
+ // if expression starts with /, is should be properly terminated
+ if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
+ }
+
+ return true;
+}
+
+function constructJavascriptRegExp(data) {
+ var regexp = data,
+ tail = /\/([gim]*)$/.exec(data),
+ modifiers = '';
+
+ // `/foo/gim` - tail can be maximum 4 chars
+ if (regexp[0] === '/') {
+ if (tail) modifiers = tail[1];
+ regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
+ }
+
+ return new RegExp(regexp, modifiers);
+}
+
+function representJavascriptRegExp(object /*, style*/) {
+ var result = '/' + object.source + '/';
+
+ if (object.global) result += 'g';
+ if (object.multiline) result += 'm';
+ if (object.ignoreCase) result += 'i';
+
+ return result;
+}
+
+function isRegExp(object) {
+ return Object.prototype.toString.call(object) === '[object RegExp]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/regexp', {
+ kind: 'scalar',
+ resolve: resolveJavascriptRegExp,
+ construct: constructJavascriptRegExp,
+ predicate: isRegExp,
+ represent: representJavascriptRegExp
+});
+
+},{"../../type":13}],20:[function(require,module,exports){
+'use strict';
+
+var Type = require('../../type');
+
+function resolveJavascriptUndefined() {
+ return true;
+}
+
+function constructJavascriptUndefined() {
+ /*eslint-disable no-undefined*/
+ return undefined;
+}
+
+function representJavascriptUndefined() {
+ return '';
+}
+
+function isUndefined(object) {
+ return typeof object === 'undefined';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/undefined', {
+ kind: 'scalar',
+ resolve: resolveJavascriptUndefined,
+ construct: constructJavascriptUndefined,
+ predicate: isUndefined,
+ represent: representJavascriptUndefined
+});
+
+},{"../../type":13}],21:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:map', {
+ kind: 'mapping',
+ construct: function (data) { return data !== null ? data : {}; }
+});
+
+},{"../type":13}],22:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlMerge(data) {
+ return data === '<<' || data === null;
+}
+
+module.exports = new Type('tag:yaml.org,2002:merge', {
+ kind: 'scalar',
+ resolve: resolveYamlMerge
+});
+
+},{"../type":13}],23:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlNull(data) {
+ if (data === null) return true;
+
+ var max = data.length;
+
+ return (max === 1 && data === '~') ||
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
+}
+
+function constructYamlNull() {
+ return null;
+}
+
+function isNull(object) {
+ return object === null;
+}
+
+module.exports = new Type('tag:yaml.org,2002:null', {
+ kind: 'scalar',
+ resolve: resolveYamlNull,
+ construct: constructYamlNull,
+ predicate: isNull,
+ represent: {
+ canonical: function () { return '~'; },
+ lowercase: function () { return 'null'; },
+ uppercase: function () { return 'NULL'; },
+ camelcase: function () { return 'Null'; }
+ },
+ defaultStyle: 'lowercase'
+});
+
+},{"../type":13}],24:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+var _toString = Object.prototype.toString;
+
+function resolveYamlOmap(data) {
+ if (data === null) return true;
+
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
+ object = data;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+ pairHasKey = false;
+
+ if (_toString.call(pair) !== '[object Object]') return false;
+
+ for (pairKey in pair) {
+ if (_hasOwnProperty.call(pair, pairKey)) {
+ if (!pairHasKey) pairHasKey = true;
+ else return false;
+ }
+ }
+
+ if (!pairHasKey) return false;
+
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
+ else return false;
+ }
+
+ return true;
+}
+
+function constructYamlOmap(data) {
+ return data !== null ? data : [];
+}
+
+module.exports = new Type('tag:yaml.org,2002:omap', {
+ kind: 'sequence',
+ resolve: resolveYamlOmap,
+ construct: constructYamlOmap
+});
+
+},{"../type":13}],25:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+var _toString = Object.prototype.toString;
+
+function resolveYamlPairs(data) {
+ if (data === null) return true;
+
+ var index, length, pair, keys, result,
+ object = data;
+
+ result = new Array(object.length);
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+
+ if (_toString.call(pair) !== '[object Object]') return false;
+
+ keys = Object.keys(pair);
+
+ if (keys.length !== 1) return false;
+
+ result[index] = [ keys[0], pair[keys[0]] ];
+ }
+
+ return true;
+}
+
+function constructYamlPairs(data) {
+ if (data === null) return [];
+
+ var index, length, pair, keys, result,
+ object = data;
+
+ result = new Array(object.length);
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+
+ keys = Object.keys(pair);
+
+ result[index] = [ keys[0], pair[keys[0]] ];
+ }
+
+ return result;
+}
+
+module.exports = new Type('tag:yaml.org,2002:pairs', {
+ kind: 'sequence',
+ resolve: resolveYamlPairs,
+ construct: constructYamlPairs
+});
+
+},{"../type":13}],26:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:seq', {
+ kind: 'sequence',
+ construct: function (data) { return data !== null ? data : []; }
+});
+
+},{"../type":13}],27:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+
+function resolveYamlSet(data) {
+ if (data === null) return true;
+
+ var key, object = data;
+
+ for (key in object) {
+ if (_hasOwnProperty.call(object, key)) {
+ if (object[key] !== null) return false;
+ }
+ }
+
+ return true;
+}
+
+function constructYamlSet(data) {
+ return data !== null ? data : {};
+}
+
+module.exports = new Type('tag:yaml.org,2002:set', {
+ kind: 'mapping',
+ resolve: resolveYamlSet,
+ construct: constructYamlSet
+});
+
+},{"../type":13}],28:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:str', {
+ kind: 'scalar',
+ construct: function (data) { return data !== null ? data : ''; }
+});
+
+},{"../type":13}],29:[function(require,module,exports){
+'use strict';
+
+var Type = require('../type');
+
+var YAML_DATE_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9])' + // [2] month
+ '-([0-9][0-9])$'); // [3] day
+
+var YAML_TIMESTAMP_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9]?)' + // [2] month
+ '-([0-9][0-9]?)' + // [3] day
+ '(?:[Tt]|[ \\t]+)' + // ...
+ '([0-9][0-9]?)' + // [4] hour
+ ':([0-9][0-9])' + // [5] minute
+ ':([0-9][0-9])' + // [6] second
+ '(?:\\.([0-9]*))?' + // [7] fraction
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
+
+function resolveYamlTimestamp(data) {
+ if (data === null) return false;
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
+ return false;
+}
+
+function constructYamlTimestamp(data) {
+ var match, year, month, day, hour, minute, second, fraction = 0,
+ delta = null, tz_hour, tz_minute, date;
+
+ match = YAML_DATE_REGEXP.exec(data);
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
+
+ if (match === null) throw new Error('Date resolve error');
+
+ // match: [1] year [2] month [3] day
+
+ year = +(match[1]);
+ month = +(match[2]) - 1; // JS month starts with 0
+ day = +(match[3]);
+
+ if (!match[4]) { // no hour
+ return new Date(Date.UTC(year, month, day));
+ }
+
+ // match: [4] hour [5] minute [6] second [7] fraction
+
+ hour = +(match[4]);
+ minute = +(match[5]);
+ second = +(match[6]);
+
+ if (match[7]) {
+ fraction = match[7].slice(0, 3);
+ while (fraction.length < 3) { // milli-seconds
+ fraction += '0';
+ }
+ fraction = +fraction;
+ }
+
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
+
+ if (match[9]) {
+ tz_hour = +(match[10]);
+ tz_minute = +(match[11] || 0);
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
+ if (match[9] === '-') delta = -delta;
+ }
+
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
+
+ if (delta) date.setTime(date.getTime() - delta);
+
+ return date;
+}
+
+function representYamlTimestamp(object /*, style*/) {
+ return object.toISOString();
+}
+
+module.exports = new Type('tag:yaml.org,2002:timestamp', {
+ kind: 'scalar',
+ resolve: resolveYamlTimestamp,
+ construct: constructYamlTimestamp,
+ instanceOf: Date,
+ represent: representYamlTimestamp
+});
+
+},{"../type":13}],"/":[function(require,module,exports){
+'use strict';
+
+
+var yaml = require('./lib/js-yaml.js');
+
+
+module.exports = yaml;
+
+},{"./lib/js-yaml.js":1}]},{},[])("/")
+});
diff --git a/node_modules/js-yaml/dist/js-yaml.min.js b/node_modules/js-yaml/dist/js-yaml.min.js
new file mode 100644
index 00000000..1b6ecc16
--- /dev/null
+++ b/node_modules/js-yaml/dist/js-yaml.min.js
@@ -0,0 +1 @@
+/*! js-yaml 3.14.1 https://github.com/nodeca/js-yaml */!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).jsyaml=e()}(function(){return function i(r,o,a){function s(t,e){if(!o[t]){if(!r[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(c)return c(t,!0);throw(n=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",n}n=o[t]={exports:{}},r[t][0].call(n.exports,function(e){return s(r[t][1][e]||e)},n,n.exports,i,r,o,a)}return o[t].exports}for(var c="function"==typeof require&&require,e=0;e=i.flowLevel;switch(V(r,n,i.indent,t,function(e){return function(e,t){for(var n=0,i=e.implicitTypes.length;n"+z(r,i.indent)+J(U(function(t,n){var e,i=/(\n+)([^\n]*)/g,r=function(){var e=-1!==(e=t.indexOf("\n"))?e:t.length;return i.lastIndex=e,Q(t.slice(0,e),n)}(),o="\n"===t[0]||" "===t[0];for(;e=i.exec(t);){var a=e[1],s=e[2];e=" "===s[0],r+=a+(o||e||""===s?"":"\n")+Q(s,n),o=e}return r}(r,t),e));case G:return'"'+function(e){for(var t,n,i,r="",o=0;ot&&o tag resolver accepts not "'+o+'" style');i=r.represent[o](t,o)}e.dump=i}return 1}}function ee(e,t,n,i,r,o){e.tag=null,e.dump=n,X(e,n,!1)||X(e,n,!0);var a=l.call(e.dump);i=i&&(e.flowLevel<0||e.flowLevel>t);var s,c,u="[object Object]"===a||"[object Array]"===a;if(u&&(c=-1!==(s=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||c||2!==e.indent&&0 "+e.dump)}return 1}function te(e,t){var n,i,r=[],o=[];for(!function e(t,n,i){var r,o,a;if(null!==t&&"object"==typeof t)if(-1!==(o=n.indexOf(t)))-1===i.indexOf(o)&&i.push(o);else if(n.push(t),Array.isArray(t))for(o=0,a=t.length;o>10),56320+(c-65536&1023)),e.position++}else N(e,"unknown escape sequence");n=i=e.position}else S(u)?(L(e,n,i,!0),B(e,Y(e,!1,t)),n=i=e.position):e.position===e.lineStart&&R(e)?N(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}N(e,"unexpected end of the stream within a double quoted scalar")}}function K(e,t){var n,i,r=e.tag,o=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),i=e.input.charCodeAt(e.position);0!==i&&45===i&&O(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,Y(e,!0,-1)&&e.lineIndent<=t)a.push(null),i=e.input.charCodeAt(e.position);else if(n=e.line,P(e,t,x,!1,!0),a.push(e.result),Y(e,!0,-1),i=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==i)N(e,"bad indentation of a sequence entry");else if(e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndentt?p=1:e.lineIndent===t?p=0:e.lineIndentt)&&(P(e,t,A,!0,r)&&(m?d=e.result:h=e.result),m||(U(e,l,p,f,d,h,o,a),f=d=h=null),Y(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)N(e,"bad indentation of a mapping entry");else if(e.lineIndentc&&(c=e.lineIndent),S(p))u++;else{if(e.lineIndent=t){a=!0,f=e.input.charCodeAt(e.position);continue}e.position=o,e.line=s,e.lineStart=c,e.lineIndent=u;break}}a&&(L(e,r,o,!1),B(e,e.line-s),r=o=e.position,a=!1),I(f)||(o=e.position+1),f=e.input.charCodeAt(++e.position)}if(L(e,r,o,!1),e.result)return 1;e.kind=l,e.result=p}}(e,i,g===n)&&(d=!0,null===e.tag&&(e.tag="?")):(d=!0,null===e.tag&&null===e.anchor||N(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===p&&(d=s&&K(e,r))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&N(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),c=0,u=e.implicitTypes.length;c tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):N(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):N(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||d}function $(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new F(e,t),e=e.indexOf("\0");for(-1!==e&&(n.position=e,N(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.positiont/2-1){n=" ... ",i+=5;break}for(r="",o=this.position;ot/2-1){r=" ... ",o-=5;break}return a=this.buffer.slice(i,o),s.repeat(" ",e)+n+a+r+"\n"+s.repeat(" ",e+this.position-i+n.length)+"^"},i.prototype.toString=function(e){var t="";return this.name&&(t+='in "'+this.name+'" '),t+="at line "+(this.line+1)+", column "+(this.column+1),e||(e=this.getSnippet())&&(t+=":\n"+e),t},t.exports=i},{"./common":2}],7:[function(e,t,n){"use strict";var r=e("./common"),o=e("./exception"),a=e("./type");function s(e,t,i){var r=[];return e.include.forEach(function(e){i=s(e,t,i)}),e[t].forEach(function(n){i.forEach(function(e,t){e.tag===n.tag&&e.kind===n.kind&&r.push(t)}),i.push(n)}),i.filter(function(e,t){return-1===r.indexOf(t)})}function c(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function i(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e>16&255),o.push(r>>8&255),o.push(255&r)),r=r<<6|i.indexOf(t.charAt(a));return 0==(e=n%4*6)?(o.push(r>>16&255),o.push(r>>8&255),o.push(255&r)):18==e?(o.push(r>>10&255),o.push(r>>2&255)):12==e&&o.push(r>>4&255),s?s.from?s.from(o):new s(o):o},predicate:function(e){return s&&s.isBuffer(e)},represent:function(e){for(var t,n="",i=0,r=e.length,o=c,a=0;a>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]),i=(i<<8)+e[a];return 0==(t=r%3)?(n+=o[i>>18&63],n+=o[i>>12&63],n+=o[i>>6&63],n+=o[63&i]):2==t?(n+=o[i>>10&63],n+=o[i>>4&63],n+=o[i<<2&63],n+=o[64]):1==t&&(n+=o[i>>2&63],n+=o[i<<4&63],n+=o[64],n+=o[64]),n}})},{"../type":13}],15:[function(e,t,n){"use strict";e=e("../type");t.exports=new e("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":13}],16:[function(e,t,n){"use strict";var i=e("../common"),e=e("../type"),r=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var o=/^[-+]?[0-9]+e/;t.exports=new e("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!r.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n=e.replace(/_/g,"").toLowerCase(),e="-"===n[0]?-1:1,i=[];return 0<="+-".indexOf(n[0])&&(n=n.slice(1)),".inf"===n?1==e?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===n?NaN:0<=n.indexOf(":")?(n.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),n=0,t=1,i.forEach(function(e){n+=e*t,t*=60}),e*n):e*parseFloat(n,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||i.isNegativeZero(e))},represent:function(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(i.isNegativeZero(e))return"-0.0";return e=e.toString(10),o.test(e)?e.replace("e",".e"):e},defaultStyle:"lowercase"})},{"../common":2,"../type":13}],17:[function(e,t,n){"use strict";var i=e("../common"),e=e("../type");t.exports=new e("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,i,r,o=e.length,a=0,s=!1;if(!o)return!1;if("-"!==(t=e[a])&&"+"!==t||(t=e[++a]),"0"===t){if(a+1===o)return!0;if("b"===(t=e[++a])){for(a++;a */
+var CHAR_QUESTION = 0x3F; /* ? */
+var CHAR_COMMERCIAL_AT = 0x40; /* @ */
+var CHAR_LEFT_SQUARE_BRACKET = 0x5B; /* [ */
+var CHAR_RIGHT_SQUARE_BRACKET = 0x5D; /* ] */
+var CHAR_GRAVE_ACCENT = 0x60; /* ` */
+var CHAR_LEFT_CURLY_BRACKET = 0x7B; /* { */
+var CHAR_VERTICAL_LINE = 0x7C; /* | */
+var CHAR_RIGHT_CURLY_BRACKET = 0x7D; /* } */
+
+var ESCAPE_SEQUENCES = {};
+
+ESCAPE_SEQUENCES[0x00] = '\\0';
+ESCAPE_SEQUENCES[0x07] = '\\a';
+ESCAPE_SEQUENCES[0x08] = '\\b';
+ESCAPE_SEQUENCES[0x09] = '\\t';
+ESCAPE_SEQUENCES[0x0A] = '\\n';
+ESCAPE_SEQUENCES[0x0B] = '\\v';
+ESCAPE_SEQUENCES[0x0C] = '\\f';
+ESCAPE_SEQUENCES[0x0D] = '\\r';
+ESCAPE_SEQUENCES[0x1B] = '\\e';
+ESCAPE_SEQUENCES[0x22] = '\\"';
+ESCAPE_SEQUENCES[0x5C] = '\\\\';
+ESCAPE_SEQUENCES[0x85] = '\\N';
+ESCAPE_SEQUENCES[0xA0] = '\\_';
+ESCAPE_SEQUENCES[0x2028] = '\\L';
+ESCAPE_SEQUENCES[0x2029] = '\\P';
+
+var DEPRECATED_BOOLEANS_SYNTAX = [
+ 'y', 'Y', 'yes', 'Yes', 'YES', 'on', 'On', 'ON',
+ 'n', 'N', 'no', 'No', 'NO', 'off', 'Off', 'OFF'
+];
+
+function compileStyleMap(schema, map) {
+ var result, keys, index, length, tag, style, type;
+
+ if (map === null) return {};
+
+ result = {};
+ keys = Object.keys(map);
+
+ for (index = 0, length = keys.length; index < length; index += 1) {
+ tag = keys[index];
+ style = String(map[tag]);
+
+ if (tag.slice(0, 2) === '!!') {
+ tag = 'tag:yaml.org,2002:' + tag.slice(2);
+ }
+ type = schema.compiledTypeMap['fallback'][tag];
+
+ if (type && _hasOwnProperty.call(type.styleAliases, style)) {
+ style = type.styleAliases[style];
+ }
+
+ result[tag] = style;
+ }
+
+ return result;
+}
+
+function encodeHex(character) {
+ var string, handle, length;
+
+ string = character.toString(16).toUpperCase();
+
+ if (character <= 0xFF) {
+ handle = 'x';
+ length = 2;
+ } else if (character <= 0xFFFF) {
+ handle = 'u';
+ length = 4;
+ } else if (character <= 0xFFFFFFFF) {
+ handle = 'U';
+ length = 8;
+ } else {
+ throw new YAMLException('code point within a string may not be greater than 0xFFFFFFFF');
+ }
+
+ return '\\' + handle + common.repeat('0', length - string.length) + string;
+}
+
+function State(options) {
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
+ this.indent = Math.max(1, (options['indent'] || 2));
+ this.noArrayIndent = options['noArrayIndent'] || false;
+ this.skipInvalid = options['skipInvalid'] || false;
+ this.flowLevel = (common.isNothing(options['flowLevel']) ? -1 : options['flowLevel']);
+ this.styleMap = compileStyleMap(this.schema, options['styles'] || null);
+ this.sortKeys = options['sortKeys'] || false;
+ this.lineWidth = options['lineWidth'] || 80;
+ this.noRefs = options['noRefs'] || false;
+ this.noCompatMode = options['noCompatMode'] || false;
+ this.condenseFlow = options['condenseFlow'] || false;
+
+ this.implicitTypes = this.schema.compiledImplicit;
+ this.explicitTypes = this.schema.compiledExplicit;
+
+ this.tag = null;
+ this.result = '';
+
+ this.duplicates = [];
+ this.usedDuplicates = null;
+}
+
+// Indents every line in a string. Empty lines (\n only) are not indented.
+function indentString(string, spaces) {
+ var ind = common.repeat(' ', spaces),
+ position = 0,
+ next = -1,
+ result = '',
+ line,
+ length = string.length;
+
+ while (position < length) {
+ next = string.indexOf('\n', position);
+ if (next === -1) {
+ line = string.slice(position);
+ position = length;
+ } else {
+ line = string.slice(position, next + 1);
+ position = next + 1;
+ }
+
+ if (line.length && line !== '\n') result += ind;
+
+ result += line;
+ }
+
+ return result;
+}
+
+function generateNextLine(state, level) {
+ return '\n' + common.repeat(' ', state.indent * level);
+}
+
+function testImplicitResolving(state, str) {
+ var index, length, type;
+
+ for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
+ type = state.implicitTypes[index];
+
+ if (type.resolve(str)) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// [33] s-white ::= s-space | s-tab
+function isWhitespace(c) {
+ return c === CHAR_SPACE || c === CHAR_TAB;
+}
+
+// Returns true if the character can be printed without escaping.
+// From YAML 1.2: "any allowed characters known to be non-printable
+// should also be escaped. [However,] This isn’t mandatory"
+// Derived from nb-char - \t - #x85 - #xA0 - #x2028 - #x2029.
+function isPrintable(c) {
+ return (0x00020 <= c && c <= 0x00007E)
+ || ((0x000A1 <= c && c <= 0x00D7FF) && c !== 0x2028 && c !== 0x2029)
+ || ((0x0E000 <= c && c <= 0x00FFFD) && c !== 0xFEFF /* BOM */)
+ || (0x10000 <= c && c <= 0x10FFFF);
+}
+
+// [34] ns-char ::= nb-char - s-white
+// [27] nb-char ::= c-printable - b-char - c-byte-order-mark
+// [26] b-char ::= b-line-feed | b-carriage-return
+// [24] b-line-feed ::= #xA /* LF */
+// [25] b-carriage-return ::= #xD /* CR */
+// [3] c-byte-order-mark ::= #xFEFF
+function isNsChar(c) {
+ return isPrintable(c) && !isWhitespace(c)
+ // byte-order-mark
+ && c !== 0xFEFF
+ // b-char
+ && c !== CHAR_CARRIAGE_RETURN
+ && c !== CHAR_LINE_FEED;
+}
+
+// Simplified test for values allowed after the first character in plain style.
+function isPlainSafe(c, prev) {
+ // Uses a subset of nb-char - c-flow-indicator - ":" - "#"
+ // where nb-char ::= c-printable - b-char - c-byte-order-mark.
+ return isPrintable(c) && c !== 0xFEFF
+ // - c-flow-indicator
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ // - ":" - "#"
+ // /* An ns-char preceding */ "#"
+ && c !== CHAR_COLON
+ && ((c !== CHAR_SHARP) || (prev && isNsChar(prev)));
+}
+
+// Simplified test for values allowed as the first character in plain style.
+function isPlainSafeFirst(c) {
+ // Uses a subset of ns-char - c-indicator
+ // where ns-char = nb-char - s-white.
+ return isPrintable(c) && c !== 0xFEFF
+ && !isWhitespace(c) // - s-white
+ // - (c-indicator ::=
+ // “-” | “?” | “:” | “,” | “[” | “]” | “{” | “}”
+ && c !== CHAR_MINUS
+ && c !== CHAR_QUESTION
+ && c !== CHAR_COLON
+ && c !== CHAR_COMMA
+ && c !== CHAR_LEFT_SQUARE_BRACKET
+ && c !== CHAR_RIGHT_SQUARE_BRACKET
+ && c !== CHAR_LEFT_CURLY_BRACKET
+ && c !== CHAR_RIGHT_CURLY_BRACKET
+ // | “#” | “&” | “*” | “!” | “|” | “=” | “>” | “'” | “"”
+ && c !== CHAR_SHARP
+ && c !== CHAR_AMPERSAND
+ && c !== CHAR_ASTERISK
+ && c !== CHAR_EXCLAMATION
+ && c !== CHAR_VERTICAL_LINE
+ && c !== CHAR_EQUALS
+ && c !== CHAR_GREATER_THAN
+ && c !== CHAR_SINGLE_QUOTE
+ && c !== CHAR_DOUBLE_QUOTE
+ // | “%” | “@” | “`”)
+ && c !== CHAR_PERCENT
+ && c !== CHAR_COMMERCIAL_AT
+ && c !== CHAR_GRAVE_ACCENT;
+}
+
+// Determines whether block indentation indicator is required.
+function needIndentIndicator(string) {
+ var leadingSpaceRe = /^\n* /;
+ return leadingSpaceRe.test(string);
+}
+
+var STYLE_PLAIN = 1,
+ STYLE_SINGLE = 2,
+ STYLE_LITERAL = 3,
+ STYLE_FOLDED = 4,
+ STYLE_DOUBLE = 5;
+
+// Determines which scalar styles are possible and returns the preferred style.
+// lineWidth = -1 => no limit.
+// Pre-conditions: str.length > 0.
+// Post-conditions:
+// STYLE_PLAIN or STYLE_SINGLE => no \n are in the string.
+// STYLE_LITERAL => no lines are suitable for folding (or lineWidth is -1).
+// STYLE_FOLDED => a line > lineWidth and can be folded (and lineWidth != -1).
+function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType) {
+ var i;
+ var char, prev_char;
+ var hasLineBreak = false;
+ var hasFoldableLine = false; // only checked if shouldTrackWidth
+ var shouldTrackWidth = lineWidth !== -1;
+ var previousLineBreak = -1; // count the first line correctly
+ var plain = isPlainSafeFirst(string.charCodeAt(0))
+ && !isWhitespace(string.charCodeAt(string.length - 1));
+
+ if (singleLineOnly) {
+ // Case: no block styles.
+ // Check for disallowed characters to rule out plain and single.
+ for (i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
+ plain = plain && isPlainSafe(char, prev_char);
+ }
+ } else {
+ // Case: block styles permitted.
+ for (i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ if (char === CHAR_LINE_FEED) {
+ hasLineBreak = true;
+ // Check if any line can be folded.
+ if (shouldTrackWidth) {
+ hasFoldableLine = hasFoldableLine ||
+ // Foldable line = too long, and not more-indented.
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' ');
+ previousLineBreak = i;
+ }
+ } else if (!isPrintable(char)) {
+ return STYLE_DOUBLE;
+ }
+ prev_char = i > 0 ? string.charCodeAt(i - 1) : null;
+ plain = plain && isPlainSafe(char, prev_char);
+ }
+ // in case the end is missing a \n
+ hasFoldableLine = hasFoldableLine || (shouldTrackWidth &&
+ (i - previousLineBreak - 1 > lineWidth &&
+ string[previousLineBreak + 1] !== ' '));
+ }
+ // Although every style can represent \n without escaping, prefer block styles
+ // for multiline, since they're more readable and they don't add empty lines.
+ // Also prefer folding a super-long line.
+ if (!hasLineBreak && !hasFoldableLine) {
+ // Strings interpretable as another type have to be quoted;
+ // e.g. the string 'true' vs. the boolean true.
+ return plain && !testAmbiguousType(string)
+ ? STYLE_PLAIN : STYLE_SINGLE;
+ }
+ // Edge case: block indentation indicator can only have one digit.
+ if (indentPerLevel > 9 && needIndentIndicator(string)) {
+ return STYLE_DOUBLE;
+ }
+ // At this point we know block styles are valid.
+ // Prefer literal style unless we want to fold.
+ return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
+}
+
+// Note: line breaking/folding is implemented for only the folded style.
+// NB. We drop the last trailing newline (if any) of a returned block scalar
+// since the dumper adds its own newline. This always works:
+// • No ending newline => unaffected; already using strip "-" chomping.
+// • Ending newline => removed then restored.
+// Importantly, this keeps the "+" chomp indicator from gaining an extra line.
+function writeScalar(state, string, level, iskey) {
+ state.dump = (function () {
+ if (string.length === 0) {
+ return "''";
+ }
+ if (!state.noCompatMode &&
+ DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1) {
+ return "'" + string + "'";
+ }
+
+ var indent = state.indent * Math.max(1, level); // no 0-indent scalars
+ // As indentation gets deeper, let the width decrease monotonically
+ // to the lower bound min(state.lineWidth, 40).
+ // Note that this implies
+ // state.lineWidth ≤ 40 + state.indent: width is fixed at the lower bound.
+ // state.lineWidth > 40 + state.indent: width decreases until the lower bound.
+ // This behaves better than a constant minimum width which disallows narrower options,
+ // or an indent threshold which causes the width to suddenly increase.
+ var lineWidth = state.lineWidth === -1
+ ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
+
+ // Without knowing if keys are implicit/explicit, assume implicit for safety.
+ var singleLineOnly = iskey
+ // No block styles in flow mode.
+ || (state.flowLevel > -1 && level >= state.flowLevel);
+ function testAmbiguity(string) {
+ return testImplicitResolving(state, string);
+ }
+
+ switch (chooseScalarStyle(string, singleLineOnly, state.indent, lineWidth, testAmbiguity)) {
+ case STYLE_PLAIN:
+ return string;
+ case STYLE_SINGLE:
+ return "'" + string.replace(/'/g, "''") + "'";
+ case STYLE_LITERAL:
+ return '|' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(string, indent));
+ case STYLE_FOLDED:
+ return '>' + blockHeader(string, state.indent)
+ + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
+ case STYLE_DOUBLE:
+ return '"' + escapeString(string, lineWidth) + '"';
+ default:
+ throw new YAMLException('impossible error: invalid scalar style');
+ }
+ }());
+}
+
+// Pre-conditions: string is valid for a block scalar, 1 <= indentPerLevel <= 9.
+function blockHeader(string, indentPerLevel) {
+ var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : '';
+
+ // note the special case: the string '\n' counts as a "trailing" empty line.
+ var clip = string[string.length - 1] === '\n';
+ var keep = clip && (string[string.length - 2] === '\n' || string === '\n');
+ var chomp = keep ? '+' : (clip ? '' : '-');
+
+ return indentIndicator + chomp + '\n';
+}
+
+// (See the note for writeScalar.)
+function dropEndingNewline(string) {
+ return string[string.length - 1] === '\n' ? string.slice(0, -1) : string;
+}
+
+// Note: a long line without a suitable break point will exceed the width limit.
+// Pre-conditions: every char in str isPrintable, str.length > 0, width > 0.
+function foldString(string, width) {
+ // In folded style, $k$ consecutive newlines output as $k+1$ newlines—
+ // unless they're before or after a more-indented line, or at the very
+ // beginning or end, in which case $k$ maps to $k$.
+ // Therefore, parse each chunk as newline(s) followed by a content line.
+ var lineRe = /(\n+)([^\n]*)/g;
+
+ // first line (possibly an empty line)
+ var result = (function () {
+ var nextLF = string.indexOf('\n');
+ nextLF = nextLF !== -1 ? nextLF : string.length;
+ lineRe.lastIndex = nextLF;
+ return foldLine(string.slice(0, nextLF), width);
+ }());
+ // If we haven't reached the first content line yet, don't add an extra \n.
+ var prevMoreIndented = string[0] === '\n' || string[0] === ' ';
+ var moreIndented;
+
+ // rest of the lines
+ var match;
+ while ((match = lineRe.exec(string))) {
+ var prefix = match[1], line = match[2];
+ moreIndented = (line[0] === ' ');
+ result += prefix
+ + (!prevMoreIndented && !moreIndented && line !== ''
+ ? '\n' : '')
+ + foldLine(line, width);
+ prevMoreIndented = moreIndented;
+ }
+
+ return result;
+}
+
+// Greedy line breaking.
+// Picks the longest line under the limit each time,
+// otherwise settles for the shortest line over the limit.
+// NB. More-indented lines *cannot* be folded, as that would add an extra \n.
+function foldLine(line, width) {
+ if (line === '' || line[0] === ' ') return line;
+
+ // Since a more-indented line adds a \n, breaks can't be followed by a space.
+ var breakRe = / [^ ]/g; // note: the match index will always be <= length-2.
+ var match;
+ // start is an inclusive index. end, curr, and next are exclusive.
+ var start = 0, end, curr = 0, next = 0;
+ var result = '';
+
+ // Invariants: 0 <= start <= length-1.
+ // 0 <= curr <= next <= max(0, length-2). curr - start <= width.
+ // Inside the loop:
+ // A match implies length >= 2, so curr and next are <= length-2.
+ while ((match = breakRe.exec(line))) {
+ next = match.index;
+ // maintain invariant: curr - start <= width
+ if (next - start > width) {
+ end = (curr > start) ? curr : next; // derive end <= length-2
+ result += '\n' + line.slice(start, end);
+ // skip the space that was output as \n
+ start = end + 1; // derive start <= length-1
+ }
+ curr = next;
+ }
+
+ // By the invariants, start <= length-1, so there is something left over.
+ // It is either the whole string or a part starting from non-whitespace.
+ result += '\n';
+ // Insert a break if the remainder is too long and there is a break available.
+ if (line.length - start > width && curr > start) {
+ result += line.slice(start, curr) + '\n' + line.slice(curr + 1);
+ } else {
+ result += line.slice(start);
+ }
+
+ return result.slice(1); // drop extra \n joiner
+}
+
+// Escapes a double-quoted string.
+function escapeString(string) {
+ var result = '';
+ var char, nextChar;
+ var escapeSeq;
+
+ for (var i = 0; i < string.length; i++) {
+ char = string.charCodeAt(i);
+ // Check for surrogate pairs (reference Unicode 3.0 section "3.7 Surrogates").
+ if (char >= 0xD800 && char <= 0xDBFF/* high surrogate */) {
+ nextChar = string.charCodeAt(i + 1);
+ if (nextChar >= 0xDC00 && nextChar <= 0xDFFF/* low surrogate */) {
+ // Combine the surrogate pair and store it escaped.
+ result += encodeHex((char - 0xD800) * 0x400 + nextChar - 0xDC00 + 0x10000);
+ // Advance index one extra since we already used that char here.
+ i++; continue;
+ }
+ }
+ escapeSeq = ESCAPE_SEQUENCES[char];
+ result += !escapeSeq && isPrintable(char)
+ ? string[i]
+ : escapeSeq || encodeHex(char);
+ }
+
+ return result;
+}
+
+function writeFlowSequence(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ // Write only valid elements.
+ if (writeNode(state, level, object[index], false, false)) {
+ if (index !== 0) _result += ',' + (!state.condenseFlow ? ' ' : '');
+ _result += state.dump;
+ }
+ }
+
+ state.tag = _tag;
+ state.dump = '[' + _result + ']';
+}
+
+function writeBlockSequence(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ index,
+ length;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ // Write only valid elements.
+ if (writeNode(state, level + 1, object[index], true, true)) {
+ if (!compact || index !== 0) {
+ _result += generateNextLine(state, level);
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ _result += '-';
+ } else {
+ _result += '- ';
+ }
+
+ _result += state.dump;
+ }
+ }
+
+ state.tag = _tag;
+ state.dump = _result || '[]'; // Empty sequence if no valid values.
+}
+
+function writeFlowMapping(state, level, object) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ pairBuffer;
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+
+ pairBuffer = '';
+ if (index !== 0) pairBuffer += ', ';
+
+ if (state.condenseFlow) pairBuffer += '"';
+
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
+
+ if (!writeNode(state, level, objectKey, false, false)) {
+ continue; // Skip this pair because of invalid key;
+ }
+
+ if (state.dump.length > 1024) pairBuffer += '? ';
+
+ pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
+
+ if (!writeNode(state, level, objectValue, false, false)) {
+ continue; // Skip this pair because of invalid value.
+ }
+
+ pairBuffer += state.dump;
+
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
+
+ state.tag = _tag;
+ state.dump = '{' + _result + '}';
+}
+
+function writeBlockMapping(state, level, object, compact) {
+ var _result = '',
+ _tag = state.tag,
+ objectKeyList = Object.keys(object),
+ index,
+ length,
+ objectKey,
+ objectValue,
+ explicitPair,
+ pairBuffer;
+
+ // Allow sorting keys so that the output file is deterministic
+ if (state.sortKeys === true) {
+ // Default sorting
+ objectKeyList.sort();
+ } else if (typeof state.sortKeys === 'function') {
+ // Custom sort function
+ objectKeyList.sort(state.sortKeys);
+ } else if (state.sortKeys) {
+ // Something is wrong
+ throw new YAMLException('sortKeys must be a boolean or a function');
+ }
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ pairBuffer = '';
+
+ if (!compact || index !== 0) {
+ pairBuffer += generateNextLine(state, level);
+ }
+
+ objectKey = objectKeyList[index];
+ objectValue = object[objectKey];
+
+ if (!writeNode(state, level + 1, objectKey, true, true, true)) {
+ continue; // Skip this pair because of invalid key.
+ }
+
+ explicitPair = (state.tag !== null && state.tag !== '?') ||
+ (state.dump && state.dump.length > 1024);
+
+ if (explicitPair) {
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += '?';
+ } else {
+ pairBuffer += '? ';
+ }
+ }
+
+ pairBuffer += state.dump;
+
+ if (explicitPair) {
+ pairBuffer += generateNextLine(state, level);
+ }
+
+ if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
+ continue; // Skip this pair because of invalid value.
+ }
+
+ if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
+ pairBuffer += ':';
+ } else {
+ pairBuffer += ': ';
+ }
+
+ pairBuffer += state.dump;
+
+ // Both key and value are valid.
+ _result += pairBuffer;
+ }
+
+ state.tag = _tag;
+ state.dump = _result || '{}'; // Empty mapping if no valid pairs.
+}
+
+function detectType(state, object, explicit) {
+ var _result, typeList, index, length, type, style;
+
+ typeList = explicit ? state.explicitTypes : state.implicitTypes;
+
+ for (index = 0, length = typeList.length; index < length; index += 1) {
+ type = typeList[index];
+
+ if ((type.instanceOf || type.predicate) &&
+ (!type.instanceOf || ((typeof object === 'object') && (object instanceof type.instanceOf))) &&
+ (!type.predicate || type.predicate(object))) {
+
+ state.tag = explicit ? type.tag : '?';
+
+ if (type.represent) {
+ style = state.styleMap[type.tag] || type.defaultStyle;
+
+ if (_toString.call(type.represent) === '[object Function]') {
+ _result = type.represent(object, style);
+ } else if (_hasOwnProperty.call(type.represent, style)) {
+ _result = type.represent[style](object, style);
+ } else {
+ throw new YAMLException('!<' + type.tag + '> tag resolver accepts not "' + style + '" style');
+ }
+
+ state.dump = _result;
+ }
+
+ return true;
+ }
+ }
+
+ return false;
+}
+
+// Serializes `object` and writes it to global `result`.
+// Returns true on success, or false on invalid object.
+//
+function writeNode(state, level, object, block, compact, iskey) {
+ state.tag = null;
+ state.dump = object;
+
+ if (!detectType(state, object, false)) {
+ detectType(state, object, true);
+ }
+
+ var type = _toString.call(state.dump);
+
+ if (block) {
+ block = (state.flowLevel < 0 || state.flowLevel > level);
+ }
+
+ var objectOrArray = type === '[object Object]' || type === '[object Array]',
+ duplicateIndex,
+ duplicate;
+
+ if (objectOrArray) {
+ duplicateIndex = state.duplicates.indexOf(object);
+ duplicate = duplicateIndex !== -1;
+ }
+
+ if ((state.tag !== null && state.tag !== '?') || duplicate || (state.indent !== 2 && level > 0)) {
+ compact = false;
+ }
+
+ if (duplicate && state.usedDuplicates[duplicateIndex]) {
+ state.dump = '*ref_' + duplicateIndex;
+ } else {
+ if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
+ state.usedDuplicates[duplicateIndex] = true;
+ }
+ if (type === '[object Object]') {
+ if (block && (Object.keys(state.dump).length !== 0)) {
+ writeBlockMapping(state, level, state.dump, compact);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowMapping(state, level, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object Array]') {
+ var arrayLevel = (state.noArrayIndent && (level > 0)) ? level - 1 : level;
+ if (block && (state.dump.length !== 0)) {
+ writeBlockSequence(state, arrayLevel, state.dump, compact);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + state.dump;
+ }
+ } else {
+ writeFlowSequence(state, arrayLevel, state.dump);
+ if (duplicate) {
+ state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
+ }
+ }
+ } else if (type === '[object String]') {
+ if (state.tag !== '?') {
+ writeScalar(state, state.dump, level, iskey);
+ }
+ } else {
+ if (state.skipInvalid) return false;
+ throw new YAMLException('unacceptable kind of an object to dump ' + type);
+ }
+
+ if (state.tag !== null && state.tag !== '?') {
+ state.dump = '!<' + state.tag + '> ' + state.dump;
+ }
+ }
+
+ return true;
+}
+
+function getDuplicateReferences(object, state) {
+ var objects = [],
+ duplicatesIndexes = [],
+ index,
+ length;
+
+ inspectNode(object, objects, duplicatesIndexes);
+
+ for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
+ state.duplicates.push(objects[duplicatesIndexes[index]]);
+ }
+ state.usedDuplicates = new Array(length);
+}
+
+function inspectNode(object, objects, duplicatesIndexes) {
+ var objectKeyList,
+ index,
+ length;
+
+ if (object !== null && typeof object === 'object') {
+ index = objects.indexOf(object);
+ if (index !== -1) {
+ if (duplicatesIndexes.indexOf(index) === -1) {
+ duplicatesIndexes.push(index);
+ }
+ } else {
+ objects.push(object);
+
+ if (Array.isArray(object)) {
+ for (index = 0, length = object.length; index < length; index += 1) {
+ inspectNode(object[index], objects, duplicatesIndexes);
+ }
+ } else {
+ objectKeyList = Object.keys(object);
+
+ for (index = 0, length = objectKeyList.length; index < length; index += 1) {
+ inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
+ }
+ }
+ }
+ }
+}
+
+function dump(input, options) {
+ options = options || {};
+
+ var state = new State(options);
+
+ if (!state.noRefs) getDuplicateReferences(input, state);
+
+ if (writeNode(state, 0, input, true, true)) return state.dump + '\n';
+
+ return '';
+}
+
+function safeDump(input, options) {
+ return dump(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+module.exports.dump = dump;
+module.exports.safeDump = safeDump;
diff --git a/node_modules/js-yaml/lib/js-yaml/exception.js b/node_modules/js-yaml/lib/js-yaml/exception.js
new file mode 100644
index 00000000..b744a1ee
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/exception.js
@@ -0,0 +1,43 @@
+// YAML error class. http://stackoverflow.com/questions/8458984
+//
+'use strict';
+
+function YAMLException(reason, mark) {
+ // Super constructor
+ Error.call(this);
+
+ this.name = 'YAMLException';
+ this.reason = reason;
+ this.mark = mark;
+ this.message = (this.reason || '(unknown reason)') + (this.mark ? ' ' + this.mark.toString() : '');
+
+ // Include stack trace in error object
+ if (Error.captureStackTrace) {
+ // Chrome and NodeJS
+ Error.captureStackTrace(this, this.constructor);
+ } else {
+ // FF, IE 10+ and Safari 6+. Fallback for others
+ this.stack = (new Error()).stack || '';
+ }
+}
+
+
+// Inherit from Error
+YAMLException.prototype = Object.create(Error.prototype);
+YAMLException.prototype.constructor = YAMLException;
+
+
+YAMLException.prototype.toString = function toString(compact) {
+ var result = this.name + ': ';
+
+ result += this.reason || '(unknown reason)';
+
+ if (!compact && this.mark) {
+ result += ' ' + this.mark.toString();
+ }
+
+ return result;
+};
+
+
+module.exports = YAMLException;
diff --git a/node_modules/js-yaml/lib/js-yaml/loader.js b/node_modules/js-yaml/lib/js-yaml/loader.js
new file mode 100644
index 00000000..d7484a59
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/loader.js
@@ -0,0 +1,1644 @@
+'use strict';
+
+/*eslint-disable max-len,no-use-before-define*/
+
+var common = require('./common');
+var YAMLException = require('./exception');
+var Mark = require('./mark');
+var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
+var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
+
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+
+
+var CONTEXT_FLOW_IN = 1;
+var CONTEXT_FLOW_OUT = 2;
+var CONTEXT_BLOCK_IN = 3;
+var CONTEXT_BLOCK_OUT = 4;
+
+
+var CHOMPING_CLIP = 1;
+var CHOMPING_STRIP = 2;
+var CHOMPING_KEEP = 3;
+
+
+var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
+var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
+var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
+var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
+var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
+
+
+function _class(obj) { return Object.prototype.toString.call(obj); }
+
+function is_EOL(c) {
+ return (c === 0x0A/* LF */) || (c === 0x0D/* CR */);
+}
+
+function is_WHITE_SPACE(c) {
+ return (c === 0x09/* Tab */) || (c === 0x20/* Space */);
+}
+
+function is_WS_OR_EOL(c) {
+ return (c === 0x09/* Tab */) ||
+ (c === 0x20/* Space */) ||
+ (c === 0x0A/* LF */) ||
+ (c === 0x0D/* CR */);
+}
+
+function is_FLOW_INDICATOR(c) {
+ return c === 0x2C/* , */ ||
+ c === 0x5B/* [ */ ||
+ c === 0x5D/* ] */ ||
+ c === 0x7B/* { */ ||
+ c === 0x7D/* } */;
+}
+
+function fromHexCode(c) {
+ var lc;
+
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
+ return c - 0x30;
+ }
+
+ /*eslint-disable no-bitwise*/
+ lc = c | 0x20;
+
+ if ((0x61/* a */ <= lc) && (lc <= 0x66/* f */)) {
+ return lc - 0x61 + 10;
+ }
+
+ return -1;
+}
+
+function escapedHexLen(c) {
+ if (c === 0x78/* x */) { return 2; }
+ if (c === 0x75/* u */) { return 4; }
+ if (c === 0x55/* U */) { return 8; }
+ return 0;
+}
+
+function fromDecimalCode(c) {
+ if ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) {
+ return c - 0x30;
+ }
+
+ return -1;
+}
+
+function simpleEscapeSequence(c) {
+ /* eslint-disable indent */
+ return (c === 0x30/* 0 */) ? '\x00' :
+ (c === 0x61/* a */) ? '\x07' :
+ (c === 0x62/* b */) ? '\x08' :
+ (c === 0x74/* t */) ? '\x09' :
+ (c === 0x09/* Tab */) ? '\x09' :
+ (c === 0x6E/* n */) ? '\x0A' :
+ (c === 0x76/* v */) ? '\x0B' :
+ (c === 0x66/* f */) ? '\x0C' :
+ (c === 0x72/* r */) ? '\x0D' :
+ (c === 0x65/* e */) ? '\x1B' :
+ (c === 0x20/* Space */) ? ' ' :
+ (c === 0x22/* " */) ? '\x22' :
+ (c === 0x2F/* / */) ? '/' :
+ (c === 0x5C/* \ */) ? '\x5C' :
+ (c === 0x4E/* N */) ? '\x85' :
+ (c === 0x5F/* _ */) ? '\xA0' :
+ (c === 0x4C/* L */) ? '\u2028' :
+ (c === 0x50/* P */) ? '\u2029' : '';
+}
+
+function charFromCodepoint(c) {
+ if (c <= 0xFFFF) {
+ return String.fromCharCode(c);
+ }
+ // Encode UTF-16 surrogate pair
+ // https://en.wikipedia.org/wiki/UTF-16#Code_points_U.2B010000_to_U.2B10FFFF
+ return String.fromCharCode(
+ ((c - 0x010000) >> 10) + 0xD800,
+ ((c - 0x010000) & 0x03FF) + 0xDC00
+ );
+}
+
+var simpleEscapeCheck = new Array(256); // integer, for fast access
+var simpleEscapeMap = new Array(256);
+for (var i = 0; i < 256; i++) {
+ simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
+ simpleEscapeMap[i] = simpleEscapeSequence(i);
+}
+
+
+function State(input, options) {
+ this.input = input;
+
+ this.filename = options['filename'] || null;
+ this.schema = options['schema'] || DEFAULT_FULL_SCHEMA;
+ this.onWarning = options['onWarning'] || null;
+ this.legacy = options['legacy'] || false;
+ this.json = options['json'] || false;
+ this.listener = options['listener'] || null;
+
+ this.implicitTypes = this.schema.compiledImplicit;
+ this.typeMap = this.schema.compiledTypeMap;
+
+ this.length = input.length;
+ this.position = 0;
+ this.line = 0;
+ this.lineStart = 0;
+ this.lineIndent = 0;
+
+ this.documents = [];
+
+ /*
+ this.version;
+ this.checkLineBreaks;
+ this.tagMap;
+ this.anchorMap;
+ this.tag;
+ this.anchor;
+ this.kind;
+ this.result;*/
+
+}
+
+
+function generateError(state, message) {
+ return new YAMLException(
+ message,
+ new Mark(state.filename, state.input, state.position, state.line, (state.position - state.lineStart)));
+}
+
+function throwError(state, message) {
+ throw generateError(state, message);
+}
+
+function throwWarning(state, message) {
+ if (state.onWarning) {
+ state.onWarning.call(null, generateError(state, message));
+ }
+}
+
+
+var directiveHandlers = {
+
+ YAML: function handleYamlDirective(state, name, args) {
+
+ var match, major, minor;
+
+ if (state.version !== null) {
+ throwError(state, 'duplication of %YAML directive');
+ }
+
+ if (args.length !== 1) {
+ throwError(state, 'YAML directive accepts exactly one argument');
+ }
+
+ match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
+
+ if (match === null) {
+ throwError(state, 'ill-formed argument of the YAML directive');
+ }
+
+ major = parseInt(match[1], 10);
+ minor = parseInt(match[2], 10);
+
+ if (major !== 1) {
+ throwError(state, 'unacceptable YAML version of the document');
+ }
+
+ state.version = args[0];
+ state.checkLineBreaks = (minor < 2);
+
+ if (minor !== 1 && minor !== 2) {
+ throwWarning(state, 'unsupported YAML version of the document');
+ }
+ },
+
+ TAG: function handleTagDirective(state, name, args) {
+
+ var handle, prefix;
+
+ if (args.length !== 2) {
+ throwError(state, 'TAG directive accepts exactly two arguments');
+ }
+
+ handle = args[0];
+ prefix = args[1];
+
+ if (!PATTERN_TAG_HANDLE.test(handle)) {
+ throwError(state, 'ill-formed tag handle (first argument) of the TAG directive');
+ }
+
+ if (_hasOwnProperty.call(state.tagMap, handle)) {
+ throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
+ }
+
+ if (!PATTERN_TAG_URI.test(prefix)) {
+ throwError(state, 'ill-formed tag prefix (second argument) of the TAG directive');
+ }
+
+ state.tagMap[handle] = prefix;
+ }
+};
+
+
+function captureSegment(state, start, end, checkJson) {
+ var _position, _length, _character, _result;
+
+ if (start < end) {
+ _result = state.input.slice(start, end);
+
+ if (checkJson) {
+ for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
+ _character = _result.charCodeAt(_position);
+ if (!(_character === 0x09 ||
+ (0x20 <= _character && _character <= 0x10FFFF))) {
+ throwError(state, 'expected valid JSON character');
+ }
+ }
+ } else if (PATTERN_NON_PRINTABLE.test(_result)) {
+ throwError(state, 'the stream contains non-printable characters');
+ }
+
+ state.result += _result;
+ }
+}
+
+function mergeMappings(state, destination, source, overridableKeys) {
+ var sourceKeys, key, index, quantity;
+
+ if (!common.isObject(source)) {
+ throwError(state, 'cannot merge mappings; the provided source object is unacceptable');
+ }
+
+ sourceKeys = Object.keys(source);
+
+ for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
+ key = sourceKeys[index];
+
+ if (!_hasOwnProperty.call(destination, key)) {
+ destination[key] = source[key];
+ overridableKeys[key] = true;
+ }
+ }
+}
+
+function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startPos) {
+ var index, quantity;
+
+ // The output is a plain object here, so keys can only be strings.
+ // We need to convert keyNode to a string, but doing so can hang the process
+ // (deeply nested arrays that explode exponentially using aliases).
+ if (Array.isArray(keyNode)) {
+ keyNode = Array.prototype.slice.call(keyNode);
+
+ for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
+ if (Array.isArray(keyNode[index])) {
+ throwError(state, 'nested arrays are not supported inside keys');
+ }
+
+ if (typeof keyNode === 'object' && _class(keyNode[index]) === '[object Object]') {
+ keyNode[index] = '[object Object]';
+ }
+ }
+ }
+
+ // Avoid code execution in load() via toString property
+ // (still use its own toString for arrays, timestamps,
+ // and whatever user schema extensions happen to have @@toStringTag)
+ if (typeof keyNode === 'object' && _class(keyNode) === '[object Object]') {
+ keyNode = '[object Object]';
+ }
+
+
+ keyNode = String(keyNode);
+
+ if (_result === null) {
+ _result = {};
+ }
+
+ if (keyTag === 'tag:yaml.org,2002:merge') {
+ if (Array.isArray(valueNode)) {
+ for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
+ mergeMappings(state, _result, valueNode[index], overridableKeys);
+ }
+ } else {
+ mergeMappings(state, _result, valueNode, overridableKeys);
+ }
+ } else {
+ if (!state.json &&
+ !_hasOwnProperty.call(overridableKeys, keyNode) &&
+ _hasOwnProperty.call(_result, keyNode)) {
+ state.line = startLine || state.line;
+ state.position = startPos || state.position;
+ throwError(state, 'duplicated mapping key');
+ }
+ _result[keyNode] = valueNode;
+ delete overridableKeys[keyNode];
+ }
+
+ return _result;
+}
+
+function readLineBreak(state) {
+ var ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x0A/* LF */) {
+ state.position++;
+ } else if (ch === 0x0D/* CR */) {
+ state.position++;
+ if (state.input.charCodeAt(state.position) === 0x0A/* LF */) {
+ state.position++;
+ }
+ } else {
+ throwError(state, 'a line break is expected');
+ }
+
+ state.line += 1;
+ state.lineStart = state.position;
+}
+
+function skipSeparationSpace(state, allowComments, checkIndent) {
+ var lineBreaks = 0,
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (allowComments && ch === 0x23/* # */) {
+ do {
+ ch = state.input.charCodeAt(++state.position);
+ } while (ch !== 0x0A/* LF */ && ch !== 0x0D/* CR */ && ch !== 0);
+ }
+
+ if (is_EOL(ch)) {
+ readLineBreak(state);
+
+ ch = state.input.charCodeAt(state.position);
+ lineBreaks++;
+ state.lineIndent = 0;
+
+ while (ch === 0x20/* Space */) {
+ state.lineIndent++;
+ ch = state.input.charCodeAt(++state.position);
+ }
+ } else {
+ break;
+ }
+ }
+
+ if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
+ throwWarning(state, 'deficient indentation');
+ }
+
+ return lineBreaks;
+}
+
+function testDocumentSeparator(state) {
+ var _position = state.position,
+ ch;
+
+ ch = state.input.charCodeAt(_position);
+
+ // Condition state.position === state.lineStart is tested
+ // in parent on each call, for efficiency. No needs to test here again.
+ if ((ch === 0x2D/* - */ || ch === 0x2E/* . */) &&
+ ch === state.input.charCodeAt(_position + 1) &&
+ ch === state.input.charCodeAt(_position + 2)) {
+
+ _position += 3;
+
+ ch = state.input.charCodeAt(_position);
+
+ if (ch === 0 || is_WS_OR_EOL(ch)) {
+ return true;
+ }
+ }
+
+ return false;
+}
+
+function writeFoldedLines(state, count) {
+ if (count === 1) {
+ state.result += ' ';
+ } else if (count > 1) {
+ state.result += common.repeat('\n', count - 1);
+ }
+}
+
+
+function readPlainScalar(state, nodeIndent, withinFlowCollection) {
+ var preceding,
+ following,
+ captureStart,
+ captureEnd,
+ hasPendingContent,
+ _line,
+ _lineStart,
+ _lineIndent,
+ _kind = state.kind,
+ _result = state.result,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (is_WS_OR_EOL(ch) ||
+ is_FLOW_INDICATOR(ch) ||
+ ch === 0x23/* # */ ||
+ ch === 0x26/* & */ ||
+ ch === 0x2A/* * */ ||
+ ch === 0x21/* ! */ ||
+ ch === 0x7C/* | */ ||
+ ch === 0x3E/* > */ ||
+ ch === 0x27/* ' */ ||
+ ch === 0x22/* " */ ||
+ ch === 0x25/* % */ ||
+ ch === 0x40/* @ */ ||
+ ch === 0x60/* ` */) {
+ return false;
+ }
+
+ if (ch === 0x3F/* ? */ || ch === 0x2D/* - */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following) ||
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
+ return false;
+ }
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ captureStart = captureEnd = state.position;
+ hasPendingContent = false;
+
+ while (ch !== 0) {
+ if (ch === 0x3A/* : */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following) ||
+ withinFlowCollection && is_FLOW_INDICATOR(following)) {
+ break;
+ }
+
+ } else if (ch === 0x23/* # */) {
+ preceding = state.input.charCodeAt(state.position - 1);
+
+ if (is_WS_OR_EOL(preceding)) {
+ break;
+ }
+
+ } else if ((state.position === state.lineStart && testDocumentSeparator(state)) ||
+ withinFlowCollection && is_FLOW_INDICATOR(ch)) {
+ break;
+
+ } else if (is_EOL(ch)) {
+ _line = state.line;
+ _lineStart = state.lineStart;
+ _lineIndent = state.lineIndent;
+ skipSeparationSpace(state, false, -1);
+
+ if (state.lineIndent >= nodeIndent) {
+ hasPendingContent = true;
+ ch = state.input.charCodeAt(state.position);
+ continue;
+ } else {
+ state.position = captureEnd;
+ state.line = _line;
+ state.lineStart = _lineStart;
+ state.lineIndent = _lineIndent;
+ break;
+ }
+ }
+
+ if (hasPendingContent) {
+ captureSegment(state, captureStart, captureEnd, false);
+ writeFoldedLines(state, state.line - _line);
+ captureStart = captureEnd = state.position;
+ hasPendingContent = false;
+ }
+
+ if (!is_WHITE_SPACE(ch)) {
+ captureEnd = state.position + 1;
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ captureSegment(state, captureStart, captureEnd, false);
+
+ if (state.result) {
+ return true;
+ }
+
+ state.kind = _kind;
+ state.result = _result;
+ return false;
+}
+
+function readSingleQuotedScalar(state, nodeIndent) {
+ var ch,
+ captureStart, captureEnd;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x27/* ' */) {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ state.position++;
+ captureStart = captureEnd = state.position;
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x27/* ' */) {
+ captureSegment(state, captureStart, state.position, true);
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x27/* ' */) {
+ captureStart = state.position;
+ state.position++;
+ captureEnd = state.position;
+ } else {
+ return true;
+ }
+
+ } else if (is_EOL(ch)) {
+ captureSegment(state, captureStart, captureEnd, true);
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
+ captureStart = captureEnd = state.position;
+
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a single quoted scalar');
+
+ } else {
+ state.position++;
+ captureEnd = state.position;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a single quoted scalar');
+}
+
+function readDoubleQuotedScalar(state, nodeIndent) {
+ var captureStart,
+ captureEnd,
+ hexLength,
+ hexResult,
+ tmp,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x22/* " */) {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+ state.position++;
+ captureStart = captureEnd = state.position;
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ if (ch === 0x22/* " */) {
+ captureSegment(state, captureStart, state.position, true);
+ state.position++;
+ return true;
+
+ } else if (ch === 0x5C/* \ */) {
+ captureSegment(state, captureStart, state.position, true);
+ ch = state.input.charCodeAt(++state.position);
+
+ if (is_EOL(ch)) {
+ skipSeparationSpace(state, false, nodeIndent);
+
+ // TODO: rework to inline fn with no type cast?
+ } else if (ch < 256 && simpleEscapeCheck[ch]) {
+ state.result += simpleEscapeMap[ch];
+ state.position++;
+
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
+ hexLength = tmp;
+ hexResult = 0;
+
+ for (; hexLength > 0; hexLength--) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if ((tmp = fromHexCode(ch)) >= 0) {
+ hexResult = (hexResult << 4) + tmp;
+
+ } else {
+ throwError(state, 'expected hexadecimal character');
+ }
+ }
+
+ state.result += charFromCodepoint(hexResult);
+
+ state.position++;
+
+ } else {
+ throwError(state, 'unknown escape sequence');
+ }
+
+ captureStart = captureEnd = state.position;
+
+ } else if (is_EOL(ch)) {
+ captureSegment(state, captureStart, captureEnd, true);
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
+ captureStart = captureEnd = state.position;
+
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) {
+ throwError(state, 'unexpected end of the document within a double quoted scalar');
+
+ } else {
+ state.position++;
+ captureEnd = state.position;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a double quoted scalar');
+}
+
+function readFlowCollection(state, nodeIndent) {
+ var readNext = true,
+ _line,
+ _tag = state.tag,
+ _result,
+ _anchor = state.anchor,
+ following,
+ terminator,
+ isPair,
+ isExplicitPair,
+ isMapping,
+ overridableKeys = {},
+ keyNode,
+ keyTag,
+ valueNode,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x5B/* [ */) {
+ terminator = 0x5D;/* ] */
+ isMapping = false;
+ _result = [];
+ } else if (ch === 0x7B/* { */) {
+ terminator = 0x7D;/* } */
+ isMapping = true;
+ _result = {};
+ } else {
+ return false;
+ }
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+
+ while (ch !== 0) {
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === terminator) {
+ state.position++;
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = isMapping ? 'mapping' : 'sequence';
+ state.result = _result;
+ return true;
+ } else if (!readNext) {
+ throwError(state, 'missed comma between flow collection entries');
+ }
+
+ keyTag = keyNode = valueNode = null;
+ isPair = isExplicitPair = false;
+
+ if (ch === 0x3F/* ? */) {
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (is_WS_OR_EOL(following)) {
+ isPair = isExplicitPair = true;
+ state.position++;
+ skipSeparationSpace(state, true, nodeIndent);
+ }
+ }
+
+ _line = state.line;
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
+ keyTag = state.tag;
+ keyNode = state.result;
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if ((isExplicitPair || state.line === _line) && ch === 0x3A/* : */) {
+ isPair = true;
+ ch = state.input.charCodeAt(++state.position);
+ skipSeparationSpace(state, true, nodeIndent);
+ composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
+ valueNode = state.result;
+ }
+
+ if (isMapping) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode);
+ } else if (isPair) {
+ _result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode));
+ } else {
+ _result.push(keyNode);
+ }
+
+ skipSeparationSpace(state, true, nodeIndent);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x2C/* , */) {
+ readNext = true;
+ ch = state.input.charCodeAt(++state.position);
+ } else {
+ readNext = false;
+ }
+ }
+
+ throwError(state, 'unexpected end of the stream within a flow collection');
+}
+
+function readBlockScalar(state, nodeIndent) {
+ var captureStart,
+ folding,
+ chomping = CHOMPING_CLIP,
+ didReadContent = false,
+ detectedIndent = false,
+ textIndent = nodeIndent,
+ emptyLines = 0,
+ atMoreIndented = false,
+ tmp,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch === 0x7C/* | */) {
+ folding = false;
+ } else if (ch === 0x3E/* > */) {
+ folding = true;
+ } else {
+ return false;
+ }
+
+ state.kind = 'scalar';
+ state.result = '';
+
+ while (ch !== 0) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x2B/* + */ || ch === 0x2D/* - */) {
+ if (CHOMPING_CLIP === chomping) {
+ chomping = (ch === 0x2B/* + */) ? CHOMPING_KEEP : CHOMPING_STRIP;
+ } else {
+ throwError(state, 'repeat of a chomping mode identifier');
+ }
+
+ } else if ((tmp = fromDecimalCode(ch)) >= 0) {
+ if (tmp === 0) {
+ throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
+ } else if (!detectedIndent) {
+ textIndent = nodeIndent + tmp - 1;
+ detectedIndent = true;
+ } else {
+ throwError(state, 'repeat of an indentation width identifier');
+ }
+
+ } else {
+ break;
+ }
+ }
+
+ if (is_WHITE_SPACE(ch)) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (is_WHITE_SPACE(ch));
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (!is_EOL(ch) && (ch !== 0));
+ }
+ }
+
+ while (ch !== 0) {
+ readLineBreak(state);
+ state.lineIndent = 0;
+
+ ch = state.input.charCodeAt(state.position);
+
+ while ((!detectedIndent || state.lineIndent < textIndent) &&
+ (ch === 0x20/* Space */)) {
+ state.lineIndent++;
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (!detectedIndent && state.lineIndent > textIndent) {
+ textIndent = state.lineIndent;
+ }
+
+ if (is_EOL(ch)) {
+ emptyLines++;
+ continue;
+ }
+
+ // End of the scalar.
+ if (state.lineIndent < textIndent) {
+
+ // Perform the chomping.
+ if (chomping === CHOMPING_KEEP) {
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+ } else if (chomping === CHOMPING_CLIP) {
+ if (didReadContent) { // i.e. only if the scalar is not empty.
+ state.result += '\n';
+ }
+ }
+
+ // Break this `while` cycle and go to the funciton's epilogue.
+ break;
+ }
+
+ // Folded style: use fancy rules to handle line breaks.
+ if (folding) {
+
+ // Lines starting with white space characters (more-indented lines) are not folded.
+ if (is_WHITE_SPACE(ch)) {
+ atMoreIndented = true;
+ // except for the first content line (cf. Example 8.1)
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+
+ // End of more-indented block.
+ } else if (atMoreIndented) {
+ atMoreIndented = false;
+ state.result += common.repeat('\n', emptyLines + 1);
+
+ // Just one line break - perceive as the same line.
+ } else if (emptyLines === 0) {
+ if (didReadContent) { // i.e. only if we have already read some scalar content.
+ state.result += ' ';
+ }
+
+ // Several line breaks - perceive as different lines.
+ } else {
+ state.result += common.repeat('\n', emptyLines);
+ }
+
+ // Literal style: just add exact number of line breaks between content lines.
+ } else {
+ // Keep all line breaks except the header line break.
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
+ }
+
+ didReadContent = true;
+ detectedIndent = true;
+ emptyLines = 0;
+ captureStart = state.position;
+
+ while (!is_EOL(ch) && (ch !== 0)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ captureSegment(state, captureStart, state.position, false);
+ }
+
+ return true;
+}
+
+function readBlockSequence(state, nodeIndent) {
+ var _line,
+ _tag = state.tag,
+ _anchor = state.anchor,
+ _result = [],
+ following,
+ detected = false,
+ ch;
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+
+ if (ch !== 0x2D/* - */) {
+ break;
+ }
+
+ following = state.input.charCodeAt(state.position + 1);
+
+ if (!is_WS_OR_EOL(following)) {
+ break;
+ }
+
+ detected = true;
+ state.position++;
+
+ if (skipSeparationSpace(state, true, -1)) {
+ if (state.lineIndent <= nodeIndent) {
+ _result.push(null);
+ ch = state.input.charCodeAt(state.position);
+ continue;
+ }
+ }
+
+ _line = state.line;
+ composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
+ _result.push(state.result);
+ skipSeparationSpace(state, true, -1);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if ((state.line === _line || state.lineIndent > nodeIndent) && (ch !== 0)) {
+ throwError(state, 'bad indentation of a sequence entry');
+ } else if (state.lineIndent < nodeIndent) {
+ break;
+ }
+ }
+
+ if (detected) {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = 'sequence';
+ state.result = _result;
+ return true;
+ }
+ return false;
+}
+
+function readBlockMapping(state, nodeIndent, flowIndent) {
+ var following,
+ allowCompact,
+ _line,
+ _pos,
+ _tag = state.tag,
+ _anchor = state.anchor,
+ _result = {},
+ overridableKeys = {},
+ keyTag = null,
+ keyNode = null,
+ valueNode = null,
+ atExplicitKey = false,
+ detected = false,
+ ch;
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = _result;
+ }
+
+ ch = state.input.charCodeAt(state.position);
+
+ while (ch !== 0) {
+ following = state.input.charCodeAt(state.position + 1);
+ _line = state.line; // Save the current line.
+ _pos = state.position;
+
+ //
+ // Explicit notation case. There are two separate blocks:
+ // first for the key (denoted by "?") and second for the value (denoted by ":")
+ //
+ if ((ch === 0x3F/* ? */ || ch === 0x3A/* : */) && is_WS_OR_EOL(following)) {
+
+ if (ch === 0x3F/* ? */) {
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ detected = true;
+ atExplicitKey = true;
+ allowCompact = true;
+
+ } else if (atExplicitKey) {
+ // i.e. 0x3A/* : */ === character after the explicit key.
+ atExplicitKey = false;
+ allowCompact = true;
+
+ } else {
+ throwError(state, 'incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line');
+ }
+
+ state.position += 1;
+ ch = following;
+
+ //
+ // Implicit notation case. Flow-style node as the key first, then ":", and the value.
+ //
+ } else if (composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
+
+ if (state.line === _line) {
+ ch = state.input.charCodeAt(state.position);
+
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (ch === 0x3A/* : */) {
+ ch = state.input.charCodeAt(++state.position);
+
+ if (!is_WS_OR_EOL(ch)) {
+ throwError(state, 'a whitespace character is expected after the key-value separator within a block mapping');
+ }
+
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ detected = true;
+ atExplicitKey = false;
+ allowCompact = false;
+ keyTag = state.tag;
+ keyNode = state.result;
+
+ } else if (detected) {
+ throwError(state, 'can not read an implicit mapping pair; a colon is missed');
+
+ } else {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ return true; // Keep the result of `composeNode`.
+ }
+
+ } else if (detected) {
+ throwError(state, 'can not read a block mapping entry; a multiline key may not be an implicit key');
+
+ } else {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ return true; // Keep the result of `composeNode`.
+ }
+
+ } else {
+ break; // Reading is done. Go to the epilogue.
+ }
+
+ //
+ // Common reading code for both explicit and implicit notations.
+ //
+ if (state.line === _line || state.lineIndent > nodeIndent) {
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
+ if (atExplicitKey) {
+ keyNode = state.result;
+ } else {
+ valueNode = state.result;
+ }
+ }
+
+ if (!atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _pos);
+ keyTag = keyNode = valueNode = null;
+ }
+
+ skipSeparationSpace(state, true, -1);
+ ch = state.input.charCodeAt(state.position);
+ }
+
+ if (state.lineIndent > nodeIndent && (ch !== 0)) {
+ throwError(state, 'bad indentation of a mapping entry');
+ } else if (state.lineIndent < nodeIndent) {
+ break;
+ }
+ }
+
+ //
+ // Epilogue.
+ //
+
+ // Special case: last mapping's node contains only the key in explicit notation.
+ if (atExplicitKey) {
+ storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null);
+ }
+
+ // Expose the resulting mapping.
+ if (detected) {
+ state.tag = _tag;
+ state.anchor = _anchor;
+ state.kind = 'mapping';
+ state.result = _result;
+ }
+
+ return detected;
+}
+
+function readTagProperty(state) {
+ var _position,
+ isVerbatim = false,
+ isNamed = false,
+ tagHandle,
+ tagName,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x21/* ! */) return false;
+
+ if (state.tag !== null) {
+ throwError(state, 'duplication of a tag property');
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+
+ if (ch === 0x3C/* < */) {
+ isVerbatim = true;
+ ch = state.input.charCodeAt(++state.position);
+
+ } else if (ch === 0x21/* ! */) {
+ isNamed = true;
+ tagHandle = '!!';
+ ch = state.input.charCodeAt(++state.position);
+
+ } else {
+ tagHandle = '!';
+ }
+
+ _position = state.position;
+
+ if (isVerbatim) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (ch !== 0 && ch !== 0x3E/* > */);
+
+ if (state.position < state.length) {
+ tagName = state.input.slice(_position, state.position);
+ ch = state.input.charCodeAt(++state.position);
+ } else {
+ throwError(state, 'unexpected end of the stream within a verbatim tag');
+ }
+ } else {
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+
+ if (ch === 0x21/* ! */) {
+ if (!isNamed) {
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
+
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
+ throwError(state, 'named tag handle cannot contain such characters');
+ }
+
+ isNamed = true;
+ _position = state.position + 1;
+ } else {
+ throwError(state, 'tag suffix cannot contain exclamation marks');
+ }
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ tagName = state.input.slice(_position, state.position);
+
+ if (PATTERN_FLOW_INDICATORS.test(tagName)) {
+ throwError(state, 'tag suffix cannot contain flow indicator characters');
+ }
+ }
+
+ if (tagName && !PATTERN_TAG_URI.test(tagName)) {
+ throwError(state, 'tag name cannot contain such characters: ' + tagName);
+ }
+
+ if (isVerbatim) {
+ state.tag = tagName;
+
+ } else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
+ state.tag = state.tagMap[tagHandle] + tagName;
+
+ } else if (tagHandle === '!') {
+ state.tag = '!' + tagName;
+
+ } else if (tagHandle === '!!') {
+ state.tag = 'tag:yaml.org,2002:' + tagName;
+
+ } else {
+ throwError(state, 'undeclared tag handle "' + tagHandle + '"');
+ }
+
+ return true;
+}
+
+function readAnchorProperty(state) {
+ var _position,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x26/* & */) return false;
+
+ if (state.anchor !== null) {
+ throwError(state, 'duplication of an anchor property');
+ }
+
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an anchor node must contain at least one character');
+ }
+
+ state.anchor = state.input.slice(_position, state.position);
+ return true;
+}
+
+function readAlias(state) {
+ var _position, alias,
+ ch;
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (ch !== 0x2A/* * */) return false;
+
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch) && !is_FLOW_INDICATOR(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (state.position === _position) {
+ throwError(state, 'name of an alias node must contain at least one character');
+ }
+
+ alias = state.input.slice(_position, state.position);
+
+ if (!_hasOwnProperty.call(state.anchorMap, alias)) {
+ throwError(state, 'unidentified alias "' + alias + '"');
+ }
+
+ state.result = state.anchorMap[alias];
+ skipSeparationSpace(state, true, -1);
+ return true;
+}
+
+function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
+ var allowBlockStyles,
+ allowBlockScalars,
+ allowBlockCollections,
+ indentStatus = 1, // 1: this>parent, 0: this=parent, -1: this parentIndent) {
+ indentStatus = 1;
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0;
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1;
+ }
+ }
+ }
+
+ if (indentStatus === 1) {
+ while (readTagProperty(state) || readAnchorProperty(state)) {
+ if (skipSeparationSpace(state, true, -1)) {
+ atNewLine = true;
+ allowBlockCollections = allowBlockStyles;
+
+ if (state.lineIndent > parentIndent) {
+ indentStatus = 1;
+ } else if (state.lineIndent === parentIndent) {
+ indentStatus = 0;
+ } else if (state.lineIndent < parentIndent) {
+ indentStatus = -1;
+ }
+ } else {
+ allowBlockCollections = false;
+ }
+ }
+ }
+
+ if (allowBlockCollections) {
+ allowBlockCollections = atNewLine || allowCompact;
+ }
+
+ if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
+ if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
+ flowIndent = parentIndent;
+ } else {
+ flowIndent = parentIndent + 1;
+ }
+
+ blockIndent = state.position - state.lineStart;
+
+ if (indentStatus === 1) {
+ if (allowBlockCollections &&
+ (readBlockSequence(state, blockIndent) ||
+ readBlockMapping(state, blockIndent, flowIndent)) ||
+ readFlowCollection(state, flowIndent)) {
+ hasContent = true;
+ } else {
+ if ((allowBlockScalars && readBlockScalar(state, flowIndent)) ||
+ readSingleQuotedScalar(state, flowIndent) ||
+ readDoubleQuotedScalar(state, flowIndent)) {
+ hasContent = true;
+
+ } else if (readAlias(state)) {
+ hasContent = true;
+
+ if (state.tag !== null || state.anchor !== null) {
+ throwError(state, 'alias node should not have any properties');
+ }
+
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
+ hasContent = true;
+
+ if (state.tag === null) {
+ state.tag = '?';
+ }
+ }
+
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ }
+ } else if (indentStatus === 0) {
+ // Special case: block sequences are allowed to have same indentation level as the parent.
+ // http://www.yaml.org/spec/1.2/spec.html#id2799784
+ hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
+ }
+ }
+
+ if (state.tag !== null && state.tag !== '!') {
+ if (state.tag === '?') {
+ // Implicit resolving is not allowed for non-scalar types, and '?'
+ // non-specific tag is only automatically assigned to plain scalars.
+ //
+ // We only need to check kind conformity in case user explicitly assigns '?'
+ // tag, for example like this: "!> [0]"
+ //
+ if (state.result !== null && state.kind !== 'scalar') {
+ throwError(state, 'unacceptable node kind for !> tag; it should be "scalar", not "' + state.kind + '"');
+ }
+
+ for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
+ type = state.implicitTypes[typeIndex];
+
+ if (type.resolve(state.result)) { // `state.result` updated in resolver if matched
+ state.result = type.construct(state.result);
+ state.tag = type.tag;
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ break;
+ }
+ }
+ } else if (_hasOwnProperty.call(state.typeMap[state.kind || 'fallback'], state.tag)) {
+ type = state.typeMap[state.kind || 'fallback'][state.tag];
+
+ if (state.result !== null && type.kind !== state.kind) {
+ throwError(state, 'unacceptable node kind for !<' + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
+ }
+
+ if (!type.resolve(state.result)) { // `state.result` updated in resolver if matched
+ throwError(state, 'cannot resolve a node with !<' + state.tag + '> explicit tag');
+ } else {
+ state.result = type.construct(state.result);
+ if (state.anchor !== null) {
+ state.anchorMap[state.anchor] = state.result;
+ }
+ }
+ } else {
+ throwError(state, 'unknown tag !<' + state.tag + '>');
+ }
+ }
+
+ if (state.listener !== null) {
+ state.listener('close', state);
+ }
+ return state.tag !== null || state.anchor !== null || hasContent;
+}
+
+function readDocument(state) {
+ var documentStart = state.position,
+ _position,
+ directiveName,
+ directiveArgs,
+ hasDirectives = false,
+ ch;
+
+ state.version = null;
+ state.checkLineBreaks = state.legacy;
+ state.tagMap = {};
+ state.anchorMap = {};
+
+ while ((ch = state.input.charCodeAt(state.position)) !== 0) {
+ skipSeparationSpace(state, true, -1);
+
+ ch = state.input.charCodeAt(state.position);
+
+ if (state.lineIndent > 0 || ch !== 0x25/* % */) {
+ break;
+ }
+
+ hasDirectives = true;
+ ch = state.input.charCodeAt(++state.position);
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ directiveName = state.input.slice(_position, state.position);
+ directiveArgs = [];
+
+ if (directiveName.length < 1) {
+ throwError(state, 'directive name must not be less than one character in length');
+ }
+
+ while (ch !== 0) {
+ while (is_WHITE_SPACE(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ if (ch === 0x23/* # */) {
+ do { ch = state.input.charCodeAt(++state.position); }
+ while (ch !== 0 && !is_EOL(ch));
+ break;
+ }
+
+ if (is_EOL(ch)) break;
+
+ _position = state.position;
+
+ while (ch !== 0 && !is_WS_OR_EOL(ch)) {
+ ch = state.input.charCodeAt(++state.position);
+ }
+
+ directiveArgs.push(state.input.slice(_position, state.position));
+ }
+
+ if (ch !== 0) readLineBreak(state);
+
+ if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
+ directiveHandlers[directiveName](state, directiveName, directiveArgs);
+ } else {
+ throwWarning(state, 'unknown document directive "' + directiveName + '"');
+ }
+ }
+
+ skipSeparationSpace(state, true, -1);
+
+ if (state.lineIndent === 0 &&
+ state.input.charCodeAt(state.position) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 1) === 0x2D/* - */ &&
+ state.input.charCodeAt(state.position + 2) === 0x2D/* - */) {
+ state.position += 3;
+ skipSeparationSpace(state, true, -1);
+
+ } else if (hasDirectives) {
+ throwError(state, 'directives end mark is expected');
+ }
+
+ composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
+ skipSeparationSpace(state, true, -1);
+
+ if (state.checkLineBreaks &&
+ PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
+ throwWarning(state, 'non-ASCII line breaks are interpreted as content');
+ }
+
+ state.documents.push(state.result);
+
+ if (state.position === state.lineStart && testDocumentSeparator(state)) {
+
+ if (state.input.charCodeAt(state.position) === 0x2E/* . */) {
+ state.position += 3;
+ skipSeparationSpace(state, true, -1);
+ }
+ return;
+ }
+
+ if (state.position < (state.length - 1)) {
+ throwError(state, 'end of the stream or a document separator is expected');
+ } else {
+ return;
+ }
+}
+
+
+function loadDocuments(input, options) {
+ input = String(input);
+ options = options || {};
+
+ if (input.length !== 0) {
+
+ // Add tailing `\n` if not exists
+ if (input.charCodeAt(input.length - 1) !== 0x0A/* LF */ &&
+ input.charCodeAt(input.length - 1) !== 0x0D/* CR */) {
+ input += '\n';
+ }
+
+ // Strip BOM
+ if (input.charCodeAt(0) === 0xFEFF) {
+ input = input.slice(1);
+ }
+ }
+
+ var state = new State(input, options);
+
+ var nullpos = input.indexOf('\0');
+
+ if (nullpos !== -1) {
+ state.position = nullpos;
+ throwError(state, 'null byte is not allowed in input');
+ }
+
+ // Use 0 as string terminator. That significantly simplifies bounds check.
+ state.input += '\0';
+
+ while (state.input.charCodeAt(state.position) === 0x20/* Space */) {
+ state.lineIndent += 1;
+ state.position += 1;
+ }
+
+ while (state.position < (state.length - 1)) {
+ readDocument(state);
+ }
+
+ return state.documents;
+}
+
+
+function loadAll(input, iterator, options) {
+ if (iterator !== null && typeof iterator === 'object' && typeof options === 'undefined') {
+ options = iterator;
+ iterator = null;
+ }
+
+ var documents = loadDocuments(input, options);
+
+ if (typeof iterator !== 'function') {
+ return documents;
+ }
+
+ for (var index = 0, length = documents.length; index < length; index += 1) {
+ iterator(documents[index]);
+ }
+}
+
+
+function load(input, options) {
+ var documents = loadDocuments(input, options);
+
+ if (documents.length === 0) {
+ /*eslint-disable no-undefined*/
+ return undefined;
+ } else if (documents.length === 1) {
+ return documents[0];
+ }
+ throw new YAMLException('expected a single document in the stream, but found more');
+}
+
+
+function safeLoadAll(input, iterator, options) {
+ if (typeof iterator === 'object' && iterator !== null && typeof options === 'undefined') {
+ options = iterator;
+ iterator = null;
+ }
+
+ return loadAll(input, iterator, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+
+function safeLoad(input, options) {
+ return load(input, common.extend({ schema: DEFAULT_SAFE_SCHEMA }, options));
+}
+
+
+module.exports.loadAll = loadAll;
+module.exports.load = load;
+module.exports.safeLoadAll = safeLoadAll;
+module.exports.safeLoad = safeLoad;
diff --git a/node_modules/js-yaml/lib/js-yaml/mark.js b/node_modules/js-yaml/lib/js-yaml/mark.js
new file mode 100644
index 00000000..47b265c2
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/mark.js
@@ -0,0 +1,76 @@
+'use strict';
+
+
+var common = require('./common');
+
+
+function Mark(name, buffer, position, line, column) {
+ this.name = name;
+ this.buffer = buffer;
+ this.position = position;
+ this.line = line;
+ this.column = column;
+}
+
+
+Mark.prototype.getSnippet = function getSnippet(indent, maxLength) {
+ var head, start, tail, end, snippet;
+
+ if (!this.buffer) return null;
+
+ indent = indent || 4;
+ maxLength = maxLength || 75;
+
+ head = '';
+ start = this.position;
+
+ while (start > 0 && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(start - 1)) === -1) {
+ start -= 1;
+ if (this.position - start > (maxLength / 2 - 1)) {
+ head = ' ... ';
+ start += 5;
+ break;
+ }
+ }
+
+ tail = '';
+ end = this.position;
+
+ while (end < this.buffer.length && '\x00\r\n\x85\u2028\u2029'.indexOf(this.buffer.charAt(end)) === -1) {
+ end += 1;
+ if (end - this.position > (maxLength / 2 - 1)) {
+ tail = ' ... ';
+ end -= 5;
+ break;
+ }
+ }
+
+ snippet = this.buffer.slice(start, end);
+
+ return common.repeat(' ', indent) + head + snippet + tail + '\n' +
+ common.repeat(' ', indent + this.position - start + head.length) + '^';
+};
+
+
+Mark.prototype.toString = function toString(compact) {
+ var snippet, where = '';
+
+ if (this.name) {
+ where += 'in "' + this.name + '" ';
+ }
+
+ where += 'at line ' + (this.line + 1) + ', column ' + (this.column + 1);
+
+ if (!compact) {
+ snippet = this.getSnippet();
+
+ if (snippet) {
+ where += ':\n' + snippet;
+ }
+ }
+
+ return where;
+};
+
+
+module.exports = Mark;
diff --git a/node_modules/js-yaml/lib/js-yaml/schema.js b/node_modules/js-yaml/lib/js-yaml/schema.js
new file mode 100644
index 00000000..ca7cf47e
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema.js
@@ -0,0 +1,108 @@
+'use strict';
+
+/*eslint-disable max-len*/
+
+var common = require('./common');
+var YAMLException = require('./exception');
+var Type = require('./type');
+
+
+function compileList(schema, name, result) {
+ var exclude = [];
+
+ schema.include.forEach(function (includedSchema) {
+ result = compileList(includedSchema, name, result);
+ });
+
+ schema[name].forEach(function (currentType) {
+ result.forEach(function (previousType, previousIndex) {
+ if (previousType.tag === currentType.tag && previousType.kind === currentType.kind) {
+ exclude.push(previousIndex);
+ }
+ });
+
+ result.push(currentType);
+ });
+
+ return result.filter(function (type, index) {
+ return exclude.indexOf(index) === -1;
+ });
+}
+
+
+function compileMap(/* lists... */) {
+ var result = {
+ scalar: {},
+ sequence: {},
+ mapping: {},
+ fallback: {}
+ }, index, length;
+
+ function collectType(type) {
+ result[type.kind][type.tag] = result['fallback'][type.tag] = type;
+ }
+
+ for (index = 0, length = arguments.length; index < length; index += 1) {
+ arguments[index].forEach(collectType);
+ }
+ return result;
+}
+
+
+function Schema(definition) {
+ this.include = definition.include || [];
+ this.implicit = definition.implicit || [];
+ this.explicit = definition.explicit || [];
+
+ this.implicit.forEach(function (type) {
+ if (type.loadKind && type.loadKind !== 'scalar') {
+ throw new YAMLException('There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.');
+ }
+ });
+
+ this.compiledImplicit = compileList(this, 'implicit', []);
+ this.compiledExplicit = compileList(this, 'explicit', []);
+ this.compiledTypeMap = compileMap(this.compiledImplicit, this.compiledExplicit);
+}
+
+
+Schema.DEFAULT = null;
+
+
+Schema.create = function createSchema() {
+ var schemas, types;
+
+ switch (arguments.length) {
+ case 1:
+ schemas = Schema.DEFAULT;
+ types = arguments[0];
+ break;
+
+ case 2:
+ schemas = arguments[0];
+ types = arguments[1];
+ break;
+
+ default:
+ throw new YAMLException('Wrong number of arguments for Schema.create function');
+ }
+
+ schemas = common.toArray(schemas);
+ types = common.toArray(types);
+
+ if (!schemas.every(function (schema) { return schema instanceof Schema; })) {
+ throw new YAMLException('Specified list of super schemas (or a single Schema object) contains a non-Schema object.');
+ }
+
+ if (!types.every(function (type) { return type instanceof Type; })) {
+ throw new YAMLException('Specified list of YAML types (or a single Type object) contains a non-Type object.');
+ }
+
+ return new Schema({
+ include: schemas,
+ explicit: types
+ });
+};
+
+
+module.exports = Schema;
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/core.js b/node_modules/js-yaml/lib/js-yaml/schema/core.js
new file mode 100644
index 00000000..206daab5
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema/core.js
@@ -0,0 +1,18 @@
+// Standard YAML's Core schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2804923
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, Core schema has no distinctions from JSON schema is JS-YAML.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./json')
+ ]
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/default_full.js b/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
new file mode 100644
index 00000000..a55ef42a
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema/default_full.js
@@ -0,0 +1,25 @@
+// JS-YAML's default schema for `load` function.
+// It is not described in the YAML specification.
+//
+// This schema is based on JS-YAML's default safe schema and includes
+// JavaScript-specific types: !!js/undefined, !!js/regexp and !!js/function.
+//
+// Also this schema is used as default base schema at `Schema.create` function.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = Schema.DEFAULT = new Schema({
+ include: [
+ require('./default_safe')
+ ],
+ explicit: [
+ require('../type/js/undefined'),
+ require('../type/js/regexp'),
+ require('../type/js/function')
+ ]
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js b/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
new file mode 100644
index 00000000..11d89bbf
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema/default_safe.js
@@ -0,0 +1,28 @@
+// JS-YAML's default schema for `safeLoad` function.
+// It is not described in the YAML specification.
+//
+// This schema is based on standard YAML's Core schema and includes most of
+// extra types described at YAML tag repository. (http://yaml.org/type/)
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./core')
+ ],
+ implicit: [
+ require('../type/timestamp'),
+ require('../type/merge')
+ ],
+ explicit: [
+ require('../type/binary'),
+ require('../type/omap'),
+ require('../type/pairs'),
+ require('../type/set')
+ ]
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js b/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
new file mode 100644
index 00000000..b7a33eb7
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema/failsafe.js
@@ -0,0 +1,17 @@
+// Standard YAML's Failsafe schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2802346
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ explicit: [
+ require('../type/str'),
+ require('../type/seq'),
+ require('../type/map')
+ ]
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/schema/json.js b/node_modules/js-yaml/lib/js-yaml/schema/json.js
new file mode 100644
index 00000000..5be3dbf8
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/schema/json.js
@@ -0,0 +1,25 @@
+// Standard YAML's JSON schema.
+// http://www.yaml.org/spec/1.2/spec.html#id2803231
+//
+// NOTE: JS-YAML does not support schema-specific tag resolution restrictions.
+// So, this schema is not such strict as defined in the YAML specification.
+// It allows numbers in binary notaion, use `Null` and `NULL` as `null`, etc.
+
+
+'use strict';
+
+
+var Schema = require('../schema');
+
+
+module.exports = new Schema({
+ include: [
+ require('./failsafe')
+ ],
+ implicit: [
+ require('../type/null'),
+ require('../type/bool'),
+ require('../type/int'),
+ require('../type/float')
+ ]
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type.js b/node_modules/js-yaml/lib/js-yaml/type.js
new file mode 100644
index 00000000..90b702ac
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type.js
@@ -0,0 +1,61 @@
+'use strict';
+
+var YAMLException = require('./exception');
+
+var TYPE_CONSTRUCTOR_OPTIONS = [
+ 'kind',
+ 'resolve',
+ 'construct',
+ 'instanceOf',
+ 'predicate',
+ 'represent',
+ 'defaultStyle',
+ 'styleAliases'
+];
+
+var YAML_NODE_KINDS = [
+ 'scalar',
+ 'sequence',
+ 'mapping'
+];
+
+function compileStyleAliases(map) {
+ var result = {};
+
+ if (map !== null) {
+ Object.keys(map).forEach(function (style) {
+ map[style].forEach(function (alias) {
+ result[String(alias)] = style;
+ });
+ });
+ }
+
+ return result;
+}
+
+function Type(tag, options) {
+ options = options || {};
+
+ Object.keys(options).forEach(function (name) {
+ if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
+ throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
+ }
+ });
+
+ // TODO: Add tag format check.
+ this.tag = tag;
+ this.kind = options['kind'] || null;
+ this.resolve = options['resolve'] || function () { return true; };
+ this.construct = options['construct'] || function (data) { return data; };
+ this.instanceOf = options['instanceOf'] || null;
+ this.predicate = options['predicate'] || null;
+ this.represent = options['represent'] || null;
+ this.defaultStyle = options['defaultStyle'] || null;
+ this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
+
+ if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
+ throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
+ }
+}
+
+module.exports = Type;
diff --git a/node_modules/js-yaml/lib/js-yaml/type/binary.js b/node_modules/js-yaml/lib/js-yaml/type/binary.js
new file mode 100644
index 00000000..10b18755
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/binary.js
@@ -0,0 +1,138 @@
+'use strict';
+
+/*eslint-disable no-bitwise*/
+
+var NodeBuffer;
+
+try {
+ // A trick for browserified version, to not include `Buffer` shim
+ var _require = require;
+ NodeBuffer = _require('buffer').Buffer;
+} catch (__) {}
+
+var Type = require('../type');
+
+
+// [ 64, 65, 66 ] -> [ padding, CR, LF ]
+var BASE64_MAP = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r';
+
+
+function resolveYamlBinary(data) {
+ if (data === null) return false;
+
+ var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
+
+ // Convert one by one.
+ for (idx = 0; idx < max; idx++) {
+ code = map.indexOf(data.charAt(idx));
+
+ // Skip CR/LF
+ if (code > 64) continue;
+
+ // Fail on illegal characters
+ if (code < 0) return false;
+
+ bitlen += 6;
+ }
+
+ // If there are any bits left, source was corrupted
+ return (bitlen % 8) === 0;
+}
+
+function constructYamlBinary(data) {
+ var idx, tailbits,
+ input = data.replace(/[\r\n=]/g, ''), // remove CR/LF & padding to simplify scan
+ max = input.length,
+ map = BASE64_MAP,
+ bits = 0,
+ result = [];
+
+ // Collect by 6*4 bits (3 bytes)
+
+ for (idx = 0; idx < max; idx++) {
+ if ((idx % 4 === 0) && idx) {
+ result.push((bits >> 16) & 0xFF);
+ result.push((bits >> 8) & 0xFF);
+ result.push(bits & 0xFF);
+ }
+
+ bits = (bits << 6) | map.indexOf(input.charAt(idx));
+ }
+
+ // Dump tail
+
+ tailbits = (max % 4) * 6;
+
+ if (tailbits === 0) {
+ result.push((bits >> 16) & 0xFF);
+ result.push((bits >> 8) & 0xFF);
+ result.push(bits & 0xFF);
+ } else if (tailbits === 18) {
+ result.push((bits >> 10) & 0xFF);
+ result.push((bits >> 2) & 0xFF);
+ } else if (tailbits === 12) {
+ result.push((bits >> 4) & 0xFF);
+ }
+
+ // Wrap into Buffer for NodeJS and leave Array for browser
+ if (NodeBuffer) {
+ // Support node 6.+ Buffer API when available
+ return NodeBuffer.from ? NodeBuffer.from(result) : new NodeBuffer(result);
+ }
+
+ return result;
+}
+
+function representYamlBinary(object /*, style*/) {
+ var result = '', bits = 0, idx, tail,
+ max = object.length,
+ map = BASE64_MAP;
+
+ // Convert every three bytes to 4 ASCII characters.
+
+ for (idx = 0; idx < max; idx++) {
+ if ((idx % 3 === 0) && idx) {
+ result += map[(bits >> 18) & 0x3F];
+ result += map[(bits >> 12) & 0x3F];
+ result += map[(bits >> 6) & 0x3F];
+ result += map[bits & 0x3F];
+ }
+
+ bits = (bits << 8) + object[idx];
+ }
+
+ // Dump tail
+
+ tail = max % 3;
+
+ if (tail === 0) {
+ result += map[(bits >> 18) & 0x3F];
+ result += map[(bits >> 12) & 0x3F];
+ result += map[(bits >> 6) & 0x3F];
+ result += map[bits & 0x3F];
+ } else if (tail === 2) {
+ result += map[(bits >> 10) & 0x3F];
+ result += map[(bits >> 4) & 0x3F];
+ result += map[(bits << 2) & 0x3F];
+ result += map[64];
+ } else if (tail === 1) {
+ result += map[(bits >> 2) & 0x3F];
+ result += map[(bits << 4) & 0x3F];
+ result += map[64];
+ result += map[64];
+ }
+
+ return result;
+}
+
+function isBinary(object) {
+ return NodeBuffer && NodeBuffer.isBuffer(object);
+}
+
+module.exports = new Type('tag:yaml.org,2002:binary', {
+ kind: 'scalar',
+ resolve: resolveYamlBinary,
+ construct: constructYamlBinary,
+ predicate: isBinary,
+ represent: representYamlBinary
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/bool.js b/node_modules/js-yaml/lib/js-yaml/type/bool.js
new file mode 100644
index 00000000..cb774593
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/bool.js
@@ -0,0 +1,35 @@
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlBoolean(data) {
+ if (data === null) return false;
+
+ var max = data.length;
+
+ return (max === 4 && (data === 'true' || data === 'True' || data === 'TRUE')) ||
+ (max === 5 && (data === 'false' || data === 'False' || data === 'FALSE'));
+}
+
+function constructYamlBoolean(data) {
+ return data === 'true' ||
+ data === 'True' ||
+ data === 'TRUE';
+}
+
+function isBoolean(object) {
+ return Object.prototype.toString.call(object) === '[object Boolean]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:bool', {
+ kind: 'scalar',
+ resolve: resolveYamlBoolean,
+ construct: constructYamlBoolean,
+ predicate: isBoolean,
+ represent: {
+ lowercase: function (object) { return object ? 'true' : 'false'; },
+ uppercase: function (object) { return object ? 'TRUE' : 'FALSE'; },
+ camelcase: function (object) { return object ? 'True' : 'False'; }
+ },
+ defaultStyle: 'lowercase'
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/float.js b/node_modules/js-yaml/lib/js-yaml/type/float.js
new file mode 100644
index 00000000..127671b2
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/float.js
@@ -0,0 +1,116 @@
+'use strict';
+
+var common = require('../common');
+var Type = require('../type');
+
+var YAML_FLOAT_PATTERN = new RegExp(
+ // 2.5e4, 2.5 and integers
+ '^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?' +
+ // .2e4, .2
+ // special case, seems not from spec
+ '|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?' +
+ // 20:59
+ '|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*' +
+ // .inf
+ '|[-+]?\\.(?:inf|Inf|INF)' +
+ // .nan
+ '|\\.(?:nan|NaN|NAN))$');
+
+function resolveYamlFloat(data) {
+ if (data === null) return false;
+
+ if (!YAML_FLOAT_PATTERN.test(data) ||
+ // Quick hack to not allow integers end with `_`
+ // Probably should update regexp & check speed
+ data[data.length - 1] === '_') {
+ return false;
+ }
+
+ return true;
+}
+
+function constructYamlFloat(data) {
+ var value, sign, base, digits;
+
+ value = data.replace(/_/g, '').toLowerCase();
+ sign = value[0] === '-' ? -1 : 1;
+ digits = [];
+
+ if ('+-'.indexOf(value[0]) >= 0) {
+ value = value.slice(1);
+ }
+
+ if (value === '.inf') {
+ return (sign === 1) ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
+
+ } else if (value === '.nan') {
+ return NaN;
+
+ } else if (value.indexOf(':') >= 0) {
+ value.split(':').forEach(function (v) {
+ digits.unshift(parseFloat(v, 10));
+ });
+
+ value = 0.0;
+ base = 1;
+
+ digits.forEach(function (d) {
+ value += d * base;
+ base *= 60;
+ });
+
+ return sign * value;
+
+ }
+ return sign * parseFloat(value, 10);
+}
+
+
+var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
+
+function representYamlFloat(object, style) {
+ var res;
+
+ if (isNaN(object)) {
+ switch (style) {
+ case 'lowercase': return '.nan';
+ case 'uppercase': return '.NAN';
+ case 'camelcase': return '.NaN';
+ }
+ } else if (Number.POSITIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '.inf';
+ case 'uppercase': return '.INF';
+ case 'camelcase': return '.Inf';
+ }
+ } else if (Number.NEGATIVE_INFINITY === object) {
+ switch (style) {
+ case 'lowercase': return '-.inf';
+ case 'uppercase': return '-.INF';
+ case 'camelcase': return '-.Inf';
+ }
+ } else if (common.isNegativeZero(object)) {
+ return '-0.0';
+ }
+
+ res = object.toString(10);
+
+ // JS stringifier can build scientific format without dots: 5e-100,
+ // while YAML requres dot: 5.e-100. Fix it with simple hack
+
+ return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace('e', '.e') : res;
+}
+
+function isFloat(object) {
+ return (Object.prototype.toString.call(object) === '[object Number]') &&
+ (object % 1 !== 0 || common.isNegativeZero(object));
+}
+
+module.exports = new Type('tag:yaml.org,2002:float', {
+ kind: 'scalar',
+ resolve: resolveYamlFloat,
+ construct: constructYamlFloat,
+ predicate: isFloat,
+ represent: representYamlFloat,
+ defaultStyle: 'lowercase'
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/int.js b/node_modules/js-yaml/lib/js-yaml/type/int.js
new file mode 100644
index 00000000..ba61c5f9
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/int.js
@@ -0,0 +1,173 @@
+'use strict';
+
+var common = require('../common');
+var Type = require('../type');
+
+function isHexCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
+ ((0x41/* A */ <= c) && (c <= 0x46/* F */)) ||
+ ((0x61/* a */ <= c) && (c <= 0x66/* f */));
+}
+
+function isOctCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x37/* 7 */));
+}
+
+function isDecCode(c) {
+ return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */));
+}
+
+function resolveYamlInteger(data) {
+ if (data === null) return false;
+
+ var max = data.length,
+ index = 0,
+ hasDigits = false,
+ ch;
+
+ if (!max) return false;
+
+ ch = data[index];
+
+ // sign
+ if (ch === '-' || ch === '+') {
+ ch = data[++index];
+ }
+
+ if (ch === '0') {
+ // 0
+ if (index + 1 === max) return true;
+ ch = data[++index];
+
+ // base 2, base 8, base 16
+
+ if (ch === 'b') {
+ // base 2
+ index++;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (ch !== '0' && ch !== '1') return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+
+ if (ch === 'x') {
+ // base 16
+ index++;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (!isHexCode(data.charCodeAt(index))) return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+ // base 8
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (!isOctCode(data.charCodeAt(index))) return false;
+ hasDigits = true;
+ }
+ return hasDigits && ch !== '_';
+ }
+
+ // base 10 (except 0) or base 60
+
+ // value should not start with `_`;
+ if (ch === '_') return false;
+
+ for (; index < max; index++) {
+ ch = data[index];
+ if (ch === '_') continue;
+ if (ch === ':') break;
+ if (!isDecCode(data.charCodeAt(index))) {
+ return false;
+ }
+ hasDigits = true;
+ }
+
+ // Should have digits and should not end with `_`
+ if (!hasDigits || ch === '_') return false;
+
+ // if !base60 - done;
+ if (ch !== ':') return true;
+
+ // base60 almost not used, no needs to optimize
+ return /^(:[0-5]?[0-9])+$/.test(data.slice(index));
+}
+
+function constructYamlInteger(data) {
+ var value = data, sign = 1, ch, base, digits = [];
+
+ if (value.indexOf('_') !== -1) {
+ value = value.replace(/_/g, '');
+ }
+
+ ch = value[0];
+
+ if (ch === '-' || ch === '+') {
+ if (ch === '-') sign = -1;
+ value = value.slice(1);
+ ch = value[0];
+ }
+
+ if (value === '0') return 0;
+
+ if (ch === '0') {
+ if (value[1] === 'b') return sign * parseInt(value.slice(2), 2);
+ if (value[1] === 'x') return sign * parseInt(value, 16);
+ return sign * parseInt(value, 8);
+ }
+
+ if (value.indexOf(':') !== -1) {
+ value.split(':').forEach(function (v) {
+ digits.unshift(parseInt(v, 10));
+ });
+
+ value = 0;
+ base = 1;
+
+ digits.forEach(function (d) {
+ value += (d * base);
+ base *= 60;
+ });
+
+ return sign * value;
+
+ }
+
+ return sign * parseInt(value, 10);
+}
+
+function isInteger(object) {
+ return (Object.prototype.toString.call(object)) === '[object Number]' &&
+ (object % 1 === 0 && !common.isNegativeZero(object));
+}
+
+module.exports = new Type('tag:yaml.org,2002:int', {
+ kind: 'scalar',
+ resolve: resolveYamlInteger,
+ construct: constructYamlInteger,
+ predicate: isInteger,
+ represent: {
+ binary: function (obj) { return obj >= 0 ? '0b' + obj.toString(2) : '-0b' + obj.toString(2).slice(1); },
+ octal: function (obj) { return obj >= 0 ? '0' + obj.toString(8) : '-0' + obj.toString(8).slice(1); },
+ decimal: function (obj) { return obj.toString(10); },
+ /* eslint-disable max-len */
+ hexadecimal: function (obj) { return obj >= 0 ? '0x' + obj.toString(16).toUpperCase() : '-0x' + obj.toString(16).toUpperCase().slice(1); }
+ },
+ defaultStyle: 'decimal',
+ styleAliases: {
+ binary: [ 2, 'bin' ],
+ octal: [ 8, 'oct' ],
+ decimal: [ 10, 'dec' ],
+ hexadecimal: [ 16, 'hex' ]
+ }
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/function.js b/node_modules/js-yaml/lib/js-yaml/type/js/function.js
new file mode 100644
index 00000000..8fab8c43
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/js/function.js
@@ -0,0 +1,93 @@
+'use strict';
+
+var esprima;
+
+// Browserified version does not have esprima
+//
+// 1. For node.js just require module as deps
+// 2. For browser try to require mudule via external AMD system.
+// If not found - try to fallback to window.esprima. If not
+// found too - then fail to parse.
+//
+try {
+ // workaround to exclude package from browserify list.
+ var _require = require;
+ esprima = _require('esprima');
+} catch (_) {
+ /* eslint-disable no-redeclare */
+ /* global window */
+ if (typeof window !== 'undefined') esprima = window.esprima;
+}
+
+var Type = require('../../type');
+
+function resolveJavascriptFunction(data) {
+ if (data === null) return false;
+
+ try {
+ var source = '(' + data + ')',
+ ast = esprima.parse(source, { range: true });
+
+ if (ast.type !== 'Program' ||
+ ast.body.length !== 1 ||
+ ast.body[0].type !== 'ExpressionStatement' ||
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
+ ast.body[0].expression.type !== 'FunctionExpression')) {
+ return false;
+ }
+
+ return true;
+ } catch (err) {
+ return false;
+ }
+}
+
+function constructJavascriptFunction(data) {
+ /*jslint evil:true*/
+
+ var source = '(' + data + ')',
+ ast = esprima.parse(source, { range: true }),
+ params = [],
+ body;
+
+ if (ast.type !== 'Program' ||
+ ast.body.length !== 1 ||
+ ast.body[0].type !== 'ExpressionStatement' ||
+ (ast.body[0].expression.type !== 'ArrowFunctionExpression' &&
+ ast.body[0].expression.type !== 'FunctionExpression')) {
+ throw new Error('Failed to resolve function');
+ }
+
+ ast.body[0].expression.params.forEach(function (param) {
+ params.push(param.name);
+ });
+
+ body = ast.body[0].expression.body.range;
+
+ // Esprima's ranges include the first '{' and the last '}' characters on
+ // function expressions. So cut them out.
+ if (ast.body[0].expression.body.type === 'BlockStatement') {
+ /*eslint-disable no-new-func*/
+ return new Function(params, source.slice(body[0] + 1, body[1] - 1));
+ }
+ // ES6 arrow functions can omit the BlockStatement. In that case, just return
+ // the body.
+ /*eslint-disable no-new-func*/
+ return new Function(params, 'return ' + source.slice(body[0], body[1]));
+}
+
+function representJavascriptFunction(object /*, style*/) {
+ return object.toString();
+}
+
+function isFunction(object) {
+ return Object.prototype.toString.call(object) === '[object Function]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/function', {
+ kind: 'scalar',
+ resolve: resolveJavascriptFunction,
+ construct: constructJavascriptFunction,
+ predicate: isFunction,
+ represent: representJavascriptFunction
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js b/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
new file mode 100644
index 00000000..43fa4701
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/js/regexp.js
@@ -0,0 +1,60 @@
+'use strict';
+
+var Type = require('../../type');
+
+function resolveJavascriptRegExp(data) {
+ if (data === null) return false;
+ if (data.length === 0) return false;
+
+ var regexp = data,
+ tail = /\/([gim]*)$/.exec(data),
+ modifiers = '';
+
+ // if regexp starts with '/' it can have modifiers and must be properly closed
+ // `/foo/gim` - modifiers tail can be maximum 3 chars
+ if (regexp[0] === '/') {
+ if (tail) modifiers = tail[1];
+
+ if (modifiers.length > 3) return false;
+ // if expression starts with /, is should be properly terminated
+ if (regexp[regexp.length - modifiers.length - 1] !== '/') return false;
+ }
+
+ return true;
+}
+
+function constructJavascriptRegExp(data) {
+ var regexp = data,
+ tail = /\/([gim]*)$/.exec(data),
+ modifiers = '';
+
+ // `/foo/gim` - tail can be maximum 4 chars
+ if (regexp[0] === '/') {
+ if (tail) modifiers = tail[1];
+ regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
+ }
+
+ return new RegExp(regexp, modifiers);
+}
+
+function representJavascriptRegExp(object /*, style*/) {
+ var result = '/' + object.source + '/';
+
+ if (object.global) result += 'g';
+ if (object.multiline) result += 'm';
+ if (object.ignoreCase) result += 'i';
+
+ return result;
+}
+
+function isRegExp(object) {
+ return Object.prototype.toString.call(object) === '[object RegExp]';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/regexp', {
+ kind: 'scalar',
+ resolve: resolveJavascriptRegExp,
+ construct: constructJavascriptRegExp,
+ predicate: isRegExp,
+ represent: representJavascriptRegExp
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js b/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
new file mode 100644
index 00000000..95b5569f
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/js/undefined.js
@@ -0,0 +1,28 @@
+'use strict';
+
+var Type = require('../../type');
+
+function resolveJavascriptUndefined() {
+ return true;
+}
+
+function constructJavascriptUndefined() {
+ /*eslint-disable no-undefined*/
+ return undefined;
+}
+
+function representJavascriptUndefined() {
+ return '';
+}
+
+function isUndefined(object) {
+ return typeof object === 'undefined';
+}
+
+module.exports = new Type('tag:yaml.org,2002:js/undefined', {
+ kind: 'scalar',
+ resolve: resolveJavascriptUndefined,
+ construct: constructJavascriptUndefined,
+ predicate: isUndefined,
+ represent: representJavascriptUndefined
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/map.js b/node_modules/js-yaml/lib/js-yaml/type/map.js
new file mode 100644
index 00000000..f327beeb
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/map.js
@@ -0,0 +1,8 @@
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:map', {
+ kind: 'mapping',
+ construct: function (data) { return data !== null ? data : {}; }
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/merge.js b/node_modules/js-yaml/lib/js-yaml/type/merge.js
new file mode 100644
index 00000000..ae08a864
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/merge.js
@@ -0,0 +1,12 @@
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlMerge(data) {
+ return data === '<<' || data === null;
+}
+
+module.exports = new Type('tag:yaml.org,2002:merge', {
+ kind: 'scalar',
+ resolve: resolveYamlMerge
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/null.js b/node_modules/js-yaml/lib/js-yaml/type/null.js
new file mode 100644
index 00000000..6874daa6
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/null.js
@@ -0,0 +1,34 @@
+'use strict';
+
+var Type = require('../type');
+
+function resolveYamlNull(data) {
+ if (data === null) return true;
+
+ var max = data.length;
+
+ return (max === 1 && data === '~') ||
+ (max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
+}
+
+function constructYamlNull() {
+ return null;
+}
+
+function isNull(object) {
+ return object === null;
+}
+
+module.exports = new Type('tag:yaml.org,2002:null', {
+ kind: 'scalar',
+ resolve: resolveYamlNull,
+ construct: constructYamlNull,
+ predicate: isNull,
+ represent: {
+ canonical: function () { return '~'; },
+ lowercase: function () { return 'null'; },
+ uppercase: function () { return 'NULL'; },
+ camelcase: function () { return 'Null'; }
+ },
+ defaultStyle: 'lowercase'
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/omap.js b/node_modules/js-yaml/lib/js-yaml/type/omap.js
new file mode 100644
index 00000000..b2b5323b
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/omap.js
@@ -0,0 +1,44 @@
+'use strict';
+
+var Type = require('../type');
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+var _toString = Object.prototype.toString;
+
+function resolveYamlOmap(data) {
+ if (data === null) return true;
+
+ var objectKeys = [], index, length, pair, pairKey, pairHasKey,
+ object = data;
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+ pairHasKey = false;
+
+ if (_toString.call(pair) !== '[object Object]') return false;
+
+ for (pairKey in pair) {
+ if (_hasOwnProperty.call(pair, pairKey)) {
+ if (!pairHasKey) pairHasKey = true;
+ else return false;
+ }
+ }
+
+ if (!pairHasKey) return false;
+
+ if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
+ else return false;
+ }
+
+ return true;
+}
+
+function constructYamlOmap(data) {
+ return data !== null ? data : [];
+}
+
+module.exports = new Type('tag:yaml.org,2002:omap', {
+ kind: 'sequence',
+ resolve: resolveYamlOmap,
+ construct: constructYamlOmap
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/pairs.js b/node_modules/js-yaml/lib/js-yaml/type/pairs.js
new file mode 100644
index 00000000..74b52403
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/pairs.js
@@ -0,0 +1,53 @@
+'use strict';
+
+var Type = require('../type');
+
+var _toString = Object.prototype.toString;
+
+function resolveYamlPairs(data) {
+ if (data === null) return true;
+
+ var index, length, pair, keys, result,
+ object = data;
+
+ result = new Array(object.length);
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+
+ if (_toString.call(pair) !== '[object Object]') return false;
+
+ keys = Object.keys(pair);
+
+ if (keys.length !== 1) return false;
+
+ result[index] = [ keys[0], pair[keys[0]] ];
+ }
+
+ return true;
+}
+
+function constructYamlPairs(data) {
+ if (data === null) return [];
+
+ var index, length, pair, keys, result,
+ object = data;
+
+ result = new Array(object.length);
+
+ for (index = 0, length = object.length; index < length; index += 1) {
+ pair = object[index];
+
+ keys = Object.keys(pair);
+
+ result[index] = [ keys[0], pair[keys[0]] ];
+ }
+
+ return result;
+}
+
+module.exports = new Type('tag:yaml.org,2002:pairs', {
+ kind: 'sequence',
+ resolve: resolveYamlPairs,
+ construct: constructYamlPairs
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/seq.js b/node_modules/js-yaml/lib/js-yaml/type/seq.js
new file mode 100644
index 00000000..be8f77f2
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/seq.js
@@ -0,0 +1,8 @@
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:seq', {
+ kind: 'sequence',
+ construct: function (data) { return data !== null ? data : []; }
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/set.js b/node_modules/js-yaml/lib/js-yaml/type/set.js
new file mode 100644
index 00000000..f885a329
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/set.js
@@ -0,0 +1,29 @@
+'use strict';
+
+var Type = require('../type');
+
+var _hasOwnProperty = Object.prototype.hasOwnProperty;
+
+function resolveYamlSet(data) {
+ if (data === null) return true;
+
+ var key, object = data;
+
+ for (key in object) {
+ if (_hasOwnProperty.call(object, key)) {
+ if (object[key] !== null) return false;
+ }
+ }
+
+ return true;
+}
+
+function constructYamlSet(data) {
+ return data !== null ? data : {};
+}
+
+module.exports = new Type('tag:yaml.org,2002:set', {
+ kind: 'mapping',
+ resolve: resolveYamlSet,
+ construct: constructYamlSet
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/str.js b/node_modules/js-yaml/lib/js-yaml/type/str.js
new file mode 100644
index 00000000..27acc106
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/str.js
@@ -0,0 +1,8 @@
+'use strict';
+
+var Type = require('../type');
+
+module.exports = new Type('tag:yaml.org,2002:str', {
+ kind: 'scalar',
+ construct: function (data) { return data !== null ? data : ''; }
+});
diff --git a/node_modules/js-yaml/lib/js-yaml/type/timestamp.js b/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
new file mode 100644
index 00000000..8fa9c586
--- /dev/null
+++ b/node_modules/js-yaml/lib/js-yaml/type/timestamp.js
@@ -0,0 +1,88 @@
+'use strict';
+
+var Type = require('../type');
+
+var YAML_DATE_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9])' + // [2] month
+ '-([0-9][0-9])$'); // [3] day
+
+var YAML_TIMESTAMP_REGEXP = new RegExp(
+ '^([0-9][0-9][0-9][0-9])' + // [1] year
+ '-([0-9][0-9]?)' + // [2] month
+ '-([0-9][0-9]?)' + // [3] day
+ '(?:[Tt]|[ \\t]+)' + // ...
+ '([0-9][0-9]?)' + // [4] hour
+ ':([0-9][0-9])' + // [5] minute
+ ':([0-9][0-9])' + // [6] second
+ '(?:\\.([0-9]*))?' + // [7] fraction
+ '(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' + // [8] tz [9] tz_sign [10] tz_hour
+ '(?::([0-9][0-9]))?))?$'); // [11] tz_minute
+
+function resolveYamlTimestamp(data) {
+ if (data === null) return false;
+ if (YAML_DATE_REGEXP.exec(data) !== null) return true;
+ if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
+ return false;
+}
+
+function constructYamlTimestamp(data) {
+ var match, year, month, day, hour, minute, second, fraction = 0,
+ delta = null, tz_hour, tz_minute, date;
+
+ match = YAML_DATE_REGEXP.exec(data);
+ if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
+
+ if (match === null) throw new Error('Date resolve error');
+
+ // match: [1] year [2] month [3] day
+
+ year = +(match[1]);
+ month = +(match[2]) - 1; // JS month starts with 0
+ day = +(match[3]);
+
+ if (!match[4]) { // no hour
+ return new Date(Date.UTC(year, month, day));
+ }
+
+ // match: [4] hour [5] minute [6] second [7] fraction
+
+ hour = +(match[4]);
+ minute = +(match[5]);
+ second = +(match[6]);
+
+ if (match[7]) {
+ fraction = match[7].slice(0, 3);
+ while (fraction.length < 3) { // milli-seconds
+ fraction += '0';
+ }
+ fraction = +fraction;
+ }
+
+ // match: [8] tz [9] tz_sign [10] tz_hour [11] tz_minute
+
+ if (match[9]) {
+ tz_hour = +(match[10]);
+ tz_minute = +(match[11] || 0);
+ delta = (tz_hour * 60 + tz_minute) * 60000; // delta in mili-seconds
+ if (match[9] === '-') delta = -delta;
+ }
+
+ date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
+
+ if (delta) date.setTime(date.getTime() - delta);
+
+ return date;
+}
+
+function representYamlTimestamp(object /*, style*/) {
+ return object.toISOString();
+}
+
+module.exports = new Type('tag:yaml.org,2002:timestamp', {
+ kind: 'scalar',
+ resolve: resolveYamlTimestamp,
+ construct: constructYamlTimestamp,
+ instanceOf: Date,
+ represent: representYamlTimestamp
+});
diff --git a/node_modules/js-yaml/package.json b/node_modules/js-yaml/package.json
new file mode 100644
index 00000000..fa8b4002
--- /dev/null
+++ b/node_modules/js-yaml/package.json
@@ -0,0 +1,95 @@
+{
+ "_from": "js-yaml@^3.9.0",
+ "_id": "js-yaml@3.14.1",
+ "_inBundle": false,
+ "_integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==",
+ "_location": "/js-yaml",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "js-yaml@^3.9.0",
+ "name": "js-yaml",
+ "escapedName": "js-yaml",
+ "rawSpec": "^3.9.0",
+ "saveSpec": null,
+ "fetchSpec": "^3.9.0"
+ },
+ "_requiredBy": [
+ "/cosmiconfig"
+ ],
+ "_resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz",
+ "_shasum": "dae812fdb3825fa306609a8717383c50c36a0537",
+ "_spec": "js-yaml@^3.9.0",
+ "_where": "/home/simon/Documents/lifen-autotest/node_modules/cosmiconfig",
+ "author": {
+ "name": "Vladimir Zapparov",
+ "email": "dervus.grim@gmail.com"
+ },
+ "bin": {
+ "js-yaml": "bin/js-yaml.js"
+ },
+ "bugs": {
+ "url": "https://github.com/nodeca/js-yaml/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Aleksey V Zapparov",
+ "email": "ixti@member.fsf.org",
+ "url": "http://www.ixti.net/"
+ },
+ {
+ "name": "Vitaly Puzrin",
+ "email": "vitaly@rcdesign.ru",
+ "url": "https://github.com/puzrin"
+ },
+ {
+ "name": "Martin Grenfell",
+ "email": "martin.grenfell@gmail.com",
+ "url": "http://got-ravings.blogspot.com"
+ }
+ ],
+ "dependencies": {
+ "argparse": "^1.0.7",
+ "esprima": "^4.0.0"
+ },
+ "deprecated": false,
+ "description": "YAML 1.2 parser and serializer",
+ "devDependencies": {
+ "ansi": "^0.3.1",
+ "benchmark": "^2.1.4",
+ "browserify": "^16.2.2",
+ "codemirror": "^5.13.4",
+ "eslint": "^7.0.0",
+ "fast-check": "^1.24.2",
+ "istanbul": "^0.4.5",
+ "mocha": "^7.1.2",
+ "uglify-js": "^3.0.1"
+ },
+ "files": [
+ "index.js",
+ "lib/",
+ "bin/",
+ "dist/"
+ ],
+ "homepage": "https://github.com/nodeca/js-yaml",
+ "jsdelivr": "dist/js-yaml.min.js",
+ "keywords": [
+ "yaml",
+ "parser",
+ "serializer",
+ "pyyaml"
+ ],
+ "license": "MIT",
+ "name": "js-yaml",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/nodeca/js-yaml.git"
+ },
+ "scripts": {
+ "test": "make test"
+ },
+ "unpkg": "dist/js-yaml.min.js",
+ "version": "3.14.1"
+}
diff --git a/node_modules/jsesc/LICENSE-MIT.txt b/node_modules/jsesc/LICENSE-MIT.txt
new file mode 100644
index 00000000..a41e0a7e
--- /dev/null
+++ b/node_modules/jsesc/LICENSE-MIT.txt
@@ -0,0 +1,20 @@
+Copyright Mathias Bynens
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/jsesc/README.md b/node_modules/jsesc/README.md
new file mode 100644
index 00000000..aae2b13a
--- /dev/null
+++ b/node_modules/jsesc/README.md
@@ -0,0 +1,421 @@
+# jsesc [](https://travis-ci.org/mathiasbynens/jsesc) [](https://coveralls.io/r/mathiasbynens/jsesc) [](https://gemnasium.com/mathiasbynens/jsesc)
+
+Given some data, _jsesc_ returns a stringified representation of that data. jsesc is similar to `JSON.stringify()` except:
+
+1. it outputs JavaScript instead of JSON [by default](#json), enabling support for data structures like ES6 maps and sets;
+2. it offers [many options](#api) to customize the output;
+3. its output is ASCII-safe [by default](#minimal), thanks to its use of [escape sequences](https://mathiasbynens.be/notes/javascript-escapes) where needed.
+
+For any input, jsesc generates the shortest possible valid printable-ASCII-only output. [Here’s an online demo.](https://mothereff.in/js-escapes)
+
+jsesc’s output can be used instead of `JSON.stringify`’s to avoid [mojibake](https://en.wikipedia.org/wiki/Mojibake) and other encoding issues, or even to [avoid errors](https://twitter.com/annevk/status/380000829643571200) when passing JSON-formatted data (which may contain U+2028 LINE SEPARATOR, U+2029 PARAGRAPH SEPARATOR, or [lone surrogates](https://esdiscuss.org/topic/code-points-vs-unicode-scalar-values#content-14)) to a JavaScript parser or an UTF-8 encoder.
+
+## Installation
+
+Via [npm](https://www.npmjs.com/):
+
+```bash
+npm install jsesc
+```
+
+In [Node.js](https://nodejs.org/):
+
+```js
+const jsesc = require('jsesc');
+```
+
+## API
+
+### `jsesc(value, options)`
+
+This function takes a value and returns an escaped version of the value where any characters that are not printable ASCII symbols are escaped using the shortest possible (but valid) [escape sequences for use in JavaScript strings](https://mathiasbynens.be/notes/javascript-escapes). The first supported value type is strings:
+
+```js
+jsesc('Ich ♥ Bücher');
+// → 'Ich \\u2665 B\\xFCcher'
+
+jsesc('foo 𝌆 bar');
+// → 'foo \\uD834\\uDF06 bar'
+```
+
+Instead of a string, the `value` can also be an array, an object, a map, a set, or a buffer. In such cases, `jsesc` returns a stringified version of the value where any characters that are not printable ASCII symbols are escaped in the same way.
+
+```js
+// Escaping an array
+jsesc([
+ 'Ich ♥ Bücher', 'foo 𝌆 bar'
+]);
+// → '[\'Ich \\u2665 B\\xFCcher\',\'foo \\uD834\\uDF06 bar\']'
+
+// Escaping an object
+jsesc({
+ 'Ich ♥ Bücher': 'foo 𝌆 bar'
+});
+// → '{\'Ich \\u2665 B\\xFCcher\':\'foo \\uD834\\uDF06 bar\'}'
+```
+
+The optional `options` argument accepts an object with the following options:
+
+#### `quotes`
+
+The default value for the `quotes` option is `'single'`. This means that any occurrences of `'` in the input string are escaped as `\'`, so that the output can be used in a string literal wrapped in single quotes.
+
+```js
+jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.');
+// → 'Lorem ipsum "dolor" sit \\\'amet\\\' etc.'
+
+jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', {
+ 'quotes': 'single'
+});
+// → '`Lorem` ipsum "dolor" sit \\\'amet\\\' etc.'
+// → "`Lorem` ipsum \"dolor\" sit \\'amet\\' etc."
+```
+
+If you want to use the output as part of a string literal wrapped in double quotes, set the `quotes` option to `'double'`.
+
+```js
+jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', {
+ 'quotes': 'double'
+});
+// → '`Lorem` ipsum \\"dolor\\" sit \'amet\' etc.'
+// → "`Lorem` ipsum \\\"dolor\\\" sit 'amet' etc."
+```
+
+If you want to use the output as part of a template literal (i.e. wrapped in backticks), set the `quotes` option to `'backtick'`.
+
+```js
+jsesc('`Lorem` ipsum "dolor" sit \'amet\' etc.', {
+ 'quotes': 'backtick'
+});
+// → '\\`Lorem\\` ipsum "dolor" sit \'amet\' etc.'
+// → "\\`Lorem\\` ipsum \"dolor\" sit 'amet' etc."
+// → `\\\`Lorem\\\` ipsum "dolor" sit 'amet' etc.`
+```
+
+This setting also affects the output for arrays and objects:
+
+```js
+jsesc({ 'Ich ♥ Bücher': 'foo 𝌆 bar' }, {
+ 'quotes': 'double'
+});
+// → '{"Ich \\u2665 B\\xFCcher":"foo \\uD834\\uDF06 bar"}'
+
+jsesc([ 'Ich ♥ Bücher', 'foo 𝌆 bar' ], {
+ 'quotes': 'double'
+});
+// → '["Ich \\u2665 B\\xFCcher","foo \\uD834\\uDF06 bar"]'
+```
+
+#### `numbers`
+
+The default value for the `numbers` option is `'decimal'`. This means that any numeric values are represented using decimal integer literals. Other valid options are `binary`, `octal`, and `hexadecimal`, which result in binary integer literals, octal integer literals, and hexadecimal integer literals, respectively.
+
+```js
+jsesc(42, {
+ 'numbers': 'binary'
+});
+// → '0b101010'
+
+jsesc(42, {
+ 'numbers': 'octal'
+});
+// → '0o52'
+
+jsesc(42, {
+ 'numbers': 'decimal'
+});
+// → '42'
+
+jsesc(42, {
+ 'numbers': 'hexadecimal'
+});
+// → '0x2A'
+```
+
+#### `wrap`
+
+The `wrap` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, the output is a valid JavaScript string literal wrapped in quotes. The type of quotes can be specified through the `quotes` setting.
+
+```js
+jsesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
+ 'quotes': 'single',
+ 'wrap': true
+});
+// → '\'Lorem ipsum "dolor" sit \\\'amet\\\' etc.\''
+// → "\'Lorem ipsum \"dolor\" sit \\\'amet\\\' etc.\'"
+
+jsesc('Lorem ipsum "dolor" sit \'amet\' etc.', {
+ 'quotes': 'double',
+ 'wrap': true
+});
+// → '"Lorem ipsum \\"dolor\\" sit \'amet\' etc."'
+// → "\"Lorem ipsum \\\"dolor\\\" sit \'amet\' etc.\""
+```
+
+#### `es6`
+
+The `es6` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, any astral Unicode symbols in the input are escaped using [ECMAScript 6 Unicode code point escape sequences](https://mathiasbynens.be/notes/javascript-escapes#unicode-code-point) instead of using separate escape sequences for each surrogate half. If backwards compatibility with ES5 environments is a concern, don’t enable this setting. If the `json` setting is enabled, the value for the `es6` setting is ignored (as if it was `false`).
+
+```js
+// By default, the `es6` option is disabled:
+jsesc('foo 𝌆 bar 💩 baz');
+// → 'foo \\uD834\\uDF06 bar \\uD83D\\uDCA9 baz'
+
+// To explicitly disable it:
+jsesc('foo 𝌆 bar 💩 baz', {
+ 'es6': false
+});
+// → 'foo \\uD834\\uDF06 bar \\uD83D\\uDCA9 baz'
+
+// To enable it:
+jsesc('foo 𝌆 bar 💩 baz', {
+ 'es6': true
+});
+// → 'foo \\u{1D306} bar \\u{1F4A9} baz'
+```
+
+#### `escapeEverything`
+
+The `escapeEverything` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, all the symbols in the output are escaped — even printable ASCII symbols.
+
+```js
+jsesc('lolwat"foo\'bar', {
+ 'escapeEverything': true
+});
+// → '\\x6C\\x6F\\x6C\\x77\\x61\\x74\\"\\x66\\x6F\\x6F\\\'\\x62\\x61\\x72'
+// → "\\x6C\\x6F\\x6C\\x77\\x61\\x74\\\"\\x66\\x6F\\x6F\\'\\x62\\x61\\x72"
+```
+
+This setting also affects the output for string literals within arrays and objects.
+
+#### `minimal`
+
+The `minimal` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, only a limited set of symbols in the output are escaped:
+
+* U+0000 `\0`
+* U+0008 `\b`
+* U+0009 `\t`
+* U+000A `\n`
+* U+000C `\f`
+* U+000D `\r`
+* U+005C `\\`
+* U+2028 `\u2028`
+* U+2029 `\u2029`
+* whatever symbol is being used for wrapping string literals (based on [the `quotes` option](#quotes))
+
+Note: with this option enabled, jsesc output is no longer guaranteed to be ASCII-safe.
+
+```js
+jsesc('foo\u2029bar\nbaz©qux𝌆flops', {
+ 'minimal': false
+});
+// → 'foo\\u2029bar\\nbaz©qux𝌆flops'
+```
+
+#### `isScriptContext`
+
+The `isScriptContext` option takes a boolean value (`true` or `false`), and defaults to `false` (disabled). When enabled, occurrences of [`` or `
+
+
+
+
+
+
+
+
+ Fisher-Yates Shuffle Demo
+
+
+ This is a demo of knuth-shuffle-seeded . Enjoy!
+
+
+
+
+ Seed
+
+
+
+
+ Submit
+
+
+
+
+
+
+
+
+
+
+
+