import { B as BUILD, c as consoleDevInfo, H, d as doc, N as NAMESPACE, p as promiseResolve, b as bootstrapLazy } from './index-cd044aaa.js'; export { s as setNonce } from './index-cd044aaa.js'; import { g as globalScripts } from './app-globals-0f993ce5.js'; /* Stencil Client Patch Browser v4.0.1 | MIT Licensed | https://stenciljs.com */ const patchBrowser = () => { // NOTE!! This fn cannot use async/await! if (BUILD.isDev && !BUILD.isTesting) { consoleDevInfo('Running in development mode.'); } if (BUILD.cloneNodeFix) { // opted-in to polyfill cloneNode() for slot polyfilled components patchCloneNodeFix(H.prototype); } if (BUILD.profile && !performance.mark) { // not all browsers support performance.mark/measure (Safari 10) // because the mark/measure APIs are designed to write entries to a buffer in the browser that does not exist, // simply stub the implementations out. // TODO(STENCIL-323): Remove this patch when support for older browsers is removed (breaking) // @ts-ignore performance.mark = performance.measure = () => { /*noop*/ }; performance.getEntriesByName = () => []; } // @ts-ignore const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll('script')).find((s) => new RegExp(`\/${NAMESPACE}(\\.esm)?\\.js($|\\?|#)`).test(s.src) || s.getAttribute('data-stencil-namespace') === NAMESPACE) : null; const importMeta = import.meta.url; const opts = BUILD.scriptDataOpts ? (scriptElm || {})['data-opts'] || {} : {}; if (importMeta !== '') { opts.resourcesUrl = new URL('.', importMeta).href; } return promiseResolve(opts); }; const patchCloneNodeFix = (HTMLElementPrototype) => { const nativeCloneNodeFn = HTMLElementPrototype.cloneNode; HTMLElementPrototype.cloneNode = function (deep) { if (this.nodeName === 'TEMPLATE') { return nativeCloneNodeFn.call(this, deep); } const clonedNode = nativeCloneNodeFn.call(this, false); const srcChildNodes = this.childNodes; if (deep) { for (let i = 0; i < srcChildNodes.length; i++) { // Node.ATTRIBUTE_NODE === 2, and checking because IE11 if (srcChildNodes[i].nodeType !== 2) { clonedNode.appendChild(srcChildNodes[i].cloneNode(true)); } } } return clonedNode; }; }; patchBrowser().then(options => { globalScripts(); return bootstrapLazy([["discord-action-row",[[4,"discord-action-row"]]],["discord-attachment",[[0,"discord-attachment",{"url":[1],"type":[1],"size":[1],"height":[2],"width":[2],"alt":[1],"durationSecs":[2,"duration-secs"],"playing":[32],"volume":[32]}]]],["discord-attachments",[[4,"discord-attachments"]]],["discord-bold",[[4,"discord-bold"]]],["discord-button",[[4,"discord-button",{"emoji":[1],"emojiName":[1,"emoji-name"],"url":[1],"disabled":[4],"type":[1]}]]],["discord-code-block",[[4,"discord-code-block",{"language":[1],"code":[1]}]]],["discord-command",[[0,"discord-command",{"profile":[1],"author":[1],"avatar":[1],"roleColor":[1,"role-color"],"command":[1]}]]],["discord-custom-emoji",[[0,"discord-custom-emoji",{"name":[1],"url":[1025],"embedEmoji":[1028,"embed-emoji"],"largeEmoji":[4,"large-emoji"]}]]],["discord-embed",[[4,"discord-embed",{"color":[1],"authorName":[1,"author-name"],"authorImage":[1,"author-image"],"authorUrl":[1,"author-url"],"embedTitle":[1,"embed-title"],"url":[1],"thumbnail":[1],"image":[1],"video":[1],"videoWidth":[2,"video-width"],"videoHeight":[2,"video-height"],"provider":[1],"providerUrl":[1,"provider-url"],"hasProvidedDescriptionSlot":[32]}]]],["discord-embed-description",[[4,"discord-embed-description"]]],["discord-embed-field",[[4,"discord-embed-field",{"fieldTitle":[1,"field-title"],"inline":[4],"inlineIndex":[2,"inline-index"]}]]],["discord-embed-fields",[[4,"discord-embed-fields"]]],["discord-embed-footer",[[4,"discord-embed-footer",{"footerImage":[1,"footer-image"],"timestamp":[1544],"twentyFour":[4,"twenty-four"]}]]],["discord-header",[[4,"discord-header",{"guild":[1],"channel":[1],"icon":[1]}]]],["discord-inline-code",[[4,"discord-inline-code",{"inEmbed":[4,"in-embed"]}]]],["discord-invite",[[0,"discord-invite",{"icon":[1],"name":[1],"url":[1],"online":[2],"members":[2],"verified":[4],"partnered":[4],"inviteTitle":[1,"invite-title"],"joinBtn":[1,"join-btn"]}]]],["discord-italic",[[4,"discord-italic"]]],["discord-mention",[[4,"discord-mention",{"highlight":[4],"color":[1],"type":[1]}]]],["discord-message",[[4,"discord-message",{"profile":[1],"author":[1],"avatar":[1],"bot":[4],"server":[4],"verified":[4],"op":[4],"clyde":[4],"webhook":[4],"edited":[4],"roleColor":[1,"role-color"],"roleIcon":[1,"role-icon"],"roleName":[1,"role-name"],"highlight":[4],"ephemeral":[4],"timestamp":[1544],"twentyFour":[4,"twenty-four"]}]]],["discord-messages",[[4,"discord-messages",{"lightTheme":[1540,"light-theme"],"amoledTheme":[1540,"amoled-theme"],"noBackground":[1540,"no-background"],"compactMode":[1540,"compact-mode"]}]]],["discord-quote",[[4,"discord-quote"]]],["discord-reaction",[[0,"discord-reaction",{"emoji":[1],"name":[1],"count":[1026],"reacted":[4],"interactive":[4]}]]],["discord-reactions",[[4,"discord-reactions"]]],["discord-reply",[[4,"discord-reply",{"profile":[1],"author":[1],"avatar":[1],"bot":[4],"server":[4],"op":[4],"verified":[4],"edited":[4],"roleColor":[1,"role-color"],"command":[4],"attachment":[4],"mentions":[4]}]]],["discord-select",[[4,"discord-select",{"emoji":[1],"emojiName":[1,"emoji-name"],"disabled":[4]}]]],["discord-spoiler",[[4,"discord-spoiler",{"isRevealed":[32]},[[0,"click","reveal"]]]]],["discord-system-message",[[4,"discord-system-message",{"timestamp":[1544],"twentyFour":[4,"twenty-four"],"type":[1],"channelName":[4,"channel-name"]}]]],["discord-tenor-video",[[0,"discord-tenor-video",{"url":[1],"height":[2],"width":[2]}]]],["discord-thread",[[4,"discord-thread",{"name":[1],"cta":[1]}]]],["discord-thread-message",[[4,"discord-thread-message",{"profile":[1],"author":[1],"avatar":[1],"bot":[4],"server":[4],"verified":[4],"edited":[4],"roleColor":[1,"role-color"],"relativeTimestamp":[1,"relative-timestamp"]}]]],["discord-time",[[0,"discord-time",{"timestamp":[2],"format":[1],"time":[32]}]]],["discord-underlined",[[4,"discord-underlined"]]]], options); }); //# sourceMappingURL=aitsys-discord-components-core.esm.js.map