@mdn/fred 1.9.2 → 1.9.4
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/CHANGELOG.md +18 -0
- package/out/service-worker.js +1 -1
- package/out/static/client/8233.81b8c2d171f5ea9f.js +2 -0
- package/out/static/client/8233.81b8c2d171f5ea9f.js.map +1 -0
- package/out/static/client/{index.9423e811e5de44e8.js → index.397eb8a9fd5be5e4.js} +3 -3
- package/out/static/client/{index.9423e811e5de44e8.js.map → index.397eb8a9fd5be5e4.js.map} +1 -1
- package/out/static/client/{runtime.d39abe0dd7746993.js → runtime.255df607e95b6f53.js} +2 -2
- package/out/static/client/{runtime.d39abe0dd7746993.js.map → runtime.255df607e95b6f53.js.map} +1 -1
- package/out/static/client/stats.json +126 -126
- package/out/static/client/{styles-global.6cd1483479343010.js → styles-global.c51774a31e1c38ca.js} +1 -1
- package/out/static/client/{styles-global.6b074747fcd621e3.css → styles-global.e813b635d036a38b.css} +2 -2
- package/out/static/client/{styles-global.6b074747fcd621e3.css.map → styles-global.e813b635d036a38b.css.map} +1 -1
- package/out/static/client/watify_bg.dc8862fe10114050.wasm +0 -0
- package/out/static/legacy/8233.81b8c2d171f5ea9f.js +2 -0
- package/out/static/legacy/8233.81b8c2d171f5ea9f.js.map +1 -0
- package/out/static/legacy/asset-manifest.json +16 -16
- package/out/static/legacy/{index.96c76753bf722bda.html → index.fccdd0d1e36dc932.html} +1 -1
- package/out/static/legacy/stats.json +9 -9
- package/out/static/legacy/watify_bg.dc8862fe10114050.wasm +0 -0
- package/out/static/legacy/{yari.6350b803c5a2a346.js → yari.be38ed2358079d39.js} +3 -3
- package/out/static/legacy/{yari.6350b803c5a2a346.js.map → yari.be38ed2358079d39.js.map} +1 -1
- package/out/static/ssr/8233.js +1 -1
- package/out/static/ssr/8233.js.map +1 -1
- package/out/static/ssr/index.js +1 -1
- package/out/static/ssr/watify_bg.dc8862fe10114050.wasm +0 -0
- package/package.json +9 -9
- package/out/static/client/8233.db590d88c5a08a40.js +0 -2
- package/out/static/client/8233.db590d88c5a08a40.js.map +0 -1
- package/out/static/client/watify_bg.91e8b66f42839b99.wasm +0 -0
- package/out/static/legacy/8233.db590d88c5a08a40.js +0 -2
- package/out/static/legacy/8233.db590d88c5a08a40.js.map +0 -1
- package/out/static/legacy/watify_bg.91e8b66f42839b99.wasm +0 -0
- package/out/static/ssr/watify_bg.91e8b66f42839b99.wasm +0 -0
- /package/out/static/client/{index.9423e811e5de44e8.js.LICENSE.txt → index.397eb8a9fd5be5e4.js.LICENSE.txt} +0 -0
- /package/out/static/legacy/{yari.6350b803c5a2a346.js.LICENSE.txt → yari.be38ed2358079d39.js.LICENSE.txt} +0 -0
package/out/static/ssr/8233.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const __rspack_esm_id="8233";export const __rspack_esm_ids=["8233"];export const __webpack_modules__={12911(e,t,n){e.exports=n.p+"watify_bg.
|
|
1
|
+
export const __rspack_esm_id="8233";export const __rspack_esm_ids=["8233"];export const __webpack_modules__={12911(e,t,n){e.exports=n.p+"watify_bg.dc8862fe10114050.wasm"},72624(e,t,n){let a;n.d(t,{default:()=>u,watify:()=>f});let i=null;function r(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(a.memory.buffer)),i}let o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});o.decode();let s=0,l=new TextEncoder;"encodeInto"in l||(l.encodeInto=function(e,t){let n=l.encode(e);return t.set(n),{read:e.length,written:n.length}});let c=0;function f(e){let t=function(e,t,n){if(void 0===n){let n=l.encode(e),a=t(n.length,1)>>>0;return r().subarray(a,a+n.length).set(n),c=n.length,a}let a=e.length,i=t(a,1)>>>0,o=r(),s=0;for(;s<a;s++){let t=e.charCodeAt(s);if(t>127)break;o[i+s]=t}if(s!==a){0!==s&&(e=e.slice(s)),i=n(i,a,a=s+3*e.length,1)>>>0;let t=r().subarray(i+s,i+a);s+=l.encodeInto(e,t).written,i=n(i,a,s,1)>>>0}return c=s,i}(e,a.__wbindgen_malloc,a.__wbindgen_realloc),n=c,i=a.watify(t,n);if(i[3]){let e;throw o=i[2],e=a.__wbindgen_externrefs.get(o),a.__externref_table_dealloc(o),e}var o,s,f,_=(s=i[0],f=i[1],s>>>=0,r().subarray(s/1,s/1+f)).slice();return a.__wbindgen_free(i[0],+i[1],1),_}let _=new Set(["basic","cors","default"]);async function d(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&_.has(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function b(e){let t;if(void 0!==a)return a;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new n.U(n(12911)));let l=((t={}).wbg={},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){var n,a;return n=e>>>0,(s+=a=t)>=0x7ff00000&&((o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=a),o.decode(r().subarray(n,n+a))},t.wbg.__wbindgen_init_externref_table=function(){let e=a.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},t);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:c,module:f}=await d(await e,l);return a=c.exports,b.__wbindgen_wasm_module=f,i=null,a.__wbindgen_start(),a}let u=b}};
|
|
2
2
|
//# sourceMappingURL=8233.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"8233.js","sources":["/home/runner/work/fred/fred/node_modules/@mdn/watify/watify.js"],"sourcesContent":["let wasm;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return decodeText(ptr, len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n }\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeFromExternrefTable0(idx) {\n const value = wasm.__wbindgen_externrefs.get(idx);\n wasm.__externref_table_dealloc(idx);\n return value;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n/**\n * Parses the given WAT text and returns a vector of bytes on success or a JavaScript error on failure.\n *\n * # Arguments\n *\n * * `text` - A string slice containing the WAT text to be parsed.\n *\n * # Returns\n *\n * * `Ok(Vec<u8>)` containing the parsed byte code if parsing is successful.\n * * `Err(JsValue)` if parsing fails, with the error message converted into a JavaScript error value.\n * @param {string} text\n * @returns {Uint8Array}\n */\nexport function watify(text) {\n const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.watify(ptr0, len0);\n if (ret[3]) {\n throw takeFromExternrefTable0(ret[2]);\n }\n var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();\n wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);\n return v2;\n}\n\nconst EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return ret;\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_externrefs;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n ;\n };\n\n return imports;\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('watify_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["Uint8Array","TextDecoder","c","TextEncoder","Set","Response","WebAssembly","console","Object","n","Request","URL","fetch"],"mappings":"4LAAI,E,oCAEJ,IAAI,EAA0B,KAE9B,SAAS,IAIL,MAHI,CAA4B,OAA5B,GAAoC,AAAuC,IAAvC,EAAwB,UAAU,AAAK,GAC3E,GAA0B,IAAIA,WAAW,EAAK,MAAM,CAAC,MAAM,GAExD,CACX,CAEA,IAAI,EAAoB,IAAIC,YAAY,QAAS,CAAE,UAAW,GAAM,MAAO,EAAK,GAEhF,EAAkB,MAAM,GAGxB,IAAI,EAAkB,EAgBlB,EAAkB,EAEhBC,EAAoB,IAAIC,YA4EvB,SAAS,EAAO,CAAI,EACvB,IAAM,EAAO,AAhEjB,SAA2B,CAAG,CAAE,CAAM,CAAE,CAAO,EAE3C,GAAI,AAAY,SAAZ,EAAuB,CACvB,IAAM,EAAMD,EAAkB,MAAM,CAAC,GAC/B,EAAM,EAAO,EAAI,MAAM,CAAE,KAAO,EAGtC,OAFA,IAAuB,QAAQ,CAAC,EAAK,EAAM,EAAI,MAAM,EAAE,GAAG,CAAC,GAC3D,EAAkB,EAAI,MAAM,CACrB,CACX,CAEA,IAAI,EAAM,EAAI,MAAM,CAChB,EAAM,EAAO,EAAK,KAAO,EAEvB,EAAM,IAER,EAAS,EAEb,KAAO,EAAS,EAAK,IAAU,CAC3B,IAAM,EAAO,EAAI,UAAU,CAAC,GAC5B,GAAI,EAAO,IAAM,KACjB,EAAG,CAAC,EAAM,EAAO,CAAG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,EAAQ,EAAK,qBAAqB,CAClC,EAAS,EAAM,IAAI,CAAC,GAC1B,EAAM,GAAG,CAAC,EAAG,QACb,EAAM,GAAG,CAAC,EAAS,EAAG,QACtB,EAAM,GAAG,CAAC,EAAS,EAAG,MACtB,EAAM,GAAG,CAAC,EAAS,EAAG,IACtB,EAAM,GAAG,CAAC,EAAS,EAAG,GAE1B,EAEO,EAqDH,EAA0B,UAA1B,OAAO,GAAgC,AAAmB,YAAnB,OAAOS,SAA0B,aAA0BA,SAAa,AAAe,YAAf,OAAOC,KAAsB,aAA0BA,GAAG,GACzK,GAAiBC,MAAM,EAAc,EAGzC,GAAM,CAAE,UAAQ,CAAE,QAAM,CAAE,CAAG,MAAM,EAAW,MAAM,EAAgB,GAEpE,OAvDA,EAAO,AAuDoB,EAvDX,OAAO,CACvB,EAAW,sBAAsB,CAsDI,EArDrC,EAA0B,KAG1B,EAAK,gBAAgB,GACd,CAkDX,CAGA,MAAe,C"}
|
|
1
|
+
{"version":3,"file":"8233.js","sources":["/home/runner/work/fred/fred/node_modules/@mdn/watify/watify.js"],"sourcesContent":["let wasm;\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return decodeText(ptr, len);\n}\n\nlet cachedUint8ArrayMemory0 = null;\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeFromExternrefTable0(idx) {\n const value = wasm.__wbindgen_externrefs.get(idx);\n wasm.__externref_table_dealloc(idx);\n return value;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\ncachedTextDecoder.decode();\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n }\n}\n\nlet WASM_VECTOR_LEN = 0;\n\n/**\n * Parses the given WAT text and returns a vector of bytes on success or a JavaScript error on failure.\n *\n * # Arguments\n *\n * * `text` - A string slice containing the WAT text to be parsed.\n *\n * # Returns\n *\n * * `Ok(Vec<u8>)` containing the parsed byte code if parsing is successful.\n * * `Err(JsValue)` if parsing fails, with the error message converted into a JavaScript error value.\n * @param {string} text\n * @returns {Uint8Array}\n */\nexport function watify(text) {\n const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.watify(ptr0, len0);\n if (ret[3]) {\n throw takeFromExternrefTable0(ret[2]);\n }\n var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();\n wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);\n return v2;\n}\n\nconst EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n } catch (e) {\n const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return ret;\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_externrefs;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n };\n\n return imports;\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n const instance = new WebAssembly.Instance(module, imports);\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('watify_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["Uint8Array","TextDecoder","TextEncoder","Set","Response","WebAssembly","console","Object","n","Request","URL","fetch"],"mappings":"4LAAI,E,oCAYJ,IAAI,EAA0B,KAC9B,SAAS,IAIL,MAHI,CAA4B,OAA5B,GAAoC,AAAuC,IAAvC,EAAwB,UAAU,AAAK,GAC3E,GAA0B,IAAIA,WAAW,EAAK,MAAM,CAAC,MAAM,GAExD,CACX,CA6CA,IAAI,EAAoB,IAAIC,YAAY,QAAS,CAAE,UAAW,GAAM,MAAO,EAAK,GAChF,EAAkB,MAAM,GAExB,IAAI,EAAkB,EAWhB,EAAoB,IAAIC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/templates/expressions/#invalid-locations for more information about invalid expression
|
|
4263
4263
|
locations.
|
|
4264
4264
|
`)}(n,t)}(t,r),s&&(yield"\x3c!--/lit-part--\x3e");else{if(s&&(yield"\x3c!--lit-part--\x3e"),null==t||t===j.s6||t===j.c0);else if(!(0,et.sO)(t)&&ro(t))for(let a of t)yield*rm(a,r,s);else yield o(String(t));s&&(yield"\x3c!--/lit-part--\x3e")}}function rg(t){return(0,et.ps)(t)?t._$litType$.h.join("${...}"):t.strings.join("${...}")}let rf=t=>t[t.length-1],{attributeToProperty:rO,changedProperties:rb}=J;j.WF.prototype.createRenderRoot=function(){return this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions)};let LitElementRenderer=class LitElementRenderer extends ElementRenderer{static matchesClass(t){return t._$litElement$}constructor(t){super(t),this.element=new(customElements.get(this.tagName));let r=this.element.__internals;if(r)for(let[t,s]of Object.entries(K.wZ)){let a=r[t];a&&!this.element.hasAttribute(s)&&(this.element.setAttribute(s,a),this.element.setAttribute(`${K._P}${s}`,a))}}get shadowRootOptions(){return this.element.constructor.shadowRootOptions??super.shadowRootOptions}connectedCallback(){if(globalThis.litSsrCallConnectedCallback){this.element.enableUpdating=function(){};try{this.element.connectedCallback()}catch(r){let t=this.element.constructor.name;throw console.warn(`Calling ${t}.connectedCallback() resulted in a thrown error. Consider removing \`litSsrCallConnectedCallback\` to prevent calling connectedCallback or add isServer checks to your code to prevent calling browser API during SSR.`),r}}let t=rb(this.element);this.element?.willUpdate(t),j.mN.prototype.update.call(this.element,t)}attributeChangedCallback(t,r,s){rO(this.element,t,s)}*renderShadow(t){let r=this.element.constructor.elementStyles;if(void 0!==r&&r.length>0){for(let t of(yield"<style>",r))yield t.cssText;yield"</style>"}yield*rm(this.element.render(),t)}*renderLight(t){let r=this.element?.renderLight();r?yield*rm(r,t):yield""}};function*rv(t,r){r={elementRenderers:[LitElementRenderer],customElementInstanceStack:[],customElementHostStack:[],eventTargetStack:[],slotStack:[],deferHydration:!1,...r};let s=!0;(0,et.qb)(t)&&(s=t3(t)),yield*rm(t,r,s)}},47543(t,r,s){s.d(r,{Ec:()=>x,AH:()=>d,mN:()=>g});var a=s(49221);let n=globalThis,o=n.ShadowRoot&&(void 0===n.ShadyCSS||n.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,l=Symbol(),c=new WeakMap;let css_tag_n=class css_tag_n{constructor(t,r,s){if(this._$cssResult$=!0,s!==l)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(o&&void 0===t){let s=void 0!==r&&1===r.length;s&&(t=c.get(r)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&c.set(r,t))}return t}toString(){return this.cssText}};let d=(t,...r)=>new css_tag_n(1===t.length?t[0]:r.reduce((r,s,a)=>r+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[a+1],t[0]),t,l),h=o||void 0===n.CSSStyleSheet?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let r,s="";for(let r of t.cssRules)s+=r.cssText;return new css_tag_n("string"==typeof(r=s)?r:r+"",void 0,l)})(t):t,{is:u,defineProperty:p,getOwnPropertyDescriptor:m,getOwnPropertyNames:O,getOwnPropertySymbols:b,getPrototypeOf:v}=Object,y=globalThis;y.customElements??=a.nq;let _=y.trustedTypes,S=_?_.emptyScript:"",w=y.reactiveElementPolyfillSupport,T={toAttribute(t,r){switch(r){case Boolean:t=t?S:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,r){let s=t;switch(r){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},x=(t,r)=>!u(t,r),E={attribute:!0,type:String,converter:T,reflect:!1,useDefault:!1,hasChanged:x};Symbol.metadata??=Symbol("metadata"),y.litPropertyMetadata??=new WeakMap;let g=class g extends(globalThis.HTMLElement??a.wt){static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=E){if(r.state&&(r.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((r=Object.create(r)).wrapped=!0),this.elementProperties.set(t,r),!r.noAccessor){let s=Symbol(),a=this.getPropertyDescriptor(t,s,r);void 0!==a&&p(this.prototype,t,a)}}static getPropertyDescriptor(t,r,s){let{get:a,set:n}=m(this.prototype,t)??{get(){return this[r]},set(t){this[r]=t}};return{get:a,set(r){let o=a?.call(this);n?.call(this,r),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let t=this.properties;for(let r of[...O(t),...b(t)])this.createProperty(r,t[r])}let t=this[Symbol.metadata];if(null!==t){let r=litPropertyMetadata.get(t);if(void 0!==r)for(let[t,s]of r)this.elementProperties.set(t,s)}for(let[t,r]of(this._$Eh=new Map,this.elementProperties)){let s=this._$Eu(t,r);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let r=[];if(Array.isArray(t))for(let s of new Set(t.flat(1/0).reverse()))r.unshift(h(s));else void 0!==t&&r.push(h(t));return r}static _$Eu(t,r){let s=r.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map;for(let r of this.constructor.elementProperties.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,r)=>{if(o)t.adoptedStyleSheets=r.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let s of r){let r=document.createElement("style"),a=n.litNonce;void 0!==a&&r.setAttribute("nonce",a),r.textContent=s.cssText,t.appendChild(r)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,s){this._$AK(t,s)}_$ET(t,r){let s=this.constructor.elementProperties.get(t),a=this.constructor._$Eu(t,s);if(void 0!==a&&!0===s.reflect){let n=(void 0!==s.converter?.toAttribute?s.converter:T).toAttribute(r,s.type);this._$Em=t,null==n?this.removeAttribute(a):this.setAttribute(a,n),this._$Em=null}}_$AK(t,r){let s=this.constructor,a=s._$Eh.get(t);if(void 0!==a&&this._$Em!==a){let t=s.getPropertyOptions(a),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:T;this._$Em=a,this[a]=n.fromAttribute(r,t.type)??this._$Ej?.get(a)??null,this._$Em=null}}requestUpdate(t,r,s){if(void 0!==t){let a=this.constructor,n=this[t];if(!(((s??=a.getPropertyOptions(t)).hasChanged??x)(n,r)||s.useDefault&&s.reflect&&n===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,r,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,r,{useDefault:s,reflect:a,wrapped:n},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??r??this[t]),!0!==n||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(r=void 0),this._$AL.set(t,r)),!0===a&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,r]of this._$Ep)this[t]=r;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[r,s]of t){let{wrapped:t}=s,a=this[r];!0!==t||this._$AL.has(r)||void 0===a||this.C(r,void 0,s,a)}}let t=!1,r=this._$AL;try{(t=this.shouldUpdate(r))?(this.willUpdate(r),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(r)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};g.elementStyles=[],g.shadowRootOptions={mode:"open"},g.elementProperties=new Map,g.finalized=new Map,w?.({ReactiveElement:g}),(y.reactiveElementVersions??=[]).push("2.1.0")},31011(t,r,s){s.d(r,{YZ:()=>task_h});var a=s(47543);let n=Symbol();let task_h=class task_h{get taskComplete(){return this.t||(1===this.i?this.t=new Promise((t,r)=>{this.o=t,this.h=r}):3===this.i?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,r,s){this.p=0,this.i=0,(this._=t).addController(this);let a="object"==typeof r?r:{task:r,args:s};this.v=a.task,this.j=a.args,this.m=a.argsEqual??o,this.k=a.onComplete,this.A=a.onError,this.autoRun=a.autoRun??!0,"initialValue"in a&&(this.u=a.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){!0===this.autoRun&&this.S()}hostUpdated(){"afterUpdate"===this.autoRun&&this.S()}T(){if(void 0===this.j)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),r=this.O;this.O=t,t===r||void 0===t||void 0!==r&&this.m(r,t)||await this.run(t)}async run(t){let r,s;t??=this.T(),this.O=t,1===this.i?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,"afterUpdate"===this.autoRun?queueMicrotask(()=>this._.requestUpdate()):this._.requestUpdate();let a=++this.p;this.q=new AbortController;let o=!1;try{r=await this.v(t,{signal:this.q.signal})}catch(t){o=!0,s=t}if(this.p===a){if(r===n)this.i=0;else{if(!1===o){try{this.k?.(r)}catch{}this.i=2,this.o?.(r)}else{try{this.A?.(s)}catch{}this.i=3,this.h?.(s)}this.u=r,this.l=s}this._.requestUpdate()}}abort(t){1===this.i&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}};let o=(t,r)=>t===r||t.length===r.length&&t.every((t,s)=>!(0,a.Ec)(t,r[s]))},65228(t,r,s){s.d(r,{AH:()=>a.AH,JW:()=>n.JW,WF:()=>i,Zm:()=>c,c0:()=>n.c0,mN:()=>a.mN,qy:()=>n.qy,s6:()=>n.s6});var a=s(47543),n=s(40173);let o=globalThis;let i=class i extends a.mN{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=(0,n.XX)(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return n.c0}};i._$litElement$=!0,i.finalized=!0,o.litElementHydrateSupport?.({LitElement:i});let l=o.litElementPolyfillSupport;l?.({LitElement:i});let c={_$AK:(t,r,s)=>{t._$AK(r,s)},_$AL:t=>t._$AL};(o.litElementVersions??=[]).push("4.2.0")},91223(t,r,s){s.d(r,{Qk:()=>o,Rt:()=>h,mY:()=>p,ps:()=>c,qb:()=>l,sB:()=>d,sO:()=>n});let{I:a}=s(40173).ge,n=t=>null===t||"object"!=typeof t&&"function"!=typeof t,o={HTML:1,SVG:2,MATHML:3},l=(t,r)=>void 0===r?void 0!==t?._$litType$:t?._$litType$===r,c=t=>null!=t?._$litType$?.h,d=t=>t?._$litDirective$,h=t=>void 0===t.strings,u={},p=(t,r=u)=>t._$AH=r},26071(t,r,s){s.d(r,{OA:()=>a,WL:()=>i,u$:()=>n});let a={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},n=t=>(...r)=>({_$litDirective$:t,values:r});let i=class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,s){this._$Ct=t,this._$AM=r,this._$Ci=s}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}},16809(t,r,s){s.d(r,{f:()=>a});function*a(t,r){let s="function"==typeof r;if(void 0!==t){let a=-1;for(let n of t)a>-1&&(yield s?r(a):r),a++,yield n}}},40173(t,r,s){s.d(r,{JW:()=>$,XX:()=>X,c0:()=>D,ej:()=>P,ge:()=>Z,qy:()=>C,s6:()=>Q});let a=globalThis,n=a.trustedTypes,o=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,l="$lit$",c=`lit$${Math.random().toFixed(9).slice(2)}$`,d="?"+c,h=`<${d}>`,u=void 0===a.document?{createTreeWalker:()=>({})}:document,p=()=>u.createComment(""),m=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,b=t=>O(t)||"function"==typeof t?.[Symbol.iterator],v="[ \n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,S=/>/g,w=RegExp(`>|${v}(?:([^\\s"'>=/]+)(${v}*=${v}*(?:[^
|
|
4265
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,x=/"/g,E=/^(?:script|style|textarea|title)$/i,A=t=>(r,...s)=>({_$litType$:t,strings:r,values:s}),C=A(1),$=A(2),P=A(3),D=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),q=new WeakMap,B=u.createTreeWalker(u,129);function U(t,r){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(r):r}let F=(t,r)=>{let s=t.length-1,a=[],n,o=2===r?"<svg>":3===r?"<math>":"",d=y;for(let r=0;r<s;r++){let s=t[r],u,p,m=-1,O=0;for(;O<s.length&&(d.lastIndex=O,null!==(p=d.exec(s)));)O=d.lastIndex,d===y?"!--"===p[1]?d=_:void 0!==p[1]?d=S:void 0!==p[2]?(E.test(p[2])&&(n=RegExp("</"+p[2],"g")),d=w):void 0!==p[3]&&(d=w):d===w?">"===p[0]?(d=n??y,m=-1):void 0===p[1]?m=-2:(m=d.lastIndex-p[2].length,u=p[1],d=void 0===p[3]?w:'"'===p[3]?x:T):d===x||d===T?d=w:d===_||d===S?d=y:(d=w,n=void 0);let b=d===w&&t[r+1].startsWith("/>")?" ":"";o+=d===y?s+h:m>=0?(a.push(u),s.slice(0,m)+l+s.slice(m)+c+b):s+c+(-2===m?r:b)}return[U(t,o+(t[s]||"<?>")+(2===r?"</svg>":3===r?"</math>":"")),a]};let N=class N{constructor({strings:t,_$litType$:r},s){let a;this.parts=[];let o=0,h=0,u=t.length-1,m=this.parts,[O,b]=F(t,r);if(this.el=N.createElement(O,s),B.currentNode=this.el.content,2===r||3===r){let t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=B.nextNode())&&m.length<u;){if(1===a.nodeType){if(a.hasAttributes())for(let t of a.getAttributeNames())if(t.endsWith(l)){let r=b[h++],s=a.getAttribute(t).split(c),n=/([.?@])?(.*)/.exec(r);m.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?H:"?"===n[1]?I:"@"===n[1]?L:R}),a.removeAttribute(t)}else t.startsWith(c)&&(m.push({type:6,index:o}),a.removeAttribute(t));if(E.test(a.tagName)){let t=a.textContent.split(c),r=t.length-1;if(r>0){a.textContent=n?n.emptyScript:"";for(let s=0;s<r;s++)a.append(t[s],p()),B.nextNode(),m.push({type:2,index:++o});a.append(t[r],p())}}}else if(8===a.nodeType)if(a.data===d)m.push({type:2,index:o});else{let t=-1;for(;-1!==(t=a.data.indexOf(c,t+1));)m.push({type:7,index:o}),t+=c.length-1}o++}}static createElement(t,r){let s=u.createElement("template");return s.innerHTML=t,s}};function V(t,r,s=t,a){if(r===D)return r;let n=void 0!==a?s._$Co?.[a]:s._$Cl,o=m(r)?void 0:r._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t))._$AT(t,s,a),void 0!==a?(s._$Co??=[])[a]=n:s._$Cl=n),void 0!==n&&(r=V(t,n._$AS(t,r.values),n,a)),r}let M=class M{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:s}=this._$AD,a=(t?.creationScope??u).importNode(r,!0);B.currentNode=a;let n=B.nextNode(),o=0,l=0,c=s[0];for(;void 0!==c;){if(o===c.index){let r;2===c.type?r=new k(n,n.nextSibling,this,t):1===c.type?r=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(r=new z(n,this,t)),this._$AV.push(r),c=s[++l]}o!==c?.index&&(n=B.nextNode(),o++)}return B.currentNode=u,a}p(t){let r=0;for(let s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,r),r+=s.strings.length-2):s._$AI(t[r])),r++}};let k=class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,s,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=s,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return void 0!==r&&11===t?.nodeType&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){m(t=V(this,t,r))?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==D&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):b(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Q&&m(this._$AH)?this._$AA.nextSibling.data=t:this.T(u.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:s}=t,a="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(U(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===a)this._$AH.p(r);else{let t=new M(a,this),s=t.u(this.options);t.p(r),this.T(s),this._$AH=t}}_$AC(t){let r=q.get(t.strings);return void 0===r&&q.set(t.strings,r=new N(t)),r}k(t){O(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,s,a=0;for(let n of t)a===r.length?r.push(s=new k(this.O(p()),this.O(p()),this,this.options)):s=r[a],s._$AI(n),a++;a<r.length&&(this._$AR(s&&s._$AB.nextSibling,a),r.length=a)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}};let R=class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,s,a,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=r,this._$AM=a,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Q}_$AI(t,r=this,s,a){let n=this.strings,o=!1;if(void 0===n)(o=!m(t=V(this,t,r,0))||t!==this._$AH&&t!==D)&&(this._$AH=t);else{let a,l,c=t;for(t=n[0],a=0;a<n.length-1;a++)(l=V(this,c[s+a],r,a))===D&&(l=this._$AH[a]),o||=!m(l)||l!==this._$AH[a],l===Q?t=Q:t!==Q&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}o&&!a&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};let H=class H extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}};let I=class I extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}};let L=class L extends R{constructor(t,r,s,a,n){super(t,r,s,a,n),this.type=5}_$AI(t,r=this){if((t=V(this,t,r,0)??Q)===D)return;let s=this._$AH,a=t===Q&&s!==Q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==Q&&(s===Q||a);a&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}};let z=class z{constructor(t,r,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}};let Z={M:l,P:c,A:d,C:1,L:F,R:M,D:b,V:V,I:k,H:R,N:I,U:L,B:H,F:z},G=a.litHtmlPolyfillSupport;G?.(N,k),(a.litHtmlVersions??=[]).push("3.3.1");let X=(t,r,s)=>{let a=s?.renderBefore??r,n=a._$litPart$;if(void 0===n){let t=s?.renderBefore??null;a._$litPart$=n=new k(r.insertBefore(p(),t),t,void 0,s??{})}return n._$AI(t),n}},95089(t,r,s){s.d(r,{J:()=>n});var a=s(40173);let n=t=>t??a.s6},52706(t,r,s){s.d(r,{K:()=>b,_:()=>m});var a=s(40173),n=s(91223),o=s(26071);let l=(t,r)=>{let s=t._$AN;if(void 0===s)return!1;for(let t of s)t._$AO?.(r,!1),l(t,r);return!0},c=t=>{let r,s;do{if(void 0===(r=t._$AM))break;(s=r._$AN).delete(t),t=r}while(0===s?.size)},d=t=>{for(let r;r=t._$AM;t=r){let s=r._$AN;if(void 0===s)r._$AN=s=new Set;else if(s.has(t))break;s.add(t),p(r)}};function h(t){void 0!==this._$AN?(c(this),this._$AM=t,d(this)):this._$AM=t}function u(t,r=!1,s=0){let a=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(r)if(Array.isArray(a))for(let t=s;t<a.length;t++)l(a[t],!1),c(a[t]);else null!=a&&(l(a,!1),c(a));else l(this,t)}let p=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=h)};let f=class f extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,s){super._$AT(t,r,s),d(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(l(this,t),c(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};let m=()=>new ref_h;let ref_h=class ref_h{};let O=new WeakMap,b=(0,o.u$)(class extends f{render(t){return a.s6}update(t,[r]){let s=r!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=r,this.ht=t.options?.host,this.rt(this.ct=t.element)),a.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){let r=this.ht??globalThis,s=O.get(r);void 0===s&&(s=new WeakMap,O.set(r,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?O.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},99121(t,r,s){s.d(r,{W:()=>c});var a=s(40173),n=s(26071);let o="important",l=" !"+o,c=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return null==a?r:r+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(t,[r]){let{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(let t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(let t in r){let a=r[t];if(null!=a){this.ft.add(t);let r="string"==typeof a&&a.endsWith(l);t.includes("-")||r?s.setProperty(t,r?a.slice(0,-11):a,r?o:""):s[t]=a}}return a.c0}})},13260(t,r,s){s.d(r,{_:()=>o});var a=s(40173),n=s(26071);let e=class e extends n.WL{constructor(t){if(super(t),this.it=a.s6,t.type!==n.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===a.s6||null==t)return this._t=void 0,this.it=t;if(t===a.c0)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};e.directiveName="unsafeHTML",e.resultType=1;let o=(0,n.u$)(e)},86161(t,r,s){s.d(r,{AH:()=>a.AH,JW:()=>a.JW,WF:()=>a.WF,c0:()=>a.c0,mN:()=>a.mN,qy:()=>a.qy,s6:()=>a.s6}),s(47543),s(40173);var a=s(65228)},77278(t,s,a){function n(t,r,s=u.Debug){let a=`(Glean.${t})`;Array.isArray(r)?console[s](a,...r):console[s](a,r)}a.d(s,{w:()=>et}),(h=u||(u={})).Debug="debug",h.Info="info",h.Warn="warn",h.Error="error",h.Trace="trace";let o="core.Context";let context_Context=class context_Context{constructor(){this.initialized=!1,this.testing=!1,this.supportedMetrics={},this.startTime=new Date}static get instance(){return context_Context._instance||(context_Context._instance=new context_Context),context_Context._instance}static testUninitialize(){context_Context._instance=void 0}static get uploadEnabled(){return void 0===context_Context.instance.uploadEnabled&&n(o,["Attempted to access Context.uploadEnabled before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.uploadEnabled}static set uploadEnabled(t){context_Context.instance.uploadEnabled=t}static get metricsDatabase(){return void 0===context_Context.instance.metricsDatabase&&n(o,["Attempted to access Context.metricsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.metricsDatabase}static set metricsDatabase(t){context_Context.instance.metricsDatabase=t}static get eventsDatabase(){return void 0===context_Context.instance.eventsDatabase&&n(o,["Attempted to access Context.eventsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.eventsDatabase}static set eventsDatabase(t){context_Context.instance.eventsDatabase=t}static get pingsDatabase(){return void 0===context_Context.instance.pingsDatabase&&n(o,["Attempted to access Context.pingsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.pingsDatabase}static set pingsDatabase(t){context_Context.instance.pingsDatabase=t}static get errorManager(){return void 0===context_Context.instance.errorManager&&n(o,["Attempted to access Context.errorManager before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.errorManager}static set errorManager(t){context_Context.instance.errorManager=t}static get applicationId(){return void 0===context_Context.instance.applicationId&&n(o,["Attempted to access Context.applicationId before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.applicationId}static set applicationId(t){context_Context.instance.applicationId=t}static get initialized(){return context_Context.instance.initialized}static set initialized(t){context_Context.instance.initialized=t}static get config(){return void 0===context_Context.instance.config&&n(o,["Attempted to access Context.config before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.config}static set config(t){context_Context.instance.config=t}static get startTime(){return context_Context.instance.startTime}static get testing(){return context_Context.instance.testing}static set testing(t){context_Context.instance.testing=t}static get corePings(){return context_Context.instance.corePings}static set corePings(t){context_Context.instance.corePings=t}static get coreMetrics(){return context_Context.instance.coreMetrics}static set coreMetrics(t){context_Context.instance.coreMetrics=t}static set platform(t){context_Context.instance.platform=t}static get platform(){return void 0===context_Context.instance.platform&&n(o,["Attempted to access Context.platform before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.platform}static isPlatformSet(){return!!context_Context.instance.platform}static getSupportedMetric(t){return context_Context.instance.supportedMetrics[t]}static addSupportedMetric(t,r){t in context_Context.instance.supportedMetrics||(context_Context.instance.supportedMetrics[t]=r)}};let l=r("crypto");var c,d,h,u,p,m,O,b,v,y=a.n(l);let _={randomUUID:y().randomUUID},S=new Uint8Array(256),w=S.length,T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));let x=function(t,r,s){if(_.randomUUID&&!r&&!t)return _.randomUUID();let a=(t=t||{}).random||(t.rng||function(){return w>S.length-16&&(y().randomFillSync(S),w=0),S.slice(w,w+=16)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,r){s=s||0;for(let t=0;t<16;++t)r[s+t]=a[t];return r}return function(t,r=0){return T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]}(a)};(c=p||(p={})).InvalidValue="invalid_value",c.InvalidLabel="invalid_label",c.InvalidState="invalid_state",c.InvalidOverflow="invalid_overflow",c.InvalidType="invalid_type",(d=m||(m={}))[d.Success=0]="Success",d[d.Error=1]="Error";let metric_MetricValidationError=class metric_MetricValidationError extends Error{constructor(t,r=p.InvalidType){super(t),this.type=r,this.name="MetricValidationError"}recordError(t){context_Context.errorManager.record(t,this.type,this.message)}};let Metric=class Metric{constructor(t){this.inner=this.validateOrThrow(t)}get(){return this.inner}set(t){this.inner=t}validateOrThrow(t){let r=this.validate(t);if(r.type===m.Error)throw new metric_MetricValidationError(r.errorMessage,r.errorType);return t}};function E(t){return"object"==typeof t&&null!==t&&t.constructor===Object}function A(t){return"string"==typeof t}function C(t){return"number"==typeof t&&!isNaN(t)}function $(){return"undefined"!=typeof crypto?x():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let r=16*Math.random()|0;return("x"==t?r:3&r|8).toString(16)})}function P(){return Math.round("undefined"==typeof performance?Date.now():performance.now())}function D(t,r="core.utils"){return!!context_Context.testing||(n(r,[`Attempted to access test only method \`${t||"unknown"}\`,`,"but Glean is not in testing mode. Ignoring. Make sure to put Glean in testing mode","before accessing such methods, by calling `testResetGlean`."],u.Error),!1)}let Q=/^[a-z_][a-z0-9_-]{0,29}(\.[a-z_][a-z0-9_-]{0,29})*$/;let MetricType=class MetricType{constructor(t,r,s){s&&context_Context.addSupportedMetric(t,s),this.type=t,this.name=r.name,this.category=r.category,this.sendInPings=r.sendInPings,this.lifetime=r.lifetime,this.disabled=r.disabled,this.dynamicLabel=r.dynamicLabel}baseIdentifier(){return this.category.length>0?`${this.category}.${this.name}`:this.name}identifier(){let t=this.baseIdentifier();return void 0!==this.dynamicLabel?function(t){var r,s,a;if(void 0===t.dynamicLabel)throw Error("This point should never be reached.");let n=(r=t.baseIdentifier(),s=t.dynamicLabel,`${r}/${s}`);for(let r of t.sendInPings)if(context_Context.metricsDatabase.hasMetric(t.lifetime,r,t.type,n))return n;let o=0;for(let r of t.sendInPings)o+=context_Context.metricsDatabase.countByBaseIdentifier(t.lifetime,r,t.type,t.baseIdentifier());let l=!1;return o>=16?l=!0:t.dynamicLabel.length>61?(l=!0,context_Context.errorManager.record(t,p.InvalidLabel,`Label length ${t.dynamicLabel.length} exceeds maximum of 61.`)):Q.test(t.dynamicLabel)||(l=!0,context_Context.errorManager.record(t,p.InvalidLabel,`Label must be snake_case, got '${t.dynamicLabel}'.`)),l?(a=t.baseIdentifier(),`${a}/__other__`):n}(this):t}shouldRecord(t){return t&&!this.disabled}testGetNumRecordedErrors(t,r=this.sendInPings[0]){return D("testGetNumRecordedErrors")?context_Context.errorManager.testGetNumRecordedErrors(this,t,r):0}};function q(t){return A(t)?{type:m.Success}:{type:m.Error,errorMessage:`Expected string value, got ${JSON.stringify(t)}`}}var B=function(t,r,s,a,n){if("m"===a)throw TypeError("Private method is not writable");if("a"===a&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof r?t!==r||!n:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?n.call(t,s):n?n.value=s:r.set(t,s),s},U=function(t,r,s,a){if("a"===s&&!a)throw TypeError("Private accessor was defined without a getter");if("function"==typeof r?t!==r||!a:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?a:"a"===s?a.call(t):a?a.value:r.get(t)};let F=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;let UUIDMetric=class UUIDMetric extends Metric{constructor(t){super(t)}validate(t){let r=q(t);return r.type===m.Error?r:F.test(t)?{type:m.Success}:{type:m.Error,errorMessage:`"${t}" is not a valid UUID`,errorType:p.InvalidValue}}payload(){return this.inner}};let InternalUUIDMetricType=class InternalUUIDMetricType extends MetricType{constructor(t){super("uuid",t,UUIDMetric)}set(t){let r;if(this.shouldRecord(context_Context.uploadEnabled)){t||(t=$());try{r=new UUIDMetric(t),context_Context.metricsDatabase.record(this,r)}catch(t){t instanceof metric_MetricValidationError&&t.recordError(this)}}}generateAndSet(){if(!this.shouldRecord(context_Context.uploadEnabled))return;let t=$();return this.set(t),t}testGetValue(t=this.sendInPings[0]){if(D("testGetValue","core.metrics.UUIDMetricType"))return context_Context.metricsDatabase.getMetric(t,this)}};let V=class{constructor(t){O.set(this,void 0),B(this,O,new InternalUUIDMetricType(t),"f")}set(t){U(this,O,"f").set(t)}generateAndSet(){return U(this,O,"f").generateAndSet()}testGetValue(t=U(this,O,"f").sendInPings[0]){return U(this,O,"f").testGetValue(t)}testGetNumRecordedErrors(t,r=U(this,O,"f").sendInPings[0]){return U(this,O,"f").testGetNumRecordedErrors(t,r)}};O=new WeakMap;let Z="events",G=["#glean_execution_counter","#glean_reference_time"];let RecordedEvent=class RecordedEvent extends Metric{constructor(t){super(t)}static withTransformedExtras(t,r){let s=r(t.extra||{});return{category:t.category,name:t.name,timestamp:t.timestamp,extra:s&&Object.keys(s).length>0?s:void 0}}addExtra(t,r){this.inner.extra||(this.inner.extra={}),this.inner.extra[t]=r}withoutReservedExtras(){return RecordedEvent.withTransformedExtras(this.get(),t=>Object.keys(t).filter(t=>!G.includes(t)).reduce((r,s)=>(r[s]=t[s],r),{}))}validate(t){var r;if(!E(t))return{type:m.Error,errorMessage:`Expected Glean event object, got ${typeof t}`};let s="category"in t&&A(t.category),a="name"in t&&A(t.name);if(!s||!a)return{type:m.Error,errorMessage:`Unexpected value for "category" or "name" in event object: ${JSON.stringify(t)}`};if(!("timestamp"in t&&C(r=t.timestamp)&&Number.isInteger(r)&&t.timestamp>=0))return{type:m.Error,errorMessage:`Event timestamp must be a positive integer, got ${JSON.stringify(t)}`};if(t.extra){if(!E(t.extra))return{type:m.Error,errorMessage:`Expected Glean extras object, got ${typeof t}`};for(let[r,s]of Object.entries(t.extra)){let t=q(r);if(t.type===m.Error)return t;if(!A(s)&&!C(s)&&"boolean"!=typeof s)return{type:m.Error,errorMessage:`Unexpected value for extra key ${r}: ${JSON.stringify(s)}`}}}return{type:m.Success}}payload(){return RecordedEvent.withTransformedExtras(this.withoutReservedExtras(),t=>Object.keys(t).reduce((r,s)=>(r[s]=t[s].toString(),r),{}))}};var X=function(t,r,s,a,n){if("m"===a)throw TypeError("Private method is not writable");if("a"===a&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof r?t!==r||!n:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?n.call(t,s):n?n.value=s:r.set(t,s),s},W=function(t,r,s,a){if("a"===s&&!a)throw TypeError("Private accessor was defined without a getter");if("function"==typeof r?t!==r||!a:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?a:"a"===s?a.call(t):a?a.value:r.get(t)};let InternalEventMetricType=class InternalEventMetricType extends MetricType{constructor(t,r){super("event",t),this.allowedExtraKeys=r}record(t,r=P()){if(!this.shouldRecord(context_Context.uploadEnabled))return;let s=Date.now();try{let a=new RecordedEvent({category:this.category,name:this.name,timestamp:r,extra:t}),n={};if(t&&this.allowedExtraKeys)for(let[r,s]of Object.entries(t))if(this.allowedExtraKeys.includes(r))A(s)?n[r]=function(t,r,s){if(!A(r))throw new metric_MetricValidationError(`Expected string, got ${JSON.stringify(r)}`);let a=new TextEncoder,n=new TextDecoder("utf-8"),o=a.encode(r).slice(0,500),l=n.decode(o);return l!==r&&context_Context.errorManager.record(t,p.InvalidOverflow,`Value length ${new Blob([r]).size} exceeds maximum of ${r.length} bytes.`),l}(this,s,0):n[r]=s;else{context_Context.errorManager.record(this,p.InvalidValue,`Invalid key index: ${r}`);continue}n.glean_timestamp=s.toString(),a.set({...a.get(),extra:n}),context_Context.eventsDatabase.record(this,a)}catch(t){t instanceof metric_MetricValidationError&&t.recordError(this)}}testGetValue(t=this.sendInPings[0]){if(D("testGetValue","core.metrics.EventMetricType")){let r=context_Context.eventsDatabase.getEvents(t,this);return r&&r.forEach(t=>{t.extra&&(delete t.extra.glean_timestamp,0==Object.keys(t.extra).length&&(t.extra=void 0))}),r}}};let EventMetricType=class EventMetricType{constructor(t,r){b.set(this,void 0),X(this,b,new InternalEventMetricType(t,r),"f")}record(t){W(this,b,"f").record(t)}testGetValue(t=W(this,b,"f").sendInPings[0]){return W(this,b,"f").testGetValue(t)}testGetNumRecordedErrors(t,r=W(this,b,"f").sendInPings[0]){return W(this,b,"f").testGetNumRecordedErrors(t,r)}};b=new WeakMap;let j="core.glean_metrics";var Y=v||(v={});let J={pageLoad:new EventMetricType({category:"glean",name:"page_load",sendInPings:[Z],lifetime:"ping",disabled:!1},["url","referrer","title"]),elementClick:new EventMetricType({category:"glean",name:"element_click",sendInPings:[Z],lifetime:"ping",disabled:!1},["id","type","label","url","referrer","title"]),pageId:new V({category:"glean",name:"page_id",sendInPings:[Z],lifetime:"application",disabled:!1})};function K(t){context_Context.initialized?J.elementClick.record(t):n(j,"Attempted to record element click event before Glean was initialized. This is a no-op.",u.Warn)}Y.pageLoad=function(t){var r,s,a;context_Context.initialized?(J.pageId.generateAndSet(),J.pageLoad.record({url:null!=(r=null==t?void 0:t.url)?r:"undefined"!=typeof window?window.location.href:"URL_NOT_PROVIDED_OR_AVAILABLE",referrer:null!=(s=null==t?void 0:t.referrer)?s:"undefined"!=typeof document?document.referrer:"REFERRER_NOT_PROVIDED_OR_AVAILABLE",title:null!=(a=null==t?void 0:t.title)?a:"undefined"!=typeof document?document.title:"TITLE_NOT_PROVIDED_OR_AVAILABLE"})):n(j,"Attempted to record a page load event before Glean was initialized. This is a no-op.",u.Warn)},Y.handleClickEvent=function(t){let r,s=t.target.closest("[data-glean-id], [data-glean-type], [data-glean-label]");s&&K({...(r=s.dataset).gleanId&&{id:r.gleanId},...r.gleanType&&{type:r.gleanType},...r.gleanLabel&&{label:r.gleanLabel},url:"undefined"!=typeof window?window.location.href:"URL_NOT_PROVIDED_OR_AVAILABLE",referrer:"undefined"!=typeof document?document.referrer:"REFERRER_NOT_PROVIDED_OR_AVAILABLE",title:"undefined"!=typeof document?document.title:"TITLE_NOT_PROVIDED_OR_AVAILABLE"})},Y.recordElementClick=K;let ee=v;function et(t){ee.recordElementClick({id:t,url:globalThis.location.href,referrer:document.referrer,title:document.title})}},14632(t,r,s){s.d(r,{o:()=>a});function a(t,r){let s=t.replaceAll("_"," ").split("/").filter(t=>!["",r,"docs"].includes(t));return(s=s.map(t=>"API"===t?"Web APIs":t)).length>1&&"Web"===s.at(0)&&s.splice(0,1),s.length>1&&s.splice(-1,1),s.join(" / ")}}},c={};function d(t){var r=c[t];if(void 0!==r)return r.exports;var s=c[t]={id:t,loaded:!1,exports:{}};return l[t].call(s.exports,s,s.exports,d),s.loaded=!0,s.exports}d.m=l,d.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return d.d(r,{a:r}),r},a=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,d.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var n=Object.create(null);d.r(n);var o={};s=s||[null,a({}),a([]),a(a)];for(var l=2&r&&t;("object"==typeof l||"function"==typeof l)&&!~s.indexOf(l);l=a(l))Object.getOwnPropertyNames(l).forEach(r=>{o[r]=()=>t[r]});return o.default=()=>t,d.d(n,o),n},d.d=(t,r)=>{for(var s in r)d.o(r,s)&&!d.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},d.f={},d.e=t=>Promise.all(Object.keys(d.f).reduce((r,s)=>(d.f[s](t,r),r),[])),d.k=t=>""+t+".css",d.u=t=>""+(({1023:"prism-sas-js",105:"prism-kotlin-js",1052:"prism-web-idl-js",1074:"prism-cooklang-js",1148:"prism-stylus-js",1163:"prism-julia-js",1198:"prism-uri-js",1209:"prism-llvm-js",1211:"prism-lilypond-js",1230:"prism-verilog-js",1234:"prism-io-js",1243:"prism-idris-js",1353:"prism-rip-js",1379:"prism-linker-script-js",1384:"prism-ada-js",1436:"prism-openqasm-js",1488:"prism-clojure-js",1594:"prism-clike-js",1614:"prism-basic-js",1656:"prism-git-js",167:"prism-bqn-js",17:"prism-brainfuck-js",1729:"prism-wgsl-js",1742:"prism-j-js",1754:"prism-avisynth-js",181:"prism-monkey-js",1855:"prism-hpkp-js",1888:"prism-purebasic-js",1897:"prism-javastacktrace-js",1917:"prism-solidity-js",1957:"prism-actionscript-js",1971:"prism-coq-js",2006:"prism-oz-js",2046:"prism-gherkin-js",2256:"prism-rescript-js",2317:"prism-antlr4-js",2326:"prism-javadoc-js",2328:"prism-batch-js",2381:"prism-cue-js",2396:"prism-turtle-js",2422:"prism-bnf-js",2439:"prism-naniscript-js",2443:"prism-javascript-js",2500:"prism-chaiscript-js",2538:"prism-jsonp-js",2548:"prism-rest-js",2555:"prism-nsis-js",2578:"prism-smarty-js",2647:"prism-arturo-js",2649:"prism-nasm-js",2727:"prism-splunk-spl-js",276:"prism-iecst-js",2770:"prism-zig-js",2812:"prism-solution-file-js",2890:"prism-csp-js",2964:"prism-uorazor-js",2966:"prism-r-js",2988:"prism-wren-js",3026:"prism-wiki-js",3076:"prism-wolfram-js",3100:"prism-nim-js",3141:"prism-ichigojam-js",3150:"prism-apacheconf-js",3157:"prism-css-extras-js",3172:"prism-cil-js",3201:"prism-jq-js",3298:"prism-ftl-js",3310:"prism-lisp-js",3323:"prism-dns-zone-file-js",3396:"prism-excel-formula-js",3503:"prism-abnf-js",3522:"prism-hoon-js",3535:"prism-awk-js",3543:"prism-t4-cs-js",357:"prism-less-js",3621:"prism-applescript-js",3634:"prism-lua-js",367:"prism-yaml-js",3695:"prism-django-js",3725:"prism-al-js",3733:"prism-regex-js",3755:"prism-bsl-js",3798:"prism-renpy-js",3805:"prism-shell-session-js",3855:"prism-gradle-js",3857:"prism-vbnet-js",3864:"prism-phpdoc-js",391:"prism-protobuf-js",3997:"prism-dot-js",4008:"prism-kumir-js",4054:"prism-pascal-js",4068:"prism-asm6502-js",418:"prism-systemd-js",4203:"prism-diff-js",4213:"prism-warpscript-js",4227:"prism-scheme-js",4270:"prism-docker-js",4275:"prism-cpp-js",4334:"prism-bbj-js",4338:"prism-dhall-js",4342:"prism-ini-js",4431:"prism-rego-js",4448:"prism-smali-js",4461:"prism-bicep-js",4468:"prism-ejs-js",4479:"prism-hlsl-js",4492:"prism-bash-js",450:"prism-haxe-js",4522:"prism-plant-uml-js",453:"prism-apex-js",4531:"prism-svelte",4550:"prism-flow-js",4555:"prism-agda-js",463:"prism-js-extras-js",4637:"prism-icon-js",4667:"prism-textile-js",4670:"prism-inform7-js",4704:"prism-ignore-js",4750:"prism-markup-js",4813:"prism-nand2tetris-hdl-js",4832:"prism-racket-js",4854:"prism-pcaxis-js",4896:"prism-haml-js",4911:"prism-bro-js",4922:"prism-v-js",4975:"prism-icu-message-format-js",5087:"prism-core-js",5091:"prism-velocity-js",5128:"prism-pug-js",5166:"prism-markup-templating-js",5169:"prism-cobol-js",5173:"prism-typoscript-js",52:"prism-vim-js",5249:"prism-parigp-js",5414:"prism-lolcode-js",5503:"prism-squirrel-js",5538:"prism-asmatmel-js",5547:"prism-dax-js",5549:"prism-hcl-js",5582:"prism-n4js-js",56:"prism-arduino-js",5607:"prism-rust-js",5616:"prism-json-js",5637:"prism-psl-js",5747:"prism-stata-js",5781:"prism-twig-js",5826:"prism-objectivec-js",585:"prism-tremor-js",5899:"prism-cypher-js",5901:"prism-css-js",606:"prism-dataweave-js",6069:"prism-cmake-js",6071:"prism-maxscript-js",6141:"prism-gettext-js",6187:"prism-brightscript-js",6206:"prism-qml-js",6241:"prism-tcl-js",6253:"prism-bison-js",6267:"prism-parser-js",6273:"prism-mizar-js",6290:"prism-robotframework-js",6363:"prism-visual-basic-js",6368:"prism-ocaml-js",638:"prism-php-extras-js",6444:"prism-groovy-js",6459:"prism-powerquery-js",6476:"prism-puppet-js",6502:"prism-stan-js",6517:"prism-apl-js",6588:"prism-php-js",6616:"prism-roboconf-js",6673:"prism-purescript-js",6677:"prism-livescript-js",6680:"prism-go-js",6712:"prism-autoit-js",6724:"prism-cfscript-js",6730:"prism-crystal-js",6732:"prism-csv-js",6745:"prism-gedcom-js",677:"prism-powershell-js",681:"prism-qore-js",6833:"prism-bbcode-js",6862:"prism-sqf-js",6870:"prism-cilkc-js",6880:"prism-peoplecode-js",6890:"prism-xml-doc-js",6912:"prism-moonscript-js",6918:"prism-http-js",6930:"prism-mongodb-js",6936:"prism-eiffel-js",6962:"prism-makefile-js",701:"prism-mermaid-js",7026:"prism-odin-js",7043:"prism-json5-js",7059:"prism-csharp-js",7086:"prism-cilkcpp-js",710:"prism-metafont-js",7151:"prism-go-module-js",7190:"prism-nevod-js",7212:"prism-nginx-js",7245:"prism-jolie-js",7250:"prism-latte-js",7257:"prism-markdown-js",7270:"prism-tt2-js",7292:"prism-sql-js",7294:"prism-xquery-js",738:"prism-glsl-js",7407:"prism-magma-js",7408:"prism-sml-js",751:"prism-coffeescript-js",7517:"prism-supercollider-js",753:"prism-jsdoc-js",7557:"prism-perl-js",7645:"prism-birb-js",7714:"prism-hsts-js",7723:"prism-smalltalk-js",7790:"prism-firestore-security-rules-js",7851:"prism-elixir-js",7877:"prism-swift-js",7903:"prism-asciidoc-js",7907:"prism-typescript-js",7988:"prism-python-js",7993:"prism-properties-js",8013:"prism-nix-js",8036:"prism-keepalived-js",8037:"prism-dart-js",805:"prism-qsharp-js",8062:"prism-n1ql-js",8078:"prism-liquid-js",8094:"prism-handlebars-js",810:"prism-scss-js",8101:"prism-keyman-js",8137:"prism-q-js",8139:"prism-soy-js",8168:"prism-vhdl-js",8171:"prism-ebnf-js",8187:"prism-erlang-js",8204:"prism-kusto-js",8254:"prism-wasm-js",8262:"prism-gdscript-js",8311:"prism-javadoclike-js",8336:"prism-d-js",8338:"prism-mel-js",8390:"prism-java-js",8392:"prism-latex-js",84:"prism-sass-js",8411:"prism-etlua-js",8452:"prism-gml-js",8456:"prism-elm-js",8468:"prism-haskell-js",8474:"prism-reason-js",8510:"prism-ruby-js",8526:"prism-fortran-js",8544:"prism-abap-js",8549:"prism-js-templates-js",8584:"prism-xojo-js",8588:"prism-avro-idl-js",86:"prism-t4-templating-js",8615:"prism-processing-js",8677:"prism-tsx-js",8763:"prism-aspnet-js",883:"prism-promql-js",8848:"prism-pure-js",8865:"prism-mata-js",8867:"prism-c-js",8889:"prism-erb-js",8965:"prism-gn-js",8997:"prism-t4-vb-js",9021:"prism-sparql-js",9063:"prism-arff-js",9122:"prism-aql-js",9172:"prism-jsstacktrace-js",918:"prism-neon-js",9205:"prism-autohotkey-js",9273:"prism-yang-js",928:"prism-plsql-js",9319:"prism-factor-js",9326:"prism-scala-js",9328:"prism-fsharp-js",9381:"prism-false-js",9468:"prism-gap-js",9543:"prism-opencl-js",9559:"prism-jsx-js",9570:"prism-log-js",9625:"prism-matlab-js",9686:"prism-toml-js",9692:"prism-concurnas-js",9723:"prism-graphql-js",9763:"prism-pascaligo-js",9787:"prism-prolog-js",98:"prism-unrealscript-js",9864:"prism-gcode-js",9908:"prism-vala-js",991:"prism-cshtml-js",9911:"prism-editorconfig-js",9939:"prism-tap-js",9949:"prism-armasm-js",9967:"prism-xeora-js",9985:"prism-jexl-js"})[t]||t)+".js",d.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),d.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},d.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),d.p="/static/ssr/",d.U=function(t){var r=new URL(t,"x:/"),s={};for(var a in r)s[a]=r[a];for(var a in s.href=t,s.pathname=t.replace(/[?#].*/,""),s.origin=s.protocol="",s.toString=s.toJSON=()=>t,s)Object.defineProperty(this,a,{enumerable:!0,configurable:!0,value:s[a]})},d.U.prototype=URL.prototype,n={8410:0},o=t=>{var r,s,a=t.__rspack_esm_ids,o=t.__webpack_modules__,l=t.__rspack_esm_runtime,c=0;for(r in o)d.o(o,r)&&(d.m[r]=o[r]);for(l&&l(d);c<a.length;c++)s=a[c],d.o(n,s)&&n[s]&&n[s][0](),n[a[c]]=0},d.f.j=function(t,r){var s=d.o(n,t)?n[t]:void 0;if(0!==s)if(s)r.push(s[1]);else{var a=import("./"+d.u(t)).then(o,r=>{throw 0!==n[t]&&(n[t]=void 0),r}),a=Promise.race([a,new Promise(r=>{s=n[t]=[r]})]);r.push(s[1]=a)}},d(54842),d(612),d(24838),d(84352),d(1355),d(55269),d(72301),d(96678),d(28631),d(23082),d(38262),d(52500),d(58623),d(27373),d(47706),d(81505),d(37511),d(18977),d(49979),d(89854),d(64786),d(77108),d(70242),d(47849),d(14903),d(2622),d(50117),d(17547),d(37077),d(1879),d(14416),d(13430),d(56538),d(7895),d(44394),d(13755),d(47764),d(57468),d(9951),d(23731),d(71787),d(51836),d(14006),d(93075),d(20141),d(95821),d(55237),d(43602),d(23745),d(97154),d(83703),d(62512),d(41798),d(70134),d(48125),d(27486),d(7247),d(51310),d(14925);var h=d(67598).X;export{h as render};
|
|
4265
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),T=/'/g,x=/"/g,E=/^(?:script|style|textarea|title)$/i,A=t=>(r,...s)=>({_$litType$:t,strings:r,values:s}),C=A(1),$=A(2),P=A(3),D=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),q=new WeakMap,B=u.createTreeWalker(u,129);function U(t,r){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==o?o.createHTML(r):r}let F=(t,r)=>{let s=t.length-1,a=[],n,o=2===r?"<svg>":3===r?"<math>":"",d=y;for(let r=0;r<s;r++){let s=t[r],u,p,m=-1,O=0;for(;O<s.length&&(d.lastIndex=O,null!==(p=d.exec(s)));)O=d.lastIndex,d===y?"!--"===p[1]?d=_:void 0!==p[1]?d=S:void 0!==p[2]?(E.test(p[2])&&(n=RegExp("</"+p[2],"g")),d=w):void 0!==p[3]&&(d=w):d===w?">"===p[0]?(d=n??y,m=-1):void 0===p[1]?m=-2:(m=d.lastIndex-p[2].length,u=p[1],d=void 0===p[3]?w:'"'===p[3]?x:T):d===x||d===T?d=w:d===_||d===S?d=y:(d=w,n=void 0);let b=d===w&&t[r+1].startsWith("/>")?" ":"";o+=d===y?s+h:m>=0?(a.push(u),s.slice(0,m)+l+s.slice(m)+c+b):s+c+(-2===m?r:b)}return[U(t,o+(t[s]||"<?>")+(2===r?"</svg>":3===r?"</math>":"")),a]};let N=class N{constructor({strings:t,_$litType$:r},s){let a;this.parts=[];let o=0,h=0,u=t.length-1,m=this.parts,[O,b]=F(t,r);if(this.el=N.createElement(O,s),B.currentNode=this.el.content,2===r||3===r){let t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(a=B.nextNode())&&m.length<u;){if(1===a.nodeType){if(a.hasAttributes())for(let t of a.getAttributeNames())if(t.endsWith(l)){let r=b[h++],s=a.getAttribute(t).split(c),n=/([.?@])?(.*)/.exec(r);m.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?H:"?"===n[1]?I:"@"===n[1]?L:R}),a.removeAttribute(t)}else t.startsWith(c)&&(m.push({type:6,index:o}),a.removeAttribute(t));if(E.test(a.tagName)){let t=a.textContent.split(c),r=t.length-1;if(r>0){a.textContent=n?n.emptyScript:"";for(let s=0;s<r;s++)a.append(t[s],p()),B.nextNode(),m.push({type:2,index:++o});a.append(t[r],p())}}}else if(8===a.nodeType)if(a.data===d)m.push({type:2,index:o});else{let t=-1;for(;-1!==(t=a.data.indexOf(c,t+1));)m.push({type:7,index:o}),t+=c.length-1}o++}}static createElement(t,r){let s=u.createElement("template");return s.innerHTML=t,s}};function V(t,r,s=t,a){if(r===D)return r;let n=void 0!==a?s._$Co?.[a]:s._$Cl,o=m(r)?void 0:r._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),void 0===o?n=void 0:(n=new o(t))._$AT(t,s,a),void 0!==a?(s._$Co??=[])[a]=n:s._$Cl=n),void 0!==n&&(r=V(t,n._$AS(t,r.values),n,a)),r}let M=class M{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:s}=this._$AD,a=(t?.creationScope??u).importNode(r,!0);B.currentNode=a;let n=B.nextNode(),o=0,l=0,c=s[0];for(;void 0!==c;){if(o===c.index){let r;2===c.type?r=new k(n,n.nextSibling,this,t):1===c.type?r=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(r=new z(n,this,t)),this._$AV.push(r),c=s[++l]}o!==c?.index&&(n=B.nextNode(),o++)}return B.currentNode=u,a}p(t){let r=0;for(let s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,r),r+=s.strings.length-2):s._$AI(t[r])),r++}};let k=class k{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,s,a){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=s,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return void 0!==r&&11===t?.nodeType&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){m(t=V(this,t,r))?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==D&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):b(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Q&&m(this._$AH)?this._$AA.nextSibling.data=t:this.T(u.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:s}=t,a="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(U(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===a)this._$AH.p(r);else{let t=new M(a,this),s=t.u(this.options);t.p(r),this.T(s),this._$AH=t}}_$AC(t){let r=q.get(t.strings);return void 0===r&&q.set(t.strings,r=new N(t)),r}k(t){O(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,s,a=0;for(let n of t)a===r.length?r.push(s=new k(this.O(p()),this.O(p()),this,this.options)):s=r[a],s._$AI(n),a++;a<r.length&&(this._$AR(s&&s._$AB.nextSibling,a),r.length=a)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let r=t.nextSibling;t.remove(),t=r}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}};let R=class R{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,s,a,n){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=t,this.name=r,this._$AM=a,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=Q}_$AI(t,r=this,s,a){let n=this.strings,o=!1;if(void 0===n)(o=!m(t=V(this,t,r,0))||t!==this._$AH&&t!==D)&&(this._$AH=t);else{let a,l,c=t;for(t=n[0],a=0;a<n.length-1;a++)(l=V(this,c[s+a],r,a))===D&&(l=this._$AH[a]),o||=!m(l)||l!==this._$AH[a],l===Q?t=Q:t!==Q&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}o&&!a&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}};let H=class H extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}};let I=class I extends R{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Q)}};let L=class L extends R{constructor(t,r,s,a,n){super(t,r,s,a,n),this.type=5}_$AI(t,r=this){if((t=V(this,t,r,0)??Q)===D)return;let s=this._$AH,a=t===Q&&s!==Q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==Q&&(s===Q||a);a&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}};let z=class z{constructor(t,r,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}};let Z={M:l,P:c,A:d,C:1,L:F,R:M,D:b,V:V,I:k,H:R,N:I,U:L,B:H,F:z},G=a.litHtmlPolyfillSupport;G?.(N,k),(a.litHtmlVersions??=[]).push("3.3.1");let X=(t,r,s)=>{let a=s?.renderBefore??r,n=a._$litPart$;if(void 0===n){let t=s?.renderBefore??null;a._$litPart$=n=new k(r.insertBefore(p(),t),t,void 0,s??{})}return n._$AI(t),n}},95089(t,r,s){s.d(r,{J:()=>n});var a=s(40173);let n=t=>t??a.s6},52706(t,r,s){s.d(r,{K:()=>b,_:()=>m});var a=s(40173),n=s(91223),o=s(26071);let l=(t,r)=>{let s=t._$AN;if(void 0===s)return!1;for(let t of s)t._$AO?.(r,!1),l(t,r);return!0},c=t=>{let r,s;do{if(void 0===(r=t._$AM))break;(s=r._$AN).delete(t),t=r}while(0===s?.size)},d=t=>{for(let r;r=t._$AM;t=r){let s=r._$AN;if(void 0===s)r._$AN=s=new Set;else if(s.has(t))break;s.add(t),p(r)}};function h(t){void 0!==this._$AN?(c(this),this._$AM=t,d(this)):this._$AM=t}function u(t,r=!1,s=0){let a=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(r)if(Array.isArray(a))for(let t=s;t<a.length;t++)l(a[t],!1),c(a[t]);else null!=a&&(l(a,!1),c(a));else l(this,t)}let p=t=>{t.type==o.OA.CHILD&&(t._$AP??=u,t._$AQ??=h)};let f=class f extends o.WL{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,s){super._$AT(t,r,s),d(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(l(this,t),c(this))}setValue(t){if((0,n.Rt)(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};let m=()=>new ref_h;let ref_h=class ref_h{};let O=new WeakMap,b=(0,o.u$)(class extends f{render(t){return a.s6}update(t,[r]){let s=r!==this.G;return s&&void 0!==this.G&&this.rt(void 0),(s||this.lt!==this.ct)&&(this.G=r,this.ht=t.options?.host,this.rt(this.ct=t.element)),a.s6}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){let r=this.ht??globalThis,s=O.get(r);void 0===s&&(s=new WeakMap,O.set(r,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t)}else this.G.value=t}get lt(){return"function"==typeof this.G?O.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})},99121(t,r,s){s.d(r,{W:()=>c});var a=s(40173),n=s(26071);let o="important",l=" !"+o,c=(0,n.u$)(class extends n.WL{constructor(t){if(super(t),t.type!==n.OA.ATTRIBUTE||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((r,s)=>{let a=t[s];return null==a?r:r+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${a};`},"")}update(t,[r]){let{style:s}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(let t of this.ft)null==r[t]&&(this.ft.delete(t),t.includes("-")?s.removeProperty(t):s[t]=null);for(let t in r){let a=r[t];if(null!=a){this.ft.add(t);let r="string"==typeof a&&a.endsWith(l);t.includes("-")||r?s.setProperty(t,r?a.slice(0,-11):a,r?o:""):s[t]=a}}return a.c0}})},13260(t,r,s){s.d(r,{_:()=>o});var a=s(40173),n=s(26071);let e=class e extends n.WL{constructor(t){if(super(t),this.it=a.s6,t.type!==n.OA.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===a.s6||null==t)return this._t=void 0,this.it=t;if(t===a.c0)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;let r=[t];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};e.directiveName="unsafeHTML",e.resultType=1;let o=(0,n.u$)(e)},86161(t,r,s){s.d(r,{AH:()=>a.AH,JW:()=>a.JW,WF:()=>a.WF,c0:()=>a.c0,mN:()=>a.mN,qy:()=>a.qy,s6:()=>a.s6}),s(47543),s(40173);var a=s(65228)},77278(t,s,a){function n(t,r,s=u.Debug){let a=`(Glean.${t})`;Array.isArray(r)?console[s](a,...r):console[s](a,r)}a.d(s,{w:()=>et}),(h=u||(u={})).Debug="debug",h.Info="info",h.Warn="warn",h.Error="error",h.Trace="trace";let o="core.Context";let context_Context=class context_Context{constructor(){this.initialized=!1,this.testing=!1,this.supportedMetrics={},this.startTime=new Date}static get instance(){return context_Context._instance||(context_Context._instance=new context_Context),context_Context._instance}static testUninitialize(){context_Context._instance=void 0}static get uploadEnabled(){return void 0===context_Context.instance.uploadEnabled&&n(o,["Attempted to access Context.uploadEnabled before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.uploadEnabled}static set uploadEnabled(t){context_Context.instance.uploadEnabled=t}static get metricsDatabase(){return void 0===context_Context.instance.metricsDatabase&&n(o,["Attempted to access Context.metricsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.metricsDatabase}static set metricsDatabase(t){context_Context.instance.metricsDatabase=t}static get eventsDatabase(){return void 0===context_Context.instance.eventsDatabase&&n(o,["Attempted to access Context.eventsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.eventsDatabase}static set eventsDatabase(t){context_Context.instance.eventsDatabase=t}static get pingsDatabase(){return void 0===context_Context.instance.pingsDatabase&&n(o,["Attempted to access Context.pingsDatabase before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.pingsDatabase}static set pingsDatabase(t){context_Context.instance.pingsDatabase=t}static get errorManager(){return void 0===context_Context.instance.errorManager&&n(o,["Attempted to access Context.errorManager before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.errorManager}static set errorManager(t){context_Context.instance.errorManager=t}static get applicationId(){return void 0===context_Context.instance.applicationId&&n(o,["Attempted to access Context.applicationId before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.applicationId}static set applicationId(t){context_Context.instance.applicationId=t}static get initialized(){return context_Context.instance.initialized}static set initialized(t){context_Context.instance.initialized=t}static get config(){return void 0===context_Context.instance.config&&n(o,["Attempted to access Context.config before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.config}static set config(t){context_Context.instance.config=t}static get startTime(){return context_Context.instance.startTime}static get testing(){return context_Context.instance.testing}static set testing(t){context_Context.instance.testing=t}static get corePings(){return context_Context.instance.corePings}static set corePings(t){context_Context.instance.corePings=t}static get coreMetrics(){return context_Context.instance.coreMetrics}static set coreMetrics(t){context_Context.instance.coreMetrics=t}static set platform(t){context_Context.instance.platform=t}static get platform(){return void 0===context_Context.instance.platform&&n(o,["Attempted to access Context.platform before it was set. This may cause unexpected behaviour."],u.Trace),context_Context.instance.platform}static isPlatformSet(){return!!context_Context.instance.platform}static getSupportedMetric(t){return context_Context.instance.supportedMetrics[t]}static addSupportedMetric(t,r){t in context_Context.instance.supportedMetrics||(context_Context.instance.supportedMetrics[t]=r)}};let l=r("crypto");var c,d,h,u,p,m,O,b,v,y=a.n(l);let _={randomUUID:y().randomUUID},S=new Uint8Array(256),w=S.length,T=[];for(let t=0;t<256;++t)T.push((t+256).toString(16).slice(1));let x=function(t,r,s){if(_.randomUUID&&!r&&!t)return _.randomUUID();let a=(t=t||{}).random||(t.rng||function(){return w>S.length-16&&(y().randomFillSync(S),w=0),S.slice(w,w+=16)})();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,r){s=s||0;for(let t=0;t<16;++t)r[s+t]=a[t];return r}return function(t,r=0){return T[t[r+0]]+T[t[r+1]]+T[t[r+2]]+T[t[r+3]]+"-"+T[t[r+4]]+T[t[r+5]]+"-"+T[t[r+6]]+T[t[r+7]]+"-"+T[t[r+8]]+T[t[r+9]]+"-"+T[t[r+10]]+T[t[r+11]]+T[t[r+12]]+T[t[r+13]]+T[t[r+14]]+T[t[r+15]]}(a)};(c=p||(p={})).InvalidValue="invalid_value",c.InvalidLabel="invalid_label",c.InvalidState="invalid_state",c.InvalidOverflow="invalid_overflow",c.InvalidType="invalid_type",(d=m||(m={}))[d.Success=0]="Success",d[d.Error=1]="Error";let metric_MetricValidationError=class metric_MetricValidationError extends Error{constructor(t,r=p.InvalidType){super(t),this.type=r,this.name="MetricValidationError"}recordError(t){context_Context.errorManager.record(t,this.type,this.message)}};let Metric=class Metric{constructor(t){this.inner=this.validateOrThrow(t)}get(){return this.inner}set(t){this.inner=t}validateOrThrow(t){let r=this.validate(t);if(r.type===m.Error)throw new metric_MetricValidationError(r.errorMessage,r.errorType);return t}};function E(t){return"object"==typeof t&&null!==t&&t.constructor===Object}function A(t){return"string"==typeof t}function C(t){return"number"==typeof t&&!isNaN(t)}function $(){return"undefined"!=typeof crypto?x():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){let r=16*Math.random()|0;return("x"==t?r:3&r|8).toString(16)})}function P(){return Math.round("undefined"==typeof performance?Date.now():performance.now())}function D(t,r="core.utils"){return!!context_Context.testing||(n(r,[`Attempted to access test only method \`${t||"unknown"}\`,`,"but Glean is not in testing mode. Ignoring. Make sure to put Glean in testing mode","before accessing such methods, by calling `testResetGlean`."],u.Error),!1)}let Q=/^[a-z_][a-z0-9_-]{0,29}(\.[a-z_][a-z0-9_-]{0,29})*$/;let MetricType=class MetricType{constructor(t,r,s){s&&context_Context.addSupportedMetric(t,s),this.type=t,this.name=r.name,this.category=r.category,this.sendInPings=r.sendInPings,this.lifetime=r.lifetime,this.disabled=r.disabled,this.dynamicLabel=r.dynamicLabel}baseIdentifier(){return this.category.length>0?`${this.category}.${this.name}`:this.name}identifier(){let t=this.baseIdentifier();return void 0!==this.dynamicLabel?function(t){var r,s,a;if(void 0===t.dynamicLabel)throw Error("This point should never be reached.");let n=(r=t.baseIdentifier(),s=t.dynamicLabel,`${r}/${s}`);for(let r of t.sendInPings)if(context_Context.metricsDatabase.hasMetric(t.lifetime,r,t.type,n))return n;let o=0;for(let r of t.sendInPings)o+=context_Context.metricsDatabase.countByBaseIdentifier(t.lifetime,r,t.type,t.baseIdentifier());let l=!1;return o>=16?l=!0:t.dynamicLabel.length>61?(l=!0,context_Context.errorManager.record(t,p.InvalidLabel,`Label length ${t.dynamicLabel.length} exceeds maximum of 61.`)):Q.test(t.dynamicLabel)||(l=!0,context_Context.errorManager.record(t,p.InvalidLabel,`Label must be snake_case, got '${t.dynamicLabel}'.`)),l?(a=t.baseIdentifier(),`${a}/__other__`):n}(this):t}shouldRecord(t){return t&&!this.disabled}testGetNumRecordedErrors(t,r=this.sendInPings[0]){return D("testGetNumRecordedErrors")?context_Context.errorManager.testGetNumRecordedErrors(this,t,r):0}};function q(t){return A(t)?{type:m.Success}:{type:m.Error,errorMessage:`Expected string value, got ${JSON.stringify(t)}`}}var B=function(t,r,s,a,n){if("m"===a)throw TypeError("Private method is not writable");if("a"===a&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof r?t!==r||!n:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?n.call(t,s):n?n.value=s:r.set(t,s),s},U=function(t,r,s,a){if("a"===s&&!a)throw TypeError("Private accessor was defined without a getter");if("function"==typeof r?t!==r||!a:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?a:"a"===s?a.call(t):a?a.value:r.get(t)};let F=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;let UUIDMetric=class UUIDMetric extends Metric{constructor(t){super(t)}validate(t){let r=q(t);return r.type===m.Error?r:F.test(t)?{type:m.Success}:{type:m.Error,errorMessage:`"${t}" is not a valid UUID`,errorType:p.InvalidValue}}payload(){return this.inner}};let InternalUUIDMetricType=class InternalUUIDMetricType extends MetricType{constructor(t){super("uuid",t,UUIDMetric)}set(t){let r;if(this.shouldRecord(context_Context.uploadEnabled)){t||(t=$());try{r=new UUIDMetric(t),context_Context.metricsDatabase.record(this,r)}catch(t){t instanceof metric_MetricValidationError&&t.recordError(this)}}}generateAndSet(){if(!this.shouldRecord(context_Context.uploadEnabled))return;let t=$();return this.set(t),t}testGetValue(t=this.sendInPings[0]){if(D("testGetValue","core.metrics.UUIDMetricType"))return context_Context.metricsDatabase.getMetric(t,this)}};let V=class{constructor(t){O.set(this,void 0),B(this,O,new InternalUUIDMetricType(t),"f")}set(t){U(this,O,"f").set(t)}generateAndSet(){return U(this,O,"f").generateAndSet()}testGetValue(t=U(this,O,"f").sendInPings[0]){return U(this,O,"f").testGetValue(t)}testGetNumRecordedErrors(t,r=U(this,O,"f").sendInPings[0]){return U(this,O,"f").testGetNumRecordedErrors(t,r)}};O=new WeakMap;let Z="events",G=["#glean_execution_counter","#glean_reference_time"];let RecordedEvent=class RecordedEvent extends Metric{constructor(t){super(t)}static withTransformedExtras(t,r){let s=r(t.extra||{});return{category:t.category,name:t.name,timestamp:t.timestamp,extra:s&&Object.keys(s).length>0?s:void 0}}addExtra(t,r){this.inner.extra||(this.inner.extra={}),this.inner.extra[t]=r}withoutReservedExtras(){return RecordedEvent.withTransformedExtras(this.get(),t=>Object.keys(t).filter(t=>!G.includes(t)).reduce((r,s)=>(r[s]=t[s],r),{}))}validate(t){var r;if(!E(t))return{type:m.Error,errorMessage:`Expected Glean event object, got ${typeof t}`};let s="category"in t&&A(t.category),a="name"in t&&A(t.name);if(!s||!a)return{type:m.Error,errorMessage:`Unexpected value for "category" or "name" in event object: ${JSON.stringify(t)}`};if(!("timestamp"in t&&C(r=t.timestamp)&&Number.isInteger(r)&&t.timestamp>=0))return{type:m.Error,errorMessage:`Event timestamp must be a positive integer, got ${JSON.stringify(t)}`};if(t.extra){if(!E(t.extra))return{type:m.Error,errorMessage:`Expected Glean extras object, got ${typeof t}`};for(let[r,s]of Object.entries(t.extra)){let t=q(r);if(t.type===m.Error)return t;if(!A(s)&&!C(s)&&"boolean"!=typeof s)return{type:m.Error,errorMessage:`Unexpected value for extra key ${r}: ${JSON.stringify(s)}`}}}return{type:m.Success}}payload(){return RecordedEvent.withTransformedExtras(this.withoutReservedExtras(),t=>Object.keys(t).reduce((r,s)=>(r[s]=t[s].toString(),r),{}))}};var X=function(t,r,s,a,n){if("m"===a)throw TypeError("Private method is not writable");if("a"===a&&!n)throw TypeError("Private accessor was defined without a setter");if("function"==typeof r?t!==r||!n:!r.has(t))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===a?n.call(t,s):n?n.value=s:r.set(t,s),s},W=function(t,r,s,a){if("a"===s&&!a)throw TypeError("Private accessor was defined without a getter");if("function"==typeof r?t!==r||!a:!r.has(t))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===s?a:"a"===s?a.call(t):a?a.value:r.get(t)};let InternalEventMetricType=class InternalEventMetricType extends MetricType{constructor(t,r){super("event",t),this.allowedExtraKeys=r}record(t,r=P()){if(!this.shouldRecord(context_Context.uploadEnabled))return;let s=Date.now();try{let a=new RecordedEvent({category:this.category,name:this.name,timestamp:r,extra:t}),n={};if(t&&this.allowedExtraKeys)for(let[r,s]of Object.entries(t))if(this.allowedExtraKeys.includes(r))A(s)?n[r]=function(t,r,s){if(!A(r))throw new metric_MetricValidationError(`Expected string, got ${JSON.stringify(r)}`);let a=new TextEncoder,n=new TextDecoder("utf-8"),o=a.encode(r).slice(0,500),l=n.decode(o);return l!==r&&context_Context.errorManager.record(t,p.InvalidOverflow,`Value length ${new Blob([r]).size} exceeds maximum of ${r.length} bytes.`),l}(this,s,0):n[r]=s;else{context_Context.errorManager.record(this,p.InvalidValue,`Invalid key index: ${r}`);continue}n.glean_timestamp=s.toString(),a.set({...a.get(),extra:n}),context_Context.eventsDatabase.record(this,a)}catch(t){t instanceof metric_MetricValidationError&&t.recordError(this)}}testGetValue(t=this.sendInPings[0]){if(D("testGetValue","core.metrics.EventMetricType")){let r=context_Context.eventsDatabase.getEvents(t,this);return r&&r.forEach(t=>{t.extra&&(delete t.extra.glean_timestamp,0==Object.keys(t.extra).length&&(t.extra=void 0))}),r}}};let EventMetricType=class EventMetricType{constructor(t,r){b.set(this,void 0),X(this,b,new InternalEventMetricType(t,r),"f")}record(t){W(this,b,"f").record(t)}testGetValue(t=W(this,b,"f").sendInPings[0]){return W(this,b,"f").testGetValue(t)}testGetNumRecordedErrors(t,r=W(this,b,"f").sendInPings[0]){return W(this,b,"f").testGetNumRecordedErrors(t,r)}};b=new WeakMap;let j="core.glean_metrics";var Y=v||(v={});let J={pageLoad:new EventMetricType({category:"glean",name:"page_load",sendInPings:[Z],lifetime:"ping",disabled:!1},["url","referrer","title"]),elementClick:new EventMetricType({category:"glean",name:"element_click",sendInPings:[Z],lifetime:"ping",disabled:!1},["id","type","label","url","referrer","title"]),pageId:new V({category:"glean",name:"page_id",sendInPings:[Z],lifetime:"application",disabled:!1})};function K(t){context_Context.initialized?J.elementClick.record(t):n(j,"Attempted to record element click event before Glean was initialized. This is a no-op.",u.Warn)}Y.pageLoad=function(t){var r,s,a;context_Context.initialized?(J.pageId.generateAndSet(),J.pageLoad.record({url:null!=(r=null==t?void 0:t.url)?r:"undefined"!=typeof window?window.location.href:"URL_NOT_PROVIDED_OR_AVAILABLE",referrer:null!=(s=null==t?void 0:t.referrer)?s:"undefined"!=typeof document?document.referrer:"REFERRER_NOT_PROVIDED_OR_AVAILABLE",title:null!=(a=null==t?void 0:t.title)?a:"undefined"!=typeof document?document.title:"TITLE_NOT_PROVIDED_OR_AVAILABLE"})):n(j,"Attempted to record a page load event before Glean was initialized. This is a no-op.",u.Warn)},Y.handleClickEvent=function(t){let r,s=t.target.closest("[data-glean-id], [data-glean-type], [data-glean-label]");s&&K({...(r=s.dataset).gleanId&&{id:r.gleanId},...r.gleanType&&{type:r.gleanType},...r.gleanLabel&&{label:r.gleanLabel},url:"undefined"!=typeof window?window.location.href:"URL_NOT_PROVIDED_OR_AVAILABLE",referrer:"undefined"!=typeof document?document.referrer:"REFERRER_NOT_PROVIDED_OR_AVAILABLE",title:"undefined"!=typeof document?document.title:"TITLE_NOT_PROVIDED_OR_AVAILABLE"})},Y.recordElementClick=K;let ee=v;function et(t){ee.recordElementClick({id:t,url:globalThis.location.href,referrer:document.referrer,title:document.title})}},14632(t,r,s){s.d(r,{o:()=>a});function a(t,r){let s=t.replaceAll("_"," ").split("/").filter(t=>!["",r,"docs"].includes(t));return(s=s.map(t=>"API"===t?"Web APIs":t)).length>1&&"Web"===s.at(0)&&s.splice(0,1),s.length>1&&s.splice(-1,1),s.join(" / ")}}},c={};function d(t){var r=c[t];if(void 0!==r)return r.exports;var s=c[t]={id:t,loaded:!1,exports:{}};return l[t].call(s.exports,s,s.exports,d),s.loaded=!0,s.exports}d.m=l,d.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return d.d(r,{a:r}),r},a=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,d.t=function(t,r){if(1&r&&(t=this(t)),8&r||"object"==typeof t&&t&&(4&r&&t.__esModule||16&r&&"function"==typeof t.then))return t;var n=Object.create(null);d.r(n);var o={};s=s||[null,a({}),a([]),a(a)];for(var l=2&r&&t;("object"==typeof l||"function"==typeof l)&&!~s.indexOf(l);l=a(l))Object.getOwnPropertyNames(l).forEach(r=>{o[r]=()=>t[r]});return o.default=()=>t,d.d(n,o),n},d.d=(t,r)=>{for(var s in r)d.o(r,s)&&!d.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:r[s]})},d.f={},d.e=t=>Promise.all(Object.keys(d.f).reduce((r,s)=>(d.f[s](t,r),r),[])),d.k=t=>""+t+".css",d.u=t=>""+(({1023:"prism-sas-js",105:"prism-kotlin-js",1052:"prism-web-idl-js",1074:"prism-cooklang-js",1148:"prism-stylus-js",1163:"prism-julia-js",1198:"prism-uri-js",1209:"prism-llvm-js",1211:"prism-lilypond-js",1230:"prism-verilog-js",1234:"prism-io-js",1243:"prism-idris-js",1353:"prism-rip-js",1379:"prism-linker-script-js",1384:"prism-ada-js",1436:"prism-openqasm-js",1488:"prism-clojure-js",1594:"prism-clike-js",1614:"prism-basic-js",1656:"prism-git-js",167:"prism-bqn-js",17:"prism-brainfuck-js",1729:"prism-wgsl-js",1742:"prism-j-js",1754:"prism-avisynth-js",181:"prism-monkey-js",1855:"prism-hpkp-js",1888:"prism-purebasic-js",1897:"prism-javastacktrace-js",1917:"prism-solidity-js",1957:"prism-actionscript-js",1971:"prism-coq-js",2006:"prism-oz-js",2046:"prism-gherkin-js",2256:"prism-rescript-js",2317:"prism-antlr4-js",2326:"prism-javadoc-js",2328:"prism-batch-js",2381:"prism-cue-js",2396:"prism-turtle-js",2422:"prism-bnf-js",2439:"prism-naniscript-js",2443:"prism-javascript-js",2500:"prism-chaiscript-js",2538:"prism-jsonp-js",2548:"prism-rest-js",2555:"prism-nsis-js",2578:"prism-smarty-js",2647:"prism-arturo-js",2649:"prism-nasm-js",2727:"prism-splunk-spl-js",276:"prism-iecst-js",2770:"prism-zig-js",2812:"prism-solution-file-js",2890:"prism-csp-js",2964:"prism-uorazor-js",2966:"prism-r-js",2988:"prism-wren-js",3026:"prism-wiki-js",3076:"prism-wolfram-js",3100:"prism-nim-js",3141:"prism-ichigojam-js",3150:"prism-apacheconf-js",3157:"prism-css-extras-js",3172:"prism-cil-js",3201:"prism-jq-js",3298:"prism-ftl-js",3310:"prism-lisp-js",3323:"prism-dns-zone-file-js",3396:"prism-excel-formula-js",3503:"prism-abnf-js",3522:"prism-hoon-js",3535:"prism-awk-js",3543:"prism-t4-cs-js",357:"prism-less-js",3621:"prism-applescript-js",3634:"prism-lua-js",367:"prism-yaml-js",3695:"prism-django-js",3725:"prism-al-js",3733:"prism-regex-js",3755:"prism-bsl-js",3798:"prism-renpy-js",3805:"prism-shell-session-js",3855:"prism-gradle-js",3857:"prism-vbnet-js",3864:"prism-phpdoc-js",391:"prism-protobuf-js",3997:"prism-dot-js",4008:"prism-kumir-js",4054:"prism-pascal-js",4068:"prism-asm6502-js",418:"prism-systemd-js",4203:"prism-diff-js",4213:"prism-warpscript-js",4227:"prism-scheme-js",4270:"prism-docker-js",4275:"prism-cpp-js",4334:"prism-bbj-js",4338:"prism-dhall-js",4342:"prism-ini-js",4431:"prism-rego-js",4448:"prism-smali-js",4461:"prism-bicep-js",4468:"prism-ejs-js",4479:"prism-hlsl-js",4492:"prism-bash-js",450:"prism-haxe-js",4522:"prism-plant-uml-js",453:"prism-apex-js",4531:"prism-svelte",4550:"prism-flow-js",4555:"prism-agda-js",463:"prism-js-extras-js",4637:"prism-icon-js",4667:"prism-textile-js",4670:"prism-inform7-js",4704:"prism-ignore-js",4750:"prism-markup-js",4813:"prism-nand2tetris-hdl-js",4832:"prism-racket-js",4854:"prism-pcaxis-js",4896:"prism-haml-js",4911:"prism-bro-js",4922:"prism-v-js",4975:"prism-icu-message-format-js",5087:"prism-core-js",5091:"prism-velocity-js",5128:"prism-pug-js",5166:"prism-markup-templating-js",5169:"prism-cobol-js",5173:"prism-typoscript-js",52:"prism-vim-js",5249:"prism-parigp-js",5414:"prism-lolcode-js",5503:"prism-squirrel-js",5538:"prism-asmatmel-js",5547:"prism-dax-js",5549:"prism-hcl-js",5582:"prism-n4js-js",56:"prism-arduino-js",5607:"prism-rust-js",5616:"prism-json-js",5637:"prism-psl-js",5747:"prism-stata-js",5781:"prism-twig-js",5826:"prism-objectivec-js",585:"prism-tremor-js",5899:"prism-cypher-js",5901:"prism-css-js",606:"prism-dataweave-js",6069:"prism-cmake-js",6071:"prism-maxscript-js",6141:"prism-gettext-js",6187:"prism-brightscript-js",6206:"prism-qml-js",6241:"prism-tcl-js",6253:"prism-bison-js",6267:"prism-parser-js",6273:"prism-mizar-js",6290:"prism-robotframework-js",6363:"prism-visual-basic-js",6368:"prism-ocaml-js",638:"prism-php-extras-js",6444:"prism-groovy-js",6459:"prism-powerquery-js",6476:"prism-puppet-js",6502:"prism-stan-js",6517:"prism-apl-js",6588:"prism-php-js",6616:"prism-roboconf-js",6673:"prism-purescript-js",6677:"prism-livescript-js",6680:"prism-go-js",6712:"prism-autoit-js",6724:"prism-cfscript-js",6730:"prism-crystal-js",6732:"prism-csv-js",6745:"prism-gedcom-js",677:"prism-powershell-js",681:"prism-qore-js",6833:"prism-bbcode-js",6862:"prism-sqf-js",6870:"prism-cilkc-js",6880:"prism-peoplecode-js",6890:"prism-xml-doc-js",6912:"prism-moonscript-js",6918:"prism-http-js",6930:"prism-mongodb-js",6936:"prism-eiffel-js",6962:"prism-makefile-js",701:"prism-mermaid-js",7026:"prism-odin-js",7043:"prism-json5-js",7059:"prism-csharp-js",7086:"prism-cilkcpp-js",710:"prism-metafont-js",7151:"prism-go-module-js",7190:"prism-nevod-js",7212:"prism-nginx-js",7245:"prism-jolie-js",7250:"prism-latte-js",7257:"prism-markdown-js",7270:"prism-tt2-js",7292:"prism-sql-js",7294:"prism-xquery-js",738:"prism-glsl-js",7407:"prism-magma-js",7408:"prism-sml-js",751:"prism-coffeescript-js",7517:"prism-supercollider-js",753:"prism-jsdoc-js",7557:"prism-perl-js",7645:"prism-birb-js",7714:"prism-hsts-js",7723:"prism-smalltalk-js",7790:"prism-firestore-security-rules-js",7851:"prism-elixir-js",7877:"prism-swift-js",7903:"prism-asciidoc-js",7907:"prism-typescript-js",7988:"prism-python-js",7993:"prism-properties-js",8013:"prism-nix-js",8036:"prism-keepalived-js",8037:"prism-dart-js",805:"prism-qsharp-js",8062:"prism-n1ql-js",8078:"prism-liquid-js",8094:"prism-handlebars-js",810:"prism-scss-js",8101:"prism-keyman-js",8137:"prism-q-js",8139:"prism-soy-js",8168:"prism-vhdl-js",8171:"prism-ebnf-js",8187:"prism-erlang-js",8204:"prism-kusto-js",8254:"prism-wasm-js",8262:"prism-gdscript-js",8311:"prism-javadoclike-js",8336:"prism-d-js",8338:"prism-mel-js",8390:"prism-java-js",8392:"prism-latex-js",84:"prism-sass-js",8411:"prism-etlua-js",8452:"prism-gml-js",8456:"prism-elm-js",8468:"prism-haskell-js",8474:"prism-reason-js",8510:"prism-ruby-js",8526:"prism-fortran-js",8544:"prism-abap-js",8549:"prism-js-templates-js",8584:"prism-xojo-js",8588:"prism-avro-idl-js",86:"prism-t4-templating-js",8615:"prism-processing-js",8677:"prism-tsx-js",8763:"prism-aspnet-js",883:"prism-promql-js",8848:"prism-pure-js",8865:"prism-mata-js",8867:"prism-c-js",8889:"prism-erb-js",8965:"prism-gn-js",8997:"prism-t4-vb-js",9021:"prism-sparql-js",9063:"prism-arff-js",9122:"prism-aql-js",9172:"prism-jsstacktrace-js",918:"prism-neon-js",9205:"prism-autohotkey-js",9273:"prism-yang-js",928:"prism-plsql-js",9319:"prism-factor-js",9326:"prism-scala-js",9328:"prism-fsharp-js",9381:"prism-false-js",9468:"prism-gap-js",9543:"prism-opencl-js",9559:"prism-jsx-js",9570:"prism-log-js",9625:"prism-matlab-js",9686:"prism-toml-js",9692:"prism-concurnas-js",9723:"prism-graphql-js",9763:"prism-pascaligo-js",9787:"prism-prolog-js",98:"prism-unrealscript-js",9864:"prism-gcode-js",9908:"prism-vala-js",991:"prism-cshtml-js",9911:"prism-editorconfig-js",9939:"prism-tap-js",9949:"prism-armasm-js",9967:"prism-xeora-js",9985:"prism-jexl-js"})[t]||t)+".js",d.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),d.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},d.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),d.p="/static/ssr/",d.U=function(t){var r=new URL(t,"x:/"),s={};for(var a in r)s[a]=r[a];for(var a in s.href=t,s.pathname=t.replace(/[?#].*/,""),s.origin=s.protocol="",s.toString=s.toJSON=()=>t,s)Object.defineProperty(this,a,{enumerable:!0,configurable:!0,value:s[a]})},d.U.prototype=URL.prototype,n={8410:0},o=t=>{var r,s,a=t.__rspack_esm_ids,o=t.__webpack_modules__,l=t.__rspack_esm_runtime,c=0;for(r in o)d.o(o,r)&&(d.m[r]=o[r]);for(l&&l(d);c<a.length;c++)s=a[c],d.o(n,s)&&n[s]&&n[s][0](),n[a[c]]=0},d.f.j=function(t,r){var s=d.o(n,t)?n[t]:void 0;if(0!==s)if(s)r.push(s[1]);else{var a=import("./"+d.u(t)).then(o,r=>{throw 0!==n[t]&&(n[t]=void 0),r}),a=Promise.race([a,new Promise(r=>{s=n[t]=[r]})]);r.push(s[1]=a)}},d(54842),d(612),d(1355),d(24838),d(84352),d(55269),d(72301),d(96678),d(28631),d(23082),d(38262),d(52500),d(58623),d(27373),d(47706),d(37511),d(81505),d(18977),d(89854),d(77108),d(49979),d(64786),d(47849),d(70242),d(14903),d(2622),d(50117),d(17547),d(1879),d(37077),d(14416),d(56538),d(13430),d(7895),d(44394),d(13755),d(47764),d(9951),d(57468),d(71787),d(23731),d(51836),d(14006),d(93075),d(20141),d(95821),d(55237),d(23745),d(43602),d(97154),d(62512),d(83703),d(70134),d(41798),d(48125),d(27486),d(7247),d(51310),d(14925);var h=d(67598).X;export{h as render};
|
|
4266
4266
|
//# sourceMappingURL=index.js.map
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdn/fred",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"repository": "https://github.com/mdn/fred",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"author": "MDN Web Docs",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"@lit-labs/ssr": "^3.3.1",
|
|
45
45
|
"@lit-labs/ssr-client": "^1.1.7",
|
|
46
46
|
"@lit/task": "^1.0.3",
|
|
47
|
-
"@mdn/rari": "0.2.
|
|
48
|
-
"@mdn/watify": "^1.1.
|
|
47
|
+
"@mdn/rari": "0.2.5",
|
|
48
|
+
"@mdn/watify": "^1.1.7",
|
|
49
49
|
"@mozilla/glean": "^5.0.7",
|
|
50
50
|
"codemirror": "^6.0.1",
|
|
51
51
|
"compression": "^1.8.1",
|
|
52
52
|
"concurrently": "^9.2.1",
|
|
53
53
|
"cookie-parser": "^1.4.7",
|
|
54
|
-
"express": "^5.
|
|
54
|
+
"express": "^5.2.1",
|
|
55
55
|
"fdir": "^6.5.0",
|
|
56
56
|
"he": "^1.2.0",
|
|
57
57
|
"http-proxy-middleware": "^3.0.3",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@svgr/webpack": "^8.1.0",
|
|
83
83
|
"@types/compression": "^1.8.1",
|
|
84
84
|
"@types/cookie-parser": "^1.4.10",
|
|
85
|
-
"@types/express": "^5.0.
|
|
85
|
+
"@types/express": "^5.0.6",
|
|
86
86
|
"@types/he": "^1.2.3",
|
|
87
87
|
"@types/insane": "^1.0.0",
|
|
88
88
|
"@types/mocha": "^10.0.10",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"eslint-plugin-unicorn": "^62.0.0",
|
|
109
109
|
"eslint-plugin-wc": "^3.0.2",
|
|
110
110
|
"globals": "^16.5.0",
|
|
111
|
-
"lefthook": "^2.0.
|
|
111
|
+
"lefthook": "^2.0.5",
|
|
112
112
|
"postcss": "^8.5.3",
|
|
113
113
|
"postcss-custom-media": "^11.0.5",
|
|
114
114
|
"postcss-loader": "^8.2.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"webpack-stats-plugin": "^1.1.3"
|
|
133
133
|
},
|
|
134
134
|
"engines": {
|
|
135
|
-
"node": ">=22"
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
"node": ">=22"
|
|
136
|
+
},
|
|
137
|
+
"packageManager": "npm@10.9.4"
|
|
138
138
|
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id="8233";export const __rspack_esm_ids=["8233"];export const __webpack_modules__={12911(e,t,n){e.exports=n.p+"watify_bg.91e8b66f42839b99.wasm"},72624(e,t,n){let a;n.d(t,{default:()=>u,watify:()=>f});let i=null;function r(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(a.memory.buffer)),i}let o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});o.decode();let s=0,l=0,c=new TextEncoder;function f(e){let t=function(e,t,n){if(void 0===n){let n=c.encode(e),a=t(n.length,1)>>>0;return r().subarray(a,a+n.length).set(n),l=n.length,a}let a=e.length,i=t(a,1)>>>0,o=r(),s=0;for(;s<a;s++){let t=e.charCodeAt(s);if(t>127)break;o[i+s]=t}if(s!==a){0!==s&&(e=e.slice(s)),i=n(i,a,a=s+3*e.length,1)>>>0;let t=r().subarray(i+s,i+a);s+=c.encodeInto(e,t).written,i=n(i,a,s,1)>>>0}return l=s,i}(e,a.__wbindgen_malloc,a.__wbindgen_realloc),n=l,i=a.watify(t,n);if(i[3]){let e;throw o=i[2],e=a.__wbindgen_externrefs.get(o),a.__externref_table_dealloc(o),e}var o,s,f,_=(s=i[0],f=i[1],s>>>=0,r().subarray(s/1,s/1+f)).slice();return a.__wbindgen_free(i[0],+i[1],1),_}"encodeInto"in c||(c.encodeInto=function(e,t){let n=c.encode(e);return t.set(n),{read:e.length,written:n.length}});let _=new Set(["basic","cors","default"]);async function b(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&_.has(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function d(e){let t;if(void 0!==a)return a;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new n.U(n(12911)));let l=((t={}).wbg={},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){var n;return n=e>>>0,(s+=t)>=0x7ff00000&&((o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),o.decode(r().subarray(n,n+t))},t.wbg.__wbindgen_init_externref_table=function(){let e=a.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},t);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:c,module:f}=await b(await e,l);return a=c.exports,d.__wbindgen_wasm_module=f,i=null,a.__wbindgen_start(),a}let u=d}};
|
|
2
|
-
//# sourceMappingURL=8233.db590d88c5a08a40.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8233.db590d88c5a08a40.js","sources":["webpack://@mdn/fred/./node_modules/@mdn/watify/watify.js"],"sourcesContent":["let wasm;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return decodeText(ptr, len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n }\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeFromExternrefTable0(idx) {\n const value = wasm.__wbindgen_externrefs.get(idx);\n wasm.__externref_table_dealloc(idx);\n return value;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n/**\n * Parses the given WAT text and returns a vector of bytes on success or a JavaScript error on failure.\n *\n * # Arguments\n *\n * * `text` - A string slice containing the WAT text to be parsed.\n *\n * # Returns\n *\n * * `Ok(Vec<u8>)` containing the parsed byte code if parsing is successful.\n * * `Err(JsValue)` if parsing fails, with the error message converted into a JavaScript error value.\n * @param {string} text\n * @returns {Uint8Array}\n */\nexport function watify(text) {\n const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.watify(ptr0, len0);\n if (ret[3]) {\n throw takeFromExternrefTable0(ret[2]);\n }\n var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();\n wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);\n return v2;\n}\n\nconst EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return ret;\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_externrefs;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n ;\n };\n\n return imports;\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('watify_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["Uint8Array","TextDecoder","c","TextEncoder","Set","Response","WebAssembly","console","Object","n","Request","URL","fetch"],"mappings":"4LAAI,E,oCAEJ,IAAI,EAA0B,KAE9B,SAAS,IAIL,MAHI,CAA4B,OAA5B,GAAoC,AAAuC,IAAvC,EAAwB,UAAU,AAAK,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EAvDX,OAAO,CACvB,EAAW,sBAAsB,CAsDI,EArDrC,EAA0B,KAG1B,EAAK,gBAAgB,GACd,CAkDX,CAGA,MAAe,C"}
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export const __rspack_esm_id="8233";export const __rspack_esm_ids=["8233"];export const __webpack_modules__={12911(e,t,n){e.exports=n.p+"watify_bg.91e8b66f42839b99.wasm"},72624(e,t,n){let a;n.d(t,{default:()=>u,watify:()=>f});let i=null;function r(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(a.memory.buffer)),i}let o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});o.decode();let s=0,l=0,c=new TextEncoder;function f(e){let t=function(e,t,n){if(void 0===n){let n=c.encode(e),a=t(n.length,1)>>>0;return r().subarray(a,a+n.length).set(n),l=n.length,a}let a=e.length,i=t(a,1)>>>0,o=r(),s=0;for(;s<a;s++){let t=e.charCodeAt(s);if(t>127)break;o[i+s]=t}if(s!==a){0!==s&&(e=e.slice(s)),i=n(i,a,a=s+3*e.length,1)>>>0;let t=r().subarray(i+s,i+a);s+=c.encodeInto(e,t).written,i=n(i,a,s,1)>>>0}return l=s,i}(e,a.__wbindgen_malloc,a.__wbindgen_realloc),n=l,i=a.watify(t,n);if(i[3]){let e;throw o=i[2],e=a.__wbindgen_externrefs.get(o),a.__externref_table_dealloc(o),e}var o,s,f,_=(s=i[0],f=i[1],s>>>=0,r().subarray(s/1,s/1+f)).slice();return a.__wbindgen_free(i[0],+i[1],1),_}"encodeInto"in c||(c.encodeInto=function(e,t){let n=c.encode(e);return t.set(n),{read:e.length,written:n.length}});let _=new Set(["basic","cors","default"]);async function b(e,t){if("function"==typeof Response&&e instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(e,t)}catch(t){if(e.ok&&_.has(e.type)&&"application/wasm"!==e.headers.get("Content-Type"))console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",t);else throw t}let n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}{let n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}async function d(e){let t;if(void 0!==a)return a;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===e&&(e=new n.U(n(12911)));let l=((t={}).wbg={},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,t){var n;return n=e>>>0,(s+=t)>=0x7ff00000&&((o=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0})).decode(),s=t),o.decode(r().subarray(n,n+t))},t.wbg.__wbindgen_init_externref_table=function(){let e=a.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},t);("string"==typeof e||"function"==typeof Request&&e instanceof Request||"function"==typeof URL&&e instanceof URL)&&(e=fetch(e));let{instance:c,module:f}=await b(await e,l);return a=c.exports,d.__wbindgen_wasm_module=f,i=null,a.__wbindgen_start(),a}let u=d}};
|
|
2
|
-
//# sourceMappingURL=8233.db590d88c5a08a40.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"8233.db590d88c5a08a40.js","sources":["webpack://@mdn/fred/./node_modules/@mdn/watify/watify.js"],"sourcesContent":["let wasm;\n\nlet cachedUint8ArrayMemory0 = null;\n\nfunction getUint8ArrayMemory0() {\n if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {\n cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);\n }\n return cachedUint8ArrayMemory0;\n}\n\nlet cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n\ncachedTextDecoder.decode();\n\nconst MAX_SAFARI_DECODE_BYTES = 2146435072;\nlet numBytesDecoded = 0;\nfunction decodeText(ptr, len) {\n numBytesDecoded += len;\n if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {\n cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });\n cachedTextDecoder.decode();\n numBytesDecoded = len;\n }\n return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));\n}\n\nfunction getStringFromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return decodeText(ptr, len);\n}\n\nlet WASM_VECTOR_LEN = 0;\n\nconst cachedTextEncoder = new TextEncoder();\n\nif (!('encodeInto' in cachedTextEncoder)) {\n cachedTextEncoder.encodeInto = function (arg, view) {\n const buf = cachedTextEncoder.encode(arg);\n view.set(buf);\n return {\n read: arg.length,\n written: buf.length\n };\n }\n}\n\nfunction passStringToWasm0(arg, malloc, realloc) {\n\n if (realloc === undefined) {\n const buf = cachedTextEncoder.encode(arg);\n const ptr = malloc(buf.length, 1) >>> 0;\n getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);\n WASM_VECTOR_LEN = buf.length;\n return ptr;\n }\n\n let len = arg.length;\n let ptr = malloc(len, 1) >>> 0;\n\n const mem = getUint8ArrayMemory0();\n\n let offset = 0;\n\n for (; offset < len; offset++) {\n const code = arg.charCodeAt(offset);\n if (code > 0x7F) break;\n mem[ptr + offset] = code;\n }\n\n if (offset !== len) {\n if (offset !== 0) {\n arg = arg.slice(offset);\n }\n ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;\n const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);\n const ret = cachedTextEncoder.encodeInto(arg, view);\n\n offset += ret.written;\n ptr = realloc(ptr, len, offset, 1) >>> 0;\n }\n\n WASM_VECTOR_LEN = offset;\n return ptr;\n}\n\nfunction takeFromExternrefTable0(idx) {\n const value = wasm.__wbindgen_externrefs.get(idx);\n wasm.__externref_table_dealloc(idx);\n return value;\n}\n\nfunction getArrayU8FromWasm0(ptr, len) {\n ptr = ptr >>> 0;\n return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);\n}\n/**\n * Parses the given WAT text and returns a vector of bytes on success or a JavaScript error on failure.\n *\n * # Arguments\n *\n * * `text` - A string slice containing the WAT text to be parsed.\n *\n * # Returns\n *\n * * `Ok(Vec<u8>)` containing the parsed byte code if parsing is successful.\n * * `Err(JsValue)` if parsing fails, with the error message converted into a JavaScript error value.\n * @param {string} text\n * @returns {Uint8Array}\n */\nexport function watify(text) {\n const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);\n const len0 = WASM_VECTOR_LEN;\n const ret = wasm.watify(ptr0, len0);\n if (ret[3]) {\n throw takeFromExternrefTable0(ret[2]);\n }\n var v2 = getArrayU8FromWasm0(ret[0], ret[1]).slice();\n wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);\n return v2;\n}\n\nconst EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);\n\nasync function __wbg_load(module, imports) {\n if (typeof Response === 'function' && module instanceof Response) {\n if (typeof WebAssembly.instantiateStreaming === 'function') {\n try {\n return await WebAssembly.instantiateStreaming(module, imports);\n\n } catch (e) {\n const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);\n\n if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {\n console.warn(\"`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\\n\", e);\n\n } else {\n throw e;\n }\n }\n }\n\n const bytes = await module.arrayBuffer();\n return await WebAssembly.instantiate(bytes, imports);\n\n } else {\n const instance = await WebAssembly.instantiate(module, imports);\n\n if (instance instanceof WebAssembly.Instance) {\n return { instance, module };\n\n } else {\n return instance;\n }\n }\n}\n\nfunction __wbg_get_imports() {\n const imports = {};\n imports.wbg = {};\n imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {\n // Cast intrinsic for `Ref(String) -> Externref`.\n const ret = getStringFromWasm0(arg0, arg1);\n return ret;\n };\n imports.wbg.__wbindgen_init_externref_table = function() {\n const table = wasm.__wbindgen_externrefs;\n const offset = table.grow(4);\n table.set(0, undefined);\n table.set(offset + 0, undefined);\n table.set(offset + 1, null);\n table.set(offset + 2, true);\n table.set(offset + 3, false);\n ;\n };\n\n return imports;\n}\n\nfunction __wbg_finalize_init(instance, module) {\n wasm = instance.exports;\n __wbg_init.__wbindgen_wasm_module = module;\n cachedUint8ArrayMemory0 = null;\n\n\n wasm.__wbindgen_start();\n return wasm;\n}\n\nfunction initSync(module) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module !== 'undefined') {\n if (Object.getPrototypeOf(module) === Object.prototype) {\n ({module} = module)\n } else {\n console.warn('using deprecated parameters for `initSync()`; pass a single object instead')\n }\n }\n\n const imports = __wbg_get_imports();\n\n if (!(module instanceof WebAssembly.Module)) {\n module = new WebAssembly.Module(module);\n }\n\n const instance = new WebAssembly.Instance(module, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nasync function __wbg_init(module_or_path) {\n if (wasm !== undefined) return wasm;\n\n\n if (typeof module_or_path !== 'undefined') {\n if (Object.getPrototypeOf(module_or_path) === Object.prototype) {\n ({module_or_path} = module_or_path)\n } else {\n console.warn('using deprecated parameters for the initialization function; pass a single object instead')\n }\n }\n\n if (typeof module_or_path === 'undefined') {\n module_or_path = new URL('watify_bg.wasm', import.meta.url);\n }\n const imports = __wbg_get_imports();\n\n if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {\n module_or_path = fetch(module_or_path);\n }\n\n const { instance, module } = await __wbg_load(await module_or_path, imports);\n\n return __wbg_finalize_init(instance, module);\n}\n\nexport { initSync };\nexport default __wbg_init;\n"],"names":["Uint8Array","TextDecoder","c","TextEncoder","Set","Response","WebAssembly","console","Object","n","Request","URL","fetch"],"mappings":"4LAAI,E,oCAEJ,IAAI,EAA0B,KAE9B,SAAS,IAIL,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