@feedmepos/mf-inventory-portal 0.0.22-dev.46 → 0.0.22-dev.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{ApprovalView-CjK-fcvU.js → ApprovalView-Bq8HizIk.js} +3 -3
  2. package/dist/{BindingsDialog-DWRDuKnY.js → BindingsDialog-B5B9LNjS.js} +1 -1
  3. package/dist/{BindingsPicker-DtgCTWo5.js → BindingsPicker-BiiBXcfu.js} +8 -8
  4. package/dist/{BindingsTable-QevLem81.js → BindingsTable-CRUkZ1ou.js} +1 -1
  5. package/dist/ClosingTemplateView-DIdaXdId.js +1829 -0
  6. package/dist/{FmDroppableField-DHF0MZls.js → FmDroppableField-Bl1XIyOu.js} +1 -1
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CPhXgsQD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CdZuOJ4V.js} +3 -3
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CmfjbJ0t.js} +1 -1
  9. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B7dq1XS-.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BuNop0gk.js} +7 -7
  10. package/dist/IngredientGroupView-DD90Fmrx.js +608 -0
  11. package/dist/{IngredientsView-9xhWEl17.js → IngredientsView-Bp4GZox8.js} +5 -5
  12. package/dist/{IntegrationView-D7916Kg2.js → IntegrationView-B_f-yMDb.js} +2 -2
  13. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ZBxeayIl.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang--RjTe01A.js} +1 -1
  14. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Dp_JLw2L.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkEyqrlM.js} +2 -2
  15. package/dist/{PurchaseOrderPrintPreview-U-M3r5H9.js → PurchaseOrderPrintPreview-CjRMox7T.js} +1 -1
  16. package/dist/{ReceiveRequestView-BzChY8ca.js → ReceiveRequestView-DqppWyj-.js} +288 -288
  17. package/dist/{RecipeView-GrwiLQkW.js → RecipeView-CHsDHwoo.js} +22 -22
  18. package/dist/{StockView-CMvG-CIC.js → StockView-ACFikzri.js} +5 -5
  19. package/dist/{SupplierView-BmqzK7D6.js → SupplierView-zdJEksIO.js} +418 -415
  20. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CE1aYr3I.js → TransferDetails.vue_vue_type_script_setup_true_lang-Boqgacto.js} +51 -51
  21. package/dist/{TransferTemplateView-CBPSaIJs.js → TransferTemplateView-BB9qQ71s.js} +8 -8
  22. package/dist/{UnitView-4JKlaXtj.js → UnitView-Ta-Vt5dh.js} +4 -4
  23. package/dist/{WarehouseView-B5qLIIAQ.js → WarehouseView-DCCyFVlT.js} +2 -2
  24. package/dist/{app-B0BJjpJ5.js → app-BqLAVk-L.js} +19173 -19122
  25. package/dist/app.d.ts +3 -0
  26. package/dist/app.js +1 -1
  27. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  28. package/dist/{decimal-CDTaG5jr.js → decimal-D1NE-J_K.js} +1 -1
  29. package/dist/{defineDeepModel-9-wLB59o.js → defineDeepModel-Bh0i7x-r.js} +1 -1
  30. package/dist/extensions/array.d.ts +1 -1
  31. package/dist/{format-time-from-id-Bwq0tn09.js → format-time-from-id-plSsZrYn.js} +1 -1
  32. package/dist/{format-unit-display-BImgcRNp.js → format-unit-display-Dzdy7cNO.js} +49 -49
  33. package/dist/router/name.d.ts +1 -0
  34. package/dist/stores/inventory.d.ts +71 -0
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-D9s1N_M7.js → supplier-aIh1pXP3.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-template-enabled-locations-2-BQSfU_U_.js → use-template-enabled-locations-2-Cpg220vD.js} +1 -1
  39. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  40. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  41. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  42. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  43. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  44. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  45. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  46. package/dist/views/supplier/helpers/import-export.helper.d.ts +1 -1
  47. package/dist/{xlsx-A9JiF_qH.js → xlsx-D2Zb812D.js} +1 -1
  48. package/dist/{xlsx.util-J1g7CG7t.js → xlsx.util-BlUzHgYg.js} +1 -1
  49. package/package.json +3 -3
  50. package/dist/ClosingTemplateView-Cdbp7nYn.js +0 -1812
@@ -1,58 +1,58 @@
1
- import { defineComponent as Z, mergeModels as Ld, computed as N, useModel as Gd, resolveComponent as k, openBlock as x, createElementBlock as I, createElementVNode as v, createVNode as _, withCtx as L, toDisplayString as T, unref as p, Fragment as Y, renderList as z, ref as B, createBlock as H, createCommentVNode as K, isRef as xd, normalizeClass as W, createTextVNode as Hd, watch as Td, createSlots as Kd, onMounted as Od, normalizeStyle as Yd, Teleport as Wd } from "vue";
2
- import { u as J } from "./supplier-D9s1N_M7.js";
1
+ import { defineComponent as Z, mergeModels as Ld, computed as A, useModel as Gd, resolveComponent as k, openBlock as V, createElementBlock as I, createElementVNode as v, createVNode as _, withCtx as L, toDisplayString as T, unref as c, Fragment as Y, renderList as z, ref as B, createBlock as H, createCommentVNode as K, isRef as Md, normalizeClass as W, createTextVNode as Hd, watch as Td, createSlots as Kd, onMounted as Od, normalizeStyle as Yd, Teleport as Wd } from "vue";
2
+ import { u as J } from "./supplier-aIh1pXP3.js";
3
3
  import { D as Vd, R as dd, F as U } from "./row-action.enum-PMKMRrZR.js";
4
4
  import { c as Zd, _ as zd, F as ed } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
5
- import { at as Jd, au as qd, av as jd, aw as Qd, c as sd, u as wd, a3 as Xd, d as Nd, g as d0, y as e0, C as rd, h as kd, i as $d, R as G, b as Bd, f as $0 } from "./app-B0BJjpJ5.js";
5
+ import { at as Jd, au as qd, av as jd, aw as Qd, c as sd, u as wd, a3 as Xd, d as Ad, g as d0, j as e0, C as rd, h as kd, i as $d, R as G, b as Bd, f as $0 } from "./app-BqLAVk-L.js";
6
6
  import { useI18n as O, useCoreStore as nd } from "@feedmepos/mf-common";
7
- import { useDialog as ld, useSnackbar as td, useProxiedModel as Ad, useDialogChild as t0, useBreakpoints as o0 } from "@feedmepos/ui-library";
8
- import { u as r0, _ as s0, a as n0 } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bl-BsJNP.js";
7
+ import { useDialog as ld, useSnackbar as td, useProxiedModel as Nd, useDialogChild as t0, useBreakpoints as o0 } from "@feedmepos/ui-library";
8
+ import { u as r0, _ as s0, a as n0 } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CmfjbJ0t.js";
9
9
  import { _ as l0 } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
10
10
  import { defineStore as a0 } from "pinia";
