vendor: 820 bytes, lines 1-20
1/*! Copyright 2026 Fonticons, Inc. - https://webawesome.com/license */ 2 3// _bundle_/src/utilities/defined.ts 4async function allDefined(options) { 5 const opts = { 6 match: (tagName) => tagName.startsWith("wa-"), 7 additionalElements: [], 8 root: document, 9 ...options 10 }; 11 const additionalElements = Array.isArray(opts.additionalElements) ? opts.additionalElements : [opts.additionalElements]; 12 const undefinedElements = [...opts.root.querySelectorAll(":not(:defined)")].map((el) => el.localName).filter((tag, index, arr) => arr.indexOf(tag) === index).filter((tag) => opts.match(tag)); 13 const tagsToAwait = [...undefinedElements, ...additionalElements]; 14 await Promise.all(tagsToAwait.map((tag) => customElements.whenDefined(tag))); 15 await new Promise(requestAnimationFrame); 16} 17 18export { 19 allDefined 20};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.