@wazo/sdk 0.47.8 → 0.48.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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)));
@@ -34041,7 +34091,7 @@
34041
34091
  enableErrorLogging() {
34042
34092
  this.shouldLogErrors = true;
34043
34093
  }
34044
- async call({ path, method = 'get', body = null, headers = null, parse = ApiRequester.defaultParser, firstCall = true }) {
34094
+ async call({ path, method = 'get', body = null, headers = null, parse = ApiRequester.defaultParser, firstCall = true, ignoreStatuses = [] }) {
34045
34095
  const url = this.computeUrl(method, path, body);
34046
34096
  const newHeaders = this.getHeaders(headers);
34047
34097
  let newBody = 'get' === method ? null : body;
@@ -34088,7 +34138,7 @@
34088
34138
  return this._replayWithNewToken(err, path, method, body, headers, parse);
34089
34139
  }
34090
34140
  const error = 'string' == typeof err ? exceptionClass.fromText(err, response.status) : exceptionClass.fromResponse(err, response.status);
34091
- if (this.shouldLogErrors) api_requester_logger.error('API error', error);
34141
+ if (this.shouldLogErrors && !ignoreStatuses.includes(response.status)) api_requester_logger.error('API error', error);
34092
34142
  throw error;
34093
34143
  });
34094
34144
  }
@@ -34741,9 +34791,14 @@
34741
34791
  getInfos: ()=>client.get(`${baseUrl}/infos`, null),
34742
34792
  getExternalApps: (userUuid)=>client.get(`${baseUrl}/users/${userUuid}/external/apps`).then(ExternalApp.parseMany),
34743
34793
  getExternalApp: async (userUuid, name)=>{
34744
- const url = `${baseUrl}/users/${userUuid}/external/apps/${name}?view=fallback`;
34794
+ const path = `users/${userUuid}/external/apps/${name}?view=fallback`;
34745
34795
  try {
34746
- return await client.get(url).then(ExternalApp.parse);
34796
+ return await client.get({
34797
+ path: `${baseUrl}/${path}`,
34798
+ ignoreStatuses: [
34799
+ 404
34800
+ ]
34801
+ }).then(ExternalApp.parse);
34747
34802
  } catch (e) {
34748
34803
  return null;
34749
34804
  }
@@ -35859,15 +35914,27 @@
35859
35914
  return client.put(url, null, null, ApiRequester.successResponseParser);
35860
35915
  },
35861
35916
  removeFavorite: (source, sourceId)=>client.delete(`${baseUrl}/directories/favorites/${source}/${sourceId}`),
