{"version":3,"sources":["node_modules/@arcgis/core/intl/number.js","node_modules/@arcgis/core/intl/substitute.js","node_modules/@arcgis/core/intl/t9n.js","node_modules/@arcgis/core/intl.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { beforeLocaleChange as e, getLocale as n } from \"./locale.js\";\nconst t = {\n ar: \"ar-u-nu-latn\"\n};\nlet u = new WeakMap(),\n r = {};\nfunction a(e) {\n const a = e || r;\n if (!u.has(a)) {\n const r = n(),\n i = t[n()] || r;\n u.set(a, new Intl.NumberFormat(i, e));\n }\n return u.get(a);\n}\nfunction i(e = {}) {\n const n = {};\n return null != e.digitSeparator && (n.useGrouping = e.digitSeparator), null != e.places && (n.minimumFractionDigits = n.maximumFractionDigits = e.places), n;\n}\nfunction l(e, n) {\n return Object.is(e, -0) && (e = 0), a(n).format(e);\n}\nfunction o(e, t = n()) {\n if (!e) return null;\n let u = p.get(t);\n if (!u) {\n const e = a().formatToParts(12345.6),\n n = [...a({\n useGrouping: !1\n }).format(9876543210)].reverse(),\n r = new Map(n.map((e, n) => [e, n])),\n i = new RegExp(`[${e.find(e => \"group\" === e.type)?.value}]`, \"g\"),\n l = new RegExp(`[${e.find(e => \"decimal\" === e.type)?.value}]`),\n o = new RegExp(`[${n.join(\"\")}]`, \"g\"),\n c = /[\\u200E\\u200F\\u202A\\u202B\\u202C\\u202D\\u202E\\u2066\\u2067\\u2068\\u2069\\u061C]/g,\n s = /[-\\u2212\\u2013\\u2014\\u2015]/g;\n u = e => {\n if (\"\" === (e = e.trim().replaceAll(i, \"\").replace(l, \".\").replace(o, e => String(r.get(e))).replaceAll(c, \"\").replaceAll(s, \"-\"))) return null;\n const n = Number(e);\n return isNaN(n) ? null : n;\n }, p.set(t, u);\n }\n return u(e);\n}\ne(() => {\n u = new WeakMap(), r = {};\n});\nconst p = new Map();\nexport { i as convertNumberFormatToIntlOptions, l as formatNumber, a as getFormatter, o as parseNumber };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport t from \"../core/Logger.js\";\nimport { getDeepValue as r } from \"../core/object.js\";\nimport { replace as e } from \"../core/string.js\";\nimport { formatDate as n } from \"./date.js\";\nimport { formatNumber as o } from \"./number.js\";\nconst i = () => t.getLogger(\"esri.intl.substitute\");\nfunction s(t, r, n = {}) {\n const {\n format: o = {}\n } = n;\n return e(t, t => u(t, r, o));\n}\nfunction u(t, e, n) {\n let o, i;\n const s = t.indexOf(\":\");\n if (-1 === s ? o = t.trim() : (o = t.slice(0, s).trim(), i = t.slice(s + 1).trim()), !o) return \"\";\n const u = r(o, e);\n if (null == u) return \"\";\n const m = (i ? n?.[i] : null) ?? n?.[o];\n return m ? c(u, m) : i ? a(u, i) : f(u);\n}\nfunction c(t, r) {\n switch (r.type) {\n case \"date\":\n return n(t, r.intlOptions);\n case \"number\":\n return o(t, r.intlOptions);\n default:\n return i().warn(\"missing format descriptor for key {key}\"), f(t);\n }\n}\nfunction a(t, r) {\n switch (r.toLowerCase()) {\n case \"dateformat\":\n return n(t);\n case \"numberformat\":\n return o(t);\n default:\n return i().warn(`inline format is unsupported since 4.12: ${r}`), /^(dateformat|datestring)/i.test(r) ? n(t) : /^numberformat/i.test(r) ? o(t) : f(t);\n }\n}\nfunction f(t) {\n switch (typeof t) {\n case \"string\":\n return t;\n case \"number\":\n return o(t);\n case \"boolean\":\n return \"\" + t;\n default:\n return t instanceof Date ? n(t) : \"\";\n }\n}\nexport { s as substitute };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport e from \"../request.js\";\nimport t from \"../core/Error.js\";\nimport { normalizeMessageBundleLocale as n } from \"./messages.js\";\nasync function r(e, r, s, i) {\n const a = r.exec(s);\n if (!a) throw new t(\"esri-intl:invalid-bundle\", `Bundle id \"${s}\" is not compatible with the pattern \"${r}\"`);\n const c = a[1] ? `${a[1]}/` : \"\",\n l = a[2],\n w = n(i),\n h = `${c}${l}.json`,\n u = w ? `${c}${l}_${w}.json` : h;\n let d;\n try {\n d = await o(e(u));\n } catch (f) {\n if (u === h) throw new t(\"intl:unknown-bundle\", `Bundle \"${s}\" cannot be loaded`, {\n error: f\n });\n try {\n d = await o(e(h));\n } catch (f) {\n throw new t(\"intl:unknown-bundle\", `Bundle \"${s}\" cannot be loaded`, {\n error: f\n });\n }\n }\n return d;\n}\nasync function o(t) {\n if (null != a.fetchBundleAsset) return a.fetchBundleAsset(t);\n const n = await e(t, {\n responseType: \"text\"\n });\n return JSON.parse(n.data);\n}\nclass s {\n constructor({\n base: e = \"\",\n pattern: t,\n location: n = new URL(window.location.href)\n }) {\n let r;\n r = \"string\" == typeof n ? e => new URL(e, new URL(n, window.location.href)).href : n instanceof URL ? e => new URL(e, n).href : n, this.pattern = \"string\" == typeof t ? new RegExp(`^${t}`) : t, this.getAssetUrl = r, e = e ? e.endsWith(\"/\") ? e : e + \"/\" : \"\", this.matcher = new RegExp(`^${e}(?:(.*)\\\\/)?(.*)$`);\n }\n fetchMessageBundle(e, t) {\n return r(this.getAssetUrl, this.matcher, e, t);\n }\n}\nfunction i(e) {\n return new s(e);\n}\nconst a = {};\nexport { s as JSONLoader, i as createJSONLoader, a as test };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nexport { convertDateFormatToIntlOptions, formatDate, formatDateOnly, formatTimeOnly, formatTimestamp } from \"./intl/date.js\";\nexport { convertNumberFormatToIntlOptions, formatNumber } from \"./intl/number.js\";\nexport { substitute } from \"./intl/substitute.js\";\nexport { getLocale, onLocaleChange, prefersRTL, setLocale } from \"./intl/locale.js\";\nimport { registerMessageBundleLoader as t } from \"./intl/messages.js\";\nexport { fetchMessageBundle, normalizeMessageBundleLocale } from \"./intl/messages.js\";\nimport { createJSONLoader as e } from \"./intl/t9n.js\";\nimport { getAssetUrl as o } from \"./assets.js\";\nt(e({\n pattern: \"esri/\",\n location: o\n}));\nexport { e as createJSONLoader, t as registerMessageBundleLoader };"],"mappings":"sTAKA,IAAMA,EAAI,CACR,GAAI,cACN,EACIC,EAAI,IAAI,QACVC,EAAI,CAAC,EACP,SAASC,EAAE,EAAG,CACZ,IAAMA,EAAI,GAAKD,EACf,GAAI,CAACD,EAAE,IAAIE,CAAC,EAAG,CACb,IAAM,EAAIC,EAAE,EACVC,EAAIL,EAAEI,EAAE,CAAC,GAAK,EAChBH,EAAE,IAAIE,EAAG,IAAI,KAAK,aAAaE,EAAG,CAAC,CAAC,CACtC,CACA,OAAOJ,EAAE,IAAIE,CAAC,CAChB,CACA,SAASE,EAAE,EAAI,CAAC,EAAG,CACjB,IAAMC,EAAI,CAAC,EACX,OAAe,EAAE,gBAAV,OAA6BA,EAAE,YAAc,EAAE,gBAAyB,EAAE,QAAV,OAAqBA,EAAE,sBAAwBA,EAAE,sBAAwB,EAAE,QAASA,CAC7J,CACA,SAASC,EAAE,EAAGD,EAAG,CACf,OAAO,OAAO,GAAG,EAAG,EAAE,IAAM,EAAI,GAAIH,EAAEG,CAAC,EAAE,OAAO,CAAC,CACnD,CACA,SAASE,EAAE,EAAG,EAAIJ,EAAE,EAAG,CACrB,GAAI,CAAC,EAAG,OAAO,KACf,IAAIH,EAAIQ,EAAE,IAAI,CAAC,EACf,GAAI,CAACR,EAAG,CACN,IAAMS,EAAIP,EAAE,EAAE,cAAc,OAAO,EACjCG,EAAI,CAAC,GAAGH,EAAE,CACR,YAAa,EACf,CAAC,EAAE,OAAO,UAAU,CAAC,EAAE,QAAQ,EAC/BD,EAAI,IAAI,IAAII,EAAE,IAAI,CAACI,EAAGJ,IAAM,CAACI,EAAGJ,CAAC,CAAC,CAAC,EACnC,EAAI,IAAI,OAAO,IAAII,EAAE,KAAKA,GAAiBA,EAAE,OAAd,OAAkB,GAAG,KAAK,IAAK,GAAG,EACjEH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CACvB,OAAOb,EAAE,KAAK,YAAa,KAAK,QAASgB,EAAGH,CAAC,CAC/C,CACF,EACA,SAASX,EAAE,EAAG,CACZ,OAAO,IAAID,EAAE,CAAC,CAChB,CACA,IAAMG,EAAI,CAAC,EC3CXa,EAAEC,EAAE,CACF,QAAS,QACT,SAAUC,CACZ,CAAC,CAAC","names":["t","u","r","a","c","i","n","l","o","p","e","s","d","i","n","s","t","r","o","u","e","m","c","a","f","j","l","r","s","i","__async","a","c","l","w","f","h","u","d","o","t","n","U","e","u","i","n"],"x_google_ignoreList":[0,1,2,3]}