11
- import { t as Fd, d as Dd, s as i0, r as u0 } from "./xlsx.util-J1g7CG7t.js";
12
- import { F as p0 } from "./FmDroppableField-DHF0MZls.js";
13
- function Pd(o, t) {
14
- var r = Object.keys(o);
11
+ import { t as Fd, d as Dd, s as i0, r as u0 } from "./xlsx.util-BlUzHgYg.js";
12
+ import { F as p0 } from "./FmDroppableField-Bl1XIyOu.js";
13
+ function Pd(r, t) {
14
+ var o = Object.keys(r);
15
15
  if (Object.getOwnPropertySymbols) {
16
- var $ = Object.getOwnPropertySymbols(o);
17
- t && ($ = $.filter(function(c) {
18
- return Object.getOwnPropertyDescriptor(o, c).enumerable;
19
- })), r.push.apply(r, $);
16
+ var $ = Object.getOwnPropertySymbols(r);
17
+ t && ($ = $.filter(function(p) {
18
+ return Object.getOwnPropertyDescriptor(r, p).enumerable;
19
+ })), o.push.apply(o, $);
20
20
  }
21
- return r;
21
+ return o;
22
22
  }
23
- function Ed(o) {
23
+ function Ed(r) {
24
24
  for (var t = 1; t < arguments.length; t++) {
25
- var r = arguments[t] != null ? arguments[t] : {};
26
- t % 2 ? Pd(Object(r), !0).forEach(function($) {
27
- c0(o, $, r[$]);
28
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(o, Object.getOwnPropertyDescriptors(r)) : Pd(Object(r)).forEach(function($) {
29
- Object.defineProperty(o, $, Object.getOwnPropertyDescriptor(r, $));
25
+ var o = arguments[t] != null ? arguments[t] : {};
26
+ t % 2 ? Pd(Object(o), !0).forEach(function($) {
27
+ c0(r, $, o[$]);
28
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : Pd(Object(o)).forEach(function($) {
29
+ Object.defineProperty(r, $, Object.getOwnPropertyDescriptor(o, $));
30
30
  });
31
31
  }
32
- return o;
32
+ return r;
33
33
  }
34
- function c0(o, t, r) {
35
- return t in o ? Object.defineProperty(o, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : o[t] = r, o;
34
+ function c0(r, t, o) {
35
+ return t in r ? Object.defineProperty(r, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = o, r;
36
36
  }
37
- function m0(o, t, r) {
38
- t && t.defaultCountry && !Jd(t.defaultCountry, r) && (t = Ed(Ed({}, t), {}, {
37
+ function m0(r, t, o) {
38
+ t && t.defaultCountry && !Jd(t.defaultCountry, o) && (t = Ed(Ed({}, t), {}, {
39
39
  defaultCountry: void 0
40
40
  }));
41
41
  try {
42
- return qd(o, t, r);
42
+ return qd(r, t, o);
43
43
  } catch ($) {
44
44
  if (!($ instanceof jd)) throw $;
45
45
  }
46
46
  }
47
47
  function v0() {
48
- var o = Qd(arguments), t = o.text, r = o.options, $ = o.metadata;
49
- return m0(t, r, $);
48
+ var r = Qd(arguments), t = r.text, o = r.options, $ = r.metadata;
49
+ return m0(t, o, $);
50
50
  }
51
- function y0(o, t) {
52
- const { t: r } = O();
51
+ function y0(r, t) {
52
+ const { t: o } = O();
53
53
  function $(m, s) {
54
54
  if (m === dd.Edit) {
55
- o(sd(s));
55
+ r(sd(s));
56
56
  return;
57
57
  }
58
58
  if (m === dd.Delete) {
@@ -63,25 +63,25 @@ function y0(o, t) {
63
63
  return { columnDefs: [
64
64
  {
65
65
  accessorKey: "name",
66
- header: () => r("inventory.supplier.table.supplier"),
66
+ header: () => o("inventory.supplier.table.supplier"),
67
67
  enableSorting: !0,
68
68
  size: 200
69
69
  },
70
70
  {
71
71
  accessorKey: "contactName",
72
- header: () => r("inventory.supplier.table.pic"),
72
+ header: () => o("inventory.supplier.table.pic"),
73
73
  enableSorting: !1,
74
74
  size: 250
75
75
  },
76
76
  {
77
77
  accessorKey: "phoneNumber",
78
- header: () => r("inventory.supplier.table.contact"),
78
+ header: () => o("inventory.supplier.table.contact"),
79
79
  enableSorting: !1,
80
80
  size: 200
81
81
  },
82
82
  {
83
83
  accessorKey: "email",
84
- header: () => r("inventory.supplier.table.email"),
84
+ header: () => o("inventory.supplier.table.email"),
85
85
  enableSorting: !1,
86
86
  size: "auto"
87
87
  },
@@ -104,7 +104,7 @@ function y0(o, t) {
104
104
  }
105
105
  ] };
106
106
  }
107
- const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b0 = { class: "flex items-center gap-8 py-8" }, h0 = { class: "flex-1" }, S0 = { class: "fm-typo-en-title-sm-800" }, C0 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _0 = { class: "flex flex-col gap-4" }, M0 = { class: "flex-1" }, x0 = { class: "flex flex-col" }, V0 = { class: "fm-typo-en-body-lg-400" }, N0 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, A0 = { class: "flex-1" }, P0 = { class: "flex" }, E0 = { class: "text-fm-color-typo-secondary" }, I0 = /* @__PURE__ */ Z({
107
+ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b0 = { class: "flex items-center gap-8 py-8" }, S0 = { class: "flex-1" }, h0 = { class: "fm-typo-en-title-sm-800" }, C0 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, _0 = { class: "flex flex-col gap-4" }, x0 = { class: "flex-1" }, M0 = { class: "flex flex-col" }, V0 = { class: "fm-typo-en-body-lg-400" }, A0 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, N0 = { class: "flex-1" }, P0 = { class: "flex" }, E0 = { class: "text-fm-color-typo-secondary" }, I0 = /* @__PURE__ */ Z({
108
108
  __name: "SupplierSupplyItemField",
109
109
  props: /* @__PURE__ */ Ld({
110
110
  modelValue: {}
@@ -113,21 +113,21 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
113
113
  modelModifiers: {}
114
114
  }),
115
115
  emits: ["update:modelValue"],
116
- setup(o) {
117
- const t = nd(), r = wd(), $ = N(() => r.skus), c = ld(), { t: m } = O(), s = Gd(o, "modelValue");
118
- function l() {
116
+ setup(r) {
117
+ const t = nd(), o = wd(), $ = A(() => o.skus), p = ld(), { t: m } = O(), s = Gd(r, "modelValue");
118
+ function n() {
119
119
  var C;
120
- const u = r.skus.map((b) => ({
120
+ const u = o.skus.map((b) => ({
121
121
  label: b.name,
122
122
  sublabel: b.code,
123
123
  value: b._id
124
- })), g = ((C = s.value) == null ? void 0 : C.map((b) => b.skuId)) ?? [], V = N(
124
+ })), g = ((C = s.value) == null ? void 0 : C.map((b) => b.skuId)) ?? [], h = A(
125
125
  () => {
126
126
  var b;
127
127
  return ((b = d0(t.currentCountry.value)) == null ? void 0 : b.currency) ?? "MYR";
128
128
  }
129
129
  );
130
- c.open({
130
+ p.open({
131
131
  title: m("inventory.supplier.supplyItems.selectItem"),
132
132
  closeButton: !0,
133
133
  contentComponent: e0,
@@ -145,16 +145,16 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
145
145
  variant: "tertiary"
146
146
  }
147
147
  }).onPrimary((b) => {
148
- const n = b.map((P) => r.skuById[P]).filter((P) => P);
149
- n.sort((P, R) => P.code.localeCompare(R.code));
150
- const M = n.map((P) => {
148
+ const l = b.map((P) => o.skuById[P]).filter((P) => P);
149
+ l.sort((P, R) => P.code.localeCompare(R.code));
150
+ const M = l.map((P) => {
151
151
  var F;
152
152
  const R = (F = s.value) == null ? void 0 : F.find((e) => e.skuId === P._id);
153
153
  return R || {
154
154
  skuId: P._id,
155
155
  defaultCost: P.defaultCost ?? {
156
156
  costPerUnit: {
157
- currency: V.value,
157
+ currency: h.value,
158
158
  amount: 0,
159
159
  precision: 2
160
160
  }
@@ -176,16 +176,16 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
176
176
  return "MYR";
177
177
  }
178
178
  }
179
- function f(u) {
179
+ function x(u) {
180
180
  const g = [...(s == null ? void 0 : s.value) ?? []];
181
181
  g.splice(u, 1), s.value = g;
182
182
  }
183
- function y(u) {
183
+ function f(u) {
184
184
  var C;
185
- const g = u.skuId, V = (C = $.value.find((b) => b._id === g)) == null ? void 0 : C.unit;
186
- if (!V)
185
+ const g = u.skuId, h = (C = $.value.find((b) => b._id === g)) == null ? void 0 : C.unit;
186
+ if (!h)
187
187
  throw new Error(`Cannot find ingredient: ${g}`);
188
- return V;
188
+ return h;
189
189
  }
190
190
  function i(u) {
191
191
  return {
@@ -193,7 +193,7 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
193
193
  measurement: u.defaultCost.measurement
194
194
  };
195
195
  }
196
- function h(u, g) {
196
+ function y(u, g) {
197
197
  const C = (s.value ?? []).map((b) => b.skuId !== u.skuId ? b : {
198
198
  ...b,
199
199
  defaultCost: {
@@ -208,48 +208,48 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
208
208
  s.value = C;
209
209
  }
210
210
  return (u, g) => {
211
- const V = k("FmButton");
212
- return x(), I("div", f0, [
211
+ const h = k("FmButton");
212
+ return V(), I("div", f0, [
213
213
  v("div", g0, [
214
214
  v("div", b0, [
215
- v("div", h0, [
215
+ v("div", S0, [
216
216
  _(l0, { "z-index": 50 }, {
217
217
  default: L(() => [
218
- v("div", S0, T(p(m)("inventory.supplier.supplyItems.title")), 1)
218
+ v("div", h0, T(c(m)("inventory.supplier.supplyItems.title")), 1)
219
219
  ]),
220
220
  _: 1
221
221
  })
222
222
  ]),
223
223
  v("div", null, [
224
- _(V, {
224
+ _(h, {
225
225
  "prepend-icon": "link",
226
- label: p(m)("inventory.supplier.supplyItems.addItems"),
226
+ label: c(m)("inventory.supplier.supplyItems.addItems"),
227
227
  variant: "plain",
228
- onClick: l
228
+ onClick: n
229
229
  }, null, 8, ["label"])
230
230
  ])
231
231
  ]),
232
- v("div", C0, T(p(m)("inventory.supplier.supplyItems.overridePriceHint")), 1)
232
+ v("div", C0, T(c(m)("inventory.supplier.supplyItems.overridePriceHint")), 1)
233
233
  ]),
234
234
  v("div", _0, [
235
- (x(!0), I(Y, null, z(s.value, (C, b) => {
236
- var n, M, P;
237
- return x(), I("div", {
235
+ (V(!0), I(Y, null, z(s.value, (C, b) => {
236
+ var l, M, P;
237
+ return V(), I("div", {
238
238
  key: C.skuId,
239
239
  class: "flex"
240
240
  }, [
241
- v("div", M0, [
242
- v("div", x0, [
243
- v("div", V0, T((n = p(r).skuById[C.skuId]) == null ? void 0 : n.name), 1),
244
- v("div", N0, T((M = p(r).skuById[C.skuId]) == null ? void 0 : M.code), 1)
241
+ v("div", x0, [
242
+ v("div", M0, [
243
+ v("div", V0, T((l = c(o).skuById[C.skuId]) == null ? void 0 : l.name), 1),
244
+ v("div", A0, T((M = c(o).skuById[C.skuId]) == null ? void 0 : M.code), 1)
245
245
  ])
246
246
  ]),
247
- v("div", A0, [
247
+ v("div", N0, [
248
248
  v("div", P0, [
249
249
  _(Xd, {
250
250
  "model-value": i(C),
251
- unit: y(C),
252
- "onUpdate:modelValue": (R) => h(C, R),
251
+ unit: f(C),
252
+ "onUpdate:modelValue": (R) => y(C, R),
253
253
  placement: s.value && b === ((P = s.value) == null ? void 0 : P.length) - 1 ? "top" : "bottom",
254
254
  separator: "/",
255
255
  "apply-default-rules": "",
@@ -259,16 +259,16 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
259
259
  prepend: L(() => {
260
260
  var R, w;
261
261
  return [
262
- v("div", E0, T(a(((R = p(t).currentCountry) == null ? void 0 : R.value) ?? p(Nd)) === "MYR" ? "RM" : a(((w = p(t).currentCountry) == null ? void 0 : w.value) ?? p(Nd))), 1)
262
+ v("div", E0, T(a(((R = c(t).currentCountry) == null ? void 0 : R.value) ?? c(Ad)) === "MYR" ? "RM" : a(((w = c(t).currentCountry) == null ? void 0 : w.value) ?? c(Ad))), 1)
263
263
  ];
264
264
  }),
265
265
  _: 2
266
266
  }, 1032, ["model-value", "unit", "onUpdate:modelValue", "placement"]),
267
267
  v("div", null, [
268
- _(V, {
268
+ _(h, {
269
269
  "prepend-icon": "close",
270
270
  variant: "tertiary",
271
- onClick: (R) => f(b)
271
+ onClick: (R) => x(b)
272
272
  }, null, 8, ["onClick"])
273
273
  ])
274
274
  ])
@@ -289,114 +289,114 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
289
289
  disabled: { type: Boolean }
290
290
  },
291
291
  emits: ["update:modelValue", "validation-success"],
292
- setup(o, { expose: t, emit: r }) {
293
- const $ = o, c = r, m = Bd(), s = wd(), l = N(() => kd(s.skus, "_id")), { t: a } = O(), f = $d(), y = N(() => f.businessLevel), i = N({
292
+ setup(r, { expose: t, emit: o }) {
293
+ const $ = r, p = o, m = Bd(), s = wd(), n = A(() => kd(s.skus, "_id")), { t: a } = O(), x = $d(), f = A(() => x.businessLevel), i = A({
294
294
  get() {
295
295
  var e;
296
296
  return ((e = $.modelValue) == null ? void 0 : e.name) ?? "";
297
297
  },
298
298
  set(e) {
299
299
  const d = $.modelValue ?? {};
300
- d.name = e, c("update:modelValue", d);
300
+ d.name = e, p("update:modelValue", d);
301
301
  }
302
- }), h = N({
302
+ }), y = A({
303
303
  get() {
304
304
  var e;
305
305
  return ((e = $.modelValue) == null ? void 0 : e.registrationNumber) ?? "";
306
306
  },
307
307
  set(e) {
308
308
  const d = $.modelValue ?? {};
309
- d.registrationNumber = e, c("update:modelValue", d);
309
+ d.registrationNumber = e, p("update:modelValue", d);
310
310
  }
311
- }), u = N({
311
+ }), u = A({
312
312
  get() {
313
313
  var e, d;
314
314
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.line1) ?? "";
315
315
  },
316
316
  set(e) {
317
317
  const d = $.modelValue ?? {};
318
- d.address ?? (d.address = {}), d.address.line1 = e, c("update:modelValue", d);
318
+ d.address ?? (d.address = {}), d.address.line1 = e, p("update:modelValue", d);
319
319
  }
320
- }), g = N({
320
+ }), g = A({
321
321
  get() {
322
322
  var e, d;
323
323
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.line2) ?? "";
324
324
  },
325
325
  set(e) {
326
326
  const d = $.modelValue ?? {};
327
- d.address ?? (d.address = {}), d.address.line2 = e, c("update:modelValue", d);
327
+ d.address ?? (d.address = {}), d.address.line2 = e, p("update:modelValue", d);
328
328
  }
329
- }), V = N({
329
+ }), h = A({
330
330
  get() {
331
331
  var e, d;
332
332
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.city) ?? "";
333
333
  },
334
334
  set(e) {
335
335
  const d = $.modelValue ?? {};
336
- d.address ?? (d.address = {}), d.address.city = e, c("update:modelValue", d);
336
+ d.address ?? (d.address = {}), d.address.city = e, p("update:modelValue", d);
337
337
  }
338
- }), C = N({
338
+ }), C = A({
339
339
  get() {
340
340
  var e, d;
341
341
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.postcode) ?? "";
342
342
  },
343
343
  set(e) {
344
344
  const d = $.modelValue ?? {};
345
- d.address ?? (d.address = {}), d.address.postcode = e, c("update:modelValue", d);
345
+ d.address ?? (d.address = {}), d.address.postcode = e, p("update:modelValue", d);
346
346
  }
347
- }), b = N({
347
+ }), b = A({
348
348
  get() {
349
349
  var e, d;
350
350
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.state) ?? "";
351
351
  },
352
352
  set(e) {
353
353
  const d = $.modelValue ?? {};
354
- d.address ?? (d.address = {}), d.address.state = e, c("update:modelValue", d);
354
+ d.address ?? (d.address = {}), d.address.state = e, p("update:modelValue", d);
355
355
  }
356
- }), n = N({
356
+ }), l = A({
357
357
  get() {
358
358
  var e, d;
359
359
  return ((d = (e = $.modelValue) == null ? void 0 : e.address) == null ? void 0 : d.country) ?? "";
360
360
  },
361
361
  set(e) {
362
362
  const d = $.modelValue ?? {};
363
- d.address ?? (d.address = {}), d.address.country = e, c("update:modelValue", d);
363
+ d.address ?? (d.address = {}), d.address.country = e, p("update:modelValue", d);
364
364
  }
365
- }), M = N({
365
+ }), M = A({
366
366
  get() {
367
367
  var e;
368
368
  return ((e = $.modelValue) == null ? void 0 : e.contactName) ?? "";
369
369
  },
370
370
  set(e) {
371
371
  const d = $.modelValue ?? {};
372
- d.contactName = e, c("update:modelValue", d);
372
+ d.contactName = e, p("update:modelValue", d);
373
373
  }
374
- }), P = N({
374
+ }), P = A({
375
375
  get() {
376
376
  var e;
377
377
  return ((e = $.modelValue) == null ? void 0 : e.phoneNumber) ?? "";
378
378
  },
379
379
  set(e) {
380
380
  const d = $.modelValue ?? {};
381
- d.phoneNumber = e, c("update:modelValue", d);
381
+ d.phoneNumber = e, p("update:modelValue", d);
382
382
  }
383
- }), R = N({
383
+ }), R = A({
384
384
  get() {
385
385
  var e;
386
386
  return ((e = $.modelValue) == null ? void 0 : e.email) ?? "";
387
387
  },
388
388
  set(e) {
389
389
  const d = $.modelValue ?? {};
390
- d.email = e, c("update:modelValue", d);
390
+ d.email = e, p("update:modelValue", d);
391
391
  }
392
- }), w = N({
392
+ }), w = A({
393
393
  get() {
394
394
  var d;
395
- return (((d = $.modelValue) == null ? void 0 : d.supplyItems) ?? []).filter((E) => l.value[E.skuId]);
395
+ return (((d = $.modelValue) == null ? void 0 : d.supplyItems) ?? []).filter((E) => n.value[E.skuId]);
396
396
  },
397
397
  set(e) {
398
398
  const d = $.modelValue ?? {};
399
- d.supplyItems = e, c("update:modelValue", d);
399
+ d.supplyItems = e, p("update:modelValue", d);
400
400
  }
401
401
  }), F = B();
402
402
  return t({
@@ -413,119 +413,119 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
413
413
  (d = (e = F.value) == null ? void 0 : e.resetInputs) == null || d.call(e);
414
414
  }
415
415
  }), (e, d) => {
416
- const E = k("FmChip"), A = k("FmTextField"), od = k("FmPhoneNumber"), D = k("FmForm");
417
- return x(), H(D, {
416
+ const E = k("FmChip"), N = k("FmTextField"), od = k("FmPhoneNumber"), D = k("FmForm");
417
+ return V(), H(D, {
418
418
  ref_key: "formRef",
419
419
  ref: F,
420
- onValidationSuccess: d[12] || (d[12] = (S) => c("validation-success"))
420
+ onValidationSuccess: d[12] || (d[12] = (S) => p("validation-success"))
421
421
  }, {
422
422
  default: L(() => [
423
423
  v("div", R0, [
424
424
  v("div", T0, [
425
- y.value ? (x(), I("div", w0, [
425
+ f.value ? (V(), I("div", w0, [
426
426
  _(E, {
427
427
  label: "Business supplier",
428
428
  compact: ""
429
429
  })
430
430
  ])) : K("", !0),
431
- _(A, {
431
+ _(N, {
432
432
  disabled: e.disabled,
433
- rules: [p(G)()],
433
+ rules: [c(G)()],
434
434
  "label-mark": "required",
435
- label: p(a)("inventory.supplier.companyName"),
435
+ label: c(a)("inventory.supplier.companyName"),
436
436
  modelValue: i.value,
437
437
  "onUpdate:modelValue": d[0] || (d[0] = (S) => i.value = S)
438
438
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
439
- _(A, {
439
+ _(N, {
440
440
  disabled: e.disabled,
441
- rules: [p(G)()],
441
+ rules: [c(G)()],
442
442
  "label-mark": "required",
443
- label: p(a)("inventory.supplier.registrationNo"),
444
- modelValue: h.value,
445
- "onUpdate:modelValue": d[1] || (d[1] = (S) => h.value = S)
443
+ label: c(a)("inventory.supplier.registrationNo"),
444
+ modelValue: y.value,
445
+ "onUpdate:modelValue": d[1] || (d[1] = (S) => y.value = S)
446
446
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
447
447
  ]),
448
448
  v("div", k0, [
449
- v("div", B0, T(p(a)("inventory.supplier.address.title")), 1),
449
+ v("div", B0, T(c(a)("inventory.supplier.address.title")), 1),
450
450
  v("div", F0, [
451
- _(A, {
451
+ _(N, {
452
452
  disabled: e.disabled,
453
- rules: [p(G)()],
453
+ rules: [c(G)()],
454
454
  "label-mark": "required",
455
- label: p(a)("inventory.supplier.address.line1"),
455
+ label: c(a)("inventory.supplier.address.line1"),
456
456
  modelValue: u.value,
457
457
  "onUpdate:modelValue": d[2] || (d[2] = (S) => u.value = S)
458
458
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
459
- _(A, {
459
+ _(N, {
460
460
  disabled: e.disabled,
461
461
  "label-mark": "optional",
462
- label: p(a)("inventory.supplier.address.line2"),
462
+ label: c(a)("inventory.supplier.address.line2"),
463
463
  modelValue: g.value,
464
464
  "onUpdate:modelValue": d[3] || (d[3] = (S) => g.value = S)
465
465
  }, null, 8, ["disabled", "label", "modelValue"]),
466
- _(A, {
466
+ _(N, {
467
467
  disabled: e.disabled,
468
- rules: [p(G)()],
468
+ rules: [c(G)()],
469
469
  "label-mark": "required",
470
- label: p(a)("inventory.supplier.address.city"),
471
- modelValue: V.value,
472
- "onUpdate:modelValue": d[4] || (d[4] = (S) => V.value = S)
470
+ label: c(a)("inventory.supplier.address.city"),
471
+ modelValue: h.value,
472
+ "onUpdate:modelValue": d[4] || (d[4] = (S) => h.value = S)
473
473
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
474
- _(A, {
474
+ _(N, {
475
475
  disabled: e.disabled,
476
- rules: [p(G)()],
476
+ rules: [c(G)()],
477
477
  "label-mark": "required",
478
- label: p(a)("inventory.supplier.address.postcode"),
478
+ label: c(a)("inventory.supplier.address.postcode"),
479
479
  modelValue: C.value,
480
480
  "onUpdate:modelValue": d[5] || (d[5] = (S) => C.value = S)
481
481
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
482
- _(A, {
482
+ _(N, {
483
483
  disabled: e.disabled,
484
- rules: [p(G)()],
484
+ rules: [c(G)()],
485
485
  "label-mark": "required",
486
- label: p(a)("inventory.supplier.address.state"),
486
+ label: c(a)("inventory.supplier.address.state"),
487
487
  modelValue: b.value,
488
488
  "onUpdate:modelValue": d[6] || (d[6] = (S) => b.value = S)
489
489
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
490
- _(A, {
490
+ _(N, {
491
491
  disabled: e.disabled,
492
- rules: [p(G)()],
492
+ rules: [c(G)()],
493
493
  "label-mark": "required",
494
- label: p(a)("inventory.supplier.address.country"),
495
- modelValue: n.value,
496
- "onUpdate:modelValue": d[7] || (d[7] = (S) => n.value = S)
494
+ label: c(a)("inventory.supplier.address.country"),
495
+ modelValue: l.value,
496
+ "onUpdate:modelValue": d[7] || (d[7] = (S) => l.value = S)
497
497
  }, null, 8, ["disabled", "rules", "label", "modelValue"])
498
498
  ])
499
499
  ]),
500
500
  v("div", D0, [
501
- v("div", U0, T(p(a)("inventory.supplier.contact.title")), 1),
501
+ v("div", U0, T(c(a)("inventory.supplier.contact.title")), 1),
502
502
  v("div", L0, [
503
- _(A, {
503
+ _(N, {
504
504
  disabled: e.disabled,
505
- rules: [p(G)()],
505
+ rules: [c(G)()],
506
506
  "label-mark": "required",
507
- label: p(a)("inventory.supplier.contact.pic"),
507
+ label: c(a)("inventory.supplier.contact.pic"),
508
508
  modelValue: M.value,
509
509
  "onUpdate:modelValue": d[8] || (d[8] = (S) => M.value = S)
510
510
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
511
511
  _(od, {
512
512
  disabled: e.disabled,
513
- rules: [p(G)()],
513
+ rules: [c(G)()],
514
514
  "label-mark": "required",
515
- label: p(a)("inventory.supplier.contact.phoneNumber"),
515
+ label: c(a)("inventory.supplier.contact.phoneNumber"),
516
516
  modelValue: P.value,
517
517
  "onUpdate:modelValue": d[9] || (d[9] = (S) => P.value = S)
518
518
  }, null, 8, ["disabled", "rules", "label", "modelValue"]),
519
- _(A, {
519
+ _(N, {
520
520
  disabled: e.disabled,
521
521
  "label-mark": "optional",
522
- label: p(a)("inventory.supplier.contact.email"),
522
+ label: c(a)("inventory.supplier.contact.email"),
523
523
  modelValue: R.value,
524
524
  "onUpdate:modelValue": d[10] || (d[10] = (S) => R.value = S)
525
525
  }, null, 8, ["disabled", "label", "modelValue"])
526
526
  ])
527
527
  ]),
528
- p(m).enableTotalCost ? (x(), I("div", G0, [
528
+ c(m).enableTotalCost ? (V(), I("div", G0, [
529
529
  _(I0, {
530
530
  modelValue: w.value,
531
531
  "onUpdate:modelValue": d[11] || (d[11] = (S) => w.value = S)
@@ -545,48 +545,48 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
545
545
  show: { type: Boolean }
546
546
  },
547
547
  emits: ["update:show", "submitted"],
548
- setup(o, { expose: t, emit: r }) {
549
- const $ = o, c = r, m = B(!1), s = td(), { t: l } = O(), a = J(), f = N(() => {
548
+ setup(r, { expose: t, emit: o }) {
549
+ const $ = r, p = o, m = B(!1), s = td(), { t: n } = O(), a = J(), x = A(() => {
550
550
  switch ($.mode) {
551
551
  case U.READ:
552
552
  return "";
553
553
  case U.UPDATE:
554
- return l("inventory.supplier.update.title");
554
+ return n("inventory.supplier.update.title");
555
555
  case U.CREATE:
556
- return l("inventory.supplier.create.title");
556
+ return n("inventory.supplier.create.title");
557
557
  }
558
558
  return "";
559
- }), y = N(() => {
559
+ }), f = A(() => {
560
560
  switch ($.mode) {
561
561
  case U.READ:
562
562
  return "";
563
563
  case U.UPDATE:
564
- return l("common.save");
564
+ return n("common.save");
565
565
  case U.CREATE:
566
- return l("common.add");
566
+ return n("common.add");
567
567
  }
568
568
  return "";
569
569
  }), i = B();
570
570
  t({
571
571
  validateInputs: () => {
572
- var n, M;
573
- (M = (n = i.value) == null ? void 0 : n.validateInputs) == null || M.call(n);
572
+ var l, M;
573
+ (M = (l = i.value) == null ? void 0 : l.validateInputs) == null || M.call(l);
574
574
  },
575
575
  resetInputsValidation: () => {
576
- var n, M;
577
- (M = (n = i.value) == null ? void 0 : n.resetInputsValidation) == null || M.call(n);
576
+ var l, M;
577
+ (M = (l = i.value) == null ? void 0 : l.resetInputsValidation) == null || M.call(l);
578
578
  },
579
579
  resetInputs: () => {
580
- var n, M;
581
- (M = (n = i.value) == null ? void 0 : n.resetInputs) == null || M.call(n);
580
+ var l, M;
581
+ (M = (l = i.value) == null ? void 0 : l.resetInputs) == null || M.call(l);
582
582
  }
583
583
  });
584
- const h = Ad($, "show"), u = Ad($, "supplier");
584
+ const y = Nd($, "show"), u = Nd($, "supplier");
585
585
  function g() {
586
- var n, M;
587
- (M = (n = i.value) == null ? void 0 : n.validateInputs) == null || M.call(n);
586
+ var l, M;
587
+ (M = (l = i.value) == null ? void 0 : l.validateInputs) == null || M.call(l);
588
588
  }
589
- function V() {
589
+ function h() {
590
590
  switch ($.mode) {
591
591
  case U.READ:
592
592
  return;
@@ -601,18 +601,18 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
601
601
  try {
602
602
  await Promise.all([
603
603
  a.createSupplier(u.value),
604
- new Promise((n) => setTimeout(n, 1e3))
604
+ new Promise((l) => setTimeout(l, 1e3))
605
605
  ]), s.open({
606
- title: l("inventory.common.success"),
607
- message: l("inventory.supplier.create.success", { name: u.value.name }),
606
+ title: n("inventory.common.success"),
607
+ message: n("inventory.supplier.create.success", { name: u.value.name }),
608
608
  type: "success"
609
- }), c("update:show", !1), c("submitted");
610
- } catch (n) {
609
+ }), p("update:show", !1), p("submitted");
610
+ } catch (l) {
611
611
  s.open({
612
612
  title: "Something went wrong",
613
613
  message: `Cannot create ${u.value.name} supplier. Please try again`,
614
614
  type: "error"
615
- }), console.error("cannot create supplier", n);
615
+ }), console.error("cannot create supplier", l);
616
616
  } finally {
617
617
  m.value = !1;
618
618
  }
@@ -620,8 +620,8 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
620
620
  async function b() {
621
621
  if (u.value === null) {
622
622
  s.open({
623
- title: l("inventory.supplier.update.error.title"),
624
- message: l("inventory.supplier.update.error.emptySupplier"),
623
+ title: n("inventory.supplier.update.error.title"),
624
+ message: n("inventory.supplier.update.error.emptySupplier"),
625
625
  type: "error"
626
626
  });
627
627
  return;
@@ -630,28 +630,28 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
630
630
  try {
631
631
  await Promise.all([
632
632
  a.updateSupplier(u.value),
633
- new Promise((n) => setTimeout(n, 1e3))
633
+ new Promise((l) => setTimeout(l, 1e3))
634
634
  ]), s.open({
635
- title: l("inventory.common.success"),
636
- message: l("inventory.supplier.update.success", { name: u.value.name }),
635
+ title: n("inventory.common.success"),
636
+ message: n("inventory.supplier.update.success", { name: u.value.name }),
637
637
  type: "success"
638
- }), c("update:show", !1), c("submitted");
639
- } catch (n) {
638
+ }), p("update:show", !1), p("submitted");
639
+ } catch (l) {
640
640
  s.open({
641
- title: l("inventory.supplier.update.error.title"),
642
- message: l("inventory.supplier.update.error.message"),
641
+ title: n("inventory.supplier.update.error.title"),
642
+ message: n("inventory.supplier.update.error.message"),
643
643
  type: "error"
644
- }), console.error("cannot update supplier", n);
644
+ }), console.error("cannot update supplier", l);
645
645
  } finally {
646
646
  m.value = !1;
647
647
  }
648
648
  }
649
- return (n, M) => {
649
+ return (l, M) => {
650
650
  const P = k("FmButton"), R = k("FmSideSheet");
651
- return x(), H(R, {
652
- header: f.value,
653
- modelValue: p(h),
654
- "onUpdate:modelValue": M[1] || (M[1] = (w) => xd(h) ? h.value = w : null),
651
+ return V(), H(R, {
652
+ header: x.value,
653
+ modelValue: c(y),
654
+ "onUpdate:modelValue": M[1] || (M[1] = (w) => Md(y) ? y.value = w : null),
655
655
  "dismiss-away": !m.value,
656
656
  "close-button": "",
657
657
  "max-width": 500
@@ -659,14 +659,14 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
659
659
  default: L(() => {
660
660
  var w;
661
661
  return [
662
- (x(), H(H0, {
662
+ (V(), H(H0, {
663
663
  class: "w-full",
664
664
  ref_key: "formRef",
665
665
  ref: i,
666
- modelValue: p(u),
667
- "onUpdate:modelValue": M[0] || (M[0] = (F) => xd(u) ? u.value = F : null),
668
- onValidationSuccess: V,
669
- key: ((w = n.supplier) == null ? void 0 : w._id) ?? "",
666
+ modelValue: c(u),
667
+ "onUpdate:modelValue": M[0] || (M[0] = (F) => Md(u) ? u.value = F : null),
668
+ onValidationSuccess: h,
669
+ key: ((w = l.supplier) == null ? void 0 : w._id) ?? "",
670
670
  disabled: m.value
671
671
  }, null, 8, ["modelValue", "disabled"]))
672
672
  ];
@@ -675,7 +675,7 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
675
675
  v("div", K0, [
676
676
  _(P, {
677
677
  loading: m.value,
678
- label: y.value,
678
+ label: f.value,
679
679
  onClick: g
680
680
  }, null, 8, ["loading", "label"])
681
681
  ])
@@ -685,27 +685,27 @@ const f0 = { class: "flex flex-col gap-12" }, g0 = { class: "flex flex-col" }, b
685
685
  };
686
686
  }
687
687
  }), Y0 = { version: 4, country_calling_codes: { 1: ["US", "AG", "AI", "AS", "BB", "BM", "BS", "CA", "DM", "DO", "GD", "GU", "JM", "KN", "KY", "LC", "MP", "MS", "PR", "SX", "TC", "TT", "VC", "VG", "VI"], 7: ["RU", "KZ"], 20: ["EG"], 27: ["ZA"], 30: ["GR"], 31: ["NL"], 32: ["BE"], 33: ["FR"], 34: ["ES"], 36: ["HU"], 39: ["IT", "VA"], 40: ["RO"], 41: ["CH"], 43: ["AT"], 44: ["GB", "GG", "IM", "JE"], 45: ["DK"], 46: ["SE"], 47: ["NO", "SJ"], 48: ["PL"], 49: ["DE"], 51: ["PE"], 52: ["MX"], 53: ["CU"], 54: ["AR"], 55: ["BR"], 56: ["CL"], 57: ["CO"], 58: ["VE"], 60: ["MY"], 61: ["AU", "CC", "CX"], 62: ["ID"], 63: ["PH"], 64: ["NZ"], 65: ["SG"], 66: ["TH"], 81: ["JP"], 82: ["KR"], 84: ["VN"], 86: ["CN"], 90: ["TR"], 91: ["IN"], 92: ["PK"], 93: ["AF"], 94: ["LK"], 95: ["MM"], 98: ["IR"], 211: ["SS"], 212: ["MA", "EH"], 213: ["DZ"], 216: ["TN"], 218: ["LY"], 220: ["GM"], 221: ["SN"], 222: ["MR"], 223: ["ML"], 224: ["GN"], 225: ["CI"], 226: ["BF"], 227: ["NE"], 228: ["TG"], 229: ["BJ"], 230: ["MU"], 231: ["LR"], 232: ["SL"], 233: ["GH"], 234: ["NG"], 235: ["TD"], 236: ["CF"], 237: ["CM"], 238: ["CV"], 239: ["ST"], 240: ["GQ"], 241: ["GA"], 242: ["CG"], 243: ["CD"], 244: ["AO"], 245: ["GW"], 246: ["IO"], 247: ["AC"], 248: ["SC"], 249: ["SD"], 250: ["RW"], 251: ["ET"], 252: ["SO"], 253: ["DJ"], 254: ["KE"], 255: ["TZ"], 256: ["UG"], 257: ["BI"], 258: ["MZ"], 260: ["ZM"], 261: ["MG"], 262: ["RE", "YT"], 263: ["ZW"], 264: ["NA"], 265: ["MW"], 266: ["LS"], 267: ["BW"], 268: ["SZ"], 269: ["KM"], 290: ["SH", "TA"], 291: ["ER"], 297: ["AW"], 298: ["FO"], 299: ["GL"], 350: ["GI"], 351: ["PT"], 352: ["LU"], 353: ["IE"], 354: ["IS"], 355: ["AL"], 356: ["MT"], 357: ["CY"], 358: ["FI", "AX"], 359: ["BG"], 370: ["LT"], 371: ["LV"], 372: ["EE"], 373: ["MD"], 374: ["AM"], 375: ["BY"], 376: ["AD"], 377: ["MC"], 378: ["SM"], 380: ["UA"], 381: ["RS"], 382: ["ME"], 383: ["XK"], 385: ["HR"], 386: ["SI"], 387: ["BA"], 389: ["MK"], 420: ["CZ"], 421: ["SK"], 423: ["LI"], 500: ["FK"], 501: ["BZ"], 502: ["GT"], 503: ["SV"], 504: ["HN"], 505: ["NI"], 506: ["CR"], 507: ["PA"], 508: ["PM"], 509: ["HT"], 590: ["GP", "BL", "MF"], 591: ["BO"], 592: ["GY"], 593: ["EC"], 594: ["GF"], 595: ["PY"], 596: ["MQ"], 597: ["SR"], 598: ["UY"], 599: ["CW", "BQ"], 670: ["TL"], 672: ["NF"], 673: ["BN"], 674: ["NR"], 675: ["PG"], 676: ["TO"], 677: ["SB"], 678: ["VU"], 679: ["FJ"], 680: ["PW"], 681: ["WF"], 682: ["CK"], 683: ["NU"], 685: ["WS"], 686: ["KI"], 687: ["NC"], 688: ["TV"], 689: ["PF"], 690: ["TK"], 691: ["FM"], 692: ["MH"], 850: ["KP"], 852: ["HK"], 853: ["MO"], 855: ["KH"], 856: ["LA"], 880: ["BD"], 886: ["TW"], 960: ["MV"], 961: ["LB"], 962: ["JO"], 963: ["SY"], 964: ["IQ"], 965: ["KW"], 966: ["SA"], 967: ["YE"], 968: ["OM"], 970: ["PS"], 971: ["AE"], 972: ["IL"], 973: ["BH"], 974: ["QA"], 975: ["BT"], 976: ["MN"], 977: ["NP"], 992: ["TJ"], 993: ["TM"], 994: ["AZ"], 995: ["GE"], 996: ["KG"], 998: ["UZ"] }, countries: { AC: ["247", "00", "(?:[01589]\\d|[46])\\d{4}", [5, 6]], AD: ["376", "00", "(?:1|6\\d)\\d{7}|[135-9]\\d{5}", [6, 8, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["[135-9]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["1"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]]], AE: ["971", "00", "(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{2,9})", "$1 $2", ["60|8"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[236]|[479][2-8]"], "0$1"], ["(\\d{3})(\\d)(\\d{5})", "$1 $2 $3", ["[479]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"]], "0"], AF: ["93", "00", "[2-7]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"]], "0"], AG: ["1", "011", "(?:268|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([457]\\d{6})$|1", "268$1", 0, "268"], AI: ["1", "011", "(?:264|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2457]\\d{6})$|1", "264$1", 0, "264"], AL: ["355", "00", "(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}", [6, 7, 8, 9], [["(\\d{3})(\\d{3,4})", "$1 $2", ["80|9"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["4[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2358][2-5]|4"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["[23578]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["6"], "0$1"]], "0"], AM: ["374", "00", "(?:[1-489]\\d|55|60|77)\\d{6}", [8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[89]0"], "0 $1"], ["(\\d{3})(\\d{5})", "$1 $2", ["2|3[12]"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["1|47"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[3-9]"], "0$1"]], "0"], AO: ["244", "00", "[29]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[29]"]]]], AR: ["54", "00", "(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}", [10, 11], [["(\\d{4})(\\d{2})(\\d{4})", "$1 $2-$3", ["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])", "2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["1"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[68]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2-$3", ["[23]"], "0$1", 1], ["(\\d)(\\d{4})(\\d{2})(\\d{4})", "$2 15-$3-$4", ["9(?:2[2-469]|3[3-578])", "9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))", "9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]", "9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d)(\\d{2})(\\d{4})(\\d{4})", "$2 15-$3-$4", ["91"], "0$1", 0, "$1 $2 $3-$4"], ["(\\d{3})(\\d{3})(\\d{5})", "$1-$2-$3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{4})", "$2 15-$3-$4", ["9"], "0$1", 0, "$1 $2 $3-$4"]], "0", 0, "0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?", "9$1"], AS: ["1", "011", "(?:[58]\\d\\d|684|900)\\d{7}", [10], 0, "1", 0, "([267]\\d{6})$|1", "684$1", 0, "684"], AT: ["43", "00", "1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{3,12})", "$1 $2", ["1(?:11|[2-9])"], "0$1"], ["(\\d{3})(\\d{2})", "$1 $2", ["517"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["5[079]"], "0$1"], ["(\\d{3})(\\d{3,10})", "$1 $2", ["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"], "0$1"], ["(\\d{4})(\\d{3,9})", "$1 $2", ["[2-467]|5[2-6]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,7})", "$1 $2 $3", ["5"], "0$1"]], "0"], AU: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}", [5, 6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{3,4})", "$1 $2", ["16"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["16"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["14|4"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[2378]"], "(0$1)"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1(?:30|[89])"]]], "0", 0, "(183[12])|0", 0, 0, 0, [["(?:(?:(?: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}", [9]], ["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}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, ["163\\d{2,6}", [5, 6, 7, 8, 9]], ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], AW: ["297", "00", "(?:[25-79]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[25-9]"]]]], AX: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}", [5, 6, 7, 8, 9, 10, 11, 12], 0, "0", 0, 0, 0, 0, "18", 0, "00"], AZ: ["994", "00", "365\\d{6}|(?:[124579]\\d|60|88)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[28]|2|365|46", "1[28]|2|365[45]|46", "1[28]|2|365(?:4|5[02])|46"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[13-9]"], "0$1"]], "0"], BA: ["387", "00", "6\\d{8}|(?:[35689]\\d|49|70)\\d{6}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[1-3]|[7-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2-$3", ["[3-5]|6[56]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["6"], "0$1"]], "0"], BB: ["1", "011", "(?:246|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "246$1", 0, "246"], BD: ["880", "00", "[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{2})(\\d{4,6})", "$1-$2", ["31[5-8]|[459]1"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1-$2", ["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"], "0$1"], ["(\\d{4})(\\d{3,6})", "$1-$2", ["[13-9]|2[23]"], "0$1"], ["(\\d)(\\d{7,8})", "$1-$2", ["2"], "0$1"]], "0"], BE: ["32", "00", "4\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:80|9)0"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[239]|4[23]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[15-8]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4"], "0$1"]], "0"], BF: ["226", "00", "[025-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[025-7]"]]]], BG: ["359", "00", "00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}", [6, 7, 8, 9, 12], [["(\\d)(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["43[1-6]|70[1-9]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?:70|8)0"], "0$1"], ["(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3", ["43[1-7]|7"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[48]|9[08]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"]], "0"], BH: ["973", "00", "[136-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[13679]|8[02-4679]"]]]], BI: ["257", "00", "(?:[267]\\d|31)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2367]"]]]], BJ: ["229", "00", "(?:01\\d|[24-689])\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], BL: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"], ["(?: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}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], BM: ["1", "011", "(?:441|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "441$1", 0, "441"], BN: ["673", "00", "[2-578]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-578]"]]]], BO: ["591", "00(?:1\\d)?", "8001\\d{5}|(?:[2-467]\\d|50)\\d{6}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[235]|4[46]"]], ["(\\d{8})", "$1", ["[67]"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["8"]]], "0", 0, "0(1\\d)?"], BQ: ["599", "00", "(?:[34]1|7\\d)\\d{5}", [7], 0, 0, 0, 0, 0, 0, "[347]"], BR: ["55", "00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)", "(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37)", "4(?:02|37)0|[34]00"]], ["(\\d{3})(\\d{2,3})(\\d{4})", "$1 $2 $3", ["(?:[358]|90)0"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2-$3", ["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"], "($1)"], ["(\\d{2})(\\d{5})(\\d{4})", "$1 $2-$3", ["[16][1-9]|[2-57-9]"], "($1)"]], "0", 0, "(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?", "$2"], BS: ["1", "011", "(?:242|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([3-8]\\d{6})$|1", "242$1", 0, "242"], BT: ["975", "00", "[17]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-68]|7[246]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|7"]]]], BW: ["267", "00", "(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["90"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[24-6]|3[15-9]"]], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37]"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["8"]]]], BY: ["375", "810", "(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3})", "$1 $2", ["800"], "8 $1"], ["(\\d{3})(\\d{2})(\\d{2,4})", "$1 $2 $3", ["800"], "8 $1"], ["(\\d{4})(\\d{2})(\\d{3})", "$1 $2-$3", ["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])", "1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"], "8 0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["1(?:[56]|7[467])|2[1-3]"], "8 0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-4]"], "8 0$1"], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[89]"], "8 $1"]], "8", 0, "0|80?", 0, 0, 0, 0, "8~10"], BZ: ["501", "00", "(?:0800\\d|[2-8])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-8]"]], ["(\\d)(\\d{3})(\\d{4})(\\d{3})", "$1-$2-$3-$4", ["0"]]]], CA: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [7, 10], 0, "1", 0, 0, 0, 0, 0, [["(?: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}", [10]], ["", [10]], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}", [10]], ["900[2-9]\\d{6}", [10]], ["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}", [10]], 0, ["310\\d{4}", [7]], 0, ["600[2-9]\\d{6}", [10]]]], CC: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}", [9]], ["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}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CD: ["243", "00", "(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[1-6]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["5"], "0$1"]], "0"], CF: ["236", "00", "(?:[27]\\d{3}|8776)\\d{4}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[278]"]]]], CG: ["242", "00", "222\\d{6}|(?:0\\d|80)\\d{7}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[02]"]]]], CH: ["41", "00", "8\\d{11}|[2-9]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8[047]|90"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]|81"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["8"], "0$1"]], "0"], CI: ["225", "00", "[02]\\d{9}", [10], [["(\\d{2})(\\d{2})(\\d)(\\d{5})", "$1 $2 $3 $4", ["2"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3 $4", ["0"]]]], CK: ["682", "00", "[2-578]\\d{4}", [5], [["(\\d{2})(\\d{3})", "$1 $2", ["[2-578]"]]]], CL: ["56", "(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0", "12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}", [9, 10, 11], [["(\\d{5})(\\d{4})", "$1 $2", ["219", "2196"], "($1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["44"]], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2[1-36]"], "($1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["9[2-9]"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"], "($1)"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["60|8"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{3})(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["60"]]]], CM: ["237", "00", "[26]\\d{8}|88\\d{6,7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["88"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[26]|88"]]]], CN: ["86", "00|1(?:[12]\\d|79)\\d\\d00", "(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5,6})", "$1 $2", ["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]", "(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123", "10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"], "0$1"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]", "(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]", "85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])", "85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["(?:4|80)0"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|2(?:[02-57-9]|1[1-9])", "10|2(?:[02-57-9]|1[1-9])", "10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"], "0$1", 1], ["(\\d{3})(\\d{7,8})", "$1 $2", ["9"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["80"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[3-578]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["1[3-9]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["[12]"], "0$1", 1]], "0", 0, "(1(?:[12]\\d|79)\\d\\d)|0", 0, 0, 0, 0, "00"], CO: ["57", "00(?:4(?:[14]4|56)|[579])", "(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["46"]], ["(\\d{3})(\\d{7})", "$1 $2", ["6|90"], "($1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3[0-357]|91"]], ["(\\d)(\\d{3})(\\d{7})", "$1-$2-$3", ["1"], "0$1", 0, "$1 $2 $3"]], "0", 0, "0([3579]|4(?:[14]4|56))?"], CR: ["506", "00", "(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}", [8, 10], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[3-9]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["[89]"]]], 0, 0, "(19(?:0[0-2468]|1[09]|20|66|77|99))"], CU: ["53", "119", "(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}", [6, 7, 8, 10], [["(\\d{2})(\\d{4,6})", "$1 $2", ["2[1-4]|[34]"], "(0$1)"], ["(\\d)(\\d{6,7})", "$1 $2", ["7"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["[56]"], "0$1"], ["(\\d{3})(\\d{7})", "$1 $2", ["8"], "0$1"]], "0"], CV: ["238", "0", "(?:[2-59]\\d\\d|800)\\d{4}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-589]"]]]], CW: ["599", "00", "(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[3467]"]], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["9[4-8]"]]], 0, 0, 0, 0, 0, "[69]"], CX: ["61", "001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011", "1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}", [6, 7, 8, 9, 10, 12], 0, "0", 0, "([59]\\d{7})$|0", "8$1", 0, 0, [["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}", [9]], ["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}", [9]], ["180(?:0\\d{3}|2)\\d{3}", [7, 10]], ["190[0-26]\\d{6}", [10]], 0, 0, 0, 0, ["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}", [9]], ["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}", [6, 8, 10, 12]]], "0011"], CY: ["357", "00", "(?:[279]\\d|[58]0)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[257-9]"]]]], CZ: ["420", "00", "(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}", [9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]|9[015-7]"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["96"]], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]]], DE: ["49", "00", "[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], [["(\\d{2})(\\d{3,13})", "$1 $2", ["3[02]|40|[68]9"], "0$1"], ["(\\d{3})(\\d{3,12})", "$1 $2", ["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1", "2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"], "0$1"], ["(\\d{4})(\\d{2,11})", "$1 $2", ["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]", "[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["138"], "0$1"], ["(\\d{5})(\\d{2,10})", "$1 $2", ["3"], "0$1"], ["(\\d{3})(\\d{5,11})", "$1 $2", ["181"], "0$1"], ["(\\d{3})(\\d)(\\d{4,10})", "$1 $2 $3", ["1(?:3|80)|9"], "0$1"], ["(\\d{3})(\\d{7,8})", "$1 $2", ["1[67]"], "0$1"], ["(\\d{3})(\\d{7,12})", "$1 $2", ["8"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["185", "1850", "18500"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["18[68]"], "0$1"], ["(\\d{4})(\\d{7})", "$1 $2", ["15[1279]"], "0$1"], ["(\\d{5})(\\d{6})", "$1 $2", ["15[03568]", "15(?:[0568]|31)"], "0$1"], ["(\\d{3})(\\d{8})", "$1 $2", ["18"], "0$1"], ["(\\d{3})(\\d{2})(\\d{7,8})", "$1 $2 $3", ["1(?:6[023]|7)"], "0$1"], ["(\\d{4})(\\d{2})(\\d{7})", "$1 $2 $3", ["15[279]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{8})", "$1 $2 $3", ["15"], "0$1"]], "0"], DJ: ["253", "00", "(?:2\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[27]"]]]], DK: ["45", "00", "[2-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-9]"]]]], DM: ["1", "011", "(?:[58]\\d\\d|767|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "767$1", 0, "767"], DO: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "8001|8[024]9"], DZ: ["213", "00", "(?:[1-4]|[5-79]\\d|80)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["9"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-8]"], "0$1"]], "0"], EC: ["593", "00", "1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}", [8, 9, 10, 11], [["(\\d)(\\d{3})(\\d{4})", "$1 $2-$3", ["[2-7]"], "(0$1)", 0, "$1-$2-$3"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1"]]], "0"], EE: ["372", "00", "8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88", "[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]], ["(\\d{4})(\\d{3,4})", "$1 $2", ["[45]|8(?:00|[1-49])", "[45]|8(?:00[1-9]|[1-49])"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], EG: ["20", "00", "[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}", [8, 9, 10], [["(\\d)(\\d{7,8})", "$1 $2", ["[23]"], "0$1"], ["(\\d{2})(\\d{6,7})", "$1 $2", ["1[35]|[4-6]|8[2468]|9[235-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{8})", "$1 $2", ["1"], "0$1"]], "0"], EH: ["212", "00", "[5-8]\\d{8}", [9], 0, "0", 0, 0, 0, 0, "528[89]"], ER: ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], ES: ["34", "00", "[5-9]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-9]"]]]], ET: ["251", "00", "(?:11|[2-579]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-579]"], "0$1"]], "0"], FI: ["358", "00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))", "[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}", [5, 6, 7, 8, 9, 10, 11, 12], [["(\\d{5})", "$1", ["20[2-59]"], "0$1"], ["(\\d{3})(\\d{3,7})", "$1 $2", ["(?:[1-3]0|[68])0|70[07-9]"], "0$1"], ["(\\d{2})(\\d{4,8})", "$1 $2", ["[14]|2[09]|50|7[135]"], "0$1"], ["(\\d{2})(\\d{6,10})", "$1 $2", ["7"], "0$1"], ["(\\d)(\\d{4,9})", "$1 $2", ["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"], "0$1"]], "0", 0, 0, 0, 0, "1[03-79]|[2-9]", 0, "00"], FJ: ["679", "0(?:0|52)", "45\\d{5}|(?:0800\\d|[235-9])\\d{6}", [7, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|45"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]]], 0, 0, 0, 0, 0, 0, 0, "00"], FK: ["500", "00", "[2-7]\\d{4}", [5]], FM: ["691", "00", "(?:[39]\\d\\d|820)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[389]"]]]], FO: ["298", "00", "[2-9]\\d{5}", [6], [["(\\d{6})", "$1", ["[2-9]"]]], 0, 0, "(10(?:01|[12]0|88))"], FR: ["33", "00", "[1-9]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0 $1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[1-79]"], "0$1"]], "0"], GA: ["241", "00", "(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}", [7, 8], [["(\\d)(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-7]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["11|[67]"], "0$1"]], 0, 0, "0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})", "$1"], GB: ["44", "00", "[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}", [7, 9, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["800", "8001", "80011", "800111", "8001111"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["845", "8454", "84546", "845464"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["800"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["1(?:38|5[23]|69|76|94)", "1(?:(?:38|69)7|5(?:24|39)|768|946)", "1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["1(?:[2-69][02-9]|[78])"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[25]|7(?:0|6[02-9])", "[25]|7(?:0|6(?:[03-9]|2[356]))"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1389]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?: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}", [9, 10]], ["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]], 0, " x"], GD: ["1", "011", "(?:473|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "473$1", 0, "473"], GE: ["995", "00", "(?:[3-57]\\d\\d|800)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["32"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[57]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[348]"], "0$1"]], "0"], GF: ["594", "00", "(?:[56]94\\d|7093)\\d{5}|(?:80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|9[47]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[89]"], "0$1"]], "0"], GG: ["44", "00", "(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?", [7, 9, 10], 0, "0", 0, "([25-9]\\d{5})$|0", "1481$1", 0, 0, [["1481[25-9]\\d{5}", [10]], ["7(?:(?:781|839)\\d|911[17])\\d{5}", [10]], ["80[08]\\d{7}|800\\d{6}|8001111"], ["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d", [7, 10]], ["70\\d{8}", [10]], 0, ["(?:3[0347]|55)\\d{8}", [10]], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}", [10]], ["56\\d{8}", [10]]]], GH: ["233", "00", "(?:[235]\\d{3}|800)\\d{5}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[235]"], "0$1"]], "0"], GI: ["350", "00", "(?:[25]\\d|60)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["2"]]]], GL: ["299", "00", "(?:19|[2-689]\\d|70)\\d{4}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["19|[2-9]"]]]], GM: ["220", "00", "[2-9]\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], GN: ["224", "00", "722\\d{6}|(?:3|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["3"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[67]"]]]], GP: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["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}"], ["(?: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}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], GQ: ["240", "00", "222\\d{6}|(?:3\\d|55|[89]0)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235]"]], ["(\\d{3})(\\d{6})", "$1 $2", ["[89]"]]]], GR: ["30", "00", "5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}", [10, 11, 12], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["21|7"]], ["(\\d{4})(\\d{6})", "$1 $2", ["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2689]"]], ["(\\d{3})(\\d{3,4})(\\d{5})", "$1 $2 $3", ["8"]]]], GT: ["502", "00", "80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[2-8]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], GU: ["1", "011", "(?:[58]\\d\\d|671|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "671$1", 0, "671"], GW: ["245", "00", "[49]\\d{8}|4\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["40"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"]]]], GY: ["592", "001", "(?:[2-8]\\d{3}|9008)\\d{3}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], HK: ["852", "00(?:30|5[09]|[126-9]?)", "8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}", [5, 6, 7, 8, 9, 11], [["(\\d{3})(\\d{2,5})", "$1 $2", ["900", "9003"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{3})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["9"]]], 0, 0, 0, 0, 0, 0, 0, "00"], HN: ["504", "00", "8\\d{10}|[237-9]\\d{7}", [8, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["[237-9]"]]]], HR: ["385", "00", "(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}", [6, 7, 8, 9], [["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["6[01]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{4})(\\d{3})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6|7[245]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-57]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"]], "0"], HT: ["509", "00", "(?:[2-489]\\d|55)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[2-589]"]]]], HU: ["36", "00", "[235-7]\\d{8}|[1-9]\\d{7}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"], "(06 $1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "06 $1"]], "06"], ID: ["62", "00[89]", "00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}", [7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["15"]], ["(\\d{2})(\\d{5,9})", "$1 $2", ["2[124]|[36]1"], "(0$1)"], ["(\\d{3})(\\d{5,7})", "$1 $2", ["800"], "0$1"], ["(\\d{3})(\\d{5,8})", "$1 $2", ["[2-79]"], "(0$1)"], ["(\\d{3})(\\d{3,4})(\\d{3})", "$1-$2-$3", ["8[1-35-9]"], "0$1"], ["(\\d{3})(\\d{6,8})", "$1 $2", ["1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["804"], "0$1"], ["(\\d{3})(\\d)(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["80"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1-$2-$3", ["8"], "0$1"]], "0"], IE: ["353", "00", "(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["2[24-9]|47|58|6[237-9]|9[35-9]"], "(0$1)"], ["(\\d{3})(\\d{5})", "$1 $2", ["[45]0"], "(0$1)"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2569]|4[1-69]|7[14]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["70"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["81"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["4"], "(0$1)"], ["(\\d{2})(\\d)(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], IL: ["972", "0(?:0|1[2-9])", "1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}", [7, 8, 9, 10, 11, 12], [["(\\d{4})(\\d{3})", "$1-$2", ["125"]], ["(\\d{4})(\\d{2})(\\d{2})", "$1-$2-$3", ["121"]], ["(\\d)(\\d{3})(\\d{4})", "$1-$2-$3", ["[2-489]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1-$2-$3", ["12"]], ["(\\d{4})(\\d{6})", "$1-$2", ["159"]], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3-$4", ["1[7-9]"]], ["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})", "$1-$2 $3-$4", ["15"]]], "0"], IM: ["44", "00", "1624\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([25-8]\\d{5})$|0", "1624$1", 0, "74576|(?:16|7[56])24"], IN: ["91", "00", "(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}", [8, 9, 10, 11, 12, 13], [["(\\d{8})", "$1", ["5(?:0|2[23]|3[03]|[67]1|88)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)", "5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"], 0, 1], ["(\\d{4})(\\d{4,5})", "$1 $2", ["180", "1800"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["140"], 0, 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["11|2[02]|33|4[04]|79[1-7]|80[2-46]", "11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["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]", "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]", "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]"], "0$1", 1], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["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", "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]", "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]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["1(?:6|8[06])", "1(?:6|8[06]0)"], 0, 1], ["(\\d{4})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["18"], 0, 1]], "0"], IO: ["246", "00", "3\\d{6}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["3"]]]], IQ: ["964", "00", "(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-6]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], IR: ["98", "00", "[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}", [4, 5, 6, 7, 10], [["(\\d{4,5})", "$1", ["96"], "0$1"], ["(\\d{2})(\\d{4,5})", "$1 $2", ["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["[1-8]"], "0$1"]], "0"], IS: ["354", "00|1(?:0(?:01|[12]0)|100)", "(?:38\\d|[4-9])\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, 0, "00"], IT: ["39", "00", "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})?", [6, 7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{4,6})", "$1 $2", ["0[26]"]], ["(\\d{3})(\\d{3,6})", "$1 $2", ["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])", "0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]], ["(\\d{4})(\\d{2,6})", "$1 $2", ["0(?:[13-579][2-46-8]|8[236-8])"]], ["(\\d{4})(\\d{4})", "$1 $2", ["894"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[26]|5"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["1(?:44|[679])|[378]|43"]], ["(\\d{3})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["0[13-57-9][0159]|14"]], ["(\\d{2})(\\d{4})(\\d{5})", "$1 $2 $3", ["0[26]"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["3"]]], 0, 0, 0, 0, 0, 0, [["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}", [6, 7, 8, 9, 10, 11]], ["3[2-9]\\d{7,8}|(?:31|43)\\d{8}", [9, 10]], ["80(?:0\\d{3}|3)\\d{3}", [6, 9]], ["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}", [6, 8, 9, 10]], ["1(?:78\\d|99)\\d{6}", [9, 10]], ["3[2-8]\\d{9,10}", [11, 12]], 0, 0, ["55\\d{8}", [10]], ["84(?:[08]\\d{3}|[17])\\d{3}", [6, 9]]]], JE: ["44", "00", "1534\\d{6}|(?:[3578]\\d|90)\\d{8}", [10], 0, "0", 0, "([0-24-8]\\d{5})$|0", "1534$1", 0, 0, [["1534[0-24-8]\\d{5}"], ["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"], ["80(?:07(?:35|81)|8901)\\d{4}"], ["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"], ["701511\\d{4}"], 0, ["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"], ["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"], ["56\\d{8}"]]], JM: ["1", "011", "(?:[58]\\d\\d|658|900)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "658|876"], JO: ["962", "00", "(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}", [8, 9], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2356]|87"], "(0$1)"], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["70"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["7"], "0$1"]], "0"], JP: ["81", "010", "00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}", [8, 9, 10, 11, 12, 13, 14, 15, 16, 17], [["(\\d{3})(\\d{3})(\\d{3})", "$1-$2-$3", ["(?:12|57|99)0"], "0$1"], ["(\\d{4})(\\d)(\\d{4})", "$1-$2-$3", ["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]", "1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["60"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2-$3", ["3|4(?:2[09]|7[01])|6[1-9]", "3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]", "1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3", ["[14]|[289][2-9]|5[3-9]|7[2-4679]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2-$3", ["800"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[25-9]"], "0$1"]], "0", 0, "(000[259]\\d{6})$|(?:(?:003768)0?)|0", "$1"], KE: ["254", "000", "(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}", [7, 8, 9, 10], [["(\\d{2})(\\d{5,7})", "$1 $2", ["[24-6]"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[17]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0"], KG: ["996", "00", "8\\d{9}|[235-9]\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["3(?:1[346]|[24-79])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-79]|88"], "0$1"], ["(\\d{3})(\\d{3})(\\d)(\\d{2,3})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], KH: ["855", "00[14-9]", "1\\d{9}|[1-9]\\d{7,8}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], KI: ["686", "00", "(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}", [5, 8], 0, "0"], KM: ["269", "00", "[3478]\\d{6}", [7], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[3478]"]]]], KN: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "869$1", 0, "869"], KP: ["850", "00|99", "85\\d{6}|(?:19\\d|[2-7])\\d{7}", [8, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-7]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"]], "0"], KR: ["82", "00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))", "00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}", [5, 6, 8, 9, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3,4})", "$1-$2", ["(?:3[1-3]|[46][1-4]|5[1-5])1"], "0$1"], ["(\\d{4})(\\d{4})", "$1-$2", ["1"]], ["(\\d)(\\d{3,4})(\\d{4})", "$1-$2-$3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1-$2-$3", ["[36]0|8"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1-$2-$3", ["[1346]|5[1-5]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2-$3", ["[57]"], "0$1"], ["(\\d{2})(\\d{5})(\\d{4})", "$1-$2-$3", ["5"], "0$1"]], "0", 0, "0(8(?:[1-46-8]|5\\d\\d))?"], KW: ["965", "00", "18\\d{5}|(?:[2569]\\d|41)\\d{6}", [7, 8], [["(\\d{4})(\\d{3,4})", "$1 $2", ["[169]|2(?:[235]|4[1-35-9])|52"]], ["(\\d{3})(\\d{5})", "$1 $2", ["[245]"]]]], KY: ["1", "011", "(?:345|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "345$1", 0, "345"], KZ: ["7", "810", "(?:33622|8\\d{8})\\d{5}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "33|7", 0, "8~10"], LA: ["856", "00", "[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}", [8, 9, 10], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2[13]|3[14]|[4-8]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["30[0135-9]"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0"], LB: ["961", "00", "[27-9]\\d{7}|[13-9]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[27-9]"]]], "0"], LC: ["1", "011", "(?:[58]\\d\\d|758|900)\\d{7}", [10], 0, "1", 0, "([2-8]\\d{6})$|1", "758$1", 0, "758"], LI: ["423", "00", "[68]\\d{8}|(?:[2378]\\d|90)\\d{5}", [7, 9], [["(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2379]|8(?:0[09]|7)", "[2379]|8(?:0(?:02|9)|7)"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["69"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]]], "0", 0, "(1001)|0"], LK: ["94", "00", "[1-9]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1-689]"], "0$1"]], "0"], LR: ["231", "00", "(?:[245]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["4[67]|[56]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-578]"], "0$1"]], "0"], LS: ["266", "00", "(?:[256]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2568]"]]]], LT: ["370", "00", "(?:[3469]\\d|52|[78]0)\\d{6}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["52[0-7]"], "(0-$1)", 1], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0 $1", 1], ["(\\d{2})(\\d{6})", "$1 $2", ["37|4(?:[15]|6[1-8])"], "(0-$1)", 1], ["(\\d{3})(\\d{5})", "$1 $2", ["[3-6]"], "(0-$1)", 1]], "0", 0, "[08]"], LU: ["352", "00", "35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}", [4, 5, 6, 7, 8, 9, 10, 11], [["(\\d{2})(\\d{3})", "$1 $2", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["20[2-689]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4", ["2(?:[0367]|4[3-8])"]], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["80[01]|90[015]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3 $4", ["20"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})", "$1 $2 $3 $4 $5", ["2(?:[0367]|4[3-8])"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})", "$1 $2 $3 $4", ["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], LV: ["371", "00", "(?:[268]\\d|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[269]|8[01]"]]]], LY: ["218", "00", "[2-9]\\d{8}", [9], [["(\\d{2})(\\d{7})", "$1-$2", ["[2-9]"], "0$1"]], "0"], MA: ["212", "00", "[5-8]\\d{8}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5[45]"], "0$1"], ["(\\d{4})(\\d{5})", "$1-$2", ["5(?:2[2-46-9]|3[3-9]|9)|8(?:0[89]|92)"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8"], "0$1"], ["(\\d{3})(\\d{6})", "$1-$2", ["[5-7]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["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}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[0167]\\d|2[0-467]|5[0-3]|8[0-5]))\\d{6}"], ["80[0-7]\\d{6}"], ["89\\d{7}"], 0, 0, 0, 0, ["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]], MC: ["377", "00", "(?:[3489]|6\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["4"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[389]"]], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["6"], "0$1"]], "0"], MD: ["373", "00", "(?:[235-7]\\d|[89]0)\\d{6}", [8], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["22|3"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["[25-7]"], "0$1"]], "0"], ME: ["382", "00", "(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[2-9]"], "0$1"]], "0"], MF: ["590", "00", "(?:590\\d|7090)\\d{5}|(?:69|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"], ["(?: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}"], ["80[0-5]\\d{6}"], 0, 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-5])\\d{4}"]]], MG: ["261", "00", "[23]\\d{8}", [9], [["(\\d{2})(\\d{2})(\\d{3})(\\d{2})", "$1 $2 $3 $4", ["[23]"], "0$1"]], "0", 0, "([24-9]\\d{6})$|0", "20$1"], MH: ["692", "011", "329\\d{4}|(?:[256]\\d|45)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1-$2", ["[2-6]"]]], "1"], MK: ["389", "00", "[2-578]\\d{7}", [8], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2|34[47]|4(?:[37]7|5[47]|64)"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[347]"], "0$1"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[58]"], "0$1"]], "0"], ML: ["223", "00", "[24-9]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24-9]"]]]], MM: ["95", "00", "1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}", [6, 7, 8, 9, 10], [["(\\d)(\\d{2})(\\d{3})", "$1 $2 $3", ["16|2"], "0$1"], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"], "0$1"], ["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[12]|452|678|86", "[12]|452|6788|86"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[4-7]|8[1-35]"], "0$1"], ["(\\d)(\\d{3})(\\d{4,6})", "$1 $2 $3", ["9(?:2[0-4]|[35-9]|4[137-9])"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["92"], "0$1"], ["(\\d)(\\d{5})(\\d{4})", "$1 $2 $3", ["9"], "0$1"]], "0"], MN: ["976", "001", "[12]\\d{7,9}|[5-9]\\d{7}", [8, 9, 10], [["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["[12]1"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[5-9]"]], ["(\\d{3})(\\d{5,6})", "$1 $2", ["[12]2[1-3]"], "0$1"], ["(\\d{4})(\\d{5,6})", "$1 $2", ["[12](?:27|3[2-8]|4[2-68]|5[1-4689])", "[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"], "0$1"], ["(\\d{5})(\\d{4,5})", "$1 $2", ["[12]"], "0$1"]], "0"], MO: ["853", "00", "0800\\d{3}|(?:28|[68]\\d)\\d{6}", [7, 8], [["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[268]"]]]], MP: ["1", "011", "[58]\\d{9}|(?:67|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "670$1", 0, "670"], MQ: ["596", "00", "(?:596\\d|7091)\\d{5}|(?:69|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|8(?:0[6-9]|[36])"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], MR: ["222", "00", "(?:[2-4]\\d\\d|800)\\d{5}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-48]"]]]], MS: ["1", "011", "(?:[58]\\d\\d|664|900)\\d{7}", [10], 0, "1", 0, "([34]\\d{6})$|1", "664$1", 0, "664"], MT: ["356", "00", "3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[2357-9]"]]]], MU: ["230", "0(?:0|[24-7]0|3[03])", "(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}", [7, 8, 10], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-46]|8[013]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[57]"]], ["(\\d{5})(\\d{5})", "$1 $2", ["8"]]], 0, 0, 0, 0, 0, 0, 0, "020"], MV: ["960", "0(?:0|19)", "(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}", [7, 10], [["(\\d{3})(\\d{4})", "$1-$2", ["[34679]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MW: ["265", "00", "(?:[1289]\\d|31|77)\\d{7}|1\\d{6}", [7, 9], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["1[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[137-9]"], "0$1"]], "0"], MX: ["52", "0[09]", "[2-9]\\d{9}", [10], [["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["33|5[56]|81"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], MY: ["60", "00", "1\\d{8,9}|(?:3\\d|[4-9])\\d{7}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1-$2 $3", ["[4-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1-$2 $3", ["1(?:[02469]|[378][1-9]|53)|8", "1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"], "0$1"], ["(\\d)(\\d{4})(\\d{4})", "$1-$2 $3", ["3"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{4})", "$1-$2-$3-$4", ["1(?:[367]|80)"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1-$2 $3", ["15"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4})", "$1-$2 $3", ["1"], "0$1"]], "0"], MZ: ["258", "00", "(?:2|8\\d)\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2|8[2-79]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["8"]]]], NA: ["264", "00", "[68]\\d{7,8}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["88"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["87"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], NC: ["687", "00", "(?:050|[2-57-9]\\d\\d)\\d{3}", [6], [["(\\d{2})(\\d{2})(\\d{2})", "$1.$2.$3", ["[02-57-9]"]]]], NE: ["227", "00", "[027-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["08"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[089]|2[013]|7[0467]"]]]], NF: ["672", "00", "[13]\\d{5}", [6], [["(\\d{2})(\\d{4})", "$1 $2", ["1[0-3]"]], ["(\\d)(\\d{5})", "$1 $2", ["[13]"]]], 0, 0, "([0-258]\\d{4})$", "3$1"], NG: ["234", "009", "38\\d{6}|[78]\\d{9,13}|(?:20|9\\d)\\d{8}", [8, 10, 11, 12, 13, 14], [["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["3"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[7-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["20[129]"], "0$1"], ["(\\d{4})(\\d{2})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{3})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["[78]"], "0$1"], ["(\\d{3})(\\d{5})(\\d{5,6})", "$1 $2 $3", ["[78]"], "0$1"]], "0"], NI: ["505", "00", "(?:1800|[25-8]\\d{3})\\d{4}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[125-8]"]]]], NL: ["31", "00", "(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}", [5, 6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{4,7})", "$1 $2", ["[89]0"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["66"], "0$1"], ["(\\d)(\\d{8})", "$1 $2", ["6"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-578]|91"], "0$1"], ["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3", ["9"], "0$1"]], "0"], NO: ["47", "00", "(?:0|[2-9]\\d{3})\\d{4}", [5, 8], [["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[2-79]"]]], 0, 0, 0, 0, 0, "[02-689]|7[0-8]"], NP: ["977", "00", "(?:1\\d|9)\\d{9}|[1-9]\\d{7}", [8, 10, 11], [["(\\d)(\\d{7})", "$1-$2", ["1[2-6]"], "0$1"], ["(\\d{2})(\\d{6})", "$1-$2", ["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"], "0$1"], ["(\\d{3})(\\d{7})", "$1-$2", ["9"]]], "0"], NR: ["674", "00", "(?:444|(?:55|8\\d)\\d|666)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[4-68]"]]]], NU: ["683", "00", "(?:[4-7]|888\\d)\\d{3}", [4, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["8"]]]], NZ: ["64", "0(?:0|161)", "[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,8})", "$1 $2", ["8[1-79]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["50[036-8]|8|90", "50(?:[0367]|88)|8|90"], "0$1"], ["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["24|[346]|7[2-57-9]|9[2-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:10|74)|[589]"], "0$1"], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["1|2[028]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,5})", "$1 $2 $3", ["2(?:[169]|7[0-35-9])|7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "00"], OM: ["968", "00", "(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}", [7, 8, 9], [["(\\d{3})(\\d{4,6})", "$1 $2", ["[58]"]], ["(\\d{2})(\\d{6})", "$1 $2", ["2"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[179]"]]]], PA: ["507", "00", "(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}", [7, 8, 10, 11], [["(\\d{3})(\\d{4})", "$1-$2", ["[1-57-9]"]], ["(\\d{4})(\\d{4})", "$1-$2", ["[68]"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]]], PE: ["51", "00|19(?:1[124]|77|90)00", "(?:[14-8]|9\\d)\\d{7}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["80"], "(0$1)"], ["(\\d)(\\d{7})", "$1 $2", ["1"], "(0$1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[4-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"]]], "0", 0, 0, 0, 0, 0, 0, "00", " Anexo "], PF: ["689", "00", "4\\d{5}(?:\\d{2})?|8\\d{7,8}", [6, 8, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["44"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["4|8[7-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], PG: ["675", "00|140[1-3]", "(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["18|[2-69]|85"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[78]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], PH: ["63", "00", "(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}", [6, 8, 9, 10, 11, 12, 13], [["(\\d)(\\d{5})", "$1 $2", ["2"], "(0$1)"], ["(\\d{4})(\\d{4,6})", "$1 $2", ["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2", "3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"], "(0$1)"], ["(\\d{5})(\\d{4})", "$1 $2", ["346|4(?:27|9[35])|883", "3469|4(?:279|9(?:30|56))|8834"], "(0$1)"], ["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["2"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|8[2-8]"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]], ["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})", "$1 $2 $3 $4", ["1"]]], "0"], PK: ["92", "00", "122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,7})", "$1 $2 $3", ["[89]0"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["1"]], ["(\\d{3})(\\d{6,7})", "$1 $2", ["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])", "9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"], "(0$1)"], ["(\\d{2})(\\d{7,8})", "$1 $2", ["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"], "(0$1)"], ["(\\d{5})(\\d{5})", "$1 $2", ["58"], "(0$1)"], ["(\\d{3})(\\d{7})", "$1 $2", ["3"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"], "(0$1)"], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[24-9]"], "(0$1)"]], "0"], PL: ["48", "00", "(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}", [6, 7, 8, 9, 10], [["(\\d{5})", "$1", ["19"]], ["(\\d{3})(\\d{3})", "$1 $2", ["11|20|64"]], ["(\\d{2})(\\d{2})(\\d{3})", "$1 $2 $3", ["(?: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", "(?: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"]], ["(\\d{3})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["64"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[2-8]|[2-7]|8[1-79]|9[145]"]], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["8"]]]], PM: ["508", "00", "[45]\\d{5}|(?:708|8\\d\\d)\\d{6}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[45]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0"], PR: ["1", "011", "(?:[589]\\d\\d|787)\\d{7}", [10], 0, "1", 0, 0, 0, 0, "787|939"], PS: ["970", "00", "[2489]2\\d{6}|(?:1\\d|5)\\d{8}", [8, 9, 10], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["[2489]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], PT: ["351", "00", "1693\\d{5}|(?:[26-9]\\d|30)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["2[12]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["16|[236-9]"]]]], PW: ["680", "01[12]", "(?:[24-8]\\d\\d|345|900)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-9]"]]]], PY: ["595", "00", "59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}", [6, 7, 8, 9, 10, 11], [["(\\d{3})(\\d{3,6})", "$1 $2", ["[2-9]0"], "0$1"], ["(\\d{2})(\\d{5})", "$1 $2", ["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"], "(0$1)"], ["(\\d{3})(\\d{4,5})", "$1 $2", ["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["87"]], ["(\\d{3})(\\d{6})", "$1 $2", ["9(?:[5-79]|8[1-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-8]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["9"]]], "0"], QA: ["974", "00", "800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}", [7, 8, 9, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["2[16]|8"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[3-7]"]]]], RE: ["262", "00", "709\\d{6}|(?:26|[689]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, [["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[013]|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}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-5]|76(?:2[278]|3[0-37]))\\d{4}"], ["8(?:1[019]|2[0156]|84|90)\\d{6}"]]], RO: ["40", "00", "(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}", [6, 9], [["(\\d{3})(\\d{3})", "$1 $2", ["2[3-6]", "2[3-6]\\d9"], "0$1"], ["(\\d{2})(\\d{4})", "$1 $2", ["219|31"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[23]1"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[236-9]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, " int "], RS: ["381", "00", "38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}", [6, 7, 8, 9, 10, 11, 12], [["(\\d{3})(\\d{3,9})", "$1 $2", ["(?:2[389]|39)0|[7-9]"], "0$1"], ["(\\d{2})(\\d{5,10})", "$1 $2", ["[1-36]"], "0$1"]], "0"], RU: ["7", "810", "8\\d{13}|[347-9]\\d{9}", [10, 14], [["(\\d{4})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-8]|2[1-9])", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))", "7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"], "8 ($1)", 1], ["(\\d{5})(\\d)(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["7(?:1[0-68]|2[1-9])", "7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))", "7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "8 ($1)", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[349]|8(?:[02-7]|1[1-8])"], "8 ($1)", 1], ["(\\d{4})(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["8"], "8 ($1)"]], "8", 0, 0, 0, 0, "3[04-689]|[489]", 0, "8~10"], RW: ["250", "00", "(?:06|[27]\\d\\d|[89]00)\\d{6}", [8, 9], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[7-9]"], "0$1"]], "0"], SA: ["966", "00", "92\\d{7}|(?:[15]|8\\d)\\d{8}", [9, 10], [["(\\d{4})(\\d{5})", "$1 $2", ["9"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["5"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["81"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]]], "0"], SB: ["677", "0[01]", "[6-9]\\d{6}|[1-6]\\d{4}", [5, 7], [["(\\d{2})(\\d{5})", "$1 $2", ["6[89]|7|8[4-9]|9(?:[1-8]|9[0-8])"]]]], SC: ["248", "010|0[0-2]", "(?:[2489]\\d|64)\\d{5}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[246]|9[57]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], SD: ["249", "00", "[19]\\d{8}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], SE: ["46", "00", "(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}", [6, 7, 8, 9, 10, 12], [["(\\d{2})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["20"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{4})", "$1-$2", ["9(?:00|39|44|9)"], "0$1", 0, "$1 $2"], ["(\\d{2})(\\d{3})(\\d{2})", "$1-$2 $3", ["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3"], ["(\\d)(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2,3})(\\d{2})", "$1-$2 $3", ["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3"], ["(\\d{3})(\\d{2,3})(\\d{3})", "$1-$2 $3", ["9(?:00|39|44)"], "0$1", 0, "$1 $2 $3"], ["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["10|7"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1-$2 $3 $4", ["8"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1-$2 $3 $4", ["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{3})", "$1-$2 $3 $4", ["9"], "0$1", 0, "$1 $2 $3 $4"], ["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1-$2 $3 $4 $5", ["[26]"], "0$1", 0, "$1 $2 $3 $4 $5"]], "0"], SG: ["65", "0[0-3]\\d", "(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}", [8, 10, 11], [["(\\d{4})(\\d{4})", "$1 $2", ["[369]|8(?:0[1-9]|[1-9])"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"]], ["(\\d{4})(\\d{4})(\\d{3})", "$1 $2 $3", ["7"]], ["(\\d{4})(\\d{3})(\\d{4})", "$1 $2 $3", ["1"]]]], SH: ["290", "00", "(?:[256]\\d|8)\\d{3}", [4, 5], 0, 0, 0, 0, 0, 0, "[256]"], SI: ["386", "00|10(?:22|66|88|99)", "[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}", [5, 6, 7, 8], [["(\\d{2})(\\d{3,6})", "$1 $2", ["8[09]|9"], "0$1"], ["(\\d{3})(\\d{5})", "$1 $2", ["59|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[37][01]|4[0139]|51|6"], "0$1"], ["(\\d)(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-57]"], "(0$1)"]], "0", 0, 0, 0, 0, 0, 0, "00"], SJ: ["47", "00", "0\\d{4}|(?:[489]\\d|79)\\d{6}", [5, 8], 0, 0, 0, 0, 0, 0, "79"], SK: ["421", "00", "[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}", [6, 7, 9], [["(\\d)(\\d{2})(\\d{3,4})", "$1 $2 $3", ["21"], "0$1"], ["(\\d{2})(\\d{2})(\\d{2,3})", "$1 $2 $3", ["[3-5][1-8]1", "[3-5][1-8]1[67]"], "0$1"], ["(\\d)(\\d{3})(\\d{3})(\\d{2})", "$1/$2 $3 $4", ["2"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[689]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1/$2 $3 $4", ["[3-5]"], "0$1"]], "0"], SL: ["232", "00", "(?:[237-9]\\d|66)\\d{6}", [8], [["(\\d{2})(\\d{6})", "$1 $2", ["[236-9]"], "(0$1)"]], "0"], SM: ["378", "00", "(?:0549|[5-7]\\d)\\d{6}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]"]], ["(\\d{4})(\\d{6})", "$1 $2", ["0"]]], 0, 0, "([89]\\d{5})$", "0549$1"], SN: ["221", "00", "(?:[378]\\d|93)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[379]"]]]], SO: ["252", "00", "[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}", [6, 7, 8, 9], [["(\\d{2})(\\d{4})", "$1 $2", ["8[125]"]], ["(\\d{6})", "$1", ["[134]"]], ["(\\d)(\\d{6})", "$1 $2", ["[15]|2[0-79]|3[0-46-8]|4[0-7]"]], ["(\\d)(\\d{7})", "$1 $2", ["(?:2|90)4|[67]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[348]|64|79|90"]], ["(\\d{2})(\\d{5,7})", "$1 $2", ["1|28|6[0-35-9]|7[67]|9[2-9]"]]], "0"], SR: ["597", "00", "(?:[2-5]|68|[78]\\d)\\d{5}", [6, 7], [["(\\d{2})(\\d{2})(\\d{2})", "$1-$2-$3", ["56"]], ["(\\d{3})(\\d{3})", "$1-$2", ["[2-5]"]], ["(\\d{3})(\\d{4})", "$1-$2", ["[6-8]"]]]], SS: ["211", "00", "[19]\\d{8}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[19]"], "0$1"]], "0"], ST: ["239", "00", "(?:22|9\\d)\\d{5}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[29]"]]]], SV: ["503", "00", "[267]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?", [7, 8, 11], [["(\\d{3})(\\d{4})", "$1 $2", ["[89]"]], ["(\\d{4})(\\d{4})", "$1 $2", ["[267]"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["[89]"]]]], SX: ["1", "011", "7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "(5\\d{6})$|1", "721$1", 0, "721"], SY: ["963", "00", "[1-359]\\d{8}|[1-5]\\d{7}", [8, 9], [["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-4]|5[1-3]"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[59]"], "0$1", 1]], "0"], SZ: ["268", "00", "0800\\d{4}|(?:[237]\\d|900)\\d{6}", [8, 9], [["(\\d{4})(\\d{4})", "$1 $2", ["[0237]"]], ["(\\d{5})(\\d{4})", "$1 $2", ["9"]]]], TA: ["290", "00", "8\\d{3}", [4], 0, 0, 0, 0, 0, 0, "8"], TC: ["1", "011", "(?:[58]\\d\\d|649|900)\\d{7}", [10], 0, "1", 0, "([2-479]\\d{6})$|1", "649$1", 0, "649"], TD: ["235", "00|16", "(?:22|[689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-9]"]]], 0, 0, 0, 0, 0, 0, 0, "00"], TG: ["228", "00", "[279]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[279]"]]]], TH: ["66", "00[1-9]", "(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}", [8, 9, 10, 13], [["(\\d)(\\d{3})(\\d{4})", "$1 $2 $3", ["2"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[13-9]"], "0$1"], ["(\\d{4})(\\d{3})(\\d{3})", "$1 $2 $3", ["1"]]], "0"], TJ: ["992", "810", "[0-57-9]\\d{8}", [9], [["(\\d{6})(\\d)(\\d{2})", "$1 $2 $3", ["331", "3317"]], ["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["44[02-479]|[34]7"]], ["(\\d{4})(\\d)(\\d{4})", "$1 $2 $3", ["3(?:[1245]|3[12])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[0-57-9]"]]], 0, 0, 0, 0, 0, 0, 0, "8~10"], TK: ["690", "00", "[2-47]\\d{3,6}", [4, 5, 6, 7]], TL: ["670", "00", "7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}", [7, 8], [["(\\d{3})(\\d{4})", "$1 $2", ["[2-489]|70"]], ["(\\d{4})(\\d{4})", "$1 $2", ["7"]]]], TM: ["993", "810", "(?:[1-6]\\d|71)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["12"], "(8 $1)"], ["(\\d{3})(\\d)(\\d{2})(\\d{2})", "$1 $2-$3-$4", ["[1-5]"], "(8 $1)"], ["(\\d{2})(\\d{6})", "$1 $2", ["[67]"], "8 $1"]], "8", 0, 0, 0, 0, 0, 0, "8~10"], TN: ["216", "00", "[2-57-9]\\d{7}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-57-9]"]]]], TO: ["676", "00", "(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}", [5, 7], [["(\\d{2})(\\d{3})", "$1-$2", ["[2-4]|50|6[09]|7[0-24-69]|8[05]"]], ["(\\d{4})(\\d{3})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[5-9]"]]]], TR: ["90", "00", "4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}", [7, 10, 12, 13], [["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["512|8[01589]|90"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["5(?:[0-59]|61)", "5(?:[0-59]|61[06])", "5(?:[0-59]|61[06]1)"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[24][1-8]|3[1-9]"], "(0$1)", 1], ["(\\d{3})(\\d{3})(\\d{6,7})", "$1 $2 $3", ["80"], "0$1", 1]], "0"], TT: ["1", "011", "(?:[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-46-8]\\d{6})$|1", "868$1", 0, "868"], TV: ["688", "00", "(?:2|7\\d\\d|90)\\d{4}", [5, 6, 7], [["(\\d{2})(\\d{3})", "$1 $2", ["2"]], ["(\\d{2})(\\d{4})", "$1 $2", ["90"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], TW: ["886", "0(?:0[25-79]|19)", "[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}", [7, 8, 9, 10, 11], [["(\\d{2})(\\d)(\\d{4})", "$1 $2 $3", ["202"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[258]0"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]", "[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{2})(\\d{4})(\\d{4,5})", "$1 $2 $3", ["7"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, 0, "#"], TZ: ["255", "00[056]", "(?:[25-8]\\d|41|90)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{4})", "$1 $2 $3", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[24]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["5"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[67]"], "0$1"]], "0"], UA: ["380", "00", "[89]\\d{9}|[3-9]\\d{8}", [9, 10], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]", "6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"], "0$1"], ["(\\d{4})(\\d{5})", "$1 $2", ["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])", "3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[3-7]|89|9[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[89]"], "0$1"]], "0", 0, 0, 0, 0, 0, 0, "0~0"], UG: ["256", "00[057]", "800\\d{6}|(?:[29]0|[347]\\d)\\d{7}", [9], [["(\\d{4})(\\d{5})", "$1 $2", ["202", "2024"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["[27-9]|4(?:6[45]|[7-9])"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[34]"], "0$1"]], "0"], US: ["1", "011", "[2-9]\\d{9}|3\\d{6}", [10], [["(\\d{3})(\\d{4})", "$1-$2", ["310"], 0, 1], ["(\\d{3})(\\d{3})(\\d{4})", "($1) $2-$3", ["[2-9]"], 0, 1, "$1-$2-$3"]], "1", 0, 0, 0, 0, 0, [["(?:3052(?:0[0-8]|[1-9]\\d)|5056(?:[0-35-9]\\d|4[468]))\\d{4}|(?:305[3-9]|472[24]|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[068]|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}"], [""], ["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"], ["900[2-9]\\d{6}"], ["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}"], 0, 0, 0, ["305209\\d{4}"]]], UY: ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}", [6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{3})(\\d{3,4})", "$1 $2", ["0"]], ["(\\d{3})(\\d{4})", "$1 $2", ["[49]0|8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["9"], "0$1"], ["(\\d{4})(\\d{4})", "$1 $2", ["[124]"]], ["(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3", ["0"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})", "$1 $2 $3 $4", ["0"]]], "0", 0, 0, 0, 0, 0, 0, "00", " int. "], UZ: ["998", "00", "(?:20|33|[5-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[235-9]"]]]], VA: ["39", "00", "0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}", [6, 7, 8, 9, 10, 11, 12], 0, 0, 0, 0, 0, 0, "06698"], VC: ["1", "011", "(?:[58]\\d\\d|784|900)\\d{7}", [10], 0, "1", 0, "([2-7]\\d{6})$|1", "784$1", 0, "784"], VE: ["58", "00", "[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}", [10], [["(\\d{3})(\\d{7})", "$1-$2", ["[24-689]"], "0$1"]], "0"], VG: ["1", "011", "(?:284|[58]\\d\\d|900)\\d{7}", [10], 0, "1", 0, "([2-578]\\d{6})$|1", "284$1", 0, "284"], VI: ["1", "011", "[58]\\d{9}|(?:34|90)0\\d{7}", [10], 0, "1", 0, "([2-9]\\d{6})$|1", "340$1", 0, "340"], VN: ["84", "00", "[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}", [7, 8, 9, 10], [["(\\d{2})(\\d{5})", "$1 $2", ["80"], "0$1", 1], ["(\\d{4})(\\d{4,6})", "$1 $2", ["1"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[357-9]"], "0$1", 1], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["2[48]"], "0$1", 1], ["(\\d{3})(\\d{4})(\\d{3})", "$1 $2 $3", ["2"], "0$1", 1]], "0"], VU: ["678", "00", "[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}", [5, 7], [["(\\d{3})(\\d{4})", "$1 $2", ["[57-9]"]]]], WF: ["681", "00", "(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[47-9]"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]]]], WS: ["685", "0", "(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}", [5, 6, 7, 10], [["(\\d{5})", "$1", ["[2-5]|6[1-9]"]], ["(\\d{3})(\\d{3,7})", "$1 $2", ["[68]"]], ["(\\d{2})(\\d{5})", "$1 $2", ["7"]]]], XK: ["383", "00", "2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{5})", "$1 $2", ["[89]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["2|39"], "0$1"], ["(\\d{2})(\\d{7,10})", "$1 $2", ["3"], "0$1"]], "0"], YE: ["967", "00", "(?:1|7\\d)\\d{7}|[1-7]\\d{6}", [7, 8, 9], [["(\\d)(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[1-6]|7(?:[24-6]|8[0-7])"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["7"], "0$1"]], "0"], YT: ["262", "00", "7093\\d{5}|(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}", [9], 0, "0", 0, 0, 0, 0, 0, [["269(?:0[0-467]|15|5[0-4]|6\\d|[78]0)\\d{4}"], ["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"], ["80\\d{7}"], 0, 0, 0, 0, 0, ["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]], ZA: ["27", "00", "[1-79]\\d{8}|8\\d{4,9}", [5, 6, 7, 8, 9, 10], [["(\\d{2})(\\d{3,4})", "$1 $2", ["8[1-4]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{2,3})", "$1 $2 $3", ["8[1-4]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["860"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-9]"], "0$1"], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["8"], "0$1"]], "0"], ZM: ["260", "00", "800\\d{6}|(?:21|63|[79]\\d)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[79]"], "0$1"]], "0"], ZW: ["263", "00", "2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}", [5, 6, 7, 8, 9, 10], [["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"], "0$1"], ["(\\d)(\\d{3})(\\d{2,4})", "$1 $2 $3", ["[49]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2", "2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"], "(0$1)"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["7"], "0$1"], ["(\\d{3})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)", "2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]|39|54"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["(?:25|54)8", "258|5483"], "0$1"]], "0"] }, nonGeographic: { 800: ["800", 0, "(?:00|[1-9]\\d)\\d{6}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["\\d"]]], 0, 0, 0, 0, 0, 0, [0, 0, ["(?:00|[1-9]\\d)\\d{6}"]]], 808: ["808", 0, "[1-9]\\d{7}", [8], [["(\\d{4})(\\d{4})", "$1 $2", ["[1-9]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, 0, ["[1-9]\\d{7}"]]], 870: ["870", 0, "7\\d{11}|[235-7]\\d{8}", [9, 12], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[235-7]"]]], 0, 0, 0, 0, 0, 0, [0, ["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"], 0, 0, 0, 0, 0, 0, ["2\\d{8}", [9]]]], 878: ["878", 0, "10\\d{10}", [12], [["(\\d{2})(\\d{5})(\\d{5})", "$1 $2 $3", ["1"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["10\\d{10}"]]], 881: ["881", 0, "6\\d{9}|[0-36-9]\\d{8}", [9, 10], [["(\\d)(\\d{3})(\\d{5})", "$1 $2 $3", ["[0-37-9]"]], ["(\\d)(\\d{3})(\\d{5,6})", "$1 $2 $3", ["6"]]], 0, 0, 0, 0, 0, 0, [0, ["6\\d{9}|[0-36-9]\\d{8}"]]], 882: ["882", 0, "[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?", [7, 8, 9, 10, 11, 12], [["(\\d{2})(\\d{5})", "$1 $2", ["16|342"]], ["(\\d{2})(\\d{6})", "$1 $2", ["49"]], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["1[36]|9"]], ["(\\d{2})(\\d{4})(\\d{3})", "$1 $2 $3", ["3[23]"]], ["(\\d{2})(\\d{3,4})(\\d{4})", "$1 $2 $3", ["16"]], ["(\\d{2})(\\d{4})(\\d{4})", "$1 $2 $3", ["10|23|3(?:[15]|4[57])|4|51"]], ["(\\d{3})(\\d{4})(\\d{4})", "$1 $2 $3", ["34"]], ["(\\d{2})(\\d{4,5})(\\d{5})", "$1 $2 $3", ["[1-35]"]]], 0, 0, 0, 0, 0, 0, [0, ["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}", [7, 8, 9, 10, 12]], 0, 0, 0, ["348[57]\\d{7}", [11]], 0, 0, ["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]], 883: ["883", 0, "(?:[1-4]\\d|51)\\d{6,10}", [8, 9, 10, 11, 12], [["(\\d{3})(\\d{3})(\\d{2,8})", "$1 $2 $3", ["[14]|2[24-689]|3[02-689]|51[24-9]"]], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["510"]], ["(\\d{3})(\\d{3})(\\d{4})", "$1 $2 $3", ["21"]], ["(\\d{4})(\\d{4})(\\d{4})", "$1 $2 $3", ["51[13]"]], ["(\\d{3})(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3 $4", ["[235]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, 0, 0, ["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]], 888: ["888", 0, "\\d{11}", [11], [["(\\d{3})(\\d{3})(\\d{5})", "$1 $2 $3"]], 0, 0, 0, 0, 0, 0, [0, 0, 0, 0, 0, 0, ["\\d{11}"]]], 979: ["979", 0, "[1359]\\d{8}", [9], [["(\\d)(\\d{4})(\\d{4})", "$1 $2 $3", ["[1359]"]]], 0, 0, 0, 0, 0, 0, [0, 0, 0, ["[1359]\\d{8}"]]] } };
