UNPKG

mui-outlined-phone-input

Version:

A phone number input component for React mimicking the MUI outlined input

1,260 lines (1,258 loc) 654 kB
var Vl = Object.defineProperty; var Wl = (e, t, n) => t in e ? Vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n; var qn = (e, t, n) => Wl(e, typeof t != "symbol" ? t + "" : t, n); import * as C from "react"; import Kt, { forwardRef as Gl, useContext as Hl, useState as lr, useRef as zl } from "react"; import * as Yl from "react-dom"; import Xn from "react-dom"; function Kl(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } var Jn = { exports: {} }, hn = {}; /** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var ji; function ql() { if (ji) return hn; ji = 1; var e = Kt, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 }; function s(d, c, u) { var f, m = {}, h = null, y = null; u !== void 0 && (h = "" + u), c.key !== void 0 && (h = "" + c.key), c.ref !== void 0 && (y = c.ref); for (f in c) r.call(c, f) && !a.hasOwnProperty(f) && (m[f] = c[f]); if (d && d.defaultProps) for (f in c = d.defaultProps, c) m[f] === void 0 && (m[f] = c[f]); return { $$typeof: t, type: d, key: h, ref: y, props: m, _owner: o.current }; } return hn.Fragment = n, hn.jsx = s, hn.jsxs = s, hn; } var $n = {}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Bi; function Xl() { return Bi || (Bi = 1, process.env.NODE_ENV !== "production" && function() { var e = Kt, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), d = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), $ = Symbol.iterator, l = "@@iterator"; function E(b) { if (b === null || typeof b != "object") return null; var k = $ && b[$] || b[l]; return typeof k == "function" ? k : null; } var T = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function P(b) { { for (var k = arguments.length, Y = new Array(k > 1 ? k - 1 : 0), ie = 1; ie < k; ie++) Y[ie - 1] = arguments[ie]; v("error", b, Y); } } function v(b, k, Y) { { var ie = T.ReactDebugCurrentFrame, me = ie.getStackAddendum(); me !== "" && (k += "%s", Y = Y.concat([me])); var Te = Y.map(function(ue) { return String(ue); }); Te.unshift("Warning: " + k), Function.prototype.apply.call(console[b], console, Te); } } var S = !1, g = !1, _ = !1, I = !1, A = !1, M; M = Symbol.for("react.module.reference"); function p(b) { return !!(typeof b == "string" || typeof b == "function" || b === r || b === a || A || b === o || b === u || b === f || I || b === y || S || g || _ || typeof b == "object" && b !== null && (b.$$typeof === h || b.$$typeof === m || b.$$typeof === s || b.$$typeof === d || b.$$typeof === c || // This needs to include all possible module reference object // types supported by any Flight configuration anywhere since // we don't know which Flight build this will end up being used // with. b.$$typeof === M || b.getModuleId !== void 0)); } function N(b, k, Y) { var ie = b.displayName; if (ie) return ie; var me = k.displayName || k.name || ""; return me !== "" ? Y + "(" + me + ")" : Y; } function F(b) { return b.displayName || "Context"; } function V(b) { if (b == null) return null; if (typeof b.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof b == "function") return b.displayName || b.name || null; if (typeof b == "string") return b; switch (b) { case r: return "Fragment"; case n: return "Portal"; case a: return "Profiler"; case o: return "StrictMode"; case u: return "Suspense"; case f: return "SuspenseList"; } if (typeof b == "object") switch (b.$$typeof) { case d: var k = b; return F(k) + ".Consumer"; case s: var Y = b; return F(Y._context) + ".Provider"; case c: return N(b, b.render, "ForwardRef"); case m: var ie = b.displayName || null; return ie !== null ? ie : V(b.type) || "Memo"; case h: { var me = b, Te = me._payload, ue = me._init; try { return V(ue(Te)); } catch { return null; } } } return null; } var U = Object.assign, D = 0, L, K, re, G, w, j, H; function W() { } W.__reactDisabledLog = !0; function z() { { if (D === 0) { L = console.log, K = console.info, re = console.warn, G = console.error, w = console.group, j = console.groupCollapsed, H = console.groupEnd; var b = { configurable: !0, enumerable: !0, value: W, writable: !0 }; Object.defineProperties(console, { info: b, log: b, warn: b, error: b, group: b, groupCollapsed: b, groupEnd: b }); } D++; } } function X() { { if (D--, D === 0) { var b = { configurable: !0, enumerable: !0, writable: !0 }; Object.defineProperties(console, { log: U({}, b, { value: L }), info: U({}, b, { value: K }), warn: U({}, b, { value: re }), error: U({}, b, { value: G }), group: U({}, b, { value: w }), groupCollapsed: U({}, b, { value: j }), groupEnd: U({}, b, { value: H }) }); } D < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue."); } } var Z = T.ReactCurrentDispatcher, q; function ee(b, k, Y) { { if (q === void 0) try { throw Error(); } catch (me) { var ie = me.stack.trim().match(/\n( *(at )?)/); q = ie && ie[1] || ""; } return ` ` + q + b; } } var J = !1, B; { var Q = typeof WeakMap == "function" ? WeakMap : Map; B = new Q(); } function x(b, k) { if (!b || J) return ""; { var Y = B.get(b); if (Y !== void 0) return Y; } var ie; J = !0; var me = Error.prepareStackTrace; Error.prepareStackTrace = void 0; var Te; Te = Z.current, Z.current = null, z(); try { if (k) { var ue = function() { throw Error(); }; if (Object.defineProperty(ue.prototype, "props", { set: function() { throw Error(); } }), typeof Reflect == "object" && Reflect.construct) { try { Reflect.construct(ue, []); } catch (at) { ie = at; } Reflect.construct(b, [], ue); } else { try { ue.call(); } catch (at) { ie = at; } b.call(ue.prototype); } } else { try { throw Error(); } catch (at) { ie = at; } b(); } } catch (at) { if (at && ie && typeof at.stack == "string") { for (var le = at.stack.split(` `), rt = ie.stack.split(` `), Le = le.length - 1, Ve = rt.length - 1; Le >= 1 && Ve >= 0 && le[Le] !== rt[Ve]; ) Ve--; for (; Le >= 1 && Ve >= 0; Le--, Ve--) if (le[Le] !== rt[Ve]) { if (Le !== 1 || Ve !== 1) do if (Le--, Ve--, Ve < 0 || le[Le] !== rt[Ve]) { var mt = ` ` + le[Le].replace(" at new ", " at "); return b.displayName && mt.includes("<anonymous>") && (mt = mt.replace("<anonymous>", b.displayName)), typeof b == "function" && B.set(b, mt), mt; } while (Le >= 1 && Ve >= 0); break; } } } finally { J = !1, Z.current = Te, X(), Error.prepareStackTrace = me; } var Qt = b ? b.displayName || b.name : "", Gt = Qt ? ee(Qt) : ""; return typeof b == "function" && B.set(b, Gt), Gt; } function ae(b, k, Y) { return x(b, !1); } function oe(b) { var k = b.prototype; return !!(k && k.isReactComponent); } function de(b, k, Y) { if (b == null) return ""; if (typeof b == "function") return x(b, oe(b)); if (typeof b == "string") return ee(b); switch (b) { case u: return ee("Suspense"); case f: return ee("SuspenseList"); } if (typeof b == "object") switch (b.$$typeof) { case c: return ae(b.render); case m: return de(b.type, k, Y); case h: { var ie = b, me = ie._payload, Te = ie._init; try { return de(Te(me), k, Y); } catch { } } } return ""; } var ke = Object.prototype.hasOwnProperty, Ze = {}, He = T.ReactDebugCurrentFrame; function be(b) { if (b) { var k = b._owner, Y = de(b.type, b._source, k ? k.type : null); He.setExtraStackFrame(Y); } else He.setExtraStackFrame(null); } function ze(b, k, Y, ie, me) { { var Te = Function.call.bind(ke); for (var ue in b) if (Te(b, ue)) { var le = void 0; try { if (typeof b[ue] != "function") { var rt = Error((ie || "React class") + ": " + Y + " type `" + ue + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof b[ue] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."); throw rt.name = "Invariant Violation", rt; } le = b[ue](k, ue, ie, Y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"); } catch (Le) { le = Le; } le && !(le instanceof Error) && (be(me), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", ie || "React class", Y, ue, typeof le), be(null)), le instanceof Error && !(le.message in Ze) && (Ze[le.message] = !0, be(me), P("Failed %s type: %s", Y, le.message), be(null)); } } } var we = Array.isArray; function Ue(b) { return we(b); } function ft(b) { { var k = typeof Symbol == "function" && Symbol.toStringTag, Y = k && b[Symbol.toStringTag] || b.constructor.name || "Object"; return Y; } } function Ie(b) { try { return pt(b), !1; } catch { return !0; } } function pt(b) { return "" + b; } function dt(b) { if (Ie(b)) return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ft(b)), pt(b); } var Et = T.ReactCurrentOwner, Ct = { key: !0, ref: !0, __self: !0, __source: !0 }, lt, _e; function ne(b) { if (ke.call(b, "ref")) { var k = Object.getOwnPropertyDescriptor(b, "ref").get; if (k && k.isReactWarning) return !1; } return b.ref !== void 0; } function Qe(b) { if (ke.call(b, "key")) { var k = Object.getOwnPropertyDescriptor(b, "key").get; if (k && k.isReactWarning) return !1; } return b.key !== void 0; } function Ye(b, k) { typeof b.ref == "string" && Et.current; } function et(b, k) { { var Y = function() { lt || (lt = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k)); }; Y.isReactWarning = !0, Object.defineProperty(b, "key", { get: Y, configurable: !0 }); } } function Zt(b, k) { { var Y = function() { _e || (_e = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", k)); }; Y.isReactWarning = !0, Object.defineProperty(b, "ref", { get: Y, configurable: !0 }); } } var te = function(b, k, Y, ie, me, Te, ue) { var le = { // This tag allows us to uniquely identify this as a React Element $$typeof: t, // Built-in properties that belong on the element type: b, key: k, ref: Y, props: ue, // Record the component responsible for creating this element. _owner: Te }; return le._store = {}, Object.defineProperty(le._store, "validated", { configurable: !1, enumerable: !1, writable: !0, value: !1 }), Object.defineProperty(le, "_self", { configurable: !1, enumerable: !1, writable: !1, value: ie }), Object.defineProperty(le, "_source", { configurable: !1, enumerable: !1, writable: !1, value: me }), Object.freeze && (Object.freeze(le.props), Object.freeze(le)), le; }; function ce(b, k, Y, ie, me) { { var Te, ue = {}, le = null, rt = null; Y !== void 0 && (dt(Y), le = "" + Y), Qe(k) && (dt(k.key), le = "" + k.key), ne(k) && (rt = k.ref, Ye(k, me)); for (Te in k) ke.call(k, Te) && !Ct.hasOwnProperty(Te) && (ue[Te] = k[Te]); if (b && b.defaultProps) { var Le = b.defaultProps; for (Te in Le) ue[Te] === void 0 && (ue[Te] = Le[Te]); } if (le || rt) { var Ve = typeof b == "function" ? b.displayName || b.name || "Unknown" : b; le && et(ue, Ve), rt && Zt(ue, Ve); } return te(b, le, rt, me, ie, Et.current, ue); } } var De = T.ReactCurrentOwner, It = T.ReactDebugCurrentFrame; function At(b) { if (b) { var k = b._owner, Y = de(b.type, b._source, k ? k.type : null); It.setExtraStackFrame(Y); } else It.setExtraStackFrame(null); } var no; no = !1; function ro(b) { return typeof b == "object" && b !== null && b.$$typeof === t; } function Ai() { { if (De.current) { var b = V(De.current.type); if (b) return ` Check the render method of \`` + b + "`."; } return ""; } } function Il(b) { return ""; } var Mi = {}; function Al(b) { { var k = Ai(); if (!k) { var Y = typeof b == "string" ? b : b.displayName || b.name; Y && (k = ` Check the top-level render call using <` + Y + ">."); } return k; } } function Fi(b, k) { { if (!b._store || b._store.validated || b.key != null) return; b._store.validated = !0; var Y = Al(k); if (Mi[Y]) return; Mi[Y] = !0; var ie = ""; b && b._owner && b._owner !== De.current && (ie = " It was passed a child from " + V(b._owner.type) + "."), At(b), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Y, ie), At(null); } } function ki(b, k) { { if (typeof b != "object") return; if (Ue(b)) for (var Y = 0; Y < b.length; Y++) { var ie = b[Y]; ro(ie) && Fi(ie, k); } else if (ro(b)) b._store && (b._store.validated = !0); else if (b) { var me = E(b); if (typeof me == "function" && me !== b.entries) for (var Te = me.call(b), ue; !(ue = Te.next()).done; ) ro(ue.value) && Fi(ue.value, k); } } } function Ml(b) { { var k = b.type; if (k == null || typeof k == "string") return; var Y; if (typeof k == "function") Y = k.propTypes; else if (typeof k == "object" && (k.$$typeof === c || // Note: Memo only checks outer props here. // Inner props are checked in the reconciler. k.$$typeof === m)) Y = k.propTypes; else return; if (Y) { var ie = V(k); ze(Y, b.props, "prop", ie, b); } else if (k.PropTypes !== void 0 && !no) { no = !0; var me = V(k); P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", me || "Unknown"); } typeof k.getDefaultProps == "function" && !k.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead."); } } function Fl(b) { { for (var k = Object.keys(b.props), Y = 0; Y < k.length; Y++) { var ie = k[Y]; if (ie !== "children" && ie !== "key") { At(b), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ie), At(null); break; } } b.ref !== null && (At(b), P("Invalid attribute `ref` supplied to `React.Fragment`."), At(null)); } } var Di = {}; function Li(b, k, Y, ie, me, Te) { { var ue = p(b); if (!ue) { var le = ""; (b === void 0 || typeof b == "object" && b !== null && Object.keys(b).length === 0) && (le += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."); var rt = Il(); rt ? le += rt : le += Ai(); var Le; b === null ? Le = "null" : Ue(b) ? Le = "array" : b !== void 0 && b.$$typeof === t ? (Le = "<" + (V(b.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Le = typeof b, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Le, le); } var Ve = ce(b, k, Y, me, Te); if (Ve == null) return Ve; if (ue) { var mt = k.children; if (mt !== void 0) if (ie) if (Ue(mt)) { for (var Qt = 0; Qt < mt.length; Qt++) ki(mt[Qt], b); Object.freeze && Object.freeze(mt); } else P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."); else ki(mt, b); } if (ke.call(k, "key")) { var Gt = V(b), at = Object.keys(k).filter(function(Ul) { return Ul !== "key"; }), oo = at.length > 0 ? "{key: someKey, " + at.join(": ..., ") + ": ...}" : "{key: someKey}"; if (!Di[Gt + oo]) { var Bl = at.length > 0 ? "{" + at.join(": ..., ") + ": ...}" : "{}"; P(`A props object containing a "key" prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread: let props = %s; <%s key={someKey} {...props} />`, oo, Gt, Bl, Gt), Di[Gt + oo] = !0; } } return b === r ? Fl(Ve) : Ml(Ve), Ve; } } function kl(b, k, Y) { return Li(b, k, Y, !0); } function Dl(b, k, Y) { return Li(b, k, Y, !1); } var Ll = Dl, jl = kl; $n.Fragment = r, $n.jsx = Ll, $n.jsxs = jl; }()), $n; } var Ui; function Jl() { return Ui || (Ui = 1, process.env.NODE_ENV === "production" ? Jn.exports = ql() : Jn.exports = Xl()), Jn.exports; } var R = Jl(); const io = [ { name: "United States", code: "US", dial_code: "+1" }, { name: "Canada", code: "CA", dial_code: "+1" }, { name: "United Kingdom", code: "GB", dial_code: "+44" }, { name: "India", code: "IN", dial_code: "+91" } ], _o = [ { name: "Andorra", code: "AD", dial_code: "+376" }, { name: "United Arab Emirates", code: "AE", dial_code: "+971" }, { name: "Afghanistan", code: "AF", dial_code: "+93" }, { name: "Antigua & Barbuda", code: "AG", dial_code: "+1268" }, { name: "Anguilla", code: "AI", dial_code: "+1264" }, { name: "Albania", code: "AL", dial_code: "+355" }, { name: "Armenia", code: "AM", dial_code: "+374" }, { name: "Angola", code: "AO", dial_code: "+244" }, { name: "Antarctica", code: "AQ", dial_code: "+672" }, { name: "Argentina", code: "AR", dial_code: "+54" }, { name: "American Samoa", code: "AS", dial_code: "+1684" }, { name: "Austria", code: "AT", dial_code: "+43" }, { name: "Australia", code: "AU", dial_code: "+61" }, { name: "Aruba", code: "AW", dial_code: "+297" }, { name: "Åland Islands", code: "AX", dial_code: "+358" }, { name: "Azerbaijan", code: "AZ", dial_code: "+994" }, { name: "Bosnia & Herzegovina", code: "BA", dial_code: "+387" }, { name: "Barbados", code: "BB", dial_code: "+1246" }, { name: "Bangladesh", code: "BD", dial_code: "+880" }, { name: "Belgium", code: "BE", dial_code: "+32" }, { name: "Burkina Faso", code: "BF", dial_code: "+226" }, { name: "Bulgaria", code: "BG", dial_code: "+359" }, { name: "Bahrain", code: "BH", dial_code: "+973" }, { name: "Burundi", code: "BI", dial_code: "+257" }, { name: "Benin", code: "BJ", dial_code: "+229" }, { name: "St. Barthélemy", code: "BL", dial_code: "+590" }, { name: "Bermuda", code: "BM", dial_code: "+1441" }, { name: "Brunei", code: "BN", dial_code: "+673" }, { name: "Bolivia", code: "BO", dial_code: "+591" }, { name: "Brazil", code: "BR", dial_code: "+55" }, { name: "Bahamas", code: "BS", dial_code: "+1242" }, { name: "Bhutan", code: "BT", dial_code: "+975" }, { name: "Botswana", code: "BW", dial_code: "+267" }, { name: "Belarus", code: "BY", dial_code: "+375" }, { name: "Belize", code: "BZ", dial_code: "+501" }, { name: "Canada", code: "CA", dial_code: "+1" }, { name: "Cocos (Keeling) Islands", code: "CC", dial_code: "+61" }, { name: "Congo - Kinshasa", code: "CD", dial_code: "+243" }, { name: "Central African Republic", code: "CF", dial_code: "+236" }, { name: "Congo - Brazzaville", code: "CG", dial_code: "+242" }, { name: "Switzerland", code: "CH", dial_code: "+41" }, { name: "Côte d’Ivoire", code: "CI", dial_code: "+225" }, { name: "Cook Islands", code: "CK", dial_code: "+682" }, { name: "Chile", code: "CL", dial_code: "+56" }, { name: "Cameroon", code: "CM", dial_code: "+237" }, { name: "China", code: "CN", dial_code: "+86" }, { name: "Colombia", code: "CO", dial_code: "+57" }, { name: "Costa Rica", code: "CR", dial_code: "+506" }, { name: "Cuba", code: "CU", dial_code: "+53" }, { name: "Cape Verde", code: "CV", dial_code: "+238" }, { name: "Christmas Island", code: "CX", dial_code: "+61" }, { name: "Cyprus", code: "CY", dial_code: "+357" }, { name: "Czechia", code: "CZ", dial_code: "+420" }, { name: "Germany", code: "DE", dial_code: "+49" }, { name: "Djibouti", code: "DJ", dial_code: "+253" }, { name: "Denmark", code: "DK", dial_code: "+45" }, { name: "Dominica", code: "DM", dial_code: "+1767" }, { name: "Dominican Republic", code: "DO", dial_code: "+1849" }, { name: "Algeria", code: "DZ", dial_code: "+213" }, { name: "Ecuador", code: "EC", dial_code: "+593" }, { name: "Estonia", code: "EE", dial_code: "+372" }, { name: "Egypt", code: "EG", dial_code: "+20" }, { name: "Eritrea", code: "ER", dial_code: "+291" }, { name: "Spain", code: "ES", dial_code: "+34" }, { name: "Ethiopia", code: "ET", dial_code: "+251" }, { name: "Finland", code: "FI", dial_code: "+358" }, { name: "Fiji", code: "FJ", dial_code: "+679" }, { name: "Falkland Islands", code: "FK", dial_code: "+500" }, { name: "Micronesia", code: "FM", dial_code: "+691" }, { name: "Faroe Islands", code: "FO", dial_code: "+298" }, { name: "France", code: "FR", dial_code: "+33" }, { name: "Gabon", code: "GA", dial_code: "+241" }, { name: "United Kingdom", code: "GB", dial_code: "+44" }, { name: "Grenada", code: "GD", dial_code: "+1473" }, { name: "Georgia", code: "GE", dial_code: "+995" }, { name: "French Guiana", code: "GF", dial_code: "+594" }, { name: "Guernsey", code: "GG", dial_code: "+44" }, { name: "Ghana", code: "GH", dial_code: "+233" }, { name: "Gibraltar", code: "GI", dial_code: "+350" }, { name: "Greenland", code: "GL", dial_code: "+299" }, { name: "Gambia", code: "GM", dial_code: "+220" }, { name: "Guinea", code: "GN", dial_code: "+224" }, { name: "Guadeloupe", code: "GP", dial_code: "+590" }, { name: "Equatorial Guinea", code: "GQ", dial_code: "+240" }, { name: "Greece", code: "GR", dial_code: "+30" }, { name: "South Georgia & South Sandwich Islands", code: "GS", dial_code: "+500" }, { name: "Guatemala", code: "GT", dial_code: "+502" }, { name: "Guam", code: "GU", dial_code: "+1671" }, { name: "Guinea-Bissau", code: "GW", dial_code: "+245" }, { name: "Guyana", code: "GY", dial_code: "+595" }, { name: "Hong Kong SAR China", code: "HK", dial_code: "+852" }, { name: "Honduras", code: "HN", dial_code: "+504" }, { name: "Croatia", code: "HR", dial_code: "+385" }, { name: "Haiti", code: "HT", dial_code: "+509" }, { name: "Hungary", code: "HU", dial_code: "+36" }, { name: "Indonesia", code: "ID", dial_code: "+62" }, { name: "Ireland", code: "IE", dial_code: "+353" }, { name: "Israel", code: "IL", dial_code: "+972" }, { name: "Isle of Man", code: "IM", dial_code: "+44" }, { name: "India", code: "IN", dial_code: "+91" }, { name: "British Indian Ocean Territory", code: "IO", dial_code: "+246" }, { name: "Iraq", code: "IQ", dial_code: "+964" }, { name: "Iran", code: "IR", dial_code: "+98" }, { name: "Iceland", code: "IS", dial_code: "+354" }, { name: "Italy", code: "IT", dial_code: "+39" }, { name: "Jersey", code: "JE", dial_code: "+44" }, { name: "Jamaica", code: "JM", dial_code: "+1876" }, { name: "Jordan", code: "JO", dial_code: "+962" }, { name: "Japan", code: "JP", dial_code: "+81" }, { name: "Kenya", code: "KE", dial_code: "+254" }, { name: "Kyrgyzstan", code: "KG", dial_code: "+996" }, { name: "Cambodia", code: "KH", dial_code: "+855" }, { name: "Kiribati", code: "KI", dial_code: "+686" }, { name: "Comoros", code: "KM", dial_code: "+269" }, { name: "St. Kitts & Nevis", code: "KN", dial_code: "+1869" }, { name: "North Korea", code: "KP", dial_code: "+850" }, { name: "South Korea", code: "KR", dial_code: "+82" }, { name: "Kuwait", code: "KW", dial_code: "+965" }, { name: "Cayman Islands", code: "KY", dial_code: "+ 345" }, { name: "Kazakhstan", code: "KZ", dial_code: "+77" }, { name: "Laos", code: "LA", dial_code: "+856" }, { name: "Lebanon", code: "LB", dial_code: "+961" }, { name: "St. Lucia", code: "LC", dial_code: "+1758" }, { name: "Liechtenstein", code: "LI", dial_code: "+423" }, { name: "Sri Lanka", code: "LK", dial_code: "+94" }, { name: "Liberia", code: "LR", dial_code: "+231" }, { name: "Lesotho", code: "LS", dial_code: "+266" }, { name: "Lithuania", code: "LT", dial_code: "+370" }, { name: "Luxembourg", code: "LU", dial_code: "+352" }, { name: "Latvia", code: "LV", dial_code: "+371" }, { name: "Libya", code: "LY", dial_code: "+218" }, { name: "Morocco", code: "MA", dial_code: "+212" }, { name: "Monaco", code: "MC", dial_code: "+377" }, { name: "Moldova", code: "MD", dial_code: "+373" }, { name: "Montenegro", code: "ME", dial_code: "+382" }, { name: "St. Martin", code: "MF", dial_code: "+590" }, { name: "Madagascar", code: "MG", dial_code: "+261" }, { name: "Marshall Islands", code: "MH", dial_code: "+692" }, { name: "North Macedonia", code: "MK", dial_code: "+389" }, { name: "Mali", code: "ML", dial_code: "+223" }, { name: "Myanmar (Burma)", code: "MM", dial_code: "+95" }, { name: "Mongolia", code: "MN", dial_code: "+976" }, { name: "Macao SAR China", code: "MO", dial_code: "+853" }, { name: "Northern Mariana Islands", code: "MP", dial_code: "+1670" }, { name: "Martinique", code: "MQ", dial_code: "+596" }, { name: "Mauritania", code: "MR", dial_code: "+222" }, { name: "Montserrat", code: "MS", dial_code: "+1664" }, { name: "Malta", code: "MT", dial_code: "+356" }, { name: "Mauritius", code: "MU", dial_code: "+230" }, { name: "Maldives", code: "MV", dial_code: "+960" }, { name: "Malawi", code: "MW", dial_code: "+265" }, { name: "Mexico", code: "MX", dial_code: "+52" }, { name: "Malaysia", code: "MY", dial_code: "+60" }, { name: "Mozambique", code: "MZ", dial_code: "+258" }, { name: "Namibia", code: "NA", dial_code: "+264" }, { name: "New Caledonia", code: "NC", dial_code: "+687" }, { name: "Niger", code: "NE", dial_code: "+227" }, { name: "Norfolk Island", code: "NF", dial_code: "+672" }, { name: "Nigeria", code: "NG", dial_code: "+234" }, { name: "Nicaragua", code: "NI", dial_code: "+505" }, { name: "Netherlands", code: "NL", dial_code: "+31" }, { name: "Norway", code: "NO", dial_code: "+47" }, { name: "Nepal", code: "NP", dial_code: "+977" }, { name: "Nauru", code: "NR", dial_code: "+674" }, { name: "Niue", code: "NU", dial_code: "+683" }, { name: "New Zealand", code: "NZ", dial_code: "+64" }, { name: "Oman", code: "OM", dial_code: "+968" }, { name: "Panama", code: "PA", dial_code: "+507" }, { name: "Peru", code: "PE", dial_code: "+51" }, { name: "French Polynesia", code: "PF", dial_code: "+689" }, { name: "Papua New Guinea", code: "PG", dial_code: "+675" }, { name: "Philippines", code: "PH", dial_code: "+63" }, { name: "Pakistan", code: "PK", dial_code: "+92" }, { name: "Poland", code: "PL", dial_code: "+48" }, { name: "St. Pierre & Miquelon", code: "PM", dial_code: "+508" }, { name: "Pitcairn Islands", code: "PN", dial_code: "+872" }, { name: "Puerto Rico", code: "PR", dial_code: "+1939" }, { name: "Palestinian Territories", code: "PS", dial_code: "+970" }, { name: "Portugal", code: "PT", dial_code: "+351" }, { name: "Palau", code: "PW", dial_code: "+680" }, { name: "Paraguay", code: "PY", dial_code: "+595" }, { name: "Qatar", code: "QA", dial_code: "+974" }, { name: "Réunion", code: "RE", dial_code: "+262" }, { name: "Romania", code: "RO", dial_code: "+40" }, { name: "Serbia", code: "RS", dial_code: "+381" }, { name: "Russia", code: "RU", dial_code: "+7" }, { name: "Rwanda", code: "RW", dial_code: "+250" }, { name: "Saudi Arabia", code: "SA", dial_code: "+966" }, { name: "Solomon Islands", code: "SB", dial_code: "+677" }, { name: "Seychelles", code: "SC", dial_code: "+248" }, { name: "Sudan", code: "SD", dial_code: "+249" }, { name: "Sweden", code: "SE", dial_code: "+46" }, { name: "Singapore", code: "SG", dial_code: "+65" }, { name: "St. Helena", code: "SH", dial_code: "+290" }, { name: "Slovenia", code: "SI", dial_code: "+386" }, { name: "Svalbard & Jan Mayen", code: "SJ", dial_code: "+47" }, { name: "Slovakia", code: "SK", dial_code: "+421" }, { name: "Sierra Leone", code: "SL", dial_code: "+232" }, { name: "San Marino", code: "SM", dial_code: "+378" }, { name: "Senegal", code: "SN", dial_code: "+221" }, { name: "Somalia", code: "SO", dial_code: "+252" }, { name: "Suriname", code: "SR", dial_code: "+597" }, { name: "South Sudan", code: "SS", dial_code: "+211" }, { name: "São Tomé & Príncipe", code: "ST", dial_code: "+239" }, { name: "El Salvador", code: "SV", dial_code: "+503" }, { name: "Syria", code: "SY", dial_code: "+963" }, { name: "Eswatini", code: "SZ", dial_code: "+268" }, { name: "Turks & Caicos Islands", code: "TC", dial_code: "+1649" }, { name: "Chad", code: "TD", dial_code: "+235" }, { name: "Togo", code: "TG", dial_code: "+228" }, { name: "Thailand", code: "TH", dial_code: "+66" }, { name: "Tajikistan", code: "TJ", dial_code: "+992" }, { name: "Tokelau", code: "TK", dial_code: "+690" }, { name: "Timor-Leste", code: "TL", dial_code: "+670" }, { name: "Turkmenistan", code: "TM", dial_code: "+993" }, { name: "Tunisia", code: "TN", dial_code: "+216" }, { name: "Tonga", code: "TO", dial_code: "+676" }, { name: "Turkey", code: "TR", dial_code: "+90" }, { name: "Trinidad & Tobago", code: "TT", dial_code: "+1868" }, { name: "Tuvalu", code: "TV", dial_code: "+688" }, { name: "Taiwan", code: "TW", dial_code: "+886" }, { name: "Tanzania", code: "TZ", dial_code: "+255" }, { name: "Ukraine", code: "UA", dial_code: "+380" }, { name: "Uganda", code: "UG", dial_code: "+256" }, { name: "United States", code: "US", dial_code: "+1" }, { name: "Uruguay", code: "UY", dial_code: "+598" }, { name: "Uzbekistan", code: "UZ", dial_code: "+998" }, { name: "Vatican City", code: "VA", dial_code: "+379" }, { name: "St. Vincent & Grenadines", code: "VC", dial_code: "+1784" }, { name: "Venezuela", code: "VE", dial_code: "+58" }, { name: "British Virgin Islands", code: "VG", dial_code: "+1284" }, { name: "U.S. Virgin Islands", code: "VI", dial_code: "+1340" }, { name: "Vietnam", code: "VN", dial_code: "+84" }, { name: "Vanuatu", code: "VU", dial_code: "+678" }, { name: "Wallis & Futuna", code: "WF", dial_code: "+681" }, { name: "Samoa", code: "WS", dial_code: "+685" }, { name: "Yemen", code: "YE", dial_code: "+967" }, { name: "Mayotte", code: "YT", dial_code: "+262" }, { name: "South Africa", code: "ZA", dial_code: "+27" }, { name: "Zambia", code: "ZM", dial_code: "+260" }, { name: "Zimbabwe", code: "ZW", dial_code: "+263" } ]; var Zn = { exports: {} }, Qn = { exports: {} }, he = {}; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Vi; function Zl() { if (Vi) return he; Vi = 1; var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119; function v(g) { if (typeof g == "object" && g !== null) { var _ = g.$$typeof; switch (_) { case t: switch (g = g.type, g) { case c: case u: case r: case a: case o: case m: return g; default: switch (g = g && g.$$typeof, g) { case d: case f: case $: case y: case s: return g; default: return _; } } case n: return _; } } } function S(g) { return v(g) === u; } return he.AsyncMode = c, he.ConcurrentMode = u, he.ContextConsumer = d, he.ContextProvider = s, he.Element = t, he.ForwardRef = f, he.Fragment = r, he.Lazy = $, he.Memo = y, he.Portal = n, he.Profiler = a, he.StrictMode = o, he.Suspense = m, he.isAsyncMode = function(g) { return S(g) || v(g) === c; }, he.isConcurrentMode = S, he.isContextConsumer = function(g) { return v(g) === d; }, he.isContextProvider = function(g) { return v(g) === s; }, he.isElement = function(g) { return typeof g == "object" && g !== null && g.$$typeof === t; }, he.isForwardRef = function(g) { return v(g) === f; }, he.isFragment = function(g) { return v(g) === r; }, he.isLazy = function(g) { return v(g) === $; }, he.isMemo = function(g) { return v(g) === y; }, he.isPortal = function(g) { return v(g) === n; }, he.isProfiler = function(g) { return v(g) === a; }, he.isStrictMode = function(g) { return v(g) === o; }, he.isSuspense = function(g) { return v(g) === m; }, he.isValidElementType = function(g) { return typeof g == "string" || typeof g == "function" || g === r || g === u || g === a || g === o || g === m || g === h || typeof g == "object" && g !== null && (g.$$typeof === $ || g.$$typeof === y || g.$$typeof === s || g.$$typeof === d || g.$$typeof === f || g.$$typeof === E || g.$$typeof === T || g.$$typeof === P || g.$$typeof === l); }, he.typeOf = v, he; } var $e = {}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var Wi; function Ql() { return Wi || (Wi = 1, process.env.NODE_ENV !== "production" && function() { var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, d = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, y = e ? Symbol.for("react.memo") : 60115, $ = e ? Symbol.for("react.lazy") : 60116, l = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, T = e ? Symbol.for("react.responder") : 60118, P = e ? Symbol.for("react.scope") : 60119; function v(x) { return typeof x == "string" || typeof x == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill. x === r || x === u || x === a || x === o || x === m || x === h || typeof x == "object" && x !== null && (x.$$typeof === $ || x.$$typeof === y || x.$$typeof === s || x.$$typeof === d || x.$$typeof === f || x.$$typeof === E || x.$$typeof === T || x.$$typeof === P || x.$$typeof === l); } function S(x) { if (typeof x == "object" && x !== null) { var ae = x.$$typeof; switch (ae) { case t: var oe = x.type; switch (oe) { case c: case u: case r: case a: case o: case m: return oe; default: var de = oe && oe.$$typeof; switch (de) { case d: case f: case $: case y: case s: return de; default: return ae; } } case n: return ae; } } } var g = c, _ = u, I = d, A = s, M = t, p = f, N = r, F = $, V = y, U = n, D = a, L = o, K = m, re = !1; function G(x) { return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), w(x) || S(x) === c; } function w(x) { return S(x) === u; } function j(x) { return S(x) === d; } function H(x) { return S(x) === s; } function W(x) { return typeof x == "object" && x !== null && x.$$typeof === t; } function z(x) { return S(x) === f; } function X(x) { return S(x) === r; } function Z(x) { return S(x) === $; } function q(x) { return S(x) === y; } function ee(x) { return S(x) === n; } function J(x) { return S(x) === a; } function B(x) { return S(x) === o; } function Q(x) { return S(x) === m; } $e.AsyncMode = g, $e.ConcurrentMode = _, $e.ContextConsumer = I, $e.ContextProvider = A, $e.Element = M, $e.ForwardRef = p, $e.Fragment = N, $e.Lazy = F, $e.Memo = V, $e.Portal = U, $e.Profiler = D, $e.StrictMode = L, $e.Suspense = K, $e.isAsyncMode = G, $e.isConcurrentMode = w, $e.isContextConsumer = j, $e.isContextProvider = H, $e.isElement = W, $e.isForwardRef = z, $e.isFragment = X, $e.isLazy = Z, $e.isMemo = q, $e.isPortal = ee, $e.isProfiler = J, $e.isStrictMode = B, $e.isSuspense = Q, $e.isValidElementType = v, $e.typeOf = S; }()), $e; } var Gi; function Ws() { return Gi || (Gi = 1, process.env.NODE_ENV === "production" ? Qn.exports = Zl() : Qn.exports = Ql()), Qn.exports; } /* object-assign (c) Sindre Sorhus @license MIT */ var ao, Hi; function ec() { if (Hi) return ao; Hi = 1; var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, n = Object.prototype.propertyIsEnumerable; function r(a) { if (a == null) throw new TypeError("Object.assign cannot be called with null or undefined"); return Object(a); } function o() { try { if (!Object.assign) return !1; var a = new String("abc"); if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5") return !1; for (var s = {}, d = 0; d < 10; d++) s["_" + String.fromCharCode(d)] = d; var c = Object.getOwnPropertyNames(s).map(function(f) { return s[f]; }); if (c.join("") !== "0123456789") return !1; var u = {}; return "abcdefghijklmnopqrst".split("").forEach(function(f) { u[f] = f; }), Object.keys(Object.assign({}, u)).join("") === "abcdefghijklmnopqrst"; } catch { return !1; } } return ao = o() ? Object.assign : function(a, s) { for (var d, c = r(a), u, f = 1; f < arguments.length; f++) { d = Object(arguments[f]); for (var m in d) t.call(d, m) && (c[m] = d[m]); if (e) { u = e(d); for (var h = 0; h < u.length; h++) n.call(d, u[h]) && (c[u[h]] = d[u[h]]); } } return c; }, ao; } var so, zi; function ti() { if (zi) return so; zi = 1; var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"; return so = e, so; } var lo, Yi; function Gs() { return Yi || (Yi = 1, lo = Function.call.bind(Object.prototype.hasOwnProperty)), lo; } var co, Ki; function tc() { if (Ki) return co; Ki = 1; var e = function() { }; if (process.env.NODE_ENV !== "production") { var t = /* @__PURE__ */ ti(), n = {}, r = /* @__PURE__ */ Gs(); e = function(a) { var s = "Warning: " + a; typeof console < "u" && console.error(s); try { throw new Error(s); } catch { } }; } function o(a, s, d, c, u) { if (process.env.NODE_ENV !== "production") { for (var f in a) if (r(a, f)) { var m; try { if (typeof a[f] != "function") { var h = Error( (c || "React class") + ": " + d + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`." ); throw h.name = "Invariant Violation", h; } m = a[f](s, f, c, d, null, t); } catch ($) { m = $; } if (m && !(m instanceof Error) && e( (c || "React class") + ": type specification of " + d + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)." ), m instanceof Error && !(m.message in n)) { n[m.message] = !0; var y = u ? u() : ""; e( "Failed " + d + " type: " + m.message + (y ?? "") ); } } } } return o.resetWarningCache = function() { process.env.NODE_ENV !== "production" && (n = {}); }, co = o, co; } var uo, qi; function nc() { if (qi) return uo; qi = 1; var e = Ws(), t = ec(), n = /* @__PURE__ */ ti(), r = /* @__PURE__ */ Gs(), o = /* @__PURE__ */ tc(), a = function() { }; process.env.NODE_ENV !== "production" && (a = function(d) { var c = "Warning: " + d; typeof console < "u" && console.error(c); try { throw new Error(c); } catch { } }); function s() { return null; } return uo = function(d, c) { var u = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator"; function m(w) { var j = w && (u && w[u] || w[f]); if (typeof j == "function") return j; } var h = "<<anonymous>>", y = { array: T("array"), bigint: T("bigint"), bool: T("boolean"), func: T("function"), number: T("number"), object: T("object"), string: T("string"), symbol: T("symbol"), any: P(), arrayOf: v, element: S(), elementType: g(), instanceOf: _, node: p(), objectOf: A, oneOf: I, oneOfType: M, shape: F, exact: V }; function $(w, j) { return w === j ? w !== 0 || 1 / w === 1 / j : w !== w && j !== j; } function l(w, j) { this.message = w, this.data = j && typeof j == "object" ? j : {}, this.stack = ""; } l.prototype = Error.prototype; function E(w) { if (process.env.NODE_ENV !== "production") var j = {}, H = 0; function W(X, Z, q, ee, J, B, Q) { if (ee = ee || h, B = B || q, Q !== n) { if (c) { var x = new Error( "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types" ); throw x.name = "Invariant Violation", x; } else if (process.env.NODE_ENV !== "production" && typeof console < "u") { var ae = ee + ":" + q; !j[ae] && // Avoid spamming the console because they are often not actionable except for lib authors H < 3 && (a( "You are manually calling a React.PropTypes validation function for the `" + B + "` prop on `" + ee + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details." ), j[ae] = !0, H++); } } return Z[q] == null ? X ? Z[q] === null ? new l("The " + J + " `" + B + "` is marked as required " + ("in `" + ee + "`, but its value is `null`.")) : new l("The " + J + " `" + B + "` is marked as required in " + ("`" + ee + "`, but its value is `undefined`.")) : null : w(Z, q, ee, J, B); } var z = W.bind(null, !1); return z.isRequired = W.bind(null, !0), z; } function T(w) { function j(H, W, z, X, Z, q) { var ee = H[W], J = L(ee); if (J !== w) { var B = K(ee); return new l( "Invalid " + X + " `" + Z + "` of type " + ("`" + B + "` supplied to `" + z + "`, expected ") + ("`" + w + "`."), { expectedType: w } ); } return null; } return E(j); } function P() { return E(s