35862
- fetchOffice365Source: (context)=>client.get(`${baseUrl}/directories/${context}/sources`, {
35863
- backend: 'office365'
35917
+ fetchOffice365Source: (context)=>client.get({
35918
+ path: `${baseUrl}/directories/${context}/sources`,
35919
+ body: {
35920
+ backend: 'office365'
35921
+ },
35922
+ ignoreStatuses: [
35923
+ 404
35924
+ ]
35864
35925
  }),
35865
35926
  fetchOffice365Contacts: async (source, queryParams)=>{
35866
35927
  if (!source) return Promise.resolve([]);
35867
35928
  return client.get(`${baseUrl}/backends/office365/sources/${source.uuid}/contacts`, queryParams).then((response)=>Contact.parseManyOffice365(response.items, source));
35868
35929
  },
35869
- fetchWazoSource: (context)=>client.get(`${baseUrl}/directories/${context}/sources`, {
35870
- backend: 'wazo'
35930
+ fetchWazoSource: (context)=>client.get({
35931
+ path: `${baseUrl}/directories/${context}/sources`,
35932
+ body: {
35933
+ backend: 'wazo'
35934
+ },
35935
+ ignoreStatuses: [
35936
+ 404
35937
+ ]
35871
35938
  }),
35872
35939
  fetchWazoContacts: async (source, queryParams, options)=>{
35873
35940
  if (!source) return [];
@@ -35875,15 +35942,27 @@
35875
35942
  const parser = options?.parser ?? defaultParser;
35876
35943
  return client.get(`${baseUrl}/backends/wazo/sources/${source.uuid}/contacts`, queryParams).then((response)=>parser(response, source));
35877
35944
  },
35878
- fetchGoogleSource: (context)=>client.get(`${baseUrl}/directories/${context}/sources`, {
35879
- backend: 'google'
35945
+ fetchGoogleSource: (context)=>client.get({
35946
+ path: `${baseUrl}/directories/${context}/sources`,
35947
+ body: {
35948
+ backend: 'google'
35949
+ },
35950
+ ignoreStatuses: [
35951
+ 404
35952
+ ]
35880
35953
  }),
35881
35954
  fetchGoogleContacts: async (source, queryParams)=>{
35882
35955
  if (!source) return Promise.resolve([]);
35883
35956
  return client.get(`${baseUrl}/backends/google/sources/${source.uuid}/contacts`, queryParams).then((response)=>Contact.parseManyGoogle(response.items, source));
35884
35957
  },
35885
- fetchConferenceSource: (context)=>client.get(`${baseUrl}/directories/${context}/sources`, {
35886
- backend: 'conference'
35958
+ fetchConferenceSource: (context)=>client.get({
35959
+ path: `${baseUrl}/directories/${context}/sources`,
35960
+ body: {
35961
+ backend: 'conference'
35962
+ },
35963
+ ignoreStatuses: [
35964
+ 404
35965
+ ]
35887
35966
  }),
35888
35967
  fetchSourcesFor: (context, backend)=>client.get(`${baseUrl}/directories/${context}/sources`, {
35889
35968
  backend
@@ -36536,7 +36615,7 @@
36536
36615
  const AGENTD_VERSION = '1.0';
36537
36616
  const WEBHOOKD_VERSION = '1.0';
36538
36617
  const AMID_VERSION = '1.0';
36539
- var jsrsasign = __webpack_require__("./node_modules/.pnpm/jsrsasign@11.1.1/node_modules/jsrsasign/lib/jsrsasign.js");
36618
+ var jsrsasign = __webpack_require__("./node_modules/.pnpm/jsrsasign@11.1.3/node_modules/jsrsasign/lib/jsrsasign.js");
36540
36619
  const swarmPublicKey = `-----BEGIN PUBLIC KEY-----
36541
36620
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmkXOuNfY8u5xoTiIhkb8
36542
36621
  djnbIwG/Wrz3vpo8BZir8L5e1a1nSy740qBjP7ZINBQoALDhFfmdOfJnCyEGiHuz
@@ -37349,7 +37428,12 @@ BwIDAQAB
37349
37428
  listPolicies: ()=>client.get(`${baseUrl}/policies`),
37350
37429
  deletePolicy: (policyUuid)=>client.delete(`${baseUrl}/policies/${policyUuid}`),
37351
37430
  getProviders: (userUuid)=>client.get(`${baseUrl}/users/${userUuid}/external`),
37352
- getProviderToken: (userUuid, provider)=>client.get(`${baseUrl}/users/${userUuid}/external/${provider}`),
37431
+ getProviderToken: (userUuid, provider)=>client.get({
37432
+ path: `${baseUrl}/users/${userUuid}/external/${provider}`,
37433
+ ignoreStatuses: [
37434
+ 404
37435
+ ]
37436
+ }),
37353
37437
  getProviderAuthUrl: (userUuid, provider)=>client.post(`${baseUrl}/users/${userUuid}/external/${provider}`, {}),
37354
37438
  deleteProviderToken: (userUuid, provider)=>client.delete(`${baseUrl}/users/${userUuid}/external/${provider}`)
37355
37439
  });
@@ -39811,7 +39895,7 @@ and limitations under the License.
39811
39895
  if ('object' != typeof window1 || window1.AudioContext) return;
39812
39896
  window1.AudioContext = window1.webkitAudioContext;
39813
39897
  }
39814
- var sdp_sdp = __webpack_require__("./node_modules/.pnpm/sdp@3.2.0/node_modules/sdp/sdp.js");
39898
+ var sdp_sdp = __webpack_require__("./node_modules/.pnpm/sdp@3.2.2/node_modules/sdp/sdp.js");
39815
39899
  var sdp_default = /*#__PURE__*/ __webpack_require__.n(sdp_sdp);
39816
39900
  function shimRTCIceCandidate(window1) {
39817
39901
  if (!window1.RTCIceCandidate || window1.RTCIceCandidate && 'foundation' in window1.RTCIceCandidate.prototype) return;
@@ -57360,13 +57444,13 @@ and limitations under the License.
57360
57444
  0,
57361
57445
  [
57362
57446
  [
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}",
57447
+ "(?:(?: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
57448
  [
57365
57449
  9
57366
57450
  ]
57367
57451
  ],
57368
57452
  [
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}",
57453
+ "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
57454
  [
57371
57455
  9
57372
57456
  ]
@@ -57638,7 +57722,7 @@ and limitations under the License.
57638
57722
  BF: [
57639
57723
  "226",
57640
57724
  "00",
57641
- "[025-7]\\d{7}",
57725
+ "[024-7]\\d{7}",
57642
57726
  [
57643
57727
  8
57644
57728
  ],
@@ -57647,7 +57731,7 @@ and limitations under the License.
57647
57731
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57648
57732
  "$1 $2 $3 $4",
57649
57733
  [
57650
- "[025-7]"
57734
+ "[024-7]"
57651
57735
  ]
57652
57736
  ]
57653
57737
  ]
@@ -57768,7 +57852,7 @@ and limitations under the License.
57768
57852
  BJ: [
57769
57853
  "229",
57770
57854
  "00",
57771
- "(?:01\\d|[24-689])\\d{7}",
57855
+ "(?:01\\d|8)\\d{7}",
57772
57856
  [
57773
57857
  8,
57774
57858
  10
@@ -57778,7 +57862,7 @@ and limitations under the License.
57778
57862
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57779
57863
  "$1 $2 $3 $4",
57780
57864
  [
57781
- "[24-689]"
57865
+ "8"
57782
57866
  ]
57783
57867
  ],
57784
57868
  [
@@ -57793,7 +57877,7 @@ and limitations under the License.
57793
57877
  BL: [
57794
57878
  "590",
57795
57879
  "00",
57796
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
57880
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
57797
57881
  [
57798
57882
  9
57799
57883
  ],
@@ -57806,15 +57890,17 @@ and limitations under the License.
57806
57890
  0,
57807
57891
  [
57808
57892
  [
57809
- "590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"
57893
+ "(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"
57810
57894
  ],
57811
57895
  [
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}"
57896
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
57813
57897
  ],
57814
57898
  [
57815
57899
  "80[0-5]\\d{6}"
57816
57900
  ],
57817
- 0,
57901
+ [
57902
+ "8[129]\\d{7}"
57903
+ ],
57818
57904
  0,
57819
57905
  0,
57820
57906
  0,
@@ -57973,7 +58059,7 @@ and limitations under the License.
57973
58059
  BT: [
57974
58060
  "975",
57975
58061
  "00",
57976
- "[17]\\d{7}|[2-8]\\d{6}",
58062
+ "[178]\\d{7}|[2-8]\\d{6}",
57977
58063
  [
57978
58064
  7,
57979
58065
  8
@@ -57983,14 +58069,14 @@ and limitations under the License.
57983
58069
  "(\\d)(\\d{3})(\\d{3})",
57984
58070
  "$1 $2 $3",
57985
58071
  [
57986
- "[2-68]|7[246]"
58072
+ "[2-6]|7[246]|8[2-4]"
57987
58073
  ]
57988
58074
  ],
57989
58075
  [
57990
58076
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
57991
58077
  "$1 $2 $3 $4",
57992
58078
  [
57993
- "1[67]|7"
58079
+ "1[67]|[78]"
57994
58080
  ]
57995
58081
  ]
57996
58082
  ]
@@ -58156,7 +58242,7 @@ and limitations under the License.
58156
58242
  0,
58157
58243
  [
58158
58244
  [
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}",
58245
+ "(?: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
58246
  [
58161
58247
  10
58162
58248
  ]
@@ -58180,7 +58266,7 @@ and limitations under the License.
58180
58266
  ]
58181
58267
  ],
58182
58268
  [
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}",
58269
+ "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
58270
  [
58185
58271
  10
58186
58272
  ]
@@ -58228,7 +58314,7 @@ and limitations under the License.
58228
58314
  ]
58229
58315
  ],
58230
58316
  [
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}",
58317
+ "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
58318
  [
58233
58319
  9
58234
58320
  ]
@@ -58333,7 +58419,7 @@ and limitations under the License.
58333
58419
  CF: [
58334
58420
  "236",
58335
58421
  "00",
58336
- "(?:[27]\\d{3}|8776)\\d{4}",
58422
+ "8776\\d{4}|(?:[27]\\d|61)\\d{6}",
58337
58423
  [
58338
58424
  8
58339
58425
  ],
@@ -58342,7 +58428,7 @@ and limitations under the License.
58342
58428
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
58343
58429
  "$1 $2 $3 $4",
58344
58430
  [
58345
- "[278]"
58431
+ "[26-8]"
58346
58432
  ]
58347
58433
  ]
58348
58434
  ]
@@ -58467,6 +58553,13 @@ and limitations under the License.
58467
58553
  ],
58468
58554
  "($1)"
58469
58555
  ],
58556
+ [
58557
+ "(\\d{3})(\\d{3})(\\d{3})",
58558
+ "$1 $2 $3",
58559
+ [
58560
+ "60|809"
58561
+ ]
58562
+ ],
58470
58563
  [
58471
58564
  "(\\d{2})(\\d{3})(\\d{4})",
58472
58565
  "$1 $2 $3",
@@ -58486,14 +58579,14 @@ and limitations under the License.
58486
58579
  "(\\d)(\\d{4})(\\d{4})",
58487
58580
  "$1 $2 $3",
58488
58581
  [
58489
- "9[2-9]"
58582
+ "9(?:10|[2-9])"
58490
58583
  ]
58491
58584
  ],
58492
58585
  [
58493
58586
  "(\\d{2})(\\d{3})(\\d{4})",
58494
58587
  "$1 $2 $3",
58495
58588
  [
58496
- "3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"
58589
+ "3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"
58497
58590
  ],
58498
58591
  "($1)"
58499
58592
  ],
@@ -58688,7 +58781,7 @@ and limitations under the License.
58688
58781
  "(\\d{3})(\\d{7})",
58689
58782
  "$1 $2",
58690
58783
  [
58691
- "3[0-357]|91"
58784
+ "3[0-357]|9[14]"
58692
58785
  ]
58693
58786
  ],
58694
58787
  [
@@ -58855,7 +58948,7 @@ and limitations under the License.
58855
58948
  ]
58856
58949
  ],
58857
58950
  [
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}",
58951
+ "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
58952
  [
58860
58953
  9
58861
58954
  ]
@@ -59085,7 +59178,7 @@ and limitations under the License.
59085
59178
  "$1 $2",
59086
59179
  [
59087
59180
  "15[03568]",
59088
- "15(?:[0568]|31)"
59181
+ "15(?:[0568]|3[13])"
59089
59182
  ],
59090
59183
  "0$1"
59091
59184
  ],
@@ -59363,7 +59456,28 @@ and limitations under the License.
59363
59456
  0,
59364
59457
  0,
59365
59458
  0,
59366
- "528[89]"
59459
+ 0,
59460
+ [
59461
+ [
59462
+ "528[89]\\d{5}"
59463
+ ],
59464
+ [
59465
+ "(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|5[0-5]))\\d{6}"
59466
+ ],
59467
+ [
59468
+ "80[0-7]\\d{6}"
59469
+ ],
59470
+ [
59471
+ "89\\d{7}"
59472
+ ],
59473
+ 0,
59474
+ 0,
59475
+ 0,
59476
+ 0,
59477
+ [
59478
+ "(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"
59479
+ ]
59480
+ ]
59367
59481
  ],
59368
59482
  ER: [
59369
59483
  "291",
@@ -59722,13 +59836,13 @@ and limitations under the License.
59722
59836
  ],
59723
59837
  "0",
59724
59838
  0,
59725
- 0,
59839
+ "0|180020",
59726
59840
  0,
59727
59841
  0,
59728
59842
  0,
59729
59843
  [
59730
59844
  [
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}",
59845
+ "(?: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
59846
  [
59733
59847
  9,
59734
59848
  10
@@ -59839,7 +59953,7 @@ and limitations under the License.
59839
59953
  GF: [
59840
59954
  "594",
59841
59955
  "00",
59842
- "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}",
59956
+ "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",
59843
59957
  [
59844
59958
  9
59845
59959
  ],
@@ -59848,7 +59962,7 @@ and limitations under the License.
59848
59962
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
59849
59963
  "$1 $2 $3 $4",
59850
59964
  [
59851
- "[5-7]|9[47]"
59965
+ "[5-7]|80[6-9]|9[47]"
59852
59966
  ],
59853
59967
  "0$1"
59854
59968
  ],
@@ -59875,7 +59989,7 @@ and limitations under the License.
59875
59989
  0,
59876
59990
  "0",
59877
59991
  0,
59878
- "([25-9]\\d{5})$|0",
59992
+ "([25-9]\\d{5})$|0|180020",
59879
59993
  "1481$1",
59880
59994
  0,
59881
59995
  0,
@@ -59932,7 +60046,7 @@ and limitations under the License.
59932
60046
  GH: [
59933
60047
  "233",
59934
60048
  "00",
59935
- "(?:[235]\\d{3}|800)\\d{5}",
60049
+ "[235]\\d{8}|800\\d{5,6}",
59936
60050
  [
59937
60051
  8,
59938
60052
  9
@@ -59950,7 +60064,7 @@ and limitations under the License.
59950
60064
  "(\\d{2})(\\d{3})(\\d{4})",
59951
60065
  "$1 $2 $3",
59952
60066
  [
59953
- "[235]"
60067
+ "[2358]"
59954
60068
  ],
59955
60069
  "0$1"
59956
60070
  ]
@@ -60036,7 +60150,7 @@ and limitations under the License.
60036
60150
  GP: [
60037
60151
  "590",
60038
60152
  "00",
60039
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
60153
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
60040
60154
  [
60041
60155
  9
60042
60156
  ],
@@ -60045,7 +60159,7 @@ and limitations under the License.
60045
60159
  "(\\d{3})(\\d{2})(\\d{2})(\\d{2})",
60046
60160
  "$1 $2 $3 $4",
60047
60161
  [
60048
- "[5-79]"
60162
+ "[5-79]|80[6-9]"
60049
60163
  ],
60050
60164
  "0$1"
60051
60165
  ],
@@ -60066,15 +60180,17 @@ and limitations under the License.
60066
60180
  0,
60067
60181
  [
60068
60182
  [
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}"
60183
+ "(?: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
60184
  ],
60071
60185
  [
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}"
60186
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
60073
60187
  ],
60074
60188
  [
60075
60189
  "80[0-5]\\d{6}"
60076
60190
  ],
60077
- 0,
60191
+ [
60192
+ "8[129]\\d{7}"
60193
+ ],
60078
60194
  0,
60079
60195
  0,
60080
60196
  0,
@@ -60372,7 +60488,7 @@ and limitations under the License.
60372
60488
  HT: [
60373
60489
  "509",
60374
60490
  "00",
60375
- "(?:[2-489]\\d|55)\\d{6}",
60491
+ "[2-589]\\d{7}",
60376
60492
  [
60377
60493
  8
60378
60494
  ],
@@ -60691,7 +60807,7 @@ and limitations under the License.
60691
60807
  0,
60692
60808
  "0",
60693
60809
  0,
60694
- "([25-8]\\d{5})$|0",
60810
+ "([25-8]\\d{5})$|0|180020",
60695
60811
  "1624$1",
60696
60812
  0,
60697
60813
  "74576|(?:16|7[56])24"
@@ -60754,9 +60870,9 @@ and limitations under the License.
60754
60870
  "(\\d{3})(\\d{3})(\\d{4})",
60755
60871
  "$1 $2 $3",
60756
60872
  [
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]"
60873
+ "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]",
60874
+ "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]",
60875
+ "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
60876
  ],
60761
60877
  "0$1",
60762
60878
  1
@@ -60765,9 +60881,9 @@ and limitations under the License.
60765
60881
  "(\\d{4})(\\d{3})(\\d{3})",
60766
60882
  "$1 $2 $3",
60767
60883
  [
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]"
60884
+ "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",
60885
+ "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]",
60886
+ "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
60887
  ],
60772
60888
  "0$1",
60773
60889
  1
@@ -60776,7 +60892,7 @@ and limitations under the License.
60776
60892
  "(\\d{5})(\\d{5})",
60777
60893
  "$1 $2",
60778
60894
  [
60779
- "[6-9]"
60895
+ "16|[6-9]"
60780
60896
  ],
60781
60897
  "0$1",
60782
60898
  1
@@ -60785,8 +60901,8 @@ and limitations under the License.
60785
60901
  "(\\d{4})(\\d{2,4})(\\d{4})",
60786
60902
  "$1 $2 $3",
60787
60903
  [
60788
- "1(?:6|8[06])",
60789
- "1(?:6|8[06]0)"
60904
+ "18[06]",
60905
+ "18[06]0"
60790
60906
  ],
60791
60907
  0,
60792
60908
  1
@@ -60940,7 +61056,7 @@ and limitations under the License.
60940
61056
  IT: [
60941
61057
  "39",
60942
61058
  "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})?",
61059
+ "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
61060
  [
60945
61061
  6,
60946
61062
  7,
@@ -61019,7 +61135,7 @@ and limitations under the License.
61019
61135
  "(\\d{3})(\\d{4})(\\d{4,5})",
61020
61136
  "$1 $2 $3",
61021
61137
  [
61022
- "3"
61138
+ "[03]"
61023
61139
  ]
61024
61140
  ]
61025
61141
  ],
@@ -61031,15 +61147,7 @@ and limitations under the License.
61031
61147
  0,
61032
61148
  [
61033
61149
  [
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
- ]
61150
+ "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
61151
  ],
61044
61152
  [
61045
61153
  "3[2-9]\\d{7,8}|(?:31|43)\\d{8}",
@@ -61105,7 +61213,7 @@ and limitations under the License.
61105
61213
  0,
61106
61214
  "0",
61107
61215
  0,
61108
- "([0-24-8]\\d{5})$|0",
61216
+ "([0-24-8]\\d{5})$|0|180020",
61109
61217
  "1534$1",
61110
61218
  0,
61111
61219
  0,
@@ -61155,7 +61263,7 @@ and limitations under the License.
61155
61263
  JO: [
61156
61264
  "962",
61157
61265
  "00",
61158
- "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",
61266
+ "(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",
61159
61267
  [
61160
61268
  8,
61161
61269
  9
@@ -61189,7 +61297,7 @@ and limitations under the License.
61189
61297
  "(\\d)(\\d{4})(\\d{4})",
61190
61298
  "$1 $2 $3",
61191
61299
  [
61192
- "7"
61300
+ "[47]"
61193
61301
  ],
61194
61302
  "0$1"
61195
61303
  ]
@@ -61199,7 +61307,7 @@ and limitations under the License.
61199
61307
  JP: [
61200
61308
  "81",
61201
61309
  "010",
61202
- "00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
61310
+ "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",
61203
61311
  [
61204
61312
  8,
61205
61313
  9,
@@ -61243,8 +61351,8 @@ and limitations under the License.
61243
61351
  "(\\d)(\\d{4})(\\d{4})",
61244
61352
  "$1-$2-$3",
61245
61353
  [
61246
- "[36]|4(?:2[09]|7[01])",
61247
- "[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"
61354
+ "3|4(?:2[09]|7[01])|6[1-9]",
61355
+ "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"
61248
61356
  ],
61249
61357
  "0$1"
61250
61358
  ],
@@ -61278,14 +61386,14 @@ and limitations under the License.
61278
61386
  "(\\d{2})(\\d{4})(\\d{4})",
61279
61387
  "$1-$2-$3",
61280
61388
  [
61281
- "[257-9]"
61389
+ "[25-9]"
61282
61390
  ],
61283
61391
  "0$1"
61284
61392
  ]
61285
61393
  ],
61286
61394
  "0",
61287
61395
  0,
61288
- "(000[259]\\d{6})$|(?:(?:003768)0?)|0",
61396
+ "(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0",
61289
61397
  "$1"
61290
61398
  ],
61291
61399
  KE: [
@@ -61588,7 +61696,7 @@ and limitations under the License.
61588
61696
  KZ: [
61589
61697
  "7",
61590
61698
  "810",
61591
- "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",
61699
+ "8\\d{13}|[78]\\d{9}",
61592
61700
  [
61593
61701
  10,
61594
61702
  14
@@ -61599,7 +61707,7 @@ and limitations under the License.
61599
61707
  0,
61600
61708
  0,
61601
61709
  0,
61602
- "33|7",
61710
+ "7",
61603
61711
  0,
61604
61712
  "8~10"
61605
61713
  ],
@@ -61653,7 +61761,7 @@ and limitations under the License.
61653
61761
  "(\\d)(\\d{3})(\\d{3})",
61654
61762
  "$1 $2 $3",
61655
61763
  [
61656
- "[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"
61764
+ "[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"
61657
61765
  ],
61658
61766
  "0$1"
61659
61767
  ],
@@ -61755,7 +61863,7 @@ and limitations under the License.
61755
61863
  LR: [
61756
61864
  "231",
61757
61865
  "00",
61758
- "(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",
61866
+ "(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",
61759
61867
  [
61760
61868
  7,
61761
61869
  8,
@@ -61895,7 +62003,14 @@ and limitations under the License.
61895
62003
  "(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
61896
62004
  "$1 $2 $3 $4",
61897
62005
  [
61898
- "2(?:[0367]|4[3-8])"
62006
+ "20"
62007
+ ]
62008
+ ],
62009
+ [
62010
+ "(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})",
62011
+ "$1 $2 $3 $4",
62012
+ [
62013
+ "[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"
61899
62014
  ]
61900
62015
  ],
61901
62016
  [
@@ -61923,14 +62038,7 @@ and limitations under the License.
61923
62038
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})",
61924
62039
  "$1 $2 $3 $4 $5",
61925
62040
  [
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]"
62041
+ "20"
61934
62042
  ]
61935
62043
  ]
61936
62044
  ],
@@ -61941,7 +62049,7 @@ and limitations under the License.
61941
62049
  LV: [
61942
62050
  "371",
61943
62051
  "00",
61944
- "(?:[268]\\d|90)\\d{6}",
62052
+ "(?:[268]\\d|78|90)\\d{6}",
61945
62053
  [
61946
62054
  8
61947
62055
  ],
@@ -61950,7 +62058,7 @@ and limitations under the License.
61950
62058
  "(\\d{2})(\\d{3})(\\d{3})",
61951
62059
  "$1 $2 $3",
61952
62060
  [
61953
- "[269]|8[01]"
62061
+ "[2679]|8[01]"
61954
62062
  ]
61955
62063
  ]
61956
62064
  ]
@@ -61982,19 +62090,11 @@ and limitations under the License.
61982
62090
  9
61983
62091
  ],
61984
62092
  [
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
62093
  [
61994
62094
  "(\\d{4})(\\d{5})",
61995
62095
  "$1-$2",
61996
62096
  [
61997
- "5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"
62097
+ "892"
61998
62098
  ],
61999
62099
  "0$1"
62000
62100
  ],
@@ -62002,15 +62102,15 @@ and limitations under the License.
62002
62102
  "(\\d{2})(\\d{7})",
62003
62103
  "$1-$2",
62004
62104
  [
62005
- "8"
62105
+ "8(?:0[0-7]|9)"
62006
62106
  ],
62007
62107
  "0$1"
62008
62108
  ],
62009
62109
  [
62010
- "(\\d{3})(\\d{6})",
62011
- "$1-$2",
62110
+ "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
62111
+ "$1 $2 $3 $4 $5",
62012
62112
  [
62013
- "[5-7]"
62113
+ "[5-8]"
62014
62114
  ],
62015
62115
  "0$1"
62016
62116
  ]
@@ -62020,33 +62120,12 @@ and limitations under the License.
62020
62120
  0,
62021
62121
  0,
62022
62122
  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
- ]
62123
+ "[5-8]"
62045
62124
  ],
62046
62125
  MC: [
62047
62126
  "377",
62048
62127
  "00",
62049
- "(?:[3489]|6\\d)\\d{7}",
62128
+ "(?:[3489]|[67]\\d)\\d{7}",
62050
62129
  [
62051
62130
  8,
62052
62131
  9
@@ -62071,7 +62150,7 @@ and limitations under the License.
62071
62150
  "(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
62072
62151
  "$1 $2 $3 $4 $5",
62073
62152
  [
62074
- "6"
62153
+ "[67]"
62075
62154
  ],
62076
62155
  "0$1"
62077
62156
  ]
@@ -62136,7 +62215,7 @@ and limitations under the License.
62136
62215
  MF: [
62137
62216
  "590",
62138
62217
  "00",
62139
- "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}",
62218
+ "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
62140
62219
  [
62141
62220
  9
62142
62221
  ],
@@ -62149,15 +62228,17 @@ and limitations under the License.
62149
62228
  0,
62150
62229
  [
62151
62230
  [
62152
- "590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"
62231
+ "(?: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
62232
  ],
62154
62233
  [
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}"
62234
+ "(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"
62156
62235
  ],
62157
62236
  [
62158
62237
  "80[0-5]\\d{6}"
62159
62238
  ],
62160
- 0,
62239
+ [
62240
+ "8[129]\\d{7}"
62241
+ ],
62161
62242
  0,
62162
62243
  0,
62163
62244
  0,
@@ -62361,7 +62442,7 @@ and limitations under the License.
62361
62442
  "(\\d{2})(\\d{2})(\\d{4})",
62362
62443
  "$1 $2 $3",
62363
62444
  [
62364
- "[12]1"
62445
+ "11|2[16]"
62365
62446
  ],
62366
62447
  "0$1"
62367
62448
  ],
@@ -62443,7 +62524,7 @@ and limitations under the License.
62443
62524
  MQ: [
62444
62525
  "596",
62445
62526
  "00",
62446
- "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}",
62527
+ "7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",
62447
62528
  [
62448
62529
  9
62449
62530
  ],
@@ -63542,8 +63623,8 @@ and limitations under the License.
63542
63623
  "(\\d{2})(\\d{2})(\\d{3})",
63543
63624
  "$1 $2 $3",
63544
63625
  [
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"
63626
+ "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",
63627
+ "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
63628
  ]
63548
63629
  ],
63549
63630
  [
@@ -63579,7 +63660,7 @@ and limitations under the License.
63579
63660
  PM: [
63580
63661
  "508",
63581
63662
  "00",
63582
- "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}",
63663
+ "[78]\\d{8}|[2-9]\\d{5}",
63583
63664
  [
63584
63665
  6,
63585
63666
  9
@@ -63589,7 +63670,7 @@ and limitations under the License.
63589
63670
  "(\\d{2})(\\d{2})(\\d{2})",
63590
63671
  "$1 $2 $3",
63591
63672
  [
63592
- "[45]"
63673
+ "[2-9]"
63593
63674
  ],
63594
63675
  "0$1"
63595
63676
  ],
@@ -63706,7 +63787,7 @@ and limitations under the License.
63706
63787
  PY: [
63707
63788
  "595",
63708
63789
  "00",
63709
- "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",
63790
+ "[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
63791
  [
63711
63792
  6,
63712
63793
  7,
@@ -63728,7 +63809,7 @@ and limitations under the License.
63728
63809
  "(\\d{2})(\\d{5})",
63729
63810
  "$1 $2",
63730
63811
  [
63731
- "[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"
63812
+ "3[289]|4[246-8]|61|7[1-3]|8[1-36]"
63732
63813
  ],
63733
63814
  "(0$1)"
63734
63815
  ],
@@ -63833,7 +63914,7 @@ and limitations under the License.
63833
63914
  0,
63834
63915
  [
63835
63916
  [
63836
- "26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"
63917
+ "2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"
63837
63918
  ],
63838
63919
  [
63839
63920
  "(?: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 +64086,7 @@ and limitations under the License.
64005
64086
  0,
64006
64087
  0,
64007
64088
  0,
64008
- "3[04-689]|[489]",
64089
+ "[3489]",
64009
64090
  0,
64010
64091
  "8~10"
64011
64092
  ],
@@ -64046,7 +64127,7 @@ and limitations under the License.
64046
64127
  SA: [
64047
64128
  "966",
64048
64129
  "00",
64049
- "92\\d{7}|(?:[15]|8\\d)\\d{8}",
64130
+ "(?:[15]\\d|800|92)\\d{7}",
64050
64131
  [
64051
64132
  9,
64052
64133
  10
@@ -64075,14 +64156,6 @@ and limitations under the License.
64075
64156
  ],
64076
64157
  "0$1"
64077
64158
  ],
64078
- [
64079
- "(\\d{3})(\\d{3})(\\d{3,4})",
64080
- "$1 $2 $3",
64081
- [
64082
- "81"
64083
- ],
64084
- "0$1"
64085
- ],
64086
64159
  [
64087
64160
  "(\\d{3})(\\d{3})(\\d{4})",
64088
64161
  "$1 $2 $3",
@@ -64445,7 +64518,7 @@ and limitations under the License.
64445
64518
  ],
64446
64519
  [
64447
64520
  "(\\d)(\\d{3})(\\d{3})(\\d{2})",
64448
- "$1/$2 $3 $4",
64521
+ "$1 $2 $3 $4",
64449
64522
  [
64450
64523
  "2"
64451
64524
  ],
@@ -64461,7 +64534,7 @@ and limitations under the License.
64461
64534
  ],
64462
64535
  [
64463
64536
  "(\\d{2})(\\d{3})(\\d{2})(\\d{2})",
64464
- "$1/$2 $3 $4",
64537
+ "$1 $2 $3 $4",
64465
64538
  [
64466
64539
  "[3-5]"
64467
64540
  ],
@@ -64601,7 +64674,7 @@ and limitations under the License.
64601
64674
  SR: [
64602
64675
  "597",
64603
64676
  "00",
64604
- "(?:[2-5]|68|[78]\\d|90)\\d{5}",
64677
+ "(?:[2-5]|[6-9]\\d)\\d{5}",
64605
64678
  [
64606
64679
  6,
64607
64680
  7
@@ -64669,7 +64742,7 @@ and limitations under the License.
64669
64742
  SV: [
64670
64743
  "503",
64671
64744
  "00",
64672
- "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
64745
+ "[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",
64673
64746
  [
64674
64747
  7,
64675
64748
  8,
@@ -64687,7 +64760,7 @@ and limitations under the License.
64687
64760
  "(\\d{4})(\\d{4})",
64688
64761
  "$1 $2",
64689
64762
  [
64690
- "[267]"
64763
+ "[25-7]"
64691
64764
  ]
64692
64765
  ],
64693
64766
  [
@@ -64717,7 +64790,7 @@ and limitations under the License.
64717
64790
  SY: [
64718
64791
  "963",
64719
64792
  "00",
64720
- "[1-39]\\d{8}|[1-5]\\d{7}",
64793
+ "[1-359]\\d{8}|[1-5]\\d{7}",
64721
64794
  [
64722
64795
  8,
64723
64796
  9
@@ -64727,7 +64800,7 @@ and limitations under the License.
64727
64800
  "(\\d{2})(\\d{3})(\\d{3,4})",
64728
64801
  "$1 $2 $3",
64729
64802
  [
64730
- "[1-5]"
64803
+ "[1-4]|5[1-3]"
64731
64804
  ],
64732
64805
  "0$1",
64733
64806
  1
@@ -64736,7 +64809,7 @@ and limitations under the License.
64736
64809
  "(\\d{3})(\\d{3})(\\d{3})",
64737
64810
  "$1 $2 $3",
64738
64811
  [
64739
- "9"
64812
+ "[59]"
64740
64813
  ],
64741
64814
  "0$1",
64742
64815
  1
@@ -64802,7 +64875,7 @@ and limitations under the License.
64802
64875
  TD: [
64803
64876
  "235",
64804
64877
  "00|16",
64805
- "(?:22|[689]\\d|77)\\d{6}",
64878
+ "(?:22|[3689]\\d|77)\\d{6}",
64806
64879
  [
64807
64880
  8
64808
64881
  ],
@@ -64811,7 +64884,7 @@ and limitations under the License.
64811
64884
  "(\\d{2})(\\d{2})(\\d{2})(\\d{2})",
64812
64885
  "$1 $2 $3 $4",
64813
64886
  [
64814
- "[26-9]"
64887
+ "[236-9]"
64815
64888
  ]
64816
64889
  ]
64817
64890
  ],
@@ -64881,7 +64954,7 @@ and limitations under the License.
64881
64954
  TJ: [
64882
64955
  "992",
64883
64956
  "810",
64884
- "[0-57-9]\\d{8}",
64957
+ "(?:[0-57-9]\\d|66)\\d{7}",
64885
64958
  [
64886
64959
  9
64887
64960
  ],
@@ -64912,7 +64985,7 @@ and limitations under the License.
64912
64985
  "(\\d{2})(\\d{3})(\\d{4})",
64913
64986
  "$1 $2 $3",
64914
64987
  [
64915
- "[0-57-9]"
64988
+ "\\d"
64916
64989
  ]
64917
64990
  ]
64918
64991
  ],
@@ -65076,9 +65149,9 @@ and limitations under the License.
65076
65149
  "(\\d{3})(\\d{3})(\\d{2})(\\d{2})",
65077
65150
  "$1 $2 $3 $4",
65078
65151
  [
65079
- "5(?:[0-59]|61)",
65080
- "5(?:[0-59]|61[06])",
65081
- "5(?:[0-59]|61[06]1)"
65152
+ "5(?:[0-579]|61)",
65153
+ "5(?:[0-579]|61[06])",
65154
+ "5(?:[0-579]|61[06]1)"
65082
65155
  ],
65083
65156
  "0$1",
65084
65157
  1
@@ -65172,11 +65245,35 @@ and limitations under the License.
65172
65245
  ],
65173
65246
  "0$1"
65174
65247
  ],
65248
+ [
65249
+ "(\\d{3})(\\d{5})",
65250
+ "$1 $2",
65251
+ [
65252
+ "826"
65253
+ ],
65254
+ "0$1"
65255
+ ],
65256
+ [
65257
+ "(\\d{3})(\\d{2})(\\d{3})",
65258
+ "$1 $2 $3",
65259
+ [
65260
+ "83"
65261
+ ],
65262
+ "0$1"
65263
+ ],
65264
+ [
65265
+ "(\\d{2})(\\d{2})(\\d{4})",
65266
+ "$1 $2 $3",
65267
+ [
65268
+ "82"
65269
+ ],
65270
+ "0$1"
65271
+ ],
65175
65272
  [
65176
65273
  "(\\d{2})(\\d{3})(\\d{3,4})",
65177
65274
  "$1 $2 $3",
65178
65275
  [
65179
- "[258]0"
65276
+ "[25]0|37|49|8[09]"
65180
65277
  ],
65181
65278
  "0$1"
65182
65279
  ],
@@ -65184,8 +65281,8 @@ and limitations under the License.
65184
65281
  "(\\d)(\\d{3,4})(\\d{4})",
65185
65282
  "$1 $2 $3",
65186
65283
  [
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]"
65284
+ "[23568]|4(?:0[02-48]|[1-478])|7[1-9]",
65285
+ "[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"
65189
65286
  ],
65190
65287
  "0$1"
65191
65288
  ],
@@ -65383,7 +65480,7 @@ and limitations under the License.
65383
65480
  0,
65384
65481
  [
65385
65482
  [
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}"
65483
+ "(?: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
65484
  ],
65388
65485
  [
65389
65486
  ""
@@ -65395,21 +65492,17 @@ and limitations under the License.
65395
65492
  "900[2-9]\\d{6}"
65396
65493
  ],
65397
65494
  [
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}"
65495
+ "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
65496
  ]
65406
65497
  ]
65407
65498
  ],
65408
65499
  UY: [
65409
65500
  "598",
65410
65501
  "0(?:0|1[3-9]\\d)",
65411
- "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",
65502
+ "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",
65412
65503
  [
65504
+ 4,
65505
+ 5,
65413
65506
  6,
65414
65507
  7,
65415
65508
  8,
@@ -65420,6 +65513,13 @@ and limitations under the License.
65420
65513
  13
65421
65514
  ],
65422
65515
  [
65516
+ [
65517
+ "(\\d{4,5})",
65518
+ "$1",
65519
+ [
65520
+ "21"
65521
+ ]
65522
+ ],
65423
65523
  [
65424
65524
  "(\\d{3})(\\d{3,4})",
65425
65525
  "$1 $2",
@@ -65801,7 +65901,7 @@ and limitations under the License.
65801
65901
  YT: [
65802
65902
  "262",
65803
65903
  "00",
65804
- "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",
65904
+ "(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",
65805
65905
  [
65806
65906
  9
65807
65907
  ],
@@ -65814,7 +65914,7 @@ and limitations under the License.
65814
65914
  0,
65815
65915
  [
65816
65916
  [
65817
- "269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"
65917
+ "26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"
65818
65918
  ],
65819
65919
  [
65820
65920
  "(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"
@@ -66250,7 +66350,7 @@ and limitations under the License.
66250
66350
  "(\\d{2})(\\d{4})(\\d{4})",
66251
66351
  "$1 $2 $3",
66252
66352
  [
66253
- "10|23|3(?:[15]|4[57])|4|51"
66353
+ "10|23|3(?:[15]|4[57])|4|5[12]"
66254
66354
  ]
66255
66355
  ],
66256
66356
  [
@@ -66277,7 +66377,7 @@ and limitations under the License.
66277
66377
  [
66278
66378
  0,
66279
66379
  [
66280
- "342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",
66380
+ "342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",
66281
66381
  [
66282
66382
  7,
66283
66383
  8,
@@ -66451,142 +66551,133 @@ and limitations under the License.
66451
66551
  var TILDES = "~\u2053\u223C\uFF5E";
66452
66552
  var VALID_PUNCTUATION = "".concat(DASHES).concat(SLASHES).concat(DOTS).concat(WHITESPACE).concat(BRACKETS).concat(TILDES);
66453
66553
  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);
66554
+ function _typeof(o) {
66555
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
66556
+ return typeof o;
66557
+ } : function(o) {
66558
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
66559
+ }, _typeof(o);
66460
66560
  }
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);
66561
+ function _defineProperties(e, r) {
66562
+ for(var t = 0; t < r.length; t++){
66563
+ var o = r[t];
66564
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o);
66468
66565
  }
66469
66566
  }
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;
66567
+ function _createClass(e, r, t) {
66568
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", {
66569
+ writable: !1
66570
+ }), e;
66477
66571
  }
66478
- function _classCallCheck(instance, Constructor) {
66479
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
66572
+ function _toPropertyKey(t) {
66573
+ var i = _toPrimitive(t, "string");
66574
+ return "symbol" == _typeof(i) ? i : i + "";
66480
66575
  }
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);
66576
+ function _toPrimitive(t, r) {
66577
+ if ("object" != _typeof(t) || !t) return t;
66578
+ var e = t[Symbol.toPrimitive];
66579
+ if (void 0 !== e) {
66580
+ var i = e.call(t, r || "default");
66581
+ if ("object" != _typeof(i)) return i;
66582
+ throw new TypeError("@@toPrimitive must return a primitive value.");
66583
+ }
66584
+ return ("string" === r ? String : Number)(t);
66494
66585
  }
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
- };
66586
+ function _classCallCheck(a, n) {
66587
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
66505
66588
  }
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);
66589
+ function _callSuper(t, o, e) {
66590
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, ParseError_isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
66510
66591
  }
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;
66592
+ function _possibleConstructorReturn(t, e) {
66593
+ if (e && ("object" == _typeof(e) || "function" == typeof e)) return e;
66594
+ if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
66595
+ return _assertThisInitialized(t);
66514
66596
  }
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);
66597
+ function _assertThisInitialized(e) {
66598
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
66599
+ return e;
66600
+ }
66601
+ function _inherits(t, e) {
66602
+ if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
66603
+ t.prototype = Object.create(e && e.prototype, {
66604
+ constructor: {
66605
+ value: t,
66606
+ writable: !0,
66607
+ configurable: !0
66608
+ }
66609
+ }), Object.defineProperty(t, "prototype", {
66610
+ writable: !1
66611
+ }), e && _setPrototypeOf(t, e);
66612
+ }
66613
+ function ParseError_wrapNativeSuper(t) {
66614
+ var r = "function" == typeof Map ? new Map() : void 0;
66615
+ return ParseError_wrapNativeSuper = function(t) {
66616
+ if (null === t || !_isNativeFunction(t)) return t;
66617
+ if ("function" != typeof t) throw new TypeError("Super expression must either be null or a function");
66618
+ if (void 0 !== r) {
66619
+ if (r.has(t)) return r.get(t);
66620
+ r.set(t, Wrapper);
66523
66621
  }
66524
66622
  function Wrapper() {
66525
- return ParseError_construct(Class, arguments, ParseError_getPrototypeOf(this).constructor);
66623
+ return _construct(t, arguments, _getPrototypeOf(this).constructor);
66526
66624
  }
66527
- Wrapper.prototype = Object.create(Class.prototype, {
66625
+ return Wrapper.prototype = Object.create(t.prototype, {
66528
66626
  constructor: {
66529
66627
  value: Wrapper,
66530
- enumerable: false,
66531
- writable: true,
66532
- configurable: true
66628
+ enumerable: !1,
66629
+ writable: !0,
66630
+ configurable: !0
66533
66631
  }
66534
- });
66535
- return ParseError_setPrototypeOf(Wrapper, Class);
66536
- };
66537
- return ParseError_wrapNativeSuper(Class);
66632
+ }), _setPrototypeOf(Wrapper, t);
66633
+ }, ParseError_wrapNativeSuper(t);
66538
66634
  }
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);
66635
+ function _construct(t, e, r) {
66636
+ if (ParseError_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
66637
+ var o = [
66638
+ null
66639
+ ];
66640
+ o.push.apply(o, e);
66641
+ var p = new (t.bind.apply(t, o))();
66642
+ return r && _setPrototypeOf(p, r.prototype), p;
66551
66643
  }
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;
66644
+ function ParseError_isNativeReflectConstruct() {
66556
66645
  try {
66557
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
66558
- return true;
66559
- } catch (e) {
66560
- return false;
66646
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
66647
+ } catch (t) {}
66648
+ return (ParseError_isNativeReflectConstruct = function() {
66649
+ return !!t;
66650
+ })();
66651
+ }
66652
+ function _isNativeFunction(t) {
66653
+ try {
66654
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
66655
+ } catch (n) {
66656
+ return "function" == typeof t;
66561
66657
  }
66562
66658
  }
66563
- function _isNativeFunction(fn) {
66564
- return -1 !== Function.toString.call(fn).indexOf("[native code]");
66659
+ function _setPrototypeOf(t, e) {
66660
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
66661
+ return t.__proto__ = e, t;
66662
+ }, _setPrototypeOf(t, e);
66565
66663
  }
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);
66572
- }
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);
66664
+ function _getPrototypeOf(t) {
66665
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
66666
+ return t.__proto__ || Object.getPrototypeOf(t);
66667
+ }, _getPrototypeOf(t);
66578
66668
  }
66579
66669
  var ParseError_ParseError = /*#__PURE__*/ function(_Error) {
66580
- _inherits(ParseError, _Error);
66581
- var _super = _createSuper(ParseError);
66582
66670
  function ParseError(code) {
66583
66671
  var _this;
66584
66672
  _classCallCheck(this, ParseError);
66585
- _this = _super.call(this, code);
66586
- Object.setPrototypeOf(_assertThisInitialized(_this), ParseError.prototype);
66673
+ _this = _callSuper(this, ParseError, [
66674
+ code
66675
+ ]);
66676
+ Object.setPrototypeOf(_this, ParseError.prototype);
66587
66677
  _this.name = _this.constructor.name;
66588
66678
  return _this;
66589
66679
  }
66680
+ _inherits(ParseError, _Error);
66590
66681
  return _createClass(ParseError);
66591
66682
  }(/*#__PURE__*/ ParseError_wrapNativeSuper(Error));
66592
66683
  function semver_compare(a, b) {
@@ -66609,32 +66700,40 @@ and limitations under the License.
66609
66700
  function isObject_isObject(object) {
66610
66701
  return null != object && object.constructor === objectConstructor;
66611
66702
  }
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);
66703
+ function metadata_typeof(o) {
66704
+ return metadata_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
66705
+ return typeof o;
66706
+ } : function(o) {
66707
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
66708
+ }, metadata_typeof(o);
66618
66709
  }
66619
- function metadata_classCallCheck(instance, Constructor) {
66620
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
66710
+ function metadata_classCallCheck(a, n) {
66711
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
66621
66712
  }
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);
66713
+ function metadata_defineProperties(e, r) {
66714
+ for(var t = 0; t < r.length; t++){
66715
+ var o = r[t];
66716
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, metadata_toPropertyKey(o.key), o);
66629
66717
  }
66630
66718
  }
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;
66719
+ function metadata_createClass(e, r, t) {
66720
+ return r && metadata_defineProperties(e.prototype, r), t && metadata_defineProperties(e, t), Object.defineProperty(e, "prototype", {
66721
+ writable: !1
66722
+ }), e;
66723
+ }
66724
+ function metadata_toPropertyKey(t) {
66725
+ var i = metadata_toPrimitive(t, "string");
66726
+ return "symbol" == metadata_typeof(i) ? i : i + "";
66727
+ }
66728
+ function metadata_toPrimitive(t, r) {
66729
+ if ("object" != metadata_typeof(t) || !t) return t;
66730
+ var e = t[Symbol.toPrimitive];
66731
+ if (void 0 !== e) {
66732
+ var i = e.call(t, r || "default");
66733
+ if ("object" != metadata_typeof(i)) return i;
66734
+ throw new TypeError("@@toPrimitive must return a primitive value.");
66735
+ }
66736
+ return ("string" === r ? String : Number)(t);
66638
66737
  }
66639
66738
  var V3 = '1.2.0';
66640
66739
  var V4 = '1.7.35';
@@ -66647,7 +66746,7 @@ and limitations under the License.
66647
66746
  this.metadata = metadata;
66648
66747
  setVersion.call(this, metadata);
66649
66748
  }
66650
- metadata_createClass(Metadata, [
66749
+ return metadata_createClass(Metadata, [
66651
66750
  {
66652
66751
  key: "getCountries",
66653
66752
  value: function() {
@@ -66840,7 +66939,6 @@ and limitations under the License.
66840
66939
  }
66841
66940
  }
66842
66941
  ]);
66843
- return Metadata;
66844
66942
  }();
66845
66943
  var metadata_NumberingPlan = /*#__PURE__*/ function() {
66846
66944
  function NumberingPlan(metadata, globalMetadataObject) {
@@ -66849,7 +66947,7 @@ and limitations under the License.
66849
66947
  this.metadata = metadata;
66850
66948
  setVersion.call(this, globalMetadataObject.metadata);
66851
66949
  }
66852
- metadata_createClass(NumberingPlan, [
66950
+ return metadata_createClass(NumberingPlan, [
66853
66951
  {
66854
66952
  key: "callingCode",
66855
66953
  value: function() {
@@ -66987,7 +67085,6 @@ and limitations under the License.
66987
67085
  }
66988
67086
  }
66989
67087
  ]);
66990
- return NumberingPlan;
66991
67088
  }();
66992
67089
  var metadata_Format = /*#__PURE__*/ function() {
66993
67090
  function Format(format, metadata) {
@@ -66995,7 +67092,7 @@ and limitations under the License.
66995
67092
  this._format = format;
66996
67093
  this.metadata = metadata;
66997
67094
  }
66998
- metadata_createClass(Format, [
67095
+ return metadata_createClass(Format, [
66999
67096
  {
67000
67097
  key: "pattern",
67001
67098
  value: function() {
@@ -67045,7 +67142,6 @@ and limitations under the License.
67045
67142
  }
67046
67143
  }
67047
67144
  ]);
67048
- return Format;
67049
67145
  }();
67050
67146
  var FIRST_GROUP_ONLY_PREFIX_PATTERN = /^\(?\$1\)?$/;
67051
67147
  var metadata_Type = /*#__PURE__*/ function() {
@@ -67054,7 +67150,7 @@ and limitations under the License.
67054
67150
  this.type = type;
67055
67151
  this.metadata = metadata;
67056
67152
  }
67057
- metadata_createClass(Type, [
67153
+ return metadata_createClass(Type, [
67058
67154
  {
67059
67155
  key: "pattern",
67060
67156
  value: function() {
@@ -67070,7 +67166,6 @@ and limitations under the License.
67070
67166
  }
67071
67167
  }
67072
67168
  ]);
67073
- return Type;
67074
67169
  }();
67075
67170
  function metadata_getType(types, type) {
67076
67171
  switch(type){
@@ -67105,7 +67200,7 @@ and limitations under the License.
67105
67200
  };
67106
67201
  function metadata_getCountryCallingCode(country, metadata) {
67107
67202
  metadata = new metadata_Metadata(metadata);
67108
- if (metadata.hasCountry(country)) return metadata.country(country).countryCallingCode();
67203
+ if (metadata.hasCountry(country)) return metadata.selectNumberingPlan(country).countryCallingCode();
67109
67204
  throw new Error("Unknown country: ".concat(country));
67110
67205
  }
67111
67206
  function setVersion(metadata) {
@@ -67172,36 +67267,34 @@ and limitations under the License.
67172
67267
  i++;
67173
67268
  }
67174
67269
  }
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;
67270
+ function _createForOfIteratorHelperLoose(r, e) {
67271
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67272
+ if (t) return (t = t.call(r)).next.bind(t);
67273
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67274
+ t && (r = t);
67275
+ var o = 0;
67181
67276
  return function() {
67182
- if (i >= o.length) return {
67183
- done: true
67184
- };
67185
- return {
67186
- done: false,
67187
- value: o[i++]
67277
+ return o >= r.length ? {
67278
+ done: !0
67279
+ } : {
67280
+ done: !1,
67281
+ value: r[o++]
67188
67282
  };
67189
67283
  };
67190
67284
  }
67191
67285
  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
67286
  }
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);
67287
+ function _unsupportedIterableToArray(r, a) {
67288
+ if (r) {
67289
+ if ("string" == typeof r) return _arrayLikeToArray(r, a);
67290
+ var t = ({}).toString.call(r).slice(8, -1);
67291
+ 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;
67292
+ }
67200
67293
  }
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;
67294
+ function _arrayLikeToArray(r, a) {
67295
+ (null == a || a > r.length) && (a = r.length);
67296
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67297
+ return n;
67205
67298
  }
67206
67299
  var DIGITS = {
67207
67300
  0: '0',
@@ -67257,36 +67350,34 @@ and limitations under the License.
67257
67350
  }
67258
67351
  return result;
67259
67352
  }
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;
67353
+ function parseIncompletePhoneNumber_createForOfIteratorHelperLoose(r, e) {
67354
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67355
+ if (t) return (t = t.call(r)).next.bind(t);
67356
+ if (Array.isArray(r) || (t = parseIncompletePhoneNumber_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67357
+ t && (r = t);
67358
+ var o = 0;
67266
67359
  return function() {
67267
- if (i >= o.length) return {
67268
- done: true
67269
- };
67270
- return {
67271
- done: false,
67272
- value: o[i++]
67360
+ return o >= r.length ? {
67361
+ done: !0
67362
+ } : {
67363
+ done: !1,
67364
+ value: r[o++]
67273
67365
  };
67274
67366
  };
67275
67367
  }
67276
67368
  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
67369
  }
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);
67370
+ function parseIncompletePhoneNumber_unsupportedIterableToArray(r, a) {
67371
+ if (r) {
67372
+ if ("string" == typeof r) return parseIncompletePhoneNumber_arrayLikeToArray(r, a);
67373
+ var t = ({}).toString.call(r).slice(8, -1);
67374
+ 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;
67375
+ }
67285
67376
  }
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;
67377
+ function parseIncompletePhoneNumber_arrayLikeToArray(r, a) {
67378
+ (null == a || a > r.length) && (a = r.length);
67379
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67380
+ return n;
67290
67381
  }
67291
67382
  function parseIncompletePhoneNumber(string) {
67292
67383
  var result = '';
@@ -67296,46 +67387,44 @@ and limitations under the License.
67296
67387
  }
67297
67388
  return result;
67298
67389
  }
67299
- function parsePhoneNumberCharacter(character, prevParsedCharacters, emitEvent) {
67390
+ function parsePhoneNumberCharacter(character, prevParsedCharacters, eventListener) {
67300
67391
  if ('+' === character) {
67301
67392
  if (prevParsedCharacters) {
67302
- if ('function' == typeof emitEvent) emitEvent('end');
67393
+ if ('function' == typeof eventListener) eventListener('end');
67303
67394
  return;
67304
67395
  }
67305
67396
  return '+';
67306
67397
  }
67307
67398
  return parseDigit(character);
67308
67399
  }
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;
67400
+ function mergeArrays_createForOfIteratorHelperLoose(r, e) {
67401
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67402
+ if (t) return (t = t.call(r)).next.bind(t);
67403
+ if (Array.isArray(r) || (t = mergeArrays_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67404
+ t && (r = t);
67405
+ var o = 0;
67315
67406
  return function() {
67316
- if (i >= o.length) return {
67317
- done: true
67318
- };
67319
- return {
67320
- done: false,
67321
- value: o[i++]
67407
+ return o >= r.length ? {
67408
+ done: !0
67409
+ } : {
67410
+ done: !1,
67411
+ value: r[o++]
67322
67412
  };
67323
67413
  };
67324
67414
  }
67325
67415
  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
67416
  }
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);
67417
+ function mergeArrays_unsupportedIterableToArray(r, a) {
67418
+ if (r) {
67419
+ if ("string" == typeof r) return mergeArrays_arrayLikeToArray(r, a);
67420
+ var t = ({}).toString.call(r).slice(8, -1);
67421
+ 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;
67422
+ }
67334
67423
  }
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;
67424
+ function mergeArrays_arrayLikeToArray(r, a) {
67425
+ (null == a || a > r.length) && (a = r.length);
67426
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67427
+ return n;
67339
67428
  }
67340
67429
  function mergeArrays(a, b) {
67341
67430
  var merged = a.slice();
@@ -67347,15 +67436,19 @@ and limitations under the License.
67347
67436
  return a - b;
67348
67437
  });
67349
67438
  }
67350
- function checkNumberLength(nationalNumber, metadata) {
67351
- return checkNumberLengthForType(nationalNumber, void 0, metadata);
67439
+ function checkNumberLength(nationalNumber, country, metadata) {
67440
+ return checkNumberLengthForType(nationalNumber, country, void 0, metadata);
67352
67441
  }
67353
- function checkNumberLengthForType(nationalNumber, type, metadata) {
67442
+ function checkNumberLengthForType(nationalNumber, country, type, metadata) {
67443
+ if (country) {
67444
+ metadata = new metadata_Metadata(metadata.metadata);
67445
+ metadata.selectNumberingPlan(country);
67446
+ }
67354
67447
  var type_info = metadata.type(type);
67355
67448
  var possible_lengths = type_info && type_info.possibleLengths() || metadata.possibleLengths();
67356
67449
  if (!possible_lengths) return 'IS_POSSIBLE';
67357
67450
  if ('FIXED_LINE_OR_MOBILE' === type) {
67358
- if (!metadata.type('FIXED_LINE')) return checkNumberLengthForType(nationalNumber, 'MOBILE', metadata);
67451
+ if (!metadata.type('FIXED_LINE')) return checkNumberLengthForType(nationalNumber, country, 'MOBILE', metadata);
67359
67452
  var mobile_type = metadata.type('MOBILE');
67360
67453
  if (mobile_type) possible_lengths = mergeArrays(possible_lengths, mobile_type.possibleLengths());
67361
67454
  } else if (type && !type_info) return 'INVALID_LENGTH';
@@ -67376,58 +67469,56 @@ and limitations under the License.
67376
67469
  if (!input.phone) return false;
67377
67470
  if (input.country) {
67378
67471
  if (!metadata.hasCountry(input.country)) throw new Error("Unknown country: ".concat(input.country));
67379
- metadata.country(input.country);
67472
+ metadata.selectNumberingPlan(input.country);
67380
67473
  } else {
67381
67474
  if (!input.countryCallingCode) throw new Error('Invalid phone number object passed');
67382
67475
  metadata.selectNumberingPlan(input.countryCallingCode);
67383
67476
  }
67384
67477
  }
67385
- if (metadata.possibleLengths()) return isPossibleNumber(input.phone || input.nationalNumber, metadata);
67478
+ if (metadata.possibleLengths()) return isPossibleNumber(input.phone || input.nationalNumber, input.country, metadata);
67386
67479
  if (input.countryCallingCode && metadata.isNonGeographicCallingCode(input.countryCallingCode)) return true;
67387
67480
  throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.');
67388
67481
  }
67389
- function isPossibleNumber(nationalNumber, metadata) {
67390
- switch(checkNumberLength(nationalNumber, metadata)){
67482
+ function isPossibleNumber(nationalNumber, country, metadata) {
67483
+ switch(checkNumberLength(nationalNumber, country, metadata)){
67391
67484
  case 'IS_POSSIBLE':
67392
67485
  return true;
67393
67486
  default:
67394
67487
  return false;
67395
67488
  }
67396
67489
  }
67397
- function matchesEntirely(text, regular_expression) {
67490
+ function matchesEntirely(text, regularExpressionText) {
67398
67491
  text = text || '';
67399
- return new RegExp('^(?:' + regular_expression + ')$').test(text);
67492
+ return new RegExp('^(?:' + regularExpressionText + ')$').test(text);
67400
67493
  }
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;
67494
+ function getNumberType_createForOfIteratorHelperLoose(r, e) {
67495
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67496
+ if (t) return (t = t.call(r)).next.bind(t);
67497
+ if (Array.isArray(r) || (t = getNumberType_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67498
+ t && (r = t);
67499
+ var o = 0;
67407
67500
  return function() {
67408
- if (i >= o.length) return {
67409
- done: true
67410
- };
67411
- return {
67412
- done: false,
67413
- value: o[i++]
67501
+ return o >= r.length ? {
67502
+ done: !0
67503
+ } : {
67504
+ done: !1,
67505
+ value: r[o++]
67414
67506
  };
67415
67507
  };
67416
67508
  }
67417
67509
  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
67510
  }
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);
67511
+ function getNumberType_unsupportedIterableToArray(r, a) {
67512
+ if (r) {
67513
+ if ("string" == typeof r) return getNumberType_arrayLikeToArray(r, a);
67514
+ var t = ({}).toString.call(r).slice(8, -1);
67515
+ 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;
67516
+ }
67426
67517
  }
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;
67518
+ function getNumberType_arrayLikeToArray(r, a) {
67519
+ (null == a || a > r.length) && (a = r.length);
67520
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67521
+ return n;
67431
67522
  }
67432
67523
  var NON_FIXED_LINE_PHONE_TYPES = [
67433
67524
  'MOBILE',
@@ -67459,10 +67550,10 @@ and limitations under the License.
67459
67550
  }
67460
67551
  }
67461
67552
  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());
67553
+ var typeDefinition = metadata.type(type);
67554
+ if (!typeDefinition || !typeDefinition.pattern()) return false;
67555
+ if (typeDefinition.possibleLengths() && typeDefinition.possibleLengths().indexOf(nationalNumber.length) < 0) return false;
67556
+ return matchesEntirely(nationalNumber, typeDefinition.pattern());
67466
67557
  }
67467
67558
  function isValidNumber(input, options, metadata) {
67468
67559
  options = options || {};
@@ -67534,14 +67625,75 @@ and limitations under the License.
67534
67625
  nationalNumber: number
67535
67626
  };
67536
67627
  }
67537
- function extractNationalNumber(number, metadata) {
67628
+ function getCountryByNationalNumber_createForOfIteratorHelperLoose(r, e) {
67629
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
67630
+ if (t) return (t = t.call(r)).next.bind(t);
67631
+ if (Array.isArray(r) || (t = getCountryByNationalNumber_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
67632
+ t && (r = t);
67633
+ var o = 0;
67634
+ return function() {
67635
+ return o >= r.length ? {
67636
+ done: !0
67637
+ } : {
67638
+ done: !1,
67639
+ value: r[o++]
67640
+ };
67641
+ };
67642
+ }
67643
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
67644
+ }
67645
+ function getCountryByNationalNumber_unsupportedIterableToArray(r, a) {
67646
+ if (r) {
67647
+ if ("string" == typeof r) return getCountryByNationalNumber_arrayLikeToArray(r, a);
67648
+ var t = ({}).toString.call(r).slice(8, -1);
67649
+ 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;
67650
+ }
67651
+ }
67652
+ function getCountryByNationalNumber_arrayLikeToArray(r, a) {
67653
+ (null == a || a > r.length) && (a = r.length);
67654
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
67655
+ return n;
67656
+ }
67657
+ function getCountryByNationalNumber(nationalPhoneNumber, _ref) {
67658
+ var countries = _ref.countries, metadata = _ref.metadata;
67659
+ metadata = new metadata_Metadata(metadata);
67660
+ for(var _iterator = getCountryByNationalNumber_createForOfIteratorHelperLoose(countries), _step; !(_step = _iterator()).done;){
67661
+ var country = _step.value;
67662
+ metadata.selectNumberingPlan(country);
67663
+ if (metadata.leadingDigits()) {
67664
+ if (nationalPhoneNumber && 0 === nationalPhoneNumber.search(metadata.leadingDigits())) return country;
67665
+ } else if (getNumberType({
67666
+ phone: nationalPhoneNumber,
67667
+ country: country
67668
+ }, void 0, metadata.metadata)) return country;
67669
+ }
67670
+ }
67671
+ var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67672
+ function getCountryByCallingCode(callingCode, _ref) {
67673
+ var nationalPhoneNumber = _ref.nationalNumber, metadata = _ref.metadata;
67674
+ if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
67675
+ if (metadata.isNonGeographicCallingCode(callingCode)) return '001';
67676
+ }
67677
+ var possibleCountries = metadata.getCountryCodesForCallingCode(callingCode);
67678
+ if (!possibleCountries) return;
67679
+ if (1 === possibleCountries.length) return possibleCountries[0];
67680
+ return getCountryByNationalNumber(nationalPhoneNumber, {
67681
+ countries: possibleCountries,
67682
+ metadata: metadata.metadata
67683
+ });
67684
+ }
67685
+ function extractNationalNumber(number, country, metadata) {
67538
67686
  var _extractNationalNumbe = extractNationalNumberFromPossiblyIncompleteNumber(number, metadata), carrierCode = _extractNationalNumbe.carrierCode, nationalNumber = _extractNationalNumbe.nationalNumber;
67539
67687
  if (nationalNumber !== number) {
67540
67688
  if (!shouldHaveExtractedNationalPrefix(number, nationalNumber, metadata)) return {
67541
67689
  nationalNumber: number
67542
67690
  };
67543
- if (metadata.possibleLengths()) {
67544
- if (!isPossibleIncompleteNationalNumber(nationalNumber, metadata)) return {
67691
+ if (metadata.numberingPlan.possibleLengths()) {
67692
+ if (!country) country = getCountryByCallingCode(metadata.numberingPlan.callingCode(), {
67693
+ nationalNumber: nationalNumber,
67694
+ metadata: metadata
67695
+ });
67696
+ if (!isPossibleIncompleteNationalNumber(nationalNumber, country, metadata)) return {
67545
67697
  nationalNumber: number
67546
67698
  };
67547
67699
  }
@@ -67555,8 +67707,8 @@ and limitations under the License.
67555
67707
  if (matchesEntirely(nationalNumberBefore, metadata.nationalNumberPattern()) && !matchesEntirely(nationalNumberAfter, metadata.nationalNumberPattern())) return false;
67556
67708
  return true;
67557
67709
  }
67558
- function isPossibleIncompleteNationalNumber(nationalNumber, metadata) {
67559
- switch(checkNumberLength(nationalNumber, metadata)){
67710
+ function isPossibleIncompleteNationalNumber(nationalNumber, country, metadata) {
67711
+ switch(checkNumberLength(nationalNumber, country, metadata)){
67560
67712
  case 'TOO_SHORT':
67561
67713
  case 'INVALID_LENGTH':
67562
67714
  return false;
@@ -67564,15 +67716,15 @@ and limitations under the License.
67564
67716
  return true;
67565
67717
  }
67566
67718
  }
67567
- function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata) {
67568
- var countryCallingCode = country ? metadata_getCountryCallingCode(country, metadata) : callingCode;
67719
+ function extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata) {
67720
+ var countryCallingCode = country || defaultCountry ? metadata_getCountryCallingCode(country || defaultCountry, metadata) : defaultCallingCode;
67569
67721
  if (0 === number.indexOf(countryCallingCode)) {
67570
67722
  metadata = new metadata_Metadata(metadata);
67571
- metadata.selectNumberingPlan(country, callingCode);
67723
+ metadata.selectNumberingPlan(country || defaultCountry, countryCallingCode);
67572
67724
  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 {
67725
+ var _extractNationalNumbe = extractNationalNumber(possibleShorterNumber, country, metadata), possibleShorterNationalNumber = _extractNationalNumbe.nationalNumber;
67726
+ var _extractNationalNumbe2 = extractNationalNumber(number, country, metadata), nationalNumber = _extractNationalNumbe2.nationalNumber;
67727
+ if (!matchesEntirely(nationalNumber, metadata.nationalNumberPattern()) && matchesEntirely(possibleShorterNationalNumber, metadata.nationalNumberPattern()) || 'TOO_LONG' === checkNumberLength(nationalNumber, country, metadata)) return {
67576
67728
  countryCallingCode: countryCallingCode,
67577
67729
  number: possibleShorterNumber
67578
67730
  };
@@ -67581,17 +67733,17 @@ and limitations under the License.
67581
67733
  number: number
67582
67734
  };
67583
67735
  }
67584
- function extractCountryCallingCode_extractCountryCallingCode(number, country, callingCode, metadata) {
67736
+ function extractCountryCallingCode_extractCountryCallingCode(number, country, defaultCountry, defaultCallingCode, metadata) {
67585
67737
  if (!number) return {};
67586
67738
  var isNumberWithIddPrefix;
67587
67739
  if ('+' !== number[0]) {
67588
- var numberWithoutIDD = stripIddPrefix(number, country, callingCode, metadata);
67740
+ var numberWithoutIDD = stripIddPrefix(number, country || defaultCountry, defaultCallingCode, metadata);
67589
67741
  if (numberWithoutIDD && numberWithoutIDD !== number) {
67590
67742
  isNumberWithIddPrefix = true;
67591
67743
  number = '+' + numberWithoutIDD;
67592
67744
  } else {
67593
- if (country || callingCode) {
67594
- var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, callingCode, metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, shorterNumber = _extractCountryCallin.number;
67745
+ if (country || defaultCountry || defaultCallingCode) {
67746
+ var _extractCountryCallin = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(number, country, defaultCountry, defaultCallingCode, metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, shorterNumber = _extractCountryCallin.number;
67595
67747
  if (countryCallingCode) return {
67596
67748
  countryCallingCodeSource: 'FROM_NUMBER_WITHOUT_PLUS_SIGN',
67597
67749
  countryCallingCode: countryCallingCode,
@@ -67644,79 +67796,17 @@ and limitations under the License.
67644
67796
  if ('+' !== number[0]) throw new Error("\"formatRFC3966()\" expects \"number\" to be in E.164 format.");
67645
67797
  return "tel:".concat(number).concat(ext ? ';ext=' + ext : '');
67646
67798
  }
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
67799
  var DEFAULT_OPTIONS = {
67710
67800
  formatExtension: function(formattedNumber, extension, metadata) {
67711
67801
  return "".concat(formattedNumber).concat(metadata.ext()).concat(extension);
67712
67802
  }
67713
67803
  };
67714
67804
  function formatNumber(input, format, options, metadata) {
67715
- options = options ? _objectSpread(_objectSpread({}, DEFAULT_OPTIONS), options) : DEFAULT_OPTIONS;
67805
+ options = options ? merge({}, DEFAULT_OPTIONS, options) : DEFAULT_OPTIONS;
67716
67806
  metadata = new metadata_Metadata(metadata);
67717
67807
  if (input.country && '001' !== input.country) {
67718
67808
  if (!metadata.hasCountry(input.country)) throw new Error("Unknown country: ".concat(input.country));
67719
- metadata.country(input.country);
67809
+ metadata.selectNumberingPlan(input.country);
67720
67810
  } else {
67721
67811
  if (!input.countryCallingCode) return input.phone || '';
67722
67812
  metadata.selectNumberingPlan(input.countryCallingCode);
@@ -67744,6 +67834,7 @@ and limitations under the License.
67744
67834
  case 'IDD':
67745
67835
  if (!options.fromCountry) return;
67746
67836
  var formattedNumber = formatIDD(nationalNumber, input.carrierCode, countryCallingCode, options.fromCountry, metadata);
67837
+ if (!formattedNumber) return;
67747
67838
  return addExtension(formattedNumber, input.ext, metadata, options.formatExtension);
67748
67839
  default:
67749
67840
  throw new Error("Unknown \"format\" argument passed to \"formatNumber()\": \"".concat(format, "\""));
@@ -67759,15 +67850,14 @@ and limitations under the License.
67759
67850
  metadata: metadata
67760
67851
  });
67761
67852
  }
67762
- function chooseFormatForNumber(availableFormats, nationalNnumber) {
67763
- for(var _iterator = format_createForOfIteratorHelperLoose(availableFormats), _step; !(_step = _iterator()).done;){
67764
- var format = _step.value;
67853
+ function chooseFormatForNumber(availableFormats, nationalNumber) {
67854
+ return pickFirstMatchingElement(availableFormats, function(format) {
67765
67855
  if (format.leadingDigitsPatterns().length > 0) {
67766
67856
  var lastLeadingDigitsPattern = format.leadingDigitsPatterns()[format.leadingDigitsPatterns().length - 1];
67767
- if (0 !== nationalNnumber.search(lastLeadingDigitsPattern)) continue;
67857
+ if (0 !== nationalNumber.search(lastLeadingDigitsPattern)) return false;
67768
67858
  }
67769
- if (matchesEntirely(nationalNnumber, format.pattern())) return format;
67770
- }
67859
+ return matchesEntirely(nationalNumber, format.pattern());
67860
+ });
67771
67861
  }
67772
67862
  function addExtension(formattedNumber, ext, metadata, formatExtension) {
67773
67863
  return ext ? formatExtension(formattedNumber, ext, metadata) : formattedNumber;
@@ -67782,74 +67872,101 @@ and limitations under the License.
67782
67872
  var iddPrefix = getIddPrefix(fromCountry, void 0, metadata.metadata);
67783
67873
  if (iddPrefix) return "".concat(iddPrefix, " ").concat(countryCallingCode, " ").concat(formatNationalNumber(nationalNumber, null, 'INTERNATIONAL', metadata));
67784
67874
  }
67785
- function PhoneNumber_ownKeys(object, enumerableOnly) {
67786
- var keys = Object.keys(object);
67875
+ function merge() {
67876
+ var i = 1;
67877
+ for(var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++)objects[_key] = arguments[_key];
67878
+ while(i < objects.length){
67879
+ if (objects[i]) for(var key in objects[i])objects[0][key] = objects[i][key];
67880
+ i++;
67881
+ }
67882
+ return objects[0];
67883
+ }
67884
+ function pickFirstMatchingElement(elements, testFunction) {
67885
+ var i = 0;
67886
+ while(i < elements.length){
67887
+ if (testFunction(elements[i])) return elements[i];
67888
+ i++;
67889
+ }
67890
+ }
67891
+ function PhoneNumber_typeof(o) {
67892
+ return PhoneNumber_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
67893
+ return typeof o;
67894
+ } : function(o) {
67895
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
67896
+ }, PhoneNumber_typeof(o);
67897
+ }
67898
+ function ownKeys(e, r) {
67899
+ var t = Object.keys(e);
67787
67900
  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);
67901
+ var o = Object.getOwnPropertySymbols(e);
67902
+ r && (o = o.filter(function(r) {
67903
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
67904
+ })), t.push.apply(t, o);
67792
67905
  }
67793
- return keys;
67906
+ return t;
67794
67907
  }
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));
67908
+ function _objectSpread(e) {
67909
+ for(var r = 1; r < arguments.length; r++){
67910
+ var t = null != arguments[r] ? arguments[r] : {};
67911
+ r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
67912
+ _defineProperty(e, r, t[r]);
67913
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
67914
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
67802
67915
  });
67803
67916
  }
67804
- return target;
67917
+ return e;
67805
67918
  }
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;
67919
+ function _defineProperty(e, r, t) {
67920
+ return (r = PhoneNumber_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
67921
+ value: t,
67922
+ enumerable: !0,
67923
+ configurable: !0,
67924
+ writable: !0
67925
+ }) : e[r] = t, e;
67815
67926
  }
67816
- function PhoneNumber_classCallCheck(instance, Constructor) {
67817
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
67927
+ function PhoneNumber_classCallCheck(a, n) {
67928
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
67818
67929
  }
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);
67930
+ function PhoneNumber_defineProperties(e, r) {
67931
+ for(var t = 0; t < r.length; t++){
67932
+ var o = r[t];
67933
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, PhoneNumber_toPropertyKey(o.key), o);
67826
67934
  }
67827
67935
  }
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;
67936
+ function PhoneNumber_createClass(e, r, t) {
67937
+ return r && PhoneNumber_defineProperties(e.prototype, r), t && PhoneNumber_defineProperties(e, t), Object.defineProperty(e, "prototype", {
67938
+ writable: !1
67939
+ }), e;
67835
67940
  }
67836
- var USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67941
+ function PhoneNumber_toPropertyKey(t) {
67942
+ var i = PhoneNumber_toPrimitive(t, "string");
67943
+ return "symbol" == PhoneNumber_typeof(i) ? i : i + "";
67944
+ }
67945
+ function PhoneNumber_toPrimitive(t, r) {
67946
+ if ("object" != PhoneNumber_typeof(t) || !t) return t;
67947
+ var e = t[Symbol.toPrimitive];
67948
+ if (void 0 !== e) {
67949
+ var i = e.call(t, r || "default");
67950
+ if ("object" != PhoneNumber_typeof(i)) return i;
67951
+ throw new TypeError("@@toPrimitive must return a primitive value.");
67952
+ }
67953
+ return ("string" === r ? String : Number)(t);
67954
+ }
67955
+ var PhoneNumber_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
67837
67956
  var PhoneNumber_PhoneNumber = /*#__PURE__*/ function() {
67838
67957
  function PhoneNumber(countryOrCountryCallingCode, nationalNumber, metadata) {
67839
67958
  PhoneNumber_classCallCheck(this, PhoneNumber);
67840
67959
  if (!countryOrCountryCallingCode) throw new TypeError('First argument is required');
67841
67960
  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
- }
67961
+ if ('+' === countryOrCountryCallingCode[0] && !nationalNumber) throw new TypeError('`metadata` argument not passed');
67962
+ if (isObject_isObject(nationalNumber) && isObject_isObject(nationalNumber.countries)) {
67963
+ metadata = nationalNumber;
67964
+ var e164Number = countryOrCountryCallingCode;
67965
+ if (!E164_NUMBER_REGEXP.test(e164Number)) throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');
67966
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(e164Number, void 0, void 0, void 0, metadata), _countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
67967
+ nationalNumber = number;
67968
+ countryOrCountryCallingCode = _countryCallingCode;
67969
+ if (!nationalNumber) throw new Error('Invalid `number` argument passed: too short');
67853
67970
  }
67854
67971
  if (!nationalNumber) throw new TypeError('`nationalNumber` argument is required');
67855
67972
  if ('string' != typeof nationalNumber) throw new TypeError('`nationalNumber` argument must be a string');
@@ -67863,7 +67980,7 @@ and limitations under the License.
67863
67980
  return metadata;
67864
67981
  };
67865
67982
  }
67866
- PhoneNumber_createClass(PhoneNumber, [
67983
+ return PhoneNumber_createClass(PhoneNumber, [
67867
67984
  {
67868
67985
  key: "setExt",
67869
67986
  value: function(ext) {
@@ -67919,7 +68036,7 @@ and limitations under the License.
67919
68036
  {
67920
68037
  key: "format",
67921
68038
  value: function(_format, options) {
67922
- return formatNumber(this, _format, options ? PhoneNumber_objectSpread(PhoneNumber_objectSpread({}, options), {}, {
68039
+ return formatNumber(this, _format, options ? _objectSpread(_objectSpread({}, options), {}, {
67923
68040
  v2: true
67924
68041
  }) : {
67925
68042
  v2: true
@@ -67945,7 +68062,6 @@ and limitations under the License.
67945
68062
  }
67946
68063
  }
67947
68064
  ]);
67948
- return PhoneNumber;
67949
68065
  }();
67950
68066
  var PhoneNumber_isCountryCode = function(value) {
67951
68067
  return /^[A-Z]{2}$/.test(value);
@@ -67960,7 +68076,7 @@ and limitations under the License.
67960
68076
  countryCallingCode = metadata.countryCallingCode();
67961
68077
  } else {
67962
68078
  countryCallingCode = countryOrCountryCallingCode;
67963
- if (USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
68079
+ if (PhoneNumber_USE_NON_GEOGRAPHIC_COUNTRY_CODE) {
67964
68080
  if (metadata.isNonGeographicCallingCode(countryCallingCode)) country = '001';
67965
68081
  }
67966
68082
  }
@@ -67970,66 +68086,6 @@ and limitations under the License.
67970
68086
  };
67971
68087
  }
67972
68088
  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
68089
  var PLUS_SIGN = '+';
68034
68090
  var RFC3966_VISUAL_SEPARATOR_ = '[\\-\\.\\(\\)]?';
68035
68091
  var RFC3966_PHONE_DIGIT_ = "([" + VALID_DIGITS + "]|" + RFC3966_VISUAL_SEPARATOR_ + ')';
@@ -68124,7 +68180,7 @@ and limitations under the License.
68124
68180
  countryCallingCode: countryCallingCode,
68125
68181
  carrierCode: carrierCode,
68126
68182
  valid: valid,
68127
- possible: !!valid || !!(true === options.extended && metadata.possibleLengths() && isPossibleNumber(nationalNumber, metadata)) || false,
68183
+ possible: !!valid || !!(true === options.extended && metadata.possibleLengths() && isPossibleNumber(nationalNumber, country, metadata)) || false,
68128
68184
  phone: nationalNumber,
68129
68185
  ext: ext
68130
68186
  };
@@ -68168,7 +68224,7 @@ and limitations under the License.
68168
68224
  return result;
68169
68225
  }
68170
68226
  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;
68227
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode(parseIncompletePhoneNumber(formattedPhoneNumber), void 0, defaultCountry, defaultCallingCode, metadata.metadata), countryCallingCodeSource = _extractCountryCallin.countryCallingCodeSource, countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
68172
68228
  var country;
68173
68229
  if (countryCallingCode) metadata.selectNumberingPlan(countryCallingCode);
68174
68230
  else {
@@ -68184,15 +68240,14 @@ and limitations under the License.
68184
68240
  countryCallingCodeSource: countryCallingCodeSource,
68185
68241
  countryCallingCode: countryCallingCode
68186
68242
  };
68187
- var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), metadata), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
68243
+ var _extractNationalNumbe = extractNationalNumber(parseIncompletePhoneNumber(number), country, metadata), nationalNumber = _extractNationalNumbe.nationalNumber, carrierCode = _extractNationalNumbe.carrierCode;
68188
68244
  var exactCountry = getCountryByCallingCode(countryCallingCode, {
68189
68245
  nationalNumber: nationalNumber,
68190
- defaultCountry: defaultCountry,
68191
68246
  metadata: metadata
68192
68247
  });
68193
68248
  if (exactCountry) {
68194
68249
  country = exactCountry;
68195
- '001' === exactCountry || metadata.country(country);
68250
+ '001' === exactCountry || metadata.selectNumberingPlan(country);
68196
68251
  }
68197
68252
  return {
68198
68253
  country: country,
@@ -68202,118 +68257,152 @@ and limitations under the License.
68202
68257
  carrierCode: carrierCode
68203
68258
  };
68204
68259
  }
68205
- function parsePhoneNumberWithError_ownKeys(object, enumerableOnly) {
68206
- var keys = Object.keys(object);
68260
+ function parsePhoneNumberWithError_typeof(o) {
68261
+ return parsePhoneNumberWithError_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68262
+ return typeof o;
68263
+ } : function(o) {
68264
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68265
+ }, parsePhoneNumberWithError_typeof(o);
68266
+ }
68267
+ function parsePhoneNumberWithError_ownKeys(e, r) {
68268
+ var t = Object.keys(e);
68207
68269
  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);
68270
+ var o = Object.getOwnPropertySymbols(e);
68271
+ r && (o = o.filter(function(r) {
68272
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
68273
+ })), t.push.apply(t, o);
68212
68274
  }
68213
- return keys;
68275
+ return t;
68214
68276
  }
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));
68277
+ function parsePhoneNumberWithError_objectSpread(e) {
68278
+ for(var r = 1; r < arguments.length; r++){
68279
+ var t = null != arguments[r] ? arguments[r] : {};
68280
+ r % 2 ? parsePhoneNumberWithError_ownKeys(Object(t), !0).forEach(function(r) {
68281
+ parsePhoneNumberWithError_defineProperty(e, r, t[r]);
68282
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : parsePhoneNumberWithError_ownKeys(Object(t)).forEach(function(r) {
68283
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
68222
68284
  });
68223
68285
  }
68224
- return target;
68286
+ return e;
68225
68287
  }
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;
68288
+ function parsePhoneNumberWithError_defineProperty(e, r, t) {
68289
+ return (r = parsePhoneNumberWithError_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
68290
+ value: t,
68291
+ enumerable: !0,
68292
+ configurable: !0,
68293
+ writable: !0
68294
+ }) : e[r] = t, e;
68295
+ }
68296
+ function parsePhoneNumberWithError_toPropertyKey(t) {
68297
+ var i = parsePhoneNumberWithError_toPrimitive(t, "string");
68298
+ return "symbol" == parsePhoneNumberWithError_typeof(i) ? i : i + "";
68299
+ }
68300
+ function parsePhoneNumberWithError_toPrimitive(t, r) {
68301
+ if ("object" != parsePhoneNumberWithError_typeof(t) || !t) return t;
68302
+ var e = t[Symbol.toPrimitive];
68303
+ if (void 0 !== e) {
68304
+ var i = e.call(t, r || "default");
68305
+ if ("object" != parsePhoneNumberWithError_typeof(i)) return i;
68306
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68307
+ }
68308
+ return ("string" === r ? String : Number)(t);
68235
68309
  }
68236
68310
  function parsePhoneNumberWithError(text, options, metadata) {
68237
68311
  return parse_parse(text, parsePhoneNumberWithError_objectSpread(parsePhoneNumberWithError_objectSpread({}, options), {}, {
68238
68312
  v2: true
68239
68313
  }), metadata);
68240
68314
  }
68241
- function normalizeArguments_ownKeys(object, enumerableOnly) {
68242
- var keys = Object.keys(object);
68315
+ function normalizeArguments_typeof(o) {
68316
+ return normalizeArguments_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68317
+ return typeof o;
68318
+ } : function(o) {
68319
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68320
+ }, normalizeArguments_typeof(o);
68321
+ }
68322
+ function normalizeArguments_ownKeys(e, r) {
68323
+ var t = Object.keys(e);
68243
68324
  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);
68325
+ var o = Object.getOwnPropertySymbols(e);
68326
+ r && (o = o.filter(function(r) {
68327
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
68328
+ })), t.push.apply(t, o);
68248
68329
  }
68249
- return keys;
68330
+ return t;
68250
68331
  }
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));
68332
+ function normalizeArguments_objectSpread(e) {
68333
+ for(var r = 1; r < arguments.length; r++){
68334
+ var t = null != arguments[r] ? arguments[r] : {};
68335
+ r % 2 ? normalizeArguments_ownKeys(Object(t), !0).forEach(function(r) {
68336
+ normalizeArguments_defineProperty(e, r, t[r]);
68337
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : normalizeArguments_ownKeys(Object(t)).forEach(function(r) {
68338
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
68258
68339
  });
68259
68340
  }
68260
- return target;
68341
+ return e;
68261
68342
  }
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;
68343
+ function normalizeArguments_defineProperty(e, r, t) {
68344
+ return (r = normalizeArguments_toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
68345
+ value: t,
68346
+ enumerable: !0,
68347
+ configurable: !0,
68348
+ writable: !0
68349
+ }) : e[r] = t, e;
68350
+ }
68351
+ function normalizeArguments_toPropertyKey(t) {
68352
+ var i = normalizeArguments_toPrimitive(t, "string");
68353
+ return "symbol" == normalizeArguments_typeof(i) ? i : i + "";
68354
+ }
68355
+ function normalizeArguments_toPrimitive(t, r) {
68356
+ if ("object" != normalizeArguments_typeof(t) || !t) return t;
68357
+ var e = t[Symbol.toPrimitive];
68358
+ if (void 0 !== e) {
68359
+ var i = e.call(t, r || "default");
68360
+ if ("object" != normalizeArguments_typeof(i)) return i;
68361
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68362
+ }
68363
+ return ("string" === r ? String : Number)(t);
68271
68364
  }
68272
- function normalizeArguments_slicedToArray(arr, i) {
68273
- return normalizeArguments_arrayWithHoles(arr) || normalizeArguments_iterableToArrayLimit(arr, i) || normalizeArguments_unsupportedIterableToArray(arr, i) || normalizeArguments_nonIterableRest();
68365
+ function normalizeArguments_slicedToArray(r, e) {
68366
+ return normalizeArguments_arrayWithHoles(r) || normalizeArguments_iterableToArrayLimit(r, e) || normalizeArguments_unsupportedIterableToArray(r, e) || normalizeArguments_nonIterableRest();
68274
68367
  }
68275
68368
  function normalizeArguments_nonIterableRest() {
68276
68369
  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
68370
  }
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);
68371
+ function normalizeArguments_unsupportedIterableToArray(r, a) {
68372
+ if (r) {
68373
+ if ("string" == typeof r) return normalizeArguments_arrayLikeToArray(r, a);
68374
+ var t = ({}).toString.call(r).slice(8, -1);
68375
+ 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;
68376
+ }
68285
68377
  }
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;
68378
+ function normalizeArguments_arrayLikeToArray(r, a) {
68379
+ (null == a || a > r.length) && (a = r.length);
68380
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68381
+ return n;
68290
68382
  }
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{
68383
+ function normalizeArguments_iterableToArrayLimit(r, l) {
68384
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68385
+ if (null != t) {
68386
+ var e, n, i, u, a = [], f = !0, o = !1;
68307
68387
  try {
68308
- if (!_n && null != _i["return"]) _i["return"]();
68388
+ if (i = (t = t.call(r)).next, 0 === l) {
68389
+ if (Object(t) !== t) return;
68390
+ f = !1;
68391
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
68392
+ } catch (r) {
68393
+ o = !0, n = r;
68309
68394
  } finally{
68310
- if (_d) throw _e;
68395
+ try {
68396
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
68397
+ } finally{
68398
+ if (o) throw n;
68399
+ }
68311
68400
  }
68401
+ return a;
68312
68402
  }
68313
- return _arr;
68314
68403
  }
68315
- function normalizeArguments_arrayWithHoles(arr) {
68316
- if (Array.isArray(arr)) return arr;
68404
+ function normalizeArguments_arrayWithHoles(r) {
68405
+ if (Array.isArray(r)) return r;
68317
68406
  }
68318
68407
  function normalizeArguments(args) {
68319
68408
  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 +68443,40 @@ and limitations under the License.
68354
68443
  function exports_parsePhoneNumberWithError_parsePhoneNumberWithError() {
68355
68444
  return withMetadataArgument(parsePhoneNumberWithError_parsePhoneNumberWithError, arguments);
68356
68445
  }
68357
- function AsYouTypeState_classCallCheck(instance, Constructor) {
68358
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68446
+ function AsYouTypeState_typeof(o) {
68447
+ return AsYouTypeState_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68448
+ return typeof o;
68449
+ } : function(o) {
68450
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68451
+ }, AsYouTypeState_typeof(o);
68452
+ }
68453
+ function AsYouTypeState_classCallCheck(a, n) {
68454
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68359
68455
  }
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);
68456
+ function AsYouTypeState_defineProperties(e, r) {
68457
+ for(var t = 0; t < r.length; t++){
68458
+ var o = r[t];
68459
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeState_toPropertyKey(o.key), o);
68367
68460
  }
68368
68461
  }
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;
68462
+ function AsYouTypeState_createClass(e, r, t) {
68463
+ return r && AsYouTypeState_defineProperties(e.prototype, r), t && AsYouTypeState_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68464
+ writable: !1
68465
+ }), e;
68466
+ }
68467
+ function AsYouTypeState_toPropertyKey(t) {
68468
+ var i = AsYouTypeState_toPrimitive(t, "string");
68469
+ return "symbol" == AsYouTypeState_typeof(i) ? i : i + "";
68470
+ }
68471
+ function AsYouTypeState_toPrimitive(t, r) {
68472
+ if ("object" != AsYouTypeState_typeof(t) || !t) return t;
68473
+ var e = t[Symbol.toPrimitive];
68474
+ if (void 0 !== e) {
68475
+ var i = e.call(t, r || "default");
68476
+ if ("object" != AsYouTypeState_typeof(i)) return i;
68477
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68478
+ }
68479
+ return ("string" === r ? String : Number)(t);
68376
68480
  }
68377
68481
  var AsYouTypeState_AsYouTypeState = /*#__PURE__*/ function() {
68378
68482
  function AsYouTypeState(_ref) {
@@ -68381,7 +68485,7 @@ and limitations under the License.
68381
68485
  this.onCountryChange = onCountryChange;
68382
68486
  this.onCallingCodeChange = onCallingCodeChange;
68383
68487
  }
68384
- AsYouTypeState_createClass(AsYouTypeState, [
68488
+ return AsYouTypeState_createClass(AsYouTypeState, [
68385
68489
  {
68386
68490
  key: "reset",
68387
68491
  value: function(_ref2) {
@@ -68399,10 +68503,10 @@ and limitations under the License.
68399
68503
  key: "resetNationalSignificantNumber",
68400
68504
  value: function() {
68401
68505
  this.nationalSignificantNumber = this.getNationalDigits();
68402
- this.nationalSignificantNumberMatchesInput = true;
68506
+ this.nationalSignificantNumberIsModified = false;
68403
68507
  this.nationalPrefix = void 0;
68404
68508
  this.carrierCode = void 0;
68405
- this.complexPrefixBeforeNationalSignificantNumber = void 0;
68509
+ this.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = void 0;
68406
68510
  }
68407
68511
  },
68408
68512
  {
@@ -68471,38 +68575,35 @@ and limitations under the License.
68471
68575
  }
68472
68576
  }
68473
68577
  ]);
68474
- return AsYouTypeState;
68475
68578
  }();
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;
68579
+ function AsYouTypeFormatter_util_createForOfIteratorHelperLoose(r, e) {
68580
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68581
+ if (t) return (t = t.call(r)).next.bind(t);
68582
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_util_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
68583
+ t && (r = t);
68584
+ var o = 0;
68482
68585
  return function() {
68483
- if (i >= o.length) return {
68484
- done: true
68485
- };
68486
- return {
68487
- done: false,
68488
- value: o[i++]
68586
+ return o >= r.length ? {
68587
+ done: !0
68588
+ } : {
68589
+ done: !1,
68590
+ value: r[o++]
68489
68591
  };
68490
68592
  };
68491
68593
  }
68492
68594
  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
68595
  }
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);
68596
+ function AsYouTypeFormatter_util_unsupportedIterableToArray(r, a) {
68597
+ if (r) {
68598
+ if ("string" == typeof r) return AsYouTypeFormatter_util_arrayLikeToArray(r, a);
68599
+ var t = ({}).toString.call(r).slice(8, -1);
68600
+ 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;
68601
+ }
68501
68602
  }
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;
68603
+ function AsYouTypeFormatter_util_arrayLikeToArray(r, a) {
68604
+ (null == a || a > r.length) && (a = r.length);
68605
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68606
+ return n;
68506
68607
  }
68507
68608
  var DIGIT_PLACEHOLDER = 'x';
68508
68609
  var DIGIT_PLACEHOLDER_MATCHER = new RegExp(DIGIT_PLACEHOLDER);
@@ -68559,8 +68660,8 @@ and limitations under the License.
68559
68660
  getSeparatorAfterNationalPrefix: getSeparatorAfterNationalPrefix
68560
68661
  });
68561
68662
  }
68562
- function canFormatCompleteNumber(nationalSignificantNumber, metadata) {
68563
- return 'IS_POSSIBLE' === checkNumberLength(nationalSignificantNumber, metadata);
68663
+ function canFormatCompleteNumber(nationalSignificantNumber, country, metadata) {
68664
+ return 'IS_POSSIBLE' === checkNumberLength(nationalSignificantNumber, country, metadata);
68564
68665
  }
68565
68666
  function formatNationalNumberWithAndWithoutNationalPrefixFormattingRule(state, format, _ref2) {
68566
68667
  var metadata = _ref2.metadata, shouldTryNationalPrefixFormattingRule = _ref2.shouldTryNationalPrefixFormattingRule, getSeparatorAfterNationalPrefix = _ref2.getSeparatorAfterNationalPrefix;
@@ -68589,38 +68690,53 @@ and limitations under the License.
68589
68690
  });
68590
68691
  if (!useNationalPrefixFormattingRule) {
68591
68692
  if (state.nationalPrefix) formattedNationalNumber = state.nationalPrefix + getSeparatorAfterNationalPrefix(format) + formattedNationalNumber;
68592
- else if (state.complexPrefixBeforeNationalSignificantNumber) formattedNationalNumber = state.complexPrefixBeforeNationalSignificantNumber + ' ' + formattedNationalNumber;
68693
+ else if (state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) formattedNationalNumber = state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix + ' ' + formattedNationalNumber;
68593
68694
  }
68594
68695
  if (isValidFormattedNationalNumber(formattedNationalNumber, state)) return formattedNationalNumber;
68595
68696
  }
68596
68697
  function isValidFormattedNationalNumber(formattedNationalNumber, state) {
68597
68698
  return parseDigits(formattedNationalNumber) === state.getNationalDigits();
68598
68699
  }
68599
- function AsYouTypeFormatter_PatternParser_classCallCheck(instance, Constructor) {
68600
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68700
+ function AsYouTypeFormatter_PatternParser_typeof(o) {
68701
+ return AsYouTypeFormatter_PatternParser_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68702
+ return typeof o;
68703
+ } : function(o) {
68704
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68705
+ }, AsYouTypeFormatter_PatternParser_typeof(o);
68601
68706
  }
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);
68707
+ function AsYouTypeFormatter_PatternParser_classCallCheck(a, n) {
68708
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68709
+ }
68710
+ function AsYouTypeFormatter_PatternParser_defineProperties(e, r) {
68711
+ for(var t = 0; t < r.length; t++){
68712
+ var o = r[t];
68713
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_PatternParser_toPropertyKey(o.key), o);
68609
68714
  }
68610
68715
  }
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;
68716
+ function AsYouTypeFormatter_PatternParser_createClass(e, r, t) {
68717
+ return r && AsYouTypeFormatter_PatternParser_defineProperties(e.prototype, r), t && AsYouTypeFormatter_PatternParser_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68718
+ writable: !1
68719
+ }), e;
68720
+ }
68721
+ function AsYouTypeFormatter_PatternParser_toPropertyKey(t) {
68722
+ var i = AsYouTypeFormatter_PatternParser_toPrimitive(t, "string");
68723
+ return "symbol" == AsYouTypeFormatter_PatternParser_typeof(i) ? i : i + "";
68724
+ }
68725
+ function AsYouTypeFormatter_PatternParser_toPrimitive(t, r) {
68726
+ if ("object" != AsYouTypeFormatter_PatternParser_typeof(t) || !t) return t;
68727
+ var e = t[Symbol.toPrimitive];
68728
+ if (void 0 !== e) {
68729
+ var i = e.call(t, r || "default");
68730
+ if ("object" != AsYouTypeFormatter_PatternParser_typeof(i)) return i;
68731
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68732
+ }
68733
+ return ("string" === r ? String : Number)(t);
68618
68734
  }
68619
68735
  var AsYouTypeFormatter_PatternParser_PatternParser = /*#__PURE__*/ function() {
68620
68736
  function PatternParser() {
68621
68737
  AsYouTypeFormatter_PatternParser_classCallCheck(this, PatternParser);
68622
68738
  }
68623
- AsYouTypeFormatter_PatternParser_createClass(PatternParser, [
68739
+ return AsYouTypeFormatter_PatternParser_createClass(PatternParser, [
68624
68740
  {
68625
68741
  key: "parse",
68626
68742
  value: function(pattern) {
@@ -68727,7 +68843,6 @@ and limitations under the License.
68727
68843
  }
68728
68844
  }
68729
68845
  ]);
68730
- return PatternParser;
68731
68846
  }();
68732
68847
  function parseOneOfSet(pattern) {
68733
68848
  var values = [];
@@ -68753,63 +68868,76 @@ and limitations under the License.
68753
68868
  if (1 === array.length) return array[0];
68754
68869
  return array;
68755
68870
  }
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;
68871
+ function AsYouTypeFormatter_PatternMatcher_createForOfIteratorHelperLoose(r, e) {
68872
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
68873
+ if (t) return (t = t.call(r)).next.bind(t);
68874
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
68875
+ t && (r = t);
68876
+ var o = 0;
68762
68877
  return function() {
68763
- if (i >= o.length) return {
68764
- done: true
68765
- };
68766
- return {
68767
- done: false,
68768
- value: o[i++]
68878
+ return o >= r.length ? {
68879
+ done: !0
68880
+ } : {
68881
+ done: !1,
68882
+ value: r[o++]
68769
68883
  };
68770
68884
  };
68771
68885
  }
68772
68886
  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
68887
  }
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);
68888
+ function AsYouTypeFormatter_PatternMatcher_unsupportedIterableToArray(r, a) {
68889
+ if (r) {
68890
+ if ("string" == typeof r) return AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(r, a);
68891
+ var t = ({}).toString.call(r).slice(8, -1);
68892
+ 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;
68893
+ }
68894
+ }
68895
+ function AsYouTypeFormatter_PatternMatcher_arrayLikeToArray(r, a) {
68896
+ (null == a || a > r.length) && (a = r.length);
68897
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
68898
+ return n;
68781
68899
  }
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;
68900
+ function AsYouTypeFormatter_PatternMatcher_typeof(o) {
68901
+ return AsYouTypeFormatter_PatternMatcher_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
68902
+ return typeof o;
68903
+ } : function(o) {
68904
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
68905
+ }, AsYouTypeFormatter_PatternMatcher_typeof(o);
68786
68906
  }
68787
- function AsYouTypeFormatter_PatternMatcher_classCallCheck(instance, Constructor) {
68788
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
68907
+ function AsYouTypeFormatter_PatternMatcher_classCallCheck(a, n) {
68908
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68789
68909
  }
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);
68910
+ function AsYouTypeFormatter_PatternMatcher_defineProperties(e, r) {
68911
+ for(var t = 0; t < r.length; t++){
68912
+ var o = r[t];
68913
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_PatternMatcher_toPropertyKey(o.key), o);
68797
68914
  }
68798
68915
  }
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;
68916
+ function AsYouTypeFormatter_PatternMatcher_createClass(e, r, t) {
68917
+ return r && AsYouTypeFormatter_PatternMatcher_defineProperties(e.prototype, r), t && AsYouTypeFormatter_PatternMatcher_defineProperties(e, t), Object.defineProperty(e, "prototype", {
68918
+ writable: !1
68919
+ }), e;
68920
+ }
68921
+ function AsYouTypeFormatter_PatternMatcher_toPropertyKey(t) {
68922
+ var i = AsYouTypeFormatter_PatternMatcher_toPrimitive(t, "string");
68923
+ return "symbol" == AsYouTypeFormatter_PatternMatcher_typeof(i) ? i : i + "";
68924
+ }
68925
+ function AsYouTypeFormatter_PatternMatcher_toPrimitive(t, r) {
68926
+ if ("object" != AsYouTypeFormatter_PatternMatcher_typeof(t) || !t) return t;
68927
+ var e = t[Symbol.toPrimitive];
68928
+ if (void 0 !== e) {
68929
+ var i = e.call(t, r || "default");
68930
+ if ("object" != AsYouTypeFormatter_PatternMatcher_typeof(i)) return i;
68931
+ throw new TypeError("@@toPrimitive must return a primitive value.");
68932
+ }
68933
+ return ("string" === r ? String : Number)(t);
68806
68934
  }
68807
68935
  var AsYouTypeFormatter_PatternMatcher_PatternMatcher = /*#__PURE__*/ function() {
68808
68936
  function PatternMatcher(pattern) {
68809
68937
  AsYouTypeFormatter_PatternMatcher_classCallCheck(this, PatternMatcher);
68810
68938
  this.matchTree = new AsYouTypeFormatter_PatternParser_PatternParser().parse(pattern);
68811
68939
  }
68812
- AsYouTypeFormatter_PatternMatcher_createClass(PatternMatcher, [
68940
+ return AsYouTypeFormatter_PatternMatcher_createClass(PatternMatcher, [
68813
68941
  {
68814
68942
  key: "match",
68815
68943
  value: function(string) {
@@ -68824,7 +68952,6 @@ and limitations under the License.
68824
68952
  }
68825
68953
  }
68826
68954
  ]);
68827
- return PatternMatcher;
68828
68955
  }();
68829
68956
  function _match(characters, tree, last) {
68830
68957
  if ('string' == typeof tree) {
@@ -68930,56 +69057,69 @@ and limitations under the License.
68930
69057
  throw new Error("Unsupported instruction tree: ".concat(tree));
68931
69058
  }
68932
69059
  }
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;
69060
+ function AsYouTypeFormatter_typeof(o) {
69061
+ return AsYouTypeFormatter_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69062
+ return typeof o;
69063
+ } : function(o) {
69064
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69065
+ }, AsYouTypeFormatter_typeof(o);
69066
+ }
69067
+ function AsYouTypeFormatter_createForOfIteratorHelperLoose(r, e) {
69068
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69069
+ if (t) return (t = t.call(r)).next.bind(t);
69070
+ if (Array.isArray(r) || (t = AsYouTypeFormatter_unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
69071
+ t && (r = t);
69072
+ var o = 0;
68939
69073
  return function() {
68940
- if (i >= o.length) return {
68941
- done: true
68942
- };
68943
- return {
68944
- done: false,
68945
- value: o[i++]
69074
+ return o >= r.length ? {
69075
+ done: !0
69076
+ } : {
69077
+ done: !1,
69078
+ value: r[o++]
68946
69079
  };
68947
69080
  };
68948
69081
  }
68949
69082
  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
69083
  }
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);
69084
+ function AsYouTypeFormatter_unsupportedIterableToArray(r, a) {
69085
+ if (r) {
69086
+ if ("string" == typeof r) return AsYouTypeFormatter_arrayLikeToArray(r, a);
69087
+ var t = ({}).toString.call(r).slice(8, -1);
69088
+ 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;
69089
+ }
68958
69090
  }
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;
69091
+ function AsYouTypeFormatter_arrayLikeToArray(r, a) {
69092
+ (null == a || a > r.length) && (a = r.length);
69093
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69094
+ return n;
68963
69095
  }
68964
- function AsYouTypeFormatter_classCallCheck(instance, Constructor) {
68965
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69096
+ function AsYouTypeFormatter_classCallCheck(a, n) {
69097
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
68966
69098
  }
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);
69099
+ function AsYouTypeFormatter_defineProperties(e, r) {
69100
+ for(var t = 0; t < r.length; t++){
69101
+ var o = r[t];
69102
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeFormatter_toPropertyKey(o.key), o);
68974
69103
  }
68975
69104
  }
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;
69105
+ function AsYouTypeFormatter_createClass(e, r, t) {
69106
+ return r && AsYouTypeFormatter_defineProperties(e.prototype, r), t && AsYouTypeFormatter_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69107
+ writable: !1
69108
+ }), e;
69109
+ }
69110
+ function AsYouTypeFormatter_toPropertyKey(t) {
69111
+ var i = AsYouTypeFormatter_toPrimitive(t, "string");
69112
+ return "symbol" == AsYouTypeFormatter_typeof(i) ? i : i + "";
69113
+ }
69114
+ function AsYouTypeFormatter_toPrimitive(t, r) {
69115
+ if ("object" != AsYouTypeFormatter_typeof(t) || !t) return t;
69116
+ var e = t[Symbol.toPrimitive];
69117
+ if (void 0 !== e) {
69118
+ var i = e.call(t, r || "default");
69119
+ if ("object" != AsYouTypeFormatter_typeof(i)) return i;
69120
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69121
+ }
69122
+ return ("string" === r ? String : Number)(t);
68983
69123
  }
68984
69124
  var DUMMY_DIGIT = '9';
68985
69125
  var LONGEST_NATIONAL_PHONE_NUMBER_LENGTH = 15;
@@ -69002,7 +69142,7 @@ and limitations under the License.
69002
69142
  this.metadata = metadata;
69003
69143
  this.resetFormat();
69004
69144
  }
69005
- AsYouTypeFormatter_createClass(AsYouTypeFormatter, [
69145
+ return AsYouTypeFormatter_createClass(AsYouTypeFormatter, [
69006
69146
  {
69007
69147
  key: "resetFormat",
69008
69148
  value: function() {
@@ -69031,9 +69171,9 @@ and limitations under the License.
69031
69171
  key: "format",
69032
69172
  value: function(nextDigits, state) {
69033
69173
  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, {
69174
+ if (canFormatCompleteNumber(state.nationalSignificantNumber, state.country, this.metadata)) for(var _iterator = AsYouTypeFormatter_createForOfIteratorHelperLoose(this.matchingFormats), _step; !(_step = _iterator()).done;){
69175
+ var _format = _step.value;
69176
+ var formattedCompleteNumber = formatCompleteNumber(state, _format, {
69037
69177
  metadata: this.metadata,
69038
69178
  shouldTryNationalPrefixFormattingRule: function(format) {
69039
69179
  return _this.shouldTryNationalPrefixFormattingRule(format, {
@@ -69047,7 +69187,7 @@ and limitations under the License.
69047
69187
  });
69048
69188
  if (formattedCompleteNumber) {
69049
69189
  this.resetFormat();
69050
- this.chosenFormat = format;
69190
+ this.chosenFormat = _format;
69051
69191
  this.setNationalNumberTemplate(formattedCompleteNumber.replace(/\d/g, DIGIT_PLACEHOLDER), state);
69052
69192
  this.populatedNationalNumberTemplate = formattedCompleteNumber;
69053
69193
  this.populatedNationalNumberTemplatePosition = this.template.lastIndexOf(DIGIT_PLACEHOLDER);
@@ -69120,21 +69260,21 @@ and limitations under the License.
69120
69260
  var _this3 = this;
69121
69261
  var _loop = function() {
69122
69262
  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";
69263
+ if (_this3.chosenFormat === format) return 0;
69264
+ if (!NON_ALTERING_FORMAT_REG_EXP.test(_this3.getFormatFormat(format, state.international))) return 1;
69125
69265
  if (!_this3.createTemplateForFormat(format, state)) {
69126
69266
  _this3.matchingFormats = _this3.matchingFormats.filter(function(_) {
69127
69267
  return _ !== format;
69128
69268
  });
69129
- return "continue";
69269
+ return 1;
69130
69270
  }
69131
69271
  _this3.chosenFormat = format;
69132
- return "break";
69133
- };
69272
+ return 0;
69273
+ }, _ret;
69134
69274
  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;
69275
+ _ret = _loop();
69276
+ if (0 === _ret) break;
69277
+ if (1 === _ret) continue;
69138
69278
  }
69139
69279
  if (!this.chosenFormat) this.resetFormat();
69140
69280
  return this.chosenFormat;
@@ -69197,7 +69337,7 @@ and limitations under the License.
69197
69337
  {
69198
69338
  key: "getTemplateForFormat",
69199
69339
  value: function(format, _ref4) {
69200
- var nationalSignificantNumber = _ref4.nationalSignificantNumber, international = _ref4.international, nationalPrefix = _ref4.nationalPrefix, complexPrefixBeforeNationalSignificantNumber = _ref4.complexPrefixBeforeNationalSignificantNumber;
69340
+ var nationalSignificantNumber = _ref4.nationalSignificantNumber, international = _ref4.international, nationalPrefix = _ref4.nationalPrefix, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _ref4.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;
69201
69341
  var pattern = format.pattern();
69202
69342
  if (SUPPORT_LEGACY_FORMATTING_PATTERNS) pattern = pattern.replace(CREATE_CHARACTER_CLASS_PATTERN(), '\\d').replace(CREATE_STANDALONE_DIGIT_PATTERN(), '\\d');
69203
69343
  var digits = LONGEST_DUMMY_PHONE_NUMBER.match(pattern)[0];
@@ -69226,7 +69366,7 @@ and limitations under the License.
69226
69366
  }
69227
69367
  var template = digits.replace(new RegExp(pattern), numberFormat).replace(new RegExp(DUMMY_DIGIT, 'g'), DIGIT_PLACEHOLDER);
69228
69368
  if (!nationalPrefixIncludedInTemplate) {
69229
- if (complexPrefixBeforeNationalSignificantNumber) template = repeat(DIGIT_PLACEHOLDER, complexPrefixBeforeNationalSignificantNumber.length) + ' ' + template;
69369
+ if (prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix) template = repeat(DIGIT_PLACEHOLDER, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix.length) + ' ' + template;
69230
69370
  else if (nationalPrefix) template = repeat(DIGIT_PLACEHOLDER, nationalPrefix.length) + this.getSeparatorAfterNationalPrefix(format) + template;
69231
69371
  }
69232
69372
  if (international) template = applyInternationalSeparatorStyle(template);
@@ -69257,73 +69397,83 @@ and limitations under the License.
69257
69397
  }
69258
69398
  }
69259
69399
  ]);
69260
- return AsYouTypeFormatter;
69261
69400
  }();
69262
- function AsYouTypeParser_slicedToArray(arr, i) {
69263
- return AsYouTypeParser_arrayWithHoles(arr) || AsYouTypeParser_iterableToArrayLimit(arr, i) || AsYouTypeParser_unsupportedIterableToArray(arr, i) || AsYouTypeParser_nonIterableRest();
69401
+ function AsYouTypeParser_typeof(o) {
69402
+ return AsYouTypeParser_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69403
+ return typeof o;
69404
+ } : function(o) {
69405
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69406
+ }, AsYouTypeParser_typeof(o);
69407
+ }
69408
+ function AsYouTypeParser_slicedToArray(r, e) {
69409
+ return AsYouTypeParser_arrayWithHoles(r) || AsYouTypeParser_iterableToArrayLimit(r, e) || AsYouTypeParser_unsupportedIterableToArray(r, e) || AsYouTypeParser_nonIterableRest();
69264
69410
  }
69265
69411
  function AsYouTypeParser_nonIterableRest() {
69266
69412
  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
69413
  }
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);
69414
+ function AsYouTypeParser_unsupportedIterableToArray(r, a) {
69415
+ if (r) {
69416
+ if ("string" == typeof r) return AsYouTypeParser_arrayLikeToArray(r, a);
69417
+ var t = ({}).toString.call(r).slice(8, -1);
69418
+ 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;
69419
+ }
69275
69420
  }
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;
69421
+ function AsYouTypeParser_arrayLikeToArray(r, a) {
69422
+ (null == a || a > r.length) && (a = r.length);
69423
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69424
+ return n;
69280
69425
  }
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{
69426
+ function AsYouTypeParser_iterableToArrayLimit(r, l) {
69427
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69428
+ if (null != t) {
69429
+ var e, n, i, u, a = [], f = !0, o = !1;
69297
69430
  try {
69298
- if (!_n && null != _i["return"]) _i["return"]();
69431
+ if (i = (t = t.call(r)).next, 0 === l) {
69432
+ if (Object(t) !== t) return;
69433
+ f = !1;
69434
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
69435
+ } catch (r) {
69436
+ o = !0, n = r;
69299
69437
  } finally{
69300
- if (_d) throw _e;
69438
+ try {
69439
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
69440
+ } finally{
69441
+ if (o) throw n;
69442
+ }
69301
69443
  }
69444
+ return a;
69302
69445
  }
69303
- return _arr;
69304
69446
  }
69305
- function AsYouTypeParser_arrayWithHoles(arr) {
69306
- if (Array.isArray(arr)) return arr;
69447
+ function AsYouTypeParser_arrayWithHoles(r) {
69448
+ if (Array.isArray(r)) return r;
69307
69449
  }
69308
- function AsYouTypeParser_classCallCheck(instance, Constructor) {
69309
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69450
+ function AsYouTypeParser_classCallCheck(a, n) {
69451
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
69310
69452
  }
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);
69453
+ function AsYouTypeParser_defineProperties(e, r) {
69454
+ for(var t = 0; t < r.length; t++){
69455
+ var o = r[t];
69456
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouTypeParser_toPropertyKey(o.key), o);
69318
69457
  }
69319
69458
  }
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;
69459
+ function AsYouTypeParser_createClass(e, r, t) {
69460
+ return r && AsYouTypeParser_defineProperties(e.prototype, r), t && AsYouTypeParser_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69461
+ writable: !1
69462
+ }), e;
69463
+ }
69464
+ function AsYouTypeParser_toPropertyKey(t) {
69465
+ var i = AsYouTypeParser_toPrimitive(t, "string");
69466
+ return "symbol" == AsYouTypeParser_typeof(i) ? i : i + "";
69467
+ }
69468
+ function AsYouTypeParser_toPrimitive(t, r) {
69469
+ if ("object" != AsYouTypeParser_typeof(t) || !t) return t;
69470
+ var e = t[Symbol.toPrimitive];
69471
+ if (void 0 !== e) {
69472
+ var i = e.call(t, r || "default");
69473
+ if ("object" != AsYouTypeParser_typeof(i)) return i;
69474
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69475
+ }
69476
+ return ("string" === r ? String : Number)(t);
69327
69477
  }
69328
69478
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART = '[' + VALID_PUNCTUATION + VALID_DIGITS + ']+';
69329
69479
  var VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART_PATTERN = new RegExp('^' + VALID_FORMATTED_PHONE_NUMBER_DIGITS_PART + '$', 'i');
@@ -69339,7 +69489,7 @@ and limitations under the License.
69339
69489
  this.metadata = metadata;
69340
69490
  this.onNationalSignificantNumberChange = onNationalSignificantNumberChange;
69341
69491
  }
69342
- AsYouTypeParser_createClass(AsYouTypeParser, [
69492
+ return AsYouTypeParser_createClass(AsYouTypeParser, [
69343
69493
  {
69344
69494
  key: "input",
69345
69495
  value: function(text, state) {
@@ -69348,7 +69498,7 @@ and limitations under the License.
69348
69498
  var justLeadingPlus;
69349
69499
  if (hasPlus) {
69350
69500
  if (!state.digits) {
69351
- state.startInternationalNumber();
69501
+ state.startInternationalNumber(void 0, void 0);
69352
69502
  if (!digits) justLeadingPlus = true;
69353
69503
  }
69354
69504
  }
@@ -69386,7 +69536,7 @@ and limitations under the License.
69386
69536
  {
69387
69537
  key: "extractCountryCallingCode",
69388
69538
  value: function(state) {
69389
- var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
69539
+ var _extractCountryCallin = extractCountryCallingCode_extractCountryCallingCode('+' + state.getDigitsWithoutInternationalPrefix(), state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), countryCallingCode = _extractCountryCallin.countryCallingCode, number = _extractCountryCallin.number;
69390
69540
  if (countryCallingCode) {
69391
69541
  state.setCallingCode(countryCallingCode);
69392
69542
  state.update({
@@ -69433,20 +69583,22 @@ and limitations under the License.
69433
69583
  {
69434
69584
  key: "onExtractedNationalNumber",
69435
69585
  value: function(nationalPrefix, carrierCode, nationalSignificantNumber, nationalDigits, setState) {
69436
- var complexPrefixBeforeNationalSignificantNumber;
69437
- var nationalSignificantNumberMatchesInput;
69586
+ var nationalSignificantNumberIsModified = false;
69587
+ var prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix;
69438
69588
  var nationalSignificantNumberIndex = nationalDigits.lastIndexOf(nationalSignificantNumber);
69439
- if (nationalSignificantNumberIndex >= 0 && nationalSignificantNumberIndex === nationalDigits.length - nationalSignificantNumber.length) {
69440
- nationalSignificantNumberMatchesInput = true;
69589
+ if (nationalSignificantNumberIndex < 0 || nationalSignificantNumberIndex !== nationalDigits.length - nationalSignificantNumber.length) nationalSignificantNumberIsModified = true;
69590
+ else {
69441
69591
  var prefixBeforeNationalNumber = nationalDigits.slice(0, nationalSignificantNumberIndex);
69442
- if (prefixBeforeNationalNumber !== nationalPrefix) complexPrefixBeforeNationalSignificantNumber = prefixBeforeNationalNumber;
69592
+ if (prefixBeforeNationalNumber) {
69593
+ if (prefixBeforeNationalNumber !== nationalPrefix) prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = prefixBeforeNationalNumber;
69594
+ }
69443
69595
  }
69444
69596
  setState({
69445
69597
  nationalPrefix: nationalPrefix,
69446
69598
  carrierCode: carrierCode,
69447
69599
  nationalSignificantNumber: nationalSignificantNumber,
69448
- nationalSignificantNumberMatchesInput: nationalSignificantNumberMatchesInput,
69449
- complexPrefixBeforeNationalSignificantNumber: complexPrefixBeforeNationalSignificantNumber
69600
+ nationalSignificantNumberIsModified: nationalSignificantNumberIsModified,
69601
+ prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix: prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix
69450
69602
  });
69451
69603
  this.hasExtractedNationalSignificantNumber = true;
69452
69604
  this.onNationalSignificantNumberChange();
@@ -69491,8 +69643,7 @@ and limitations under the License.
69491
69643
  key: "fixMissingPlus",
69492
69644
  value: function(state) {
69493
69645
  if (!state.international) {
69494
- var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), newCallingCode = _extractCountryCallin2.countryCallingCode;
69495
- _extractCountryCallin2.number;
69646
+ var _extractCountryCallin2 = extractCountryCallingCodeFromInternationalNumberWithoutPlusSign(state.digits, state.country, this.defaultCountry, this.defaultCallingCode, this.metadata.metadata), newCallingCode = _extractCountryCallin2.countryCallingCode;
69496
69647
  if (newCallingCode) {
69497
69648
  state.update({
69498
69649
  missingPlus: true
@@ -69527,7 +69678,6 @@ and limitations under the License.
69527
69678
  }
69528
69679
  }
69529
69680
  ]);
69530
- return AsYouTypeParser;
69531
69681
  }();
69532
69682
  function AsYouTypeParser_extractFormattedPhoneNumber(text) {
69533
69683
  var startsAt = text.search(VALID_FORMATTED_PHONE_NUMBER_PART);
@@ -69560,71 +69710,82 @@ and limitations under the License.
69560
69710
  hasPlus
69561
69711
  ];
69562
69712
  }
69563
- function AsYouType_slicedToArray(arr, i) {
69564
- return AsYouType_arrayWithHoles(arr) || AsYouType_iterableToArrayLimit(arr, i) || AsYouType_unsupportedIterableToArray(arr, i) || AsYouType_nonIterableRest();
69713
+ function AsYouType_typeof(o) {
69714
+ return AsYouType_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
69715
+ return typeof o;
69716
+ } : function(o) {
69717
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
69718
+ }, AsYouType_typeof(o);
69719
+ }
69720
+ function AsYouType_slicedToArray(r, e) {
69721
+ return AsYouType_arrayWithHoles(r) || AsYouType_iterableToArrayLimit(r, e) || AsYouType_unsupportedIterableToArray(r, e) || AsYouType_nonIterableRest();
69565
69722
  }
69566
69723
  function AsYouType_nonIterableRest() {
69567
69724
  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
69725
  }
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);
69726
+ function AsYouType_unsupportedIterableToArray(r, a) {
69727
+ if (r) {
69728
+ if ("string" == typeof r) return AsYouType_arrayLikeToArray(r, a);
69729
+ var t = ({}).toString.call(r).slice(8, -1);
69730
+ 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;
69731
+ }
69576
69732
  }
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;
69733
+ function AsYouType_arrayLikeToArray(r, a) {
69734
+ (null == a || a > r.length) && (a = r.length);
69735
+ for(var e = 0, n = Array(a); e < a; e++)n[e] = r[e];
69736
+ return n;
69581
69737
  }
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{
69738
+ function AsYouType_iterableToArrayLimit(r, l) {
69739
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
69740
+ if (null != t) {
69741
+ var e, n, i, u, a = [], f = !0, o = !1;
69598
69742
  try {
69599
- if (!_n && null != _i["return"]) _i["return"]();
69743
+ if (i = (t = t.call(r)).next, 0 === l) {
69744
+ if (Object(t) !== t) return;
69745
+ f = !1;
69746
+ } else for(; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
69747
+ } catch (r) {
69748
+ o = !0, n = r;
69600
69749
  } finally{
69601
- if (_d) throw _e;
69750
+ try {
69751
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
69752
+ } finally{
69753
+ if (o) throw n;
69754
+ }
69602
69755
  }
69756
+ return a;
69603
69757
  }
69604
- return _arr;
69605
69758
  }
69606
- function AsYouType_arrayWithHoles(arr) {
69607
- if (Array.isArray(arr)) return arr;
69759
+ function AsYouType_arrayWithHoles(r) {
69760
+ if (Array.isArray(r)) return r;
69608
69761
  }
69609
- function AsYouType_classCallCheck(instance, Constructor) {
69610
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
69762
+ function AsYouType_classCallCheck(a, n) {
69763
+ if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function");
69611
69764
  }
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);
69765
+ function AsYouType_defineProperties(e, r) {
69766
+ for(var t = 0; t < r.length; t++){
69767
+ var o = r[t];
69768
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, AsYouType_toPropertyKey(o.key), o);
69619
69769
  }
69620
69770
  }
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;
69771
+ function AsYouType_createClass(e, r, t) {
69772
+ return r && AsYouType_defineProperties(e.prototype, r), t && AsYouType_defineProperties(e, t), Object.defineProperty(e, "prototype", {
69773
+ writable: !1
69774
+ }), e;
69775
+ }
69776
+ function AsYouType_toPropertyKey(t) {
69777
+ var i = AsYouType_toPrimitive(t, "string");
69778
+ return "symbol" == AsYouType_typeof(i) ? i : i + "";
69779
+ }
69780
+ function AsYouType_toPrimitive(t, r) {
69781
+ if ("object" != AsYouType_typeof(t) || !t) return t;
69782
+ var e = t[Symbol.toPrimitive];
69783
+ if (void 0 !== e) {
69784
+ var i = e.call(t, r || "default");
69785
+ if ("object" != AsYouType_typeof(i)) return i;
69786
+ throw new TypeError("@@toPrimitive must return a primitive value.");
69787
+ }
69788
+ return ("string" === r ? String : Number)(t);
69628
69789
  }
69629
69790
  var AsYouType_USE_NON_GEOGRAPHIC_COUNTRY_CODE = false;
69630
69791
  var AsYouType_AsYouType = /*#__PURE__*/ function() {
@@ -69636,7 +69797,7 @@ and limitations under the License.
69636
69797
  this.defaultCallingCode = defaultCallingCode;
69637
69798
  this.reset();
69638
69799
  }
69639
- AsYouType_createClass(AsYouType, [
69800
+ return AsYouType_createClass(AsYouType, [
69640
69801
  {
69641
69802
  key: "getCountryAndCallingCode",
69642
69803
  value: function(optionsOrDefaultCountry) {
@@ -69780,9 +69941,9 @@ and limitations under the License.
69780
69941
  {
69781
69942
  key: "getNonFormattedNationalNumberWithPrefix",
69782
69943
  value: function() {
69783
- var _this$state = this.state, nationalSignificantNumber = _this$state.nationalSignificantNumber, complexPrefixBeforeNationalSignificantNumber = _this$state.complexPrefixBeforeNationalSignificantNumber, nationalPrefix = _this$state.nationalPrefix;
69944
+ var _this$state = this.state, nationalSignificantNumber = _this$state.nationalSignificantNumber, prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix = _this$state.prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix, nationalPrefix = _this$state.nationalPrefix;
69784
69945
  var number = nationalSignificantNumber;
69785
- var prefix = complexPrefixBeforeNationalSignificantNumber || nationalPrefix;
69946
+ var prefix = prefixBeforeNationalSignificantNumberThatIsNotNationalPrefix || nationalPrefix;
69786
69947
  if (prefix) number = prefix + number;
69787
69948
  return number;
69788
69949
  }
@@ -69790,8 +69951,8 @@ and limitations under the License.
69790
69951
  {
69791
69952
  key: "getNonFormattedNumber",
69792
69953
  value: function() {
69793
- var nationalSignificantNumberMatchesInput = this.state.nationalSignificantNumberMatchesInput;
69794
- return this.getFullNumber(nationalSignificantNumberMatchesInput ? this.getNonFormattedNationalNumberWithPrefix() : this.state.getNationalDigits());
69954
+ var nationalSignificantNumberIsModified = this.state.nationalSignificantNumberIsModified;
69955
+ return this.getFullNumber(nationalSignificantNumberIsModified ? this.state.getNationalDigits() : this.getNonFormattedNationalNumberWithPrefix());
69795
69956
  }
69796
69957
  },
69797
69958
  {
@@ -69814,7 +69975,6 @@ and limitations under the License.
69814
69975
  value: function() {
69815
69976
  this.state.setCountry(getCountryByCallingCode(this.isInternational() ? this.state.callingCode : this.defaultCallingCode, {
69816
69977
  nationalNumber: this.state.nationalSignificantNumber,
69817
- defaultCountry: this.defaultCountry,
69818
69978
  metadata: this.metadata
69819
69979
  }));
69820
69980
  }
@@ -69850,7 +70010,6 @@ and limitations under the License.
69850
70010
  if (ambiguousCountries.length > 1) {
69851
70011
  var exactCountry = getCountryByNationalNumber(nationalSignificantNumber, {
69852
70012
  countries: ambiguousCountries,
69853
- defaultCountry: this.defaultCountry,
69854
70013
  metadata: this.metadata.metadata
69855
70014
  });
69856
70015
  if (exactCountry) country = exactCountry;
@@ -69897,7 +70056,6 @@ and limitations under the License.
69897
70056
  }
69898
70057
  }
69899
70058
  ]);
69900
- return AsYouType;
69901
70059
  }();
69902
70060
  function exports_AsYouType_AsYouType(country) {
69903
70061
  return AsYouType_AsYouType.call(this, country, metadata_min_json);