688
- function W0(o, t) {
689
- var r = Array.prototype.slice.call(t);
690
- return r.push(Y0), o.apply(this, r);
688
+ function W0(r, t) {
689
+ var o = Array.prototype.slice.call(t);
690
+ return o.push(Y0), r.apply(this, o);
691
691
  }
692
692
  function Z0() {
693
693
  return W0(v0, arguments);
694
694
  }
695
- function z0(o) {
695
+ function z0(r) {
696
696
  return {
697
- id: o._id,
698
- name: o.name,
699
- regNo: o.registrationNumber,
700
- addressLine1: o.address.line1,
701
- addressLine2: o.address.line2 ?? "",
702
- addressCity: o.address.city,
703
- addressPostcode: o.address.postcode,
704
- addressState: o.address.state,
705
- addressCountry: o.address.country,
706
- picName: o.contactName ?? "",
707
- picPhoneNumber: o.phoneNumber ?? "",
708
- picEmail: o.email ?? ""
697
+ id: r._id,
698
+ name: r.name,
699
+ regNo: r.registrationNumber,
700
+ addressLine1: r.address.line1,
701
+ addressLine2: r.address.line2 ?? "",
702
+ addressCity: r.address.city,
703
+ addressPostcode: r.address.postcode,
704
+ addressState: r.address.state,
705
+ addressCountry: r.address.country,
706
+ picName: r.contactName ?? "",
707
+ picPhoneNumber: r.phoneNumber ?? "",
708
+ picEmail: r.email ?? ""
709
709
  };
710
710
  }
711
711
  function Ud() {
@@ -801,39 +801,39 @@ function J0() {
801
801
  ];
802
802
  }
803
803
  function q0() {
804
- const o = $d(), t = J(), $ = (o.businessLevel ? t.businessSuppliers : t.locationSuppliers).map(z0), m = nd().currentBusiness.value, s = Ud(), l = [
804
+ const r = $d(), t = J(), $ = (r.businessLevel ? t.businessSuppliers : t.locationSuppliers).map(z0), m = nd().currentBusiness.value, s = Ud(), n = [
805
805
  ["Business name:", m == null ? void 0 : m.name],
806
806
  ["Business ID:", m == null ? void 0 : m._id],
807
807
  ["Menu version", m == null ? void 0 : m.menuVersion],
808
808
  [],
809
809
  s.map((i) => i.name),
810
- ...$.map((i) => s.map((h) => i[h.id]))
811
- ], a = s.map((i) => `system:${i.id}`), f = Fd(l, a), y = `${m == null ? void 0 : m.name} suppliers (${$0(/* @__PURE__ */ new Date())}).xlsx`;
812
- return Dd(f, y), y;
810
+ ...$.map((i) => s.map((y) => i[y.id]))
811
+ ], a = s.map((i) => `system:${i.id}`), x = Fd(n, a), f = `${m == null ? void 0 : m.name} suppliers (${$0(/* @__PURE__ */ new Date())}).xlsx`;
812
+ return Dd(x, f), f;
813
813
  }
814
814
  function j0() {
815
- const t = nd().currentBusiness.value, r = Ud(), $ = [
815
+ const t = nd().currentBusiness.value, o = Ud(), $ = [
816
816
  ["Business name:", t == null ? void 0 : t.name],
817
817
  ["Business ID:", t == null ? void 0 : t._id],
818
818
  ["Menu version", t == null ? void 0 : t.menuVersion],
819
819
  [],
820
- r.map((l) => l.name)
821
- ], c = r.map((l) => `system:${l.id}`), m = Fd($, c), s = "FeedMe supplier template.xlsx";
820
+ o.map((n) => n.name)
821
+ ], p = o.map((n) => `system:${n.id}`), m = Fd($, p), s = "FeedMe supplier template.xlsx";
822
822
  return Dd(m, s), s;
823
823
  }
824
- function Q0(o) {
824
+ function Q0(r) {
825
825
  const [
826
826
  t,
827
- r,
827
+ o,
828
828
  $,
829
- c,
829
+ p,
830
830
  m,
831
831
  s,
832
- ...l
833
- ] = i0(o);
834
- if (!t || !t.length || t.some((h) => h.length && !h.startsWith("system:")))
832
+ ...n
833
+ ] = i0(r);
834
+ if (!t || !t.length || t.some((y) => y.length && !y.startsWith("system:")))
835
835
  throw new Error("Missing meta header. Excel file does not come from the template.");
836
- const a = t.map((h) => h.split(":")[1]), y = [
836
+ const a = t.map((y) => y.split(":")[1]), f = [
837
837
  "id",
838
838
  "name",
839
839
  "regNo",
@@ -844,16 +844,16 @@ function Q0(o) {
844
844
  "addressCountry",
845
845
  "picName",
846
846
  "picPhoneNumber"
847
- ].filter((h) => !a.includes(h));
848
- if (y.length)
847
+ ].filter((y) => !a.includes(y));
848
+ if (f.length)
849
849
  throw new Error(
850
- `Missing meta headers (${y.join()}). Excel file does not come from the template.`
850
+ `Missing meta headers (${f.join()}). Excel file does not come from the template.`
851
851
  );
852
- return l.map((h, u) => {
852
+ return n.map((y, u) => {
853
853
  const g = {};
854
- for (const V in a) {
855
- const C = a[V];
856
- Object.assign(g, { [C]: h[V] });
854
+ for (const h in a) {
855
+ const C = a[h];
856
+ Object.assign(g, { [C]: y[h] });
857
857
  }
858
858
  return {
859
859
  index: u,
@@ -861,45 +861,57 @@ function Q0(o) {
861
861
  };
862
862
  });
863
863
  }
864
- function Id(o, t, r) {
865
- var f;
866
- const $ = new Array(), m = J0().filter((y) => !`${o[y.id] || ""}`.trim().length);
867
- m.length && $.push(`Missing required values: ${m.map((y) => y.name).join(", ")}`);
868
- const s = r.filter((y) => y.data.id === o.id);
869
- return s.length > 1 && $.push(`ID ${o.id} is already used in row ${s.map((y) => y.index + 6).join()}.`), (((f = Z0(o.picPhoneNumber)) == null ? void 0 : f.isValid()) ?? !1) || $.push(`Invalid phone number: ${o.picPhoneNumber}`), {
864
+ function Id(r, t) {
865
+ var s;
866
+ const o = new Array(), p = J0().filter((n) => !`${r[n.id] || ""}`.trim().length);
867
+ return p.length && o.push(`Missing required values: ${p.map((n) => n.name).join(", ")}`), (s = Z0(r.picPhoneNumber)) == null || s.isValid(), {
870
868
  type: "create",
871
869
  supplier: {
872
870
  _id: "",
873
- name: o.name,
874
- registrationNumber: o.regNo,
871
+ name: r.name,
872
+ registrationNumber: r.regNo,
875
873
  address: {
876
- line2: o.addressLine2,
877
- line1: o.addressLine1,
878
- state: o.addressState,
879
- city: o.addressCity,
880
- postcode: o.addressPostcode,
881
- country: o.addressCountry
874
+ line2: r.addressLine2,
875
+ line1: r.addressLine1,
876
+ state: r.addressState,
877
+ city: r.addressCity,
878
+ postcode: r.addressPostcode,
879
+ country: r.addressCountry
882
880
  },
883
- contactName: o.picName,
884
- phoneNumber: o.picPhoneNumber,
885
- email: o.picEmail
881
+ contactName: r.picName,
882
+ phoneNumber: r.picPhoneNumber,
883
+ email: r.picEmail
886
884
  },
887
- errors: $,
885
+ errors: o,
888
886
  excelRowNumber: t + 6
889
887
  };
890
888
  }
891
- function X0(o) {
889
+ function X0(r) {
892
890
  try {
893
- const t = Q0(o).filter((y) => y.data.id), r = $d(), $ = J(), c = r.businessLevel ? $.businessSuppliers : $.locationSuppliers, m = kd(c, "_id"), s = t.filter((y) => !y.data.id), l = t.filter((y) => y.data.id), a = s.map(
894
- (y) => Id(y.data, y.index, t)
895
- ), f = l.map((y) => {
896
- const i = Id(y.data, y.index, t), h = m[y.data.id];
897
- return h ? {
891
+ const t = Q0(r).filter((f) => f.data.name), o = $d(), $ = J(), p = o.businessLevel ? $.businessSuppliers : $.locationSuppliers, m = kd(p, "_id"), s = t.filter((f) => !f.data.id), n = t.filter((f) => f.data.id), a = s.map((f) => Id(f.data, f.index)), x = n.map((f) => {
892
+ const i = Id(f.data, f.index), y = m[f.data.id];
893
+ if (!y)
894
+ return {
895
+ ...i,
896
+ type: "update",
897
+ original: i.supplier,
898
+ supplier: i.supplier,
899
+ errors: [
900
+ ...i.errors,
901
+ `Cannot find supplier id ${f.data.id} in the system. Reexport supplier excel to obtain the correct value.`
902
+ ]
903
+ };
904
+ const u = t.filter(
905
+ (h) => h.index !== f.index && h.data.id === y._id
906
+ );
907
+ return u.length > 1 && i.errors.push(
908
+ `ID ${y._id} is already used in row ${u.map((h) => h.index + 6).join()}.`
909
+ ), {
898
910
  ...i,
899
911
  type: "update",
900
- original: h,
912
+ original: y,
901
913
  supplier: {
902
- ...h,
914
+ ...y,
903
915
  name: i.supplier.name,
904
916
  address: {
905
917
  line2: i.supplier.address.line2,
@@ -911,21 +923,12 @@ function X0(o) {
911
923
  },
912
924
  registrationNumber: i.supplier.registrationNumber
913
925
  }
914
- } : {
915
- ...i,
916
- type: "update",
917
- original: i.supplier,
918
- supplier: i.supplier,
919
- errors: [
920
- ...i.errors,
921
- `Cannot find supplier id ${y.data.id} in the system. Reexport supplier excel to obtain the correct value.`
922
- ]
923
926
  };
924
927
  });
925
928
  return {
926
929
  invalidExcel: !1,
927
930
  importCreateResult: a,
928
- importUpdateResult: f
931
+ importUpdateResult: x
929
932
  };
930
933
  } catch (t) {
931
934
  return {
@@ -947,31 +950,31 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
947
950
  pic: {},
948
951
  errors: {}
949
952
  },
950
- setup(o) {
953
+ setup(r) {
951
954
  const { t } = O();
952
- return (r, $) => {
953
- const c = k("FmIcon"), m = k("FmTooltip");
954
- return x(), I("div", d1, [
955
+ return (o, $) => {
956
+ const p = k("FmIcon"), m = k("FmTooltip");
957
+ return V(), I("div", d1, [
955
958
  $[0] || ($[0] = v("div", null, "•", -1)),
956
959
  v("div", e1, [
957
960
  v("div", $1, [
958
961
  v("div", {
959
962
  class: W({
960
- "text-fm-color-system-error-300": r.errors.length
963
+ "text-fm-color-system-error-300": o.errors.length
961
964
  })
962
965
  }, [
963
- Hd(T(r.name) + " ", 1),
964
- r.type === "create" ? (x(), I("span", t1, "(" + T(p(t)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
966
+ Hd(T(o.name) + " ", 1),
967
+ o.type === "create" ? (V(), I("span", t1, "(" + T(c(t)("inventory.closing.template.import.new")) + ")", 1)) : K("", !0)
965
968
  ], 2),
966
- r.errors.length ? (x(), I("div", o1, [
969
+ o.errors.length ? (V(), I("div", o1, [
967
970
  _(m, { "z-index": 50 }, {
968
971
  content: L(() => [
969
972
  v("ol", null, [
970
- (x(!0), I(Y, null, z(r.errors, (s, l) => (x(), I("li", { key: l }, T(s), 1))), 128))
973
+ (V(!0), I(Y, null, z(o.errors, (s, n) => (V(), I("li", { key: n }, T(s), 1))), 128))
971
974
  ])
972
975
  ]),
973
976
  default: L(() => [
974
- _(c, {
977
+ _(p, {
975
978
  name: "error",
976
979
  size: "sm",
977
980
  color: "system-error-300"
@@ -985,11 +988,11 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
985
988
  class: W([
986
989
  "fm-typo-en-body-sm-400",
987
990
  {
988
- "text-fm-color-system-error-200": r.errors.length,
989
- "text-fm-color-typo-secondary": !r.errors.length
991
+ "text-fm-color-system-error-200": o.errors.length,
992
+ "text-fm-color-typo-secondary": !o.errors.length
990
993
  }
991
994
  ])
992
- }, T(r.pic), 3)
995
+ }, T(o.pic), 3)
993
996
  ])
994
997
  ]);
995
998
  };
@@ -1008,37 +1011,37 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1008
1011
  class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
1009
1012
  }, v1 = { class: "fm-typo-en-body-lg-600" }, y1 = /* @__PURE__ */ Z({
1010
1013
  __name: "SupplierImport",
1011
- setup(o) {
1012
- const t = B(null), r = t0(), $ = td(), c = B(!1), m = B(!1), s = B(new Array()), l = B([]), a = B([]), f = N(
1013
- () => !!s.value.length || l.value.some((u) => u.errors.length) || a.value.some((u) => u.errors.length)
1014
- ), y = N(
1015
- () => !!l.value.length || !!a.value.length
1014
+ setup(r) {
1015
+ const t = B(null), o = t0(), $ = td(), p = B(!1), m = B(!1), s = B(new Array()), n = B([]), a = B([]), x = A(
1016
+ () => !!s.value.length || n.value.some((u) => u.errors.length) || a.value.some((u) => u.errors.length)
1017
+ ), f = A(
1018
+ () => !!n.value.length || !!a.value.length
1016
1019
  ), { t: i } = O();
1017
- async function h(u) {
1018
- s.value = [], l.value = [], a.value = [];
1020
+ async function y(u) {
1021
+ s.value = [], n.value = [], a.value = [];
1019
1022
  try {
1020
- c.value = !0;
1023
+ p.value = !0;
1021
1024
  const [g] = await Promise.all([
1022
1025
  u0(u),
1023
1026
  // fake buffer
1024
1027
  new Promise((b) => setTimeout(b, 1e3))
1025
- ]), V = g.SheetNames.find((b) => b);
1026
- if (!V) {
1028
+ ]), h = g.SheetNames.find((b) => b);
1029
+ if (!h) {
1027
1030
  s.value.push(i("inventory.ingredient.import.fileError.noSheet"));
1028
1031
  return;
1029
1032
  }
1030
- const C = X0(g.Sheets[V]);
1033
+ const C = X0(g.Sheets[h]);
1031
1034
  if (C.invalidExcel) {
1032
1035
  s.value.push(
1033
1036
  C.invalidExcelMessage ?? i("inventory.ingredient.import.fileError.invalidExcel")
1034
1037
  );
1035
1038
  return;
1036
1039
  }
1037
- if (l.value = C.importCreateResult, a.value = C.importUpdateResult, !l.value.length && !a.value.length) {
1040
+ if (n.value = C.importCreateResult, a.value = C.importUpdateResult, !n.value.length && !a.value.length) {
1038
1041
  s.value.push(i("inventory.ingredient.import.fileError.noData"));
1039
1042
  return;
1040
1043
  }
1041
- r.emitData(C);
1044
+ o.emitData(C);
1042
1045
  } catch (g) {
1043
1046
  $.open({
1044
1047
  title: i("inventory.ingredient.import.fileError.unableToRead"),
@@ -1049,80 +1052,80 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1049
1052
  s.value.length && $.open({
1050
1053
  title: i("inventory.ingredient.import.fileError.invalidExcel"),
1051
1054
  type: "error"
1052
- }), c.value = !1;
1055
+ }), p.value = !1;
1053
1056
  }
1054
1057
  }
1055
1058
  return Td(t, (u) => {
1056
- u && h(u);
1059
+ u && y(u);
1057
1060
  }), (u, g) => {
1058
- const V = k("FmCircularProgress"), C = k("FmIcon"), b = k("FmButton");
1059
- return x(), I("div", r1, [
1060
- v("div", s1, T(p(i)("inventory.supplier.import.message")), 1),
1061
- m.value ? (x(), I("div", n1, [
1061
+ const h = k("FmCircularProgress"), C = k("FmIcon"), b = k("FmButton");
1062
+ return V(), I("div", r1, [
1063
+ v("div", s1, T(c(i)("inventory.supplier.import.message")), 1),
1064
+ m.value ? (V(), I("div", n1, [
1062
1065
  v("div", null, [
1063
- _(V, {
1066
+ _(h, {
1064
1067
  size: "md",
1065
1068
  color: "neutral-gray-200"
1066
1069
  })
1067
1070
  ]),
1068
- v("div", l1, T(p(i)("inventory.formField.loading")), 1)
1069
- ])) : (x(), I(Y, { key: 1 }, [
1071
+ v("div", l1, T(c(i)("inventory.formField.loading")), 1)
1072
+ ])) : (V(), I(Y, { key: 1 }, [
1070
1073
  _(p0, {
1071
1074
  class: W({
1072
1075
  "w-full": !0,
1073
1076
  "h-[200px]": !t.value
1074
1077
  }),
1075
1078
  accept: ".xlsx",
1076
- onFileUpload: g[0] || (g[0] = (n) => t.value = n),
1077
- label: p(i)("inventory.ingredient.import.uploadTemplate"),
1078
- "button-label": p(i)("inventory.ingredient.import.selectFile")
1079
+ onFileUpload: g[0] || (g[0] = (l) => t.value = l),
1080
+ label: c(i)("inventory.ingredient.import.uploadTemplate"),
1081
+ "button-label": c(i)("inventory.ingredient.import.selectFile")
1079
1082
  }, Kd({ _: 2 }, [
1080
1083
  t.value ? {
1081
1084
  name: "default",
1082
- fn: L(({ openFileDialog: n }) => [
1085
+ fn: L(({ openFileDialog: l }) => [
1083
1086
  v("div", a1, [
1084
1087
  v("div", {
1085
1088
  class: W([
1086
1089
  "fm-corner-radius-md p-16 flex items-center gap-16",
1087
1090
  {
1088
- "border border-fm-color-neutral-gray-100": c.value,
1089
- "border border-fm-color-neutral-gray-200": !c.value && !f.value,
1090
- "border border-fm-color-system-error-200": f.value
1091
+ "border border-fm-color-neutral-gray-100": p.value,
1092
+ "border border-fm-color-neutral-gray-200": !p.value && !x.value,
1093
+ "border border-fm-color-system-error-200": x.value
1091
1094
  }
1092
1095
  ])
1093
1096
  }, [
1094
- c.value ? (x(), H(V, {
1097
+ p.value ? (V(), H(h, {
1095
1098
  key: 0,
1096
1099
  size: "md",
1097
1100
  color: "neutral-gray-200"
1098
- })) : (x(), H(C, {
1101
+ })) : (V(), H(C, {
1099
1102
  key: 1,
1100
- name: f.value ? "error" : "attach_file",
1103
+ name: x.value ? "error" : "attach_file",
1101
1104
  outline: "",
1102
- color: f.value ? "system-error-300" : void 0
1105
+ color: x.value ? "system-error-300" : void 0
1103
1106
  }, null, 8, ["name", "color"])),
1104
1107
  v("div", {
1105
1108
  class: W([
1106
1109
  "fm-typo-en-body-md-400 flex-1 h-[36px] flex items-center",
1107
1110
  {
1108
- "text-fm-color-typo-disabled": c.value,
1109
- "text-fm-color-typo-primary": !c.value
1111
+ "text-fm-color-typo-disabled": p.value,
1112
+ "text-fm-color-typo-primary": !p.value
1110
1113
  }
1111
1114
  ])
1112
1115
  }, [
1113
1116
  v("div", i1, T(t.value.name), 1)
1114
1117
  ], 2),
1115
- c.value ? K("", !0) : (x(), I("div", u1, [
1118
+ p.value ? K("", !0) : (V(), I("div", u1, [
1116
1119
  _(b, {
1117
- label: p(i)("inventory.ingredient.import.replaceFile"),
1118
- variant: f.value ? "destructive" : "secondary",
1119
- "prepend-icon": f.value ? void 0 : "autorenew",
1120
- onClick: n
1120
+ label: c(i)("inventory.ingredient.import.replaceFile"),
1121
+ variant: x.value ? "destructive" : "secondary",
1122
+ "prepend-icon": x.value ? void 0 : "autorenew",
1123
+ onClick: l
1121
1124
  }, null, 8, ["label", "variant", "prepend-icon", "onClick"])
1122
1125
  ]))
1123
1126
  ], 2),
1124
- s.value.length ? (x(), I("div", p1, [
1125
- (x(!0), I(Y, null, z(s.value, (M, P) => (x(), I("div", {
1127
+ s.value.length ? (V(), I("div", p1, [
1128
+ (V(!0), I(Y, null, z(s.value, (M, P) => (V(), I("div", {
1126
1129
  key: P,
1127
1130
  class: "flex gap-8 items-center"
1128
1131
  }, [
@@ -1139,20 +1142,20 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1139
1142
  key: "0"
1140
1143
  } : void 0
1141
1144
  ]), 1032, ["class", "label", "button-label"]),
1142
- y.value ? (x(), I("div", m1, [
1143
- v("div", v1, T(p(i)("inventory.ingredient.import.summary")), 1),
1144
- (x(!0), I(Y, null, z(l.value, (n, M) => (x(), H(Rd, {
1145
+ f.value ? (V(), I("div", m1, [
1146
+ v("div", v1, T(c(i)("inventory.ingredient.import.summary")), 1),
1147
+ (V(!0), I(Y, null, z(n.value, (l, M) => (V(), H(Rd, {
1145
1148
  key: M,
1146
- name: n.supplier.name,
1147
- pic: n.supplier.contactName ?? "",
1148
- errors: n.errors,
1149
+ name: l.supplier.name,
1150
+ pic: l.supplier.contactName ?? "",
1151
+ errors: l.errors,
1149
1152
  type: "create"
1150
1153
  }, null, 8, ["name", "pic", "errors"]))), 128)),
1151
- (x(!0), I(Y, null, z(a.value, (n) => (x(), H(Rd, {
1152
- key: n.supplier._id,
1153
- name: n.supplier.name,
1154
- pic: n.supplier.contactName ?? "",
1155
- errors: n.errors,
1154
+ (V(!0), I(Y, null, z(a.value, (l) => (V(), H(Rd, {
1155
+ key: l.supplier._id,
1156
+ name: l.supplier.name,
1157
+ pic: l.supplier.contactName ?? "",
1158
+ errors: l.errors,
1156
1159
  type: "update"
1157
1160
  }, null, 8, ["name", "pic", "errors"]))), 128))
1158
1161
  ])) : K("", !0)
@@ -1161,115 +1164,115 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1161
1164
  };
1162
1165
  }
1163
1166
  }), f1 = a0("supplierActions", function() {
1164
- const o = J(), t = ld(), { t: r } = O(), $ = td();
1165
- function c() {
1167
+ const r = J(), t = ld(), { t: o } = O(), $ = td();
1168
+ function p() {
1166
1169
  t.open({
1167
- title: r("inventory.supplier.import.title"),
1170
+ title: o("inventory.supplier.import.title"),
1168
1171
  contentComponent: y1,
1169
1172
  overlay: !0,
1170
1173
  closeButton: !0,
1171
1174
  primaryActions: {
1172
- text: r("common.import"),
1175
+ text: o("common.import"),
1173
1176
  close: !1
1174
1177
  },
1175
1178
  secondaryActions: {
1176
- text: r("common.close"),
1179
+ text: o("common.close"),
1177
1180
  close: !0
1178
1181
  },
1179
1182
  tertiaryActions: {
1180
- text: r("inventory.supplier.import.actions.downloadTemplate"),
1183
+ text: o("inventory.supplier.import.actions.downloadTemplate"),
1181
1184
  close: !1,
1182
1185
  variant: "plain"
1183
1186
  }
1184
- }).onPrimary((l) => {
1185
- if (!l) {
1187
+ }).onPrimary((n) => {
1188
+ if (!n) {
1186
1189
  $.open({
1187
- title: r("inventory.supplier.import.error.noData"),
1190
+ title: o("inventory.supplier.import.error.noData"),
1188
1191
  type: "error"
1189
1192
  });
1190
1193
  return;
1191
1194
  }
1192
- if (!l.importCreateResult.length && !l.importUpdateResult.length) {
1195
+ if (!n.importCreateResult.length && !n.importUpdateResult.length) {
1193
1196
  $.open({
1194
- title: r("inventory.supplier.import.error.invalidContent"),
1195
- message: r("inventory.supplier.import.error.noImportData"),
1197
+ title: o("inventory.supplier.import.error.invalidContent"),
1198
+ message: o("inventory.supplier.import.error.noImportData"),
1196
1199
  type: "error"
1197
1200
  });
1198
1201
  return;
1199
1202
  }
1200
- if (l.importCreateResult.some((a) => a.errors.length) || l.importUpdateResult.some((a) => a.errors.length)) {
1203
+ if (n.importCreateResult.some((a) => a.errors.length) || n.importUpdateResult.some((a) => a.errors.length)) {
1201
1204
  $.open({
1202
- title: r("inventory.supplier.import.error.invalidContent"),
1203
- message: r("inventory.supplier.import.error.hasErrors"),
1205
+ title: o("inventory.supplier.import.error.invalidContent"),
1206
+ message: o("inventory.supplier.import.error.hasErrors"),
1204
1207
  type: "error"
1205
1208
  });
1206
1209
  return;
1207
1210
  }
1208
- t.close(), s(l);
1211
+ t.close(), s(n);
1209
1212
  }).onTertiary(j0);
1210
1213
  }
1211
1214
  function m() {
1212
- const l = q0();
1215
+ const n = q0();
1213
1216
  $.open({
1214
- title: r("inventory.supplier.export.success"),
1215
- message: r("inventory.supplier.export.filename", [l]),
1217
+ title: o("inventory.supplier.export.success"),
1218
+ message: o("inventory.supplier.export.filename", [n]),
1216
1219
  type: "success"
1217
1220
  });
1218
1221
  }
1219
- async function s(l) {
1222
+ async function s(n) {
1220
1223
  try {
1221
1224
  const a = [
1222
- ...l.importCreateResult.map((h) => h.supplier),
1223
- ...l.importUpdateResult.map((h) => h.supplier)
1224
- ], f = 100;
1225
- let y = 0;
1225
+ ...n.importCreateResult.map((y) => y.supplier),
1226
+ ...n.importUpdateResult.map((y) => y.supplier)
1227
+ ], x = 100;
1228
+ let f = 0;
1226
1229
  const i = () => {
1227
- y += f, $.open({
1228
- title: r("inventory.supplier.import.progress", [
1229
- Math.min(y, a.length),
1230
+ f += x, $.open({
1231
+ title: o("inventory.supplier.import.progress", [
1232
+ Math.min(f, a.length),
1230
1233
  a.length
1231
1234
  ])
1232
1235
  });
1233
1236
  };
1234
- for (const h of a.chunk(100))
1235
- i(), await o.importSuppliers(h);
1237
+ for (const y of a.chunk(100))
1238
+ i(), await r.importSuppliers(y);
1236
1239
  $.open({
1237
- title: r("inventory.supplier.import.success"),
1240
+ title: o("inventory.supplier.import.success"),
1238
1241
  type: "success"
1239
1242
  });
1240
1243
  } catch (a) {
1241
1244
  $.open({
1242
- title: r("inventory.supplier.import.error.failed"),
1243
- message: r("inventory.supplier.import.error.systemMessage", [a == null ? void 0 : a.message]),
1245
+ title: o("inventory.supplier.import.error.failed"),
1246
+ message: o("inventory.supplier.import.error.systemMessage", [a == null ? void 0 : a.message]),
1244
1247
  type: "error"
1245
- }), console.error("Error in importing skus", l, a);
1248
+ }), console.error("Error in importing skus", n, a);
1246
1249
  } finally {
1247
- o.readSuppliers();
1250
+ r.readSuppliers();
1248
1251
  }
1249
1252
  }
1250
1253
  return {
1251
- importSuppliers: c,
1254
+ importSuppliers: p,
1252
1255
  exportSuppliers: m
1253
1256
  };
1254
- }), g1 = { class: "flex flex-col py-8" }, b1 = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, h1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, S1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, C1 = {
1257
+ }), g1 = { class: "flex flex-col py-8" }, b1 = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, S1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, h1 = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, C1 = {
1255
1258
  key: 0,
1256
1259
  class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
1257
1260
  }, _1 = "You are managing business-level supplier list. These suppliers will be made visible to all locations.", B1 = /* @__PURE__ */ Z({
1258
1261
  __name: "SupplierView",
1259
- setup(o) {
1260
- const { importSuppliers: t, exportSuppliers: r } = f1(), $ = J(), c = $d(), m = Bd(), s = B(!1), l = ld(), a = td(), { t: f } = O();
1261
- c.watchLocation(i);
1262
- const y = N(() => c.businessLevel);
1263
- Td(y, i), Od(() => {
1264
- m.enableSupplierMasterList || (c.businessLevel = !1);
1262
+ setup(r) {
1263
+ const { importSuppliers: t, exportSuppliers: o } = f1(), $ = J(), p = $d(), m = Bd(), s = B(!1), n = ld(), a = td(), { t: x } = O();
1264
+ p.watchLocation(i);
1265
+ const f = A(() => p.businessLevel);
1266
+ Td(f, i), Od(() => {
1267
+ m.enableSupplierMasterList || (p.businessLevel = !1);
1265
1268
  });
1266
1269
  async function i() {
1267
- if (c._currentLocation) {
1270
+ if (p._currentLocation) {
1268
1271
  s.value = !0;
1269
1272
  try {
1270
1273
  await Promise.all([
1271
1274
  $.readSuppliers(),
1272
- new Promise((A) => setTimeout(A, 1e3))
1275
+ new Promise((N) => setTimeout(N, 1e3))
1273
1276
  ]);
1274
1277
  } catch {
1275
1278
  a.open({
@@ -1281,52 +1284,52 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1281
1284
  }
1282
1285
  }
1283
1286
  }
1284
- const h = N(
1285
- () => y.value ? $.businessSuppliers : $.locationSuppliers
1287
+ const y = A(
1288
+ () => f.value ? $.businessSuppliers : $.locationSuppliers
1286
1289
  ), u = B({});
1287
1290
  function g() {
1288
1291
  u.value.mode = U.CREATE, u.value.supplier = {}, u.value.show = !0;
1289
1292
  }
1290
- function V(E) {
1293
+ function h(E) {
1291
1294
  u.value.mode = U.UPDATE, u.value.supplier = sd(E), u.value.show = !0;
1292
1295
  }
1293
1296
  async function C(E) {
1294
- l.open({
1295
- title: f("inventory.supplier.delete.confirm"),
1296
- message: f("inventory.supplier.delete.confirmMessage", { name: E.name }),
1297
+ n.open({
1298
+ title: x("inventory.supplier.delete.confirm"),
1299
+ message: x("inventory.supplier.delete.confirmMessage", { name: E.name }),
1297
1300
  primaryActions: {
1298
- text: f("common.delete"),
1301
+ text: x("common.delete"),
1299
1302
  close: !0,
1300
1303
  variant: "destructive"
1301
1304
  },
1302
1305
  secondaryActions: {
1303
- text: f("common.cancel"),
1306
+ text: x("common.cancel"),
1304
1307
  close: !0
1305
1308
  }
1306
1309
  }).onPrimary(() => b(E));
1307
1310
  }
1308
1311
  async function b(E) {
1309
- l.open({
1310
- title: f("inventory.supplier.deletingSupplier"),
1312
+ n.open({
1313
+ title: x("inventory.supplier.deletingSupplier"),
1311
1314
  closeButton: !1
1312
1315
  });
1313
1316
  try {
1314
1317
  await $.deleteSupplier(E), a.open({
1315
- title: f("inventory.supplier.delete.success"),
1316
- message: f("inventory.supplier.delete.successMessage", { name: E == null ? void 0 : E.name }),
1318
+ title: x("inventory.supplier.delete.success"),
1319
+ message: x("inventory.supplier.delete.successMessage", { name: E == null ? void 0 : E.name }),
1317
1320
  type: "success"
1318
1321
  }), i();
1319
- } catch (A) {
1322
+ } catch (N) {
1320
1323
  a.open({
1321
- title: f("inventory.supplier.delete.error"),
1322
- message: f("inventory.supplier.delete.errorMessage", { name: E == null ? void 0 : E.name }),
1324
+ title: x("inventory.supplier.delete.error"),
1325
+ message: x("inventory.supplier.delete.errorMessage", { name: E == null ? void 0 : E.name }),
1323
1326
  type: "error"
1324
- }), console.error("failed to delete supplier", A);
1327
+ }), console.error("failed to delete supplier", N);
1325
1328
  } finally {
1326
- l.close();
1329
+ n.close();
1327
1330
  }
1328
1331
  }
1329
- const { columnDefs: n } = y0(V, C);
1332
+ const { columnDefs: l } = y0(h, C);
1330
1333
  function M(E) {
1331
1334
  if (E === "create")
1332
1335
  return g();
@@ -1342,13 +1345,13 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1342
1345
  return t();
1343
1346
  }
1344
1347
  if (E === "export")
1345
- return r();
1348
+ return o();
1346
1349
  if (E === "refresh")
1347
1350
  return i();
1348
1351
  }
1349
- const P = B(""), { breakpoints: R } = o0(), w = N(() => R.value.xs || R.value.sm), F = N(() => w.value ? 10 : 20), e = r0(), d = N(() => [
1352
+ const P = B(""), { breakpoints: R } = o0(), w = A(() => R.value.xs || R.value.sm), F = A(() => w.value ? 10 : 20), e = r0(), d = A(() => [
1350
1353
  {
1351
- label: f("inventory.supplier.create.title"),
1354
+ label: x("inventory.supplier.create.title"),
1352
1355
  value: "create",
1353
1356
  isPrimary: !0,
1354
1357
  prependIcon: "add"
@@ -1369,10 +1372,10 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1369
1372
  isPrimary: !1
1370
1373
  }
1371
1374
  ]);
1372
- return (E, A) => {
1375
+ return (E, N) => {
1373
1376
  const od = k("FmTable");
1374
- return x(), H(s0, {
1375
- title: p(f)("inventory.supplier.title"),
1377
+ return V(), H(s0, {
1378
+ title: c(x)("inventory.supplier.title"),
1376
1379
  actions: d.value,
1377
1380
  "onClick:action": M,
1378
1381
  "using-business-helper-text": _1
@@ -1391,49 +1394,49 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1391
1394
  searchable: "",
1392
1395
  "change-location": "",
1393
1396
  search: P.value,
1394
- "onUpdate:search": A[0] || (A[0] = (D) => P.value = D),
1395
- "show-business": p(m).enableSupplierMasterList
1397
+ "onUpdate:search": N[0] || (N[0] = (D) => P.value = D),
1398
+ "show-business": c(m).enableSupplierMasterList
1396
1399
  }, null, 8, ["search", "show-business"]),
1397
1400
  _(od, {
1398
- style: Yd(p(e).tableHeight),
1399
- "column-defs": p(n),
1400
- "row-data": h.value,
1401
+ style: Yd(c(e).tableHeight),
1402
+ "column-defs": c(l),
1403
+ "row-data": y.value,
1401
1404
  "search-value": P.value,
1402
- loading: !p(c)._currentLocation || s.value,
1403
- onRowClick: A[1] || (A[1] = (D) => V(D.original)),
1405
+ loading: !c(p)._currentLocation || s.value,
1406
+ onRowClick: N[1] || (N[1] = (D) => h(D.original)),
1404
1407
  "page-size": F.value
1405
1408
  }, {
1406
1409
  "list-row": L((D) => [
1407
1410
  _(zd, {
1408
1411
  row: D,
1409
- onRowClick: V
1412
+ onRowClick: h
1410
1413
  }, {
1411
1414
  default: L((S) => {
1412
- var ad, id, ud, q, pd, cd, md, vd, j, yd, fd, gd, bd, Q, hd, Sd, Cd, _d, X, Md;
1415
+ var ad, id, ud, q, pd, cd, md, vd, j, yd, fd, gd, bd, Q, Sd, hd, Cd, _d, X, xd;
1413
1416
  return [
1414
1417
  v("div", g1, [
1415
1418
  v("div", b1, [
1416
- _(p(ed), {
1419
+ _(c(ed), {
1417
1420
  render: (ud = (id = (ad = S.name) == null ? void 0 : ad.column) == null ? void 0 : id.columnDef) == null ? void 0 : ud.cell,
1418
1421
  props: (pd = (q = S.name) == null ? void 0 : q.getContext) == null ? void 0 : pd.call(q)
1419
1422
  }, null, 8, ["render", "props"])
1420
1423
  ]),
1421
- v("div", h1, [
1422
- _(p(ed), {
1424
+ v("div", S1, [
1425
+ _(c(ed), {
1423
1426
  render: (vd = (md = (cd = S.contactName) == null ? void 0 : cd.column) == null ? void 0 : md.columnDef) == null ? void 0 : vd.cell,
1424
1427
  props: (yd = (j = S.contactName) == null ? void 0 : j.getContext) == null ? void 0 : yd.call(j)
1425
1428
  }, null, 8, ["render", "props"])
1426
1429
  ]),
1427
- v("div", S1, [
1428
- _(p(ed), {
1430
+ v("div", h1, [
1431
+ _(c(ed), {
1429
1432
  render: (bd = (gd = (fd = S.phoneNumber) == null ? void 0 : fd.column) == null ? void 0 : gd.columnDef) == null ? void 0 : bd.cell,
1430
- props: (hd = (Q = S.phoneNumber) == null ? void 0 : Q.getContext) == null ? void 0 : hd.call(Q)
1433
+ props: (Sd = (Q = S.phoneNumber) == null ? void 0 : Q.getContext) == null ? void 0 : Sd.call(Q)
1431
1434
  }, null, 8, ["render", "props"])
1432
1435
  ]),
1433
- D.original.email ? (x(), I("div", C1, [
1434
- _(p(ed), {
1435
- render: (_d = (Cd = (Sd = S.email) == null ? void 0 : Sd.column) == null ? void 0 : Cd.columnDef) == null ? void 0 : _d.cell,
1436
- props: (Md = (X = S.email) == null ? void 0 : X.getContext) == null ? void 0 : Md.call(X)
1436
+ D.original.email ? (V(), I("div", C1, [
1437
+ _(c(ed), {
1438
+ render: (_d = (Cd = (hd = S.email) == null ? void 0 : hd.column) == null ? void 0 : Cd.columnDef) == null ? void 0 : _d.cell,
1439
+ props: (xd = (X = S.email) == null ? void 0 : X.getContext) == null ? void 0 : xd.call(X)
1437
1440
  }, null, 8, ["render", "props"])
1438
1441
  ])) : K("", !0)
1439
1442
  ])
@@ -1445,13 +1448,13 @@ const d1 = { class: "flex items-center gap-12 pl-8" }, e1 = { class: "flex flex-
1445
1448
  _: 1
1446
1449
  }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
1447
1450
  ], 2),
1448
- (x(), H(Wd, { to: "body" }, [
1451
+ (V(), H(Wd, { to: "body" }, [
1449
1452
  _(O0, {
1450
1453
  show: u.value.show,
1451
- "onUpdate:show": A[2] || (A[2] = (D) => u.value.show = D),
1454
+ "onUpdate:show": N[2] || (N[2] = (D) => u.value.show = D),
1452
1455
  supplier: u.value.supplier,
1453
1456
  mode: u.value.mode,
1454
- onSubmitted: A[3] || (A[3] = (D) => i())
1457
+ onSubmitted: N[3] || (N[3] = (D) => i())
1455
1458
  }, null, 8, ["show", "supplier", "mode"])
1456
1459
  ]))
1457
1460
  ]),