@wazo/sdk 0.47.8 → 0.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/wazo-sdk.js +1215 -1091
  2. package/package.json +29 -29
package/dist/wazo-sdk.js CHANGED
@@ -1102,7 +1102,7 @@
1102
1102
  }();
1103
1103
  exports1.VariableType = VariableType;
1104
1104
  },
1105
- "./node_modules/.pnpm/jsrsasign@11.1.1/node_modules/jsrsasign/lib/jsrsasign.js": function(__unused_webpack_module, exports1) {
1105
+ "./node_modules/.pnpm/jsrsasign@11.1.3/node_modules/jsrsasign/lib/jsrsasign.js": function(__unused_webpack_module, exports1) {
1106
1106
  var navigator1 = {};
1107
1107
  navigator1.userAgent = false;
1108
1108
  var window1 = {};
@@ -3566,7 +3566,7 @@
3566
3566
  }
3567
3567
  function bnpDivRemTo(n, h, g) {
3568
3568
  var w = n.abs();
3569
- if (w.t <= 0) return;
3569
+ if (w.t <= 0) throw "BigInteger divide by zero";
3570
3570
  var k = this.abs();
3571
3571
  if (k.t < w.t) {
3572
3572
  if (null != h) h.fromInt(0);
@@ -4161,6 +4161,7 @@
4161
4161
  Barrett.prototype.mulTo = barrettMulTo;
4162
4162
  Barrett.prototype.sqrTo = barrettSqrTo;
4163
4163
  function bnModPow(q, f) {
4164
+ if (q.signum() < 0) return this.modInverse(f).modPow(q.negate(), f);
4164
4165
  var o = q.bitLength(), h, b = nbv(1), v;
4165
4166
  if (o <= 0) return b;
4166
4167
  h = o < 18 ? 1 : o < 48 ? 3 : o < 144 ? 4 : o < 768 ? 5 : 6;
@@ -4261,50 +4262,52 @@
4261
4262
  }
4262
4263
  return b;
4263
4264
  }
4264
- function bnModInverse(f) {
4265
- var j = f.isEven();
4266
- if (this.isEven() && j || 0 == f.signum()) return BigInteger.ZERO;
4267
- var i = f.clone(), h = this.clone();
4268
- var g = nbv(1), e = nbv(0), l = nbv(0), k = nbv(1);
4269
- while(0 != i.signum()){
4270
- while(i.isEven()){
4271
- i.rShiftTo(1, i);
4272
- if (j) {
4273
- if (!g.isEven() || !e.isEven()) {
4274
- g.addTo(this, g);
4275
- e.subTo(f, e);
4265
+ function bnModInverse(e) {
4266
+ if (0 == e.signum()) return BigInteger.ZERO;
4267
+ var j = this.mod(e);
4268
+ var n = e.isEven();
4269
+ if (j.isEven() && n || 0 == j.signum()) return BigInteger.ZERO;
4270
+ var l = e.clone(), k = j.clone();
4271
+ var i = nbv(1), h = nbv(0), g = nbv(0), f = nbv(1);
4272
+ while(0 != l.signum()){
4273
+ while(l.isEven()){
4274
+ l.rShiftTo(1, l);
4275
+ if (n) {
4276
+ if (!i.isEven() || !h.isEven()) {
4277
+ i.addTo(j, i);
4278
+ h.subTo(e, h);
4276
4279
  }
4277
- g.rShiftTo(1, g);
4278
- } else if (!e.isEven()) e.subTo(f, e);
4279
- e.rShiftTo(1, e);
4280
- }
4281
- while(h.isEven()){
4280
+ i.rShiftTo(1, i);
4281
+ } else if (!h.isEven()) h.subTo(e, h);
4282
4282
  h.rShiftTo(1, h);
4283
- if (j) {
4284
- if (!l.isEven() || !k.isEven()) {
4285
- l.addTo(this, l);
4286
- k.subTo(f, k);
4287
- }
4288
- l.rShiftTo(1, l);
4289
- } else if (!k.isEven()) k.subTo(f, k);
4283
+ }
4284
+ while(k.isEven()){
4290
4285
  k.rShiftTo(1, k);
4286
+ if (n) {
4287
+ if (!g.isEven() || !f.isEven()) {
4288
+ g.addTo(j, g);
4289
+ f.subTo(e, f);
4290
+ }
4291
+ g.rShiftTo(1, g);
4292
+ } else if (!f.isEven()) f.subTo(e, f);
4293
+ f.rShiftTo(1, f);
4291
4294
  }
4292
- if (i.compareTo(h) >= 0) {
4293
- i.subTo(h, i);
4294
- if (j) g.subTo(l, g);
4295
- e.subTo(k, e);
4295
+ if (l.compareTo(k) >= 0) {
4296
+ l.subTo(k, l);
4297
+ if (n) i.subTo(g, i);
4298
+ h.subTo(f, h);
4296
4299
  } else {
4297
- h.subTo(i, h);
4298
- if (j) l.subTo(g, l);
4299
- k.subTo(e, k);
4300
+ k.subTo(l, k);
4301
+ if (n) g.subTo(i, g);
4302
+ f.subTo(h, f);
4300
4303
  }
4301
4304
  }
4302
- if (0 != h.compareTo(BigInteger.ONE)) return BigInteger.ZERO;
4303
- if (k.compareTo(f) >= 0) return k.subtract(f);
4304
- if (!(k.signum() < 0)) return k;
4305
- k.addTo(f, k);
4306
- if (k.signum() < 0) return k.add(f);
4307
- return k;
4305
+ if (0 != k.compareTo(BigInteger.ONE)) return BigInteger.ZERO;
4306
+ if (f.compareTo(e) >= 0) return f.subtract(e);
4307
+ if (!(f.signum() < 0)) return f;
4308
+ f.addTo(e, f);
4309
+ if (f.signum() < 0) return f.add(e);
4310
+ return f;
4308
4311
  }
4309
4312
  var lowprimes = [
4310
4313
  2,
@@ -4478,6 +4481,7 @@
4478
4481
  ];
4479
4482
  var lplim = 67108864 / lowprimes[lowprimes.length - 1];
4480
4483
  function bnIsProbablePrime(e) {
4484
+ if (this.signum() <= 0) return false;
4481
4485
  var d, b = this.abs();
4482
4486
  if (1 == b.t && b[0] <= lowprimes[lowprimes.length - 1]) {
4483
4487
  for(d = 0; d < lowprimes.length; ++d)if (b[0] == lowprimes[d]) return true;
@@ -4494,6 +4498,7 @@
4494
4498
  return b.millerRabin(e);
4495
4499
  }
4496
4500
  function bnpMillerRabin(f) {
4501
+ if (this.signum() <= 0) return false;
4497
4502
  var g = this.subtract(BigInteger.ONE);
4498
4503
  var c = g.getLowestSetBit();
4499
4504
  if (c <= 0) return false;
@@ -4562,6 +4567,16 @@
4562
4567
  BigInteger.prototype.gcd = bnGCD;
4563
4568
  BigInteger.prototype.isProbablePrime = bnIsProbablePrime;
4564
4569
  BigInteger.prototype.square = bnSquare;
4570
+ BigInteger.prototype.sqrt = function() {
4571
+ var c = BigInteger.ZERO.setBit(this.bitLength() / 2);
4572
+ var a = c;
4573
+ for(;;){
4574
+ var b = c.add(this.divide(c)).shiftRight(1);
4575
+ if (b.equals(c) || b.equals(a)) return b;
4576
+ a = c;
4577
+ c = b;
4578
+ }
4579
+ };
4565
4580
  /*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/
4566
4581
  */ function Arcfour() {
4567
4582
  this.i = 0;
@@ -4625,6 +4640,11 @@
4625
4640
  for(t = 0; t < z.length; ++t)rng_pool[rng_pptr++] = 255 & z.charCodeAt(t);
4626
4641
  }
4627
4642
  }
4643
+ if (rng_pptr < rng_psize && "undefined" != typeof globalThis && globalThis.crypto && globalThis.crypto.getRandomValues) {
4644
+ var ga = new Uint8Array(rng_psize - rng_pptr);
4645
+ globalThis.crypto.getRandomValues(ga);
4646
+ for(t = 0; t < ga.length; ++t)rng_pool[rng_pptr++] = ga[t];
4647
+ }
4628
4648
  while(rng_pptr < rng_psize){
4629
4649
  t = Math.floor(65536 * Math.random());
4630
4650
  rng_pool[rng_pptr++] = t >>> 8;
@@ -5883,6 +5903,7 @@
5883
5903
  var c, f, g;
5884
5904
  c = l.getVidx(e, k);
5885
5905
  f = 2 * l.getVblen(e, k);
5906
+ if (c + f > e.length) throw new Error("too short ASN.1 value");
5886
5907
  if ("03" == e.substr(k, 2)) {
5887
5908
  c += 2;
5888
5909
  f -= 2;
@@ -5891,6 +5912,7 @@
5891
5912
  var d = c;
5892
5913
  while(g <= f){
5893
5914
  var b = l.getTLVblen(e, d);
5915
+ if (b <= 0) throw new Error("malformed ASN.1: invalid TLV length");
5894
5916
  g += b;
5895
5917
  if (g <= f) j.push(d);
5896
5918
  d += b;
@@ -11790,6 +11812,23 @@
11790
11812
  if (a.substr(0, 1) > "7") return "00" + a;
11791
11813
  return a;
11792
11814
  }
11815
+ function timingSafeEqual(b, a) {
11816
+ if ("string" != typeof b || "string" != typeof a) throw new Error("arguments shall be string");
11817
+ if (b.length !== a.length) throw new Error("input strings must have the same length");
11818
+ if ("function" == typeof Buffer && void 0 !== crypto) {
11819
+ if (void 0 !== crypto.timingSafeEqual) return crypto.timingSafeEqual(Buffer.from(b), Buffer.from(a));
11820
+ if (void 0 !== crypto.subtle && crypto.subtle.timingSafeEqual) return crypto.subtle.timingSafeEqual(Buffer.from(b), Buffer.from(a));
11821
+ }
11822
+ return timingSafeEqualImpl(b, a);
11823
+ }
11824
+ function timingSafeEqualImpl(c, a) {
11825
+ if ("string" != typeof c || "string" != typeof a) throw new Error("arguments shall be string");
11826
+ if (c.length !== a.length) throw new Error("input strings must have the same length");
11827
+ const e = a.slice();
11828
+ var d = 0;
11829
+ for(var b = 0; b < c.length; b++)d |= c.charCodeAt(b) ^ e.charCodeAt(b);
11830
+ return 0 === d;
11831
+ }
11793
11832
  function oidtohex(g) {
11794
11833
  var f = function(a) {
11795
11834
  var l = a.toString(16);
@@ -13018,8 +13057,8 @@
13018
13057
  var D = o[1];
13019
13058
  var C = n.substr(0, i.bitLength() / 4);
13020
13059
  var u = new BigInteger(C, 16);
13021
- if (BigInteger.ZERO.compareTo(h) > 0 || h.compareTo(i) > 0) throw "invalid DSA signature";
13022
- if (BigInteger.ZERO.compareTo(D) >= 0 || D.compareTo(i) > 0) throw "invalid DSA signature";
13060
+ if (BigInteger.ZERO.compareTo(h) >= 0 || h.compareTo(i) >= 0) throw "invalid DSA signature";
13061
+ if (BigInteger.ZERO.compareTo(D) >= 0 || D.compareTo(i) >= 0) throw "invalid DSA signature";
13023
13062
  var A = D.modInverse(i);
13024
13063
  var l = u.multiply(A).mod(i);
13025
13064
  var j = h.multiply(A).mod(i);
@@ -16095,69 +16134,77 @@
16095
16134
  var v = hextob64u(y);
16096
16135
  return b + "." + v;
16097
16136
  };
16098
- KJUR.jws.JWS.verify = function(w, B, n) {
16099
- var x = KJUR, q = x.jws, t = q.JWS, i = t.readSafeJSONString, e = x.crypto, p = e.ECDSA, s = e.Mac, d = e.Signature, m;
16100
- m = RSAKey;
16101
- if (!isBase64URLDot(w)) return false;
16102
- var y = w.split(".");
16103
- if (3 !== y.length) return false;
16104
- var f = y[0];
16105
- var r = y[1];
16106
- var c = f + "." + r;
16107
- var A = b64utohex(y[2]);
16108
- var l = i(b64utoutf8(y[0]));
16109
- var k = null;
16110
- var z = null;
16111
- if (void 0 === l.alg) throw "algorithm not specified in header";
16112
- k = l.alg;
16113
- z = k.substr(0, 2);
16114
- if (null != n && "[object Array]" === Object.prototype.toString.call(n) && n.length > 0) {
16115
- var b = ":" + n.join(":") + ":";
16116
- if (-1 == b.indexOf(":" + k + ":")) throw "algorithm '" + k + "' not accepted in the list";
16117
- }
16118
- if ("none" != k && null === B) throw "key shall be specified to verify.";
16119
- if ("string" == typeof B && -1 != B.indexOf("-----BEGIN ")) B = KEYUTIL.getKey(B);
16120
- if ("RS" == z || "PS" == z) {
16121
- if (!(B instanceof m)) throw "key shall be a RSAKey obj for RS* and PS* algs";
16122
- }
16123
- if ("ES" == z) {
16124
- if (!(B instanceof p)) throw "key shall be a ECDSA obj for ES* algs";
16125
- }
16126
- var u = null;
16127
- if (void 0 === t.jwsalg2sigalg[l.alg]) throw "unsupported alg name: " + k;
16128
- u = t.jwsalg2sigalg[k];
16129
- if ("none" == u) throw "not supported";
16130
- if ("Hmac" == u.substr(0, 4)) {
16131
- var o = null;
16132
- if (void 0 === B) throw "hexadecimal key shall be specified for HMAC";
16133
- var j = new s({
16134
- alg: u,
16135
- pass: B
16137
+ KJUR.jws.JWS.verify = function(A, F, o) {
16138
+ var B = KJUR, t = B.jws, w = t.JWS, j = w.readSafeJSONString, e = B.crypto, s = e.ECDSA, v = e.Mac, d = e.Signature, n;
16139
+ n = RSAKey;
16140
+ if (!isBase64URLDot(A)) return false;
16141
+ var C = A.split(".");
16142
+ if (3 !== C.length) return false;
16143
+ var f = C[0];
16144
+ var u = C[1];
16145
+ var c = f + "." + u;
16146
+ var E = b64utohex(C[2]);
16147
+ var m = j(b64utoutf8(C[0]));
16148
+ var l = null;
16149
+ var D = null;
16150
+ if (void 0 === m.alg) throw "algorithm not specified in header";
16151
+ l = m.alg;
16152
+ D = l.substr(0, 2);
16153
+ if (null != o && "[object Array]" === Object.prototype.toString.call(o) && o.length > 0) {
16154
+ var b = ":" + o.join(":") + ":";
16155
+ if (-1 == b.indexOf(":" + l + ":")) throw "algorithm '" + l + "' not accepted in the list";
16156
+ }
16157
+ if ("none" != l && null === F) throw "key shall be specified to verify.";
16158
+ if ("string" == typeof F && -1 != F.indexOf("-----BEGIN ")) F = KEYUTIL.getKey(F);
16159
+ if ("RS" == D || "PS" == D) {
16160
+ if (!(F instanceof n)) throw "key shall be a RSAKey obj for RS* and PS* algs";
16161
+ }
16162
+ if ("ES" == D) {
16163
+ if (!(F instanceof s)) throw "key shall be a ECDSA obj for ES* algs";
16164
+ }
16165
+ var y = null;
16166
+ if (void 0 === w.jwsalg2sigalg[m.alg]) throw new Error("unsupported alg name: " + l);
16167
+ y = w.jwsalg2sigalg[l];
16168
+ if (void 0 !== m.crit) {
16169
+ if (!Array.isArray(m.crit) || 0 === m.crit.length) throw new Error("wrong critical header");
16170
+ for(var x = 0; x < m.crit.length; x++){
16171
+ var r = m.crit[x];
16172
+ if ("string" != typeof r || 0 === r.length) throw new Error("wrong critical header");
16173
+ if (void 0 === m[r]) throw new Error("critical header '" + r + "' missing");
16174
+ }
16175
+ }
16176
+ if ("none" == y) throw new Error("not supported");
16177
+ if ("Hmac" == y.substr(0, 4)) {
16178
+ var q = null;
16179
+ if (void 0 === F) throw new Error("hexadecimal key shall be specified for HMAC");
16180
+ var k = new v({
16181
+ alg: y,
16182
+ pass: F
16136
16183
  });
16137
- j.updateString(c);
16138
- o = j.doFinal();
16139
- return A == o;
16184
+ k.updateString(c);
16185
+ q = k.doFinal();
16186
+ return timingSafeEqual(E, q);
16140
16187
  }
16141
- if (-1 != u.indexOf("withECDSA")) {
16188
+ if (-1 != y.indexOf("withECDSA")) {
16142
16189
  var h = null;
16143
16190
  try {
16144
- h = p.concatSigToASN1Sig(A);
16145
- } catch (v) {
16191
+ h = s.concatSigToASN1Sig(E);
16192
+ } catch (z) {
16146
16193
  return false;
16147
16194
  }
16148
16195
  var g = new d({
16149
- alg: u
16196
+ alg: y
16150
16197
  });
16151
- g.init(B);
16198
+ g.init(F);
16152
16199
  g.updateString(c);
16153
16200
  return g.verify(h);
16154
16201
  }
16155
16202
  var g = new d({
16156
- alg: u
16203
+ alg: y
16157
16204
  });
16158
- g.init(B);
16205
+ g.init(F);
16159
16206
  g.updateString(c);
16160
- return g.verify(A);
16207
+ return g.verify(E);
16161
16208
  };
16162
16209
  KJUR.jws.JWS.parse = function(g) {
16163
16210
  var c = g.split(".");
@@ -16278,23 +16325,23 @@
16278
16325
  return a[1];
16279
16326
  };
16280
16327
  KJUR.jws.JWS.getJWKthumbprint = function(d) {
16281
- if ("RSA" !== d.kty && "EC" !== d.kty && "oct" !== d.kty) throw "unsupported algorithm for JWK Thumprint";
16328
+ if ("RSA" !== d.kty && "EC" !== d.kty && "oct" !== d.kty) throw new Error("unsupported algorithm for JWK Thumprint");
16282
16329
  var a = "{";
16283
16330
  if ("RSA" === d.kty) {
16284
- if ("string" != typeof d.n || "string" != typeof d.e) throw "wrong n and e value for RSA key";
16331
+ if ("string" != typeof d.n || "string" != typeof d.e) throw new Error("wrong n and e value for RSA key");
16285
16332
  a += '"e":"' + d.e + '",';
16286
16333
  a += '"kty":"' + d.kty + '",';
16287
16334
  a += '"n":"' + d.n + '"}';
16288
16335
  } else if ("EC" === d.kty) {
16289
- if ("string" != typeof d.crv || "string" != typeof d.x || "string" != typeof d.y) throw "wrong crv, x and y value for EC key";
16336
+ if ("string" != typeof d.crv || "string" != typeof d.x || "string" != typeof d.y) throw new Error("wrong crv, x and y value for EC key");
16290
16337
  a += '"crv":"' + d.crv + '",';
16291
16338
  a += '"kty":"' + d.kty + '",';
16292
16339
  a += '"x":"' + d.x + '",';
16293
16340
  a += '"y":"' + d.y + '"}';
16294
16341
  } else if ("oct" === d.kty) {
16295
- if ("string" != typeof d.k) throw "wrong k value for oct(symmetric) key";
16296
- a += '"kty":"' + d.kty + '",';
16297
- a += '"k":"' + d.k + '"}';
16342
+ if ("string" != typeof d.k) throw new Error("wrong k value for oct(symmetric) key");
16343
+ a += '"k":"' + d.k + '",';
16344
+ a += '"kty":"' + d.kty + '"}';
16298
16345
  }
16299
16346
  var b = rstrtohex(a);
16300
16347
  var c = KJUR.crypto.Util.hashHex(b, "sha256");
@@ -32635,7 +32682,7 @@
32635
32682
  return sdp.join('\r\n') + '\r\n';
32636
32683
  };
32637
32684
  },
32638
- "./node_modules/.pnpm/sdp@3.2.0/node_modules/sdp/sdp.js": function(module1) {
32685
+ "./node_modules/.pnpm/sdp@3.2.2/node_modules/sdp/sdp.js": function(module1) {
32639
32686
  "use strict";
32640
32687
  const SDPUtils = {};
32641
32688
  SDPUtils.generateIdentifier = function() {
@@ -32711,7 +32758,7 @@
32711
32758
  const type = candidate.type;
32712
32759
  sdp.push('typ');
32713
32760
  sdp.push(type);
32714
- if ('host' !== type && candidate.relatedAddress && candidate.relatedPort) {
32761
+ if ('host' !== type && candidate.relatedAddress && void 0 !== candidate.relatedPort) {
32715
32762
  sdp.push('raddr');
32716
32763
  sdp.push(candidate.relatedAddress);
32717
32764
  sdp.push('rport');
@@ -33465,7 +33512,7 @@
33465
33512
  default: ()=>WebRTCPhone,
33466
33513
  events: ()=>WebRTCPhone_events
33467
33514
  });
33468
- const base64_version = '3.7.7';
33515
+ const base64_version = '3.7.8';
33469
33516
  const VERSION = base64_version;
33470
33517
  const _hasBuffer = 'function' == typeof Buffer;
33471
33518
  const _TD = 'function' == typeof TextDecoder ? new TextDecoder() : void 0;
@@ -33530,12 +33577,15 @@
33530
33577
  asc = asc.replace(/\s+/g, '');
33531
33578
  if (!b64re.test(asc)) throw new TypeError('malformed base64.');
33532
33579
  asc += '=='.slice(2 - (3 & asc.length));
33533
- let u24, bin = '', r1, r2;
33580
+ let u24, r1, r2;
33581
+ let binArray = [];
33534
33582
  for(let i = 0; i < asc.length;){
33535
33583
  u24 = b64tab[asc.charAt(i++)] << 18 | b64tab[asc.charAt(i++)] << 12 | (r1 = b64tab[asc.charAt(i++)]) << 6 | (r2 = b64tab[asc.charAt(i++)]);
33536
- bin += 64 === r1 ? _fromCC(u24 >> 16 & 255) : 64 === r2 ? _fromCC(u24 >> 16 & 255, u24 >> 8 & 255) : _fromCC(u24 >> 16 & 255, u24 >> 8 & 255, 255 & u24);
33584
+ if (64 === r1) binArray.push(_fromCC(u24 >> 16 & 255));
33585
+ else if (64 === r2) binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255));
33586
+ else binArray.push(_fromCC(u24 >> 16 & 255, u24 >> 8 & 255, 255 & u24));
33537
33587
  }
33538
- return bin;
33588
+ return binArray.join('');
33539
33589
  };
33540
33590
  const _atob = 'function' == typeof atob ? (asc)=>atob(_tidyB64(asc)) : _hasBuffer ? (asc)=>Buffer.from(asc, 'base64').toString('binary') : atobPolyfill;
33541
33591
  const _toUint8Array = _hasBuffer ? (a)=>_U8Afrom(Buffer.from(a, 'base64')) : (a)=>_U8Afrom(_atob(a).split('').map((c)=>c.charCodeAt(0)));
@@ -36536,7 +36586,7 @@
36536
36586
  const AGENTD_VERSION = '1.0';
36537
36587
  const WEBHOOKD_VERSION = '1.0';
36538
36588
  const AMID_VERSION = '1.0';
36539
- var jsrsasign = __webpack_require__("./node_modules/.pnpm/jsrsasign@11.1.1/node_modules/jsrsasign/lib/jsrsasign.js");
36589
+ var jsrsasign = __webpack_require__("./node_modules/.pnpm/jsrsasign@11.1.3/node_modules/jsrsasign/lib/jsrsasign.js");
36540
36590
  const swarmPublicKey = `-----BEGIN PUBLIC KEY-----
36541
36591
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmkXOuNfY8u5xoTiIhkb8
36542
36592
  djnbIwG/Wrz3vpo8BZir8L5e1a1nSy740qBjP7ZINBQoALDhFfmdOfJnCyEGiHuz
@@ -39811,7 +39861,7 @@ and limitations under the License.
39811
39861
  if ('object' != typeof window1 || window1.AudioContext) return;
39812
39862
  window1.AudioContext = window1.webkitAudioContext;
39813
39863
  }
39814
- var sdp_sdp = __webpack_require__("./node_modules/.pnpm/sdp@3.2.0/node_modules/sdp/sdp.js");
39864
+ var sdp_sdp = __webpack_require__("./node_modules/.pnpm/sdp@3.2.2/node_modules/sdp/sdp.js");
39815
39865
  var sdp_default = /*#__PURE__*/ __webpack_require__.n(sdp_sdp);
39816
39866
  function shimRTCIceCandidate(window1) {
39817
39867
  if (!window1.RTCIceCandidate || window1.RTCIceCandidate && 'foundation' in window1.RTCIceCandidate.prototype) return;
@@ -57360,13 +57410,13 @@ and limitations under the License.
57360
57410
  0,
57361
57411
  [
57362
57412
  [
57363
- "(?:(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|7(?:[013-57-9]\\d|2[0-8]))\\d|3(?:(?:[0-3589]\\d|6[1-9]|7[0-35-9])\\d|4(?:[0-578]\\d|90)))\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|3\\d\\d)|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",
57413
+ "(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",
57364
57414
  [
57365
57415
  9
57366
57416
  ]
57367
57417
  ],
57368
57418
  [
57369
- "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",
57419
+ "4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",
57370
57420
  [
57371
57421
  9
57372
57422
  ]
@@ -57638,7 +57688,7 @@ and limitations under the License.
57638
57688
  BF: [
57639
57689
  "226",
57640
57690
  "00",
57641
- "[025-7]\\d{7}",
57691
+ "[024-7]\\d{7}",
57642
57692
  [
57643
57693
  8
57644
57694
  ],
@@ -57647,7 +57697,7 @@ and limitations under the License.
57647
57697
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57648
57698
  "$1 $2 $3 $4",
57649
57699
  [
57650
- "[025-7]"
57700
+ "[024-7]"
57651
57701
  ]
57652
57702
  ]
57653
57703
  ]
@@ -57768,7 +57818,7 @@ and limitations under the License.
57768
57818
  BJ: [
57769
57819
  "229",
57770
57820
  "00",
57771
- "(?:01\\d|[24-689])\\d{7}",
57821
+ "(?:01\\d|8)\\d{7}",
57772
57822
  [
57773
57823
  8,
57774
57824
  10
@@ -57778,7 +57828,7 @@ and limitations under the License.
57778
57828
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57779
57829
  "$1 $2 $3 $4",
57780
57830
  [
57781
- "[24-689]"
57831
+ "8"
57782
57832
  ]
57783
57833
  ],
57784
57834
  [
@@ -57793,7 +57843,7 @@ and limitations under the License.
57793
57843
  BL: [
57794
57844
  "590",
57795
57845
  "00",
57796
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
57846
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
57797
57847
  [
57798
57848
  9
57799
57849
  ],
@@ -57806,15 +57856,17 @@ and limitations under the License.
57806
57856
  0,
57807
57857
  [
57808
57858
  [
57809
- "590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"
57859
+ "(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"
57810
57860
  ],
57811
57861
  [
57812
- "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"
57862
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
57813
57863
  ],
57814
57864
  [
57815
57865
  "80[0-5]\\d{6}"
57816
57866
  ],
57817
- 0,
57867
+ [
57868
+ "8[129]\\d{7}"
57869
+ ],
57818
57870
  0,
57819
57871
  0,
57820
57872
  0,
@@ -57973,7 +58025,7 @@ and limitations under the License.
57973
58025
  BT: [
57974
58026
  "975",
57975
58027
  "00",
57976
- "[17]\\d{7}|[2-8]\\d{6}",
58028
+ "[178]\\d{7}|[2-8]\\d{6}",
57977
58029
  [
57978
58030
  7,
57979
58031
  8
@@ -57983,14 +58035,14 @@ and limitations under the License.
57983
58035
  "(\\d)(\\d{3})(\\d{3})",
57984
58036
  "$1 $2 $3",
57985
58037
  [
57986
- "[2-68]|7[246]"
58038
+ "[2-6]|7[246]|8[2-4]"
57987
58039
  ]
57988
58040
  ],
57989
58041
  [
57990
58042
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57991
58043
  "$1 $2 $3 $4",
57992
58044
  [
57993
- "1[67]|7"
58045
+ "1[67]|[78]"
57994
58046
  ]
57995
58047
  ]
57996
58048
  ]
@@ -58156,7 +58208,7 @@ and limitations under the License.
58156
58208
  0,
58157
58209
  [
58158
58210
  [
58159
- "(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",
58211
+ "(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",
58160
58212
  [
58161
58213
  10
58162
58214
  ]
@@ -58180,7 +58232,7 @@ and limitations under the License.
58180
58232
  ]
58181
58233
  ],
58182
58234
  [
58183
- "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|33|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",
58235
+ "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",
58184
58236
  [
58185
58237
  10
58186
58238
  ]
@@ -58228,7 +58280,7 @@ and limitations under the License.
58228
58280
  ]
58229
58281
  ],
58230
58282
  [
58231
- "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",
58283
+ "4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",
58232
58284
  [
58233
58285
  9
58234
58286
  ]
@@ -58333,7 +58385,7 @@ and limitations under the License.
58333
58385
  CF: [
58334
58386
  "236",
58335
58387
  "00",
58336
- "(?:[27]\\d{3}|8776)\\d{4}",
58388
+ "8776\\d{4}|(?:[27]\\d|61)\\d{6}",
58337
58389
  [
58338
58390
  8
58339
58391
  ],
@@ -58342,7 +58394,7 @@ and limitations under the License.
58342
58394
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
58343
58395
  "$1 $2 $3 $4",
58344
58396
  [
58345
- "[278]"
58397
+ "[26-8]"
58346
58398
  ]
58347
58399
  ]
58348
58400
  ]
@@ -58467,6 +58519,13 @@ and limitations under the License.
58467
58519
  ],
58468
58520
  "($1)"
58469
58521
  ],
58522
+ [
58523
+ "(\\d{3})(\\d{3})(\\d{3})",
58524
+ "$1 $2 $3",
58525
+ [
58526
+ "60|809"
58527
+ ]
58528
+ ],
58470
58529
  [
58471
58530
  "(\\d{2})(\\d{3})(\\d{4})",
58472
58531
  "$1 $2 $3",
@@ -58486,14 +58545,14 @@ and limitations under the License.
58486
58545
  "(\\d)(\\d{4})(\\d{4})",
58487
58546
  "$1 $2 $3",
58488
58547
  [
58489
- "9[2-9]"
58548
+ "9(?:10|[2-9])"
58490
58549
  ]
58491
58550
  ],
58492
58551
  [
58493
58552
  "(\\d{2})(\\d{3})(\\d{4})",
58494
58553
  "$1 $2 $3",
58495
58554
  [
58496
- "3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"
58555
+ "3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"
58497
58556
  ],
58498
58557
  "($1)"
58499
58558
  ],
@@ -58688,7 +58747,7 @@ and limitations under the License.
58688
58747
  "(\\d{3})(\\d{7})",
58689
58748
  "$1 $2",
58690
58749
  [
58691
- "3[0-357]|91"
58750
+ "3[0-357]|9[14]"
58692
58751
  ]
58693
58752
  ],
58694
58753
  [
@@ -58855,7 +58914,7 @@ and limitations under the License.
58855
58914
  ]
58856
58915
  ],
58857
58916
  [
58858
- "4(?:79[01]|83[0-389]|94[0-4])\\d{5}|4(?:[0-36]\\d|4[047-9]|5[0-25-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",
58917
+ "4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",
58859
58918
  [
58860
58919
  9
58861
58920
  ]
@@ -59085,7 +59144,7 @@ and limitations under the License.
59085
59144
  "$1 $2",
59086
59145
  [
59087
59146
  "15[03568]",
59088
- "15(?:[0568]|31)"
59147
+ "15(?:[0568]|3[13])"
59089
59148
  ],
59090
59149
  "0$1"
59091
59150
  ],
@@ -59363,7 +59422,28 @@ and limitations under the License.
59363
59422
  0,
59364
59423
  0,
59365
59424
  0,
59366
- "528[89]"
59425
+ 0,
59426
+ [
59427
+ [
59428
+ "528[89]\\d{5}"
59429
+ ],
59430
+ [
59431
+ "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"
59432
+ ],
59433
+ [
59434
+ "80[0-7]\\d{6}"
59435
+ ],
59436
+ [
59437
+ "89\\d{7}"
59438
+ ],
59439
+ 0,
59440
+ 0,
59441
+ 0,
59442
+ 0,
59443
+ [
59444
+ "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"
59445
+ ]
59446
+ ]
59367
59447
  ],
59368
59448
  ER: [
59369
59449
  "291",
@@ -59722,13 +59802,13 @@ and limitations under the License.
59722
59802
  ],
59723
59803
  "0",
59724
59804
  0,
59725
- 0,
59805
+ "0|180020",
59726
59806
  0,
59727
59807
  0,
59728
59808
  0,
59729
59809
  [
59730
59810
  [
59731
- "(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-35])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",
59811
+ "(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",
59732
59812
  [
59733
59813
  9,
59734
59814
  10
@@ -59839,7 +59919,7 @@ and limitations under the License.
59839
59919
  GF: [
59840
59920
  "594",
59841
59921
  "00",
59842
- "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",
59922
+ "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",
59843
59923
  [
59844
59924
  9
59845
59925
  ],
@@ -59848,7 +59928,7 @@ and limitations under the License.
59848
59928
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
59849
59929
  "$1 $2 $3 $4",
59850
59930
  [
59851
- "[5-7]|9[47]"
59931
+ "[5-7]|80[6-9]|9[47]"
59852
59932
  ],
59853
59933
  "0$1"
59854
59934
  ],
@@ -59875,7 +59955,7 @@ and limitations under the License.
59875
59955
  0,
59876
59956
  "0",
59877
59957
  0,
59878
- "([25-9]\\d{5})$|0",
59958
+ "([25-9]\\d{5})$|0|180020",
59879
59959
  "1481$1",
59880
59960
  0,
59881
59961
  0,
@@ -59932,7 +60012,7 @@ and limitations under the License.
59932
60012
  GH: [
59933
60013
  "233",
59934
60014
  "00",
59935
- "(?:[235]\\d{3}|800)\\d{5}",
60015
+ "[235]\\d{8}|800\\d{5,6}",
59936
60016
  [
59937
60017
  8,
59938
60018
  9
@@ -59950,7 +60030,7 @@ and limitations under the License.
59950
60030
  "(\\d{2})(\\d{3})(\\d{4})",
59951
60031
  "$1 $2 $3",
59952
60032
  [
59953
- "[235]"
60033
+ "[2358]"
59954
60034
  ],
59955
60035
  "0$1"
59956
60036
  ]
@@ -60036,7 +60116,7 @@ and limitations under the License.
60036
60116
  GP: [
60037
60117
  "590",
60038
60118
  "00",
60039
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
60119
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
60040
60120
  [
60041
60121
  9
60042
60122
  ],
@@ -60045,7 +60125,7 @@ and limitations under the License.
60045
60125
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
60046
60126
  "$1 $2 $3 $4",
60047
60127
  [
60048
- "[5-79]"
60128
+ "[5-79]|80[6-9]"
60049
60129
  ],
60050
60130
  "0$1"
60051
60131
  ],
@@ -60066,15 +60146,17 @@ and limitations under the License.
60066
60146
  0,
60067
60147
  [
60068
60148
  [
60069
- "590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"
60149
+ "(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"
60070
60150
  ],
60071
60151
  [
60072
- "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"
60152
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
60073
60153
  ],
60074
60154
  [
60075
60155
  "80[0-5]\\d{6}"
60076
60156
  ],
60077
- 0,
60157
+ [
60158
+ "8[129]\\d{7}"
60159
+ ],
60078
60160
  0,
60079
60161
  0,
60080
60162
  0,
@@ -60372,7 +60454,7 @@ and limitations under the License.
60372
60454
  HT: [
60373
60455
  "509",
60374
60456
  "00",
60375
- "(?:[2-489]\\d|55)\\d{6}",
60457
+ "[2-589]\\d{7}",
60376
60458
  [
60377
60459
  8
60378
60460
  ],
@@ -60691,7 +60773,7 @@ and limitations under the License.
60691
60773
  0,
60692
60774
  "0",
60693
60775
  0,
60694
- "([25-8]\\d{5})$|0",
60776
+ "([25-8]\\d{5})$|0|180020",
60695
60777
  "1624$1",
60696
60778
  0,
60697
60779
  "74576|(?:16|7[56])24"
@@ -60754,9 +60836,9 @@ and limitations under the License.
60754
60836
  "(\\d{3})(\\d{3})(\\d{4})",
60755
60837
  "$1 $2 $3",
60756
60838
  [
60757
- "1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]",
60758
- "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
60759
- "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"
60839
+ "1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[14]",
60840
+ "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]",
60841
+ "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"
60760
60842
  ],
60761
60843
  "0$1",
60762
60844
  1
@@ -60765,9 +60847,9 @@ and limitations under the License.
60765
60847
  "(\\d{4})(\\d{3})(\\d{3})",
60766
60848
  "$1 $2 $3",
60767
60849
  [
60768
- "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807",
60769
- "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]",
60770
- "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
60850
+ "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|3[129]|5[29]|6[02-5]|70)|807",
60851
+ "1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]",
60852
+ "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"
60771
60853
  ],
60772
60854
  "0$1",
60773
60855
  1
@@ -60776,7 +60858,7 @@ and limitations under the License.
60776
60858
  "(\\d{5})(\\d{5})",
60777
60859
  "$1 $2",
60778
60860
  [
60779
- "[6-9]"
60861
+ "16|[6-9]"
60780
60862
  ],
60781
60863
  "0$1",
60782
60864
  1
@@ -60785,8 +60867,8 @@ and limitations under the License.
60785
60867
  "(\\d{4})(\\d{2,4})(\\d{4})",
60786
60868
  "$1 $2 $3",
60787
60869
  [
60788
- "1(?:6|8[06])",
60789
- "1(?:6|8[06]0)"
60870
+ "18[06]",
60871
+ "18[06]0"
60790
60872
  ],
60791
60873
  0,
60792
60874
  1
@@ -60940,7 +61022,7 @@ and limitations under the License.
60940
61022
  IT: [
60941
61023
  "39",
60942
61024
  "00",
60943
- "0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",
61025
+ "0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",
60944
61026
  [
60945
61027
  6,
60946
61028
  7,
@@ -61019,7 +61101,7 @@ and limitations under the License.
61019
61101
  "(\\d{3})(\\d{4})(\\d{4,5})",
61020
61102
  "$1 $2 $3",
61021
61103
  [
61022
- "3"
61104
+ "[03]"
61023
61105
  ]
61024
61106
  ]
61025
61107
  ],
@@ -61031,15 +61113,7 @@ and limitations under the License.
61031
61113
  0,
61032
61114
  [
61033
61115
  [
61034
- "0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}",
61035
- [
61036
- 6,
61037
- 7,
61038
- 8,
61039
- 9,
61040
- 10,
61041
- 11
61042
- ]
61116
+ "0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"
61043
61117
  ],
61044
61118
  [
61045
61119
  "3[2-9]\\d{7,8}|(?:31|43)\\d{8}",
@@ -61105,7 +61179,7 @@ and limitations under the License.
61105
61179
  0,
61106
61180
  "0",
61107
61181
  0,
61108
- "([0-24-8]\\d{5})$|0",
61182
+ "([0-24-8]\\d{5})$|0|180020",
61109
61183
  "1534$1",
61110
61184
  0,
61111
61185
  0,
@@ -61155,7 +61229,7 @@ and limitations under the License.
61155
61229
  JO: [
61156
61230
  "962",
61157
61231
  "00",
61158
- "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",
61232
+ "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",
61159
61233
  [
61160
61234
  8,
61161
61235
  9
@@ -61189,7 +61263,7 @@ and limitations under the License.
61189
61263
  "(\\d)(\\d{4})(\\d{4})",
61190
61264
  "$1 $2 $3",
61191
61265
  [
61192
- "7"
61266
+ "[47]"
61193
61267
  ],
61194
61268
  "0$1"
61195
61269
  ]
@@ -61199,7 +61273,7 @@ and limitations under the License.
61199
61273
  JP: [
61200
61274
  "81",
61201
61275
  "010",
61202
- "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
61276
+ "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
61203
61277
  [
61204
61278
  8,
61205
61279
  9,
@@ -61243,8 +61317,8 @@ and limitations under the License.
61243
61317
  "(\\d)(\\d{4})(\\d{4})",
61244
61318
  "$1-$2-$3",
61245
61319
  [
61246
- "[36]|4(?:2[09]|7[01])",
61247
- "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"
61320
+ "3|4(?:2[09]|7[01])|6[1-9]",
61321
+ "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"
61248
61322
  ],
61249
61323
  "0$1"
61250
61324
  ],
@@ -61278,14 +61352,14 @@ and limitations under the License.
61278
61352
  "(\\d{2})(\\d{4})(\\d{4})",
61279
61353
  "$1-$2-$3",
61280
61354
  [
61281
- "[257-9]"
61355
+ "[25-9]"
61282
61356
  ],
61283
61357
  "0$1"
61284
61358
  ]
61285
61359
  ],
61286
61360
  "0",
61287
61361
  0,
61288
- "(000[259]\\d{6})$|(?:(?:003768)0?)|0",
61362
+ "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0",
61289
61363
  "$1"
61290
61364
  ],
61291
61365
  KE: [
@@ -61588,7 +61662,7 @@ and limitations under the License.
61588
61662
  KZ: [
61589
61663
  "7",
61590
61664
  "810",
61591
- "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",
61665
+ "8\\d{13}|[78]\\d{9}",
61592
61666
  [
61593
61667
  10,
61594
61668
  14
@@ -61599,7 +61673,7 @@ and limitations under the License.
61599
61673
  0,
61600
61674
  0,
61601
61675
  0,
61602
- "33|7",
61676
+ "7",
61603
61677
  0,
61604
61678
  "8~10"
61605
61679
  ],
@@ -61653,7 +61727,7 @@ and limitations under the License.
61653
61727
  "(\\d)(\\d{3})(\\d{3})",
61654
61728
  "$1 $2 $3",
61655
61729
  [
61656
- "[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"
61730
+ "[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"
61657
61731
  ],
61658
61732
  "0$1"
61659
61733
  ],
@@ -61755,7 +61829,7 @@ and limitations under the License.
61755
61829
  LR: [
61756
61830
  "231",
61757
61831
  "00",
61758
- "(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",
61832
+ "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",
61759
61833
  [
61760
61834
  7,
61761
61835
  8,
@@ -61895,7 +61969,14 @@ and limitations under the License.
61895
61969
  "(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
61896
61970
  "$1 $2 $3 $4",
61897
61971
  [
61898
- "2(?:[0367]|4[3-8])"
61972
+ "20"
61973
+ ]
61974
+ ],
61975
+ [
61976
+ "(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
61977
+ "$1 $2 $3 $4",
61978
+ [
61979
+ "[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
61899
61980
  ]
61900
61981
  ],
61901
61982
  [
@@ -61923,14 +62004,7 @@ and limitations under the License.
61923
62004
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
61924
62005
  "$1 $2 $3 $4 $5",
61925
62006
  [
61926
- "2(?:[0367]|4[3-8])"
61927
- ]
61928
- ],
61929
- [
61930
- "(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
61931
- "$1 $2 $3 $4",
61932
- [
61933
- "[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
62007
+ "20"
61934
62008
  ]
61935
62009
  ]
61936
62010
  ],
@@ -61941,7 +62015,7 @@ and limitations under the License.
61941
62015
  LV: [
61942
62016
  "371",
61943
62017
  "00",
61944
- "(?:[268]\\d|90)\\d{6}",
62018
+ "(?:[268]\\d|78|90)\\d{6}",
61945
62019
  [
61946
62020
  8
61947
62021
  ],
@@ -61950,7 +62024,7 @@ and limitations under the License.
61950
62024
  "(\\d{2})(\\d{3})(\\d{3})",
61951
62025
  "$1 $2 $3",
61952
62026
  [
61953
- "[269]|8[01]"
62027
+ "[2679]|8[01]"
61954
62028
  ]
61955
62029
  ]
61956
62030
  ]
@@ -61982,19 +62056,11 @@ and limitations under the License.
61982
62056
  9
61983
62057
  ],
61984
62058
  [
61985
- [
61986
- "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
61987
- "$1 $2 $3 $4",
61988
- [
61989
- "5[45]"
61990
- ],
61991
- "0$1"
61992
- ],
61993
62059
  [
61994
62060
  "(\\d{4})(\\d{5})",
61995
62061
  "$1-$2",
61996
62062
  [
61997
- "5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"
62063
+ "892"
61998
62064
  ],
61999
62065
  "0$1"
62000
62066
  ],
@@ -62002,15 +62068,15 @@ and limitations under the License.
62002
62068
  "(\\d{2})(\\d{7})",
62003
62069
  "$1-$2",
62004
62070
  [
62005
- "8"
62071
+ "8(?:0[0-7]|9)"
62006
62072
  ],
62007
62073
  "0$1"
62008
62074
  ],
62009
62075
  [
62010
- "(\\d{3})(\\d{6})",
62011
- "$1-$2",
62076
+ "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
62077
+ "$1 $2 $3 $4 $5",
62012
62078
  [
62013
- "[5-7]"
62079
+ "[5-8]"
62014
62080
  ],
62015
62081
  "0$1"
62016
62082
  ]
@@ -62020,33 +62086,12 @@ and limitations under the License.
62020
62086
  0,
62021
62087
  0,
62022
62088
  0,
62023
- 0,
62024
- [
62025
- [
62026
- "5(?:2(?:[0-25-79]\\d|3[1-578]|4[02-46-8]|8[0235-7])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[014-9]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"
62027
- ],
62028
- [
62029
- "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-7]))\\d{6}"
62030
- ],
62031
- [
62032
- "80[0-7]\\d{6}"
62033
- ],
62034
- [
62035
- "89\\d{7}"
62036
- ],
62037
- 0,
62038
- 0,
62039
- 0,
62040
- 0,
62041
- [
62042
- "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"
62043
- ]
62044
- ]
62089
+ "[5-8]"
62045
62090
  ],
62046
62091
  MC: [
62047
62092
  "377",
62048
62093
  "00",
62049
- "(?:[3489]|6\\d)\\d{7}",
62094
+ "(?:[3489]|[67]\\d)\\d{7}",
62050
62095
  [
62051
62096
  8,
62052
62097
  9
@@ -62071,7 +62116,7 @@ and limitations under the License.
62071
62116
  "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
62072
62117
  "$1 $2 $3 $4 $5",
62073
62118
  [
62074
- "6"
62119
+ "[67]"
62075
62120
  ],
62076
62121
  "0$1"
62077
62122
  ]
@@ -62136,7 +62181,7 @@ and limitations under the License.
62136
62181
  MF: [
62137
62182
  "590",
62138
62183
  "00",
62139
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
62184
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
62140
62185
  [
62141
62186
  9
62142
62187
  ],
@@ -62149,15 +62194,17 @@ and limitations under the License.
62149
62194
  0,
62150
62195
  [
62151
62196
  [
62152
- "590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"
62197
+ "(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"
62153
62198
  ],
62154
62199
  [
62155
- "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5])|4(?:0[89]|1[2-6]|9\\d)|6(?:1[016-9]|5[0-4]|[67]\\d))|7090[0-4])\\d{4}"
62200
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
62156
62201
  ],
62157
62202
  [
62158
62203
  "80[0-5]\\d{6}"
62159
62204
  ],
62160
- 0,
62205
+ [
62206
+ "8[129]\\d{7}"
62207
+ ],
62161
62208
  0,
62162
62209
  0,
62163
62210
  0,
@@ -62361,7 +62408,7 @@ and limitations under the License.
62361
62408
  "(\\d{2})(\\d{2})(\\d{4})",
62362
62409
  "$1 $2 $3",
62363
62410
  [
62364
- "[12]1"
62411
+ "11|2[16]"
62365
62412
  ],
62366
62413
  "0$1"
62367
62414
  ],
@@ -62443,7 +62490,7 @@ and limitations under the License.
62443
62490
  MQ: [
62444
62491
  "596",
62445
62492
  "00",
62446
- "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",
62493
+ "7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
62447
62494
  [
62448
62495
  9
62449
62496
  ],
@@ -63542,8 +63589,8 @@ and limitations under the License.
63542
63589
  "(\\d{2})(\\d{2})(\\d{3})",
63543
63590
  "$1 $2 $3",
63544
63591
  [
63545
- "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1",
63546
- "(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"
63592
+ "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1",
63593
+ "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"
63547
63594
  ]
63548
63595
  ],
63549
63596
  [
@@ -63579,7 +63626,7 @@ and limitations under the License.
63579
63626
  PM: [
63580
63627
  "508",
63581
63628
  "00",
63582
- "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",
63629
+ "[78]\\d{8}|[2-9]\\d{5}",
63583
63630
  [
63584
63631
  6,
63585
63632
  9
@@ -63589,7 +63636,7 @@ and limitations under the License.
63589
63636
  "(\\d{2})(\\d{2})(\\d{2})",
63590
63637
  "$1 $2 $3",
63591
63638
  [
63592
- "[45]"
63639
+ "[2-9]"
63593
63640
  ],
63594
63641
  "0$1"
63595
63642
  ],
@@ -63706,7 +63753,7 @@ and limitations under the License.
63706
63753
  PY: [
63707
63754
  "595",
63708
63755
  "00",
63709
- "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",
63756
+ "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",
63710
63757
  [
63711
63758
  6,
63712
63759
  7,
@@ -63728,7 +63775,7 @@ and limitations under the License.
63728
63775
  "(\\d{2})(\\d{5})",
63729
63776
  "$1 $2",
63730
63777
  [
63731
- "[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"
63778
+ "3[289]|4[246-8]|61|7[1-3]|8[1-36]"
63732
63779
  ],
63733
63780
  "(0$1)"
63734
63781
  ],
@@ -63833,7 +63880,7 @@ and limitations under the License.
63833
63880
  0,
63834
63881
  [
63835
63882
  [
63836
- "26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"
63883
+ "2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"
63837
63884
  ],
63838
63885
  [
63839
63886
  "(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"
@@ -64005,7 +64052,7 @@ and limitations under the License.
64005
64052
  0,
64006
64053
  0,
64007
64054
  0,
64008
- "3[04-689]|[489]",
64055
+ "[3489]",
64009
64056
  0,
64010
64057
  "8~10"
64011
64058
  ],
@@ -64046,7 +64093,7 @@ and limitations under the License.
64046
64093
  SA: [
64047
64094
  "966",
64048
64095
  "00",
64049
- "92\\d{7}|(?:[15]|8\\d)\\d{8}",
64096
+ "(?:[15]\\d|800|92)\\d{7}",
64050
64097
  [
64051
64098
  9,
64052
64099
  10
@@ -64075,14 +64122,6 @@ and limitations under the License.
64075
64122
  ],
64076
64123
  "0$1"
64077
64124
  ],
64078
- [
64079
- "(\\d{3})(\\d{3})(\\d{3,4})",
64080
- "$1 $2 $3",
64081
- [
64082
- "81"
64083
- ],
64084
- "0$1"
64085
- ],
64086
64125
  [
64087
64126
  "(\\d{3})(\\d{3})(\\d{4})",
64088
64127
  "$1 $2 $3",
@@ -64445,7 +64484,7 @@ and limitations under the License.
64445
64484
  ],
64446
64485
  [
64447
64486
  "(\\d)(\\d{3})(\\d{3})(\\d{2})",
64448
- "$1/$2 $3 $4",
64487
+ "$1 $2 $3 $4",
64449
64488
  [
64450
64489
  "2"
64451
64490
  ],
@@ -64461,7 +64500,7 @@ and limitations under the License.
64461
64500
  ],
64462
64501
  [
64463
64502
  "(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
64464
- "$1/$2 $3 $4",
64503
+ "$1 $2 $3 $4",
64465
64504
  [
64466
64505
  "[3-5]"
64467
64506
  ],
@@ -64601,7 +64640,7 @@ and limitations under the License.
64601
64640
  SR: [
64602
64641
  "597",
64603
64642
  "00",
64604
- "(?:[2-5]|68|[78]\\d|90)\\d{5}",
64643
+ "(?:[2-5]|[6-9]\\d)\\d{5}",
64605
64644
  [
64606
64645
  6,
64607
64646
  7
@@ -64669,7 +64708,7 @@ and limitations under the License.
64669
64708
  SV: [
64670
64709
  "503",
64671
64710
  "00",
64672
- "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
64711
+ "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
64673
64712
  [
64674
64713
  7,
64675
64714
  8,
@@ -64687,7 +64726,7 @@ and limitations under the License.
64687
64726
  "(\\d{4})(\\d{4})",
64688
64727
  "$1 $2",
64689
64728
  [
64690
- "[267]"
64729
+ "[25-7]"
64691
64730
  ]
64692
64731
  ],
64693
64732
  [
@@ -64717,7 +64756,7 @@ and limitations under the License.
64717
64756
  SY: [
64718
64757
  "963",
64719
64758
  "00",
64720
- "[1-39]\\d{8}|[1-5]\\d{7}",
64759
+ "[1-359]\\d{8}|[1-5]\\d{7}",
64721
64760
  [
64722
64761
  8,
64723
64762
  9
@@ -64727,7 +64766,7 @@ and limitations under the License.
64727
64766
  "(\\d{2})(\\d{3})(\\d{3,4})",
64728
64767
  "$1 $2 $3",
64729
64768
  [
64730
- "[1-5]"
64769
+ "[1-4]|5[1-3]"
64731
64770
  ],
64732
64771
  "0$1",
64733
64772
  1
@@ -64736,7 +64775,7 @@ and limitations under the License.
64736
64775
  "(\\d{3})(\\d{3})(\\d{3})",
64737
64776
  "$1 $2 $3",
64738
64777
  [
64739
- "9"
64778
+ "[59]"
64740
64779
  ],
64741
64780
  "0$1",
64742
64781
  1
@@ -64802,7 +64841,7 @@ and limitations under the License.
64802
64841
  TD: [
64803
64842
  "235",
64804
64843
  "00|16",
64805
- "(?:22|[689]\\d|77)\\d{6}",
64844
+ "(?:22|[3689]\\d|77)\\d{6}",
64806
64845
  [
64807
64846
  8
64808
64847
  ],
@@ -64811,7 +64850,7 @@ and limitations under the License.
64811
64850
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
64812
64851
  "$1 $2 $3 $4",
64813
64852
  [
64814
- "[26-9]"
64853
+ "[236-9]"
64815
64854
  ]
64816
64855
  ]
64817
64856
  ],
@@ -64881,7 +64920,7 @@ and limitations under the License.
64881
64920
  TJ: [
64882
64921
  "992",
64883
64922
  "810",
64884
- "[0-57-9]\\d{8}",
64923
+ "(?:[0-57-9]\\d|66)\\d{7}",
64885
64924
  [
64886
64925
  9
64887
64926
  ],
@@ -64912,7 +64951,7 @@ and limitations under the License.
64912
64951
  "(\\d{2})(\\d{3})(\\d{4})",
64913
64952
  "$1 $2 $3",
64914
64953
  [
64915
- "[0-57-9]"
64954
+ "\\d"
64916
64955
  ]
64917
64956
  ]
64918
64957
  ],
@@ -65076,9 +65115,9 @@ and limitations under the License.
65076
65115
  "(\\d{3})(\\d{3})(\\d{2})(\\d{2})",
65077
65116
  "$1 $2 $3 $4",
65078
65117
  [
65079
- "5(?:[0-59]|61)",
65080
- "5(?:[0-59]|61[06])",
65081
- "5(?:[0-59]|61[06]1)"
65118
+ "5(?:[0-579]|61)",
65119
+ "5(?:[0-579]|61[06])",
65120
+ "5(?:[0-579]|61[06]1)"
65082
65121
  ],
65083
65122
  "0$1",
65084
65123
  1
@@ -65172,11 +65211,35 @@ and limitations under the License.
65172
65211
  ],
65173
65212
  "0$1"
65174
65213
  ],
65214
+ [
65215
+ "(\\d{3})(\\d{5})",
65216
+ "$1 $2",
65217
+ [
65218
+ "826"
65219
+ ],
65220
+ "0$1"
65221
+ ],
65222
+ [
65223
+ "(\\d{3})(\\d{2})(\\d{3})",
65224
+ "$1 $2 $3",
65225
+ [
65226
+ "83"
65227
+ ],
65228
+ "0$1"
65229
+ ],
65230
+ [
65231
+ "(\\d{2})(\\d{2})(\\d{4})",
65232
+ "$1 $2 $3",
65233
+ [
65234
+ "82"
65235
+ ],
65236
+ "0$1"
65237
+ ],
65175
65238
  [
65176
65239
  "(\\d{2})(\\d{3})(\\d{3,4})",
65177
65240
  "$1 $2 $3",
65178
65241
  [
65179
- "[258]0"
65242
+ "[25]0|37|49|8[09]"
65180
65243
  ],
65181
65244
  "0$1"
65182
65245
  ],
@@ -65184,8 +65247,8 @@ and limitations under the License.
65184
65247
  "(\\d)(\\d{3,4})(\\d{4})",
65185
65248
  "$1 $2 $3",
65186
65249
  [
65187
- "[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]",
65188
- "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"
65250
+ "[23568]|4(?:0[02-48]|[1-478])|7[1-9]",
65251
+ "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"
65189
65252
  ],
65190
65253
  "0$1"
65191
65254
  ],
@@ -65383,7 +65446,7 @@ and limitations under the License.
65383
65446
  0,
65384
65447
  [
65385
65448
  [
65386
- "(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[0-468]))\\d{4}|(?:2742|305[3-9]|472[247-9]|505[2-57-9]|983[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-47-9]|1[02-9]|2[0135-79]|3[0-24679]|4[167]|5[0-2]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"
65449
+ "(?:274[27]|(?:472|983)[2-47-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"
65387
65450
  ],
65388
65451
  [
65389
65452
  ""
@@ -65395,21 +65458,17 @@ and limitations under the License.
65395
65458
  "900[2-9]\\d{6}"
65396
65459
  ],
65397
65460
  [
65398
- "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"
65399
- ],
65400
- 0,
65401
- 0,
65402
- 0,
65403
- [
65404
- "305209\\d{4}"
65461
+ "52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"
65405
65462
  ]
65406
65463
  ]
65407
65464
  ],
65408
65465
  UY: [
65409
65466
  "598",
65410
65467
  "0(?:0|1[3-9]\\d)",
65411
- "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",
65468
+ "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",
65412
65469
  [
65470
+ 4,
65471
+ 5,
65413
65472
  6,
65414
65473
  7,
65415
65474
  8,
@@ -65420,6 +65479,13 @@ and limitations under the License.
65420
65479
  13
65421
65480
  ],
65422
65481
  [
65482
+ [
65483
+ "(\\d{4,5})",
65484
+ "$1",
65485
+ [
65486
+ "21"
65487
+ ]
65488
+ ],
65423
65489
  [
65424
65490
  "(\\d{3})(\\d{3,4})",
65425
65491
  "$1 $2",
@@ -65801,7 +65867,7 @@ and limitations under the License.
65801
65867
  YT: [
65802
65868
  "262",
65803
65869
  "00",
65804
- "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",
65870
+ "(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",
65805
65871
  [
65806
65872
  9
65807
65873
  ],
@@ -65814,7 +65880,7 @@ and limitations under the License.
65814
65880
  0,
65815
65881
  [
65816
65882
  [
65817
- "269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"
65883
+ "26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"
65818
65884
  ],
65819
65885
  [
65820
65886
  "(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"
@@ -66250,7 +66316,7 @@ and limitations under the License.
66250
66316
  "(\\d{2})(\\d{4})(\\d{4})",
66251
66317
  "$1 $2 $3",
66252
66318
  [
66253
- "10|23|3(?:[15]|4[57])|4|51"
66319
+ "10|23|3(?:[15]|4[57])|4|5[12]"
66254
66320
  ]
66255
66321
  ],
66256
66322
  [
@@ -66277,7 +66343,7 @@ and limitations under the License.
66277
66343
  [
66278
66344
  0,
66279
66345
  [
66280
- "342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",
66346
+ "342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",
66281
66347
  [
66282
66348
  7,
66283
66349
  8,
@@ -66451,142 +66517,133 @@ and limitations under the License.
66451
66517
  var TILDES = "~\u2053\u223C\uFF5E";
66452
66518
  var VALID_PUNCTUATION = "".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);
66453
66519
  var PLUS_CHARS = "+\uFF0B";
66454
- function _typeof(obj) {
66455
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
66456
- return typeof obj;
66457
- } : function(obj) {
66458
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
66459
- }, _typeof(obj);
66520
+ function _typeof(o) {
66521
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
66522
+ return typeof o;
66523
+ } : function(o) {
66524
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
66525
+ }, _typeof(o);
66460
66526
  }
66461
- function _defineProperties(target, props) {
66462
- for(var i = 0; i < props.length; i++){
66463
- var descriptor = props[i];
66464
- descriptor.enumerable = descriptor.enumerable || false;
66465
- descriptor.configurable = true;
66466
- if ("value" in descriptor) descriptor.writable = true;
66467
- Object.defineProperty(target, descriptor.key, descriptor);
66527
+ function _defineProperties(e, r) {
66528
+ for(var t = 0; t < r.length; t++){
66529
+ var o = r[t];
66530
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
66468
66531
  }
66469
66532
  }
66470
- function _createClass(Constructor, protoProps, staticProps) {
66471
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
66472
- if (staticProps) _defineProperties(Constructor, staticProps);
66473
- Object.defineProperty(Constructor, "prototype", {
66474
- writable: false
66475
- });
66476
- return Constructor;
66533
+ function _createClass(e, r, t) {
66534
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
66535
+ writable: !1
66536
+ }), e;
66477
66537
  }
66478
- function _classCallCheck(instance, Constructor) {
66479
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
66538
+ function _toPropertyKey(t) {
66539
+ var i = _toPrimitive(t, "string");
66540
+ return "symbol" == _typeof(i) ? i : i + "";
66480
66541
  }
66481
- function _inherits(subClass, superClass) {
66482
- if ("function" != typeof superClass && null !== superClass) throw new TypeError("Super expression must either be null or a function");
66483
- subClass.prototype = Object.create(superClass && superClass.prototype, {
66484
- constructor: {
66485
- value: subClass,
66486
- writable: true,
66487
- configurable: true
66488
- }
66489
- });
66490
- Object.defineProperty(subClass, "prototype", {
66491
- writable: false
66492
- });
66493
- if (superClass) ParseError_setPrototypeOf(subClass, superClass);
66542
+ function _toPrimitive(t, r) {
66543
+ if ("object" != _typeof(t) || !t) return t;
66544
+ var e = t[Symbol.toPrimitive];
66545
+ if (void 0 !== e) {
66546
+ var i = e.call(t, r || "default");
66547
+ if ("object" != _typeof(i)) return i;
66548
+ throw new TypeError("@@toPrimitive must return a primitive value.");
66549
+ }
66550
+ return ("string" === r ? String : Number)(t);
66494
66551
  }
66495
- function _createSuper(Derived) {
66496
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
66497
- return function() {
66498
- var Super = ParseError_getPrototypeOf(Derived), result;
66499
- if (hasNativeReflectConstruct) {
66500
- var NewTarget = ParseError_getPrototypeOf(this).constructor;
66501
- result = Reflect.construct(Super, arguments, NewTarget);
66502
- } else result = Super.apply(this, arguments);
66503
- return _possibleConstructorReturn(this, result);
66504
- };
66552
+ function _classCallCheck(a, n) {
66553
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
66554
+ }
66555
+ function _callSuper(t, o, e) {
66556
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, ParseError_isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
66505
66557
  }
66506
- function _possibleConstructorReturn(self, call) {
66507
- if (call && ("object" === _typeof(call) || "function" == typeof call)) return call;
66508
- if (void 0 !== call) throw new TypeError("Derived constructors may only return object or undefined");
66509
- return _assertThisInitialized(self);
66558
+ function _possibleConstructorReturn(t, e) {
66559
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
66560
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
66561
+ return _assertThisInitialized(t);
66510
66562
  }
66511
- function _assertThisInitialized(self) {
66512
- if (void 0 === self) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
66513
- return self;
66563
+ function _assertThisInitialized(e) {
66564
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
66565
+ return e;
66566
+ }
66567
+ function _inherits(t, e) {
66568
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
66569
+ t.prototype = Object.create(e && e.prototype, {
66570
+ constructor: {
66571
+ value: t,
66572
+ writable: !0,
66573
+ configurable: !0
66574
+ }
66575
+ }), Object.defineProperty(t, "prototype", {
66576
+ writable: !1
66577
+ }), e && _setPrototypeOf(t, e);
66514
66578
  }
66515
- function ParseError_wrapNativeSuper(Class) {
66516
- var _cache = "function" == typeof Map ? new Map() : void 0;
66517
- ParseError_wrapNativeSuper = function(Class) {
66518
- if (null === Class || !_isNativeFunction(Class)) return Class;
66519
- if ("function" != typeof Class) throw new TypeError("Super expression must either be null or a function");
66520
- if (void 0 !== _cache) {
66521
- if (_cache.has(Class)) return _cache.get(Class);
66522
- _cache.set(Class, Wrapper);
66579
+ function ParseError_wrapNativeSuper(t) {
66580
+ var r = "function" == typeof Map ? new Map() : void 0;
66581
+ return ParseError_wrapNativeSuper = function(t) {
66582
+ if (null === t || !_isNativeFunction(t)) return t;
66583
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
66584
+ if (void 0 !== r) {
66585
+ if (r.has(t)) return r.get(t);
66586
+ r.set(t, Wrapper);
66523
66587
  }
66524
66588
  function Wrapper() {
66525
- return ParseError_construct(Class, arguments, ParseError_getPrototypeOf(this).constructor);
66589
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
66526
66590
  }
66527
- Wrapper.prototype = Object.create(Class.prototype, {
66591
+ return Wrapper.prototype = Object.create(t.prototype, {
66528
66592
  constructor: {
66529
66593
  value: Wrapper,
66530
- enumerable: false,
66531
- writable: true,
66532
- configurable: true
66594
+ enumerable: !1,
66595
+ writable: !0,
66596
+ configurable: !0
66533
66597
  }
66534
- });
66535
- return ParseError_setPrototypeOf(Wrapper, Class);
66536
- };
66537
- return ParseError_wrapNativeSuper(Class);
66598
+ }), _setPrototypeOf(Wrapper, t);
66599
+ }, ParseError_wrapNativeSuper(t);
66538
66600
  }
66539
- function ParseError_construct(Parent, args, Class) {
66540
- ParseError_construct = _isNativeReflectConstruct() ? Reflect.construct : function(Parent, args, Class) {
66541
- var a = [
66542
- null
66543
- ];
66544
- a.push.apply(a, args);
66545
- var Constructor = Function.bind.apply(Parent, a);
66546
- var instance = new Constructor();
66547
- if (Class) ParseError_setPrototypeOf(instance, Class.prototype);
66548
- return instance;
66549
- };
66550
- return ParseError_construct.apply(null, arguments);
66601
+ function _construct(t, e, r) {
66602
+ if (ParseError_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
66603
+ var o = [
66604
+ null
66605
+ ];
66606
+ o.push.apply(o, e);
66607
+ var p = new (t.bind.apply(t, o))();
66608
+ return r && _setPrototypeOf(p, r.prototype), p;
66551
66609
  }
66552
- function _isNativeReflectConstruct() {
66553
- if ("undefined" == typeof Reflect || !Reflect.construct) return false;
66554
- if (Reflect.construct.sham) return false;
66555
- if ("function" == typeof Proxy) return true;
66610
+ function ParseError_isNativeReflectConstruct() {
66556
66611
  try {
66557
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
66558
- return true;
66559
- } catch (e) {
66560
- return false;
66561
- }
66612
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
66613
+ } catch (t) {}
66614
+ return (ParseError_isNativeReflectConstruct = function() {
66615
+ return !!t;
66616
+ })();
66562
66617
  }
66563
- function _isNativeFunction(fn) {
66564
- return -1 !== Function.toString.call(fn).indexOf("[native code]");
66618
+ function _isNativeFunction(t) {
66619
+ try {
66620
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
66621
+ } catch (n) {
66622
+ return "function" == typeof t;
66623
+ }
66565
66624
  }
66566
- function ParseError_setPrototypeOf(o, p) {
66567
- ParseError_setPrototypeOf = Object.setPrototypeOf || function(o, p) {
66568
- o.__proto__ = p;
66569
- return o;
66570
- };
66571
- return ParseError_setPrototypeOf(o, p);
66625
+ function _setPrototypeOf(t, e) {
66626
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
66627
+ return t.__proto__ = e, t;
66628
+ }, _setPrototypeOf(t, e);
66572
66629
  }
66573
- function ParseError_getPrototypeOf(o) {
66574
- ParseError_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function(o) {
66575
- return o.__proto__ || Object.getPrototypeOf(o);
66576
- };
66577
- return ParseError_getPrototypeOf(o);
66630
+ function _getPrototypeOf(t) {
66631
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
66632
+ return t.__proto__ || Object.getPrototypeOf(t);
66633
+ }, _getPrototypeOf(t);
66578
66634
  }
66579
66635
  var ParseError_ParseError = /*#__PURE__*/ function(_Error) {
66580
- _inherits(ParseError, _Error);
66581
- var _super = _createSuper(ParseError);
66582
66636
  function ParseError(code) {
66583
66637
  var _this;
66584
66638
  _classCallCheck(this, ParseError);
66585
- _this = _super.call(this, code);
66586
- Object.setPrototypeOf(_assertThisInitialized(_this), ParseError.prototype);
66639
+ _this = _callSuper(this, ParseError, [
66640
+ code
66641
+ ]);
66642
+ Object.setPrototypeOf(_this, ParseError.prototype);
66587
66643
  _this.name = _this.constructor.name;
66588
66644
  return _this;
66589
66645
  }
66646
+ _inherits(ParseError, _Error);
66590
66647
  return _createClass(ParseError);
66591
66648
  }(/*#__PURE__*/ ParseError_wrapNativeSuper(Error));
66592
66649
  function semver_compare(a, b) {
@@ -66609,32 +66666,40 @@ and limitations under the License.
66609
66666
  function isObject_isObject(object) {
66610
66667
  return null != object && object.constructor === objectConstructor;
66611
66668
  }
66612
- function metadata_typeof(obj) {
66613
- return metadata_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj) {
66614
- return typeof obj;
66615
- } : function(obj) {
66616
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
66617
- }, metadata_typeof(obj);
66669
+ function metadata_typeof(o) {
66670
+ return metadata_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
66671
+ return typeof o;
66672
+ } : function(o) {
66673
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
66674
+ }, metadata_typeof(o);
66618
66675
  }
66619
- function metadata_classCallCheck(instance, Constructor) {
66620
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
66676
+ function metadata_classCallCheck(a, n) {
66677
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
66621
66678
  }
66622
- function metadata_defineProperties(target, props) {
66623
- for(var i = 0; i < props.length; i++){
66624
- var descriptor = props[i];
66625
- descriptor.enumerable = descriptor.enumerable || false;
66626
- descriptor.configurable = true;
66627
- if ("value" in descriptor) descriptor.writable = true;
66628
- Object.defineProperty(target, descriptor.key, descriptor);
66679
+ function metadata_defineProperties(e, r) {
66680
+ for(var t = 0; t < r.length; t++){
66681
+ var o = r[t];
66682
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, metadata_toPropertyKey(o.key), o);
66629
66683
  }
66630
66684
  }
66631
- function metadata_createClass(Constructor, protoProps, staticProps) {
66632
- if (protoProps) metadata_defineProperties(Constructor.prototype, protoProps);
66633
- if (staticProps) metadata_defineProperties(Constructor, staticProps);
66634
- Object.defineProperty(Constructor, "prototype", {
66635
- writable: false
66636
- });
66637
- return Constructor;
66685
+ function metadata_createClass(e, r, t) {
66686
+ return r && metadata_defineProperties(e.prototype, r), t && metadata_defineProperties(e, t), Object.defineProperty(e, "prototype", {
66687
+ writable: !1
66688
+ }), e;
66689
+ }
66690
+ function metadata_toPropertyKey(t) {
66691
+ var i = metadata_toPrimitive(t, "string");
66692
+ return "symbol" == metadata_typeof(i) ? i : i + "";
66693
+ }
66694
+ function metadata_toPrimitive(t, r) {
66695
+ if ("object" != metadata_typeof(t) || !t) return t;
66696
+ var e = t[Symbol.toPrimitive];
66697
+ if (void 0 !== e) {
66698
+ var i = e.call(t, r || "default");
66699
+ if ("object" != metadata_typeof(i)) return i;
66700
+ throw new TypeError("@@toPrimitive must return a primitive value.");
66701
+ }
66702
+ return ("string" === r ? String : Number)(t);
66638
66703
  }
66639
66704
  var V3 = '1.2.0';
66640
66705
  var V4 = '1.7.35';
@@ -66647,7 +66712,7 @@ and limitations under the License.
66647
66712
  this.metadata = metadata;
66648
66713
  setVersion.call(this, metadata);
66649
66714
  }
66650
- metadata_createClass(Metadata, [
66715
+ return metadata_createClass(Metadata, [
66651
66716
  {
66652
66717
  key: "getCountries",
66653
66718
  value: function() {
@@ -66840,7 +66905,6 @@ and limitations under the License.
66840
66905
  }
66841
66906
  }
66842
66907
  ]);
66843
- return Metadata;
66844
66908
  }();
66845
66909
  var metadata_NumberingPlan = /*#__PURE__*/ function() {
66846
66910
  function NumberingPlan(metadata, globalMetadataObject) {
@@ -66849,7 +66913,7 @@ and limitations under the License.
66849
66913
  this.metadata = metadata;
66850
66914
  setVersion.call(this, globalMetadataObject.metadata);
66851
66915
  }
66852
- metadata_createClass(NumberingPlan, [
66916
+ return metadata_createClass(NumberingPlan, [
66853
66917
  {
66854
66918
  key: "callingCode",
66855
66919
  value: function() {
@@ -66987,7 +67051,6 @@ and limitations under the License.
66987
67051
  }
66988
67052
  }
66989
67053
  ]);
66990
- return NumberingPlan;
66991
67054
  }();
66992
67055
  var metadata_Format = /*#__PURE__*/ function() {
66993
67056
  function Format(format, metadata) {
@@ -66995,7 +67058,7 @@ and limitations under the License.
66995
67058
  this._format = format;
66996
67059
  this.metadata = metadata;
66997
67060
  }
66998
- metadata_createClass(Format, [
67061
+ return metadata_createClass(Format, [
66999
67062
  {
67000
67063
  key: "pattern",
67001
67064
  value: function() {
@@ -67045,7 +67108,6 @@ and limitations under the License.
67045
67108
  }
67046
67109
  }
67047
67110
  ]);
67048
- return Format;
67049
67111
  }();
67050
67112
  var FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/;
67051
67113
  var metadata_Type = /*#__PURE__*/ function() {
@@ -67054,7 +67116,7 @@ and limitations under the License.
67054
67116
  this.type = type;
67055
67117
  this.metadata = metadata;
67056
67118
  }
67057
- metadata_createClass(Type, [
67119
+ return metadata_createClass(Type, [
67058
67120
  {
67059
67121
  key: "pattern",
67060
67122
  value: function() {
@@ -67070,7 +67132,6 @@ and limitations under the License.
67070
67132
  }
67071
67133
  }
67072
67134
  ]);
67073
- return Type;
67074
67135
  }();
67075
67136
  function metadata_getType(types, type) {
67076
67137
  switch(type){
@@ -67105,7 +67166,7 @@ and limitations under the License.
67105
67166
  };
67106
67167
  function metadata_getCountryCallingCode(country, metadata) {
67107
67168
  metadata = new metadata_Metadata(metadata);
67108
- if (metadata.hasCountry(country)) return metadata.country(country).countryCallingCode();
67169
+ if (metadata.hasCountry(country)) return metadata.selectNumberingPlan(country).countryCallingCode();
67109
67170
  throw new Error("Unknown country: ".concat(country));
67110
67171
  }
67111
67172
  function setVersion(metadata) {
@@ -67172,36 +67233,34 @@ and limitations under the License.
67172
67233
  i++;
67173
67234
  }
67174
67235
  }
67175
- function _createForOfIteratorHelperLoose(o, allowArrayLike) {
67176
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67177
- if (it) return (it = it.call(o)).next.bind(it);
67178
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67179
- if (it) o = it;
67180
- var i = 0;
67236
+ function _createForOfIteratorHelperLoose(r, e) {
67237
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67238
+ if (t) return (t = t.call(r)).next.bind(t);
67239
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67240
+ t && (r = t);
67241
+ var o = 0;
67181
67242
  return function() {
67182
- if (i >= o.length) return {
67183
- done: true
67184
- };
67185
- return {
67186
- done: false,
67187
- value: o[i++]
67243
+ return o >= r.length ? {
67244
+ done: !0
67245
+ } : {
67246
+ done: !1,
67247
+ value: r[o++]
67188
67248
  };
67189
67249
  };
67190
67250
  }
67191
67251
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67192
67252
  }
67193
- function _unsupportedIterableToArray(o, minLen) {
67194
- if (!o) return;
67195
- if ("string" == typeof o) return _arrayLikeToArray(o, minLen);
67196
- var n = Object.prototype.toString.call(o).slice(8, -1);
67197
- if ("Object" === n && o.constructor) n = o.constructor.name;
67198
- if ("Map" === n || "Set" === n) return Array.from(o);
67199
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
67253
+ function _unsupportedIterableToArray(r, a) {
67254
+ if (r) {
67255
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
67256
+ var t = ({}).toString.call(r).slice(8, -1);
67257
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
67258
+ }
67200
67259
  }
67201
- function _arrayLikeToArray(arr, len) {
67202
- if (null == len || len > arr.length) len = arr.length;
67203
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
67204
- return arr2;
67260
+ function _arrayLikeToArray(r, a) {
67261
+ (null == a || a > r.length) && (a = r.length);
67262
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67263
+ return n;
67205
67264
  }
67206
67265
  var DIGITS = {
67207
67266
  0: '0',
@@ -67257,36 +67316,34 @@ and limitations under the License.
67257
67316
  }
67258
67317
  return result;
67259
67318
  }
67260
- function parseIncompletePhoneNumber_createForOfIteratorHelperLoose(o, allowArrayLike) {
67261
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67262
- if (it) return (it = it.call(o)).next.bind(it);
67263
- if (Array.isArray(o) || (it = parseIncompletePhoneNumber_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67264
- if (it) o = it;
67265
- var i = 0;
67319
+ function parseIncompletePhoneNumber_createForOfIteratorHelperLoose(r, e) {
67320
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67321
+ if (t) return (t = t.call(r)).next.bind(t);
67322
+ if (Array.isArray(r) || (t = parseIncompletePhoneNumber_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67323
+ t && (r = t);
67324
+ var o = 0;
67266
67325
  return function() {
67267
- if (i >= o.length) return {
67268
- done: true
67269
- };
67270
- return {
67271
- done: false,
67272
- value: o[i++]
67326
+ return o >= r.length ? {
67327
+ done: !0
67328
+ } : {
67329
+ done: !1,
67330
+ value: r[o++]
67273
67331
  };
67274
67332
  };
67275
67333
  }
67276
67334
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67277
67335
  }
67278
- function parseIncompletePhoneNumber_unsupportedIterableToArray(o, minLen) {
67279
- if (!o) return;
67280
- if ("string" == typeof o) return parseIncompletePhoneNumber_arrayLikeToArray(o, minLen);
67281
- var n = Object.prototype.toString.call(o).slice(8, -1);
67282
- if ("Object" === n && o.constructor) n = o.constructor.name;
67283
- if ("Map" === n || "Set" === n) return Array.from(o);
67284
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return parseIncompletePhoneNumber_arrayLikeToArray(o, minLen);
67336
+ function parseIncompletePhoneNumber_unsupportedIterableToArray(r, a) {
67337
+ if (r) {
67338
+ if ("string" == typeof r) return parseIncompletePhoneNumber_arrayLikeToArray(r, a);
67339
+ var t = ({}).toString.call(r).slice(8, -1);
67340
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? parseIncompletePhoneNumber_arrayLikeToArray(r, a) : void 0;
67341
+ }
67285
67342
  }
67286
- function parseIncompletePhoneNumber_arrayLikeToArray(arr, len) {
67287
- if (null == len || len > arr.length) len = arr.length;
67288
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
67289
- return arr2;
67343
+ function parseIncompletePhoneNumber_arrayLikeToArray(r, a) {
67344
+ (null == a || a > r.length) && (a = r.length);
67345
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67346
+ return n;
67290
67347
  }
67291
67348
  function parseIncompletePhoneNumber(string) {
67292
67349
  var result = '';
@@ -67296,46 +67353,44 @@ and limitations under the License.
67296
67353
  }
67297
67354
  return result;
67298
67355
  }
67299
- function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent) {
67356
+ function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {
67300
67357
  if ('+' === character) {
67301
67358
  if (prevParsedCharacters) {
67302
- if ('function' == typeof emitEvent) emitEvent('end');
67359
+ if ('function' == typeof eventListener) eventListener('end');
67303
67360
  return;
67304
67361
  }
67305
67362
  return '+';
67306
67363
  }
67307
67364
  return parseDigit(character);
67308
67365
  }
67309
- function mergeArrays_createForOfIteratorHelperLoose(o, allowArrayLike) {
67310
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67311
- if (it) return (it = it.call(o)).next.bind(it);
67312
- if (Array.isArray(o) || (it = mergeArrays_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67313
- if (it) o = it;
67314
- var i = 0;
67366
+ function mergeArrays_createForOfIteratorHelperLoose(r, e) {
67367
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67368
+ if (t) return (t = t.call(r)).next.bind(t);
67369
+ if (Array.isArray(r) || (t = mergeArrays_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67370
+ t && (r = t);
67371
+ var o = 0;
67315
67372
  return function() {
67316
- if (i >= o.length) return {
67317
- done: true
67318
- };
67319
- return {
67320
- done: false,
67321
- value: o[i++]
67373
+ return o >= r.length ? {
67374
+ done: !0
67375
+ } : {
67376
+ done: !1,
67377
+ value: r[o++]
67322
67378
  };
67323
67379
  };
67324
67380
  }
67325
67381
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67326
67382
  }
67327
- function mergeArrays_unsupportedIterableToArray(o, minLen) {
67328
- if (!o) return;
67329
- if ("string" == typeof o) return mergeArrays_arrayLikeToArray(o, minLen);
67330
- var n = Object.prototype.toString.call(o).slice(8, -1);
67331
- if ("Object" === n && o.constructor) n = o.constructor.name;
67332
- if ("Map" === n || "Set" === n) return Array.from(o);
67333
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return mergeArrays_arrayLikeToArray(o, minLen);
67383
+ function mergeArrays_unsupportedIterableToArray(r, a) {
67384
+ if (r) {
67385
+ if ("string" == typeof r) return mergeArrays_arrayLikeToArray(r, a);
67386
+ var t = ({}).toString.call(r).slice(8, -1);
67387
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? mergeArrays_arrayLikeToArray(r, a) : void 0;
67388
+ }
67334
67389
  }
67335
- function mergeArrays_arrayLikeToArray(arr, len) {
67336
- if (null == len || len > arr.length) len = arr.length;
67337
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
67338
- return arr2;
67390
+ function mergeArrays_arrayLikeToArray(r, a) {
67391
+ (null == a || a > r.length) && (a = r.length);
67392
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67393
+ return n;
67339
67394
  }
67340
67395
  function mergeArrays(a, b) {
67341
67396
  var merged = a.slice();
@@ -67347,15 +67402,19 @@ and limitations under the License.
67347
67402
  return a - b;
67348
67403
  });
67349
67404
  }
67350
- function checkNumberLength(nationalNumber, metadata) {
67351
- return checkNumberLengthForType(nationalNumber, void 0, metadata);
67405
+ function checkNumberLength(nationalNumber, country, metadata) {
67406
+ return checkNumberLengthForType(nationalNumber, country, void 0, metadata);
67352
67407
  }
67353
- function checkNumberLengthForType(nationalNumber, type, metadata) {
67408
+ function checkNumberLengthForType(nationalNumber, country, type, metadata) {
67409
+ if (country) {
67410
+ metadata = new metadata_Metadata(metadata.metadata);
67411
+ metadata.selectNumberingPlan(country);
67412
+ }
67354
67413
  var type_info = metadata.type(type);
67355
67414
  var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();
67356
67415
  if (!possible_lengths) return 'IS_POSSIBLE';
67357
67416
  if ('FIXED_LINE_OR_MOBILE' === type) {
67358
- if (!metadata.type('FIXED_LINE')) return checkNumberLengthForType(nationalNumber, 'MOBILE', metadata);
67417
+ if (!metadata.type('FIXED_LINE')) return checkNumberLengthForType(nationalNumber, country, 'MOBILE', metadata);
67359
67418
  var mobile_type = metadata.type('MOBILE');
67360
67419
  if (mobile_type) possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
67361
67420
  } else if (type && !type_info) return 'INVALID_LENGTH';
@@ -67376,58 +67435,56 @@ and limitations under the License.
67376
67435
  if (!input.phone) return false;
67377
67436
  if (input.country) {
67378
67437
  if (!metadata.hasCountry(input.country)) throw new Error("Unknown country: ".concat(input.country));
67379
- metadata.country(input.country);
67438
+ metadata.selectNumberingPlan(input.country);
67380
67439
  } else {
67381
67440
  if (!input.countryCallingCode) throw new Error('Invalid phone number object passed');
67382
67441
  metadata.selectNumberingPlan(input.countryCallingCode);
67383
67442
  }
67384
67443
  }
67385
- if (metadata.possibleLengths()) return isPossibleNumber(input.phone || input.nationalNumber, metadata);
67444
+ if (metadata.possibleLengths()) return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata);
67386
67445
  if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) return true;
67387
67446
  throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
67388
67447
  }
67389
- function isPossibleNumber(nationalNumber, metadata) {
67390
- switch(checkNumberLength(nationalNumber, metadata)){
67448
+ function isPossibleNumber(nationalNumber, country, metadata) {
67449
+ switch(checkNumberLength(nationalNumber, country, metadata)){
67391
67450
  case 'IS_POSSIBLE':
67392
67451
  return true;
67393
67452
  default:
67394
67453
  return false;
67395
67454
  }
67396
67455
  }
67397
- function matchesEntirely(text, regular_expression) {
67456
+ function matchesEntirely(text, regularExpressionText) {
67398
67457
  text = text || '';
67399
- return new RegExp('^(?:' + regular_expression + ')$').test(text);
67458
+ return new RegExp('^(?:' + regularExpressionText + ')$').test(text);
67400
67459
  }
67401
- function getNumberType_createForOfIteratorHelperLoose(o, allowArrayLike) {
67402
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67403
- if (it) return (it = it.call(o)).next.bind(it);
67404
- if (Array.isArray(o) || (it = getNumberType_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67405
- if (it) o = it;
67406
- var i = 0;
67460
+ function getNumberType_createForOfIteratorHelperLoose(r, e) {
67461
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67462
+ if (t) return (t = t.call(r)).next.bind(t);
67463
+ if (Array.isArray(r) || (t = getNumberType_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67464
+ t && (r = t);
67465
+ var o = 0;
67407
67466
  return function() {
67408
- if (i >= o.length) return {
67409
- done: true
67410
- };
67411
- return {
67412
- done: false,
67413
- value: o[i++]
67467
+ return o >= r.length ? {
67468
+ done: !0
67469
+ } : {
67470
+ done: !1,
67471
+ value: r[o++]
67414
67472
  };
67415
67473
  };
67416
67474
  }
67417
67475
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67418
67476
  }
67419
- function getNumberType_unsupportedIterableToArray(o, minLen) {
67420
- if (!o) return;
67421
- if ("string" == typeof o) return getNumberType_arrayLikeToArray(o, minLen);
67422
- var n = Object.prototype.toString.call(o).slice(8, -1);
67423
- if ("Object" === n && o.constructor) n = o.constructor.name;
67424
- if ("Map" === n || "Set" === n) return Array.from(o);
67425
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return getNumberType_arrayLikeToArray(o, minLen);
67477
+ function getNumberType_unsupportedIterableToArray(r, a) {
67478
+ if (r) {
67479
+ if ("string" == typeof r) return getNumberType_arrayLikeToArray(r, a);
67480
+ var t = ({}).toString.call(r).slice(8, -1);
67481
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? getNumberType_arrayLikeToArray(r, a) : void 0;
67482
+ }
67426
67483
  }
67427
- function getNumberType_arrayLikeToArray(arr, len) {
67428
- if (null == len || len > arr.length) len = arr.length;
67429
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
67430
- return arr2;
67484
+ function getNumberType_arrayLikeToArray(r, a) {
67485
+ (null == a || a > r.length) && (a = r.length);
67486
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67487
+ return n;
67431
67488
  }
67432
67489
  var NON_FIXED_LINE_PHONE_TYPES = [
67433
67490
  'MOBILE',
@@ -67459,10 +67516,10 @@ and limitations under the License.
67459
67516
  }
67460
67517
  }
67461
67518
  function isNumberTypeEqualTo(nationalNumber, type, metadata) {
67462
- type = metadata.type(type);
67463
- if (!type || !type.pattern()) return false;
67464
- if (type.possibleLengths() && type.possibleLengths().indexOf(nationalNumber.length) < 0) return false;
67465
- return matchesEntirely(nationalNumber, type.pattern());
67519
+ var typeDefinition = metadata.type(type);
67520
+ if (!typeDefinition || !typeDefinition.pattern()) return false;
67521
+ if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) return false;
67522
+ return matchesEntirely(nationalNumber, typeDefinition.pattern());
67466
67523
  }
67467
67524
  function isValidNumber(input, options, metadata) {
67468
67525
  options = options || {};
@@ -67534,14 +67591,75 @@ and limitations under the License.
67534
67591
  nationalNumber: number
67535
67592
  };
67536
67593
  }
67537
- function extractNationalNumber(number, metadata) {
67594
+ function getCountryByNationalNumber_createForOfIteratorHelperLoose(r, e) {
67595
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67596
+ if (t) return (t = t.call(r)).next.bind(t);
67597
+ if (Array.isArray(r) || (t = getCountryByNationalNumber_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67598
+ t && (r = t);
67599
+ var o = 0;
67600
+ return function() {
67601
+ return o >= r.length ? {
67602
+ done: !0
67603
+ } : {
67604
+ done: !1,
67605
+ value: r[o++]
67606
+ };
67607
+ };
67608
+ }
67609
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67610
+ }
67611
+ function getCountryByNationalNumber_unsupportedIterableToArray(r, a) {
67612
+ if (r) {
67613
+ if ("string" == typeof r) return getCountryByNationalNumber_arrayLikeToArray(r, a);
67614
+ var t = ({}).toString.call(r).slice(8, -1);
67615
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? getCountryByNationalNumber_arrayLikeToArray(r, a) : void 0;
67616
+ }
67617
+ }
67618
+ function getCountryByNationalNumber_arrayLikeToArray(r, a) {
67619
+ (null == a || a > r.length) && (a = r.length);
67620
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67621
+ return n;
67622
+ }
67623
+ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
67624
+ var countries = _ref.countries, metadata = _ref.metadata;
67625
+ metadata = new metadata_Metadata(metadata);
67626
+ for(var _iterator = getCountryByNationalNumber_createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;){
67627
+ var country = _step.value;
67628
+ metadata.selectNumberingPlan(country);
67629
+ if (metadata.leadingDigits()) {
67630
+ if (nationalPhoneNumber && 0 === nationalPhoneNumber.search(metadata.leadingDigits())) return country;
67631
+ } else if (getNumberType({
67632
+ phone: nationalPhoneNumber,
67633
+ country: country
67634
+ }, void 0, metadata.metadata)) return country;
67635
+ }
67636
+ }
67637
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67638
+ function getCountryByCallingCode(callingCode, _ref) {
67639
+ var nationalPhoneNumber = _ref.nationalNumber, metadata = _ref.metadata;
67640
+ if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
67641
+ if (metadata.isNonGeographicCallingCode(callingCode)) return '001';
67642
+ }
67643
+ var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);
67644
+ if (!possibleCountries) return;
67645
+ if (1 === possibleCountries.length) return possibleCountries[0];
67646
+ return getCountryByNationalNumber(nationalPhoneNumber, {
67647
+ countries: possibleCountries,
67648
+ metadata: metadata.metadata
67649
+ });
67650
+ }
67651
+ function extractNationalNumber(number, country, metadata) {
67538
67652
  var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata), carrierCode = _extractNationalNumbe.carrierCode, nationalNumber = _extractNationalNumbe.nationalNumber;
67539
67653
  if (nationalNumber !== number) {
67540
67654
  if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) return {
67541
67655
  nationalNumber: number
67542
67656
  };
67543
- if (metadata.possibleLengths()) {
67544
- if (!isPossibleIncompleteNationalNumber(nationalNumber, metadata)) return {
67657
+ if (metadata.numberingPlan.possibleLengths()) {
67658
+ if (!country) country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {
67659
+ nationalNumber: nationalNumber,
67660
+ metadata: metadata
67661
+ });
67662
+ if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) return {
67545
67663
  nationalNumber: number
67546
67664
  };
67547
67665
  }
@@ -67555,8 +67673,8 @@ and limitations under the License.
67555
67673
  if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) return false;
67556
67674
  return true;
67557
67675
  }
67558
- function isPossibleIncompleteNationalNumber(nationalNumber, metadata) {
67559
- switch(checkNumberLength(nationalNumber, metadata)){
67676
+ function isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {
67677
+ switch(checkNumberLength(nationalNumber, country, metadata)){
67560
67678
  case 'TOO_SHORT':
67561
67679
  case 'INVALID_LENGTH':
67562
67680
  return false;
@@ -67564,15 +67682,15 @@ and limitations under the License.
67564
67682
  return true;
67565
67683
  }
67566
67684
  }
67567
- function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata) {
67568
- var countryCallingCode = country ? metadata_getCountryCallingCode(country, metadata) : callingCode;
67685
+ function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {
67686
+ var countryCallingCode = country || defaultCountry ? metadata_getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;
67569
67687
  if (0 === number.indexOf(countryCallingCode)) {
67570
67688
  metadata = new metadata_Metadata(metadata);
67571
- metadata.selectNumberingPlan(country, callingCode);
67689
+ metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);
67572
67690
  var possibleShorterNumber = number.slice(countryCallingCode.length);
67573
- var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, metadata), possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;
67574
- var _extractNationalNumbe2 = extractNationalNumber(number, metadata), nationalNumber = _extractNationalNumbe2.nationalNumber;
67575
- if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || 'TOO_LONG' === checkNumberLength(nationalNumber, metadata)) return {
67691
+ var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata), possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;
67692
+ var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata), nationalNumber = _extractNationalNumbe2.nationalNumber;
67693
+ if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || 'TOO_LONG' === checkNumberLength(nationalNumber, country, metadata)) return {
67576
67694
  countryCallingCode: countryCallingCode,
67577
67695
  number: possibleShorterNumber
67578
67696
  };
@@ -67581,17 +67699,17 @@ and limitations under the License.
67581
67699
  number: number
67582
67700
  };
67583
67701
  }
67584
- function extractCountryCallingCode_extractCountryCallingCode(number, country, callingCode, metadata) {
67702
+ function extractCountryCallingCode_extractCountryCallingCode(number, country, defaultCountry, defaultCallingCode, metadata) {
67585
67703
  if (!number) return {};
67586
67704
  var isNumberWithIddPrefix;
67587
67705
  if ('+' !== number[0]) {
67588
- var numberWithoutIDD = stripIddPrefix(number, country, callingCode, metadata);
67706
+ var numberWithoutIDD = stripIddPrefix(number, country || defaultCountry, defaultCallingCode, metadata);
67589
67707
  if (numberWithoutIDD && numberWithoutIDD !== number) {
67590
67708
  isNumberWithIddPrefix = true;
67591
67709
  number = '+' + numberWithoutIDD;
67592
67710
  } else {
67593
- if (country || callingCode) {
67594
- var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, shorterNumber = _extractCountryCallin.number;
67711
+ if (country || defaultCountry || defaultCallingCode) {
67712
+ var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, shorterNumber = _extractCountryCallin.number;
67595
67713
  if (countryCallingCode) return {
67596
67714
  countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',
67597
67715
  countryCallingCode: countryCallingCode,
@@ -67644,79 +67762,17 @@ and limitations under the License.
67644
67762
  if ('+' !== number[0]) throw new Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
67645
67763
  return "tel:".concat(number).concat(ext ? ';ext=' + ext : '');
67646
67764
  }
67647
- function format_createForOfIteratorHelperLoose(o, allowArrayLike) {
67648
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67649
- if (it) return (it = it.call(o)).next.bind(it);
67650
- if (Array.isArray(o) || (it = format_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67651
- if (it) o = it;
67652
- var i = 0;
67653
- return function() {
67654
- if (i >= o.length) return {
67655
- done: true
67656
- };
67657
- return {
67658
- done: false,
67659
- value: o[i++]
67660
- };
67661
- };
67662
- }
67663
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67664
- }
67665
- function format_unsupportedIterableToArray(o, minLen) {
67666
- if (!o) return;
67667
- if ("string" == typeof o) return format_arrayLikeToArray(o, minLen);
67668
- var n = Object.prototype.toString.call(o).slice(8, -1);
67669
- if ("Object" === n && o.constructor) n = o.constructor.name;
67670
- if ("Map" === n || "Set" === n) return Array.from(o);
67671
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return format_arrayLikeToArray(o, minLen);
67672
- }
67673
- function format_arrayLikeToArray(arr, len) {
67674
- if (null == len || len > arr.length) len = arr.length;
67675
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
67676
- return arr2;
67677
- }
67678
- function ownKeys(object, enumerableOnly) {
67679
- var keys = Object.keys(object);
67680
- if (Object.getOwnPropertySymbols) {
67681
- var symbols = Object.getOwnPropertySymbols(object);
67682
- enumerableOnly && (symbols = symbols.filter(function(sym) {
67683
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
67684
- })), keys.push.apply(keys, symbols);
67685
- }
67686
- return keys;
67687
- }
67688
- function _objectSpread(target) {
67689
- for(var i = 1; i < arguments.length; i++){
67690
- var source = null != arguments[i] ? arguments[i] : {};
67691
- i % 2 ? ownKeys(Object(source), !0).forEach(function(key) {
67692
- _defineProperty(target, key, source[key]);
67693
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
67694
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67695
- });
67696
- }
67697
- return target;
67698
- }
67699
- function _defineProperty(obj, key, value) {
67700
- if (key in obj) Object.defineProperty(obj, key, {
67701
- value: value,
67702
- enumerable: true,
67703
- configurable: true,
67704
- writable: true
67705
- });
67706
- else obj[key] = value;
67707
- return obj;
67708
- }
67709
67765
  var DEFAULT_OPTIONS = {
67710
67766
  formatExtension: function(formattedNumber, extension, metadata) {
67711
67767
  return "".concat(formattedNumber).concat(metadata.ext()).concat(extension);
67712
67768
  }
67713
67769
  };
67714
67770
  function formatNumber(input, format, options, metadata) {
67715
- options = options ? _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options) : DEFAULT_OPTIONS;
67771
+ options = options ? merge({}, DEFAULT_OPTIONS, options) : DEFAULT_OPTIONS;
67716
67772
  metadata = new metadata_Metadata(metadata);
67717
67773
  if (input.country && '001' !== input.country) {
67718
67774
  if (!metadata.hasCountry(input.country)) throw new Error("Unknown country: ".concat(input.country));
67719
- metadata.country(input.country);
67775
+ metadata.selectNumberingPlan(input.country);
67720
67776
  } else {
67721
67777
  if (!input.countryCallingCode) return input.phone || '';
67722
67778
  metadata.selectNumberingPlan(input.countryCallingCode);
@@ -67744,6 +67800,7 @@ and limitations under the License.
67744
67800
  case 'IDD':
67745
67801
  if (!options.fromCountry) return;
67746
67802
  var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);
67803
+ if (!formattedNumber) return;
67747
67804
  return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);
67748
67805
  default:
67749
67806
  throw new Error("Unknown \"format\" argument passed to \"formatNumber()\": \"".concat(format, "\""));
@@ -67759,15 +67816,14 @@ and limitations under the License.
67759
67816
  metadata: metadata
67760
67817
  });
67761
67818
  }
67762
- function chooseFormatForNumber(availableFormats, nationalNnumber) {
67763
- for(var _iterator = format_createForOfIteratorHelperLoose(availableFormats), _step; !(_step = _iterator()).done;){
67764
- var format = _step.value;
67819
+ function chooseFormatForNumber(availableFormats, nationalNumber) {
67820
+ return pickFirstMatchingElement(availableFormats, function(format) {
67765
67821
  if (format.leadingDigitsPatterns().length > 0) {
67766
67822
  var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];
67767
- if (0 !== nationalNnumber.search(lastLeadingDigitsPattern)) continue;
67823
+ if (0 !== nationalNumber.search(lastLeadingDigitsPattern)) return false;
67768
67824
  }
67769
- if (matchesEntirely(nationalNnumber, format.pattern())) return format;
67770
- }
67825
+ return matchesEntirely(nationalNumber, format.pattern());
67826
+ });
67771
67827
  }
67772
67828
  function addExtension(formattedNumber, ext, metadata, formatExtension) {
67773
67829
  return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;
@@ -67782,74 +67838,101 @@ and limitations under the License.
67782
67838
  var iddPrefix = getIddPrefix(fromCountry, void 0, metadata.metadata);
67783
67839
  if (iddPrefix) return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));
67784
67840
  }
67785
- function PhoneNumber_ownKeys(object, enumerableOnly) {
67786
- var keys = Object.keys(object);
67841
+ function merge() {
67842
+ var i = 1;
67843
+ for(var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++)objects[_key] = arguments[_key];
67844
+ while(i < objects.length){
67845
+ if (objects[i]) for(var key in objects[i])objects[0][key] = objects[i][key];
67846
+ i++;
67847
+ }
67848
+ return objects[0];
67849
+ }
67850
+ function pickFirstMatchingElement(elements, testFunction) {
67851
+ var i = 0;
67852
+ while(i < elements.length){
67853
+ if (testFunction(elements[i])) return elements[i];
67854
+ i++;
67855
+ }
67856
+ }
67857
+ function PhoneNumber_typeof(o) {
67858
+ return PhoneNumber_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
67859
+ return typeof o;
67860
+ } : function(o) {
67861
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
67862
+ }, PhoneNumber_typeof(o);
67863
+ }
67864
+ function ownKeys(e, r) {
67865
+ var t = Object.keys(e);
67787
67866
  if (Object.getOwnPropertySymbols) {
67788
- var symbols = Object.getOwnPropertySymbols(object);
67789
- enumerableOnly && (symbols = symbols.filter(function(sym) {
67790
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
67791
- })), keys.push.apply(keys, symbols);
67867
+ var o = Object.getOwnPropertySymbols(e);
67868
+ r && (o = o.filter(function(r) {
67869
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
67870
+ })), t.push.apply(t, o);
67792
67871
  }
67793
- return keys;
67872
+ return t;
67794
67873
  }
67795
- function PhoneNumber_objectSpread(target) {
67796
- for(var i = 1; i < arguments.length; i++){
67797
- var source = null != arguments[i] ? arguments[i] : {};
67798
- i % 2 ? PhoneNumber_ownKeys(Object(source), !0).forEach(function(key) {
67799
- PhoneNumber_defineProperty(target, key, source[key]);
67800
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : PhoneNumber_ownKeys(Object(source)).forEach(function(key) {
67801
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
67874
+ function _objectSpread(e) {
67875
+ for(var r = 1; r < arguments.length; r++){
67876
+ var t = null != arguments[r] ? arguments[r] : {};
67877
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
67878
+ _defineProperty(e, r, t[r]);
67879
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
67880
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
67802
67881
  });
67803
67882
  }
67804
- return target;
67883
+ return e;
67805
67884
  }
67806
- function PhoneNumber_defineProperty(obj, key, value) {
67807
- if (key in obj) Object.defineProperty(obj, key, {
67808
- value: value,
67809
- enumerable: true,
67810
- configurable: true,
67811
- writable: true
67812
- });
67813
- else obj[key] = value;
67814
- return obj;
67885
+ function _defineProperty(e, r, t) {
67886
+ return (r = PhoneNumber_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
67887
+ value: t,
67888
+ enumerable: !0,
67889
+ configurable: !0,
67890
+ writable: !0
67891
+ }) : e[r] = t, e;
67815
67892
  }
67816
- function PhoneNumber_classCallCheck(instance, Constructor) {
67817
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
67893
+ function PhoneNumber_classCallCheck(a, n) {
67894
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
67818
67895
  }
67819
- function PhoneNumber_defineProperties(target, props) {
67820
- for(var i = 0; i < props.length; i++){
67821
- var descriptor = props[i];
67822
- descriptor.enumerable = descriptor.enumerable || false;
67823
- descriptor.configurable = true;
67824
- if ("value" in descriptor) descriptor.writable = true;
67825
- Object.defineProperty(target, descriptor.key, descriptor);
67896
+ function PhoneNumber_defineProperties(e, r) {
67897
+ for(var t = 0; t < r.length; t++){
67898
+ var o = r[t];
67899
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, PhoneNumber_toPropertyKey(o.key), o);
67826
67900
  }
67827
67901
  }
67828
- function PhoneNumber_createClass(Constructor, protoProps, staticProps) {
67829
- if (protoProps) PhoneNumber_defineProperties(Constructor.prototype, protoProps);
67830
- if (staticProps) PhoneNumber_defineProperties(Constructor, staticProps);
67831
- Object.defineProperty(Constructor, "prototype", {
67832
- writable: false
67833
- });
67834
- return Constructor;
67902
+ function PhoneNumber_createClass(e, r, t) {
67903
+ return r && PhoneNumber_defineProperties(e.prototype, r), t && PhoneNumber_defineProperties(e, t), Object.defineProperty(e, "prototype", {
67904
+ writable: !1
67905
+ }), e;
67835
67906
  }
67836
- var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67907
+ function PhoneNumber_toPropertyKey(t) {
67908
+ var i = PhoneNumber_toPrimitive(t, "string");
67909
+ return "symbol" == PhoneNumber_typeof(i) ? i : i + "";
67910
+ }
67911
+ function PhoneNumber_toPrimitive(t, r) {
67912
+ if ("object" != PhoneNumber_typeof(t) || !t) return t;
67913
+ var e = t[Symbol.toPrimitive];
67914
+ if (void 0 !== e) {
67915
+ var i = e.call(t, r || "default");
67916
+ if ("object" != PhoneNumber_typeof(i)) return i;
67917
+ throw new TypeError("@@toPrimitive must return a primitive value.");
67918
+ }
67919
+ return ("string" === r ? String : Number)(t);
67920
+ }
67921
+ var PhoneNumber_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67837
67922
  var PhoneNumber_PhoneNumber = /*#__PURE__*/ function() {
67838
67923
  function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {
67839
67924
  PhoneNumber_classCallCheck(this, PhoneNumber);
67840
67925
  if (!countryOrCountryCallingCode) throw new TypeError('First argument is required');
67841
67926
  if ('string' != typeof countryOrCountryCallingCode) throw new TypeError('First argument must be a string');
67842
- if ('string' == typeof countryOrCountryCallingCode) {
67843
- if ('+' === countryOrCountryCallingCode[0] && !nationalNumber) throw new TypeError('`metadata` argument not passed');
67844
- if (isObject_isObject(nationalNumber) && isObject_isObject(nationalNumber.countries)) {
67845
- metadata = nationalNumber;
67846
- var e164Number = countryOrCountryCallingCode;
67847
- if (!E164_NUMBER_REGEXP.test(e164Number)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
67848
- var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(e164Number, void 0, void 0, metadata), _countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
67849
- nationalNumber = number;
67850
- countryOrCountryCallingCode = _countryCallingCode;
67851
- if (!nationalNumber) throw new Error('Invalid `number` argument passed: too short');
67852
- }
67927
+ if ('+' === countryOrCountryCallingCode[0] && !nationalNumber) throw new TypeError('`metadata` argument not passed');
67928
+ if (isObject_isObject(nationalNumber) && isObject_isObject(nationalNumber.countries)) {
67929
+ metadata = nationalNumber;
67930
+ var e164Number = countryOrCountryCallingCode;
67931
+ if (!E164_NUMBER_REGEXP.test(e164Number)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
67932
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(e164Number, void 0, void 0, void 0, metadata), _countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
67933
+ nationalNumber = number;
67934
+ countryOrCountryCallingCode = _countryCallingCode;
67935
+ if (!nationalNumber) throw new Error('Invalid `number` argument passed: too short');
67853
67936
  }
67854
67937
  if (!nationalNumber) throw new TypeError('`nationalNumber` argument is required');
67855
67938
  if ('string' != typeof nationalNumber) throw new TypeError('`nationalNumber` argument must be a string');
@@ -67863,7 +67946,7 @@ and limitations under the License.
67863
67946
  return metadata;
67864
67947
  };
67865
67948
  }
67866
- PhoneNumber_createClass(PhoneNumber, [
67949
+ return PhoneNumber_createClass(PhoneNumber, [
67867
67950
  {
67868
67951
  key: "setExt",
67869
67952
  value: function(ext) {
@@ -67919,7 +68002,7 @@ and limitations under the License.
67919
68002
  {
67920
68003
  key: "format",
67921
68004
  value: function(_format, options) {
67922
- return formatNumber(this, _format, options ? PhoneNumber_objectSpread(PhoneNumber_objectSpread({}, options), {}, {
68005
+ return formatNumber(this, _format, options ? _objectSpread(_objectSpread({}, options), {}, {
67923
68006
  v2: true
67924
68007
  }) : {
67925
68008
  v2: true
@@ -67945,7 +68028,6 @@ and limitations under the License.
67945
68028
  }
67946
68029
  }
67947
68030
  ]);
67948
- return PhoneNumber;
67949
68031
  }();
67950
68032
  var PhoneNumber_isCountryCode = function(value) {
67951
68033
  return /^[A-Z]{2}$/.test(value);
@@ -67960,7 +68042,7 @@ and limitations under the License.
67960
68042
  countryCallingCode = metadata.countryCallingCode();
67961
68043
  } else {
67962
68044
  countryCallingCode = countryOrCountryCallingCode;
67963
- if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
68045
+ if (PhoneNumber_USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
67964
68046
  if (metadata.isNonGeographicCallingCode(countryCallingCode)) country = '001';
67965
68047
  }
67966
68048
  }
@@ -67970,66 +68052,6 @@ and limitations under the License.
67970
68052
  };
67971
68053
  }
67972
68054
  var E164_NUMBER_REGEXP = /^\+\d+$/;
67973
- function getCountryByNationalNumber_createForOfIteratorHelperLoose(o, allowArrayLike) {
67974
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
67975
- if (it) return (it = it.call(o)).next.bind(it);
67976
- if (Array.isArray(o) || (it = getCountryByNationalNumber_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
67977
- if (it) o = it;
67978
- var i = 0;
67979
- return function() {
67980
- if (i >= o.length) return {
67981
- done: true
67982
- };
67983
- return {
67984
- done: false,
67985
- value: o[i++]
67986
- };
67987
- };
67988
- }
67989
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67990
- }
67991
- function getCountryByNationalNumber_unsupportedIterableToArray(o, minLen) {
67992
- if (!o) return;
67993
- if ("string" == typeof o) return getCountryByNationalNumber_arrayLikeToArray(o, minLen);
67994
- var n = Object.prototype.toString.call(o).slice(8, -1);
67995
- if ("Object" === n && o.constructor) n = o.constructor.name;
67996
- if ("Map" === n || "Set" === n) return Array.from(o);
67997
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return getCountryByNationalNumber_arrayLikeToArray(o, minLen);
67998
- }
67999
- function getCountryByNationalNumber_arrayLikeToArray(arr, len) {
68000
- if (null == len || len > arr.length) len = arr.length;
68001
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
68002
- return arr2;
68003
- }
68004
- function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
68005
- var countries = _ref.countries, metadata = (_ref.defaultCountry, _ref.metadata);
68006
- metadata = new metadata_Metadata(metadata);
68007
- for(var _iterator = getCountryByNationalNumber_createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;){
68008
- var country = _step.value;
68009
- metadata.country(country);
68010
- if (metadata.leadingDigits()) {
68011
- if (nationalPhoneNumber && 0 === nationalPhoneNumber.search(metadata.leadingDigits())) return country;
68012
- } else if (getNumberType({
68013
- phone: nationalPhoneNumber,
68014
- country: country
68015
- }, void 0, metadata.metadata)) return country;
68016
- }
68017
- }
68018
- var getCountryByCallingCode_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
68019
- function getCountryByCallingCode(callingCode, _ref) {
68020
- var nationalPhoneNumber = _ref.nationalNumber, defaultCountry = _ref.defaultCountry, metadata = _ref.metadata;
68021
- if (getCountryByCallingCode_USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
68022
- if (metadata.isNonGeographicCallingCode(callingCode)) return '001';
68023
- }
68024
- var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);
68025
- if (!possibleCountries) return;
68026
- if (1 === possibleCountries.length) return possibleCountries[0];
68027
- return getCountryByNationalNumber(nationalPhoneNumber, {
68028
- countries: possibleCountries,
68029
- defaultCountry: defaultCountry,
68030
- metadata: metadata.metadata
68031
- });
68032
- }
68033
68055
  var PLUS_SIGN = '+';
68034
68056
  var RFC3966_VISUAL_SEPARATOR_ = '[\\-\\.\\(\\)]?';
68035
68057
  var RFC3966_PHONE_DIGIT_ = "([" + VALID_DIGITS + "]|" + RFC3966_VISUAL_SEPARATOR_ + ')';
@@ -68124,7 +68146,7 @@ and limitations under the License.
68124
68146
  countryCallingCode: countryCallingCode,
68125
68147
  carrierCode: carrierCode,
68126
68148
  valid: valid,
68127
- possible: !!valid || !!(true === options.extended && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata)) || false,
68149
+ possible: !!valid || !!(true === options.extended && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata)) || false,
68128
68150
  phone: nationalNumber,
68129
68151
  ext: ext
68130
68152
  };
@@ -68168,7 +68190,7 @@ and limitations under the License.
68168
68190
  return result;
68169
68191
  }
68170
68192
  function parsePhoneNumber(formattedPhoneNumber, defaultCountry, defaultCallingCode, metadata) {
68171
- var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), defaultCountry, defaultCallingCode, metadata.metadata), countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource, countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
68193
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), void 0, defaultCountry, defaultCallingCode, metadata.metadata), countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource, countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
68172
68194
  var country;
68173
68195
  if (countryCallingCode) metadata.selectNumberingPlan(countryCallingCode);
68174
68196
  else {
@@ -68184,15 +68206,14 @@ and limitations under the License.
68184
68206
  countryCallingCodeSource: countryCallingCodeSource,
68185
68207
  countryCallingCode: countryCallingCode
68186
68208
  };
68187
- var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), metadata), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
68209
+ var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
68188
68210
  var exactCountry = getCountryByCallingCode(countryCallingCode, {
68189
68211
  nationalNumber: nationalNumber,
68190
- defaultCountry: defaultCountry,
68191
68212
  metadata: metadata
68192
68213
  });
68193
68214
  if (exactCountry) {
68194
68215
  country = exactCountry;
68195
- '001' === exactCountry || metadata.country(country);
68216
+ '001' === exactCountry || metadata.selectNumberingPlan(country);
68196
68217
  }
68197
68218
  return {
68198
68219
  country: country,
@@ -68202,118 +68223,152 @@ and limitations under the License.
68202
68223
  carrierCode: carrierCode
68203
68224
  };
68204
68225
  }
68205
- function parsePhoneNumberWithError_ownKeys(object, enumerableOnly) {
68206
- var keys = Object.keys(object);
68226
+ function parsePhoneNumberWithError_typeof(o) {
68227
+ return parsePhoneNumberWithError_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68228
+ return typeof o;
68229
+ } : function(o) {
68230
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68231
+ }, parsePhoneNumberWithError_typeof(o);
68232
+ }
68233
+ function parsePhoneNumberWithError_ownKeys(e, r) {
68234
+ var t = Object.keys(e);
68207
68235
  if (Object.getOwnPropertySymbols) {
68208
- var symbols = Object.getOwnPropertySymbols(object);
68209
- enumerableOnly && (symbols = symbols.filter(function(sym) {
68210
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
68211
- })), keys.push.apply(keys, symbols);
68236
+ var o = Object.getOwnPropertySymbols(e);
68237
+ r && (o = o.filter(function(r) {
68238
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
68239
+ })), t.push.apply(t, o);
68212
68240
  }
68213
- return keys;
68241
+ return t;
68214
68242
  }
68215
- function parsePhoneNumberWithError_objectSpread(target) {
68216
- for(var i = 1; i < arguments.length; i++){
68217
- var source = null != arguments[i] ? arguments[i] : {};
68218
- i % 2 ? parsePhoneNumberWithError_ownKeys(Object(source), !0).forEach(function(key) {
68219
- parsePhoneNumberWithError_defineProperty(target, key, source[key]);
68220
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : parsePhoneNumberWithError_ownKeys(Object(source)).forEach(function(key) {
68221
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
68243
+ function parsePhoneNumberWithError_objectSpread(e) {
68244
+ for(var r = 1; r < arguments.length; r++){
68245
+ var t = null != arguments[r] ? arguments[r] : {};
68246
+ r % 2 ? parsePhoneNumberWithError_ownKeys(Object(t), !0).forEach(function(r) {
68247
+ parsePhoneNumberWithError_defineProperty(e, r, t[r]);
68248
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : parsePhoneNumberWithError_ownKeys(Object(t)).forEach(function(r) {
68249
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
68222
68250
  });
68223
68251
  }
68224
- return target;
68252
+ return e;
68225
68253
  }
68226
- function parsePhoneNumberWithError_defineProperty(obj, key, value) {
68227
- if (key in obj) Object.defineProperty(obj, key, {
68228
- value: value,
68229
- enumerable: true,
68230
- configurable: true,
68231
- writable: true
68232
- });
68233
- else obj[key] = value;
68234
- return obj;
68254
+ function parsePhoneNumberWithError_defineProperty(e, r, t) {
68255
+ return (r = parsePhoneNumberWithError_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
68256
+ value: t,
68257
+ enumerable: !0,
68258
+ configurable: !0,
68259
+ writable: !0
68260
+ }) : e[r] = t, e;
68261
+ }
68262
+ function parsePhoneNumberWithError_toPropertyKey(t) {
68263
+ var i = parsePhoneNumberWithError_toPrimitive(t, "string");
68264
+ return "symbol" == parsePhoneNumberWithError_typeof(i) ? i : i + "";
68265
+ }
68266
+ function parsePhoneNumberWithError_toPrimitive(t, r) {
68267
+ if ("object" != parsePhoneNumberWithError_typeof(t) || !t) return t;
68268
+ var e = t[Symbol.toPrimitive];
68269
+ if (void 0 !== e) {
68270
+ var i = e.call(t, r || "default");
68271
+ if ("object" != parsePhoneNumberWithError_typeof(i)) return i;
68272
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68273
+ }
68274
+ return ("string" === r ? String : Number)(t);
68235
68275
  }
68236
68276
  function parsePhoneNumberWithError(text, options, metadata) {
68237
68277
  return parse_parse(text, parsePhoneNumberWithError_objectSpread(parsePhoneNumberWithError_objectSpread({}, options), {}, {
68238
68278
  v2: true
68239
68279
  }), metadata);
68240
68280
  }
68241
- function normalizeArguments_ownKeys(object, enumerableOnly) {
68242
- var keys = Object.keys(object);
68281
+ function normalizeArguments_typeof(o) {
68282
+ return normalizeArguments_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68283
+ return typeof o;
68284
+ } : function(o) {
68285
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68286
+ }, normalizeArguments_typeof(o);
68287
+ }
68288
+ function normalizeArguments_ownKeys(e, r) {
68289
+ var t = Object.keys(e);
68243
68290
  if (Object.getOwnPropertySymbols) {
68244
- var symbols = Object.getOwnPropertySymbols(object);
68245
- enumerableOnly && (symbols = symbols.filter(function(sym) {
68246
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
68247
- })), keys.push.apply(keys, symbols);
68291
+ var o = Object.getOwnPropertySymbols(e);
68292
+ r && (o = o.filter(function(r) {
68293
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
68294
+ })), t.push.apply(t, o);
68248
68295
  }
68249
- return keys;
68296
+ return t;
68250
68297
  }
68251
- function normalizeArguments_objectSpread(target) {
68252
- for(var i = 1; i < arguments.length; i++){
68253
- var source = null != arguments[i] ? arguments[i] : {};
68254
- i % 2 ? normalizeArguments_ownKeys(Object(source), !0).forEach(function(key) {
68255
- normalizeArguments_defineProperty(target, key, source[key]);
68256
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : normalizeArguments_ownKeys(Object(source)).forEach(function(key) {
68257
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
68298
+ function normalizeArguments_objectSpread(e) {
68299
+ for(var r = 1; r < arguments.length; r++){
68300
+ var t = null != arguments[r] ? arguments[r] : {};
68301
+ r % 2 ? normalizeArguments_ownKeys(Object(t), !0).forEach(function(r) {
68302
+ normalizeArguments_defineProperty(e, r, t[r]);
68303
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : normalizeArguments_ownKeys(Object(t)).forEach(function(r) {
68304
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
68258
68305
  });
68259
68306
  }
68260
- return target;
68307
+ return e;
68261
68308
  }
68262
- function normalizeArguments_defineProperty(obj, key, value) {
68263
- if (key in obj) Object.defineProperty(obj, key, {
68264
- value: value,
68265
- enumerable: true,
68266
- configurable: true,
68267
- writable: true
68268
- });
68269
- else obj[key] = value;
68270
- return obj;
68309
+ function normalizeArguments_defineProperty(e, r, t) {
68310
+ return (r = normalizeArguments_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
68311
+ value: t,
68312
+ enumerable: !0,
68313
+ configurable: !0,
68314
+ writable: !0
68315
+ }) : e[r] = t, e;
68271
68316
  }
68272
- function normalizeArguments_slicedToArray(arr, i) {
68273
- return normalizeArguments_arrayWithHoles(arr) || normalizeArguments_iterableToArrayLimit(arr, i) || normalizeArguments_unsupportedIterableToArray(arr, i) || normalizeArguments_nonIterableRest();
68317
+ function normalizeArguments_toPropertyKey(t) {
68318
+ var i = normalizeArguments_toPrimitive(t, "string");
68319
+ return "symbol" == normalizeArguments_typeof(i) ? i : i + "";
68320
+ }
68321
+ function normalizeArguments_toPrimitive(t, r) {
68322
+ if ("object" != normalizeArguments_typeof(t) || !t) return t;
68323
+ var e = t[Symbol.toPrimitive];
68324
+ if (void 0 !== e) {
68325
+ var i = e.call(t, r || "default");
68326
+ if ("object" != normalizeArguments_typeof(i)) return i;
68327
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68328
+ }
68329
+ return ("string" === r ? String : Number)(t);
68330
+ }
68331
+ function normalizeArguments_slicedToArray(r, e) {
68332
+ return normalizeArguments_arrayWithHoles(r) || normalizeArguments_iterableToArrayLimit(r, e) || normalizeArguments_unsupportedIterableToArray(r, e) || normalizeArguments_nonIterableRest();
68274
68333
  }
68275
68334
  function normalizeArguments_nonIterableRest() {
68276
68335
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68277
68336
  }
68278
- function normalizeArguments_unsupportedIterableToArray(o, minLen) {
68279
- if (!o) return;
68280
- if ("string" == typeof o) return normalizeArguments_arrayLikeToArray(o, minLen);
68281
- var n = Object.prototype.toString.call(o).slice(8, -1);
68282
- if ("Object" === n && o.constructor) n = o.constructor.name;
68283
- if ("Map" === n || "Set" === n) return Array.from(o);
68284
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return normalizeArguments_arrayLikeToArray(o, minLen);
68337
+ function normalizeArguments_unsupportedIterableToArray(r, a) {
68338
+ if (r) {
68339
+ if ("string" == typeof r) return normalizeArguments_arrayLikeToArray(r, a);
68340
+ var t = ({}).toString.call(r).slice(8, -1);
68341
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? normalizeArguments_arrayLikeToArray(r, a) : void 0;
68342
+ }
68285
68343
  }
68286
- function normalizeArguments_arrayLikeToArray(arr, len) {
68287
- if (null == len || len > arr.length) len = arr.length;
68288
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
68289
- return arr2;
68344
+ function normalizeArguments_arrayLikeToArray(r, a) {
68345
+ (null == a || a > r.length) && (a = r.length);
68346
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68347
+ return n;
68290
68348
  }
68291
- function normalizeArguments_iterableToArrayLimit(arr, i) {
68292
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
68293
- if (null == _i) return;
68294
- var _arr = [];
68295
- var _n = true;
68296
- var _d = false;
68297
- var _s, _e;
68298
- try {
68299
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
68300
- _arr.push(_s.value);
68301
- if (i && _arr.length === i) break;
68302
- }
68303
- } catch (err) {
68304
- _d = true;
68305
- _e = err;
68306
- } finally{
68349
+ function normalizeArguments_iterableToArrayLimit(r, l) {
68350
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68351
+ if (null != t) {
68352
+ var e, n, i, u, a = [], f = !0, o = !1;
68307
68353
  try {
68308
- if (!_n && null != _i["return"]) _i["return"]();
68354
+ if (i = (t = t.call(r)).next, 0 === l) {
68355
+ if (Object(t) !== t) return;
68356
+ f = !1;
68357
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
68358
+ } catch (r) {
68359
+ o = !0, n = r;
68309
68360
  } finally{
68310
- if (_d) throw _e;
68361
+ try {
68362
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
68363
+ } finally{
68364
+ if (o) throw n;
68365
+ }
68311
68366
  }
68367
+ return a;
68312
68368
  }
68313
- return _arr;
68314
68369
  }
68315
- function normalizeArguments_arrayWithHoles(arr) {
68316
- if (Array.isArray(arr)) return arr;
68370
+ function normalizeArguments_arrayWithHoles(r) {
68371
+ if (Array.isArray(r)) return r;
68317
68372
  }
68318
68373
  function normalizeArguments(args) {
68319
68374
  var _Array$prototype$slic = Array.prototype.slice.call(args), _Array$prototype$slic2 = normalizeArguments_slicedToArray(_Array$prototype$slic, 4), arg_1 = _Array$prototype$slic2[0], arg_2 = _Array$prototype$slic2[1], arg_3 = _Array$prototype$slic2[2], arg_4 = _Array$prototype$slic2[3];
@@ -68354,25 +68409,40 @@ and limitations under the License.
68354
68409
  function exports_parsePhoneNumberWithError_parsePhoneNumberWithError() {
68355
68410
  return withMetadataArgument(parsePhoneNumberWithError_parsePhoneNumberWithError, arguments);
68356
68411
  }
68357
- function AsYouTypeState_classCallCheck(instance, Constructor) {
68358
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68412
+ function AsYouTypeState_typeof(o) {
68413
+ return AsYouTypeState_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68414
+ return typeof o;
68415
+ } : function(o) {
68416
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68417
+ }, AsYouTypeState_typeof(o);
68359
68418
  }
68360
- function AsYouTypeState_defineProperties(target, props) {
68361
- for(var i = 0; i < props.length; i++){
68362
- var descriptor = props[i];
68363
- descriptor.enumerable = descriptor.enumerable || false;
68364
- descriptor.configurable = true;
68365
- if ("value" in descriptor) descriptor.writable = true;
68366
- Object.defineProperty(target, descriptor.key, descriptor);
68419
+ function AsYouTypeState_classCallCheck(a, n) {
68420
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68421
+ }
68422
+ function AsYouTypeState_defineProperties(e, r) {
68423
+ for(var t = 0; t < r.length; t++){
68424
+ var o = r[t];
68425
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeState_toPropertyKey(o.key), o);
68367
68426
  }
68368
68427
  }
68369
- function AsYouTypeState_createClass(Constructor, protoProps, staticProps) {
68370
- if (protoProps) AsYouTypeState_defineProperties(Constructor.prototype, protoProps);
68371
- if (staticProps) AsYouTypeState_defineProperties(Constructor, staticProps);
68372
- Object.defineProperty(Constructor, "prototype", {
68373
- writable: false
68374
- });
68375
- return Constructor;
68428
+ function AsYouTypeState_createClass(e, r, t) {
68429
+ return r && AsYouTypeState_defineProperties(e.prototype, r), t && AsYouTypeState_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68430
+ writable: !1
68431
+ }), e;
68432
+ }
68433
+ function AsYouTypeState_toPropertyKey(t) {
68434
+ var i = AsYouTypeState_toPrimitive(t, "string");
68435
+ return "symbol" == AsYouTypeState_typeof(i) ? i : i + "";
68436
+ }
68437
+ function AsYouTypeState_toPrimitive(t, r) {
68438
+ if ("object" != AsYouTypeState_typeof(t) || !t) return t;
68439
+ var e = t[Symbol.toPrimitive];
68440
+ if (void 0 !== e) {
68441
+ var i = e.call(t, r || "default");
68442
+ if ("object" != AsYouTypeState_typeof(i)) return i;
68443
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68444
+ }
68445
+ return ("string" === r ? String : Number)(t);
68376
68446
  }
68377
68447
  var AsYouTypeState_AsYouTypeState = /*#__PURE__*/ function() {
68378
68448
  function AsYouTypeState(_ref) {
@@ -68381,7 +68451,7 @@ and limitations under the License.
68381
68451
  this.onCountryChange = onCountryChange;
68382
68452
  this.onCallingCodeChange = onCallingCodeChange;
68383
68453
  }
68384
- AsYouTypeState_createClass(AsYouTypeState, [
68454
+ return AsYouTypeState_createClass(AsYouTypeState, [
68385
68455
  {
68386
68456
  key: "reset",
68387
68457
  value: function(_ref2) {
@@ -68399,10 +68469,10 @@ and limitations under the License.
68399
68469
  key: "resetNationalSignificantNumber",
68400
68470
  value: function() {
68401
68471
  this.nationalSignificantNumber = this.getNationalDigits();
68402
- this.nationalSignificantNumberMatchesInput = true;
68472
+ this.nationalSignificantNumberIsModified = false;
68403
68473
  this.nationalPrefix = void 0;
68404
68474
  this.carrierCode = void 0;
68405
- this.complexPrefixBeforeNationalSignificantNumber = void 0;
68475
+ this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
68406
68476
  }
68407
68477
  },
68408
68478
  {
@@ -68471,38 +68541,35 @@ and limitations under the License.
68471
68541
  }
68472
68542
  }
68473
68543
  ]);
68474
- return AsYouTypeState;
68475
68544
  }();
68476
- function AsYouTypeFormatter_util_createForOfIteratorHelperLoose(o, allowArrayLike) {
68477
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
68478
- if (it) return (it = it.call(o)).next.bind(it);
68479
- if (Array.isArray(o) || (it = AsYouTypeFormatter_util_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
68480
- if (it) o = it;
68481
- var i = 0;
68545
+ function AsYouTypeFormatter_util_createForOfIteratorHelperLoose(r, e) {
68546
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68547
+ if (t) return (t = t.call(r)).next.bind(t);
68548
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_util_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
68549
+ t && (r = t);
68550
+ var o = 0;
68482
68551
  return function() {
68483
- if (i >= o.length) return {
68484
- done: true
68485
- };
68486
- return {
68487
- done: false,
68488
- value: o[i++]
68552
+ return o >= r.length ? {
68553
+ done: !0
68554
+ } : {
68555
+ done: !1,
68556
+ value: r[o++]
68489
68557
  };
68490
68558
  };
68491
68559
  }
68492
68560
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68493
68561
  }
68494
- function AsYouTypeFormatter_util_unsupportedIterableToArray(o, minLen) {
68495
- if (!o) return;
68496
- if ("string" == typeof o) return AsYouTypeFormatter_util_arrayLikeToArray(o, minLen);
68497
- var n = Object.prototype.toString.call(o).slice(8, -1);
68498
- if ("Object" === n && o.constructor) n = o.constructor.name;
68499
- if ("Map" === n || "Set" === n) return Array.from(o);
68500
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return AsYouTypeFormatter_util_arrayLikeToArray(o, minLen);
68562
+ function AsYouTypeFormatter_util_unsupportedIterableToArray(r, a) {
68563
+ if (r) {
68564
+ if ("string" == typeof r) return AsYouTypeFormatter_util_arrayLikeToArray(r, a);
68565
+ var t = ({}).toString.call(r).slice(8, -1);
68566
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AsYouTypeFormatter_util_arrayLikeToArray(r, a) : void 0;
68567
+ }
68501
68568
  }
68502
- function AsYouTypeFormatter_util_arrayLikeToArray(arr, len) {
68503
- if (null == len || len > arr.length) len = arr.length;
68504
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
68505
- return arr2;
68569
+ function AsYouTypeFormatter_util_arrayLikeToArray(r, a) {
68570
+ (null == a || a > r.length) && (a = r.length);
68571
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68572
+ return n;
68506
68573
  }
68507
68574
  var DIGIT_PLACEHOLDER = 'x';
68508
68575
  var DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER);
@@ -68559,8 +68626,8 @@ and limitations under the License.
68559
68626
  getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix
68560
68627
  });
68561
68628
  }
68562
- function canFormatCompleteNumber(nationalSignificantNumber, metadata) {
68563
- return 'IS_POSSIBLE' === checkNumberLength(nationalSignificantNumber, metadata);
68629
+ function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {
68630
+ return 'IS_POSSIBLE' === checkNumberLength(nationalSignificantNumber, country, metadata);
68564
68631
  }
68565
68632
  function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {
68566
68633
  var metadata = _ref2.metadata, shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule, getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;
@@ -68589,38 +68656,53 @@ and limitations under the License.
68589
68656
  });
68590
68657
  if (!useNationalPrefixFormattingRule) {
68591
68658
  if (state.nationalPrefix) formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;
68592
- else if (state.complexPrefixBeforeNationalSignificantNumber) formattedNationalNumber = state.complexPrefixBeforeNationalSignificantNumber + ' ' + formattedNationalNumber;
68659
+ else if (state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) formattedNationalNumber = state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + ' ' + formattedNationalNumber;
68593
68660
  }
68594
68661
  if (isValidFormattedNationalNumber(formattedNationalNumber, state)) return formattedNationalNumber;
68595
68662
  }
68596
68663
  function isValidFormattedNationalNumber(formattedNationalNumber, state) {
68597
68664
  return parseDigits(formattedNationalNumber) === state.getNationalDigits();
68598
68665
  }
68599
- function AsYouTypeFormatter_PatternParser_classCallCheck(instance, Constructor) {
68600
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68666
+ function AsYouTypeFormatter_PatternParser_typeof(o) {
68667
+ return AsYouTypeFormatter_PatternParser_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68668
+ return typeof o;
68669
+ } : function(o) {
68670
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68671
+ }, AsYouTypeFormatter_PatternParser_typeof(o);
68672
+ }
68673
+ function AsYouTypeFormatter_PatternParser_classCallCheck(a, n) {
68674
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68601
68675
  }
68602
- function AsYouTypeFormatter_PatternParser_defineProperties(target, props) {
68603
- for(var i = 0; i < props.length; i++){
68604
- var descriptor = props[i];
68605
- descriptor.enumerable = descriptor.enumerable || false;
68606
- descriptor.configurable = true;
68607
- if ("value" in descriptor) descriptor.writable = true;
68608
- Object.defineProperty(target, descriptor.key, descriptor);
68676
+ function AsYouTypeFormatter_PatternParser_defineProperties(e, r) {
68677
+ for(var t = 0; t < r.length; t++){
68678
+ var o = r[t];
68679
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_PatternParser_toPropertyKey(o.key), o);
68609
68680
  }
68610
68681
  }
68611
- function AsYouTypeFormatter_PatternParser_createClass(Constructor, protoProps, staticProps) {
68612
- if (protoProps) AsYouTypeFormatter_PatternParser_defineProperties(Constructor.prototype, protoProps);
68613
- if (staticProps) AsYouTypeFormatter_PatternParser_defineProperties(Constructor, staticProps);
68614
- Object.defineProperty(Constructor, "prototype", {
68615
- writable: false
68616
- });
68617
- return Constructor;
68682
+ function AsYouTypeFormatter_PatternParser_createClass(e, r, t) {
68683
+ return r && AsYouTypeFormatter_PatternParser_defineProperties(e.prototype, r), t && AsYouTypeFormatter_PatternParser_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68684
+ writable: !1
68685
+ }), e;
68686
+ }
68687
+ function AsYouTypeFormatter_PatternParser_toPropertyKey(t) {
68688
+ var i = AsYouTypeFormatter_PatternParser_toPrimitive(t, "string");
68689
+ return "symbol" == AsYouTypeFormatter_PatternParser_typeof(i) ? i : i + "";
68690
+ }
68691
+ function AsYouTypeFormatter_PatternParser_toPrimitive(t, r) {
68692
+ if ("object" != AsYouTypeFormatter_PatternParser_typeof(t) || !t) return t;
68693
+ var e = t[Symbol.toPrimitive];
68694
+ if (void 0 !== e) {
68695
+ var i = e.call(t, r || "default");
68696
+ if ("object" != AsYouTypeFormatter_PatternParser_typeof(i)) return i;
68697
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68698
+ }
68699
+ return ("string" === r ? String : Number)(t);
68618
68700
  }
68619
68701
  var AsYouTypeFormatter_PatternParser_PatternParser = /*#__PURE__*/ function() {
68620
68702
  function PatternParser() {
68621
68703
  AsYouTypeFormatter_PatternParser_classCallCheck(this, PatternParser);
68622
68704
  }
68623
- AsYouTypeFormatter_PatternParser_createClass(PatternParser, [
68705
+ return AsYouTypeFormatter_PatternParser_createClass(PatternParser, [
68624
68706
  {
68625
68707
  key: "parse",
68626
68708
  value: function(pattern) {
@@ -68727,7 +68809,6 @@ and limitations under the License.
68727
68809
  }
68728
68810
  }
68729
68811
  ]);
68730
- return PatternParser;
68731
68812
  }();
68732
68813
  function parseOneOfSet(pattern) {
68733
68814
  var values = [];
@@ -68753,63 +68834,76 @@ and limitations under the License.
68753
68834
  if (1 === array.length) return array[0];
68754
68835
  return array;
68755
68836
  }
68756
- function AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose(o, allowArrayLike) {
68757
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
68758
- if (it) return (it = it.call(o)).next.bind(it);
68759
- if (Array.isArray(o) || (it = AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
68760
- if (it) o = it;
68761
- var i = 0;
68837
+ function AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose(r, e) {
68838
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68839
+ if (t) return (t = t.call(r)).next.bind(t);
68840
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
68841
+ t && (r = t);
68842
+ var o = 0;
68762
68843
  return function() {
68763
- if (i >= o.length) return {
68764
- done: true
68765
- };
68766
- return {
68767
- done: false,
68768
- value: o[i++]
68844
+ return o >= r.length ? {
68845
+ done: !0
68846
+ } : {
68847
+ done: !1,
68848
+ value: r[o++]
68769
68849
  };
68770
68850
  };
68771
68851
  }
68772
68852
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68773
68853
  }
68774
- function AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(o, minLen) {
68775
- if (!o) return;
68776
- if ("string" == typeof o) return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(o, minLen);
68777
- var n = Object.prototype.toString.call(o).slice(8, -1);
68778
- if ("Object" === n && o.constructor) n = o.constructor.name;
68779
- if ("Map" === n || "Set" === n) return Array.from(o);
68780
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(o, minLen);
68854
+ function AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(r, a) {
68855
+ if (r) {
68856
+ if ("string" == typeof r) return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(r, a);
68857
+ var t = ({}).toString.call(r).slice(8, -1);
68858
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(r, a) : void 0;
68859
+ }
68781
68860
  }
68782
- function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(arr, len) {
68783
- if (null == len || len > arr.length) len = arr.length;
68784
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
68785
- return arr2;
68861
+ function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(r, a) {
68862
+ (null == a || a > r.length) && (a = r.length);
68863
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68864
+ return n;
68786
68865
  }
68787
- function AsYouTypeFormatter_PatternMatcher_classCallCheck(instance, Constructor) {
68788
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68866
+ function AsYouTypeFormatter_PatternMatcher_typeof(o) {
68867
+ return AsYouTypeFormatter_PatternMatcher_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68868
+ return typeof o;
68869
+ } : function(o) {
68870
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68871
+ }, AsYouTypeFormatter_PatternMatcher_typeof(o);
68789
68872
  }
68790
- function AsYouTypeFormatter_PatternMatcher_defineProperties(target, props) {
68791
- for(var i = 0; i < props.length; i++){
68792
- var descriptor = props[i];
68793
- descriptor.enumerable = descriptor.enumerable || false;
68794
- descriptor.configurable = true;
68795
- if ("value" in descriptor) descriptor.writable = true;
68796
- Object.defineProperty(target, descriptor.key, descriptor);
68873
+ function AsYouTypeFormatter_PatternMatcher_classCallCheck(a, n) {
68874
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68875
+ }
68876
+ function AsYouTypeFormatter_PatternMatcher_defineProperties(e, r) {
68877
+ for(var t = 0; t < r.length; t++){
68878
+ var o = r[t];
68879
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_PatternMatcher_toPropertyKey(o.key), o);
68797
68880
  }
68798
68881
  }
68799
- function AsYouTypeFormatter_PatternMatcher_createClass(Constructor, protoProps, staticProps) {
68800
- if (protoProps) AsYouTypeFormatter_PatternMatcher_defineProperties(Constructor.prototype, protoProps);
68801
- if (staticProps) AsYouTypeFormatter_PatternMatcher_defineProperties(Constructor, staticProps);
68802
- Object.defineProperty(Constructor, "prototype", {
68803
- writable: false
68804
- });
68805
- return Constructor;
68882
+ function AsYouTypeFormatter_PatternMatcher_createClass(e, r, t) {
68883
+ return r && AsYouTypeFormatter_PatternMatcher_defineProperties(e.prototype, r), t && AsYouTypeFormatter_PatternMatcher_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68884
+ writable: !1
68885
+ }), e;
68886
+ }
68887
+ function AsYouTypeFormatter_PatternMatcher_toPropertyKey(t) {
68888
+ var i = AsYouTypeFormatter_PatternMatcher_toPrimitive(t, "string");
68889
+ return "symbol" == AsYouTypeFormatter_PatternMatcher_typeof(i) ? i : i + "";
68890
+ }
68891
+ function AsYouTypeFormatter_PatternMatcher_toPrimitive(t, r) {
68892
+ if ("object" != AsYouTypeFormatter_PatternMatcher_typeof(t) || !t) return t;
68893
+ var e = t[Symbol.toPrimitive];
68894
+ if (void 0 !== e) {
68895
+ var i = e.call(t, r || "default");
68896
+ if ("object" != AsYouTypeFormatter_PatternMatcher_typeof(i)) return i;
68897
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68898
+ }
68899
+ return ("string" === r ? String : Number)(t);
68806
68900
  }
68807
68901
  var AsYouTypeFormatter_PatternMatcher_PatternMatcher = /*#__PURE__*/ function() {
68808
68902
  function PatternMatcher(pattern) {
68809
68903
  AsYouTypeFormatter_PatternMatcher_classCallCheck(this, PatternMatcher);
68810
68904
  this.matchTree = new AsYouTypeFormatter_PatternParser_PatternParser().parse(pattern);
68811
68905
  }
68812
- AsYouTypeFormatter_PatternMatcher_createClass(PatternMatcher, [
68906
+ return AsYouTypeFormatter_PatternMatcher_createClass(PatternMatcher, [
68813
68907
  {
68814
68908
  key: "match",
68815
68909
  value: function(string) {
@@ -68824,7 +68918,6 @@ and limitations under the License.
68824
68918
  }
68825
68919
  }
68826
68920
  ]);
68827
- return PatternMatcher;
68828
68921
  }();
68829
68922
  function _match(characters, tree, last) {
68830
68923
  if ('string' == typeof tree) {
@@ -68930,56 +69023,69 @@ and limitations under the License.
68930
69023
  throw new Error("Unsupported instruction tree: ".concat(tree));
68931
69024
  }
68932
69025
  }
68933
- function AsYouTypeFormatter_createForOfIteratorHelperLoose(o, allowArrayLike) {
68934
- var it = "undefined" != typeof Symbol && o[Symbol.iterator] || o["@@iterator"];
68935
- if (it) return (it = it.call(o)).next.bind(it);
68936
- if (Array.isArray(o) || (it = AsYouTypeFormatter_unsupportedIterableToArray(o)) || allowArrayLike && o && "number" == typeof o.length) {
68937
- if (it) o = it;
68938
- var i = 0;
69026
+ function AsYouTypeFormatter_typeof(o) {
69027
+ return AsYouTypeFormatter_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69028
+ return typeof o;
69029
+ } : function(o) {
69030
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69031
+ }, AsYouTypeFormatter_typeof(o);
69032
+ }
69033
+ function AsYouTypeFormatter_createForOfIteratorHelperLoose(r, e) {
69034
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69035
+ if (t) return (t = t.call(r)).next.bind(t);
69036
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
69037
+ t && (r = t);
69038
+ var o = 0;
68939
69039
  return function() {
68940
- if (i >= o.length) return {
68941
- done: true
68942
- };
68943
- return {
68944
- done: false,
68945
- value: o[i++]
69040
+ return o >= r.length ? {
69041
+ done: !0
69042
+ } : {
69043
+ done: !1,
69044
+ value: r[o++]
68946
69045
  };
68947
69046
  };
68948
69047
  }
68949
69048
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
68950
69049
  }
68951
- function AsYouTypeFormatter_unsupportedIterableToArray(o, minLen) {
68952
- if (!o) return;
68953
- if ("string" == typeof o) return AsYouTypeFormatter_arrayLikeToArray(o, minLen);
68954
- var n = Object.prototype.toString.call(o).slice(8, -1);
68955
- if ("Object" === n && o.constructor) n = o.constructor.name;
68956
- if ("Map" === n || "Set" === n) return Array.from(o);
68957
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return AsYouTypeFormatter_arrayLikeToArray(o, minLen);
69050
+ function AsYouTypeFormatter_unsupportedIterableToArray(r, a) {
69051
+ if (r) {
69052
+ if ("string" == typeof r) return AsYouTypeFormatter_arrayLikeToArray(r, a);
69053
+ var t = ({}).toString.call(r).slice(8, -1);
69054
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AsYouTypeFormatter_arrayLikeToArray(r, a) : void 0;
69055
+ }
68958
69056
  }
68959
- function AsYouTypeFormatter_arrayLikeToArray(arr, len) {
68960
- if (null == len || len > arr.length) len = arr.length;
68961
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
68962
- return arr2;
69057
+ function AsYouTypeFormatter_arrayLikeToArray(r, a) {
69058
+ (null == a || a > r.length) && (a = r.length);
69059
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69060
+ return n;
68963
69061
  }
68964
- function AsYouTypeFormatter_classCallCheck(instance, Constructor) {
68965
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69062
+ function AsYouTypeFormatter_classCallCheck(a, n) {
69063
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68966
69064
  }
68967
- function AsYouTypeFormatter_defineProperties(target, props) {
68968
- for(var i = 0; i < props.length; i++){
68969
- var descriptor = props[i];
68970
- descriptor.enumerable = descriptor.enumerable || false;
68971
- descriptor.configurable = true;
68972
- if ("value" in descriptor) descriptor.writable = true;
68973
- Object.defineProperty(target, descriptor.key, descriptor);
69065
+ function AsYouTypeFormatter_defineProperties(e, r) {
69066
+ for(var t = 0; t < r.length; t++){
69067
+ var o = r[t];
69068
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_toPropertyKey(o.key), o);
68974
69069
  }
68975
69070
  }
68976
- function AsYouTypeFormatter_createClass(Constructor, protoProps, staticProps) {
68977
- if (protoProps) AsYouTypeFormatter_defineProperties(Constructor.prototype, protoProps);
68978
- if (staticProps) AsYouTypeFormatter_defineProperties(Constructor, staticProps);
68979
- Object.defineProperty(Constructor, "prototype", {
68980
- writable: false
68981
- });
68982
- return Constructor;
69071
+ function AsYouTypeFormatter_createClass(e, r, t) {
69072
+ return r && AsYouTypeFormatter_defineProperties(e.prototype, r), t && AsYouTypeFormatter_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69073
+ writable: !1
69074
+ }), e;
69075
+ }
69076
+ function AsYouTypeFormatter_toPropertyKey(t) {
69077
+ var i = AsYouTypeFormatter_toPrimitive(t, "string");
69078
+ return "symbol" == AsYouTypeFormatter_typeof(i) ? i : i + "";
69079
+ }
69080
+ function AsYouTypeFormatter_toPrimitive(t, r) {
69081
+ if ("object" != AsYouTypeFormatter_typeof(t) || !t) return t;
69082
+ var e = t[Symbol.toPrimitive];
69083
+ if (void 0 !== e) {
69084
+ var i = e.call(t, r || "default");
69085
+ if ("object" != AsYouTypeFormatter_typeof(i)) return i;
69086
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69087
+ }
69088
+ return ("string" === r ? String : Number)(t);
68983
69089
  }
68984
69090
  var DUMMY_DIGIT = '9';
68985
69091
  var LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15;
@@ -69002,7 +69108,7 @@ and limitations under the License.
69002
69108
  this.metadata = metadata;
69003
69109
  this.resetFormat();
69004
69110
  }
69005
- AsYouTypeFormatter_createClass(AsYouTypeFormatter, [
69111
+ return AsYouTypeFormatter_createClass(AsYouTypeFormatter, [
69006
69112
  {
69007
69113
  key: "resetFormat",
69008
69114
  value: function() {
@@ -69031,9 +69137,9 @@ and limitations under the License.
69031
69137
  key: "format",
69032
69138
  value: function(nextDigits, state) {
69033
69139
  var _this = this;
69034
- if (canFormatCompleteNumber(state.nationalSignificantNumber, this.metadata)) for(var _iterator = AsYouTypeFormatter_createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;){
69035
- var format = _step.value;
69036
- var formattedCompleteNumber = formatCompleteNumber(state, format, {
69140
+ if (canFormatCompleteNumber(state.nationalSignificantNumber, state.country, this.metadata)) for(var _iterator = AsYouTypeFormatter_createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;){
69141
+ var _format = _step.value;
69142
+ var formattedCompleteNumber = formatCompleteNumber(state, _format, {
69037
69143
  metadata: this.metadata,
69038
69144
  shouldTryNationalPrefixFormattingRule: function(format) {
69039
69145
  return _this.shouldTryNationalPrefixFormattingRule(format, {
@@ -69047,7 +69153,7 @@ and limitations under the License.
69047
69153
  });
69048
69154
  if (formattedCompleteNumber) {
69049
69155
  this.resetFormat();
69050
- this.chosenFormat = format;
69156
+ this.chosenFormat = _format;
69051
69157
  this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\d/g, DIGIT_PLACEHOLDER), state);
69052
69158
  this.populatedNationalNumberTemplate = formattedCompleteNumber;
69053
69159
  this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);
@@ -69120,21 +69226,21 @@ and limitations under the License.
69120
69226
  var _this3 = this;
69121
69227
  var _loop = function() {
69122
69228
  var format = _step2.value;
69123
- if (_this3.chosenFormat === format) return "break";
69124
- if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) return "continue";
69229
+ if (_this3.chosenFormat === format) return 0;
69230
+ if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) return 1;
69125
69231
  if (!_this3.createTemplateForFormat(format, state)) {
69126
69232
  _this3.matchingFormats = _this3.matchingFormats.filter(function(_) {
69127
69233
  return _ !== format;
69128
69234
  });
69129
- return "continue";
69235
+ return 1;
69130
69236
  }
69131
69237
  _this3.chosenFormat = format;
69132
- return "break";
69133
- };
69238
+ return 0;
69239
+ }, _ret;
69134
69240
  for(var _iterator2 = AsYouTypeFormatter_createForOfIteratorHelperLoose(this.matchingFormats.slice()), _step2; !(_step2 = _iterator2()).done;){
69135
- var _ret = _loop();
69136
- if ("break" === _ret) break;
69137
- if ("continue" === _ret) continue;
69241
+ _ret = _loop();
69242
+ if (0 === _ret) break;
69243
+ if (1 === _ret) continue;
69138
69244
  }
69139
69245
  if (!this.chosenFormat) this.resetFormat();
69140
69246
  return this.chosenFormat;
@@ -69197,7 +69303,7 @@ and limitations under the License.
69197
69303
  {
69198
69304
  key: "getTemplateForFormat",
69199
69305
  value: function(format, _ref4) {
69200
- var nationalSignificantNumber = _ref4.nationalSignificantNumber, international = _ref4.international, nationalPrefix = _ref4.nationalPrefix, complexPrefixBeforeNationalSignificantNumber = _ref4.complexPrefixBeforeNationalSignificantNumber;
69306
+ var nationalSignificantNumber = _ref4.nationalSignificantNumber, international = _ref4.international, nationalPrefix = _ref4.nationalPrefix, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _ref4.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;
69201
69307
  var pattern = format.pattern();
69202
69308
  if (SUPPORT_LEGACY_FORMATTING_PATTERNS) pattern = pattern.replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\d').replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\d');
69203
69309
  var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0];
@@ -69226,7 +69332,7 @@ and limitations under the License.
69226
69332
  }
69227
69333
  var template = digits.replace(new RegExp(pattern), numberFormat).replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER);
69228
69334
  if (!nationalPrefixIncludedInTemplate) {
69229
- if (complexPrefixBeforeNationalSignificantNumber) template = repeat(DIGIT_PLACEHOLDER, complexPrefixBeforeNationalSignificantNumber.length) + ' ' + template;
69335
+ if (prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) template = repeat(DIGIT_PLACEHOLDER, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix.length) + ' ' + template;
69230
69336
  else if (nationalPrefix) template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;
69231
69337
  }
69232
69338
  if (international) template = applyInternationalSeparatorStyle(template);
@@ -69257,73 +69363,83 @@ and limitations under the License.
69257
69363
  }
69258
69364
  }
69259
69365
  ]);
69260
- return AsYouTypeFormatter;
69261
69366
  }();
69262
- function AsYouTypeParser_slicedToArray(arr, i) {
69263
- return AsYouTypeParser_arrayWithHoles(arr) || AsYouTypeParser_iterableToArrayLimit(arr, i) || AsYouTypeParser_unsupportedIterableToArray(arr, i) || AsYouTypeParser_nonIterableRest();
69367
+ function AsYouTypeParser_typeof(o) {
69368
+ return AsYouTypeParser_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69369
+ return typeof o;
69370
+ } : function(o) {
69371
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69372
+ }, AsYouTypeParser_typeof(o);
69373
+ }
69374
+ function AsYouTypeParser_slicedToArray(r, e) {
69375
+ return AsYouTypeParser_arrayWithHoles(r) || AsYouTypeParser_iterableToArrayLimit(r, e) || AsYouTypeParser_unsupportedIterableToArray(r, e) || AsYouTypeParser_nonIterableRest();
69264
69376
  }
69265
69377
  function AsYouTypeParser_nonIterableRest() {
69266
69378
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69267
69379
  }
69268
- function AsYouTypeParser_unsupportedIterableToArray(o, minLen) {
69269
- if (!o) return;
69270
- if ("string" == typeof o) return AsYouTypeParser_arrayLikeToArray(o, minLen);
69271
- var n = Object.prototype.toString.call(o).slice(8, -1);
69272
- if ("Object" === n && o.constructor) n = o.constructor.name;
69273
- if ("Map" === n || "Set" === n) return Array.from(o);
69274
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return AsYouTypeParser_arrayLikeToArray(o, minLen);
69380
+ function AsYouTypeParser_unsupportedIterableToArray(r, a) {
69381
+ if (r) {
69382
+ if ("string" == typeof r) return AsYouTypeParser_arrayLikeToArray(r, a);
69383
+ var t = ({}).toString.call(r).slice(8, -1);
69384
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AsYouTypeParser_arrayLikeToArray(r, a) : void 0;
69385
+ }
69275
69386
  }
69276
- function AsYouTypeParser_arrayLikeToArray(arr, len) {
69277
- if (null == len || len > arr.length) len = arr.length;
69278
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
69279
- return arr2;
69387
+ function AsYouTypeParser_arrayLikeToArray(r, a) {
69388
+ (null == a || a > r.length) && (a = r.length);
69389
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69390
+ return n;
69280
69391
  }
69281
- function AsYouTypeParser_iterableToArrayLimit(arr, i) {
69282
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
69283
- if (null == _i) return;
69284
- var _arr = [];
69285
- var _n = true;
69286
- var _d = false;
69287
- var _s, _e;
69288
- try {
69289
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
69290
- _arr.push(_s.value);
69291
- if (i && _arr.length === i) break;
69292
- }
69293
- } catch (err) {
69294
- _d = true;
69295
- _e = err;
69296
- } finally{
69392
+ function AsYouTypeParser_iterableToArrayLimit(r, l) {
69393
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69394
+ if (null != t) {
69395
+ var e, n, i, u, a = [], f = !0, o = !1;
69297
69396
  try {
69298
- if (!_n && null != _i["return"]) _i["return"]();
69397
+ if (i = (t = t.call(r)).next, 0 === l) {
69398
+ if (Object(t) !== t) return;
69399
+ f = !1;
69400
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
69401
+ } catch (r) {
69402
+ o = !0, n = r;
69299
69403
  } finally{
69300
- if (_d) throw _e;
69404
+ try {
69405
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
69406
+ } finally{
69407
+ if (o) throw n;
69408
+ }
69301
69409
  }
69410
+ return a;
69302
69411
  }
69303
- return _arr;
69304
69412
  }
69305
- function AsYouTypeParser_arrayWithHoles(arr) {
69306
- if (Array.isArray(arr)) return arr;
69413
+ function AsYouTypeParser_arrayWithHoles(r) {
69414
+ if (Array.isArray(r)) return r;
69307
69415
  }
69308
- function AsYouTypeParser_classCallCheck(instance, Constructor) {
69309
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69416
+ function AsYouTypeParser_classCallCheck(a, n) {
69417
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
69310
69418
  }
69311
- function AsYouTypeParser_defineProperties(target, props) {
69312
- for(var i = 0; i < props.length; i++){
69313
- var descriptor = props[i];
69314
- descriptor.enumerable = descriptor.enumerable || false;
69315
- descriptor.configurable = true;
69316
- if ("value" in descriptor) descriptor.writable = true;
69317
- Object.defineProperty(target, descriptor.key, descriptor);
69419
+ function AsYouTypeParser_defineProperties(e, r) {
69420
+ for(var t = 0; t < r.length; t++){
69421
+ var o = r[t];
69422
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeParser_toPropertyKey(o.key), o);
69318
69423
  }
69319
69424
  }
69320
- function AsYouTypeParser_createClass(Constructor, protoProps, staticProps) {
69321
- if (protoProps) AsYouTypeParser_defineProperties(Constructor.prototype, protoProps);
69322
- if (staticProps) AsYouTypeParser_defineProperties(Constructor, staticProps);
69323
- Object.defineProperty(Constructor, "prototype", {
69324
- writable: false
69325
- });
69326
- return Constructor;
69425
+ function AsYouTypeParser_createClass(e, r, t) {
69426
+ return r && AsYouTypeParser_defineProperties(e.prototype, r), t && AsYouTypeParser_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69427
+ writable: !1
69428
+ }), e;
69429
+ }
69430
+ function AsYouTypeParser_toPropertyKey(t) {
69431
+ var i = AsYouTypeParser_toPrimitive(t, "string");
69432
+ return "symbol" == AsYouTypeParser_typeof(i) ? i : i + "";
69433
+ }
69434
+ function AsYouTypeParser_toPrimitive(t, r) {
69435
+ if ("object" != AsYouTypeParser_typeof(t) || !t) return t;
69436
+ var e = t[Symbol.toPrimitive];
69437
+ if (void 0 !== e) {
69438
+ var i = e.call(t, r || "default");
69439
+ if ("object" != AsYouTypeParser_typeof(i)) return i;
69440
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69441
+ }
69442
+ return ("string" === r ? String : Number)(t);
69327
69443
  }
69328
69444
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';
69329
69445
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');
@@ -69339,7 +69455,7 @@ and limitations under the License.
69339
69455
  this.metadata = metadata;
69340
69456
  this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;
69341
69457
  }
69342
- AsYouTypeParser_createClass(AsYouTypeParser, [
69458
+ return AsYouTypeParser_createClass(AsYouTypeParser, [
69343
69459
  {
69344
69460
  key: "input",
69345
69461
  value: function(text, state) {
@@ -69348,7 +69464,7 @@ and limitations under the License.
69348
69464
  var justLeadingPlus;
69349
69465
  if (hasPlus) {
69350
69466
  if (!state.digits) {
69351
- state.startInternationalNumber();
69467
+ state.startInternationalNumber(void 0, void 0);
69352
69468
  if (!digits) justLeadingPlus = true;
69353
69469
  }
69354
69470
  }
@@ -69386,7 +69502,7 @@ and limitations under the License.
69386
69502
  {
69387
69503
  key: "extractCountryCallingCode",
69388
69504
  value: function(state) {
69389
- var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
69505
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
69390
69506
  if (countryCallingCode) {
69391
69507
  state.setCallingCode(countryCallingCode);
69392
69508
  state.update({
@@ -69433,20 +69549,22 @@ and limitations under the License.
69433
69549
  {
69434
69550
  key: "onExtractedNationalNumber",
69435
69551
  value: function(nationalPrefix, carrierCode, nationalSignificantNumber, nationalDigits, setState) {
69436
- var complexPrefixBeforeNationalSignificantNumber;
69437
- var nationalSignificantNumberMatchesInput;
69552
+ var nationalSignificantNumberIsModified = false;
69553
+ var prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;
69438
69554
  var nationalSignificantNumberIndex = nationalDigits.lastIndexOf(nationalSignificantNumber);
69439
- if (nationalSignificantNumberIndex >= 0 && nationalSignificantNumberIndex === nationalDigits.length - nationalSignificantNumber.length) {
69440
- nationalSignificantNumberMatchesInput = true;
69555
+ if (nationalSignificantNumberIndex < 0 || nationalSignificantNumberIndex !== nationalDigits.length - nationalSignificantNumber.length) nationalSignificantNumberIsModified = true;
69556
+ else {
69441
69557
  var prefixBeforeNationalNumber = nationalDigits.slice(0, nationalSignificantNumberIndex);
69442
- if (prefixBeforeNationalNumber !== nationalPrefix) complexPrefixBeforeNationalSignificantNumber = prefixBeforeNationalNumber;
69558
+ if (prefixBeforeNationalNumber) {
69559
+ if (prefixBeforeNationalNumber !== nationalPrefix) prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = prefixBeforeNationalNumber;
69560
+ }
69443
69561
  }
69444
69562
  setState({
69445
69563
  nationalPrefix: nationalPrefix,
69446
69564
  carrierCode: carrierCode,
69447
69565
  nationalSignificantNumber: nationalSignificantNumber,
69448
- nationalSignificantNumberMatchesInput: nationalSignificantNumberMatchesInput,
69449
- complexPrefixBeforeNationalSignificantNumber: complexPrefixBeforeNationalSignificantNumber
69566
+ nationalSignificantNumberIsModified: nationalSignificantNumberIsModified,
69567
+ prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix
69450
69568
  });
69451
69569
  this.hasExtractedNationalSignificantNumber = true;
69452
69570
  this.onNationalSignificantNumberChange();
@@ -69491,8 +69609,7 @@ and limitations under the License.
69491
69609
  key: "fixMissingPlus",
69492
69610
  value: function(state) {
69493
69611
  if (!state.international) {
69494
- var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), newCallingCode = _extractCountryCallin2.countryCallingCode;
69495
- _extractCountryCallin2.number;
69612
+ var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), newCallingCode = _extractCountryCallin2.countryCallingCode;
69496
69613
  if (newCallingCode) {
69497
69614
  state.update({
69498
69615
  missingPlus: true
@@ -69527,7 +69644,6 @@ and limitations under the License.
69527
69644
  }
69528
69645
  }
69529
69646
  ]);
69530
- return AsYouTypeParser;
69531
69647
  }();
69532
69648
  function AsYouTypeParser_extractFormattedPhoneNumber(text) {
69533
69649
  var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART);
@@ -69560,71 +69676,82 @@ and limitations under the License.
69560
69676
  hasPlus
69561
69677
  ];
69562
69678
  }
69563
- function AsYouType_slicedToArray(arr, i) {
69564
- return AsYouType_arrayWithHoles(arr) || AsYouType_iterableToArrayLimit(arr, i) || AsYouType_unsupportedIterableToArray(arr, i) || AsYouType_nonIterableRest();
69679
+ function AsYouType_typeof(o) {
69680
+ return AsYouType_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69681
+ return typeof o;
69682
+ } : function(o) {
69683
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69684
+ }, AsYouType_typeof(o);
69685
+ }
69686
+ function AsYouType_slicedToArray(r, e) {
69687
+ return AsYouType_arrayWithHoles(r) || AsYouType_iterableToArrayLimit(r, e) || AsYouType_unsupportedIterableToArray(r, e) || AsYouType_nonIterableRest();
69565
69688
  }
69566
69689
  function AsYouType_nonIterableRest() {
69567
69690
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
69568
69691
  }
69569
- function AsYouType_unsupportedIterableToArray(o, minLen) {
69570
- if (!o) return;
69571
- if ("string" == typeof o) return AsYouType_arrayLikeToArray(o, minLen);
69572
- var n = Object.prototype.toString.call(o).slice(8, -1);
69573
- if ("Object" === n && o.constructor) n = o.constructor.name;
69574
- if ("Map" === n || "Set" === n) return Array.from(o);
69575
- if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return AsYouType_arrayLikeToArray(o, minLen);
69692
+ function AsYouType_unsupportedIterableToArray(r, a) {
69693
+ if (r) {
69694
+ if ("string" == typeof r) return AsYouType_arrayLikeToArray(r, a);
69695
+ var t = ({}).toString.call(r).slice(8, -1);
69696
+ return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? AsYouType_arrayLikeToArray(r, a) : void 0;
69697
+ }
69576
69698
  }
69577
- function AsYouType_arrayLikeToArray(arr, len) {
69578
- if (null == len || len > arr.length) len = arr.length;
69579
- for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
69580
- return arr2;
69699
+ function AsYouType_arrayLikeToArray(r, a) {
69700
+ (null == a || a > r.length) && (a = r.length);
69701
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69702
+ return n;
69581
69703
  }
69582
- function AsYouType_iterableToArrayLimit(arr, i) {
69583
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
69584
- if (null == _i) return;
69585
- var _arr = [];
69586
- var _n = true;
69587
- var _d = false;
69588
- var _s, _e;
69589
- try {
69590
- for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
69591
- _arr.push(_s.value);
69592
- if (i && _arr.length === i) break;
69593
- }
69594
- } catch (err) {
69595
- _d = true;
69596
- _e = err;
69597
- } finally{
69704
+ function AsYouType_iterableToArrayLimit(r, l) {
69705
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69706
+ if (null != t) {
69707
+ var e, n, i, u, a = [], f = !0, o = !1;
69598
69708
  try {
69599
- if (!_n && null != _i["return"]) _i["return"]();
69709
+ if (i = (t = t.call(r)).next, 0 === l) {
69710
+ if (Object(t) !== t) return;
69711
+ f = !1;
69712
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
69713
+ } catch (r) {
69714
+ o = !0, n = r;
69600
69715
  } finally{
69601
- if (_d) throw _e;
69716
+ try {
69717
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
69718
+ } finally{
69719
+ if (o) throw n;
69720
+ }
69602
69721
  }
69722
+ return a;
69603
69723
  }
69604
- return _arr;
69605
69724
  }
69606
- function AsYouType_arrayWithHoles(arr) {
69607
- if (Array.isArray(arr)) return arr;
69725
+ function AsYouType_arrayWithHoles(r) {
69726
+ if (Array.isArray(r)) return r;
69608
69727
  }
69609
- function AsYouType_classCallCheck(instance, Constructor) {
69610
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69728
+ function AsYouType_classCallCheck(a, n) {
69729
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
69611
69730
  }
69612
- function AsYouType_defineProperties(target, props) {
69613
- for(var i = 0; i < props.length; i++){
69614
- var descriptor = props[i];
69615
- descriptor.enumerable = descriptor.enumerable || false;
69616
- descriptor.configurable = true;
69617
- if ("value" in descriptor) descriptor.writable = true;
69618
- Object.defineProperty(target, descriptor.key, descriptor);
69731
+ function AsYouType_defineProperties(e, r) {
69732
+ for(var t = 0; t < r.length; t++){
69733
+ var o = r[t];
69734
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouType_toPropertyKey(o.key), o);
69619
69735
  }
69620
69736
  }
69621
- function AsYouType_createClass(Constructor, protoProps, staticProps) {
69622
- if (protoProps) AsYouType_defineProperties(Constructor.prototype, protoProps);
69623
- if (staticProps) AsYouType_defineProperties(Constructor, staticProps);
69624
- Object.defineProperty(Constructor, "prototype", {
69625
- writable: false
69626
- });
69627
- return Constructor;
69737
+ function AsYouType_createClass(e, r, t) {
69738
+ return r && AsYouType_defineProperties(e.prototype, r), t && AsYouType_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69739
+ writable: !1
69740
+ }), e;
69741
+ }
69742
+ function AsYouType_toPropertyKey(t) {
69743
+ var i = AsYouType_toPrimitive(t, "string");
69744
+ return "symbol" == AsYouType_typeof(i) ? i : i + "";
69745
+ }
69746
+ function AsYouType_toPrimitive(t, r) {
69747
+ if ("object" != AsYouType_typeof(t) || !t) return t;
69748
+ var e = t[Symbol.toPrimitive];
69749
+ if (void 0 !== e) {
69750
+ var i = e.call(t, r || "default");
69751
+ if ("object" != AsYouType_typeof(i)) return i;
69752
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69753
+ }
69754
+ return ("string" === r ? String : Number)(t);
69628
69755
  }
69629
69756
  var AsYouType_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
69630
69757
  var AsYouType_AsYouType = /*#__PURE__*/ function() {
@@ -69636,7 +69763,7 @@ and limitations under the License.
69636
69763
  this.defaultCallingCode = defaultCallingCode;
69637
69764
  this.reset();
69638
69765
  }
69639
- AsYouType_createClass(AsYouType, [
69766
+ return AsYouType_createClass(AsYouType, [
69640
69767
  {
69641
69768
  key: "getCountryAndCallingCode",
69642
69769
  value: function(optionsOrDefaultCountry) {
@@ -69780,9 +69907,9 @@ and limitations under the License.
69780
69907
  {
69781
69908
  key: "getNonFormattedNationalNumberWithPrefix",
69782
69909
  value: function() {
69783
- var _this$state = this.state, nationalSignificantNumber = _this$state.nationalSignificantNumber, complexPrefixBeforeNationalSignificantNumber = _this$state.complexPrefixBeforeNationalSignificantNumber, nationalPrefix = _this$state.nationalPrefix;
69910
+ var _this$state = this.state, nationalSignificantNumber = _this$state.nationalSignificantNumber, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _this$state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, nationalPrefix = _this$state.nationalPrefix;
69784
69911
  var number = nationalSignificantNumber;
69785
- var prefix = complexPrefixBeforeNationalSignificantNumber || nationalPrefix;
69912
+ var prefix = prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix || nationalPrefix;
69786
69913
  if (prefix) number = prefix + number;
69787
69914
  return number;
69788
69915
  }
@@ -69790,8 +69917,8 @@ and limitations under the License.
69790
69917
  {
69791
69918
  key: "getNonFormattedNumber",
69792
69919
  value: function() {
69793
- var nationalSignificantNumberMatchesInput = this.state.nationalSignificantNumberMatchesInput;
69794
- return this.getFullNumber(nationalSignificantNumberMatchesInput ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());
69920
+ var nationalSignificantNumberIsModified = this.state.nationalSignificantNumberIsModified;
69921
+ return this.getFullNumber(nationalSignificantNumberIsModified ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
69795
69922
  }
69796
69923
  },
69797
69924
  {
@@ -69814,7 +69941,6 @@ and limitations under the License.
69814
69941
  value: function() {
69815
69942
  this.state.setCountry(getCountryByCallingCode(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
69816
69943
  nationalNumber: this.state.nationalSignificantNumber,
69817
- defaultCountry: this.defaultCountry,
69818
69944
  metadata: this.metadata
69819
69945
  }));
69820
69946
  }
@@ -69850,7 +69976,6 @@ and limitations under the License.
69850
69976
  if (ambiguousCountries.length > 1) {
69851
69977
  var exactCountry = getCountryByNationalNumber(nationalSignificantNumber, {
69852
69978
  countries: ambiguousCountries,
69853
- defaultCountry: this.defaultCountry,
69854
69979
  metadata: this.metadata.metadata
69855
69980
  });
69856
69981
  if (exactCountry) country = exactCountry;
@@ -69897,7 +70022,6 @@ and limitations under the License.
69897
70022
  }
69898
70023
  }
69899
70024
  ]);
69900
- return AsYouType;
69901
70025
  }();
69902
70026
  function exports_AsYouType_AsYouType(country) {
69903
70027
  return AsYouType_AsYouType.call(this, country, metadata_min_json);