@gravity-rail/cli 0.53.1 → 0.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/{account-verify-phone-ABHHHGCC.js → account-verify-phone-OXHKM36Z.js} +3 -3
- package/dist/{chunk-FSY2BM4J.js → chunk-73INPBWK.js} +211 -33
- package/dist/chunk-73INPBWK.js.map +1 -0
- package/dist/{chunk-FQMZ2EBF.js → chunk-RAFKHKG2.js} +2 -2
- package/dist/cli-utils.d.ts +23 -4
- package/dist/cli-utils.js +1 -1
- package/dist/gr.js +2994 -94
- package/dist/gr.js.map +1 -1
- package/dist/lib.d.ts +4 -1
- package/dist/lib.js +819 -35
- package/dist/lib.js.map +1 -1
- package/package.json +6 -4
- package/dist/chunk-FSY2BM4J.js.map +0 -1
- /package/dist/{account-verify-phone-ABHHHGCC.js.map → account-verify-phone-OXHKM36Z.js.map} +0 -0
- /package/dist/{chunk-FQMZ2EBF.js.map → chunk-RAFKHKG2.js.map} +0 -0
package/dist/gr.js
CHANGED
|
@@ -15,12 +15,22 @@ import { stdout, stdin } from 'process';
|
|
|
15
15
|
import { writeFile, readFile } from 'fs/promises';
|
|
16
16
|
import { EventEmitter } from 'events';
|
|
17
17
|
|
|
18
|
-
createRequire(import.meta.url);
|
|
18
|
+
const require$1 = createRequire(import.meta.url);
|
|
19
19
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
20
20
|
dirname(__filename$1);
|
|
21
21
|
|
|
22
|
+
var __create = Object.create;
|
|
22
23
|
var __defProp = Object.defineProperty;
|
|
24
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
23
25
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
26
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
27
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
28
|
+
var __require = /* @__PURE__ */ ((x) => typeof require$1 !== "undefined" ? require$1 : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
29
|
+
get: (a, b) => (typeof require$1 !== "undefined" ? require$1 : a)[b]
|
|
30
|
+
}) : x)(function(x) {
|
|
31
|
+
if (typeof require$1 !== "undefined") return require$1.apply(this, arguments);
|
|
32
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
33
|
+
});
|
|
24
34
|
var __esm = (fn, res, err) => function __init() {
|
|
25
35
|
if (err) throw err[0];
|
|
26
36
|
try {
|
|
@@ -29,10 +39,33 @@ var __esm = (fn, res, err) => function __init() {
|
|
|
29
39
|
throw err = [e], e;
|
|
30
40
|
}
|
|
31
41
|
};
|
|
42
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
43
|
+
try {
|
|
44
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
45
|
+
} catch (e) {
|
|
46
|
+
throw mod = 0, e;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
32
49
|
var __export = (target, all) => {
|
|
33
50
|
for (var name in all)
|
|
34
51
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
35
52
|
};
|
|
53
|
+
var __copyProps = (to, from, except, desc) => {
|
|
54
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
55
|
+
for (let key of __getOwnPropNames(from))
|
|
56
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
57
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
58
|
+
}
|
|
59
|
+
return to;
|
|
60
|
+
};
|
|
61
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
62
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
63
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
64
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
65
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
66
|
+
__defProp(target, "default", { value: mod, enumerable: true }) ,
|
|
67
|
+
mod
|
|
68
|
+
));
|
|
36
69
|
|
|
37
70
|
// src/lib/errors.ts
|
|
38
71
|
function handleError(err) {
|
|
@@ -599,7 +632,7 @@ ${formattedErrors}`, response.status);
|
|
|
599
632
|
var metadata_min_json_default;
|
|
600
633
|
var init_metadata_min_json = __esm({
|
|
601
634
|
"../../node_modules/libphonenumber-js/metadata.min.json.js"() {
|
|
602
|
-
metadata_min_json_default = { "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|[2-467])\\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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|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, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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)|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", "[024-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-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|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], "BL": ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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)?", "(?:[2-7]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]|50"]], ["(\\d{8})", "$1", ["[5-7]"]], ["(\\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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\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", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], "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|5[07]|[67]3)|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]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], "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{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\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(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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]|9[14]"]], ["(\\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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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]|3[13])"], "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, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[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}"]]], "ER": ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], "ES": ["34", "00", "(?:400|[5-9]\\d\\d)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[4-9]"]]]], "ET": ["251", "00", "(?:11|[2-57-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-57-9]"], "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{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[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|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [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", "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|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|180020", "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{8}|800\\d{5,6}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "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", "[48]\\d{8}|[2-9]\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|4(?:[0-35]|4[16-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[48]"]]]], "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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{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-589]\\d{7}", [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(?:05|[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|180020", "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-6]|80[2-46]", "11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[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,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [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", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["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|180020", "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|427|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", ["[47]"], "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[2569]\\d{4,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", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "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", ["3"], "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-6]|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", "(?:[2457]\\d|33|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", ["20"]], ["(\\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]"]], ["(\\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", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], "LV": ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|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{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], "MC": ["377", "00", "(?:[3489]|[67]\\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", ["[67]"], "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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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", ["11|2[16]"], "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", "7091\\d{5}|(?:[56]9|[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{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-37-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-9]"]], ["(\\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", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\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", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], "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[02-46-9]"]], ["(\\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", ["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\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", "[78]\\d{8}|[2-9]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"], "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", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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", ["3[289]|4[246-8]|61|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[136]|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, [["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|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, "[3489]", 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", "(?:[15]\\d|800|92)\\d{7}", [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{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(?:[0-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[013]|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{2})(\\d{5,7})", "$1 $2", ["1|28|9[2-9]"]], ["(\\d)(\\d{7})", "$1 $2", ["[267]|904"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[346-9]"]]], "0"], "SR": ["597", "00", "(?:[2-5]|[6-9]\\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-9]"]]]], "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", "[25-7]\\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", ["[25-7]"]], ["(\\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|[3689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-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|66)\\d{7}", [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", ["\\d"]]], 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-7]\\d{7}", [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$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{3})(\\d{5})", "$1 $2", ["826"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["83"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["82"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[25]0|37|49|8[09]"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?: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", "20240"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]", "20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[2-4]"], "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, [["(?:472[2-47-9]|983[2-57-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[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], "UY": ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\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{6,7}|7\\d{6}", [7, 8, 9, 10], [["(\\d{4})(\\d{4,6})", "$1 $2", ["1(?:2[02]|[89])"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[26]|6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1357-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", "(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["26(?:89\\d|9(?: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|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], "ZW": ["263", "00", "(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}", [7, 9, 10], [["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"], "0$1"], ["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["548"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[256]|39|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", ["3"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "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|5[12]"]], ["(\\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})|5(?:0\\d{3}|2[0-2]))\\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}"]]] } };
|
|
635
|
+
metadata_min_json_default = { "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|[2-467])\\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(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]", "(?:31|4)6|51|6(?:485|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, [["(?:(?:241|349)0\\d\\d|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4])|[34]\\d\\d)|91(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79]))))\\d{3}|(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}", [9]], ["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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)|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", "[024-7]\\d{7}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[024-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|8)\\d{7}", [8, 10], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["0"]]]], "BL": ["590", "00", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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)?", "(?:[2-7]\\d\\d|8001)\\d{5}", [8, 9], [["(\\d)(\\d{7})", "$1 $2", ["[23]|4[46]|50"]], ["(\\d{8})", "$1", ["[5-7]"]], ["(\\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-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}", [8, 9, 10, 11], [["(\\d{4})(\\d{4})", "$1-$2", ["300|4(?:0[02]|37|86)", "300|4(?:0(?:0|20)|370|864)"]], ["(\\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", "[178]\\d{7}|[2-8]\\d{6}", [7, 8], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[2-6]|7[246]|8[2-4]"]], ["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[67]|[78]"]]]], "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|5[07]|[67]3)|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]|3[23]|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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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", "8776\\d{4}|(?:[27]\\d|61)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[26-8]"]]]], "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{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["60|809"]], ["(\\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(?:10|[2-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[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]|9[14]"]], ["(\\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-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}", [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]|3[13])"], "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, 0, [["528[89]\\d{5}"], ["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[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}"]]], "ER": ["291", "00", "[178]\\d{6}", [7], [["(\\d)(\\d{3})(\\d{3})", "$1 $2 $3", ["[178]"], "0$1"]], "0"], "ES": ["34", "00", "(?:400|[5-9]\\d\\d)\\d{6}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[89]00"]], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[4-9]"]]]], "ET": ["251", "00", "(?:11|[2-57-9]\\d)\\d{7}", [9], [["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[1-57-9]"], "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{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[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|180020", 0, 0, 0, [["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}", [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", "(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-7]|80[6-9]|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|180020", "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{8}|800\\d{5,6}", [8, 9], [["(\\d{3})(\\d{5})", "$1 $2", ["8"], "0$1"], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[2358]"], "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", "[48]\\d{8}|[2-9]\\d{6}", [7, 9], [["(\\d{3})(\\d{4})", "$1 $2", ["[235-9]|4(?:[0-35]|4[16-9])"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[48]"]]]], "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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], [["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[5-79]|80[6-9]"], "0$1"], ["(\\d{3})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["8"], "0$1"]], "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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", "[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}", [7, 8, 9], [["(\\d{2})(\\d{2})(\\d{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-589]\\d{7}", [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(?:05|[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|180020", "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-6]|80[2-46]", "11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])", "11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?:3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31)|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]", "1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|8(?:16|2[014]|3[126]|6[136]|7[78]|83)(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"], "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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]", "1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"], "0$1", 1], ["(\\d{5})(\\d{5})", "$1 $2", ["16|[6-9]"], "0$1", 1], ["(\\d{4})(\\d{2,4})(\\d{4})", "$1 $2 $3", ["18[06]", "18[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,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?", [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", ["[03]"]]], 0, 0, 0, 0, 0, 0, [["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"], ["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|180020", "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|427|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", ["[47]"], "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[2569]\\d{4,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", "8\\d{13}|[78]\\d{9}", [10, 14], 0, "8", 0, 0, 0, 0, "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", ["3"], "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-6]|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", "(?:[2457]\\d|33|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", ["20"]], ["(\\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]"]], ["(\\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", ["20"]]], 0, 0, "(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"], "LV": ["371", "00", "(?:[268]\\d|78|90)\\d{6}", [8], [["(\\d{2})(\\d{3})(\\d{3})", "$1 $2 $3", ["[2679]|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{4})(\\d{5})", "$1-$2", ["892"], "0$1"], ["(\\d{2})(\\d{7})", "$1-$2", ["8(?:0[0-7]|9)"], "0$1"], ["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4 $5", ["[5-8]"], "0$1"]], "0", 0, 0, 0, 0, "[5-8]"], "MC": ["377", "00", "(?:[3489]|[67]\\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", ["[67]"], "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", "7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"], ["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"], ["80[0-5]\\d{6}"], ["8[129]\\d{7}"], 0, 0, 0, 0, ["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\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", ["11|2[16]"], "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", "7091\\d{5}|(?:[56]9|[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{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[1-37-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-9]"]], ["(\\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", "(?:20|9\\d)\\d{8}|[78]\\d{9,13}", [10, 11, 12, 13, 14], [["(\\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", "(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}", [7], [["(\\d{3})(\\d{4})", "$1 $2", ["[24-9]"]]]], "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[02-46-9]"]], ["(\\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", ["30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1", "30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]], ["(\\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", "[78]\\d{8}|[2-9]\\d{5}", [6, 9], [["(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3", ["[2-9]"], "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", "[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,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", ["3[289]|4[246-8]|61|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[136]|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, [["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"], ["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"], ["80\\d{7}"], ["89[1-37-9]\\d{6}"], 0, 0, 0, 0, ["9(?:399[0-3]|479[0-6]|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, "[3489]", 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", "(?:[15]\\d|800|92)\\d{7}", [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{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(?:[0-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[013]|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{2})(\\d{5,7})", "$1 $2", ["1|28|9[2-9]"]], ["(\\d)(\\d{7})", "$1 $2", ["[267]|904"]], ["(\\d{2})(\\d{3})(\\d{4})", "$1 $2 $3", ["[346-9]"]]], "0"], "SR": ["597", "00", "(?:[2-5]|[6-9]\\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-9]"]]]], "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", "[25-7]\\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", ["[25-7]"]], ["(\\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|[3689]\\d|77)\\d{6}", [8], [["(\\d{2})(\\d{2})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["[236-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|66)\\d{7}", [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", ["\\d"]]], 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-7]\\d{7}", [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$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{3})(\\d{5})", "$1 $2", ["826"], "0$1"], ["(\\d{3})(\\d{2})(\\d{3})", "$1 $2 $3", ["83"], "0$1"], ["(\\d{2})(\\d{2})(\\d{4})", "$1 $2 $3", ["82"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["[25]0|37|49|8[09]"], "0$1"], ["(\\d)(\\d{3,4})(\\d{4})", "$1 $2 $3", ["[23568]|4(?:0[02-48]|[1-478])|7[1-9]", "[23568]|4(?:0[2-48]|[1-478])|(?: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", "20240"], "0$1"], ["(\\d{3})(\\d{6})", "$1 $2", ["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]", "20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[2-4]"], "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, [["983[2-57-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[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[02589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"], [""], ["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]|3[23]|44|66|77|88)[2-9]\\d{6}"]]], "UY": ["598", "0(?:0|1[3-9]\\d)", "0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}", [4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [["(\\d{4,5})", "$1", ["21"]], ["(\\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{6,7}|7\\d{6}", [7, 8, 9, 10], [["(\\d{4})(\\d{4,6})", "$1 $2", ["1(?:2[02]|[89])"], 0, 1], ["(\\d{2})(\\d{3})(\\d{2})(\\d{2})", "$1 $2 $3 $4", ["1[26]|6"], "0$1", 1], ["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[1357-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", "(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}", [9], 0, "0", 0, 0, 0, 0, 0, [["26(?:89\\d|9(?: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|[579]\\d|63)\\d{7}", [9], [["(\\d{3})(\\d{3})(\\d{3})", "$1 $2 $3", ["[28]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[579]"], "0$1"]], "0"], "ZW": ["263", "00", "(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}", [7, 9, 10], [["(\\d{2})(\\d{3,5})", "$1 $2", ["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"], "0$1"], ["(\\d{3})(\\d{3,5})", "$1 $2", ["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"], "0$1"], ["(\\d{3})(\\d{4})", "$1 $2", ["80"], "0$1"], ["(\\d{4})(\\d{3,5})", "$1 $2", ["548"], "0$1"], ["(\\d{2})(\\d{3})(\\d{3,4})", "$1 $2 $3", ["29[013-9]"], "0$1"], ["(\\d{2})(\\d{7})", "$1 $2", ["[256]|39|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", ["3"], "0$1"], ["(\\d{4})(\\d{6})", "$1 $2", ["8"], "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|5[12]"]], ["(\\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})|5(?:0\\d{3}|2[0-2]))\\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}"]]] } };
|
|
603
636
|
}
|
|
604
637
|
});
|
|
605
638
|
|
|
@@ -3131,7 +3164,7 @@ var init_libphonenumber_js = __esm({
|
|
|
3131
3164
|
}
|
|
3132
3165
|
});
|
|
3133
3166
|
|
|
3134
|
-
// ../sdk/dist/chunk-
|
|
3167
|
+
// ../sdk/dist/chunk-7R22EG5F.js
|
|
3135
3168
|
function resourceWorkflowsPath(wid, ...segments) {
|
|
3136
3169
|
const tail = segments.map((segment) => encodeURIComponent(String(segment))).join("/");
|
|
3137
3170
|
const base = `w/${encodeURIComponent(wid)}/resource-workflows`;
|
|
@@ -3398,6 +3431,7 @@ function createApiModules(apiKey, baseUrl3, customFetch) {
|
|
|
3398
3431
|
qualifications: new QualificationsApi(apiKey, baseUrl3, customFetch),
|
|
3399
3432
|
personas: new PersonasApi(apiKey, baseUrl3, customFetch),
|
|
3400
3433
|
metrics: new MetricsApi(apiKey, baseUrl3, customFetch),
|
|
3434
|
+
dataReports: new DataReportsApi(apiKey, baseUrl3, customFetch),
|
|
3401
3435
|
queries: new QueriesApi(apiKey, baseUrl3, customFetch),
|
|
3402
3436
|
reports: new ReportsApi(apiKey, baseUrl3, customFetch),
|
|
3403
3437
|
resourceWorkflows: new ResourceWorkflowsApi(apiKey, baseUrl3, customFetch),
|
|
@@ -3720,6 +3754,7 @@ function bindMembersMethods(target, members) {
|
|
|
3720
3754
|
}
|
|
3721
3755
|
function bindWorkspacesMethods(target, workspaces, signupRequests) {
|
|
3722
3756
|
target.getWorkspaces = workspaces.getWorkspaces.bind(workspaces);
|
|
3757
|
+
target.getOrganizationWorkspacePages = workspaces.getOrganizationWorkspacePages.bind(workspaces);
|
|
3723
3758
|
target.getDeviceAdmissibleWorkspaces = workspaces.getDeviceAdmissibleWorkspaces.bind(workspaces);
|
|
3724
3759
|
target.getPublicWorkspaces = workspaces.getPublicWorkspaces.bind(workspaces);
|
|
3725
3760
|
target.getWorkspace = workspaces.getWorkspace.bind(workspaces);
|
|
@@ -3915,6 +3950,7 @@ function bindFilesMethods(target, files) {
|
|
|
3915
3950
|
target.convertFile = files.convertFile.bind(files);
|
|
3916
3951
|
target.generateFileUploadUrl = files.generateFileUploadUrl.bind(files);
|
|
3917
3952
|
target.getFolders = files.getFolders.bind(files);
|
|
3953
|
+
target.getFolderChildren = files.getFolderChildren.bind(files);
|
|
3918
3954
|
target.getFolder = files.getFolder.bind(files);
|
|
3919
3955
|
target.createFolder = files.createFolder.bind(files);
|
|
3920
3956
|
target.updateFolder = files.updateFolder.bind(files);
|
|
@@ -3995,6 +4031,7 @@ function bindWorkflowsMethods(target, workflows, workflowNotes, voice, superviso
|
|
|
3995
4031
|
target.getWorkflowsActivityBatch = workflows.getWorkflowsActivityBatch.bind(workflows);
|
|
3996
4032
|
target.getWorkflowDiagram = workflows.getWorkflowDiagram.bind(workflows);
|
|
3997
4033
|
target.getWorkflowOutline = workflows.getWorkflowOutline.bind(workflows);
|
|
4034
|
+
target.getWorkflowsOutlineBatch = workflows.getWorkflowsOutlineBatch.bind(workflows);
|
|
3998
4035
|
target.createWorkflow = workflows.createWorkflow.bind(workflows);
|
|
3999
4036
|
target.updateWorkflow = workflows.updateWorkflow.bind(workflows);
|
|
4000
4037
|
target.getWorkflowDeletionPreview = workflows.getWorkflowDeletionPreview.bind(workflows);
|
|
@@ -4205,6 +4242,12 @@ function bindAppsMethods(target, apps, builders, inquiries, oauth, oauthConnecti
|
|
|
4205
4242
|
target.deleteInquiry = inquiries.deleteInquiry.bind(inquiries);
|
|
4206
4243
|
target.exportInquiriesCsv = inquiries.exportInquiriesCsv.bind(inquiries);
|
|
4207
4244
|
target.authorize = oauth.authorize.bind(oauth);
|
|
4245
|
+
target.denyAuthorization = oauth.denyAuthorization.bind(oauth);
|
|
4246
|
+
target.getOAuthConsentClient = oauth.getOAuthConsentClient.bind(oauth);
|
|
4247
|
+
target.getMcpConsentTargets = oauth.getMcpConsentTargets.bind(oauth);
|
|
4248
|
+
target.listMcpGrants = oauth.listMcpGrants.bind(oauth);
|
|
4249
|
+
target.narrowMcpGrant = oauth.narrowMcpGrant.bind(oauth);
|
|
4250
|
+
target.revokeMcpGrant = oauth.revokeMcpGrant.bind(oauth);
|
|
4208
4251
|
target.exchangeOAuthToken = oauth.exchangeOAuthToken.bind(oauth);
|
|
4209
4252
|
target.getAvailableScopes = oauth.getAvailableScopes.bind(oauth);
|
|
4210
4253
|
target.getOAuthConnectionStatus = oauthConnections.getConnectionStatus.bind(oauthConnections);
|
|
@@ -4302,6 +4345,8 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
4302
4345
|
target.fhirGetEncounterSyncRuns = fhirConnections.fhirGetEncounterSyncRuns.bind(fhirConnections);
|
|
4303
4346
|
target.fhirRefreshEncounterPatient = fhirConnections.fhirRefreshEncounterPatient.bind(fhirConnections);
|
|
4304
4347
|
target.fhirBackfillEncounterSync = fhirConnections.fhirBackfillEncounterSync.bind(fhirConnections);
|
|
4348
|
+
target.fhirStartOnboardingImport = fhirConnections.fhirStartOnboardingImport.bind(fhirConnections);
|
|
4349
|
+
target.fhirGetOnboardingImportStatus = fhirConnections.fhirGetOnboardingImportStatus.bind(fhirConnections);
|
|
4305
4350
|
target.configurePatientSync = patientSyncConnections.configurePatientSync.bind(patientSyncConnections);
|
|
4306
4351
|
target.getPatientSyncStatus = patientSyncConnections.getPatientSyncStatus.bind(patientSyncConnections);
|
|
4307
4352
|
target.deletePatientSyncConnection = patientSyncConnections.deletePatientSyncConnection.bind(patientSyncConnections);
|
|
@@ -4388,6 +4433,7 @@ function bindIntegrationsMethods(target, mondayIntegration, discordBots, slackAp
|
|
|
4388
4433
|
target.listAvailableAppConnections = appConnections.listAvailableAppConnections.bind(appConnections);
|
|
4389
4434
|
target.listAppConnections = appConnections.listAppConnections.bind(appConnections);
|
|
4390
4435
|
target.enablePlatformApp = appConnections.enablePlatformApp.bind(appConnections);
|
|
4436
|
+
target.configureZendeskConnection = appConnections.configureZendeskConnection.bind(appConnections);
|
|
4391
4437
|
target.getPlatformApp = appConnections.getPlatformApp.bind(appConnections);
|
|
4392
4438
|
target.updatePlatformApp = appConnections.updatePlatformApp.bind(appConnections);
|
|
4393
4439
|
target.deletePlatformApp = appConnections.deletePlatformApp.bind(appConnections);
|
|
@@ -4436,6 +4482,7 @@ function bindOrgMethods(target, org) {
|
|
|
4436
4482
|
target.getVoiceTrustProducts = org.getVoiceTrustProducts.bind(org);
|
|
4437
4483
|
target.syncVoiceTrustProducts = org.syncVoiceTrustProducts.bind(org);
|
|
4438
4484
|
target.createOrganizationWorkspace = org.createOrganizationWorkspace.bind(org);
|
|
4485
|
+
target.getOrganizationWorkspaces = org.getOrganizationWorkspaces.bind(org);
|
|
4439
4486
|
target.getOrganizationWorkspace = org.getOrganizationWorkspace.bind(org);
|
|
4440
4487
|
target.updateOrganizationWorkspace = org.updateOrganizationWorkspace.bind(org);
|
|
4441
4488
|
target.getOrgBillingCustomer = org.getOrgBillingCustomer.bind(org);
|
|
@@ -4445,7 +4492,22 @@ function bindOrgMethods(target, org) {
|
|
|
4445
4492
|
target.updateOrganizationMember = org.updateOrganizationMember.bind(org);
|
|
4446
4493
|
target.listOrgWebhookEndpoints = org.listOrgWebhookEndpoints.bind(org);
|
|
4447
4494
|
target.getOrgWebhookEndpoint = org.getOrgWebhookEndpoint.bind(org);
|
|
4495
|
+
target.createOrgWebhookEndpoint = org.createOrgWebhookEndpoint.bind(org);
|
|
4448
4496
|
target.updateOrgWebhookEndpoint = org.updateOrgWebhookEndpoint.bind(org);
|
|
4497
|
+
target.listOrgWebhookEndpointDeliveries = org.listOrgWebhookEndpointDeliveries.bind(org);
|
|
4498
|
+
target.replayOrgWebhookDelivery = org.replayOrgWebhookDelivery.bind(org);
|
|
4499
|
+
target.discardPendingOrgWebhookDeliveries = org.discardPendingOrgWebhookDeliveries.bind(org);
|
|
4500
|
+
target.getOrgWebhookDeliveryDetail = org.getOrgWebhookDeliveryDetail.bind(org);
|
|
4501
|
+
target.clearOrgWebhookDeliveries = org.clearOrgWebhookDeliveries.bind(org);
|
|
4502
|
+
target.getOrgWebhookEndpointCoverage = org.getOrgWebhookEndpointCoverage.bind(org);
|
|
4503
|
+
target.testOrgWebhookEndpoint = org.testOrgWebhookEndpoint.bind(org);
|
|
4504
|
+
target.listWorkspaceLabels = org.listWorkspaceLabels.bind(org);
|
|
4505
|
+
target.createWorkspaceLabel = org.createWorkspaceLabel.bind(org);
|
|
4506
|
+
target.updateWorkspaceLabel = org.updateWorkspaceLabel.bind(org);
|
|
4507
|
+
target.deleteWorkspaceLabel = org.deleteWorkspaceLabel.bind(org);
|
|
4508
|
+
target.getWorkspaceLabels = org.getWorkspaceLabels.bind(org);
|
|
4509
|
+
target.setWorkspaceLabels = org.setWorkspaceLabels.bind(org);
|
|
4510
|
+
target.previewWorkspaceScope = org.previewWorkspaceScope.bind(org);
|
|
4449
4511
|
}
|
|
4450
4512
|
function bindPronunciationsMethods(target, pronunciations) {
|
|
4451
4513
|
target.getPronunciationEntries = pronunciations.getPronunciationEntries.bind(pronunciations);
|
|
@@ -4584,6 +4646,9 @@ function bindMetricsMethods(target, metrics) {
|
|
|
4584
4646
|
target.getMetricSeries = metrics.getMetricSeries.bind(metrics);
|
|
4585
4647
|
target.computeChatMetrics = metrics.computeChatMetrics.bind(metrics);
|
|
4586
4648
|
}
|
|
4649
|
+
function bindDataReportsMethods(target, dataReports) {
|
|
4650
|
+
target.previewDataReport = dataReports.previewDataReport.bind(dataReports);
|
|
4651
|
+
}
|
|
4587
4652
|
function bindQueriesMethods(target, queries) {
|
|
4588
4653
|
target.getQueryFields = queries.getQueryFields.bind(queries);
|
|
4589
4654
|
target.validateQuery = queries.validateQuery.bind(queries);
|
|
@@ -4653,9 +4718,9 @@ function getRevisionState(workflow, revision) {
|
|
|
4653
4718
|
state: revision?.publishedAt != null ? "published" : "draft"
|
|
4654
4719
|
};
|
|
4655
4720
|
}
|
|
4656
|
-
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, MEMBER_RELATIONSHIP_KINDS, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, ProjectsApi, TrackedLinksApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES, ActivityGrain, ActivityGroupBy, ActivityOpenItemOrder, ActivityWindowBasis;
|
|
4657
|
-
var
|
|
4658
|
-
"../sdk/dist/chunk-
|
|
4721
|
+
var AbilitiesApi, ResourceWorkflowsApi, BundlesApi, InstallationsApi, AccessGrantsApi, AgentTasksApi, AgentsApi, AIModelsApi, ApiKeysApi, AppsApi, AssignmentsApi, VoiceApi, AuthApi, BuildersApi, CalendarsApi, CallsApi, CELApi, ChatsApi, ConfluenceApi, CustomToolkitsApi, DataTypesApi, DiscordBotsApi, SlackAppsApi, EventsApi, FeaturesApi, FhirConnectionsApi, InboundFaxStatus, DocumoFaxApi, HealthieApi, FilesApi, InboxesApi, InquiriesApi, AppConnectionsApi, McpServersApi, MemberImportValidationError, MembersApi, MondayIntegrationApi, NotificationRulesApi, OperatorApi, OrgApi, OAuthConnectionsApi, OAuthApi, PhoneNumbersApi, PronunciationsApi, PromptsApi, PersonasApi, QueriesApi, QualificationsApi, ReportsApi, RoutingRulesApi, SalesforceApi, ConnectionSyncApi, HubspotApi, SitesApi, SubscriptionsApi, SupportRequestsApi, CustomersApi, ResellersApi, SupervisorsApi, TasksApi, TemplatesApi, ToolkitsApi, JourneysApi, WorkflowsApi, WorkflowNotesApi, EventRuleObjectType, EventRuleEventType, EventRuleActionType, DriverMode, MEMBER_RELATIONSHIP_KINDS, WorkspaceInvitationsApi, WorkspacesApi, DashboardsApi, DevicesApi, TeamsAppsApi, ExperimentsApi, PatientSyncConnectionsApi, ActivityApi, MotdApi, InterventionRequestsApi, MetricsApi, DataReportsApi, ProjectsApi, TrackedLinksApi, WORKSPACE_METHOD_NAMES, WORKSPACE_METHOD_NAME_SET, GravityRailClient, WIDGET_SLUGS, CHAT_TYPES, BUILTIN_ASSISTANT_CHAT_TYPES, MEMBER_AGENT_CHAT_TYPES, ActivityGrain, ActivityGroupBy, ActivityOpenItemOrder, ActivityWindowBasis;
|
|
4722
|
+
var init_chunk_7R22EG5F = __esm({
|
|
4723
|
+
"../sdk/dist/chunk-7R22EG5F.js"() {
|
|
4659
4724
|
init_chunk_GCN4OMYU();
|
|
4660
4725
|
init_libphonenumber_js();
|
|
4661
4726
|
AbilitiesApi = class extends BaseApiClient {
|
|
@@ -7971,6 +8036,36 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
7971
8036
|
{ method: "POST", body: JSON.stringify(data) }
|
|
7972
8037
|
);
|
|
7973
8038
|
}
|
|
8039
|
+
/**
|
|
8040
|
+
* Start, resume, override or preview (dry run) an athenahealth connection's
|
|
8041
|
+
* onboarding import. The body is exactly the three mode flags; the server
|
|
8042
|
+
* traverses the connection's configured department/status pairs. Returns
|
|
8043
|
+
* 202 with the Temporal workflow and run ids. Requires `workspace:admin`.
|
|
8044
|
+
*/
|
|
8045
|
+
async fhirStartOnboardingImport(wid, connectionId, data = {}) {
|
|
8046
|
+
const body = {
|
|
8047
|
+
dryRun: data.dryRun ?? false,
|
|
8048
|
+
resume: data.resume ?? false,
|
|
8049
|
+
override: data.override ?? false
|
|
8050
|
+
};
|
|
8051
|
+
return this.fetch(
|
|
8052
|
+
`w/${wid}/app-connections/fhir/connections/${connectionId}/onboarding-import`,
|
|
8053
|
+
{
|
|
8054
|
+
method: "POST",
|
|
8055
|
+
body: JSON.stringify(body)
|
|
8056
|
+
}
|
|
8057
|
+
);
|
|
8058
|
+
}
|
|
8059
|
+
/**
|
|
8060
|
+
* Read an athenahealth connection's onboarding-import progress (durable,
|
|
8061
|
+
* approximate totals) and its known Temporal execution. GET-only: never
|
|
8062
|
+
* starts or resumes work. Requires `workspace:admin`.
|
|
8063
|
+
*/
|
|
8064
|
+
async fhirGetOnboardingImportStatus(wid, connectionId) {
|
|
8065
|
+
return this.fetch(
|
|
8066
|
+
`w/${wid}/app-connections/fhir/connections/${connectionId}/onboarding-import`
|
|
8067
|
+
);
|
|
8068
|
+
}
|
|
7974
8069
|
};
|
|
7975
8070
|
InboundFaxStatus = {
|
|
7976
8071
|
pending: "pending",
|
|
@@ -8173,8 +8268,8 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
8173
8268
|
* Download one file's bytes via GET ``.../files/{id}/contents/{filename}``.
|
|
8174
8269
|
*
|
|
8175
8270
|
* Uses this client's base URL (FastAPI on the app, same-origin ``/api/v2``
|
|
8176
|
-
* on scoped site sessions)
|
|
8177
|
-
*
|
|
8271
|
+
* on scoped site sessions). The Next.js ``/api/w/.../files/...`` route
|
|
8272
|
+
* redirects to this same contents path; calling it directly skips the hop.
|
|
8178
8273
|
*/
|
|
8179
8274
|
async downloadFileContents(wid, id, filename) {
|
|
8180
8275
|
const response = await this.fetchRaw(
|
|
@@ -8258,9 +8353,9 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
8258
8353
|
);
|
|
8259
8354
|
}
|
|
8260
8355
|
/**
|
|
8261
|
-
* Same-origin
|
|
8262
|
-
*
|
|
8263
|
-
*
|
|
8356
|
+
* Same-origin URL for a version's raw contents. The Next.js route
|
|
8357
|
+
* requires a session and redirects to the versioned FastAPI contents
|
|
8358
|
+
* endpoint. Mirrors the shape of `FileResponse.cdnUrl`.
|
|
8264
8359
|
*/
|
|
8265
8360
|
getFileVersionContentsUrl(wid, fileId, versionNumber) {
|
|
8266
8361
|
return `/api/w/${wid}/files/${fileId}/versions/${versionNumber}/contents`;
|
|
@@ -8292,6 +8387,19 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
8292
8387
|
const parentId = typeof parentIdOrOpts === "number" ? parentIdOrOpts : parentIdOrOpts.parentId;
|
|
8293
8388
|
return this.fetch(`w/${wid}/folders?parent_id=${parentId}`);
|
|
8294
8389
|
}
|
|
8390
|
+
/**
|
|
8391
|
+
* Readable children of many parents in one request.
|
|
8392
|
+
*
|
|
8393
|
+
* Every id comes back as a key. A parent with no readable children maps to
|
|
8394
|
+
* an empty list. The server accepts at most 100 ids per call.
|
|
8395
|
+
*/
|
|
8396
|
+
async getFolderChildren(wid, parentIds) {
|
|
8397
|
+
const params = new URLSearchParams();
|
|
8398
|
+
for (const parentId of parentIds) {
|
|
8399
|
+
params.append("parent_ids", String(parentId));
|
|
8400
|
+
}
|
|
8401
|
+
return this.fetch(`w/${wid}/folders/children?${params}`);
|
|
8402
|
+
}
|
|
8295
8403
|
/** Get a single folder by ID. */
|
|
8296
8404
|
async getFolder(wid, id) {
|
|
8297
8405
|
return this.fetch(`w/${wid}/folders/${id}`);
|
|
@@ -8699,6 +8807,19 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
8699
8807
|
body: JSON.stringify(data)
|
|
8700
8808
|
});
|
|
8701
8809
|
}
|
|
8810
|
+
/**
|
|
8811
|
+
* Create a public Zendesk Help Center connection with its sync paused.
|
|
8812
|
+
*
|
|
8813
|
+
* The acting Member becomes the sync owner. Later settings edits,
|
|
8814
|
+
* pause/resume, Sync now and run history use the generic connection-sync
|
|
8815
|
+
* methods (`updateConnectionSyncConfig`, `startSyncRun`, `getSyncRuns`).
|
|
8816
|
+
*/
|
|
8817
|
+
async configureZendeskConnection(wid, data) {
|
|
8818
|
+
return this.fetch(`w/${wid}/app-connections/zendesk/configure`, {
|
|
8819
|
+
method: "POST",
|
|
8820
|
+
body: JSON.stringify(data)
|
|
8821
|
+
});
|
|
8822
|
+
}
|
|
8702
8823
|
/**
|
|
8703
8824
|
* Get platform app connection details by UUID.
|
|
8704
8825
|
*/
|
|
@@ -9878,6 +9999,33 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
9878
9999
|
method: "DELETE"
|
|
9879
10000
|
});
|
|
9880
10001
|
}
|
|
10002
|
+
/**
|
|
10003
|
+
* Read the organization's AI connector policy and the connectors (MCP
|
|
10004
|
+
* clients such as claude.ai or ChatGPT) that have requested access to it.
|
|
10005
|
+
* Requires `org:admin`.
|
|
10006
|
+
*/
|
|
10007
|
+
async getOrgAiConnectorPolicy(orgIdOrUuid) {
|
|
10008
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`);
|
|
10009
|
+
}
|
|
10010
|
+
/** Set the AI connector mode: `any` or `allowlist`. Requires `org:admin`. */
|
|
10011
|
+
async updateOrgAiConnectorPolicy(orgIdOrUuid, data) {
|
|
10012
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors`, {
|
|
10013
|
+
method: "PUT",
|
|
10014
|
+
body: JSON.stringify(data)
|
|
10015
|
+
});
|
|
10016
|
+
}
|
|
10017
|
+
/** Allow a connector that has requested access. Requires `org:admin`. */
|
|
10018
|
+
async allowOrgAiConnector(orgIdOrUuid, appId) {
|
|
10019
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
10020
|
+
method: "PUT"
|
|
10021
|
+
});
|
|
10022
|
+
}
|
|
10023
|
+
/** Remove a connector from the allowlist. Requires `org:admin`. */
|
|
10024
|
+
async removeOrgAiConnector(orgIdOrUuid, appId) {
|
|
10025
|
+
return this.fetch(`o/${orgIdOrUuid}/ai-connectors/clients/${appId}`, {
|
|
10026
|
+
method: "DELETE"
|
|
10027
|
+
});
|
|
10028
|
+
}
|
|
9881
10029
|
/**
|
|
9882
10030
|
* Get the billing customer and this organization's billable subscription.
|
|
9883
10031
|
*
|
|
@@ -10705,9 +10853,57 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
10705
10853
|
method: "DELETE"
|
|
10706
10854
|
});
|
|
10707
10855
|
}
|
|
10708
|
-
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50) {
|
|
10856
|
+
async listOrgWebhookEndpointDeliveries(orgIdOrUuid, endpointUuid, limit = 50, offset = 0) {
|
|
10857
|
+
return this.fetch(
|
|
10858
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries?limit=${limit}&offset=${offset}`
|
|
10859
|
+
);
|
|
10860
|
+
}
|
|
10861
|
+
async getOrgWebhookDeliveryDetail(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
10862
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}`);
|
|
10863
|
+
}
|
|
10864
|
+
async clearOrgWebhookDeliveries(orgIdOrUuid, endpointUuid, failedOnly) {
|
|
10865
|
+
return this.fetch(`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/clear`, {
|
|
10866
|
+
method: "POST",
|
|
10867
|
+
body: JSON.stringify({ failedOnly })
|
|
10868
|
+
});
|
|
10869
|
+
}
|
|
10870
|
+
/**
|
|
10871
|
+
* Requeue one failed or expired delivery on its existing row.
|
|
10872
|
+
*
|
|
10873
|
+
* The response is identifiers only. The drain signs a fresh timestamp
|
|
10874
|
+
* when it sends; this call does not POST to the receiver.
|
|
10875
|
+
*/
|
|
10876
|
+
async replayOrgWebhookDelivery(orgIdOrUuid, endpointUuid, deliveryId) {
|
|
10877
|
+
return this.fetch(
|
|
10878
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/${deliveryId}/replay`,
|
|
10879
|
+
{
|
|
10880
|
+
method: "POST",
|
|
10881
|
+
body: JSON.stringify({})
|
|
10882
|
+
}
|
|
10883
|
+
);
|
|
10884
|
+
}
|
|
10885
|
+
/**
|
|
10886
|
+
* Expire every pending delivery of a paused or disabled endpoint, so a
|
|
10887
|
+
* resume does not re-send a held backlog the receiver keeps rejecting.
|
|
10888
|
+
* Refused with 409 while the endpoint is active. Dead-lettered rows
|
|
10889
|
+
* are untouched; expired rows stay replayable one at a time.
|
|
10890
|
+
*/
|
|
10891
|
+
async discardPendingOrgWebhookDeliveries(orgIdOrUuid, endpointUuid) {
|
|
10892
|
+
return this.fetch(
|
|
10893
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/deliveries/discard-pending`,
|
|
10894
|
+
{
|
|
10895
|
+
method: "POST",
|
|
10896
|
+
body: JSON.stringify({})
|
|
10897
|
+
}
|
|
10898
|
+
);
|
|
10899
|
+
}
|
|
10900
|
+
/**
|
|
10901
|
+
* Which covered workspaces have the subscribed Forms opted in
|
|
10902
|
+
* (`webhookEventsEnabled`). Record events only.
|
|
10903
|
+
*/
|
|
10904
|
+
async getOrgWebhookEndpointCoverage(orgIdOrUuid, endpointUuid) {
|
|
10709
10905
|
return this.fetch(
|
|
10710
|
-
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/
|
|
10906
|
+
`o/${orgIdOrUuid}/webhooks/${endpointUuid}/coverage`
|
|
10711
10907
|
);
|
|
10712
10908
|
}
|
|
10713
10909
|
/**
|
|
@@ -10771,6 +10967,57 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
10771
10967
|
method: "DELETE"
|
|
10772
10968
|
});
|
|
10773
10969
|
}
|
|
10970
|
+
// =========================================================================
|
|
10971
|
+
// Workspace labels — the organization's own taxonomy of its workspaces
|
|
10972
|
+
// =========================================================================
|
|
10973
|
+
/** Every label of the organization, with workspace and webhook-selector counts. */
|
|
10974
|
+
async listWorkspaceLabels(orgIdOrUuid) {
|
|
10975
|
+
return this.fetch(`o/${orgIdOrUuid}/workspace-labels`);
|
|
10976
|
+
}
|
|
10977
|
+
async createWorkspaceLabel(orgIdOrUuid, data) {
|
|
10978
|
+
return this.fetch(`o/${orgIdOrUuid}/workspace-labels`, {
|
|
10979
|
+
method: "POST",
|
|
10980
|
+
body: JSON.stringify(data)
|
|
10981
|
+
});
|
|
10982
|
+
}
|
|
10983
|
+
/** Rename or recolor a label. The slug never changes. */
|
|
10984
|
+
async updateWorkspaceLabel(orgIdOrUuid, labelUuid, data) {
|
|
10985
|
+
return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
|
|
10986
|
+
method: "PATCH",
|
|
10987
|
+
body: JSON.stringify(data)
|
|
10988
|
+
});
|
|
10989
|
+
}
|
|
10990
|
+
/** Delete a label. Refused (409) while a webhook label selector requires it. */
|
|
10991
|
+
async deleteWorkspaceLabel(orgIdOrUuid, labelUuid) {
|
|
10992
|
+
return this.fetch(`o/${orgIdOrUuid}/workspace-labels/${labelUuid}`, {
|
|
10993
|
+
method: "DELETE"
|
|
10994
|
+
});
|
|
10995
|
+
}
|
|
10996
|
+
/**
|
|
10997
|
+
* Which workspaces a webhook scope (explicit workspaces plus a label
|
|
10998
|
+
* selector) would cover right now. Both empty means the whole organization.
|
|
10999
|
+
*/
|
|
11000
|
+
async previewWorkspaceScope(orgIdOrUuid, data) {
|
|
11001
|
+
return this.fetch(
|
|
11002
|
+
`o/${orgIdOrUuid}/workspace-labels/preview-scope`,
|
|
11003
|
+
{ method: "POST", body: JSON.stringify(data) }
|
|
11004
|
+
);
|
|
11005
|
+
}
|
|
11006
|
+
async getWorkspaceLabels(orgIdOrUuid, workspaceUuid) {
|
|
11007
|
+
return this.fetch(
|
|
11008
|
+
`o/${orgIdOrUuid}/workspaces/${workspaceUuid}/labels`
|
|
11009
|
+
);
|
|
11010
|
+
}
|
|
11011
|
+
/**
|
|
11012
|
+
* Replace a workspace's labels with exactly `data.labels` (slugs). A slug the
|
|
11013
|
+
* organization has not used before creates that label.
|
|
11014
|
+
*/
|
|
11015
|
+
async setWorkspaceLabels(orgIdOrUuid, workspaceUuid, data) {
|
|
11016
|
+
return this.fetch(
|
|
11017
|
+
`o/${orgIdOrUuid}/workspaces/${workspaceUuid}/labels`,
|
|
11018
|
+
{ method: "PUT", body: JSON.stringify(data) }
|
|
11019
|
+
);
|
|
11020
|
+
}
|
|
10774
11021
|
};
|
|
10775
11022
|
OAuthConnectionsApi = class extends BaseApiClient {
|
|
10776
11023
|
async getConnectionStatus(providerSlug) {
|
|
@@ -10801,6 +11048,39 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
10801
11048
|
body: JSON.stringify(request)
|
|
10802
11049
|
});
|
|
10803
11050
|
}
|
|
11051
|
+
async denyAuthorization(request) {
|
|
11052
|
+
return this.fetch("oauth/authorize/deny", {
|
|
11053
|
+
method: "POST",
|
|
11054
|
+
body: JSON.stringify(request)
|
|
11055
|
+
});
|
|
11056
|
+
}
|
|
11057
|
+
async getOAuthConsentClient(clientId, redirectUri, resource) {
|
|
11058
|
+
const params = new URLSearchParams({ client_id: clientId, redirect_uri: redirectUri });
|
|
11059
|
+
if (resource) params.set("resource", resource);
|
|
11060
|
+
return this.fetch(`oauth/authorize/client?${params.toString()}`);
|
|
11061
|
+
}
|
|
11062
|
+
/** The organizations and workspaces the MCP consent screen may offer. */
|
|
11063
|
+
async getMcpConsentTargets(clientId) {
|
|
11064
|
+
const params = new URLSearchParams({ client_id: clientId });
|
|
11065
|
+
return this.fetch(`oauth/authorize/mcp-targets?${params.toString()}`);
|
|
11066
|
+
}
|
|
11067
|
+
/** The signed-in account's MCP grants. */
|
|
11068
|
+
async listMcpGrants() {
|
|
11069
|
+
return this.fetch("oauth/mcp-grants");
|
|
11070
|
+
}
|
|
11071
|
+
/** Remove organizations or workspaces from one MCP grant. */
|
|
11072
|
+
async narrowMcpGrant(grantId, removeTargetIds) {
|
|
11073
|
+
return this.fetch(`oauth/mcp-grants/${encodeURIComponent(grantId)}`, {
|
|
11074
|
+
method: "PATCH",
|
|
11075
|
+
body: JSON.stringify({ removeTargetIds })
|
|
11076
|
+
});
|
|
11077
|
+
}
|
|
11078
|
+
/** Revoke one MCP grant. */
|
|
11079
|
+
async revokeMcpGrant(grantId) {
|
|
11080
|
+
return this.fetch(`oauth/mcp-grants/${encodeURIComponent(grantId)}`, {
|
|
11081
|
+
method: "DELETE"
|
|
11082
|
+
});
|
|
11083
|
+
}
|
|
10804
11084
|
async exchangeOAuthToken(request) {
|
|
10805
11085
|
const formData = new URLSearchParams();
|
|
10806
11086
|
formData.append("grant_type", request.grant_type);
|
|
@@ -13172,6 +13452,20 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
13172
13452
|
async getWorkflowOutline(wid, id) {
|
|
13173
13453
|
return this.fetch(`w/${wid}/workflows/${id}/outline`);
|
|
13174
13454
|
}
|
|
13455
|
+
/**
|
|
13456
|
+
* Outlines for many Workflows in one request. The same shape as
|
|
13457
|
+
* {@link getWorkflowOutline}, keyed by workflow id. Ids the caller cannot
|
|
13458
|
+
* use, and outlines that cannot be read, are absent.
|
|
13459
|
+
*
|
|
13460
|
+
* The route accepts at most 100 ids. Callers with a longer list chunk.
|
|
13461
|
+
*/
|
|
13462
|
+
async getWorkflowsOutlineBatch(wid, workflowIds) {
|
|
13463
|
+
const params = new URLSearchParams();
|
|
13464
|
+
params.set("workflowIds", workflowIds.join(","));
|
|
13465
|
+
return this.fetch(
|
|
13466
|
+
`w/${wid}/workflows/outline/batch?${params.toString()}`
|
|
13467
|
+
);
|
|
13468
|
+
}
|
|
13175
13469
|
/** Create a new workflow in a workspace. */
|
|
13176
13470
|
async createWorkflow(wid, workflow) {
|
|
13177
13471
|
return this.fetch(`w/${wid}/workflows`, {
|
|
@@ -13910,6 +14204,17 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
13910
14204
|
async getWorkspaces(options) {
|
|
13911
14205
|
return this.fetch(`w/?${workspaceDirectoryParams(options)}`);
|
|
13912
14206
|
}
|
|
14207
|
+
/**
|
|
14208
|
+
* Page 1 of each organization's workspace directory, in one request.
|
|
14209
|
+
* Later pages stay on ``getWorkspaces({ organizationUuid, page })``.
|
|
14210
|
+
*/
|
|
14211
|
+
async getOrganizationWorkspacePages(options) {
|
|
14212
|
+
const params = new URLSearchParams();
|
|
14213
|
+
if (options.pageSize !== void 0) params.set("pageSize", String(options.pageSize));
|
|
14214
|
+
if (options.search) params.set("search", options.search);
|
|
14215
|
+
for (const uuid of options.organizationUuids) params.append("organizationUuids", uuid);
|
|
14216
|
+
return this.fetch(`w/organization-pages?${params}`);
|
|
14217
|
+
}
|
|
13913
14218
|
/** A bounded page of companion-device candidates, with admission checked per row. */
|
|
13914
14219
|
async getDeviceAdmissibleWorkspaces(options) {
|
|
13915
14220
|
const params = workspaceDirectoryParams(options);
|
|
@@ -15127,6 +15432,19 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15127
15432
|
});
|
|
15128
15433
|
}
|
|
15129
15434
|
};
|
|
15435
|
+
DataReportsApi = class extends BaseApiClient {
|
|
15436
|
+
/**
|
|
15437
|
+
* Run a Form Reports report, saved or not, with the given parameter values.
|
|
15438
|
+
* The result is what the Agent would get: record rows or aggregate groups
|
|
15439
|
+
* within the tool's row and group caps, plus the text sent to the Agent.
|
|
15440
|
+
*/
|
|
15441
|
+
async previewDataReport(wid, request) {
|
|
15442
|
+
return this.fetch(`w/${wid}/data-reports/preview`, {
|
|
15443
|
+
method: "POST",
|
|
15444
|
+
body: JSON.stringify(request)
|
|
15445
|
+
});
|
|
15446
|
+
}
|
|
15447
|
+
};
|
|
15130
15448
|
ProjectsApi = class extends BaseApiClient {
|
|
15131
15449
|
/** List projects (README frontmatter summaries). */
|
|
15132
15450
|
async getProjects(wid, options = {}) {
|
|
@@ -15315,6 +15633,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15315
15633
|
"configureHubspot",
|
|
15316
15634
|
"configureMondayConnection",
|
|
15317
15635
|
"configureSalesforce",
|
|
15636
|
+
"configureZendeskConnection",
|
|
15318
15637
|
"convertEmail",
|
|
15319
15638
|
"convertFile",
|
|
15320
15639
|
"createAbility",
|
|
@@ -15511,6 +15830,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15511
15830
|
"fhirGetCsvImportSettings",
|
|
15512
15831
|
"fhirGetEncounterSyncRuns",
|
|
15513
15832
|
"fhirGetEncounterSyncStatus",
|
|
15833
|
+
"fhirGetOnboardingImportStatus",
|
|
15514
15834
|
"fhirImportPatient",
|
|
15515
15835
|
"fhirLinkMember",
|
|
15516
15836
|
"fhirListLinkedMembers",
|
|
@@ -15519,6 +15839,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15519
15839
|
"fhirSearchLocations",
|
|
15520
15840
|
"fhirSearchPatients",
|
|
15521
15841
|
"fhirSearchPractitioners",
|
|
15842
|
+
"fhirStartOnboardingImport",
|
|
15522
15843
|
"fhirSyncMember",
|
|
15523
15844
|
"fhirUnlinkMember",
|
|
15524
15845
|
"fhirUpdateCsvImportSettings",
|
|
@@ -15675,6 +15996,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15675
15996
|
"importSiteSourceZip",
|
|
15676
15997
|
"installDocumoFax",
|
|
15677
15998
|
"listChatRecordings",
|
|
15999
|
+
"previewDataReport",
|
|
15678
16000
|
"previewQuery",
|
|
15679
16001
|
"publishSiteSource",
|
|
15680
16002
|
"publishDataTypeDraft",
|
|
@@ -15698,6 +16020,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15698
16020
|
"getFiles",
|
|
15699
16021
|
"getFirstRunState",
|
|
15700
16022
|
"getFolder",
|
|
16023
|
+
"getFolderChildren",
|
|
15701
16024
|
"getFolderMemberAccess",
|
|
15702
16025
|
"getFolderSharing",
|
|
15703
16026
|
"getFolders",
|
|
@@ -15884,6 +16207,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
15884
16207
|
"getWorkflowTemplates",
|
|
15885
16208
|
"getWorkflows",
|
|
15886
16209
|
"getWorkflowsActivityBatch",
|
|
16210
|
+
"getWorkflowsOutlineBatch",
|
|
15887
16211
|
"getWorkspace",
|
|
15888
16212
|
"getWorkspaceActivityCounts",
|
|
15889
16213
|
"getWorkspaceBuilder",
|
|
@@ -16418,6 +16742,8 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16418
16742
|
validateQuery;
|
|
16419
16743
|
previewQuery;
|
|
16420
16744
|
runQuery;
|
|
16745
|
+
// Form Reports
|
|
16746
|
+
previewDataReport;
|
|
16421
16747
|
listPersonas;
|
|
16422
16748
|
getPersona;
|
|
16423
16749
|
createPersona;
|
|
@@ -16602,6 +16928,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16602
16928
|
inspectPrompt;
|
|
16603
16929
|
// Workspaces API
|
|
16604
16930
|
getWorkspaces;
|
|
16931
|
+
getOrganizationWorkspacePages;
|
|
16605
16932
|
getDeviceAdmissibleWorkspaces;
|
|
16606
16933
|
getPublicWorkspaces;
|
|
16607
16934
|
getWorkspace;
|
|
@@ -16688,6 +17015,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16688
17015
|
getVoiceTrustProducts;
|
|
16689
17016
|
syncVoiceTrustProducts;
|
|
16690
17017
|
createOrganizationWorkspace;
|
|
17018
|
+
getOrganizationWorkspaces;
|
|
16691
17019
|
getOrganizationWorkspace;
|
|
16692
17020
|
updateOrganizationWorkspace;
|
|
16693
17021
|
getOrgBillingCustomer;
|
|
@@ -16697,7 +17025,22 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16697
17025
|
updateOrganizationMember;
|
|
16698
17026
|
listOrgWebhookEndpoints;
|
|
16699
17027
|
getOrgWebhookEndpoint;
|
|
17028
|
+
createOrgWebhookEndpoint;
|
|
16700
17029
|
updateOrgWebhookEndpoint;
|
|
17030
|
+
listOrgWebhookEndpointDeliveries;
|
|
17031
|
+
replayOrgWebhookDelivery;
|
|
17032
|
+
discardPendingOrgWebhookDeliveries;
|
|
17033
|
+
getOrgWebhookDeliveryDetail;
|
|
17034
|
+
clearOrgWebhookDeliveries;
|
|
17035
|
+
getOrgWebhookEndpointCoverage;
|
|
17036
|
+
testOrgWebhookEndpoint;
|
|
17037
|
+
listWorkspaceLabels;
|
|
17038
|
+
createWorkspaceLabel;
|
|
17039
|
+
updateWorkspaceLabel;
|
|
17040
|
+
deleteWorkspaceLabel;
|
|
17041
|
+
getWorkspaceLabels;
|
|
17042
|
+
setWorkspaceLabels;
|
|
17043
|
+
previewWorkspaceScope;
|
|
16701
17044
|
getVapidPublicKey;
|
|
16702
17045
|
registerPushSubscription;
|
|
16703
17046
|
unregisterPushSubscription;
|
|
@@ -16838,6 +17181,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16838
17181
|
convertFile;
|
|
16839
17182
|
generateFileUploadUrl;
|
|
16840
17183
|
getFolders;
|
|
17184
|
+
getFolderChildren;
|
|
16841
17185
|
getFolder;
|
|
16842
17186
|
createFolder;
|
|
16843
17187
|
updateFolder;
|
|
@@ -16895,6 +17239,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
16895
17239
|
getWorkflowsActivityBatch;
|
|
16896
17240
|
getWorkflowDiagram;
|
|
16897
17241
|
getWorkflowOutline;
|
|
17242
|
+
getWorkflowsOutlineBatch;
|
|
16898
17243
|
createWorkflow;
|
|
16899
17244
|
updateWorkflow;
|
|
16900
17245
|
getWorkflowDeletionPreview;
|
|
@@ -17107,6 +17452,12 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
17107
17452
|
deleteInquiry;
|
|
17108
17453
|
exportInquiriesCsv;
|
|
17109
17454
|
authorize;
|
|
17455
|
+
denyAuthorization;
|
|
17456
|
+
getOAuthConsentClient;
|
|
17457
|
+
getMcpConsentTargets;
|
|
17458
|
+
listMcpGrants;
|
|
17459
|
+
narrowMcpGrant;
|
|
17460
|
+
revokeMcpGrant;
|
|
17110
17461
|
exchangeOAuthToken;
|
|
17111
17462
|
getAvailableScopes;
|
|
17112
17463
|
getOAuthConnectionStatus;
|
|
@@ -17208,6 +17559,8 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
17208
17559
|
fhirGetEncounterSyncRuns;
|
|
17209
17560
|
fhirRefreshEncounterPatient;
|
|
17210
17561
|
fhirBackfillEncounterSync;
|
|
17562
|
+
fhirStartOnboardingImport;
|
|
17563
|
+
fhirGetOnboardingImportStatus;
|
|
17211
17564
|
// Healthie API
|
|
17212
17565
|
getDocumoFaxStatus;
|
|
17213
17566
|
getDocumoFaxSetup;
|
|
@@ -17300,6 +17653,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
17300
17653
|
listAvailableAppConnections;
|
|
17301
17654
|
listAppConnections;
|
|
17302
17655
|
enablePlatformApp;
|
|
17656
|
+
configureZendeskConnection;
|
|
17303
17657
|
getPlatformApp;
|
|
17304
17658
|
updatePlatformApp;
|
|
17305
17659
|
deletePlatformApp;
|
|
@@ -17380,6 +17734,7 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
17380
17734
|
bindPersonasMethods(this, apis.personas);
|
|
17381
17735
|
bindMetricsMethods(this, apis.metrics);
|
|
17382
17736
|
bindQueriesMethods(this, apis.queries);
|
|
17737
|
+
bindDataReportsMethods(this, apis.dataReports);
|
|
17383
17738
|
bindDashboardsMethods(this, apis.dashboards);
|
|
17384
17739
|
bindActivityMethods(this, apis.activity);
|
|
17385
17740
|
bindMotdMethods(this, apis.motd);
|
|
@@ -17559,9 +17914,9 @@ var init_chunk_JRK77RT4 = __esm({
|
|
|
17559
17914
|
}
|
|
17560
17915
|
});
|
|
17561
17916
|
|
|
17562
|
-
// ../sdk/dist/chunk-
|
|
17563
|
-
var
|
|
17564
|
-
"../sdk/dist/chunk-
|
|
17917
|
+
// ../sdk/dist/chunk-HXVJF54M.js
|
|
17918
|
+
var init_chunk_HXVJF54M = __esm({
|
|
17919
|
+
"../sdk/dist/chunk-HXVJF54M.js"() {
|
|
17565
17920
|
}
|
|
17566
17921
|
});
|
|
17567
17922
|
|
|
@@ -17616,8 +17971,8 @@ var init_chunk_6KPGCPGW = __esm({
|
|
|
17616
17971
|
var SEARCHABLE_EVENT_RULE_SOURCE_FIELDS, ActivityEventType, EntityKind;
|
|
17617
17972
|
var init_dist = __esm({
|
|
17618
17973
|
"../sdk/dist/index.js"() {
|
|
17619
|
-
|
|
17620
|
-
|
|
17974
|
+
init_chunk_7R22EG5F();
|
|
17975
|
+
init_chunk_HXVJF54M();
|
|
17621
17976
|
init_chunk_6KPGCPGW();
|
|
17622
17977
|
init_chunk_GCN4OMYU();
|
|
17623
17978
|
SEARCHABLE_EVENT_RULE_SOURCE_FIELDS = [
|
|
@@ -17703,6 +18058,7 @@ var init_dist = __esm({
|
|
|
17703
18058
|
escalation: "escalation",
|
|
17704
18059
|
inbox: "inbox",
|
|
17705
18060
|
phone_number: "phone_number",
|
|
18061
|
+
recording: "recording",
|
|
17706
18062
|
voicemail: "voicemail",
|
|
17707
18063
|
domain: "domain",
|
|
17708
18064
|
import: "import",
|
|
@@ -18904,7 +19260,7 @@ function readBlockScalar(state, parentIndent, props) {
|
|
|
18904
19260
|
state.position = linePosition + column;
|
|
18905
19261
|
throwError(state, "tab characters must not be used in indentation");
|
|
18906
19262
|
}
|
|
18907
|
-
if (column < maxLeadingIndent) {
|
|
19263
|
+
if (column >= parentIndent && column < maxLeadingIndent) {
|
|
18908
19264
|
state.position = linePosition + column;
|
|
18909
19265
|
throwError(state, "bad indentation of a mapping entry");
|
|
18910
19266
|
}
|
|
@@ -19114,13 +19470,16 @@ function readBlockMapping(state, nodeIndent, flowIndent, props) {
|
|
|
19114
19470
|
ch = state.input.charCodeAt(++state.position);
|
|
19115
19471
|
if (!isWsOrEolOrEnd(ch)) throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
19116
19472
|
if (!mappingOpened) {
|
|
19117
|
-
|
|
19118
|
-
|
|
19473
|
+
state.events.splice(beforeKey.eventsLength, 0, {
|
|
19474
|
+
type: EVENT_ID.MAPPING,
|
|
19475
|
+
start: beforeKey.position,
|
|
19476
|
+
anchorStart: props.anchorStart,
|
|
19477
|
+
anchorEnd: props.anchorEnd,
|
|
19478
|
+
tagStart: props.tagStart,
|
|
19479
|
+
tagEnd: props.tagEnd,
|
|
19480
|
+
style: COLLECTION_STYLE.BLOCK
|
|
19481
|
+
});
|
|
19119
19482
|
mappingOpened = true;
|
|
19120
|
-
parseNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true);
|
|
19121
|
-
ch = state.input.charCodeAt(state.position);
|
|
19122
|
-
while (isWhiteSpace(ch)) ch = state.input.charCodeAt(++state.position);
|
|
19123
|
-
state.position++;
|
|
19124
19483
|
}
|
|
19125
19484
|
detected = true;
|
|
19126
19485
|
atExplicitKey = false;
|
|
@@ -20379,6 +20738,1650 @@ var init_config = __esm({
|
|
|
20379
20738
|
};
|
|
20380
20739
|
}
|
|
20381
20740
|
});
|
|
20741
|
+
|
|
20742
|
+
// ../../node_modules/graceful-fs/polyfills.js
|
|
20743
|
+
var require_polyfills = __commonJS({
|
|
20744
|
+
"../../node_modules/graceful-fs/polyfills.js"(exports$1, module) {
|
|
20745
|
+
var constants = __require("constants");
|
|
20746
|
+
var origCwd = process.cwd;
|
|
20747
|
+
var cwd = null;
|
|
20748
|
+
var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
20749
|
+
process.cwd = function() {
|
|
20750
|
+
if (!cwd)
|
|
20751
|
+
cwd = origCwd.call(process);
|
|
20752
|
+
return cwd;
|
|
20753
|
+
};
|
|
20754
|
+
try {
|
|
20755
|
+
process.cwd();
|
|
20756
|
+
} catch (er) {
|
|
20757
|
+
}
|
|
20758
|
+
if (typeof process.chdir === "function") {
|
|
20759
|
+
chdir = process.chdir;
|
|
20760
|
+
process.chdir = function(d) {
|
|
20761
|
+
cwd = null;
|
|
20762
|
+
chdir.call(process, d);
|
|
20763
|
+
};
|
|
20764
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, chdir);
|
|
20765
|
+
}
|
|
20766
|
+
var chdir;
|
|
20767
|
+
module.exports = patch;
|
|
20768
|
+
function patch(fs3) {
|
|
20769
|
+
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
20770
|
+
patchLchmod(fs3);
|
|
20771
|
+
}
|
|
20772
|
+
if (!fs3.lutimes) {
|
|
20773
|
+
patchLutimes(fs3);
|
|
20774
|
+
}
|
|
20775
|
+
fs3.chown = chownFix(fs3.chown);
|
|
20776
|
+
fs3.fchown = chownFix(fs3.fchown);
|
|
20777
|
+
fs3.lchown = chownFix(fs3.lchown);
|
|
20778
|
+
fs3.chmod = chmodFix(fs3.chmod);
|
|
20779
|
+
fs3.fchmod = chmodFix(fs3.fchmod);
|
|
20780
|
+
fs3.lchmod = chmodFix(fs3.lchmod);
|
|
20781
|
+
fs3.chownSync = chownFixSync(fs3.chownSync);
|
|
20782
|
+
fs3.fchownSync = chownFixSync(fs3.fchownSync);
|
|
20783
|
+
fs3.lchownSync = chownFixSync(fs3.lchownSync);
|
|
20784
|
+
fs3.chmodSync = chmodFixSync(fs3.chmodSync);
|
|
20785
|
+
fs3.fchmodSync = chmodFixSync(fs3.fchmodSync);
|
|
20786
|
+
fs3.lchmodSync = chmodFixSync(fs3.lchmodSync);
|
|
20787
|
+
fs3.stat = statFix(fs3.stat);
|
|
20788
|
+
fs3.fstat = statFix(fs3.fstat);
|
|
20789
|
+
fs3.lstat = statFix(fs3.lstat);
|
|
20790
|
+
fs3.statSync = statFixSync(fs3.statSync);
|
|
20791
|
+
fs3.fstatSync = statFixSync(fs3.fstatSync);
|
|
20792
|
+
fs3.lstatSync = statFixSync(fs3.lstatSync);
|
|
20793
|
+
if (fs3.chmod && !fs3.lchmod) {
|
|
20794
|
+
fs3.lchmod = function(path4, mode, cb) {
|
|
20795
|
+
if (cb) process.nextTick(cb);
|
|
20796
|
+
};
|
|
20797
|
+
fs3.lchmodSync = function() {
|
|
20798
|
+
};
|
|
20799
|
+
}
|
|
20800
|
+
if (fs3.chown && !fs3.lchown) {
|
|
20801
|
+
fs3.lchown = function(path4, uid, gid, cb) {
|
|
20802
|
+
if (cb) process.nextTick(cb);
|
|
20803
|
+
};
|
|
20804
|
+
fs3.lchownSync = function() {
|
|
20805
|
+
};
|
|
20806
|
+
}
|
|
20807
|
+
if (platform === "win32") {
|
|
20808
|
+
fs3.rename = typeof fs3.rename !== "function" ? fs3.rename : (function(fs$rename) {
|
|
20809
|
+
function rename(from, to, cb) {
|
|
20810
|
+
var start = Date.now();
|
|
20811
|
+
var backoff = 0;
|
|
20812
|
+
fs$rename(from, to, function CB(er) {
|
|
20813
|
+
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
20814
|
+
setTimeout(function() {
|
|
20815
|
+
fs3.stat(to, function(stater, st) {
|
|
20816
|
+
if (stater && stater.code === "ENOENT")
|
|
20817
|
+
fs$rename(from, to, CB);
|
|
20818
|
+
else
|
|
20819
|
+
cb(er);
|
|
20820
|
+
});
|
|
20821
|
+
}, backoff);
|
|
20822
|
+
if (backoff < 100)
|
|
20823
|
+
backoff += 10;
|
|
20824
|
+
return;
|
|
20825
|
+
}
|
|
20826
|
+
if (cb) cb(er);
|
|
20827
|
+
});
|
|
20828
|
+
}
|
|
20829
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
20830
|
+
return rename;
|
|
20831
|
+
})(fs3.rename);
|
|
20832
|
+
}
|
|
20833
|
+
fs3.read = typeof fs3.read !== "function" ? fs3.read : (function(fs$read) {
|
|
20834
|
+
function read(fd, buffer, offset, length, position, callback_) {
|
|
20835
|
+
var callback;
|
|
20836
|
+
if (callback_ && typeof callback_ === "function") {
|
|
20837
|
+
var eagCounter = 0;
|
|
20838
|
+
callback = function(er, _, __) {
|
|
20839
|
+
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
20840
|
+
eagCounter++;
|
|
20841
|
+
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
20842
|
+
}
|
|
20843
|
+
callback_.apply(this, arguments);
|
|
20844
|
+
};
|
|
20845
|
+
}
|
|
20846
|
+
return fs$read.call(fs3, fd, buffer, offset, length, position, callback);
|
|
20847
|
+
}
|
|
20848
|
+
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
20849
|
+
return read;
|
|
20850
|
+
})(fs3.read);
|
|
20851
|
+
fs3.readSync = typeof fs3.readSync !== "function" ? fs3.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
20852
|
+
return function(fd, buffer, offset, length, position) {
|
|
20853
|
+
var eagCounter = 0;
|
|
20854
|
+
while (true) {
|
|
20855
|
+
try {
|
|
20856
|
+
return fs$readSync.call(fs3, fd, buffer, offset, length, position);
|
|
20857
|
+
} catch (er) {
|
|
20858
|
+
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
20859
|
+
eagCounter++;
|
|
20860
|
+
continue;
|
|
20861
|
+
}
|
|
20862
|
+
throw er;
|
|
20863
|
+
}
|
|
20864
|
+
}
|
|
20865
|
+
};
|
|
20866
|
+
})(fs3.readSync);
|
|
20867
|
+
function patchLchmod(fs4) {
|
|
20868
|
+
fs4.lchmod = function(path4, mode, callback) {
|
|
20869
|
+
fs4.open(
|
|
20870
|
+
path4,
|
|
20871
|
+
constants.O_WRONLY | constants.O_SYMLINK,
|
|
20872
|
+
mode,
|
|
20873
|
+
function(err, fd) {
|
|
20874
|
+
if (err) {
|
|
20875
|
+
if (callback) callback(err);
|
|
20876
|
+
return;
|
|
20877
|
+
}
|
|
20878
|
+
fs4.fchmod(fd, mode, function(err2) {
|
|
20879
|
+
fs4.close(fd, function(err22) {
|
|
20880
|
+
if (callback) callback(err2 || err22);
|
|
20881
|
+
});
|
|
20882
|
+
});
|
|
20883
|
+
}
|
|
20884
|
+
);
|
|
20885
|
+
};
|
|
20886
|
+
fs4.lchmodSync = function(path4, mode) {
|
|
20887
|
+
var fd = fs4.openSync(path4, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
20888
|
+
var threw = true;
|
|
20889
|
+
var ret;
|
|
20890
|
+
try {
|
|
20891
|
+
ret = fs4.fchmodSync(fd, mode);
|
|
20892
|
+
threw = false;
|
|
20893
|
+
} finally {
|
|
20894
|
+
if (threw) {
|
|
20895
|
+
try {
|
|
20896
|
+
fs4.closeSync(fd);
|
|
20897
|
+
} catch (er) {
|
|
20898
|
+
}
|
|
20899
|
+
} else {
|
|
20900
|
+
fs4.closeSync(fd);
|
|
20901
|
+
}
|
|
20902
|
+
}
|
|
20903
|
+
return ret;
|
|
20904
|
+
};
|
|
20905
|
+
}
|
|
20906
|
+
function patchLutimes(fs4) {
|
|
20907
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs4.futimes) {
|
|
20908
|
+
fs4.lutimes = function(path4, at, mt, cb) {
|
|
20909
|
+
fs4.open(path4, constants.O_SYMLINK, function(er, fd) {
|
|
20910
|
+
if (er) {
|
|
20911
|
+
if (cb) cb(er);
|
|
20912
|
+
return;
|
|
20913
|
+
}
|
|
20914
|
+
fs4.futimes(fd, at, mt, function(er2) {
|
|
20915
|
+
fs4.close(fd, function(er22) {
|
|
20916
|
+
if (cb) cb(er2 || er22);
|
|
20917
|
+
});
|
|
20918
|
+
});
|
|
20919
|
+
});
|
|
20920
|
+
};
|
|
20921
|
+
fs4.lutimesSync = function(path4, at, mt) {
|
|
20922
|
+
var fd = fs4.openSync(path4, constants.O_SYMLINK);
|
|
20923
|
+
var ret;
|
|
20924
|
+
var threw = true;
|
|
20925
|
+
try {
|
|
20926
|
+
ret = fs4.futimesSync(fd, at, mt);
|
|
20927
|
+
threw = false;
|
|
20928
|
+
} finally {
|
|
20929
|
+
if (threw) {
|
|
20930
|
+
try {
|
|
20931
|
+
fs4.closeSync(fd);
|
|
20932
|
+
} catch (er) {
|
|
20933
|
+
}
|
|
20934
|
+
} else {
|
|
20935
|
+
fs4.closeSync(fd);
|
|
20936
|
+
}
|
|
20937
|
+
}
|
|
20938
|
+
return ret;
|
|
20939
|
+
};
|
|
20940
|
+
} else if (fs4.futimes) {
|
|
20941
|
+
fs4.lutimes = function(_a, _b, _c, cb) {
|
|
20942
|
+
if (cb) process.nextTick(cb);
|
|
20943
|
+
};
|
|
20944
|
+
fs4.lutimesSync = function() {
|
|
20945
|
+
};
|
|
20946
|
+
}
|
|
20947
|
+
}
|
|
20948
|
+
function chmodFix(orig) {
|
|
20949
|
+
if (!orig) return orig;
|
|
20950
|
+
return function(target, mode, cb) {
|
|
20951
|
+
return orig.call(fs3, target, mode, function(er) {
|
|
20952
|
+
if (chownErOk(er)) er = null;
|
|
20953
|
+
if (cb) cb.apply(this, arguments);
|
|
20954
|
+
});
|
|
20955
|
+
};
|
|
20956
|
+
}
|
|
20957
|
+
function chmodFixSync(orig) {
|
|
20958
|
+
if (!orig) return orig;
|
|
20959
|
+
return function(target, mode) {
|
|
20960
|
+
try {
|
|
20961
|
+
return orig.call(fs3, target, mode);
|
|
20962
|
+
} catch (er) {
|
|
20963
|
+
if (!chownErOk(er)) throw er;
|
|
20964
|
+
}
|
|
20965
|
+
};
|
|
20966
|
+
}
|
|
20967
|
+
function chownFix(orig) {
|
|
20968
|
+
if (!orig) return orig;
|
|
20969
|
+
return function(target, uid, gid, cb) {
|
|
20970
|
+
return orig.call(fs3, target, uid, gid, function(er) {
|
|
20971
|
+
if (chownErOk(er)) er = null;
|
|
20972
|
+
if (cb) cb.apply(this, arguments);
|
|
20973
|
+
});
|
|
20974
|
+
};
|
|
20975
|
+
}
|
|
20976
|
+
function chownFixSync(orig) {
|
|
20977
|
+
if (!orig) return orig;
|
|
20978
|
+
return function(target, uid, gid) {
|
|
20979
|
+
try {
|
|
20980
|
+
return orig.call(fs3, target, uid, gid);
|
|
20981
|
+
} catch (er) {
|
|
20982
|
+
if (!chownErOk(er)) throw er;
|
|
20983
|
+
}
|
|
20984
|
+
};
|
|
20985
|
+
}
|
|
20986
|
+
function statFix(orig) {
|
|
20987
|
+
if (!orig) return orig;
|
|
20988
|
+
return function(target, options, cb) {
|
|
20989
|
+
if (typeof options === "function") {
|
|
20990
|
+
cb = options;
|
|
20991
|
+
options = null;
|
|
20992
|
+
}
|
|
20993
|
+
function callback(er, stats) {
|
|
20994
|
+
if (stats) {
|
|
20995
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
|
20996
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
|
20997
|
+
}
|
|
20998
|
+
if (cb) cb.apply(this, arguments);
|
|
20999
|
+
}
|
|
21000
|
+
return options ? orig.call(fs3, target, options, callback) : orig.call(fs3, target, callback);
|
|
21001
|
+
};
|
|
21002
|
+
}
|
|
21003
|
+
function statFixSync(orig) {
|
|
21004
|
+
if (!orig) return orig;
|
|
21005
|
+
return function(target, options) {
|
|
21006
|
+
var stats = options ? orig.call(fs3, target, options) : orig.call(fs3, target);
|
|
21007
|
+
if (stats) {
|
|
21008
|
+
if (stats.uid < 0) stats.uid += 4294967296;
|
|
21009
|
+
if (stats.gid < 0) stats.gid += 4294967296;
|
|
21010
|
+
}
|
|
21011
|
+
return stats;
|
|
21012
|
+
};
|
|
21013
|
+
}
|
|
21014
|
+
function chownErOk(er) {
|
|
21015
|
+
if (!er)
|
|
21016
|
+
return true;
|
|
21017
|
+
if (er.code === "ENOSYS")
|
|
21018
|
+
return true;
|
|
21019
|
+
var nonroot = !process.getuid || process.getuid() !== 0;
|
|
21020
|
+
if (nonroot) {
|
|
21021
|
+
if (er.code === "EINVAL" || er.code === "EPERM")
|
|
21022
|
+
return true;
|
|
21023
|
+
}
|
|
21024
|
+
return false;
|
|
21025
|
+
}
|
|
21026
|
+
}
|
|
21027
|
+
}
|
|
21028
|
+
});
|
|
21029
|
+
|
|
21030
|
+
// ../../node_modules/graceful-fs/legacy-streams.js
|
|
21031
|
+
var require_legacy_streams = __commonJS({
|
|
21032
|
+
"../../node_modules/graceful-fs/legacy-streams.js"(exports$1, module) {
|
|
21033
|
+
var Stream = __require("stream").Stream;
|
|
21034
|
+
module.exports = legacy;
|
|
21035
|
+
function legacy(fs3) {
|
|
21036
|
+
return {
|
|
21037
|
+
ReadStream,
|
|
21038
|
+
WriteStream
|
|
21039
|
+
};
|
|
21040
|
+
function ReadStream(path4, options) {
|
|
21041
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path4, options);
|
|
21042
|
+
Stream.call(this);
|
|
21043
|
+
var self = this;
|
|
21044
|
+
this.path = path4;
|
|
21045
|
+
this.fd = null;
|
|
21046
|
+
this.readable = true;
|
|
21047
|
+
this.paused = false;
|
|
21048
|
+
this.flags = "r";
|
|
21049
|
+
this.mode = 438;
|
|
21050
|
+
this.bufferSize = 64 * 1024;
|
|
21051
|
+
options = options || {};
|
|
21052
|
+
var keys = Object.keys(options);
|
|
21053
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
21054
|
+
var key = keys[index];
|
|
21055
|
+
this[key] = options[key];
|
|
21056
|
+
}
|
|
21057
|
+
if (this.encoding) this.setEncoding(this.encoding);
|
|
21058
|
+
if (this.start !== void 0) {
|
|
21059
|
+
if ("number" !== typeof this.start) {
|
|
21060
|
+
throw TypeError("start must be a Number");
|
|
21061
|
+
}
|
|
21062
|
+
if (this.end === void 0) {
|
|
21063
|
+
this.end = Infinity;
|
|
21064
|
+
} else if ("number" !== typeof this.end) {
|
|
21065
|
+
throw TypeError("end must be a Number");
|
|
21066
|
+
}
|
|
21067
|
+
if (this.start > this.end) {
|
|
21068
|
+
throw new Error("start must be <= end");
|
|
21069
|
+
}
|
|
21070
|
+
this.pos = this.start;
|
|
21071
|
+
}
|
|
21072
|
+
if (this.fd !== null) {
|
|
21073
|
+
process.nextTick(function() {
|
|
21074
|
+
self._read();
|
|
21075
|
+
});
|
|
21076
|
+
return;
|
|
21077
|
+
}
|
|
21078
|
+
fs3.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
21079
|
+
if (err) {
|
|
21080
|
+
self.emit("error", err);
|
|
21081
|
+
self.readable = false;
|
|
21082
|
+
return;
|
|
21083
|
+
}
|
|
21084
|
+
self.fd = fd;
|
|
21085
|
+
self.emit("open", fd);
|
|
21086
|
+
self._read();
|
|
21087
|
+
});
|
|
21088
|
+
}
|
|
21089
|
+
function WriteStream(path4, options) {
|
|
21090
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path4, options);
|
|
21091
|
+
Stream.call(this);
|
|
21092
|
+
this.path = path4;
|
|
21093
|
+
this.fd = null;
|
|
21094
|
+
this.writable = true;
|
|
21095
|
+
this.flags = "w";
|
|
21096
|
+
this.encoding = "binary";
|
|
21097
|
+
this.mode = 438;
|
|
21098
|
+
this.bytesWritten = 0;
|
|
21099
|
+
options = options || {};
|
|
21100
|
+
var keys = Object.keys(options);
|
|
21101
|
+
for (var index = 0, length = keys.length; index < length; index++) {
|
|
21102
|
+
var key = keys[index];
|
|
21103
|
+
this[key] = options[key];
|
|
21104
|
+
}
|
|
21105
|
+
if (this.start !== void 0) {
|
|
21106
|
+
if ("number" !== typeof this.start) {
|
|
21107
|
+
throw TypeError("start must be a Number");
|
|
21108
|
+
}
|
|
21109
|
+
if (this.start < 0) {
|
|
21110
|
+
throw new Error("start must be >= zero");
|
|
21111
|
+
}
|
|
21112
|
+
this.pos = this.start;
|
|
21113
|
+
}
|
|
21114
|
+
this.busy = false;
|
|
21115
|
+
this._queue = [];
|
|
21116
|
+
if (this.fd === null) {
|
|
21117
|
+
this._open = fs3.open;
|
|
21118
|
+
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
21119
|
+
this.flush();
|
|
21120
|
+
}
|
|
21121
|
+
}
|
|
21122
|
+
}
|
|
21123
|
+
}
|
|
21124
|
+
});
|
|
21125
|
+
|
|
21126
|
+
// ../../node_modules/graceful-fs/clone.js
|
|
21127
|
+
var require_clone = __commonJS({
|
|
21128
|
+
"../../node_modules/graceful-fs/clone.js"(exports$1, module) {
|
|
21129
|
+
module.exports = clone;
|
|
21130
|
+
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
|
|
21131
|
+
return obj.__proto__;
|
|
21132
|
+
};
|
|
21133
|
+
function clone(obj) {
|
|
21134
|
+
if (obj === null || typeof obj !== "object")
|
|
21135
|
+
return obj;
|
|
21136
|
+
if (obj instanceof Object)
|
|
21137
|
+
var copy = { __proto__: getPrototypeOf(obj) };
|
|
21138
|
+
else
|
|
21139
|
+
var copy = /* @__PURE__ */ Object.create(null);
|
|
21140
|
+
Object.getOwnPropertyNames(obj).forEach(function(key) {
|
|
21141
|
+
Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key));
|
|
21142
|
+
});
|
|
21143
|
+
return copy;
|
|
21144
|
+
}
|
|
21145
|
+
}
|
|
21146
|
+
});
|
|
21147
|
+
|
|
21148
|
+
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
21149
|
+
var require_graceful_fs = __commonJS({
|
|
21150
|
+
"../../node_modules/graceful-fs/graceful-fs.js"(exports$1, module) {
|
|
21151
|
+
var fs3 = __require("fs");
|
|
21152
|
+
var polyfills = require_polyfills();
|
|
21153
|
+
var legacy = require_legacy_streams();
|
|
21154
|
+
var clone = require_clone();
|
|
21155
|
+
var util = __require("util");
|
|
21156
|
+
var gracefulQueue;
|
|
21157
|
+
var previousSymbol;
|
|
21158
|
+
if (typeof Symbol === "function" && typeof Symbol.for === "function") {
|
|
21159
|
+
gracefulQueue = /* @__PURE__ */ Symbol.for("graceful-fs.queue");
|
|
21160
|
+
previousSymbol = /* @__PURE__ */ Symbol.for("graceful-fs.previous");
|
|
21161
|
+
} else {
|
|
21162
|
+
gracefulQueue = "___graceful-fs.queue";
|
|
21163
|
+
previousSymbol = "___graceful-fs.previous";
|
|
21164
|
+
}
|
|
21165
|
+
function noop() {
|
|
21166
|
+
}
|
|
21167
|
+
function publishQueue(context, queue2) {
|
|
21168
|
+
Object.defineProperty(context, gracefulQueue, {
|
|
21169
|
+
get: function() {
|
|
21170
|
+
return queue2;
|
|
21171
|
+
}
|
|
21172
|
+
});
|
|
21173
|
+
}
|
|
21174
|
+
var debug = noop;
|
|
21175
|
+
if (util.debuglog)
|
|
21176
|
+
debug = util.debuglog("gfs4");
|
|
21177
|
+
else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || ""))
|
|
21178
|
+
debug = function() {
|
|
21179
|
+
var m = util.format.apply(util, arguments);
|
|
21180
|
+
m = "GFS4: " + m.split(/\n/).join("\nGFS4: ");
|
|
21181
|
+
console.error(m);
|
|
21182
|
+
};
|
|
21183
|
+
if (!fs3[gracefulQueue]) {
|
|
21184
|
+
queue = global[gracefulQueue] || [];
|
|
21185
|
+
publishQueue(fs3, queue);
|
|
21186
|
+
fs3.close = (function(fs$close) {
|
|
21187
|
+
function close(fd, cb) {
|
|
21188
|
+
return fs$close.call(fs3, fd, function(err) {
|
|
21189
|
+
if (!err) {
|
|
21190
|
+
resetQueue();
|
|
21191
|
+
}
|
|
21192
|
+
if (typeof cb === "function")
|
|
21193
|
+
cb.apply(this, arguments);
|
|
21194
|
+
});
|
|
21195
|
+
}
|
|
21196
|
+
Object.defineProperty(close, previousSymbol, {
|
|
21197
|
+
value: fs$close
|
|
21198
|
+
});
|
|
21199
|
+
return close;
|
|
21200
|
+
})(fs3.close);
|
|
21201
|
+
fs3.closeSync = (function(fs$closeSync) {
|
|
21202
|
+
function closeSync(fd) {
|
|
21203
|
+
fs$closeSync.apply(fs3, arguments);
|
|
21204
|
+
resetQueue();
|
|
21205
|
+
}
|
|
21206
|
+
Object.defineProperty(closeSync, previousSymbol, {
|
|
21207
|
+
value: fs$closeSync
|
|
21208
|
+
});
|
|
21209
|
+
return closeSync;
|
|
21210
|
+
})(fs3.closeSync);
|
|
21211
|
+
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
21212
|
+
process.on("exit", function() {
|
|
21213
|
+
debug(fs3[gracefulQueue]);
|
|
21214
|
+
__require("assert").equal(fs3[gracefulQueue].length, 0);
|
|
21215
|
+
});
|
|
21216
|
+
}
|
|
21217
|
+
}
|
|
21218
|
+
var queue;
|
|
21219
|
+
if (!global[gracefulQueue]) {
|
|
21220
|
+
publishQueue(global, fs3[gracefulQueue]);
|
|
21221
|
+
}
|
|
21222
|
+
module.exports = patch(clone(fs3));
|
|
21223
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs3.__patched) {
|
|
21224
|
+
module.exports = patch(fs3);
|
|
21225
|
+
fs3.__patched = true;
|
|
21226
|
+
}
|
|
21227
|
+
function patch(fs4) {
|
|
21228
|
+
polyfills(fs4);
|
|
21229
|
+
fs4.gracefulify = patch;
|
|
21230
|
+
fs4.createReadStream = createReadStream;
|
|
21231
|
+
fs4.createWriteStream = createWriteStream2;
|
|
21232
|
+
var fs$readFile = fs4.readFile;
|
|
21233
|
+
fs4.readFile = readFile3;
|
|
21234
|
+
function readFile3(path4, options, cb) {
|
|
21235
|
+
if (typeof options === "function")
|
|
21236
|
+
cb = options, options = null;
|
|
21237
|
+
return go$readFile(path4, options, cb);
|
|
21238
|
+
function go$readFile(path5, options2, cb2, startTime) {
|
|
21239
|
+
return fs$readFile(path5, options2, function(err) {
|
|
21240
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21241
|
+
enqueue([go$readFile, [path5, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
21242
|
+
else {
|
|
21243
|
+
if (typeof cb2 === "function")
|
|
21244
|
+
cb2.apply(this, arguments);
|
|
21245
|
+
}
|
|
21246
|
+
});
|
|
21247
|
+
}
|
|
21248
|
+
}
|
|
21249
|
+
var fs$writeFile = fs4.writeFile;
|
|
21250
|
+
fs4.writeFile = writeFile2;
|
|
21251
|
+
function writeFile2(path4, data, options, cb) {
|
|
21252
|
+
if (typeof options === "function")
|
|
21253
|
+
cb = options, options = null;
|
|
21254
|
+
return go$writeFile(path4, data, options, cb);
|
|
21255
|
+
function go$writeFile(path5, data2, options2, cb2, startTime) {
|
|
21256
|
+
return fs$writeFile(path5, data2, options2, function(err) {
|
|
21257
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21258
|
+
enqueue([go$writeFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
21259
|
+
else {
|
|
21260
|
+
if (typeof cb2 === "function")
|
|
21261
|
+
cb2.apply(this, arguments);
|
|
21262
|
+
}
|
|
21263
|
+
});
|
|
21264
|
+
}
|
|
21265
|
+
}
|
|
21266
|
+
var fs$appendFile = fs4.appendFile;
|
|
21267
|
+
if (fs$appendFile)
|
|
21268
|
+
fs4.appendFile = appendFile;
|
|
21269
|
+
function appendFile(path4, data, options, cb) {
|
|
21270
|
+
if (typeof options === "function")
|
|
21271
|
+
cb = options, options = null;
|
|
21272
|
+
return go$appendFile(path4, data, options, cb);
|
|
21273
|
+
function go$appendFile(path5, data2, options2, cb2, startTime) {
|
|
21274
|
+
return fs$appendFile(path5, data2, options2, function(err) {
|
|
21275
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21276
|
+
enqueue([go$appendFile, [path5, data2, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
21277
|
+
else {
|
|
21278
|
+
if (typeof cb2 === "function")
|
|
21279
|
+
cb2.apply(this, arguments);
|
|
21280
|
+
}
|
|
21281
|
+
});
|
|
21282
|
+
}
|
|
21283
|
+
}
|
|
21284
|
+
var fs$copyFile = fs4.copyFile;
|
|
21285
|
+
if (fs$copyFile)
|
|
21286
|
+
fs4.copyFile = copyFile;
|
|
21287
|
+
function copyFile(src, dest, flags, cb) {
|
|
21288
|
+
if (typeof flags === "function") {
|
|
21289
|
+
cb = flags;
|
|
21290
|
+
flags = 0;
|
|
21291
|
+
}
|
|
21292
|
+
return go$copyFile(src, dest, flags, cb);
|
|
21293
|
+
function go$copyFile(src2, dest2, flags2, cb2, startTime) {
|
|
21294
|
+
return fs$copyFile(src2, dest2, flags2, function(err) {
|
|
21295
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21296
|
+
enqueue([go$copyFile, [src2, dest2, flags2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
21297
|
+
else {
|
|
21298
|
+
if (typeof cb2 === "function")
|
|
21299
|
+
cb2.apply(this, arguments);
|
|
21300
|
+
}
|
|
21301
|
+
});
|
|
21302
|
+
}
|
|
21303
|
+
}
|
|
21304
|
+
var fs$readdir = fs4.readdir;
|
|
21305
|
+
fs4.readdir = readdir;
|
|
21306
|
+
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
21307
|
+
function readdir(path4, options, cb) {
|
|
21308
|
+
if (typeof options === "function")
|
|
21309
|
+
cb = options, options = null;
|
|
21310
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? function go$readdir2(path5, options2, cb2, startTime) {
|
|
21311
|
+
return fs$readdir(path5, fs$readdirCallback(
|
|
21312
|
+
path5,
|
|
21313
|
+
options2,
|
|
21314
|
+
cb2,
|
|
21315
|
+
startTime
|
|
21316
|
+
));
|
|
21317
|
+
} : function go$readdir2(path5, options2, cb2, startTime) {
|
|
21318
|
+
return fs$readdir(path5, options2, fs$readdirCallback(
|
|
21319
|
+
path5,
|
|
21320
|
+
options2,
|
|
21321
|
+
cb2,
|
|
21322
|
+
startTime
|
|
21323
|
+
));
|
|
21324
|
+
};
|
|
21325
|
+
return go$readdir(path4, options, cb);
|
|
21326
|
+
function fs$readdirCallback(path5, options2, cb2, startTime) {
|
|
21327
|
+
return function(err, files) {
|
|
21328
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21329
|
+
enqueue([
|
|
21330
|
+
go$readdir,
|
|
21331
|
+
[path5, options2, cb2],
|
|
21332
|
+
err,
|
|
21333
|
+
startTime || Date.now(),
|
|
21334
|
+
Date.now()
|
|
21335
|
+
]);
|
|
21336
|
+
else {
|
|
21337
|
+
if (files && files.sort)
|
|
21338
|
+
files.sort();
|
|
21339
|
+
if (typeof cb2 === "function")
|
|
21340
|
+
cb2.call(this, err, files);
|
|
21341
|
+
}
|
|
21342
|
+
};
|
|
21343
|
+
}
|
|
21344
|
+
}
|
|
21345
|
+
if (process.version.substr(0, 4) === "v0.8") {
|
|
21346
|
+
var legStreams = legacy(fs4);
|
|
21347
|
+
ReadStream = legStreams.ReadStream;
|
|
21348
|
+
WriteStream = legStreams.WriteStream;
|
|
21349
|
+
}
|
|
21350
|
+
var fs$ReadStream = fs4.ReadStream;
|
|
21351
|
+
if (fs$ReadStream) {
|
|
21352
|
+
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
21353
|
+
ReadStream.prototype.open = ReadStream$open;
|
|
21354
|
+
}
|
|
21355
|
+
var fs$WriteStream = fs4.WriteStream;
|
|
21356
|
+
if (fs$WriteStream) {
|
|
21357
|
+
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
21358
|
+
WriteStream.prototype.open = WriteStream$open;
|
|
21359
|
+
}
|
|
21360
|
+
Object.defineProperty(fs4, "ReadStream", {
|
|
21361
|
+
get: function() {
|
|
21362
|
+
return ReadStream;
|
|
21363
|
+
},
|
|
21364
|
+
set: function(val) {
|
|
21365
|
+
ReadStream = val;
|
|
21366
|
+
},
|
|
21367
|
+
enumerable: true,
|
|
21368
|
+
configurable: true
|
|
21369
|
+
});
|
|
21370
|
+
Object.defineProperty(fs4, "WriteStream", {
|
|
21371
|
+
get: function() {
|
|
21372
|
+
return WriteStream;
|
|
21373
|
+
},
|
|
21374
|
+
set: function(val) {
|
|
21375
|
+
WriteStream = val;
|
|
21376
|
+
},
|
|
21377
|
+
enumerable: true,
|
|
21378
|
+
configurable: true
|
|
21379
|
+
});
|
|
21380
|
+
var FileReadStream = ReadStream;
|
|
21381
|
+
Object.defineProperty(fs4, "FileReadStream", {
|
|
21382
|
+
get: function() {
|
|
21383
|
+
return FileReadStream;
|
|
21384
|
+
},
|
|
21385
|
+
set: function(val) {
|
|
21386
|
+
FileReadStream = val;
|
|
21387
|
+
},
|
|
21388
|
+
enumerable: true,
|
|
21389
|
+
configurable: true
|
|
21390
|
+
});
|
|
21391
|
+
var FileWriteStream = WriteStream;
|
|
21392
|
+
Object.defineProperty(fs4, "FileWriteStream", {
|
|
21393
|
+
get: function() {
|
|
21394
|
+
return FileWriteStream;
|
|
21395
|
+
},
|
|
21396
|
+
set: function(val) {
|
|
21397
|
+
FileWriteStream = val;
|
|
21398
|
+
},
|
|
21399
|
+
enumerable: true,
|
|
21400
|
+
configurable: true
|
|
21401
|
+
});
|
|
21402
|
+
function ReadStream(path4, options) {
|
|
21403
|
+
if (this instanceof ReadStream)
|
|
21404
|
+
return fs$ReadStream.apply(this, arguments), this;
|
|
21405
|
+
else
|
|
21406
|
+
return ReadStream.apply(Object.create(ReadStream.prototype), arguments);
|
|
21407
|
+
}
|
|
21408
|
+
function ReadStream$open() {
|
|
21409
|
+
var that = this;
|
|
21410
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
21411
|
+
if (err) {
|
|
21412
|
+
if (that.autoClose)
|
|
21413
|
+
that.destroy();
|
|
21414
|
+
that.emit("error", err);
|
|
21415
|
+
} else {
|
|
21416
|
+
that.fd = fd;
|
|
21417
|
+
that.emit("open", fd);
|
|
21418
|
+
that.read();
|
|
21419
|
+
}
|
|
21420
|
+
});
|
|
21421
|
+
}
|
|
21422
|
+
function WriteStream(path4, options) {
|
|
21423
|
+
if (this instanceof WriteStream)
|
|
21424
|
+
return fs$WriteStream.apply(this, arguments), this;
|
|
21425
|
+
else
|
|
21426
|
+
return WriteStream.apply(Object.create(WriteStream.prototype), arguments);
|
|
21427
|
+
}
|
|
21428
|
+
function WriteStream$open() {
|
|
21429
|
+
var that = this;
|
|
21430
|
+
open(that.path, that.flags, that.mode, function(err, fd) {
|
|
21431
|
+
if (err) {
|
|
21432
|
+
that.destroy();
|
|
21433
|
+
that.emit("error", err);
|
|
21434
|
+
} else {
|
|
21435
|
+
that.fd = fd;
|
|
21436
|
+
that.emit("open", fd);
|
|
21437
|
+
}
|
|
21438
|
+
});
|
|
21439
|
+
}
|
|
21440
|
+
function createReadStream(path4, options) {
|
|
21441
|
+
return new fs4.ReadStream(path4, options);
|
|
21442
|
+
}
|
|
21443
|
+
function createWriteStream2(path4, options) {
|
|
21444
|
+
return new fs4.WriteStream(path4, options);
|
|
21445
|
+
}
|
|
21446
|
+
var fs$open = fs4.open;
|
|
21447
|
+
fs4.open = open;
|
|
21448
|
+
function open(path4, flags, mode, cb) {
|
|
21449
|
+
if (typeof mode === "function")
|
|
21450
|
+
cb = mode, mode = null;
|
|
21451
|
+
return go$open(path4, flags, mode, cb);
|
|
21452
|
+
function go$open(path5, flags2, mode2, cb2, startTime) {
|
|
21453
|
+
return fs$open(path5, flags2, mode2, function(err, fd) {
|
|
21454
|
+
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
21455
|
+
enqueue([go$open, [path5, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
21456
|
+
else {
|
|
21457
|
+
if (typeof cb2 === "function")
|
|
21458
|
+
cb2.apply(this, arguments);
|
|
21459
|
+
}
|
|
21460
|
+
});
|
|
21461
|
+
}
|
|
21462
|
+
}
|
|
21463
|
+
return fs4;
|
|
21464
|
+
}
|
|
21465
|
+
function enqueue(elem) {
|
|
21466
|
+
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
21467
|
+
fs3[gracefulQueue].push(elem);
|
|
21468
|
+
retry();
|
|
21469
|
+
}
|
|
21470
|
+
var retryTimer;
|
|
21471
|
+
function resetQueue() {
|
|
21472
|
+
var now = Date.now();
|
|
21473
|
+
for (var i = 0; i < fs3[gracefulQueue].length; ++i) {
|
|
21474
|
+
if (fs3[gracefulQueue][i].length > 2) {
|
|
21475
|
+
fs3[gracefulQueue][i][3] = now;
|
|
21476
|
+
fs3[gracefulQueue][i][4] = now;
|
|
21477
|
+
}
|
|
21478
|
+
}
|
|
21479
|
+
retry();
|
|
21480
|
+
}
|
|
21481
|
+
function retry() {
|
|
21482
|
+
clearTimeout(retryTimer);
|
|
21483
|
+
retryTimer = void 0;
|
|
21484
|
+
if (fs3[gracefulQueue].length === 0)
|
|
21485
|
+
return;
|
|
21486
|
+
var elem = fs3[gracefulQueue].shift();
|
|
21487
|
+
var fn = elem[0];
|
|
21488
|
+
var args = elem[1];
|
|
21489
|
+
var err = elem[2];
|
|
21490
|
+
var startTime = elem[3];
|
|
21491
|
+
var lastTime = elem[4];
|
|
21492
|
+
if (startTime === void 0) {
|
|
21493
|
+
debug("RETRY", fn.name, args);
|
|
21494
|
+
fn.apply(null, args);
|
|
21495
|
+
} else if (Date.now() - startTime >= 6e4) {
|
|
21496
|
+
debug("TIMEOUT", fn.name, args);
|
|
21497
|
+
var cb = args.pop();
|
|
21498
|
+
if (typeof cb === "function")
|
|
21499
|
+
cb.call(null, err);
|
|
21500
|
+
} else {
|
|
21501
|
+
var sinceAttempt = Date.now() - lastTime;
|
|
21502
|
+
var sinceStart = Math.max(lastTime - startTime, 1);
|
|
21503
|
+
var desiredDelay = Math.min(sinceStart * 1.2, 100);
|
|
21504
|
+
if (sinceAttempt >= desiredDelay) {
|
|
21505
|
+
debug("RETRY", fn.name, args);
|
|
21506
|
+
fn.apply(null, args.concat([startTime]));
|
|
21507
|
+
} else {
|
|
21508
|
+
fs3[gracefulQueue].push(elem);
|
|
21509
|
+
}
|
|
21510
|
+
}
|
|
21511
|
+
if (retryTimer === void 0) {
|
|
21512
|
+
retryTimer = setTimeout(retry, 0);
|
|
21513
|
+
}
|
|
21514
|
+
}
|
|
21515
|
+
}
|
|
21516
|
+
});
|
|
21517
|
+
|
|
21518
|
+
// ../../node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js
|
|
21519
|
+
var require_retry_operation = __commonJS({
|
|
21520
|
+
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry_operation.js"(exports$1, module) {
|
|
21521
|
+
function RetryOperation(timeouts, options) {
|
|
21522
|
+
if (typeof options === "boolean") {
|
|
21523
|
+
options = { forever: options };
|
|
21524
|
+
}
|
|
21525
|
+
this._originalTimeouts = JSON.parse(JSON.stringify(timeouts));
|
|
21526
|
+
this._timeouts = timeouts;
|
|
21527
|
+
this._options = options || {};
|
|
21528
|
+
this._maxRetryTime = options && options.maxRetryTime || Infinity;
|
|
21529
|
+
this._fn = null;
|
|
21530
|
+
this._errors = [];
|
|
21531
|
+
this._attempts = 1;
|
|
21532
|
+
this._operationTimeout = null;
|
|
21533
|
+
this._operationTimeoutCb = null;
|
|
21534
|
+
this._timeout = null;
|
|
21535
|
+
this._operationStart = null;
|
|
21536
|
+
if (this._options.forever) {
|
|
21537
|
+
this._cachedTimeouts = this._timeouts.slice(0);
|
|
21538
|
+
}
|
|
21539
|
+
}
|
|
21540
|
+
module.exports = RetryOperation;
|
|
21541
|
+
RetryOperation.prototype.reset = function() {
|
|
21542
|
+
this._attempts = 1;
|
|
21543
|
+
this._timeouts = this._originalTimeouts;
|
|
21544
|
+
};
|
|
21545
|
+
RetryOperation.prototype.stop = function() {
|
|
21546
|
+
if (this._timeout) {
|
|
21547
|
+
clearTimeout(this._timeout);
|
|
21548
|
+
}
|
|
21549
|
+
this._timeouts = [];
|
|
21550
|
+
this._cachedTimeouts = null;
|
|
21551
|
+
};
|
|
21552
|
+
RetryOperation.prototype.retry = function(err) {
|
|
21553
|
+
if (this._timeout) {
|
|
21554
|
+
clearTimeout(this._timeout);
|
|
21555
|
+
}
|
|
21556
|
+
if (!err) {
|
|
21557
|
+
return false;
|
|
21558
|
+
}
|
|
21559
|
+
var currentTime = (/* @__PURE__ */ new Date()).getTime();
|
|
21560
|
+
if (err && currentTime - this._operationStart >= this._maxRetryTime) {
|
|
21561
|
+
this._errors.unshift(new Error("RetryOperation timeout occurred"));
|
|
21562
|
+
return false;
|
|
21563
|
+
}
|
|
21564
|
+
this._errors.push(err);
|
|
21565
|
+
var timeout = this._timeouts.shift();
|
|
21566
|
+
if (timeout === void 0) {
|
|
21567
|
+
if (this._cachedTimeouts) {
|
|
21568
|
+
this._errors.splice(this._errors.length - 1, this._errors.length);
|
|
21569
|
+
this._timeouts = this._cachedTimeouts.slice(0);
|
|
21570
|
+
timeout = this._timeouts.shift();
|
|
21571
|
+
} else {
|
|
21572
|
+
return false;
|
|
21573
|
+
}
|
|
21574
|
+
}
|
|
21575
|
+
var self = this;
|
|
21576
|
+
var timer = setTimeout(function() {
|
|
21577
|
+
self._attempts++;
|
|
21578
|
+
if (self._operationTimeoutCb) {
|
|
21579
|
+
self._timeout = setTimeout(function() {
|
|
21580
|
+
self._operationTimeoutCb(self._attempts);
|
|
21581
|
+
}, self._operationTimeout);
|
|
21582
|
+
if (self._options.unref) {
|
|
21583
|
+
self._timeout.unref();
|
|
21584
|
+
}
|
|
21585
|
+
}
|
|
21586
|
+
self._fn(self._attempts);
|
|
21587
|
+
}, timeout);
|
|
21588
|
+
if (this._options.unref) {
|
|
21589
|
+
timer.unref();
|
|
21590
|
+
}
|
|
21591
|
+
return true;
|
|
21592
|
+
};
|
|
21593
|
+
RetryOperation.prototype.attempt = function(fn, timeoutOps) {
|
|
21594
|
+
this._fn = fn;
|
|
21595
|
+
if (timeoutOps) {
|
|
21596
|
+
if (timeoutOps.timeout) {
|
|
21597
|
+
this._operationTimeout = timeoutOps.timeout;
|
|
21598
|
+
}
|
|
21599
|
+
if (timeoutOps.cb) {
|
|
21600
|
+
this._operationTimeoutCb = timeoutOps.cb;
|
|
21601
|
+
}
|
|
21602
|
+
}
|
|
21603
|
+
var self = this;
|
|
21604
|
+
if (this._operationTimeoutCb) {
|
|
21605
|
+
this._timeout = setTimeout(function() {
|
|
21606
|
+
self._operationTimeoutCb();
|
|
21607
|
+
}, self._operationTimeout);
|
|
21608
|
+
}
|
|
21609
|
+
this._operationStart = (/* @__PURE__ */ new Date()).getTime();
|
|
21610
|
+
this._fn(this._attempts);
|
|
21611
|
+
};
|
|
21612
|
+
RetryOperation.prototype.try = function(fn) {
|
|
21613
|
+
console.log("Using RetryOperation.try() is deprecated");
|
|
21614
|
+
this.attempt(fn);
|
|
21615
|
+
};
|
|
21616
|
+
RetryOperation.prototype.start = function(fn) {
|
|
21617
|
+
console.log("Using RetryOperation.start() is deprecated");
|
|
21618
|
+
this.attempt(fn);
|
|
21619
|
+
};
|
|
21620
|
+
RetryOperation.prototype.start = RetryOperation.prototype.try;
|
|
21621
|
+
RetryOperation.prototype.errors = function() {
|
|
21622
|
+
return this._errors;
|
|
21623
|
+
};
|
|
21624
|
+
RetryOperation.prototype.attempts = function() {
|
|
21625
|
+
return this._attempts;
|
|
21626
|
+
};
|
|
21627
|
+
RetryOperation.prototype.mainError = function() {
|
|
21628
|
+
if (this._errors.length === 0) {
|
|
21629
|
+
return null;
|
|
21630
|
+
}
|
|
21631
|
+
var counts = {};
|
|
21632
|
+
var mainError = null;
|
|
21633
|
+
var mainErrorCount = 0;
|
|
21634
|
+
for (var i = 0; i < this._errors.length; i++) {
|
|
21635
|
+
var error = this._errors[i];
|
|
21636
|
+
var message = error.message;
|
|
21637
|
+
var count = (counts[message] || 0) + 1;
|
|
21638
|
+
counts[message] = count;
|
|
21639
|
+
if (count >= mainErrorCount) {
|
|
21640
|
+
mainError = error;
|
|
21641
|
+
mainErrorCount = count;
|
|
21642
|
+
}
|
|
21643
|
+
}
|
|
21644
|
+
return mainError;
|
|
21645
|
+
};
|
|
21646
|
+
}
|
|
21647
|
+
});
|
|
21648
|
+
|
|
21649
|
+
// ../../node_modules/proper-lockfile/node_modules/retry/lib/retry.js
|
|
21650
|
+
var require_retry = __commonJS({
|
|
21651
|
+
"../../node_modules/proper-lockfile/node_modules/retry/lib/retry.js"(exports$1) {
|
|
21652
|
+
var RetryOperation = require_retry_operation();
|
|
21653
|
+
exports$1.operation = function(options) {
|
|
21654
|
+
var timeouts = exports$1.timeouts(options);
|
|
21655
|
+
return new RetryOperation(timeouts, {
|
|
21656
|
+
forever: options && options.forever,
|
|
21657
|
+
unref: options && options.unref,
|
|
21658
|
+
maxRetryTime: options && options.maxRetryTime
|
|
21659
|
+
});
|
|
21660
|
+
};
|
|
21661
|
+
exports$1.timeouts = function(options) {
|
|
21662
|
+
if (options instanceof Array) {
|
|
21663
|
+
return [].concat(options);
|
|
21664
|
+
}
|
|
21665
|
+
var opts = {
|
|
21666
|
+
retries: 10,
|
|
21667
|
+
factor: 2,
|
|
21668
|
+
minTimeout: 1 * 1e3,
|
|
21669
|
+
maxTimeout: Infinity,
|
|
21670
|
+
randomize: false
|
|
21671
|
+
};
|
|
21672
|
+
for (var key in options) {
|
|
21673
|
+
opts[key] = options[key];
|
|
21674
|
+
}
|
|
21675
|
+
if (opts.minTimeout > opts.maxTimeout) {
|
|
21676
|
+
throw new Error("minTimeout is greater than maxTimeout");
|
|
21677
|
+
}
|
|
21678
|
+
var timeouts = [];
|
|
21679
|
+
for (var i = 0; i < opts.retries; i++) {
|
|
21680
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
21681
|
+
}
|
|
21682
|
+
if (options && options.forever && !timeouts.length) {
|
|
21683
|
+
timeouts.push(this.createTimeout(i, opts));
|
|
21684
|
+
}
|
|
21685
|
+
timeouts.sort(function(a, b) {
|
|
21686
|
+
return a - b;
|
|
21687
|
+
});
|
|
21688
|
+
return timeouts;
|
|
21689
|
+
};
|
|
21690
|
+
exports$1.createTimeout = function(attempt, opts) {
|
|
21691
|
+
var random = opts.randomize ? Math.random() + 1 : 1;
|
|
21692
|
+
var timeout = Math.round(random * opts.minTimeout * Math.pow(opts.factor, attempt));
|
|
21693
|
+
timeout = Math.min(timeout, opts.maxTimeout);
|
|
21694
|
+
return timeout;
|
|
21695
|
+
};
|
|
21696
|
+
exports$1.wrap = function(obj, options, methods) {
|
|
21697
|
+
if (options instanceof Array) {
|
|
21698
|
+
methods = options;
|
|
21699
|
+
options = null;
|
|
21700
|
+
}
|
|
21701
|
+
if (!methods) {
|
|
21702
|
+
methods = [];
|
|
21703
|
+
for (var key in obj) {
|
|
21704
|
+
if (typeof obj[key] === "function") {
|
|
21705
|
+
methods.push(key);
|
|
21706
|
+
}
|
|
21707
|
+
}
|
|
21708
|
+
}
|
|
21709
|
+
for (var i = 0; i < methods.length; i++) {
|
|
21710
|
+
var method = methods[i];
|
|
21711
|
+
var original = obj[method];
|
|
21712
|
+
obj[method] = function retryWrapper(original2) {
|
|
21713
|
+
var op = exports$1.operation(options);
|
|
21714
|
+
var args = Array.prototype.slice.call(arguments, 1);
|
|
21715
|
+
var callback = args.pop();
|
|
21716
|
+
args.push(function(err) {
|
|
21717
|
+
if (op.retry(err)) {
|
|
21718
|
+
return;
|
|
21719
|
+
}
|
|
21720
|
+
if (err) {
|
|
21721
|
+
arguments[0] = op.mainError();
|
|
21722
|
+
}
|
|
21723
|
+
callback.apply(this, arguments);
|
|
21724
|
+
});
|
|
21725
|
+
op.attempt(function() {
|
|
21726
|
+
original2.apply(obj, args);
|
|
21727
|
+
});
|
|
21728
|
+
}.bind(obj, original);
|
|
21729
|
+
obj[method].options = options;
|
|
21730
|
+
}
|
|
21731
|
+
};
|
|
21732
|
+
}
|
|
21733
|
+
});
|
|
21734
|
+
|
|
21735
|
+
// ../../node_modules/proper-lockfile/node_modules/retry/index.js
|
|
21736
|
+
var require_retry2 = __commonJS({
|
|
21737
|
+
"../../node_modules/proper-lockfile/node_modules/retry/index.js"(exports$1, module) {
|
|
21738
|
+
module.exports = require_retry();
|
|
21739
|
+
}
|
|
21740
|
+
});
|
|
21741
|
+
|
|
21742
|
+
// ../../node_modules/signal-exit/signals.js
|
|
21743
|
+
var require_signals = __commonJS({
|
|
21744
|
+
"../../node_modules/signal-exit/signals.js"(exports$1, module) {
|
|
21745
|
+
module.exports = [
|
|
21746
|
+
"SIGABRT",
|
|
21747
|
+
"SIGALRM",
|
|
21748
|
+
"SIGHUP",
|
|
21749
|
+
"SIGINT",
|
|
21750
|
+
"SIGTERM"
|
|
21751
|
+
];
|
|
21752
|
+
if (process.platform !== "win32") {
|
|
21753
|
+
module.exports.push(
|
|
21754
|
+
"SIGVTALRM",
|
|
21755
|
+
"SIGXCPU",
|
|
21756
|
+
"SIGXFSZ",
|
|
21757
|
+
"SIGUSR2",
|
|
21758
|
+
"SIGTRAP",
|
|
21759
|
+
"SIGSYS",
|
|
21760
|
+
"SIGQUIT",
|
|
21761
|
+
"SIGIOT"
|
|
21762
|
+
// should detect profiler and enable/disable accordingly.
|
|
21763
|
+
// see #21
|
|
21764
|
+
// 'SIGPROF'
|
|
21765
|
+
);
|
|
21766
|
+
}
|
|
21767
|
+
if (process.platform === "linux") {
|
|
21768
|
+
module.exports.push(
|
|
21769
|
+
"SIGIO",
|
|
21770
|
+
"SIGPOLL",
|
|
21771
|
+
"SIGPWR",
|
|
21772
|
+
"SIGSTKFLT",
|
|
21773
|
+
"SIGUNUSED"
|
|
21774
|
+
);
|
|
21775
|
+
}
|
|
21776
|
+
}
|
|
21777
|
+
});
|
|
21778
|
+
|
|
21779
|
+
// ../../node_modules/signal-exit/index.js
|
|
21780
|
+
var require_signal_exit = __commonJS({
|
|
21781
|
+
"../../node_modules/signal-exit/index.js"(exports$1, module) {
|
|
21782
|
+
var process2 = global.process;
|
|
21783
|
+
var processOk = function(process3) {
|
|
21784
|
+
return process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
|
|
21785
|
+
};
|
|
21786
|
+
if (!processOk(process2)) {
|
|
21787
|
+
module.exports = function() {
|
|
21788
|
+
return function() {
|
|
21789
|
+
};
|
|
21790
|
+
};
|
|
21791
|
+
} else {
|
|
21792
|
+
assert = __require("assert");
|
|
21793
|
+
signals = require_signals();
|
|
21794
|
+
isWin = /^win/i.test(process2.platform);
|
|
21795
|
+
EE = __require("events");
|
|
21796
|
+
if (typeof EE !== "function") {
|
|
21797
|
+
EE = EE.EventEmitter;
|
|
21798
|
+
}
|
|
21799
|
+
if (process2.__signal_exit_emitter__) {
|
|
21800
|
+
emitter = process2.__signal_exit_emitter__;
|
|
21801
|
+
} else {
|
|
21802
|
+
emitter = process2.__signal_exit_emitter__ = new EE();
|
|
21803
|
+
emitter.count = 0;
|
|
21804
|
+
emitter.emitted = {};
|
|
21805
|
+
}
|
|
21806
|
+
if (!emitter.infinite) {
|
|
21807
|
+
emitter.setMaxListeners(Infinity);
|
|
21808
|
+
emitter.infinite = true;
|
|
21809
|
+
}
|
|
21810
|
+
module.exports = function(cb, opts) {
|
|
21811
|
+
if (!processOk(global.process)) {
|
|
21812
|
+
return function() {
|
|
21813
|
+
};
|
|
21814
|
+
}
|
|
21815
|
+
assert.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
21816
|
+
if (loaded === false) {
|
|
21817
|
+
load2();
|
|
21818
|
+
}
|
|
21819
|
+
var ev = "exit";
|
|
21820
|
+
if (opts && opts.alwaysLast) {
|
|
21821
|
+
ev = "afterexit";
|
|
21822
|
+
}
|
|
21823
|
+
var remove = function() {
|
|
21824
|
+
emitter.removeListener(ev, cb);
|
|
21825
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
21826
|
+
unload();
|
|
21827
|
+
}
|
|
21828
|
+
};
|
|
21829
|
+
emitter.on(ev, cb);
|
|
21830
|
+
return remove;
|
|
21831
|
+
};
|
|
21832
|
+
unload = function unload2() {
|
|
21833
|
+
if (!loaded || !processOk(global.process)) {
|
|
21834
|
+
return;
|
|
21835
|
+
}
|
|
21836
|
+
loaded = false;
|
|
21837
|
+
signals.forEach(function(sig) {
|
|
21838
|
+
try {
|
|
21839
|
+
process2.removeListener(sig, sigListeners[sig]);
|
|
21840
|
+
} catch (er) {
|
|
21841
|
+
}
|
|
21842
|
+
});
|
|
21843
|
+
process2.emit = originalProcessEmit;
|
|
21844
|
+
process2.reallyExit = originalProcessReallyExit;
|
|
21845
|
+
emitter.count -= 1;
|
|
21846
|
+
};
|
|
21847
|
+
module.exports.unload = unload;
|
|
21848
|
+
emit = function emit2(event, code, signal) {
|
|
21849
|
+
if (emitter.emitted[event]) {
|
|
21850
|
+
return;
|
|
21851
|
+
}
|
|
21852
|
+
emitter.emitted[event] = true;
|
|
21853
|
+
emitter.emit(event, code, signal);
|
|
21854
|
+
};
|
|
21855
|
+
sigListeners = {};
|
|
21856
|
+
signals.forEach(function(sig) {
|
|
21857
|
+
sigListeners[sig] = function listener() {
|
|
21858
|
+
if (!processOk(global.process)) {
|
|
21859
|
+
return;
|
|
21860
|
+
}
|
|
21861
|
+
var listeners = process2.listeners(sig);
|
|
21862
|
+
if (listeners.length === emitter.count) {
|
|
21863
|
+
unload();
|
|
21864
|
+
emit("exit", null, sig);
|
|
21865
|
+
emit("afterexit", null, sig);
|
|
21866
|
+
if (isWin && sig === "SIGHUP") {
|
|
21867
|
+
sig = "SIGINT";
|
|
21868
|
+
}
|
|
21869
|
+
process2.kill(process2.pid, sig);
|
|
21870
|
+
}
|
|
21871
|
+
};
|
|
21872
|
+
});
|
|
21873
|
+
module.exports.signals = function() {
|
|
21874
|
+
return signals;
|
|
21875
|
+
};
|
|
21876
|
+
loaded = false;
|
|
21877
|
+
load2 = function load3() {
|
|
21878
|
+
if (loaded || !processOk(global.process)) {
|
|
21879
|
+
return;
|
|
21880
|
+
}
|
|
21881
|
+
loaded = true;
|
|
21882
|
+
emitter.count += 1;
|
|
21883
|
+
signals = signals.filter(function(sig) {
|
|
21884
|
+
try {
|
|
21885
|
+
process2.on(sig, sigListeners[sig]);
|
|
21886
|
+
return true;
|
|
21887
|
+
} catch (er) {
|
|
21888
|
+
return false;
|
|
21889
|
+
}
|
|
21890
|
+
});
|
|
21891
|
+
process2.emit = processEmit;
|
|
21892
|
+
process2.reallyExit = processReallyExit;
|
|
21893
|
+
};
|
|
21894
|
+
module.exports.load = load2;
|
|
21895
|
+
originalProcessReallyExit = process2.reallyExit;
|
|
21896
|
+
processReallyExit = function processReallyExit2(code) {
|
|
21897
|
+
if (!processOk(global.process)) {
|
|
21898
|
+
return;
|
|
21899
|
+
}
|
|
21900
|
+
process2.exitCode = code || /* istanbul ignore next */
|
|
21901
|
+
0;
|
|
21902
|
+
emit("exit", process2.exitCode, null);
|
|
21903
|
+
emit("afterexit", process2.exitCode, null);
|
|
21904
|
+
originalProcessReallyExit.call(process2, process2.exitCode);
|
|
21905
|
+
};
|
|
21906
|
+
originalProcessEmit = process2.emit;
|
|
21907
|
+
processEmit = function processEmit2(ev, arg) {
|
|
21908
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
21909
|
+
if (arg !== void 0) {
|
|
21910
|
+
process2.exitCode = arg;
|
|
21911
|
+
}
|
|
21912
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
|
21913
|
+
emit("exit", process2.exitCode, null);
|
|
21914
|
+
emit("afterexit", process2.exitCode, null);
|
|
21915
|
+
return ret;
|
|
21916
|
+
} else {
|
|
21917
|
+
return originalProcessEmit.apply(this, arguments);
|
|
21918
|
+
}
|
|
21919
|
+
};
|
|
21920
|
+
}
|
|
21921
|
+
var assert;
|
|
21922
|
+
var signals;
|
|
21923
|
+
var isWin;
|
|
21924
|
+
var EE;
|
|
21925
|
+
var emitter;
|
|
21926
|
+
var unload;
|
|
21927
|
+
var emit;
|
|
21928
|
+
var sigListeners;
|
|
21929
|
+
var loaded;
|
|
21930
|
+
var load2;
|
|
21931
|
+
var originalProcessReallyExit;
|
|
21932
|
+
var processReallyExit;
|
|
21933
|
+
var originalProcessEmit;
|
|
21934
|
+
var processEmit;
|
|
21935
|
+
}
|
|
21936
|
+
});
|
|
21937
|
+
|
|
21938
|
+
// ../../node_modules/proper-lockfile/lib/mtime-precision.js
|
|
21939
|
+
var require_mtime_precision = __commonJS({
|
|
21940
|
+
"../../node_modules/proper-lockfile/lib/mtime-precision.js"(exports$1, module) {
|
|
21941
|
+
var cacheSymbol = /* @__PURE__ */ Symbol();
|
|
21942
|
+
function probe(file, fs3, callback) {
|
|
21943
|
+
const cachedPrecision = fs3[cacheSymbol];
|
|
21944
|
+
if (cachedPrecision) {
|
|
21945
|
+
return fs3.stat(file, (err, stat) => {
|
|
21946
|
+
if (err) {
|
|
21947
|
+
return callback(err);
|
|
21948
|
+
}
|
|
21949
|
+
callback(null, stat.mtime, cachedPrecision);
|
|
21950
|
+
});
|
|
21951
|
+
}
|
|
21952
|
+
const mtime = new Date(Math.ceil(Date.now() / 1e3) * 1e3 + 5);
|
|
21953
|
+
fs3.utimes(file, mtime, mtime, (err) => {
|
|
21954
|
+
if (err) {
|
|
21955
|
+
return callback(err);
|
|
21956
|
+
}
|
|
21957
|
+
fs3.stat(file, (err2, stat) => {
|
|
21958
|
+
if (err2) {
|
|
21959
|
+
return callback(err2);
|
|
21960
|
+
}
|
|
21961
|
+
const precision = stat.mtime.getTime() % 1e3 === 0 ? "s" : "ms";
|
|
21962
|
+
Object.defineProperty(fs3, cacheSymbol, { value: precision });
|
|
21963
|
+
callback(null, stat.mtime, precision);
|
|
21964
|
+
});
|
|
21965
|
+
});
|
|
21966
|
+
}
|
|
21967
|
+
function getMtime(precision) {
|
|
21968
|
+
let now = Date.now();
|
|
21969
|
+
if (precision === "s") {
|
|
21970
|
+
now = Math.ceil(now / 1e3) * 1e3;
|
|
21971
|
+
}
|
|
21972
|
+
return new Date(now);
|
|
21973
|
+
}
|
|
21974
|
+
module.exports.probe = probe;
|
|
21975
|
+
module.exports.getMtime = getMtime;
|
|
21976
|
+
}
|
|
21977
|
+
});
|
|
21978
|
+
|
|
21979
|
+
// ../../node_modules/proper-lockfile/lib/lockfile.js
|
|
21980
|
+
var require_lockfile = __commonJS({
|
|
21981
|
+
"../../node_modules/proper-lockfile/lib/lockfile.js"(exports$1, module) {
|
|
21982
|
+
var path4 = __require("path");
|
|
21983
|
+
var fs3 = require_graceful_fs();
|
|
21984
|
+
var retry = require_retry2();
|
|
21985
|
+
var onExit = require_signal_exit();
|
|
21986
|
+
var mtimePrecision = require_mtime_precision();
|
|
21987
|
+
var locks = {};
|
|
21988
|
+
function getLockFile(file, options) {
|
|
21989
|
+
return options.lockfilePath || `${file}.lock`;
|
|
21990
|
+
}
|
|
21991
|
+
function resolveCanonicalPath(file, options, callback) {
|
|
21992
|
+
if (!options.realpath) {
|
|
21993
|
+
return callback(null, path4.resolve(file));
|
|
21994
|
+
}
|
|
21995
|
+
options.fs.realpath(file, callback);
|
|
21996
|
+
}
|
|
21997
|
+
function acquireLock(file, options, callback) {
|
|
21998
|
+
const lockfilePath = getLockFile(file, options);
|
|
21999
|
+
options.fs.mkdir(lockfilePath, (err) => {
|
|
22000
|
+
if (!err) {
|
|
22001
|
+
return mtimePrecision.probe(lockfilePath, options.fs, (err2, mtime, mtimePrecision2) => {
|
|
22002
|
+
if (err2) {
|
|
22003
|
+
options.fs.rmdir(lockfilePath, () => {
|
|
22004
|
+
});
|
|
22005
|
+
return callback(err2);
|
|
22006
|
+
}
|
|
22007
|
+
callback(null, mtime, mtimePrecision2);
|
|
22008
|
+
});
|
|
22009
|
+
}
|
|
22010
|
+
if (err.code !== "EEXIST") {
|
|
22011
|
+
return callback(err);
|
|
22012
|
+
}
|
|
22013
|
+
if (options.stale <= 0) {
|
|
22014
|
+
return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
|
|
22015
|
+
}
|
|
22016
|
+
options.fs.stat(lockfilePath, (err2, stat) => {
|
|
22017
|
+
if (err2) {
|
|
22018
|
+
if (err2.code === "ENOENT") {
|
|
22019
|
+
return acquireLock(file, { ...options, stale: 0 }, callback);
|
|
22020
|
+
}
|
|
22021
|
+
return callback(err2);
|
|
22022
|
+
}
|
|
22023
|
+
if (!isLockStale(stat, options)) {
|
|
22024
|
+
return callback(Object.assign(new Error("Lock file is already being held"), { code: "ELOCKED", file }));
|
|
22025
|
+
}
|
|
22026
|
+
removeLock(file, options, (err3) => {
|
|
22027
|
+
if (err3) {
|
|
22028
|
+
return callback(err3);
|
|
22029
|
+
}
|
|
22030
|
+
acquireLock(file, { ...options, stale: 0 }, callback);
|
|
22031
|
+
});
|
|
22032
|
+
});
|
|
22033
|
+
});
|
|
22034
|
+
}
|
|
22035
|
+
function isLockStale(stat, options) {
|
|
22036
|
+
return stat.mtime.getTime() < Date.now() - options.stale;
|
|
22037
|
+
}
|
|
22038
|
+
function removeLock(file, options, callback) {
|
|
22039
|
+
options.fs.rmdir(getLockFile(file, options), (err) => {
|
|
22040
|
+
if (err && err.code !== "ENOENT") {
|
|
22041
|
+
return callback(err);
|
|
22042
|
+
}
|
|
22043
|
+
callback();
|
|
22044
|
+
});
|
|
22045
|
+
}
|
|
22046
|
+
function updateLock(file, options) {
|
|
22047
|
+
const lock2 = locks[file];
|
|
22048
|
+
if (lock2.updateTimeout) {
|
|
22049
|
+
return;
|
|
22050
|
+
}
|
|
22051
|
+
lock2.updateDelay = lock2.updateDelay || options.update;
|
|
22052
|
+
lock2.updateTimeout = setTimeout(() => {
|
|
22053
|
+
lock2.updateTimeout = null;
|
|
22054
|
+
options.fs.stat(lock2.lockfilePath, (err, stat) => {
|
|
22055
|
+
const isOverThreshold = lock2.lastUpdate + options.stale < Date.now();
|
|
22056
|
+
if (err) {
|
|
22057
|
+
if (err.code === "ENOENT" || isOverThreshold) {
|
|
22058
|
+
return setLockAsCompromised(file, lock2, Object.assign(err, { code: "ECOMPROMISED" }));
|
|
22059
|
+
}
|
|
22060
|
+
lock2.updateDelay = 1e3;
|
|
22061
|
+
return updateLock(file, options);
|
|
22062
|
+
}
|
|
22063
|
+
const isMtimeOurs = lock2.mtime.getTime() === stat.mtime.getTime();
|
|
22064
|
+
if (!isMtimeOurs) {
|
|
22065
|
+
return setLockAsCompromised(
|
|
22066
|
+
file,
|
|
22067
|
+
lock2,
|
|
22068
|
+
Object.assign(
|
|
22069
|
+
new Error("Unable to update lock within the stale threshold"),
|
|
22070
|
+
{ code: "ECOMPROMISED" }
|
|
22071
|
+
)
|
|
22072
|
+
);
|
|
22073
|
+
}
|
|
22074
|
+
const mtime = mtimePrecision.getMtime(lock2.mtimePrecision);
|
|
22075
|
+
options.fs.utimes(lock2.lockfilePath, mtime, mtime, (err2) => {
|
|
22076
|
+
const isOverThreshold2 = lock2.lastUpdate + options.stale < Date.now();
|
|
22077
|
+
if (lock2.released) {
|
|
22078
|
+
return;
|
|
22079
|
+
}
|
|
22080
|
+
if (err2) {
|
|
22081
|
+
if (err2.code === "ENOENT" || isOverThreshold2) {
|
|
22082
|
+
return setLockAsCompromised(file, lock2, Object.assign(err2, { code: "ECOMPROMISED" }));
|
|
22083
|
+
}
|
|
22084
|
+
lock2.updateDelay = 1e3;
|
|
22085
|
+
return updateLock(file, options);
|
|
22086
|
+
}
|
|
22087
|
+
lock2.mtime = mtime;
|
|
22088
|
+
lock2.lastUpdate = Date.now();
|
|
22089
|
+
lock2.updateDelay = null;
|
|
22090
|
+
updateLock(file, options);
|
|
22091
|
+
});
|
|
22092
|
+
});
|
|
22093
|
+
}, lock2.updateDelay);
|
|
22094
|
+
if (lock2.updateTimeout.unref) {
|
|
22095
|
+
lock2.updateTimeout.unref();
|
|
22096
|
+
}
|
|
22097
|
+
}
|
|
22098
|
+
function setLockAsCompromised(file, lock2, err) {
|
|
22099
|
+
lock2.released = true;
|
|
22100
|
+
if (lock2.updateTimeout) {
|
|
22101
|
+
clearTimeout(lock2.updateTimeout);
|
|
22102
|
+
}
|
|
22103
|
+
if (locks[file] === lock2) {
|
|
22104
|
+
delete locks[file];
|
|
22105
|
+
}
|
|
22106
|
+
lock2.options.onCompromised(err);
|
|
22107
|
+
}
|
|
22108
|
+
function lock(file, options, callback) {
|
|
22109
|
+
options = {
|
|
22110
|
+
stale: 1e4,
|
|
22111
|
+
update: null,
|
|
22112
|
+
realpath: true,
|
|
22113
|
+
retries: 0,
|
|
22114
|
+
fs: fs3,
|
|
22115
|
+
onCompromised: (err) => {
|
|
22116
|
+
throw err;
|
|
22117
|
+
},
|
|
22118
|
+
...options
|
|
22119
|
+
};
|
|
22120
|
+
options.retries = options.retries || 0;
|
|
22121
|
+
options.retries = typeof options.retries === "number" ? { retries: options.retries } : options.retries;
|
|
22122
|
+
options.stale = Math.max(options.stale || 0, 2e3);
|
|
22123
|
+
options.update = options.update == null ? options.stale / 2 : options.update || 0;
|
|
22124
|
+
options.update = Math.max(Math.min(options.update, options.stale / 2), 1e3);
|
|
22125
|
+
resolveCanonicalPath(file, options, (err, file2) => {
|
|
22126
|
+
if (err) {
|
|
22127
|
+
return callback(err);
|
|
22128
|
+
}
|
|
22129
|
+
const operation = retry.operation(options.retries);
|
|
22130
|
+
operation.attempt(() => {
|
|
22131
|
+
acquireLock(file2, options, (err2, mtime, mtimePrecision2) => {
|
|
22132
|
+
if (operation.retry(err2)) {
|
|
22133
|
+
return;
|
|
22134
|
+
}
|
|
22135
|
+
if (err2) {
|
|
22136
|
+
return callback(operation.mainError());
|
|
22137
|
+
}
|
|
22138
|
+
const lock2 = locks[file2] = {
|
|
22139
|
+
lockfilePath: getLockFile(file2, options),
|
|
22140
|
+
mtime,
|
|
22141
|
+
mtimePrecision: mtimePrecision2,
|
|
22142
|
+
options,
|
|
22143
|
+
lastUpdate: Date.now()
|
|
22144
|
+
};
|
|
22145
|
+
updateLock(file2, options);
|
|
22146
|
+
callback(null, (releasedCallback) => {
|
|
22147
|
+
if (lock2.released) {
|
|
22148
|
+
return releasedCallback && releasedCallback(Object.assign(new Error("Lock is already released"), { code: "ERELEASED" }));
|
|
22149
|
+
}
|
|
22150
|
+
unlock(file2, { ...options, realpath: false }, releasedCallback);
|
|
22151
|
+
});
|
|
22152
|
+
});
|
|
22153
|
+
});
|
|
22154
|
+
});
|
|
22155
|
+
}
|
|
22156
|
+
function unlock(file, options, callback) {
|
|
22157
|
+
options = {
|
|
22158
|
+
fs: fs3,
|
|
22159
|
+
realpath: true,
|
|
22160
|
+
...options
|
|
22161
|
+
};
|
|
22162
|
+
resolveCanonicalPath(file, options, (err, file2) => {
|
|
22163
|
+
if (err) {
|
|
22164
|
+
return callback(err);
|
|
22165
|
+
}
|
|
22166
|
+
const lock2 = locks[file2];
|
|
22167
|
+
if (!lock2) {
|
|
22168
|
+
return callback(Object.assign(new Error("Lock is not acquired/owned by you"), { code: "ENOTACQUIRED" }));
|
|
22169
|
+
}
|
|
22170
|
+
lock2.updateTimeout && clearTimeout(lock2.updateTimeout);
|
|
22171
|
+
lock2.released = true;
|
|
22172
|
+
delete locks[file2];
|
|
22173
|
+
removeLock(file2, options, callback);
|
|
22174
|
+
});
|
|
22175
|
+
}
|
|
22176
|
+
function check(file, options, callback) {
|
|
22177
|
+
options = {
|
|
22178
|
+
stale: 1e4,
|
|
22179
|
+
realpath: true,
|
|
22180
|
+
fs: fs3,
|
|
22181
|
+
...options
|
|
22182
|
+
};
|
|
22183
|
+
options.stale = Math.max(options.stale || 0, 2e3);
|
|
22184
|
+
resolveCanonicalPath(file, options, (err, file2) => {
|
|
22185
|
+
if (err) {
|
|
22186
|
+
return callback(err);
|
|
22187
|
+
}
|
|
22188
|
+
options.fs.stat(getLockFile(file2, options), (err2, stat) => {
|
|
22189
|
+
if (err2) {
|
|
22190
|
+
return err2.code === "ENOENT" ? callback(null, false) : callback(err2);
|
|
22191
|
+
}
|
|
22192
|
+
return callback(null, !isLockStale(stat, options));
|
|
22193
|
+
});
|
|
22194
|
+
});
|
|
22195
|
+
}
|
|
22196
|
+
function getLocks() {
|
|
22197
|
+
return locks;
|
|
22198
|
+
}
|
|
22199
|
+
onExit(() => {
|
|
22200
|
+
for (const file in locks) {
|
|
22201
|
+
const options = locks[file].options;
|
|
22202
|
+
try {
|
|
22203
|
+
options.fs.rmdirSync(getLockFile(file, options));
|
|
22204
|
+
} catch (e) {
|
|
22205
|
+
}
|
|
22206
|
+
}
|
|
22207
|
+
});
|
|
22208
|
+
module.exports.lock = lock;
|
|
22209
|
+
module.exports.unlock = unlock;
|
|
22210
|
+
module.exports.check = check;
|
|
22211
|
+
module.exports.getLocks = getLocks;
|
|
22212
|
+
}
|
|
22213
|
+
});
|
|
22214
|
+
|
|
22215
|
+
// ../../node_modules/proper-lockfile/lib/adapter.js
|
|
22216
|
+
var require_adapter = __commonJS({
|
|
22217
|
+
"../../node_modules/proper-lockfile/lib/adapter.js"(exports$1, module) {
|
|
22218
|
+
var fs3 = require_graceful_fs();
|
|
22219
|
+
function createSyncFs(fs4) {
|
|
22220
|
+
const methods = ["mkdir", "realpath", "stat", "rmdir", "utimes"];
|
|
22221
|
+
const newFs = { ...fs4 };
|
|
22222
|
+
methods.forEach((method) => {
|
|
22223
|
+
newFs[method] = (...args) => {
|
|
22224
|
+
const callback = args.pop();
|
|
22225
|
+
let ret;
|
|
22226
|
+
try {
|
|
22227
|
+
ret = fs4[`${method}Sync`](...args);
|
|
22228
|
+
} catch (err) {
|
|
22229
|
+
return callback(err);
|
|
22230
|
+
}
|
|
22231
|
+
callback(null, ret);
|
|
22232
|
+
};
|
|
22233
|
+
});
|
|
22234
|
+
return newFs;
|
|
22235
|
+
}
|
|
22236
|
+
function toPromise(method) {
|
|
22237
|
+
return (...args) => new Promise((resolve3, reject) => {
|
|
22238
|
+
args.push((err, result2) => {
|
|
22239
|
+
if (err) {
|
|
22240
|
+
reject(err);
|
|
22241
|
+
} else {
|
|
22242
|
+
resolve3(result2);
|
|
22243
|
+
}
|
|
22244
|
+
});
|
|
22245
|
+
method(...args);
|
|
22246
|
+
});
|
|
22247
|
+
}
|
|
22248
|
+
function toSync(method) {
|
|
22249
|
+
return (...args) => {
|
|
22250
|
+
let err;
|
|
22251
|
+
let result2;
|
|
22252
|
+
args.push((_err, _result) => {
|
|
22253
|
+
err = _err;
|
|
22254
|
+
result2 = _result;
|
|
22255
|
+
});
|
|
22256
|
+
method(...args);
|
|
22257
|
+
if (err) {
|
|
22258
|
+
throw err;
|
|
22259
|
+
}
|
|
22260
|
+
return result2;
|
|
22261
|
+
};
|
|
22262
|
+
}
|
|
22263
|
+
function toSyncOptions(options) {
|
|
22264
|
+
options = { ...options };
|
|
22265
|
+
options.fs = createSyncFs(options.fs || fs3);
|
|
22266
|
+
if (typeof options.retries === "number" && options.retries > 0 || options.retries && typeof options.retries.retries === "number" && options.retries.retries > 0) {
|
|
22267
|
+
throw Object.assign(new Error("Cannot use retries with the sync api"), { code: "ESYNC" });
|
|
22268
|
+
}
|
|
22269
|
+
return options;
|
|
22270
|
+
}
|
|
22271
|
+
module.exports = {
|
|
22272
|
+
toPromise,
|
|
22273
|
+
toSync,
|
|
22274
|
+
toSyncOptions
|
|
22275
|
+
};
|
|
22276
|
+
}
|
|
22277
|
+
});
|
|
22278
|
+
|
|
22279
|
+
// ../../node_modules/proper-lockfile/index.js
|
|
22280
|
+
var require_proper_lockfile = __commonJS({
|
|
22281
|
+
"../../node_modules/proper-lockfile/index.js"(exports$1, module) {
|
|
22282
|
+
var lockfile2 = require_lockfile();
|
|
22283
|
+
var { toPromise, toSync, toSyncOptions } = require_adapter();
|
|
22284
|
+
async function lock(file, options) {
|
|
22285
|
+
const release = await toPromise(lockfile2.lock)(file, options);
|
|
22286
|
+
return toPromise(release);
|
|
22287
|
+
}
|
|
22288
|
+
function lockSync(file, options) {
|
|
22289
|
+
const release = toSync(lockfile2.lock)(file, toSyncOptions(options));
|
|
22290
|
+
return toSync(release);
|
|
22291
|
+
}
|
|
22292
|
+
function unlock(file, options) {
|
|
22293
|
+
return toPromise(lockfile2.unlock)(file, options);
|
|
22294
|
+
}
|
|
22295
|
+
function unlockSync(file, options) {
|
|
22296
|
+
return toSync(lockfile2.unlock)(file, toSyncOptions(options));
|
|
22297
|
+
}
|
|
22298
|
+
function check(file, options) {
|
|
22299
|
+
return toPromise(lockfile2.check)(file, options);
|
|
22300
|
+
}
|
|
22301
|
+
function checkSync(file, options) {
|
|
22302
|
+
return toSync(lockfile2.check)(file, toSyncOptions(options));
|
|
22303
|
+
}
|
|
22304
|
+
module.exports = lock;
|
|
22305
|
+
module.exports.lock = lock;
|
|
22306
|
+
module.exports.unlock = unlock;
|
|
22307
|
+
module.exports.lockSync = lockSync;
|
|
22308
|
+
module.exports.unlockSync = unlockSync;
|
|
22309
|
+
module.exports.check = check;
|
|
22310
|
+
module.exports.checkSync = checkSync;
|
|
22311
|
+
}
|
|
22312
|
+
});
|
|
22313
|
+
|
|
22314
|
+
// package.json
|
|
22315
|
+
var package_default;
|
|
22316
|
+
var init_package = __esm({
|
|
22317
|
+
"package.json"() {
|
|
22318
|
+
package_default = {
|
|
22319
|
+
name: "@gravity-rail/cli",
|
|
22320
|
+
version: "0.55.1",
|
|
22321
|
+
description: "Gravity Rail CLI \u2014 manage workspaces from the command line",
|
|
22322
|
+
type: "module",
|
|
22323
|
+
bin: {
|
|
22324
|
+
gr: "./dist/gr.js"
|
|
22325
|
+
},
|
|
22326
|
+
exports: {
|
|
22327
|
+
".": {
|
|
22328
|
+
types: "./dist/lib.d.ts",
|
|
22329
|
+
import: "./dist/lib.js"
|
|
22330
|
+
},
|
|
22331
|
+
"./lib": {
|
|
22332
|
+
types: "./dist/lib.d.ts",
|
|
22333
|
+
import: "./dist/lib.js"
|
|
22334
|
+
},
|
|
22335
|
+
"./cli-utils": {
|
|
22336
|
+
types: "./dist/cli-utils.d.ts",
|
|
22337
|
+
import: "./dist/cli-utils.js"
|
|
22338
|
+
}
|
|
22339
|
+
},
|
|
22340
|
+
files: [
|
|
22341
|
+
"dist"
|
|
22342
|
+
],
|
|
22343
|
+
license: "MIT",
|
|
22344
|
+
repository: {
|
|
22345
|
+
type: "git",
|
|
22346
|
+
url: "https://developer.gravityrail.com"
|
|
22347
|
+
},
|
|
22348
|
+
homepage: "https://developer.gravityrail.com",
|
|
22349
|
+
keywords: [
|
|
22350
|
+
"gravity-rail",
|
|
22351
|
+
"cli",
|
|
22352
|
+
"healthcare",
|
|
22353
|
+
"workspace"
|
|
22354
|
+
],
|
|
22355
|
+
engines: {
|
|
22356
|
+
node: ">=18"
|
|
22357
|
+
},
|
|
22358
|
+
scripts: {
|
|
22359
|
+
build: "tsup",
|
|
22360
|
+
"generate:skill-docs": "tsx scripts/generate-skill-docs.ts",
|
|
22361
|
+
clean: "rm -rf dist",
|
|
22362
|
+
typecheck: "tsc --noEmit",
|
|
22363
|
+
test: "jest --forceExit",
|
|
22364
|
+
"test:ci": "jest --forceExit --passWithNoTests --coverage --coverageReporters=json-summary --coverageReporters=text-summary"
|
|
22365
|
+
},
|
|
22366
|
+
dependencies: {
|
|
22367
|
+
"@gravity-rail/sdk": "workspace:^",
|
|
22368
|
+
"js-yaml": "^5.4.3",
|
|
22369
|
+
"proper-lockfile": "^4.1.2"
|
|
22370
|
+
},
|
|
22371
|
+
devDependencies: {
|
|
22372
|
+
"@gravity-rail/sandbox": "workspace:*",
|
|
22373
|
+
"@types/jest": "^30.0.0",
|
|
22374
|
+
"@types/node": "^26.6.5",
|
|
22375
|
+
"@types/proper-lockfile": "^4.1.4",
|
|
22376
|
+
jest: "^30.5.2",
|
|
22377
|
+
"ts-jest": "29.4.9",
|
|
22378
|
+
tsup: "^8.5.1",
|
|
22379
|
+
typescript: "^6.0.3",
|
|
22380
|
+
undici: "6.28.1"
|
|
22381
|
+
}
|
|
22382
|
+
};
|
|
22383
|
+
}
|
|
22384
|
+
});
|
|
20382
22385
|
var DEFAULT_PROFILE, CredentialsManager;
|
|
20383
22386
|
var init_credentials_manager = __esm({
|
|
20384
22387
|
"src/cli-utils/credentials-manager.ts"() {
|
|
@@ -20743,7 +22746,7 @@ function validateTokenResponse(tokenData) {
|
|
|
20743
22746
|
if (tokenData.expires_in != null) {
|
|
20744
22747
|
const raw = Number(tokenData.expires_in);
|
|
20745
22748
|
if (!Number.isFinite(raw) || raw < 60 || raw > 31536e3) {
|
|
20746
|
-
stderr(
|
|
22749
|
+
stderr(" Warning: unusual expires_in value in the token response, using default");
|
|
20747
22750
|
} else {
|
|
20748
22751
|
expiresIn = raw;
|
|
20749
22752
|
}
|
|
@@ -20963,7 +22966,8 @@ async function performOAuthFlow(options) {
|
|
|
20963
22966
|
method: "POST",
|
|
20964
22967
|
headers: {
|
|
20965
22968
|
...auth.headers,
|
|
20966
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
22969
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
22970
|
+
"User-Agent": TOKEN_REQUEST_USER_AGENT
|
|
20967
22971
|
},
|
|
20968
22972
|
body: new URLSearchParams({
|
|
20969
22973
|
grant_type: "authorization_code",
|
|
@@ -21000,53 +23004,150 @@ async function performOAuthFlow(options) {
|
|
|
21000
23004
|
return { accessToken, credentials: creds };
|
|
21001
23005
|
}
|
|
21002
23006
|
}
|
|
21003
|
-
|
|
21004
|
-
|
|
23007
|
+
function parseOAuthErrorCode(body) {
|
|
23008
|
+
try {
|
|
23009
|
+
const parsed = JSON.parse(body);
|
|
23010
|
+
if (parsed && typeof parsed === "object") {
|
|
23011
|
+
const code = parsed.error;
|
|
23012
|
+
if (typeof code === "string") return code;
|
|
23013
|
+
}
|
|
23014
|
+
} catch {
|
|
23015
|
+
}
|
|
23016
|
+
return void 0;
|
|
23017
|
+
}
|
|
23018
|
+
function isFreshEnough(creds) {
|
|
23019
|
+
return !creds.expiresAt || new Date(creds.expiresAt).getTime() > Date.now() + ACCESS_TOKEN_EXPIRY_BUFFER_MS;
|
|
23020
|
+
}
|
|
23021
|
+
async function acquireRefreshLock(credentialsPath) {
|
|
23022
|
+
try {
|
|
23023
|
+
const cacheDir = dirname$1(credentialsPath);
|
|
23024
|
+
if (!existsSync(cacheDir)) {
|
|
23025
|
+
mkdirSync(cacheDir, { recursive: true, mode: 448 });
|
|
23026
|
+
}
|
|
23027
|
+
return await import_proper_lockfile.default.lock(credentialsPath, {
|
|
23028
|
+
realpath: false,
|
|
23029
|
+
retries: REFRESH_LOCK_RETRIES,
|
|
23030
|
+
// The library default throws from a timer, which would crash the
|
|
23031
|
+
// command. Losing the lock mid-refresh is worth a warning, not that.
|
|
23032
|
+
// The library has already dropped its in-process record of the lock
|
|
23033
|
+
// by the time this runs, so the `release()` in `refreshAccessToken`'s
|
|
23034
|
+
// `finally` is refused (ENOTACQUIRED) and can never remove a lock
|
|
23035
|
+
// another process has since taken.
|
|
23036
|
+
onCompromised: () => {
|
|
23037
|
+
stderr(
|
|
23038
|
+
" Warning: lost the credential refresh lock; another gr process may refresh at the same time"
|
|
23039
|
+
);
|
|
23040
|
+
}
|
|
23041
|
+
});
|
|
23042
|
+
} catch {
|
|
23043
|
+
throw new Error(REFRESH_LOCK_FAILED);
|
|
23044
|
+
}
|
|
23045
|
+
}
|
|
23046
|
+
async function refreshAccessToken(envConfig, _creds, credentialsManager, env, profile) {
|
|
23047
|
+
const profileName = credentialsManager.resolveProfileName(profile, env);
|
|
23048
|
+
const release = await acquireRefreshLock(credentialsManager.getCredentialsFilePath(env));
|
|
23049
|
+
try {
|
|
23050
|
+
return await refreshUnderLock(envConfig, credentialsManager, env, profileName);
|
|
23051
|
+
} finally {
|
|
23052
|
+
await release().catch(() => void 0);
|
|
23053
|
+
}
|
|
23054
|
+
}
|
|
23055
|
+
async function refreshUnderLock(envConfig, credentialsManager, env, profileName) {
|
|
23056
|
+
const stored = credentialsManager.load(env, profileName);
|
|
23057
|
+
if (stored?.accessToken && isFreshEnough(stored)) {
|
|
23058
|
+
return stored;
|
|
23059
|
+
}
|
|
23060
|
+
if (!stored?.refreshToken || !stored.clientId) {
|
|
21005
23061
|
stderr(" Cannot refresh: missing credentials (re-login required)");
|
|
21006
23062
|
return null;
|
|
21007
23063
|
}
|
|
21008
|
-
const
|
|
21009
|
-
const
|
|
21010
|
-
|
|
23064
|
+
const presentedRefreshToken = stored.refreshToken;
|
|
23065
|
+
const auth = tokenRequestAuth(stored.clientId, stored.clientSecret);
|
|
23066
|
+
let response;
|
|
21011
23067
|
try {
|
|
21012
|
-
|
|
23068
|
+
response = await fetch(`${envConfig.apiUrl}/api/v2/oauth/token`, {
|
|
21013
23069
|
method: "POST",
|
|
21014
23070
|
headers: {
|
|
21015
23071
|
...auth.headers,
|
|
21016
|
-
"Content-Type": "application/x-www-form-urlencoded"
|
|
23072
|
+
"Content-Type": "application/x-www-form-urlencoded",
|
|
23073
|
+
"User-Agent": TOKEN_REQUEST_USER_AGENT
|
|
21017
23074
|
},
|
|
21018
23075
|
body: new URLSearchParams({
|
|
21019
23076
|
grant_type: "refresh_token",
|
|
21020
|
-
refresh_token:
|
|
23077
|
+
refresh_token: presentedRefreshToken,
|
|
21021
23078
|
...auth.params
|
|
21022
|
-
})
|
|
23079
|
+
}),
|
|
23080
|
+
// Bounds the request and the body reads below. Never retried: a
|
|
23081
|
+
// second POST of the same token is itself a reuse.
|
|
23082
|
+
//
|
|
23083
|
+
// Known residual: an abort only stops *this* side. If the server
|
|
23084
|
+
// commits the rotation after the deadline, the response carrying the
|
|
23085
|
+
// successor is lost and the stored token is spent; the next refresh
|
|
23086
|
+
// of it is a genuine invalid_grant and clears the profile. The client
|
|
23087
|
+
// cannot recover an unseen successor; the deadline is long enough
|
|
23088
|
+
// that this needs a token endpoint stalled for 15 s, not a slow one.
|
|
23089
|
+
signal: AbortSignal.timeout(REFRESH_REQUEST_TIMEOUT_MS)
|
|
21023
23090
|
});
|
|
21024
|
-
|
|
21025
|
-
|
|
21026
|
-
|
|
21027
|
-
|
|
21028
|
-
|
|
21029
|
-
|
|
21030
|
-
|
|
23091
|
+
} catch {
|
|
23092
|
+
throw new Error(REFRESH_REQUEST_FAILED);
|
|
23093
|
+
}
|
|
23094
|
+
if (!response.ok) {
|
|
23095
|
+
let body;
|
|
23096
|
+
try {
|
|
23097
|
+
body = await response.text();
|
|
23098
|
+
} catch {
|
|
23099
|
+
throw new Error(REFRESH_REQUEST_FAILED);
|
|
23100
|
+
}
|
|
23101
|
+
if (response.status === 400 && parseOAuthErrorCode(body) === "invalid_grant") {
|
|
23102
|
+
const current = credentialsManager.load(env, profileName);
|
|
23103
|
+
if (!current) {
|
|
23104
|
+
stderr(" The server rejected the stored refresh token; re-login required");
|
|
23105
|
+
return null;
|
|
21031
23106
|
}
|
|
21032
|
-
|
|
23107
|
+
if (current.refreshToken === presentedRefreshToken) {
|
|
23108
|
+
credentialsManager.clear(env, profileName);
|
|
23109
|
+
stderr(" The server rejected the stored refresh token; re-login required");
|
|
23110
|
+
return null;
|
|
23111
|
+
}
|
|
23112
|
+
throw new Error(REFRESH_SUPERSEDED);
|
|
23113
|
+
}
|
|
23114
|
+
if (parseOAuthErrorCode(body) === "invalid_client") {
|
|
23115
|
+
stderr(" The server no longer recognises this profile's OAuth client; re-login required");
|
|
21033
23116
|
return null;
|
|
21034
23117
|
}
|
|
21035
|
-
|
|
21036
|
-
|
|
21037
|
-
|
|
21038
|
-
|
|
21039
|
-
|
|
21040
|
-
|
|
21041
|
-
|
|
21042
|
-
|
|
21043
|
-
|
|
21044
|
-
|
|
21045
|
-
|
|
21046
|
-
stderr(` Token refresh error: ${err instanceof Error ? err.message : "unknown"}`);
|
|
21047
|
-
credentialsManager.clear(env, profileName);
|
|
23118
|
+
throw new Error(REFRESH_FAILED);
|
|
23119
|
+
}
|
|
23120
|
+
let tokens;
|
|
23121
|
+
try {
|
|
23122
|
+
tokens = validateTokenResponse(await response.json());
|
|
23123
|
+
} catch {
|
|
23124
|
+
throw new Error(REFRESH_BAD_RESPONSE);
|
|
23125
|
+
}
|
|
23126
|
+
const latest = credentialsManager.load(env, profileName);
|
|
23127
|
+
if (!latest) {
|
|
23128
|
+
stderr(" Cannot refresh: missing credentials (re-login required)");
|
|
21048
23129
|
return null;
|
|
21049
23130
|
}
|
|
23131
|
+
if (latest.clientId !== stored.clientId || latest.refreshToken !== presentedRefreshToken) {
|
|
23132
|
+
if (latest.accessToken && isFreshEnough(latest)) {
|
|
23133
|
+
return latest;
|
|
23134
|
+
}
|
|
23135
|
+
throw new Error(REFRESH_SUPERSEDED);
|
|
23136
|
+
}
|
|
23137
|
+
const updated = {
|
|
23138
|
+
...latest,
|
|
23139
|
+
accessToken: tokens.accessToken,
|
|
23140
|
+
// A server may omit `refresh_token` when it does not rotate; the
|
|
23141
|
+
// presented token then stays valid.
|
|
23142
|
+
refreshToken: tokens.refreshToken ?? presentedRefreshToken,
|
|
23143
|
+
expiresAt: new Date(Date.now() + tokens.expiresIn * 1e3).toISOString()
|
|
23144
|
+
};
|
|
23145
|
+
try {
|
|
23146
|
+
credentialsManager.save(env, updated, profileName);
|
|
23147
|
+
} catch {
|
|
23148
|
+
throw new Error(REFRESH_SAVE_FAILED);
|
|
23149
|
+
}
|
|
23150
|
+
return updated;
|
|
21050
23151
|
}
|
|
21051
23152
|
async function resolveNonInteractiveAuth(options) {
|
|
21052
23153
|
const { env, envConfig, credentialsManager, profile } = options;
|
|
@@ -21071,12 +23172,23 @@ async function resolveNonInteractiveAuth(options) {
|
|
|
21071
23172
|
if (!refreshed?.accessToken) return null;
|
|
21072
23173
|
return { accessToken: refreshed.accessToken, credentials: refreshed };
|
|
21073
23174
|
}
|
|
21074
|
-
var ACCESS_TOKEN_EXPIRY_BUFFER_MS, FIRST_PARTY_CLIENT_METADATA_FIELD;
|
|
23175
|
+
var import_proper_lockfile, ACCESS_TOKEN_EXPIRY_BUFFER_MS, TOKEN_REQUEST_USER_AGENT, REFRESH_REQUEST_TIMEOUT_MS, REFRESH_LOCK_RETRIES, REFRESH_LOCK_FAILED, REFRESH_REQUEST_FAILED, REFRESH_FAILED, REFRESH_SUPERSEDED, REFRESH_BAD_RESPONSE, REFRESH_SAVE_FAILED, FIRST_PARTY_CLIENT_METADATA_FIELD;
|
|
21075
23176
|
var init_auth = __esm({
|
|
21076
23177
|
"src/cli-utils/auth.ts"() {
|
|
23178
|
+
import_proper_lockfile = __toESM(require_proper_lockfile());
|
|
23179
|
+
init_package();
|
|
21077
23180
|
init_config();
|
|
21078
23181
|
init_credentials_manager();
|
|
21079
23182
|
ACCESS_TOKEN_EXPIRY_BUFFER_MS = 5 * 60 * 1e3;
|
|
23183
|
+
TOKEN_REQUEST_USER_AGENT = `gravityrail-cli/${package_default.version}`;
|
|
23184
|
+
REFRESH_REQUEST_TIMEOUT_MS = 15e3;
|
|
23185
|
+
REFRESH_LOCK_RETRIES = { retries: 23, factor: 2, minTimeout: 100, maxTimeout: 1e3 };
|
|
23186
|
+
REFRESH_LOCK_FAILED = "Could not lock the credential store to refresh the access token (another gr process may still be refreshing). Stored credentials were kept; retry the command.";
|
|
23187
|
+
REFRESH_REQUEST_FAILED = "Token refresh did not complete (network error or timeout). Stored credentials were kept; retry the command.";
|
|
23188
|
+
REFRESH_FAILED = "Token refresh failed. Stored credentials were kept; retry the command, and log in again if it keeps failing.";
|
|
23189
|
+
REFRESH_SUPERSEDED = "Token refresh was rejected, but the stored credentials changed meanwhile and were kept. Retry the command.";
|
|
23190
|
+
REFRESH_BAD_RESPONSE = "Token refresh returned an unusable response. Stored credentials were kept; retry the command.";
|
|
23191
|
+
REFRESH_SAVE_FAILED = "Token refresh succeeded, but the new credentials could not be saved. Retry the command, and log in again if it keeps failing.";
|
|
21080
23192
|
FIRST_PARTY_CLIENT_METADATA_FIELD = "gravityrail_first_party_cli_client_id";
|
|
21081
23193
|
}
|
|
21082
23194
|
});
|
|
@@ -22438,6 +24550,9 @@ function commandNeedsJsonBody(cmd, parsedArgs) {
|
|
|
22438
24550
|
}
|
|
22439
24551
|
return false;
|
|
22440
24552
|
}
|
|
24553
|
+
if (cmd.acceptsJsonInput === true) {
|
|
24554
|
+
return true;
|
|
24555
|
+
}
|
|
22441
24556
|
if (parsedArgs.data !== void 0 || parsedArgs.file !== void 0) {
|
|
22442
24557
|
return true;
|
|
22443
24558
|
}
|
|
@@ -22959,7 +25074,7 @@ var CommandRegistry = class {
|
|
|
22959
25074
|
lines.push(" Requires: --allow-write");
|
|
22960
25075
|
}
|
|
22961
25076
|
const action = cmd.path[cmd.path.length - 1] ?? "";
|
|
22962
|
-
const showsJsonHints = action === "create" || action === "update" || cmd.args?.some((a) => a.name === "data"
|
|
25077
|
+
const showsJsonHints = action === "create" || action === "update" || cmd.args?.some((a) => a.name === "data");
|
|
22963
25078
|
if (cmd.args && cmd.args.length > 0) {
|
|
22964
25079
|
lines.push("", "Arguments:");
|
|
22965
25080
|
for (const arg of cmd.args) {
|
|
@@ -23292,6 +25407,8 @@ Optional
|
|
|
23292
25407
|
chatModelConfig (object|null) Chat model overrides (temperature, thinking, \u2026)
|
|
23293
25408
|
realtimeModelId (string|null) Voice/realtime model (see \`gr ai-models realtime\`)
|
|
23294
25409
|
e.g. "xai:realtime:voice-agent-2" (Grok Voice Think Fast 2)
|
|
25410
|
+
or opt in to "xai:realtime:voice-agent-3" (Grok Voice
|
|
25411
|
+
3.0; not yet cleared for strict-routing workflows)
|
|
23295
25412
|
Native models auto-fill tts=native + default voice when
|
|
23296
25413
|
realtimeModelConfig is omitted.
|
|
23297
25414
|
realtimeModelConfig (object|null) Realtime config. Native example:
|
|
@@ -23313,6 +25430,10 @@ One-shot workflow voice WITHOUT creating an agent (preferred for "use Grok Voice
|
|
|
23313
25430
|
gr workflows update --id <wf> -d '{"realtimeModelId":"xai:realtime:voice-agent-2"}'
|
|
23314
25431
|
gr workflows publish --workflow-id <wf>
|
|
23315
25432
|
|
|
25433
|
+
Opt a workflow into Grok Voice 3.0 (same xAI voices as 2.0; not the default):
|
|
25434
|
+
gr workflows update --id <wf> -d '{"realtimeModelId":"xai:realtime:voice-agent-3"}'
|
|
25435
|
+
gr workflows publish --workflow-id <wf>
|
|
25436
|
+
|
|
23316
25437
|
List models:
|
|
23317
25438
|
gr ai-models chat | realtime | voice
|
|
23318
25439
|
`;
|
|
@@ -23342,6 +25463,7 @@ ${AGENT_FIELD_REFERENCE}`,
|
|
|
23342
25463
|
],
|
|
23343
25464
|
updateExamples: [
|
|
23344
25465
|
`gr agents update --id 42 -d '{"realtimeModelId":"xai:realtime:voice-agent-2"}'`,
|
|
25466
|
+
`gr agents update --id 42 -d '{"realtimeModelId":"xai:realtime:voice-agent-3"}'`,
|
|
23345
25467
|
"gr agents update --id 42 --file agent.json"
|
|
23346
25468
|
]
|
|
23347
25469
|
})
|
|
@@ -25222,15 +27344,24 @@ Assistant / models (live on the DRAFT revision \u2014 publish to go live)
|
|
|
25222
27344
|
create: omit \u2192 xai:realtime:voice-agent-2 with
|
|
25223
27345
|
voice xai:voice:cosmo; null = voice off
|
|
25224
27346
|
update: null = voice off
|
|
25225
|
-
One-shot voice
|
|
27347
|
+
One-shot switch (keeps the stored voice and
|
|
27348
|
+
call settings; resets only a voice the new
|
|
27349
|
+
model cannot use):
|
|
25226
27350
|
{"realtimeModelId":"xai:realtime:voice-agent-2"}
|
|
25227
|
-
|
|
25228
|
-
|
|
25229
|
-
|
|
27351
|
+
Opt in to Grok Voice 3.0 (not the default; not yet
|
|
27352
|
+
cleared for routingMode "strict"; same xAI voices):
|
|
27353
|
+
{"realtimeModelId":"xai:realtime:voice-agent-3"}
|
|
27354
|
+
On create, a native model id with no stored or
|
|
27355
|
+
copied config gets tts=native + that
|
|
27356
|
+
provider's fallback voice. A composable id
|
|
27357
|
+
still needs its own config. On update,
|
|
27358
|
+
omitting the config keeps the stored one.
|
|
27359
|
+
Explicit config replaces it:
|
|
25230
27360
|
{"realtimeModelId":"xai:realtime:voice-agent-2",
|
|
25231
27361
|
"realtimeModelConfig":{"ttsModel":"native",
|
|
25232
27362
|
"voiceModel":"xai:voice:ara"}}
|
|
25233
|
-
realtimeModelConfig (object|null) Realtime config
|
|
27363
|
+
realtimeModelConfig (object|null) Realtime config. Omit on update to keep the
|
|
27364
|
+
stored config. null replaces it.
|
|
25234
27365
|
copyFromAgentId (number) Copy full assistant settings from an agent
|
|
25235
27366
|
copyFromWorkflowRevisionId (number) Copy assistant settings from a revision
|
|
25236
27367
|
|
|
@@ -25290,6 +27421,24 @@ var NOTE_COLUMNS = [
|
|
|
25290
27421
|
},
|
|
25291
27422
|
COL.created()
|
|
25292
27423
|
];
|
|
27424
|
+
var CONFIG_HEALTH_COLUMNS = [
|
|
27425
|
+
{ header: "SEVERITY", getValue: (item) => String(item.severity ?? "") },
|
|
27426
|
+
{ header: "CODE", getValue: (item) => String(item.code ?? "") },
|
|
27427
|
+
{ header: "SUBJECT", getValue: (item) => String(item.subject?.type ?? "") },
|
|
27428
|
+
{
|
|
27429
|
+
header: "SUBJECT-ID",
|
|
27430
|
+
getValue: (item) => String(item.subject?.id ?? "")
|
|
27431
|
+
},
|
|
27432
|
+
{
|
|
27433
|
+
header: "TASK",
|
|
27434
|
+
getValue: (item) => String(item.remediation?.focus?.taskId ?? "")
|
|
27435
|
+
},
|
|
27436
|
+
{
|
|
27437
|
+
header: "MESSAGE",
|
|
27438
|
+
getValue: (item) => String(item.message ?? ""),
|
|
27439
|
+
maxWidth: 80
|
|
27440
|
+
}
|
|
27441
|
+
];
|
|
25293
27442
|
var CONTRIBUTOR_COLUMNS = [
|
|
25294
27443
|
COL.id(),
|
|
25295
27444
|
{
|
|
@@ -25490,6 +27639,26 @@ var workflowsDomain = {
|
|
|
25490
27639
|
outputData(result2, ctx);
|
|
25491
27640
|
}
|
|
25492
27641
|
},
|
|
27642
|
+
// Config health (draft revision)
|
|
27643
|
+
{
|
|
27644
|
+
path: ["workflows", "validate-config"],
|
|
27645
|
+
description: "Report the workflow's configuration health issues (draft revision) \u2014 the same findings the editor shows",
|
|
27646
|
+
requiresWorkspace: true,
|
|
27647
|
+
args: [{ name: "id", description: "Workflow ID", required: true }],
|
|
27648
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
27649
|
+
const result2 = await requireAuth(ctx).apiClient.getWorkflowConfigValidation(
|
|
27650
|
+
workspace,
|
|
27651
|
+
requireNumber(args, "id")
|
|
27652
|
+
);
|
|
27653
|
+
if (ctx.outputFormat === "json" || ctx.outputFormat === "jsonl") {
|
|
27654
|
+
outputData(result2, ctx);
|
|
27655
|
+
} else {
|
|
27656
|
+
outputData(result2.configHealthIssues ?? [], ctx, CONFIG_HEALTH_COLUMNS);
|
|
27657
|
+
stderr2(`issues=${(result2.configHealthIssues ?? []).length}
|
|
27658
|
+
`);
|
|
27659
|
+
}
|
|
27660
|
+
}
|
|
27661
|
+
},
|
|
25493
27662
|
// Diagram
|
|
25494
27663
|
{
|
|
25495
27664
|
path: ["workflows", "diagram"],
|
|
@@ -25956,6 +28125,20 @@ ${WORKFLOW_FIELD_REFERENCE}`,
|
|
|
25956
28125
|
]
|
|
25957
28126
|
};
|
|
25958
28127
|
init_errors();
|
|
28128
|
+
|
|
28129
|
+
// src/lib/workspace-labels.ts
|
|
28130
|
+
init_errors();
|
|
28131
|
+
function parseLabelList(value) {
|
|
28132
|
+
if (value === void 0 || value === null || value === false) return [];
|
|
28133
|
+
const raw = Array.isArray(value) ? value.map(String) : [String(value)];
|
|
28134
|
+
const labels = raw.flatMap((entry) => entry.split(",")).map((entry) => entry.trim()).filter((entry) => entry.length > 0);
|
|
28135
|
+
if (labels.length === 0 && raw.some((entry) => entry.trim().length > 0)) {
|
|
28136
|
+
throw new CLIError("--labels must name at least one label");
|
|
28137
|
+
}
|
|
28138
|
+
return labels;
|
|
28139
|
+
}
|
|
28140
|
+
|
|
28141
|
+
// src/domains/workspaces.ts
|
|
25959
28142
|
init_output();
|
|
25960
28143
|
init_pagination();
|
|
25961
28144
|
init_context();
|
|
@@ -26770,11 +28953,16 @@ var workspacesDomain = {
|
|
|
26770
28953
|
{
|
|
26771
28954
|
name: "timezone",
|
|
26772
28955
|
description: "IANA time zone (e.g. America/New_York). The create API does not take one, so the command waits for provisioning to finish and then sets it with a follow-up update. Without it the workspace has no timezone and Journey send windows and Routines run in UTC."
|
|
28956
|
+
},
|
|
28957
|
+
{
|
|
28958
|
+
name: "labels",
|
|
28959
|
+
description: "Comma-separated workspace labels to apply right after creation (e.g. production,sponsor-acme). Labels the organization has not used before are created. Webhook endpoints that select on these labels start covering the workspace at once."
|
|
26773
28960
|
}
|
|
26774
28961
|
],
|
|
26775
28962
|
examples: [
|
|
26776
28963
|
'gr workspaces create --org <org-uuid> --name "Front Desk"',
|
|
26777
|
-
'gr workspaces create --org <org-uuid> --name "Front Desk" --timezone America/Chicago'
|
|
28964
|
+
'gr workspaces create --org <org-uuid> --name "Front Desk" --timezone America/Chicago',
|
|
28965
|
+
'gr workspaces create --org <org-uuid> --name "Front Desk" --labels production,sponsor-acme'
|
|
26778
28966
|
],
|
|
26779
28967
|
handler: async ({ ctx, args }) => {
|
|
26780
28968
|
const orgUuid = args.org ?? args["org-uuid"];
|
|
@@ -26782,6 +28970,7 @@ var workspacesDomain = {
|
|
|
26782
28970
|
if (!orgUuid) throw new CLIError("Missing required argument: --org <org-uuid>");
|
|
26783
28971
|
if (!name) throw new CLIError("Missing required argument: --name");
|
|
26784
28972
|
const timezone = typeof args.timezone === "string" ? normalizeIanaTimeZone(args.timezone) : void 0;
|
|
28973
|
+
const labels = parseLabelList(args.labels);
|
|
26785
28974
|
const payload = { name };
|
|
26786
28975
|
if (args.slug) payload.slug = String(args.slug);
|
|
26787
28976
|
if (args.template) payload.templateWorkspaceUuid = String(args.template);
|
|
@@ -26798,6 +28987,18 @@ var workspacesDomain = {
|
|
|
26798
28987
|
}
|
|
26799
28988
|
throw err;
|
|
26800
28989
|
}
|
|
28990
|
+
if (labels.length > 0) {
|
|
28991
|
+
try {
|
|
28992
|
+
await client3.setWorkspaceLabels(orgUuid, result2.uuid, { labels });
|
|
28993
|
+
} catch (err) {
|
|
28994
|
+
const reason = err instanceof Error ? err.message : String(err);
|
|
28995
|
+
throw new CLIError(
|
|
28996
|
+
`Workspace ${result2.uuid} was created but its labels were not set: ${reason}
|
|
28997
|
+
Apply them with:
|
|
28998
|
+
gr org workspaces labels set --org ${orgUuid} --workspace-uuid ${result2.uuid} --labels ${labels.join(",")} --allow-write`
|
|
28999
|
+
);
|
|
29000
|
+
}
|
|
29001
|
+
}
|
|
26801
29002
|
if (timezone) {
|
|
26802
29003
|
const wsUuid = result2.uuid;
|
|
26803
29004
|
stderr2(`Waiting for workspace ${wsUuid} to finish provisioning...`);
|
|
@@ -29068,7 +31269,8 @@ var eventsDomain = {
|
|
|
29068
31269
|
{ name: "journey-step-id", description: "Filter by journey step ID" },
|
|
29069
31270
|
{
|
|
29070
31271
|
name: "include-disabled",
|
|
29071
|
-
description: "Include inactive rules (default: active only)"
|
|
31272
|
+
description: "Include inactive rules (default: active only)",
|
|
31273
|
+
isFlag: true
|
|
29072
31274
|
}
|
|
29073
31275
|
],
|
|
29074
31276
|
columns: RULE_COLUMNS,
|
|
@@ -29332,6 +31534,73 @@ function parseIdList(value) {
|
|
|
29332
31534
|
return num;
|
|
29333
31535
|
});
|
|
29334
31536
|
}
|
|
31537
|
+
function toGrantEntry(grant) {
|
|
31538
|
+
return { granteeMemberId: grant.granteeMemberId, accessMode: grant.accessMode };
|
|
31539
|
+
}
|
|
31540
|
+
var SHARING_COLUMNS = [
|
|
31541
|
+
{ header: "ACCESS", getValue: (item) => item.access },
|
|
31542
|
+
{
|
|
31543
|
+
header: "SHAREABLE",
|
|
31544
|
+
getValue: (item) => String(item.shareable ?? "")
|
|
31545
|
+
},
|
|
31546
|
+
{ header: "OWNER", getValue: (item) => String(item.ownerId ?? "") },
|
|
31547
|
+
{ header: "GRANTS", getValue: (item) => String(item.grants.length) },
|
|
31548
|
+
{
|
|
31549
|
+
header: "ROLES",
|
|
31550
|
+
getValue: (item) => (item.roleAssociations ?? []).map((role) => role.memberRoleName).join(", ")
|
|
31551
|
+
}
|
|
31552
|
+
];
|
|
31553
|
+
function sharingCommands(spec) {
|
|
31554
|
+
const { prefix, entityName, getMethod, updateMethod } = spec;
|
|
31555
|
+
const idArg2 = { name: "id", description: `${entityName} ID`, required: true };
|
|
31556
|
+
const cli = ["gr", ...prefix, "sharing"].join(" ");
|
|
31557
|
+
return [
|
|
31558
|
+
{
|
|
31559
|
+
path: [...prefix, "sharing", "get"],
|
|
31560
|
+
description: `Show a ${entityName}'s access level, grants and role associations`,
|
|
31561
|
+
requiresWorkspace: true,
|
|
31562
|
+
args: [idArg2],
|
|
31563
|
+
examples: [`${cli} get -w $WID --id 12`],
|
|
31564
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
31565
|
+
const state = await requireAuth(ctx).apiClient[getMethod](
|
|
31566
|
+
workspace,
|
|
31567
|
+
requireNumber(args, "id")
|
|
31568
|
+
);
|
|
31569
|
+
outputData(state, ctx, SHARING_COLUMNS);
|
|
31570
|
+
}
|
|
31571
|
+
},
|
|
31572
|
+
{
|
|
31573
|
+
path: [...prefix, "sharing", "set"],
|
|
31574
|
+
description: `Change a ${entityName}'s sharing. The API replaces the whole sharing state, so this command reads the current state first and overrides only the keys you pass \u2014 omitting "grants" or "roleAssociations" keeps the existing ones rather than clearing them. Pass them explicitly (e.g. "grants": []) to replace.`,
|
|
31575
|
+
mutates: true,
|
|
31576
|
+
requiresWorkspace: true,
|
|
31577
|
+
args: [idArg2],
|
|
31578
|
+
examples: [
|
|
31579
|
+
`${cli} set -w $WID --id 12 --allow-write -d '{"access":"workspace"}'`,
|
|
31580
|
+
`${cli} set -w $WID --id 12 --allow-write -d '{"access":"private","grants":[]}'`
|
|
31581
|
+
],
|
|
31582
|
+
handler: async ({ ctx, workspace, args, data }) => {
|
|
31583
|
+
if (data === void 0 || data === null || typeof data !== "object") {
|
|
31584
|
+
throw new CLIError(
|
|
31585
|
+
`Provide the fields to change as JSON via --data, --file, or stdin (e.g. '{"access":"workspace"}')`
|
|
31586
|
+
);
|
|
31587
|
+
}
|
|
31588
|
+
const patch = data;
|
|
31589
|
+
const client3 = requireAuth(ctx).apiClient;
|
|
31590
|
+
const id = requireNumber(args, "id");
|
|
31591
|
+
const current = await client3[getMethod](workspace, id);
|
|
31592
|
+
const next = {
|
|
31593
|
+
access: patch.access ?? current.access,
|
|
31594
|
+
shareable: patch.shareable ?? current.shareable ?? null,
|
|
31595
|
+
grants: patch.grants ?? current.grants.map(toGrantEntry),
|
|
31596
|
+
roleAssociations: patch.roleAssociations ?? current.roleAssociations ?? []
|
|
31597
|
+
};
|
|
31598
|
+
const state = await client3[updateMethod](workspace, id, next);
|
|
31599
|
+
outputData(state, ctx, SHARING_COLUMNS);
|
|
31600
|
+
}
|
|
31601
|
+
}
|
|
31602
|
+
];
|
|
31603
|
+
}
|
|
29335
31604
|
var COLUMNS10 = [
|
|
29336
31605
|
COL.id(),
|
|
29337
31606
|
COL.name(),
|
|
@@ -29493,6 +31762,18 @@ ${FILE_FIELD_REFERENCE}`
|
|
|
29493
31762
|
outputData(results, ctx, folderSearchColumns(results));
|
|
29494
31763
|
}
|
|
29495
31764
|
},
|
|
31765
|
+
...sharingCommands({
|
|
31766
|
+
prefix: ["files", "folders"],
|
|
31767
|
+
entityName: "folder",
|
|
31768
|
+
getMethod: "getFolderSharing",
|
|
31769
|
+
updateMethod: "updateFolderSharing"
|
|
31770
|
+
}),
|
|
31771
|
+
...sharingCommands({
|
|
31772
|
+
prefix: ["files"],
|
|
31773
|
+
entityName: "file",
|
|
31774
|
+
getMethod: "getFileSharing",
|
|
31775
|
+
updateMethod: "updateFileSharing"
|
|
31776
|
+
}),
|
|
29496
31777
|
// Labels sub-resource
|
|
29497
31778
|
...crudCommands({
|
|
29498
31779
|
prefix: ["files", "labels"],
|
|
@@ -31414,7 +33695,7 @@ var OBS_COLUMNS = [
|
|
|
31414
33695
|
];
|
|
31415
33696
|
var metricsDomain = {
|
|
31416
33697
|
name: "metrics",
|
|
31417
|
-
description: "Customer-defined outcome metrics (CEL expression or
|
|
33698
|
+
description: "Customer-defined outcome metrics (CEL expression, LLM rubric, Member cohort count, or an aggregate over Form records) with time-series readout",
|
|
31418
33699
|
commands: [
|
|
31419
33700
|
...crudCommands({
|
|
31420
33701
|
prefix: ["metrics"],
|
|
@@ -31427,14 +33708,16 @@ var metricsDomain = {
|
|
|
31427
33708
|
columns: COLUMNS11,
|
|
31428
33709
|
paginationSupport: "full",
|
|
31429
33710
|
createExamples: [
|
|
31430
|
-
`yarn gr metrics create -w $WID --allow-write --data '{"name":"SMS Channel Rate","metricType":"expression","celExpression":"chat.channel == \\"phone-sms\\"","unit":"rate"}'`,
|
|
31431
|
-
`yarn gr metrics create -w $WID --allow-write --data '{"name":"Qualified Engagement","metricType":"rubric","evaluationPrompt":"Did the user show buying intent?","unit":"rate"}'
|
|
33711
|
+
`yarn gr metrics create -w $WID --allow-write --data '{"name":"SMS Channel Rate","metricType":"expression","celExpression":"chat.channel == \\"phone-sms\\"","unit":"rate","workflowIds":[]}'`,
|
|
33712
|
+
`yarn gr metrics create -w $WID --allow-write --data '{"name":"Qualified Engagement","metricType":"rubric","evaluationPrompt":"Did the user show buying intent?","unit":"rate","workflowIds":[]}'`,
|
|
33713
|
+
`yarn gr metrics create -w $WID --allow-write --data '{"name":"HRV daily average","metricType":"record_aggregate","source":"data_record","sourceConfig":{"record":{"dataType":"daily_readings","aggregation":"avg","field":"record.hrv","dateField":"record.measured_on","groupBy":"record.athlete"}},"targetValue":65}'`,
|
|
33714
|
+
`yarn gr metrics create -w $WID --allow-write --data '{"name":"Open lab results","metricType":"record_aggregate","source":"data_record","sourceConfig":{"record":{"dataType":"lab_results","aggregation":"count","where":{"kind":"compare","field":"record.status","op":"eq","value":"open"}}}}'`
|
|
31432
33715
|
],
|
|
31433
|
-
createHelp:
|
|
33716
|
+
createHelp: `Create a metric definition. metricType is expression (CEL) or rubric (LLM) for one reading per chat (pass workflowIds, [] for every workflow); filter_count for the daily size of a saved Member filter (source "member_filter", kind "gauge", sourceConfig.memberFilterId); or record_aggregate for an aggregate over a Form's records, computed from the records each time the series is read (source "data_record", sourceConfig.record). sourceConfig.record takes dataType (Form id or slug), aggregation (count | countDistinct | sum | avg | min | max), field (record.<fieldSlug>; required for all but count, a number field for sum/avg/min/max), dateField (a date or datetime field, default record.createdAt), where (Query IR predicate, see "yarn gr queries syntax") and groupBy (record.<fieldSlug>, one series per value). A record metric needs records:read to save and to read, and records:admin when it names an adminOnly field.`
|
|
31434
33717
|
}),
|
|
31435
33718
|
{
|
|
31436
33719
|
path: ["metrics", "observations"],
|
|
31437
|
-
description: "List raw observations for a metric in a date range (may include PHI reason)",
|
|
33720
|
+
description: "List raw observations for a metric in a date range (may include PHI reason). Not available for record_aggregate metrics, which store none: read their series",
|
|
31438
33721
|
args: [
|
|
31439
33722
|
{ name: "id", required: true, description: "Metric ID" },
|
|
31440
33723
|
{
|
|
@@ -31472,7 +33755,7 @@ var metricsDomain = {
|
|
|
31472
33755
|
},
|
|
31473
33756
|
{
|
|
31474
33757
|
path: ["metrics", "series"],
|
|
31475
|
-
description: "Time-bucketed aggregation for a metric
|
|
33758
|
+
description: "Time-bucketed aggregation for a metric. A record_aggregate metric is computed from its Form records on each call and, with groupBy, also returns one series per group",
|
|
31476
33759
|
args: [
|
|
31477
33760
|
{ name: "id", required: true, description: "Metric ID" },
|
|
31478
33761
|
{
|
|
@@ -31488,7 +33771,7 @@ var metricsDomain = {
|
|
|
31488
33771
|
{ name: "bucket", description: "day | week (default day)" },
|
|
31489
33772
|
{
|
|
31490
33773
|
name: "aggregation",
|
|
31491
|
-
description: "avg | sum | count | rate | last | passes (default varies by metric)"
|
|
33774
|
+
description: "avg | sum | count | rate | last | passes (default varies by metric). Omit for a record_aggregate metric: its definition names the aggregation"
|
|
31492
33775
|
}
|
|
31493
33776
|
],
|
|
31494
33777
|
requiresWorkspace: true,
|
|
@@ -31668,8 +33951,10 @@ function buildModelEvalBatchJobs(scenarios, models, rounds, warmup, realtimeMode
|
|
|
31668
33951
|
var REALTIME_AUDIO_USD_PER_MIN = {
|
|
31669
33952
|
"xai:realtime:voice-agent": 0.05,
|
|
31670
33953
|
// Grok Voice Think Fast 1
|
|
31671
|
-
"xai:realtime:voice-agent-2": 0.08
|
|
31672
|
-
// Grok Voice Think Fast 2
|
|
33954
|
+
"xai:realtime:voice-agent-2": 0.08,
|
|
33955
|
+
// Grok Voice Think Fast 2 (pinned grok-voice-2.0)
|
|
33956
|
+
"xai:realtime:voice-agent-3": 0.08
|
|
33957
|
+
// Grok Voice 3.0 — same audio rate as 2.0
|
|
31673
33958
|
};
|
|
31674
33959
|
var DEFAULT_REALTIME_AUDIO_USD_PER_MIN = 0.08;
|
|
31675
33960
|
var EST_AUDIO_MIN_PER_RUN = 3;
|
|
@@ -32383,7 +34668,8 @@ var qualificationsDomain = {
|
|
|
32383
34668
|
{
|
|
32384
34669
|
name: "all-scenarios",
|
|
32385
34670
|
description: "Run every scenario on the workflow qualification",
|
|
32386
|
-
required: false
|
|
34671
|
+
required: false,
|
|
34672
|
+
isFlag: true
|
|
32387
34673
|
},
|
|
32388
34674
|
{
|
|
32389
34675
|
name: "rounds",
|
|
@@ -32400,7 +34686,8 @@ var qualificationsDomain = {
|
|
|
32400
34686
|
{
|
|
32401
34687
|
name: "evaluate",
|
|
32402
34688
|
description: "Evaluate each completed run before writing the row",
|
|
32403
|
-
required: false
|
|
34689
|
+
required: false,
|
|
34690
|
+
isFlag: true
|
|
32404
34691
|
},
|
|
32405
34692
|
{
|
|
32406
34693
|
name: "wait-timeout",
|
|
@@ -32499,6 +34786,91 @@ var qualificationsDomain = {
|
|
|
32499
34786
|
]
|
|
32500
34787
|
};
|
|
32501
34788
|
|
|
34789
|
+
// src/domains/data-reports.ts
|
|
34790
|
+
init_output();
|
|
34791
|
+
init_context();
|
|
34792
|
+
init_errors();
|
|
34793
|
+
init_config();
|
|
34794
|
+
function parseRecordScope(value) {
|
|
34795
|
+
if (value === void 0) return void 0;
|
|
34796
|
+
if (value === "currentMember" || value === "allRecords") return value;
|
|
34797
|
+
throw new CLIError("--record-scope must be currentMember or allRecords");
|
|
34798
|
+
}
|
|
34799
|
+
function parseParameters(value) {
|
|
34800
|
+
if (value === void 0) return void 0;
|
|
34801
|
+
let parsed;
|
|
34802
|
+
try {
|
|
34803
|
+
parsed = typeof value === "string" ? JSON.parse(value) : value;
|
|
34804
|
+
} catch {
|
|
34805
|
+
throw new CLIError("--parameters must be a JSON object");
|
|
34806
|
+
}
|
|
34807
|
+
if (!isRecord(parsed)) throw new CLIError("--parameters must be a JSON object");
|
|
34808
|
+
const values = {};
|
|
34809
|
+
for (const [name, parameter] of Object.entries(parsed)) {
|
|
34810
|
+
if (typeof parameter !== "boolean" && typeof parameter !== "number" && typeof parameter !== "string") {
|
|
34811
|
+
throw new CLIError(`--parameters value for '${name}' must be a boolean, number or string`);
|
|
34812
|
+
}
|
|
34813
|
+
values[name] = parameter;
|
|
34814
|
+
}
|
|
34815
|
+
return values;
|
|
34816
|
+
}
|
|
34817
|
+
function buildPreviewRequest(data, args) {
|
|
34818
|
+
if (!isRecord(data)) {
|
|
34819
|
+
throw new CLIError("Report JSON required (--data, --file, or stdin)");
|
|
34820
|
+
}
|
|
34821
|
+
let request;
|
|
34822
|
+
if ("report" in data) {
|
|
34823
|
+
if (!isRecord(data.report)) {
|
|
34824
|
+
throw new CLIError("The request's 'report' must be a JSON object");
|
|
34825
|
+
}
|
|
34826
|
+
request = { ...data };
|
|
34827
|
+
} else if ("dataTypeUuid" in data && "query" in data) {
|
|
34828
|
+
request = { report: data };
|
|
34829
|
+
} else {
|
|
34830
|
+
throw new CLIError(
|
|
34831
|
+
"Body must be a request with a 'report' object, or a bare report with dataTypeUuid and query"
|
|
34832
|
+
);
|
|
34833
|
+
}
|
|
34834
|
+
const recordScope = parseRecordScope(args["record-scope"]);
|
|
34835
|
+
if (recordScope) request.recordScope = recordScope;
|
|
34836
|
+
const parameters = parseParameters(args["parameters"]);
|
|
34837
|
+
if (parameters) request.parameters = parameters;
|
|
34838
|
+
return request;
|
|
34839
|
+
}
|
|
34840
|
+
var dataReportsDomain = {
|
|
34841
|
+
name: "data-reports",
|
|
34842
|
+
description: "Form Reports: preview a report as the Agent would run it",
|
|
34843
|
+
commands: [
|
|
34844
|
+
{
|
|
34845
|
+
path: ["data-reports", "preview"],
|
|
34846
|
+
description: "Run a Form Reports report, saved or not, as the signed-in Member and show the rows or groups the Agent would get. Rows return at most 50 per call and aggregates at most 200 groups. Needs the agents:write and records:read scopes.",
|
|
34847
|
+
requiresWorkspace: true,
|
|
34848
|
+
acceptsJsonInput: true,
|
|
34849
|
+
args: [
|
|
34850
|
+
{
|
|
34851
|
+
name: "record-scope",
|
|
34852
|
+
description: "currentMember (default) limits the report to the signed-in Member's records; allRecords covers every record that Member may read",
|
|
34853
|
+
required: false
|
|
34854
|
+
},
|
|
34855
|
+
{
|
|
34856
|
+
name: "parameters",
|
|
34857
|
+
description: `Parameter values as a JSON object, e.g. '{"days":7}'. Omitted parameters use their defaults`,
|
|
34858
|
+
required: false
|
|
34859
|
+
}
|
|
34860
|
+
],
|
|
34861
|
+
examples: [
|
|
34862
|
+
`yarn gr data-reports preview -w $UUID --record-scope allRecords --parameters '{"days":7}' --file report.json`,
|
|
34863
|
+
`yarn gr data-reports preview -w $UUID --data '{"report":{"name":"recent","description":"Latest rows","dataTypeUuid":"<form uuid>","query":{"sort":[{"field":"record.createdAt","dir":"desc"}],"limit":5}},"recordScope":"allRecords"}'`
|
|
34864
|
+
],
|
|
34865
|
+
handler: async ({ ctx, workspace, args, data }) => {
|
|
34866
|
+
const request = buildPreviewRequest(data, args);
|
|
34867
|
+
const result2 = await requireAuth(ctx).apiClient.previewDataReport(workspace, request);
|
|
34868
|
+
outputSingle(result2, ctx);
|
|
34869
|
+
}
|
|
34870
|
+
}
|
|
34871
|
+
]
|
|
34872
|
+
};
|
|
34873
|
+
|
|
32502
34874
|
// src/domains/queries.ts
|
|
32503
34875
|
init_output();
|
|
32504
34876
|
init_context();
|
|
@@ -33431,6 +35803,9 @@ var abilitiesDomain = {
|
|
|
33431
35803
|
description: "Allow creation before required app connections are configured"
|
|
33432
35804
|
}
|
|
33433
35805
|
],
|
|
35806
|
+
examples: [
|
|
35807
|
+
'yarn gr abilities enable --ability-type integration:data_reports --workflow-id 12 -w $UUID --data \'{"recordScope":"currentMember","reports":[{"name":"recent_entries","description":"The latest entries for this Member","dataTypeUuid":"<form uuid>","query":{"sort":[{"field":"record.createdAt","dir":"desc"}],"limit":5}}]}\' # Form Reports: no app editor; try a report first with `yarn gr data-reports preview`'
|
|
35808
|
+
],
|
|
33434
35809
|
handler: async ({ ctx, workspace, args, data }) => {
|
|
33435
35810
|
const abilityType = args["ability-type"];
|
|
33436
35811
|
if (typeof abilityType !== "string") throw new CLIError("--ability-type is required");
|
|
@@ -33950,7 +36325,8 @@ var NO_UUID_LOOKUP = /* @__PURE__ */ new Set([
|
|
|
33950
36325
|
"import",
|
|
33951
36326
|
"invoice",
|
|
33952
36327
|
"workspace_config",
|
|
33953
|
-
"data_record"
|
|
36328
|
+
"data_record",
|
|
36329
|
+
"recording"
|
|
33954
36330
|
]);
|
|
33955
36331
|
var HYDRATORS = {
|
|
33956
36332
|
workspace: async ({ client: client3 }, ref) => (await client3.getWorkspace(ref.uuid)).name,
|
|
@@ -34783,7 +37159,7 @@ var aiModelsDomain = {
|
|
|
34783
37159
|
},
|
|
34784
37160
|
{
|
|
34785
37161
|
path: ["ai-models", "realtime"],
|
|
34786
|
-
description: "List realtime/voice stacks (use as realtimeModelId). e.g. xai:realtime:voice-agent-2 = Grok Voice Think Fast 2",
|
|
37162
|
+
description: "List realtime/voice stacks (use as realtimeModelId). e.g. xai:realtime:voice-agent-2 = Grok Voice Think Fast 2 (default); xai:realtime:voice-agent-3 = Grok Voice 3.0 (explicit opt-in)",
|
|
34787
37163
|
requiresWorkspace: false,
|
|
34788
37164
|
handler: async ({ ctx }) => {
|
|
34789
37165
|
const result2 = await requireAuth(ctx).apiClient.getRealtimeModels();
|
|
@@ -36331,6 +38707,7 @@ init_dist();
|
|
|
36331
38707
|
init_context();
|
|
36332
38708
|
init_errors();
|
|
36333
38709
|
init_output();
|
|
38710
|
+
init_pagination();
|
|
36334
38711
|
var ORG_COLUMNS = [
|
|
36335
38712
|
{ header: "ID", getValue: (item) => String(item.organizationId ?? "") },
|
|
36336
38713
|
{ header: "NAME", getValue: (item) => item.organizationName || "" },
|
|
@@ -36936,6 +39313,17 @@ var ORG_WEBHOOK_COLUMNS = [
|
|
|
36936
39313
|
header: "WORKSPACES",
|
|
36937
39314
|
getValue: (item) => item.limitedToWorkspaces ? item.workspaceUuids.join(",") : "all (organization-wide)",
|
|
36938
39315
|
maxWidth: 80
|
|
39316
|
+
},
|
|
39317
|
+
{
|
|
39318
|
+
// A workspace is covered when it carries ALL of these labels (in
|
|
39319
|
+
// addition to the explicit WORKSPACES).
|
|
39320
|
+
header: "LABELS",
|
|
39321
|
+
getValue: (item) => (item.labelSelector ?? []).map((label) => label.slug).join("+"),
|
|
39322
|
+
maxWidth: 60
|
|
39323
|
+
},
|
|
39324
|
+
{
|
|
39325
|
+
header: "RECENT FAILURES",
|
|
39326
|
+
getValue: (item) => (item.recentFailures ?? []).map((failure) => `${failure.failureClass} (${failure.count})`).join(", ")
|
|
36939
39327
|
}
|
|
36940
39328
|
];
|
|
36941
39329
|
function requireWebhookEndpointUuid(args) {
|
|
@@ -36970,9 +39358,298 @@ function webhookStatusCommand(action) {
|
|
|
36970
39358
|
}
|
|
36971
39359
|
};
|
|
36972
39360
|
}
|
|
39361
|
+
var ORG_WORKSPACE_COLUMNS = [
|
|
39362
|
+
{ header: "UUID", getValue: (item) => item.uuid },
|
|
39363
|
+
{ header: "NAME", getValue: (item) => item.name, maxWidth: 40 },
|
|
39364
|
+
{ header: "SLUG", getValue: (item) => item.slug },
|
|
39365
|
+
{ header: "STATUS", getValue: (item) => String(item.status) },
|
|
39366
|
+
{ header: "TIMEZONE", getValue: (item) => item.timezone ?? "-" },
|
|
39367
|
+
{ header: "CREATED", getValue: (item) => item.createdAt }
|
|
39368
|
+
];
|
|
39369
|
+
var orgWorkspaceCommands = [
|
|
39370
|
+
{
|
|
39371
|
+
path: ["org", "workspaces", "list"],
|
|
39372
|
+
description: "List every workspace in an organization, newest page first (read-only). Prefer this over `gr workspaces list --org` for anything fleet-wide: that command reads an unpaginated endpoint and sees only the first page of workspaces. Use --all to fetch the complete list.",
|
|
39373
|
+
requiresWorkspace: false,
|
|
39374
|
+
args: [
|
|
39375
|
+
ORG_UUID_ARG2,
|
|
39376
|
+
{ name: "page", description: "Page number (default: 1)" },
|
|
39377
|
+
{ name: "page-size", description: "Page size" },
|
|
39378
|
+
{ name: "all", description: "Fetch all pages", isFlag: true },
|
|
39379
|
+
{ name: "search", description: "Filter by name or slug (server-side)" }
|
|
39380
|
+
],
|
|
39381
|
+
examples: [
|
|
39382
|
+
"yarn gr org workspaces list --org $ORG_UUID --all",
|
|
39383
|
+
"yarn gr org workspaces list --org $ORG_UUID --search gastro -o json"
|
|
39384
|
+
],
|
|
39385
|
+
handler: async (hctx) => {
|
|
39386
|
+
const orgRef = requireOrgRef(hctx.args);
|
|
39387
|
+
const pag = parsePaginationArgs(hctx.args);
|
|
39388
|
+
const search = typeof hctx.args.search === "string" ? hctx.args.search : void 0;
|
|
39389
|
+
const client3 = requireAuth(hctx.ctx).apiClient;
|
|
39390
|
+
if (pag.all) {
|
|
39391
|
+
const allItems = await fetchAllPages(
|
|
39392
|
+
({ page, pageSize }) => client3.getOrganizationWorkspaces(orgRef, {
|
|
39393
|
+
page,
|
|
39394
|
+
pageSize,
|
|
39395
|
+
...search ? { search } : {}
|
|
39396
|
+
})
|
|
39397
|
+
);
|
|
39398
|
+
outputData(allItems, hctx.ctx, ORG_WORKSPACE_COLUMNS);
|
|
39399
|
+
return;
|
|
39400
|
+
}
|
|
39401
|
+
const options = {};
|
|
39402
|
+
if (pag.page) options.page = pag.page;
|
|
39403
|
+
if (pag.pageSize) options.pageSize = pag.pageSize;
|
|
39404
|
+
if (search) options.search = search;
|
|
39405
|
+
const result2 = await client3.getOrganizationWorkspaces(orgRef, options);
|
|
39406
|
+
outputData(listResult(result2, true), hctx.ctx, ORG_WORKSPACE_COLUMNS);
|
|
39407
|
+
}
|
|
39408
|
+
}
|
|
39409
|
+
];
|
|
39410
|
+
function requireArg2(args, name) {
|
|
39411
|
+
const value = args[name];
|
|
39412
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
39413
|
+
throw new CLIError(`Missing required argument: --${name}`);
|
|
39414
|
+
}
|
|
39415
|
+
return value.trim();
|
|
39416
|
+
}
|
|
39417
|
+
function optionalArg(args, name) {
|
|
39418
|
+
const value = args[name];
|
|
39419
|
+
if (value === void 0) return void 0;
|
|
39420
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
39421
|
+
throw new CLIError(`Invalid argument: --${name}`);
|
|
39422
|
+
}
|
|
39423
|
+
return value.trim();
|
|
39424
|
+
}
|
|
39425
|
+
var DELIVERY_LOG_COLUMNS = [
|
|
39426
|
+
{ header: "EVENT", getValue: (item) => item.eventType },
|
|
39427
|
+
{ header: "STATUS", getValue: (item) => item.status },
|
|
39428
|
+
{ header: "DEDUPE KEY", getValue: (item) => item.dedupeKey, maxWidth: 48 },
|
|
39429
|
+
{ header: "OCCURRED", getValue: (item) => item.occurredAt },
|
|
39430
|
+
{ header: "ATTEMPTS", getValue: (item) => String(item.attempts) },
|
|
39431
|
+
{ header: "LAST FAILURE", getValue: (item) => item.lastFailureClass || "\u2014" }
|
|
39432
|
+
];
|
|
36973
39433
|
var webhookCommands = [
|
|
36974
39434
|
webhookStatusCommand("pause"),
|
|
36975
39435
|
webhookStatusCommand("resume"),
|
|
39436
|
+
{
|
|
39437
|
+
path: ["org", "webhooks", "create"],
|
|
39438
|
+
description: "Create an organization webhook endpoint. The signing secret is printed once in this response and is not shown again. Requires organization admin access.",
|
|
39439
|
+
mutates: true,
|
|
39440
|
+
requiresWorkspace: false,
|
|
39441
|
+
args: [
|
|
39442
|
+
ORG_UUID_ARG2,
|
|
39443
|
+
{ name: "name", description: "Endpoint name", required: true },
|
|
39444
|
+
{ name: "url", description: "HTTPS endpoint URL", required: true },
|
|
39445
|
+
{
|
|
39446
|
+
name: "event-type",
|
|
39447
|
+
description: "Subscribed event type (repeat for more than one)",
|
|
39448
|
+
required: true,
|
|
39449
|
+
repeatable: true
|
|
39450
|
+
},
|
|
39451
|
+
{
|
|
39452
|
+
name: "workspace-uuid",
|
|
39453
|
+
description: "Limit coverage to this workspace (repeatable). Omit to cover every workspace in the organization.",
|
|
39454
|
+
repeatable: true
|
|
39455
|
+
},
|
|
39456
|
+
{
|
|
39457
|
+
name: "signing-secret",
|
|
39458
|
+
description: "Client-supplied signing secret. Omit to have one generated."
|
|
39459
|
+
}
|
|
39460
|
+
],
|
|
39461
|
+
examples: [
|
|
39462
|
+
'yarn gr org webhooks create --org $ORG_UUID --name "Rysun" --url https://example.com/hook --event-type data_record.created --allow-write'
|
|
39463
|
+
],
|
|
39464
|
+
handler: async (hctx) => {
|
|
39465
|
+
const eventTypes = repeatedValues(hctx.args, "event-type");
|
|
39466
|
+
if (eventTypes.length === 0) {
|
|
39467
|
+
throw new CLIError("Missing required argument: --event-type");
|
|
39468
|
+
}
|
|
39469
|
+
const signingSecret = optionalArg(hctx.args, "signing-secret");
|
|
39470
|
+
const created = await requireAuth(hctx.ctx).apiClient.createOrgWebhookEndpoint(
|
|
39471
|
+
requireOrgRef(hctx.args),
|
|
39472
|
+
{
|
|
39473
|
+
name: requireArg2(hctx.args, "name"),
|
|
39474
|
+
url: requireArg2(hctx.args, "url"),
|
|
39475
|
+
eventTypes,
|
|
39476
|
+
workspaceUuids: repeatedValues(hctx.args, "workspace-uuid"),
|
|
39477
|
+
...signingSecret ? { signingSecret } : {}
|
|
39478
|
+
}
|
|
39479
|
+
);
|
|
39480
|
+
hint(hctx.ctx, ["Signing secret is in this response and is not shown again."]);
|
|
39481
|
+
outputSingle(created, hctx.ctx);
|
|
39482
|
+
}
|
|
39483
|
+
},
|
|
39484
|
+
{
|
|
39485
|
+
path: ["org", "webhooks", "update"],
|
|
39486
|
+
description: "Update an organization webhook endpoint. A rotated signing secret is not echoed. Requires organization admin access.",
|
|
39487
|
+
mutates: true,
|
|
39488
|
+
requiresWorkspace: false,
|
|
39489
|
+
args: [
|
|
39490
|
+
ORG_UUID_ARG2,
|
|
39491
|
+
{ name: "endpoint-uuid", aliases: ["id"], description: "Endpoint UUID", required: true },
|
|
39492
|
+
{ name: "name", description: "New endpoint name" },
|
|
39493
|
+
{ name: "url", description: "New HTTPS endpoint URL" },
|
|
39494
|
+
{
|
|
39495
|
+
name: "event-type",
|
|
39496
|
+
description: "Replace the subscription list (repeat for more than one)",
|
|
39497
|
+
repeatable: true
|
|
39498
|
+
},
|
|
39499
|
+
{
|
|
39500
|
+
name: "workspace-uuid",
|
|
39501
|
+
description: "Replace workspace coverage with this workspace (repeatable)",
|
|
39502
|
+
repeatable: true
|
|
39503
|
+
},
|
|
39504
|
+
{
|
|
39505
|
+
name: "all-workspaces",
|
|
39506
|
+
description: "Cover every workspace in the organization",
|
|
39507
|
+
isFlag: true
|
|
39508
|
+
},
|
|
39509
|
+
{ name: "status", description: "active or paused" },
|
|
39510
|
+
{
|
|
39511
|
+
name: "signing-secret",
|
|
39512
|
+
description: "Rotate the signing secret. The new value is not printed."
|
|
39513
|
+
}
|
|
39514
|
+
],
|
|
39515
|
+
examples: [
|
|
39516
|
+
"yarn gr org webhooks update --org $ORG_UUID --endpoint-uuid $ENDPOINT_UUID --status paused --allow-write"
|
|
39517
|
+
],
|
|
39518
|
+
handler: async (hctx) => {
|
|
39519
|
+
const workspaceUuids = repeatedValues(hctx.args, "workspace-uuid");
|
|
39520
|
+
const allWorkspaces = hctx.args["all-workspaces"] === true;
|
|
39521
|
+
if (allWorkspaces && workspaceUuids.length > 0) {
|
|
39522
|
+
throw new CLIError("Pass either --all-workspaces or --workspace-uuid, not both");
|
|
39523
|
+
}
|
|
39524
|
+
const eventTypes = repeatedValues(hctx.args, "event-type");
|
|
39525
|
+
const status = optionalArg(hctx.args, "status");
|
|
39526
|
+
if (status !== void 0 && status !== "active" && status !== "paused") {
|
|
39527
|
+
throw new CLIError("--status must be active or paused");
|
|
39528
|
+
}
|
|
39529
|
+
const signingSecret = optionalArg(hctx.args, "signing-secret");
|
|
39530
|
+
const data = {};
|
|
39531
|
+
const name = optionalArg(hctx.args, "name");
|
|
39532
|
+
const url = optionalArg(hctx.args, "url");
|
|
39533
|
+
if (name) data.name = name;
|
|
39534
|
+
if (url) data.url = url;
|
|
39535
|
+
if (eventTypes.length > 0) data.eventTypes = eventTypes;
|
|
39536
|
+
if (allWorkspaces) data.workspaceUuids = [];
|
|
39537
|
+
else if (workspaceUuids.length > 0) data.workspaceUuids = workspaceUuids;
|
|
39538
|
+
if (status) data.status = status;
|
|
39539
|
+
if (signingSecret) data.signingSecret = signingSecret;
|
|
39540
|
+
if (Object.keys(data).length === 0) {
|
|
39541
|
+
throw new CLIError("Nothing to update");
|
|
39542
|
+
}
|
|
39543
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.updateOrgWebhookEndpoint(
|
|
39544
|
+
requireOrgRef(hctx.args),
|
|
39545
|
+
requireWebhookEndpointUuid(hctx.args),
|
|
39546
|
+
data
|
|
39547
|
+
);
|
|
39548
|
+
const { signingSecret: _rotatedSecret, ...printable } = result2;
|
|
39549
|
+
outputSingle(printable, hctx.ctx, ORG_WEBHOOK_COLUMNS);
|
|
39550
|
+
}
|
|
39551
|
+
},
|
|
39552
|
+
{
|
|
39553
|
+
path: ["org", "webhooks", "test-send"],
|
|
39554
|
+
description: "Send one test payload to an endpoint. Writes no delivery row. Requires organization admin access.",
|
|
39555
|
+
mutates: true,
|
|
39556
|
+
requiresWorkspace: false,
|
|
39557
|
+
args: [
|
|
39558
|
+
ORG_UUID_ARG2,
|
|
39559
|
+
{ name: "endpoint-uuid", aliases: ["id"], description: "Endpoint UUID", required: true },
|
|
39560
|
+
{ name: "event-type", description: "Event type to send", required: true },
|
|
39561
|
+
{
|
|
39562
|
+
name: "payload",
|
|
39563
|
+
description: "JSON object to send instead of the server sample"
|
|
39564
|
+
}
|
|
39565
|
+
],
|
|
39566
|
+
examples: [
|
|
39567
|
+
"yarn gr org webhooks test-send --org $ORG_UUID --endpoint-uuid $ENDPOINT_UUID --event-type data_record.created --allow-write"
|
|
39568
|
+
],
|
|
39569
|
+
handler: async (hctx) => {
|
|
39570
|
+
const rawPayload = optionalArg(hctx.args, "payload");
|
|
39571
|
+
let payload;
|
|
39572
|
+
if (rawPayload !== void 0) {
|
|
39573
|
+
let parsed;
|
|
39574
|
+
try {
|
|
39575
|
+
parsed = JSON.parse(rawPayload);
|
|
39576
|
+
} catch {
|
|
39577
|
+
throw new CLIError("--payload must be a JSON object");
|
|
39578
|
+
}
|
|
39579
|
+
if (parsed === null || typeof parsed !== "object" || Array.isArray(parsed)) {
|
|
39580
|
+
throw new CLIError("--payload must be a JSON object");
|
|
39581
|
+
}
|
|
39582
|
+
payload = parsed;
|
|
39583
|
+
}
|
|
39584
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.testOrgWebhookEndpoint(
|
|
39585
|
+
requireOrgRef(hctx.args),
|
|
39586
|
+
requireWebhookEndpointUuid(hctx.args),
|
|
39587
|
+
{
|
|
39588
|
+
eventType: requireArg2(hctx.args, "event-type"),
|
|
39589
|
+
...payload ? { payload } : {}
|
|
39590
|
+
}
|
|
39591
|
+
);
|
|
39592
|
+
outputSingle(result2, hctx.ctx);
|
|
39593
|
+
}
|
|
39594
|
+
},
|
|
39595
|
+
{
|
|
39596
|
+
path: ["org", "webhooks", "deliveries"],
|
|
39597
|
+
description: "Delivery log for one organization webhook endpoint. Event type, status, dedupe key, occurred-at, attempt count, and last failure class. The event envelope is not printed.",
|
|
39598
|
+
requiresWorkspace: false,
|
|
39599
|
+
args: [
|
|
39600
|
+
ORG_UUID_ARG2,
|
|
39601
|
+
{ name: "endpoint-uuid", aliases: ["id"], description: "Endpoint UUID", required: true },
|
|
39602
|
+
{ name: "limit", description: "Page size (default 50)" }
|
|
39603
|
+
],
|
|
39604
|
+
examples: ["yarn gr org webhooks deliveries --org $ORG_UUID --endpoint-uuid $ENDPOINT_UUID"],
|
|
39605
|
+
handler: async (hctx) => {
|
|
39606
|
+
const limitRaw = optionalArg(hctx.args, "limit");
|
|
39607
|
+
let limit = 50;
|
|
39608
|
+
if (limitRaw !== void 0) {
|
|
39609
|
+
limit = Number(limitRaw);
|
|
39610
|
+
if (!Number.isInteger(limit) || limit < 1) {
|
|
39611
|
+
throw new CLIError("--limit must be a positive integer");
|
|
39612
|
+
}
|
|
39613
|
+
}
|
|
39614
|
+
const page = await requireAuth(hctx.ctx).apiClient.listOrgWebhookEndpointDeliveries(
|
|
39615
|
+
requireOrgRef(hctx.args),
|
|
39616
|
+
requireWebhookEndpointUuid(hctx.args),
|
|
39617
|
+
limit
|
|
39618
|
+
);
|
|
39619
|
+
const rows = page.items.map((item) => {
|
|
39620
|
+
const latest = item.attempts.at(-1);
|
|
39621
|
+
return {
|
|
39622
|
+
eventType: item.eventType,
|
|
39623
|
+
status: item.status,
|
|
39624
|
+
dedupeKey: item.dedupeKey,
|
|
39625
|
+
occurredAt: item.occurredAt,
|
|
39626
|
+
attempts: item.attempts.length,
|
|
39627
|
+
lastFailureClass: latest?.failureClass ?? latest?.errorType ?? ""
|
|
39628
|
+
};
|
|
39629
|
+
});
|
|
39630
|
+
outputData(rows, hctx.ctx, DELIVERY_LOG_COLUMNS);
|
|
39631
|
+
}
|
|
39632
|
+
},
|
|
39633
|
+
{
|
|
39634
|
+
path: ["org", "webhooks", "discard-pending"],
|
|
39635
|
+
description: "Expire a paused or disabled endpoint's pending deliveries so a resume does not re-send a backlog the receiver keeps rejecting. Dead-lettered deliveries are untouched; expired ones stay replayable. Requires organization admin access.",
|
|
39636
|
+
mutates: true,
|
|
39637
|
+
requiresWorkspace: false,
|
|
39638
|
+
args: [
|
|
39639
|
+
ORG_UUID_ARG2,
|
|
39640
|
+
{ name: "endpoint-uuid", aliases: ["id"], description: "Endpoint UUID", required: true }
|
|
39641
|
+
],
|
|
39642
|
+
examples: [
|
|
39643
|
+
"yarn gr org webhooks discard-pending --org $ORG_UUID --endpoint-uuid $ENDPOINT_UUID --allow-write"
|
|
39644
|
+
],
|
|
39645
|
+
handler: async (hctx) => {
|
|
39646
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.discardPendingOrgWebhookDeliveries(
|
|
39647
|
+
requireOrgRef(hctx.args),
|
|
39648
|
+
requireWebhookEndpointUuid(hctx.args)
|
|
39649
|
+
);
|
|
39650
|
+
outputSingle(result2, hctx.ctx);
|
|
39651
|
+
}
|
|
39652
|
+
},
|
|
36976
39653
|
{
|
|
36977
39654
|
path: ["org", "webhooks", "list"],
|
|
36978
39655
|
description: "List an organization's webhook endpoints (read-only). Each row carries the destination host fingerprint and a masked signing secret, never the URL or a usable secret.",
|
|
@@ -37005,9 +39682,93 @@ var webhookCommands = [
|
|
|
37005
39682
|
}
|
|
37006
39683
|
}
|
|
37007
39684
|
];
|
|
39685
|
+
var WORKSPACE_LABEL_COLUMNS = [
|
|
39686
|
+
{ header: "SLUG", getValue: (item) => item.slug },
|
|
39687
|
+
{ header: "NAME", getValue: (item) => item.name },
|
|
39688
|
+
{ header: "WORKSPACES", getValue: (item) => String(item.workspaceCount) },
|
|
39689
|
+
{ header: "WEBHOOK SELECTORS", getValue: (item) => String(item.webhookSelectorCount) },
|
|
39690
|
+
{ header: "UUID", getValue: (item) => item.uuid }
|
|
39691
|
+
];
|
|
39692
|
+
var LABEL_SUMMARY_COLUMNS = [
|
|
39693
|
+
{ header: "SLUG", getValue: (item) => item.slug },
|
|
39694
|
+
{ header: "NAME", getValue: (item) => item.name },
|
|
39695
|
+
{ header: "UUID", getValue: (item) => item.uuid }
|
|
39696
|
+
];
|
|
39697
|
+
function requireWorkspaceUuidArg(args) {
|
|
39698
|
+
const value = args["workspace-uuid"] ?? args.workspace;
|
|
39699
|
+
if (typeof value !== "string" || !value.trim()) {
|
|
39700
|
+
throw new CLIError("Missing required argument: --workspace-uuid");
|
|
39701
|
+
}
|
|
39702
|
+
return value.trim();
|
|
39703
|
+
}
|
|
39704
|
+
var WORKSPACE_UUID_ARG = {
|
|
39705
|
+
name: "workspace-uuid",
|
|
39706
|
+
aliases: ["workspace"],
|
|
39707
|
+
description: "Workspace UUID (a workspace of this organization)",
|
|
39708
|
+
required: true
|
|
39709
|
+
};
|
|
39710
|
+
var workspaceLabelCommands = [
|
|
39711
|
+
{
|
|
39712
|
+
path: ["org", "labels", "list"],
|
|
39713
|
+
description: "List the organization's workspace labels, with how many workspaces carry each and how many webhook label selectors require it",
|
|
39714
|
+
requiresWorkspace: false,
|
|
39715
|
+
args: [ORG_UUID_ARG2],
|
|
39716
|
+
examples: ["yarn gr org labels list --org $ORG_UUID -o json"],
|
|
39717
|
+
handler: async (hctx) => {
|
|
39718
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.listWorkspaceLabels(
|
|
39719
|
+
requireOrgRef(hctx.args)
|
|
39720
|
+
);
|
|
39721
|
+
outputData(result2, hctx.ctx, WORKSPACE_LABEL_COLUMNS);
|
|
39722
|
+
}
|
|
39723
|
+
},
|
|
39724
|
+
{
|
|
39725
|
+
path: ["org", "workspaces", "labels", "get"],
|
|
39726
|
+
description: "Show the labels one workspace of the organization carries",
|
|
39727
|
+
requiresWorkspace: false,
|
|
39728
|
+
args: [ORG_UUID_ARG2, WORKSPACE_UUID_ARG],
|
|
39729
|
+
examples: [
|
|
39730
|
+
"yarn gr org workspaces labels get --org $ORG_UUID --workspace-uuid $WORKSPACE_UUID -o json"
|
|
39731
|
+
],
|
|
39732
|
+
handler: async (hctx) => {
|
|
39733
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.getWorkspaceLabels(
|
|
39734
|
+
requireOrgRef(hctx.args),
|
|
39735
|
+
requireWorkspaceUuidArg(hctx.args)
|
|
39736
|
+
);
|
|
39737
|
+
outputData(result2.labels, hctx.ctx, LABEL_SUMMARY_COLUMNS);
|
|
39738
|
+
}
|
|
39739
|
+
},
|
|
39740
|
+
{
|
|
39741
|
+
path: ["org", "workspaces", "labels", "set"],
|
|
39742
|
+
description: "Replace a workspace's labels with exactly the given set. Requires organization admin access. Labels the organization has not used before are created. Webhook endpoints selecting on these labels start or stop covering the workspace immediately.",
|
|
39743
|
+
mutates: true,
|
|
39744
|
+
requiresWorkspace: false,
|
|
39745
|
+
args: [
|
|
39746
|
+
ORG_UUID_ARG2,
|
|
39747
|
+
WORKSPACE_UUID_ARG,
|
|
39748
|
+
{
|
|
39749
|
+
name: "labels",
|
|
39750
|
+
description: "Comma-separated label slugs; pass an empty string to remove all labels",
|
|
39751
|
+
required: true
|
|
39752
|
+
}
|
|
39753
|
+
],
|
|
39754
|
+
examples: [
|
|
39755
|
+
"yarn gr org workspaces labels set --org $ORG_UUID --workspace-uuid $WORKSPACE_UUID --labels production,sponsor-acme --allow-write"
|
|
39756
|
+
],
|
|
39757
|
+
handler: async (hctx) => {
|
|
39758
|
+
const raw = hctx.args.labels;
|
|
39759
|
+
if (raw === void 0) throw new CLIError("Missing required argument: --labels");
|
|
39760
|
+
const result2 = await requireAuth(hctx.ctx).apiClient.setWorkspaceLabels(
|
|
39761
|
+
requireOrgRef(hctx.args),
|
|
39762
|
+
requireWorkspaceUuidArg(hctx.args),
|
|
39763
|
+
{ labels: raw === "" ? [] : parseLabelList(raw) }
|
|
39764
|
+
);
|
|
39765
|
+
outputData(result2.labels, hctx.ctx, LABEL_SUMMARY_COLUMNS);
|
|
39766
|
+
}
|
|
39767
|
+
}
|
|
39768
|
+
];
|
|
37008
39769
|
var orgDomain = {
|
|
37009
39770
|
name: "org",
|
|
37010
|
-
description: "Organization membership, domains, and
|
|
39771
|
+
description: "Organization membership, domains, webhook endpoints, and workspace labels",
|
|
37011
39772
|
commands: [
|
|
37012
39773
|
{
|
|
37013
39774
|
path: ["org", "list"],
|
|
@@ -37032,7 +39793,9 @@ var orgDomain = {
|
|
|
37032
39793
|
}
|
|
37033
39794
|
},
|
|
37034
39795
|
...domainCommands,
|
|
39796
|
+
...orgWorkspaceCommands,
|
|
37035
39797
|
...webhookCommands,
|
|
39798
|
+
...workspaceLabelCommands,
|
|
37036
39799
|
orgMemberUpdateCommand()
|
|
37037
39800
|
]
|
|
37038
39801
|
};
|
|
@@ -40402,6 +43165,71 @@ var ENCOUNTER_RUN_COLUMNS = [
|
|
|
40402
43165
|
getValue: (item) => summarizeReasons(item.attribution?.collections, "errorReasonCounts")
|
|
40403
43166
|
}
|
|
40404
43167
|
];
|
|
43168
|
+
var ONBOARDING_START_COLUMNS = [
|
|
43169
|
+
{ header: "MODE", getValue: (item) => item.mode ?? "" },
|
|
43170
|
+
{ header: "WORKFLOW ID", getValue: (item) => item.workflowId ?? "" },
|
|
43171
|
+
{ header: "RUN ID", getValue: (item) => item.runId ?? "" }
|
|
43172
|
+
];
|
|
43173
|
+
var ONBOARDING_PAIR_COLUMNS = [
|
|
43174
|
+
{ header: "DEPARTMENT", getValue: (item) => String(item.departmentId ?? "") },
|
|
43175
|
+
{ header: "PATIENT STATUS", getValue: (item) => item.patientStatus ?? "" },
|
|
43176
|
+
{ header: "STATUS", getValue: (item) => item.status ?? "" },
|
|
43177
|
+
{ header: "STOP REASON", getValue: (item) => item.stopReason ?? "" },
|
|
43178
|
+
{ header: "GEN", getValue: (item) => String(item.generation ?? "") },
|
|
43179
|
+
{ header: "NEXT OFFSET", getValue: (item) => String(item.nextOffset ?? "") },
|
|
43180
|
+
{ header: "PAGES (RUN)", getValue: (item) => String(item.pagesDone ?? 0) },
|
|
43181
|
+
{ header: "~FETCHED", getValue: (item) => String(item.totals?.fetched ?? 0) },
|
|
43182
|
+
{ header: "~APPLIED", getValue: (item) => String(item.totals?.applied ?? 0) },
|
|
43183
|
+
{ header: "~SKIPPED", getValue: (item) => String(item.totals?.skipped ?? 0) },
|
|
43184
|
+
{ header: "~FAILED", getValue: (item) => String(item.totals?.failed ?? 0) },
|
|
43185
|
+
{ header: "RUN ID", getValue: (item) => item.runId ?? "" }
|
|
43186
|
+
];
|
|
43187
|
+
var RESUMABLE_PAIR_STATUSES = /* @__PURE__ */ new Set([
|
|
43188
|
+
"failed",
|
|
43189
|
+
"aborted",
|
|
43190
|
+
"truncated",
|
|
43191
|
+
"pending",
|
|
43192
|
+
"running",
|
|
43193
|
+
"waiting"
|
|
43194
|
+
]);
|
|
43195
|
+
function onboardingStatusLines(status, connectionId) {
|
|
43196
|
+
const lines = [];
|
|
43197
|
+
const execution = status.execution;
|
|
43198
|
+
if (execution) {
|
|
43199
|
+
const failure = execution.failureCode ? ` (failure: ${execution.failureCode})` : "";
|
|
43200
|
+
lines.push(
|
|
43201
|
+
`Temporal execution: ${execution.workflowId} run ${execution.runId ?? "-"} \u2014 ${execution.status}${failure}`
|
|
43202
|
+
);
|
|
43203
|
+
} else {
|
|
43204
|
+
lines.push("Temporal execution: none recorded");
|
|
43205
|
+
}
|
|
43206
|
+
if (status.waitingUntil) {
|
|
43207
|
+
lines.push(
|
|
43208
|
+
`Waiting for the operator window (21:00\u201308:00 America/New_York) until ${status.waitingUntil}`
|
|
43209
|
+
);
|
|
43210
|
+
}
|
|
43211
|
+
if (status.preview) {
|
|
43212
|
+
const previewPairs = status.preview.pairs ?? [];
|
|
43213
|
+
const admitted = previewPairs.reduce((n, p) => n + (p.totals?.admitted ?? 0), 0);
|
|
43214
|
+
const notAdmitted = previewPairs.reduce(
|
|
43215
|
+
(n, p) => n + (p.totals?.notAdmitted ?? 0),
|
|
43216
|
+
0
|
|
43217
|
+
);
|
|
43218
|
+
lines.push(
|
|
43219
|
+
`Latest preview: ${previewPairs.length} pair(s), ~${admitted} admission-eligible (incl. already-linked), ~${notAdmitted} not admitted (read-only)`
|
|
43220
|
+
);
|
|
43221
|
+
}
|
|
43222
|
+
lines.push("Counts are approximate.");
|
|
43223
|
+
const unfinished = (status.pairs ?? []).some(
|
|
43224
|
+
(p) => p.inCurrentCohort && RESUMABLE_PAIR_STATUSES.has(p.status) && p.runId
|
|
43225
|
+
);
|
|
43226
|
+
if (unfinished && execution?.status !== "running") {
|
|
43227
|
+
lines.push(
|
|
43228
|
+
`Unfinished pairs continue only on an explicit resume: gr fhir-connections onboarding-import start --id ${connectionId} --resume --allow-write`
|
|
43229
|
+
);
|
|
43230
|
+
}
|
|
43231
|
+
return lines;
|
|
43232
|
+
}
|
|
40405
43233
|
var fhirConnectionsDomain = {
|
|
40406
43234
|
name: "fhir-connections",
|
|
40407
43235
|
description: "Manage FHIR connections",
|
|
@@ -40447,8 +43275,8 @@ var fhirConnectionsDomain = {
|
|
|
40447
43275
|
],
|
|
40448
43276
|
examples: [
|
|
40449
43277
|
"fhir-connections encounter-sync runs --id 12",
|
|
40450
|
-
"fhir-connections encounter-sync runs --id 12 --output json",
|
|
40451
|
-
"fhir-connections encounter-sync runs --id 12 --limit 5 --output json"
|
|
43278
|
+
"fhir-connections encounter-sync runs --id 12 --output-format json",
|
|
43279
|
+
"fhir-connections encounter-sync runs --id 12 --limit 5 --output-format json"
|
|
40452
43280
|
],
|
|
40453
43281
|
handler: async ({ ctx, workspace, args }) => {
|
|
40454
43282
|
const limit = args["limit"] ? Number(args["limit"]) : 20;
|
|
@@ -40459,6 +43287,77 @@ var fhirConnectionsDomain = {
|
|
|
40459
43287
|
);
|
|
40460
43288
|
outputData(runs, ctx, ENCOUNTER_RUN_COLUMNS);
|
|
40461
43289
|
}
|
|
43290
|
+
},
|
|
43291
|
+
{
|
|
43292
|
+
// athenahealth onboarding import (PR-C): one explicit, audited
|
|
43293
|
+
// operator execution per connection, at most 50 pages per pair per
|
|
43294
|
+
// run. Thin over the SDK; the server decides everything.
|
|
43295
|
+
path: ["fhir-connections", "onboarding-import", "start"],
|
|
43296
|
+
description: "Start an athenahealth onboarding import (or --resume / --override / --dry-run preview)",
|
|
43297
|
+
requiresWorkspace: true,
|
|
43298
|
+
mutates: true,
|
|
43299
|
+
args: [
|
|
43300
|
+
{ name: "id", description: "FHIR connection ID", required: true },
|
|
43301
|
+
{
|
|
43302
|
+
name: "dry-run",
|
|
43303
|
+
description: "Preview: read and classify admission only, write no Members",
|
|
43304
|
+
isFlag: true
|
|
43305
|
+
},
|
|
43306
|
+
{
|
|
43307
|
+
name: "resume",
|
|
43308
|
+
description: "Continue unfinished (failed, truncated, aborted) pairs at their stored frontier",
|
|
43309
|
+
isFlag: true
|
|
43310
|
+
},
|
|
43311
|
+
{
|
|
43312
|
+
name: "override",
|
|
43313
|
+
description: "Rescan completed pairs from offset 0 under a new generation",
|
|
43314
|
+
isFlag: true
|
|
43315
|
+
}
|
|
43316
|
+
],
|
|
43317
|
+
examples: [
|
|
43318
|
+
"fhir-connections onboarding-import start --id 12 --dry-run --allow-write",
|
|
43319
|
+
"fhir-connections onboarding-import start --id 12 --allow-write",
|
|
43320
|
+
"fhir-connections onboarding-import start --id 12 --resume --allow-write"
|
|
43321
|
+
],
|
|
43322
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
43323
|
+
const connectionId = requireNumber(args, "id");
|
|
43324
|
+
const started = await requireAuth(ctx).apiClient.fhirStartOnboardingImport(
|
|
43325
|
+
workspace,
|
|
43326
|
+
connectionId,
|
|
43327
|
+
{
|
|
43328
|
+
dryRun: args["dry-run"] === true,
|
|
43329
|
+
resume: args["resume"] === true,
|
|
43330
|
+
override: args["override"] === true
|
|
43331
|
+
}
|
|
43332
|
+
);
|
|
43333
|
+
outputSingle(started, ctx, ONBOARDING_START_COLUMNS);
|
|
43334
|
+
hint(ctx, [
|
|
43335
|
+
`Started. Follow progress with: gr fhir-connections onboarding-import status --id ${connectionId}`
|
|
43336
|
+
]);
|
|
43337
|
+
}
|
|
43338
|
+
},
|
|
43339
|
+
{
|
|
43340
|
+
path: ["fhir-connections", "onboarding-import", "status"],
|
|
43341
|
+
description: "Show athenahealth onboarding-import progress and its Temporal execution (read-only)",
|
|
43342
|
+
requiresWorkspace: true,
|
|
43343
|
+
args: [{ name: "id", description: "FHIR connection ID", required: true }],
|
|
43344
|
+
examples: [
|
|
43345
|
+
"fhir-connections onboarding-import status --id 12",
|
|
43346
|
+
"fhir-connections onboarding-import status --id 12 --output-format json"
|
|
43347
|
+
],
|
|
43348
|
+
handler: async ({ ctx, workspace, args }) => {
|
|
43349
|
+
const connectionId = requireNumber(args, "id");
|
|
43350
|
+
const status = await requireAuth(ctx).apiClient.fhirGetOnboardingImportStatus(
|
|
43351
|
+
workspace,
|
|
43352
|
+
connectionId
|
|
43353
|
+
);
|
|
43354
|
+
if (ctx.jq || (ctx.outputFormat ?? "table") !== "table") {
|
|
43355
|
+
outputSingle(status, ctx);
|
|
43356
|
+
return;
|
|
43357
|
+
}
|
|
43358
|
+
outputData(status.pairs, ctx, ONBOARDING_PAIR_COLUMNS);
|
|
43359
|
+
hint(ctx, onboardingStatusLines(status, connectionId));
|
|
43360
|
+
}
|
|
40462
43361
|
}
|
|
40463
43362
|
]
|
|
40464
43363
|
};
|
|
@@ -40805,15 +43704,18 @@ var hubspotDomain = {
|
|
|
40805
43704
|
mutates: true,
|
|
40806
43705
|
requiresWorkspace: true,
|
|
40807
43706
|
examples: [
|
|
40808
|
-
"#
|
|
43707
|
+
"# When the response shows platformAppAvailable=true, the workspace connects through",
|
|
43708
|
+
"# the shared Gravity Rail HubSpot app: install, then authorize. That's all.",
|
|
43709
|
+
"gr hubspot install -w <ws> --allow-write",
|
|
43710
|
+
"gr hubspot authorize -w <ws> --allow-write # then open the returned authorizeUrl",
|
|
43711
|
+
"",
|
|
43712
|
+
"# To use your own HubSpot app instead (a Projects-platform app; HubSpot no longer",
|
|
43713
|
+
"# allows new private or developer apps):",
|
|
40809
43714
|
'# 1. install -> creates the connection; the response includes the OAuth "callbackUrl"',
|
|
40810
|
-
"# 2. in HubSpot:
|
|
40811
|
-
"#
|
|
43715
|
+
"# 2. in HubSpot: give your app that callbackUrl as a Redirect URL, with CRM scopes",
|
|
43716
|
+
"# (contacts/companies/deals read+write). Copy the Client ID + Secret.",
|
|
40812
43717
|
"# 3. configure -> save that Client ID / Secret",
|
|
40813
|
-
'# 4. authorize -> returns an "authorizeUrl"; open it to grant access.
|
|
40814
|
-
"# reports configured=true and connected=true.",
|
|
40815
|
-
"",
|
|
40816
|
-
"gr hubspot install -w <ws> --allow-write",
|
|
43718
|
+
'# 4. authorize -> returns an "authorizeUrl"; open it to grant access.',
|
|
40817
43719
|
"gr hubspot status -w <ws> # read back callbackUrl + configured/connected",
|
|
40818
43720
|
`gr hubspot configure -w <ws> --allow-write -d '{"clientId":"...","clientSecret":"..."}'`,
|
|
40819
43721
|
"gr hubspot authorize -w <ws> --allow-write # then open the returned authorizeUrl"
|
|
@@ -41838,6 +44740,7 @@ function registerPublicDomains(registry) {
|
|
|
41838
44740
|
registry.register(calendarsDomain);
|
|
41839
44741
|
registry.register(qualificationsDomain);
|
|
41840
44742
|
registry.register(queriesDomain);
|
|
44743
|
+
registry.register(dataReportsDomain);
|
|
41841
44744
|
registry.register(personasDomain);
|
|
41842
44745
|
registry.register(metricsDomain);
|
|
41843
44746
|
registry.register(journeysDomain);
|
|
@@ -46405,11 +49308,8 @@ var topLevelCommands = [
|
|
|
46405
49308
|
// src/lib.ts
|
|
46406
49309
|
init_concierge_api();
|
|
46407
49310
|
|
|
46408
|
-
// package.json
|
|
46409
|
-
var package_default = {
|
|
46410
|
-
version: "0.53.1"};
|
|
46411
|
-
|
|
46412
49311
|
// src/gr.ts
|
|
49312
|
+
init_package();
|
|
46413
49313
|
var VERSION = package_default.version;
|
|
46414
49314
|
function createRegistry() {
|
|
46415
49315
|
const registry = new CommandRegistry();
|
|
@@ -46491,7 +49391,7 @@ main().catch(handleError);
|
|
|
46491
49391
|
/*! Bundled license information:
|
|
46492
49392
|
|
|
46493
49393
|
js-yaml/dist/js-yaml.mjs:
|
|
46494
|
-
(*! js-yaml 5.4.
|
|
49394
|
+
(*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT *)
|
|
46495
49395
|
*/
|
|
46496
49396
|
//# sourceMappingURL=gr.js.map
|
|
46497
49397
|
//# sourceMappingURL=gr.js.map
|