stadtratmonitor/public/assets/es-module-shims.js-32db422c5db541b7129a2ce936aed905edc2cd481748f8d67ffe84e28313158a.map

1 line
100 KiB
Text
Raw Normal View History

2023-04-08 00:01:31 +02:00
{"version":3,"file":"es-module-shims.js","sources":["../dist/es-module-shims.js"],"sourcesContent":["/* ES Module Shims 1.5.9 */\n(function () {\n\n const hasWindow = typeof window !== 'undefined';\r\n const hasDocument = typeof document !== 'undefined';\r\n\r\n const noop = () => {};\r\n\r\n const optionsScript = hasDocument ? document.querySelector('script[type=esms-options]') : undefined;\r\n\r\n const esmsInitOptions = optionsScript ? JSON.parse(optionsScript.innerHTML) : {};\r\n Object.assign(esmsInitOptions, self.esmsInitOptions || {});\r\n\r\n let shimMode = hasDocument ? !!esmsInitOptions.shimMode : true;\r\n\r\n const importHook = globalHook(shimMode && esmsInitOptions.onimport);\r\n const resolveHook = globalHook(shimMode && esmsInitOptions.resolve);\r\n let fetchHook = esmsInitOptions.fetch ? globalHook(esmsInitOptions.fetch) : fetch;\r\n const metaHook = esmsInitOptions.meta ? globalHook(shimMode && esmsInitOptions.meta) : noop;\r\n\r\n const skip = esmsInitOptions.skip ? new RegExp(esmsInitOptions.skip) : null;\r\n\r\n const mapOverrides = esmsInitOptions.mapOverrides;\r\n\r\n let nonce = esmsInitOptions.nonce;\r\n if (!nonce && hasDocument) {\r\n const nonceElement = document.querySelector('script[nonce]');\r\n if (nonceElement)\r\n nonce = nonceElement.nonce || nonceElement.getAttribute('nonce');\r\n }\r\n\r\n const onerror = globalHook(esmsInitOptions.onerror || noop);\r\n const onpolyfill = esmsInitOptions.onpolyfill ? globalHook(esmsInitOptions.onpolyfill) : () => {\r\n console.log('%c^^ Module TypeError above is polyfilled and can be ignored ^^', 'font-weight:900;color:#391');\r\n };\r\n\r\n const { revokeBlobURLs, noLoadEventRetriggers, enforceIntegrity } = esmsInitOptions;\r\n\r\n function globalHook (name) {\r\n return typeof name === 'string' ? self[name] : name;\r\n }\r\n\r\n const enable = Array.isArray(esmsInitOptions.polyfillEnable) ? esmsInitOptions.polyfillEnable : [];\r\n const cssModulesEnabled = enable.includes('css-modules');\r\n const jsonModulesEnabled = enable.includes('json-modules');\r\n\r\n const edge = !navigator.userAgentData && !!navigator.userAgent.match(/Edge\\/\\d+\\.\\d+/);\r\n\r\n const baseUrl = hasDocument\r\n ? document.baseURI\r\n : `${location.protocol}//${location.host}${location.pathname.includes('/') \r\n ? location.pathname.slice(0, location.pathname.lastIndexOf('/') + 1) \r\n : location.pathname}`;\r\n\r\n function createBlob (source, type = 'text/javascript') {\r\n return URL.createObjectURL(new Blob([source], { type }));\r\n }\r\n\r\n const eoop = err => setTimeout(() => { throw err });\r\n\r\n const throwError = err => { (self.reportError || hasWindow && window.safari && console.error || eoop)(err), void onerror(err); };\r\n\r\n function fromParent (parent) {\r\n return parent ? ` imported from ${parent}` : '';\r\n }\r\n\r\n let importMapSrcOrLazy = false;\r\n\r\n function setImportMapSrcOrLazy () {\r\n importMapSrcOrLazy = true;\r\n }\r\n\r\n // shim mode is determined on initialization, no late shim mode\r\n if (!shimMode) {\r\n if (document.querySelectorAll('script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]').length) {\r\n shimMode = true;\r\n }\r\n else {\r\n let seenScript = false;\r\n for (const script of document.querySelectorAll('script[type=module],script[type=importmap]')) {\r\n if (!seenScript) {\r\n if (script.type === 'module' && !script.ep)\r\n seenScript = true;\r\n }\r\n else if (script.type === 'importmap' && seenScript) {\r\n importMapSrcOrLazy = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\n\n const backslashRegEx = /\\\\/g;\r\n\r\n function isURL (url) {\r\n if (url.indexOf(':') === -1) return false;\r\n try {\r\n new URL(url);\r\n return true;\r\n }\r\n catch (_) {\r\n return false;\r\n }\r\n }\r\n\r\n /*\r\n * Import maps implementation\r\n *\r\n * To make lookups fast we pre-resolve the entire import