@ix_waterford/lib 1.0.1

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.
Files changed (35) hide show
  1. package/README.md +49 -0
  2. package/dist/index.html +1 -0
  3. package/dist/static/js/async/reactPlayerDash.js +251 -0
  4. package/dist/static/js/async/reactPlayerDash.js.map +1 -0
  5. package/dist/static/js/async/reactPlayerHls.js +430 -0
  6. package/dist/static/js/async/reactPlayerHls.js.map +1 -0
  7. package/dist/static/js/async/reactPlayerMux.js +16076 -0
  8. package/dist/static/js/async/reactPlayerMux.js.map +1 -0
  9. package/dist/static/js/async/reactPlayerPreview.js +112 -0
  10. package/dist/static/js/async/reactPlayerPreview.js.map +1 -0
  11. package/dist/static/js/async/reactPlayerSpotify.js +519 -0
  12. package/dist/static/js/async/reactPlayerSpotify.js.map +1 -0
  13. package/dist/static/js/async/reactPlayerTiktok.js +489 -0
  14. package/dist/static/js/async/reactPlayerTiktok.js.map +1 -0
  15. package/dist/static/js/async/reactPlayerTwitch.js +587 -0
  16. package/dist/static/js/async/reactPlayerTwitch.js.map +1 -0
  17. package/dist/static/js/async/reactPlayerVimeo.js +4265 -0
  18. package/dist/static/js/async/reactPlayerVimeo.js.map +1 -0
  19. package/dist/static/js/async/reactPlayerWistia.js +768 -0
  20. package/dist/static/js/async/reactPlayerWistia.js.map +1 -0
  21. package/dist/static/js/async/reactPlayerYouTube.js +735 -0
  22. package/dist/static/js/async/reactPlayerYouTube.js.map +1 -0
  23. package/dist/static/js/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js +1254 -0
  24. package/dist/static/js/async/vendors-node_modules_custom-media-element_dist_custom-media-element_js-node_modules_media-tra-835023.js.map +1 -0
  25. package/dist/static/js/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js +22 -0
  26. package/dist/static/js/async/vendors-node_modules_dashjs_dist_modern_esm_dash_all_min_js.js.map +1 -0
  27. package/dist/static/js/async/vendors-node_modules_hls_js_dist_hls_mjs.js +36660 -0
  28. package/dist/static/js/async/vendors-node_modules_hls_js_dist_hls_mjs.js.map +1 -0
  29. package/dist/static/js/index.js +4817 -0
  30. package/dist/static/js/index.js.map +1 -0
  31. package/dist/static/js/lib-react.js +3235 -0
  32. package/dist/static/js/lib-react.js.map +1 -0
  33. package/dist/static/js/vendors-node_modules_dayjs_plugin_utc_js-node_modules_react-color_es_index_js-node_modules_mu-c151eb.js +89093 -0
  34. package/dist/static/js/vendors-node_modules_dayjs_plugin_utc_js-node_modules_react-color_es_index_js-node_modules_mu-c151eb.js.map +1 -0
  35. package/package.json +89 -0
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ (self["webpackChunkwaterford_library"] = self["webpackChunkwaterford_library"] || []).push([["reactPlayerPreview"], {
3
+ "./node_modules/react-player/dist/Preview.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4
+ __webpack_require__.r(__webpack_exports__);
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ "default": () => (Preview_default)
7
+ });
8
+ /* ESM import */var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js");
9
+
10
+ const ICON_SIZE = "64px";
11
+ const cache = {};
12
+ const Preview = ({
13
+ src,
14
+ light,
15
+ oEmbedUrl,
16
+ onClickPreview,
17
+ playIcon,
18
+ previewTabIndex,
19
+ previewAriaLabel
20
+ }) => {
21
+ const [image, setImage] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);
22
+ (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
23
+ if (!src || !light || !oEmbedUrl) return;
24
+ fetchImage({ src, light, oEmbedUrl });
25
+ }, [src, light, oEmbedUrl]);
26
+ const fetchImage = async ({
27
+ src: src2,
28
+ light: light2,
29
+ oEmbedUrl: oEmbedUrl2
30
+ }) => {
31
+ if (react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(light2)) {
32
+ return;
33
+ }
34
+ if (typeof light2 === "string") {
35
+ setImage(light2);
36
+ return;
37
+ }
38
+ if (cache[src2]) {
39
+ setImage(cache[src2]);
40
+ return;
41
+ }
42
+ setImage(null);
43
+ const response = await fetch(oEmbedUrl2.replace("{url}", src2));
44
+ const data = await response.json();
45
+ if (data.thumbnail_url) {
46
+ const fetchedImage = data.thumbnail_url.replace("height=100", "height=480").replace("-d_295x166", "-d_640");
47
+ setImage(fetchedImage);
48
+ cache[src2] = fetchedImage;
49
+ }
50
+ };
51
+ const handleKeyPress = (e) => {
52
+ if (e.key === "Enter" || e.key === " ") {
53
+ onClickPreview == null ? void 0 : onClickPreview(e);
54
+ }
55
+ };
56
+ const handleClick = (e) => {
57
+ onClickPreview == null ? void 0 : onClickPreview(e);
58
+ };
59
+ const isElement = react__WEBPACK_IMPORTED_MODULE_0__.isValidElement(light);
60
+ const flexCenter = {
61
+ display: "flex",
62
+ alignItems: "center",
63
+ justifyContent: "center"
64
+ };
65
+ const styles = {
66
+ preview: {
67
+ width: "100%",
68
+ height: "100%",
69
+ backgroundImage: image && !isElement ? `url(${image})` : void 0,
70
+ backgroundSize: "cover",
71
+ backgroundPosition: "center",
72
+ cursor: "pointer",
73
+ ...flexCenter
74
+ },
75
+ shadow: {
76
+ background: "radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",
77
+ borderRadius: ICON_SIZE,
78
+ width: ICON_SIZE,
79
+ height: ICON_SIZE,
80
+ position: isElement ? "absolute" : void 0,
81
+ ...flexCenter
82
+ },
83
+ playIcon: {
84
+ borderStyle: "solid",
85
+ borderWidth: "16px 0 16px 26px",
86
+ borderColor: "transparent transparent transparent white",
87
+ marginLeft: "7px"
88
+ }
89
+ };
90
+ const defaultPlayIcon = /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: styles.shadow, className: "react-player__shadow" }, /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement("div", { style: styles.playIcon, className: "react-player__play-icon" }));
91
+ return /* @__PURE__ */ react__WEBPACK_IMPORTED_MODULE_0__.createElement(
92
+ "div",
93
+ {
94
+ style: styles.preview,
95
+ className: "react-player__preview",
96
+ tabIndex: previewTabIndex,
97
+ onClick: handleClick,
98
+ onKeyPress: handleKeyPress,
99
+ ...previewAriaLabel ? { "aria-label": previewAriaLabel } : {}
100
+ },
101
+ isElement ? light : null,
102
+ playIcon || defaultPlayIcon
103
+ );
104
+ };
105
+ var Preview_default = Preview;
106
+
107
+
108
+
109
+ }),
110
+
111
+ }]);
112
+ //# sourceMappingURL=reactPlayerPreview.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/async/reactPlayerPreview.js","sources":["/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/node_modules/react-player/dist/Preview.js"],"sourcesContent":["import React, { useState, useEffect } from \"react\";\nconst ICON_SIZE = \"64px\";\nconst cache = {};\nconst Preview = ({\n src,\n light,\n oEmbedUrl,\n onClickPreview,\n playIcon,\n previewTabIndex,\n previewAriaLabel\n}) => {\n const [image, setImage] = useState(null);\n useEffect(() => {\n if (!src || !light || !oEmbedUrl) return;\n fetchImage({ src, light, oEmbedUrl });\n }, [src, light, oEmbedUrl]);\n const fetchImage = async ({\n src: src2,\n light: light2,\n oEmbedUrl: oEmbedUrl2\n }) => {\n if (React.isValidElement(light2)) {\n return;\n }\n if (typeof light2 === \"string\") {\n setImage(light2);\n return;\n }\n if (cache[src2]) {\n setImage(cache[src2]);\n return;\n }\n setImage(null);\n const response = await fetch(oEmbedUrl2.replace(\"{url}\", src2));\n const data = await response.json();\n if (data.thumbnail_url) {\n const fetchedImage = data.thumbnail_url.replace(\"height=100\", \"height=480\").replace(\"-d_295x166\", \"-d_640\");\n setImage(fetchedImage);\n cache[src2] = fetchedImage;\n }\n };\n const handleKeyPress = (e) => {\n if (e.key === \"Enter\" || e.key === \" \") {\n onClickPreview == null ? void 0 : onClickPreview(e);\n }\n };\n const handleClick = (e) => {\n onClickPreview == null ? void 0 : onClickPreview(e);\n };\n const isElement = React.isValidElement(light);\n const flexCenter = {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n };\n const styles = {\n preview: {\n width: \"100%\",\n height: \"100%\",\n backgroundImage: image && !isElement ? `url(${image})` : void 0,\n backgroundSize: \"cover\",\n backgroundPosition: \"center\",\n cursor: \"pointer\",\n ...flexCenter\n },\n shadow: {\n background: \"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)\",\n borderRadius: ICON_SIZE,\n width: ICON_SIZE,\n height: ICON_SIZE,\n position: isElement ? \"absolute\" : void 0,\n ...flexCenter\n },\n playIcon: {\n borderStyle: \"solid\",\n borderWidth: \"16px 0 16px 26px\",\n borderColor: \"transparent transparent transparent white\",\n marginLeft: \"7px\"\n }\n };\n const defaultPlayIcon = /* @__PURE__ */ React.createElement(\"div\", { style: styles.shadow, className: \"react-player__shadow\" }, /* @__PURE__ */ React.createElement(\"div\", { style: styles.playIcon, className: \"react-player__play-icon\" }));\n return /* @__PURE__ */ React.createElement(\n \"div\",\n {\n style: styles.preview,\n className: \"react-player__preview\",\n tabIndex: previewTabIndex,\n onClick: handleClick,\n onKeyPress: handleKeyPress,\n ...previewAriaLabel ? { \"aria-label\": previewAriaLabel } : {}\n },\n isElement ? light : null,\n playIcon || defaultPlayIcon\n );\n};\nvar Preview_default = Preview;\nexport {\n Preview_default as default\n};\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA"}
@@ -0,0 +1,519 @@
1
+ "use strict";
2
+ (self["webpackChunkwaterford_library"] = self["webpackChunkwaterford_library"] || []).push([["reactPlayerSpotify"], {
3
+ "./node_modules/spotify-audio-element/dist/react.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
4
+ __webpack_require__.r(__webpack_exports__);
5
+ __webpack_require__.d(__webpack_exports__, {
6
+ "default": () => (react_default)
7
+ });
8
+ /* ESM import */var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./node_modules/react/index.js");
9
+ /* ESM import */var _spotify_audio_element_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./node_modules/spotify-audio-element/dist/spotify-audio-element.js");
10
+ "use client";
11
+
12
+ // dist/react.ts
13
+
14
+
15
+
16
+ // ../../node_modules/ce-la-react/dist/ce-la-react.js
17
+ var reservedReactProps = /* @__PURE__ */ new Set([
18
+ "style",
19
+ "children",
20
+ "ref",
21
+ "key",
22
+ "suppressContentEditableWarning",
23
+ "suppressHydrationWarning",
24
+ "dangerouslySetInnerHTML"
25
+ ]);
26
+ var reactPropToAttrNameMap = {
27
+ className: "class",
28
+ htmlFor: "for"
29
+ };
30
+ function defaultToAttributeName(propName) {
31
+ return propName.toLowerCase();
32
+ }
33
+ function defaultToAttributeValue(propValue) {
34
+ if (typeof propValue === "boolean") return propValue ? "" : void 0;
35
+ if (typeof propValue === "function") return void 0;
36
+ if (typeof propValue === "object" && propValue !== null) return void 0;
37
+ return propValue;
38
+ }
39
+ function createComponent({
40
+ react: React2,
41
+ tagName,
42
+ elementClass,
43
+ events,
44
+ displayName,
45
+ defaultProps,
46
+ toAttributeName = defaultToAttributeName,
47
+ toAttributeValue = defaultToAttributeValue
48
+ }) {
49
+ const IS_REACT_19_OR_NEWER = Number.parseInt(React2.version) >= 19;
50
+ const ReactComponent = React2.forwardRef((props, ref) => {
51
+ var _a, _b;
52
+ const elementRef = React2.useRef(null);
53
+ const prevElemPropsRef = React2.useRef(/* @__PURE__ */ new Map());
54
+ const eventProps = {};
55
+ const attrs = {};
56
+ const reactProps = {};
57
+ const elementProps = {};
58
+ for (const [k, v] of Object.entries(props)) {
59
+ if (reservedReactProps.has(k)) {
60
+ reactProps[k] = v;
61
+ continue;
62
+ }
63
+ const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);
64
+ if (elementClass.prototype && k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {
65
+ elementProps[k] = v;
66
+ continue;
67
+ }
68
+ if (k.startsWith("on")) {
69
+ eventProps[k] = v;
70
+ continue;
71
+ }
72
+ const attrValue = toAttributeValue(v);
73
+ if (attrName && attrValue != null) {
74
+ attrs[attrName] = String(attrValue);
75
+ if (!IS_REACT_19_OR_NEWER) {
76
+ reactProps[attrName] = attrValue;
77
+ }
78
+ }
79
+ if (attrName && IS_REACT_19_OR_NEWER) {
80
+ const attrValueFromDefault = defaultToAttributeValue(v);
81
+ if (attrValue !== attrValueFromDefault) {
82
+ reactProps[attrName] = attrValue;
83
+ } else {
84
+ reactProps[attrName] = v;
85
+ }
86
+ }
87
+ }
88
+ if (typeof window !== "undefined") {
89
+ for (const propName in eventProps) {
90
+ const callback = eventProps[propName];
91
+ const useCapture = propName.endsWith("Capture");
92
+ const eventName = ((events == null ? void 0 : events[propName]) ?? propName.slice(2).toLowerCase()).slice(
93
+ 0,
94
+ useCapture ? -7 : void 0
95
+ );
96
+ React2.useLayoutEffect(() => {
97
+ const eventTarget = elementRef == null ? void 0 : elementRef.current;
98
+ if (!eventTarget || typeof callback !== "function") return;
99
+ eventTarget.addEventListener(eventName, callback, useCapture);
100
+ return () => {
101
+ eventTarget.removeEventListener(eventName, callback, useCapture);
102
+ };
103
+ }, [elementRef == null ? void 0 : elementRef.current, callback]);
104
+ }
105
+ React2.useLayoutEffect(() => {
106
+ if (elementRef.current === null) return;
107
+ const newElemProps = /* @__PURE__ */ new Map();
108
+ for (const key in elementProps) {
109
+ setProperty(elementRef.current, key, elementProps[key]);
110
+ prevElemPropsRef.current.delete(key);
111
+ newElemProps.set(key, elementProps[key]);
112
+ }
113
+ for (const [key, _value] of prevElemPropsRef.current) {
114
+ setProperty(elementRef.current, key, void 0);
115
+ }
116
+ prevElemPropsRef.current = newElemProps;
117
+ });
118
+ }
119
+ if (typeof window === "undefined" && (elementClass == null ? void 0 : elementClass.getTemplateHTML) && (elementClass == null ? void 0 : elementClass.shadowRootOptions)) {
120
+ const { mode, delegatesFocus } = elementClass.shadowRootOptions;
121
+ const templateShadowRoot = React2.createElement("template", {
122
+ shadowrootmode: mode,
123
+ shadowrootdelegatesfocus: delegatesFocus,
124
+ dangerouslySetInnerHTML: {
125
+ __html: elementClass.getTemplateHTML(attrs, props)
126
+ }
127
+ });
128
+ reactProps.children = [templateShadowRoot, reactProps.children];
129
+ }
130
+ return React2.createElement(tagName, {
131
+ ...defaultProps,
132
+ ...reactProps,
133
+ ref: React2.useCallback(
134
+ (node) => {
135
+ elementRef.current = node;
136
+ if (typeof ref === "function") {
137
+ ref(node);
138
+ } else if (ref !== null) {
139
+ ref.current = node;
140
+ }
141
+ },
142
+ [ref]
143
+ )
144
+ });
145
+ });
146
+ ReactComponent.displayName = displayName ?? elementClass.name;
147
+ return ReactComponent;
148
+ }
149
+ function setProperty(node, name, value) {
150
+ var _a;
151
+ node[name] = value;
152
+ if (value == null && name in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) {
153
+ node.removeAttribute(name);
154
+ }
155
+ }
156
+
157
+ // dist/react.ts
158
+ var react_default = createComponent({
159
+ react: react__WEBPACK_IMPORTED_MODULE_0__,
160
+ tagName: "spotify-audio",
161
+ elementClass: _spotify_audio_element_js__WEBPACK_IMPORTED_MODULE_1__["default"],
162
+ toAttributeName(propName) {
163
+ if (propName === "muted") return "";
164
+ if (propName === "defaultMuted") return "muted";
165
+ return defaultToAttributeName(propName);
166
+ }
167
+ });
168
+
169
+ /*! Bundled license information:
170
+
171
+ ce-la-react/dist/ce-la-react.js:
172
+ (**
173
+ * @license
174
+ * Copyright 2018 Google LLC
175
+ * SPDX-License-Identifier: BSD-3-Clause
176
+ *
177
+ * Modified version of `@lit/react` for vanilla custom elements with support for SSR.
178
+ *)
179
+ */
180
+
181
+
182
+ }),
183
+ "./node_modules/spotify-audio-element/dist/spotify-audio-element.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
184
+ __webpack_require__.r(__webpack_exports__);
185
+ __webpack_require__.d(__webpack_exports__, {
186
+ "default": () => (spotify_audio_element_default)
187
+ });
188
+ const EMBED_BASE = "https://open.spotify.com";
189
+ const MATCH_SRC = /open\.spotify\.com\/(\w+)\/(\w+)/i;
190
+ const API_URL = "https://open.spotify.com/embed-podcast/iframe-api/v1";
191
+ const API_GLOBAL = "SpotifyIframeApi";
192
+ const API_GLOBAL_READY = "onSpotifyIframeApiReady";
193
+ function getTemplateHTML(attrs, props = {}) {
194
+ const iframeAttrs = {
195
+ src: serializeIframeUrl(attrs, props),
196
+ scrolling: "no",
197
+ frameborder: 0,
198
+ width: "100%",
199
+ height: "100%",
200
+ allow: "accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture"
201
+ };
202
+ return (
203
+ /*html*/
204
+ `
205
+ <style>
206
+ :host {
207
+ display: inline-block;
208
+ min-width: 160px;
209
+ min-height: 80px;
210
+ position: relative;
211
+ }
212
+ iframe {
213
+ position: absolute;
214
+ top: 0;
215
+ left: 0;
216
+ width: 100%;
217
+ height: 100%;
218
+ overflow: hidden;
219
+ }
220
+ :host(:not([controls])) {
221
+ display: none !important;
222
+ }
223
+ </style>
224
+ <iframe${serializeAttributes(iframeAttrs)}></iframe>
225
+ `
226
+ );
227
+ }
228
+ function serializeIframeUrl(attrs, props) {
229
+ var _a, _b, _c;
230
+ if (!attrs.src) return;
231
+ const matches = attrs.src.match(MATCH_SRC);
232
+ const type = matches && matches[1];
233
+ const metaId = matches && matches[2];
234
+ const params = {
235
+ t: (_a = props.config) == null ? void 0 : _a.startAt,
236
+ theme: ((_b = props.config) == null ? void 0 : _b.theme) === "dark" ? "0" : null
237
+ };
238
+ const videoPath = ((_c = props.config) == null ? void 0 : _c.preferVideo) ? "/video" : "";
239
+ return `${EMBED_BASE}/embed/${type}/${metaId}${videoPath}?${serialize(params)}`;
240
+ }
241
+ class SpotifyAudioElement extends (globalThis.HTMLElement ?? class {
242
+ }) {
243
+ static getTemplateHTML = getTemplateHTML;
244
+ static shadowRootOptions = { mode: "open" };
245
+ static observedAttributes = [
246
+ "controls",
247
+ "loop",
248
+ "src"
249
+ ];
250
+ loadComplete = new PublicPromise();
251
+ #loadRequested;
252
+ #hasLoaded;
253
+ #isInit;
254
+ #isWaiting = false;
255
+ #closeToEnded = false;
256
+ #paused = true;
257
+ #currentTime = 0;
258
+ #duration = NaN;
259
+ #seeking = false;
260
+ #config = null;
261
+ constructor() {
262
+ super();
263
+ this.#upgradeProperty("config");
264
+ }
265
+ async load() {
266
+ var _a, _b, _c;
267
+ if (this.#loadRequested) return;
268
+ if (this.#hasLoaded) this.loadComplete = new PublicPromise();
269
+ this.#hasLoaded = true;
270
+ await (this.#loadRequested = Promise.resolve());
271
+ this.#loadRequested = null;
272
+ this.#isWaiting = false;
273
+ this.#closeToEnded = false;
274
+ this.#currentTime = 0;
275
+ this.#duration = NaN;
276
+ this.#seeking = false;
277
+ this.dispatchEvent(new Event("emptied"));
278
+ let oldApi = this.api;
279
+ this.api = null;
280
+ if (!this.src) {
281
+ return;
282
+ }
283
+ this.dispatchEvent(new Event("loadstart"));
284
+ const options = {
285
+ t: (_a = this.config) == null ? void 0 : _a.startAt,
286
+ theme: ((_b = this.config) == null ? void 0 : _b.theme) === "dark" ? "0" : null,
287
+ preferVideo: (_c = this.config) == null ? void 0 : _c.preferVideo
288
+ };
289
+ if (this.#isInit) {
290
+ this.api = oldApi;
291
+ this.api.iframeElement.src = serializeIframeUrl(namedNodeMapToObject(this.attributes), this);
292
+ } else {
293
+ this.#isInit = true;
294
+ if (!this.shadowRoot) {
295
+ this.attachShadow({ mode: "open" });
296
+ this.shadowRoot.innerHTML = getTemplateHTML(namedNodeMapToObject(this.attributes), this);
297
+ }
298
+ let iframe = this.shadowRoot.querySelector("iframe");
299
+ const Spotify = await loadScript(API_URL, API_GLOBAL, API_GLOBAL_READY);
300
+ this.api = await new Promise((resolve) => Spotify.createController(iframe, options, resolve));
301
+ this.api.iframeElement = iframe;
302
+ this.api.addListener("ready", () => {
303
+ this.dispatchEvent(new Event("loadedmetadata"));
304
+ this.dispatchEvent(new Event("durationchange"));
305
+ this.dispatchEvent(new Event("volumechange"));
306
+ });
307
+ this.api.addListener("playback_update", (event) => {
308
+ if (this.#closeToEnded && this.#paused && (event.data.isBuffering || !event.data.isPaused)) {
309
+ this.#closeToEnded = false;
310
+ this.currentTime = 1;
311
+ return;
312
+ }
313
+ if (event.data.duration / 1e3 !== this.#duration) {
314
+ this.#closeToEnded = false;
315
+ this.#duration = event.data.duration / 1e3;
316
+ this.dispatchEvent(new Event("durationchange"));
317
+ }
318
+ if (event.data.position / 1e3 !== this.#currentTime) {
319
+ this.#seeking = false;
320
+ this.#closeToEnded = false;
321
+ this.#currentTime = event.data.position / 1e3;
322
+ this.dispatchEvent(new Event("timeupdate"));
323
+ }
324
+ if (!this.#isWaiting && !this.#paused && event.data.isPaused) {
325
+ this.#paused = true;
326
+ this.dispatchEvent(new Event("pause"));
327
+ return;
328
+ }
329
+ if (this.#paused && (event.data.isBuffering || !event.data.isPaused)) {
330
+ this.#paused = false;
331
+ this.dispatchEvent(new Event("play"));
332
+ this.#isWaiting = event.data.isBuffering;
333
+ if (this.#isWaiting) {
334
+ this.dispatchEvent(new Event("waiting"));
335
+ } else {
336
+ this.dispatchEvent(new Event("playing"));
337
+ }
338
+ return;
339
+ }
340
+ if (this.#isWaiting && !event.data.isPaused) {
341
+ this.#isWaiting = false;
342
+ this.dispatchEvent(new Event("playing"));
343
+ return;
344
+ }
345
+ if (!this.paused && !this.seeking && !this.#closeToEnded && Math.ceil(this.currentTime) >= this.duration) {
346
+ this.#closeToEnded = true;
347
+ if (this.loop) {
348
+ this.currentTime = 1;
349
+ return;
350
+ }
351
+ if (!this.continuous) {
352
+ this.pause();
353
+ this.dispatchEvent(new Event("ended"));
354
+ }
355
+ return;
356
+ }
357
+ });
358
+ }
359
+ this.loadComplete.resolve();
360
+ await this.loadComplete;
361
+ }
362
+ async attributeChangedCallback(attrName, oldValue, newValue) {
363
+ if (oldValue === newValue) return;
364
+ switch (attrName) {
365
+ case "src": {
366
+ this.load();
367
+ return;
368
+ }
369
+ }
370
+ }
371
+ async play() {
372
+ var _a;
373
+ this.#paused = false;
374
+ this.#isWaiting = true;
375
+ this.dispatchEvent(new Event("play"));
376
+ await this.loadComplete;
377
+ return (_a = this.api) == null ? void 0 : _a.resume();
378
+ }
379
+ async pause() {
380
+ var _a;
381
+ await this.loadComplete;
382
+ return (_a = this.api) == null ? void 0 : _a.pause();
383
+ }
384
+ get config() {
385
+ return this.#config;
386
+ }
387
+ set config(value) {
388
+ this.#config = value;
389
+ }
390
+ get paused() {
391
+ return this.#paused ?? true;
392
+ }
393
+ get muted() {
394
+ return false;
395
+ }
396
+ set muted(val) {
397
+ }
398
+ get volume() {
399
+ return 1;
400
+ }
401
+ set volume(val) {
402
+ }
403
+ get ended() {
404
+ return Math.ceil(this.currentTime) >= this.duration;
405
+ }
406
+ get seeking() {
407
+ return this.#seeking;
408
+ }
409
+ get loop() {
410
+ return this.hasAttribute("loop");
411
+ }
412
+ set loop(val) {
413
+ if (this.loop == val) return;
414
+ this.toggleAttribute("loop", Boolean(val));
415
+ }
416
+ get currentTime() {
417
+ return this.#currentTime;
418
+ }
419
+ set currentTime(val) {
420
+ if (this.currentTime == val) return;
421
+ this.#seeking = true;
422
+ let oldTime = this.#currentTime;
423
+ this.#currentTime = val;
424
+ this.dispatchEvent(new Event("timeupdate"));
425
+ this.#currentTime = oldTime;
426
+ this.loadComplete.then(() => {
427
+ var _a;
428
+ (_a = this.api) == null ? void 0 : _a.seek(val);
429
+ });
430
+ }
431
+ get duration() {
432
+ return this.#duration;
433
+ }
434
+ get src() {
435
+ return this.getAttribute("src");
436
+ }
437
+ set src(val) {
438
+ this.setAttribute("src", `${val}`);
439
+ }
440
+ // This is a pattern to update property values that are set before
441
+ // the custom element is upgraded.
442
+ // https://web.dev/custom-elements-best-practices/#make-properties-lazy
443
+ #upgradeProperty(prop) {
444
+ if (Object.prototype.hasOwnProperty.call(this, prop)) {
445
+ const value = this[prop];
446
+ delete this[prop];
447
+ this[prop] = value;
448
+ }
449
+ }
450
+ }
451
+ function serializeAttributes(attrs) {
452
+ let html = "";
453
+ for (const key in attrs) {
454
+ const value = attrs[key];
455
+ if (value === "") html += ` ${key}`;
456
+ else html += ` ${key}="${value}"`;
457
+ }
458
+ return html;
459
+ }
460
+ function serialize(props) {
461
+ return String(new URLSearchParams(boolToBinary(props)));
462
+ }
463
+ function boolToBinary(props) {
464
+ let p = {};
465
+ for (let key in props) {
466
+ let val = props[key];
467
+ if (val === true || val === "") p[key] = 1;
468
+ else if (val === false) p[key] = 0;
469
+ else if (val != null) p[key] = val;
470
+ }
471
+ return p;
472
+ }
473
+ function namedNodeMapToObject(namedNodeMap) {
474
+ let obj = {};
475
+ for (let attr of namedNodeMap) {
476
+ obj[attr.name] = attr.value;
477
+ }
478
+ return obj;
479
+ }
480
+ const loadScriptCache = {};
481
+ async function loadScript(src, globalName, readyFnName) {
482
+ if (loadScriptCache[src]) return loadScriptCache[src];
483
+ if (globalName && self[globalName]) {
484
+ return Promise.resolve(self[globalName]);
485
+ }
486
+ return loadScriptCache[src] = new Promise(function(resolve, reject) {
487
+ const script = document.createElement("script");
488
+ script.src = src;
489
+ const ready = (api) => resolve(api);
490
+ if (readyFnName) self[readyFnName] = ready;
491
+ script.onload = () => !readyFnName && ready();
492
+ script.onerror = reject;
493
+ document.head.append(script);
494
+ });
495
+ }
496
+ class PublicPromise extends Promise {
497
+ constructor(executor = () => {
498
+ }) {
499
+ let res, rej;
500
+ super((resolve, reject) => {
501
+ executor(resolve, reject);
502
+ res = resolve;
503
+ rej = reject;
504
+ });
505
+ this.resolve = res;
506
+ this.reject = rej;
507
+ }
508
+ }
509
+ if (globalThis.customElements && !globalThis.customElements.get("spotify-audio")) {
510
+ globalThis.customElements.define("spotify-audio", SpotifyAudioElement);
511
+ }
512
+ var spotify_audio_element_default = SpotifyAudioElement;
513
+
514
+
515
+
516
+ }),
517
+
518
+ }]);
519
+ //# sourceMappingURL=reactPlayerSpotify.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static/js/async/reactPlayerSpotify.js","sources":["/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/node_modules/spotify-audio-element/dist/react.js","/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/node_modules/spotify-audio-element/dist/spotify-audio-element.js"],"sourcesContent":["\"use client\";\n\n// dist/react.ts\nimport React from \"react\";\nimport CustomMediaElement from \"./spotify-audio-element.js\";\n\n// ../../node_modules/ce-la-react/dist/ce-la-react.js\nvar reservedReactProps = /* @__PURE__ */ new Set([\n \"style\",\n \"children\",\n \"ref\",\n \"key\",\n \"suppressContentEditableWarning\",\n \"suppressHydrationWarning\",\n \"dangerouslySetInnerHTML\"\n]);\nvar reactPropToAttrNameMap = {\n className: \"class\",\n htmlFor: \"for\"\n};\nfunction defaultToAttributeName(propName) {\n return propName.toLowerCase();\n}\nfunction defaultToAttributeValue(propValue) {\n if (typeof propValue === \"boolean\") return propValue ? \"\" : void 0;\n if (typeof propValue === \"function\") return void 0;\n if (typeof propValue === \"object\" && propValue !== null) return void 0;\n return propValue;\n}\nfunction createComponent({\n react: React2,\n tagName,\n elementClass,\n events,\n displayName,\n defaultProps,\n toAttributeName = defaultToAttributeName,\n toAttributeValue = defaultToAttributeValue\n}) {\n const IS_REACT_19_OR_NEWER = Number.parseInt(React2.version) >= 19;\n const ReactComponent = React2.forwardRef((props, ref) => {\n var _a, _b;\n const elementRef = React2.useRef(null);\n const prevElemPropsRef = React2.useRef(/* @__PURE__ */ new Map());\n const eventProps = {};\n const attrs = {};\n const reactProps = {};\n const elementProps = {};\n for (const [k, v] of Object.entries(props)) {\n if (reservedReactProps.has(k)) {\n reactProps[k] = v;\n continue;\n }\n const attrName = toAttributeName(reactPropToAttrNameMap[k] ?? k);\n if (elementClass.prototype && k in elementClass.prototype && !(k in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) && !((_b = elementClass.observedAttributes) == null ? void 0 : _b.some((attr) => attr === attrName))) {\n elementProps[k] = v;\n continue;\n }\n if (k.startsWith(\"on\")) {\n eventProps[k] = v;\n continue;\n }\n const attrValue = toAttributeValue(v);\n if (attrName && attrValue != null) {\n attrs[attrName] = String(attrValue);\n if (!IS_REACT_19_OR_NEWER) {\n reactProps[attrName] = attrValue;\n }\n }\n if (attrName && IS_REACT_19_OR_NEWER) {\n const attrValueFromDefault = defaultToAttributeValue(v);\n if (attrValue !== attrValueFromDefault) {\n reactProps[attrName] = attrValue;\n } else {\n reactProps[attrName] = v;\n }\n }\n }\n if (typeof window !== \"undefined\") {\n for (const propName in eventProps) {\n const callback = eventProps[propName];\n const useCapture = propName.endsWith(\"Capture\");\n const eventName = ((events == null ? void 0 : events[propName]) ?? propName.slice(2).toLowerCase()).slice(\n 0,\n useCapture ? -7 : void 0\n );\n React2.useLayoutEffect(() => {\n const eventTarget = elementRef == null ? void 0 : elementRef.current;\n if (!eventTarget || typeof callback !== \"function\") return;\n eventTarget.addEventListener(eventName, callback, useCapture);\n return () => {\n eventTarget.removeEventListener(eventName, callback, useCapture);\n };\n }, [elementRef == null ? void 0 : elementRef.current, callback]);\n }\n React2.useLayoutEffect(() => {\n if (elementRef.current === null) return;\n const newElemProps = /* @__PURE__ */ new Map();\n for (const key in elementProps) {\n setProperty(elementRef.current, key, elementProps[key]);\n prevElemPropsRef.current.delete(key);\n newElemProps.set(key, elementProps[key]);\n }\n for (const [key, _value] of prevElemPropsRef.current) {\n setProperty(elementRef.current, key, void 0);\n }\n prevElemPropsRef.current = newElemProps;\n });\n }\n if (typeof window === \"undefined\" && (elementClass == null ? void 0 : elementClass.getTemplateHTML) && (elementClass == null ? void 0 : elementClass.shadowRootOptions)) {\n const { mode, delegatesFocus } = elementClass.shadowRootOptions;\n const templateShadowRoot = React2.createElement(\"template\", {\n shadowrootmode: mode,\n shadowrootdelegatesfocus: delegatesFocus,\n dangerouslySetInnerHTML: {\n __html: elementClass.getTemplateHTML(attrs, props)\n }\n });\n reactProps.children = [templateShadowRoot, reactProps.children];\n }\n return React2.createElement(tagName, {\n ...defaultProps,\n ...reactProps,\n ref: React2.useCallback(\n (node) => {\n elementRef.current = node;\n if (typeof ref === \"function\") {\n ref(node);\n } else if (ref !== null) {\n ref.current = node;\n }\n },\n [ref]\n )\n });\n });\n ReactComponent.displayName = displayName ?? elementClass.name;\n return ReactComponent;\n}\nfunction setProperty(node, name, value) {\n var _a;\n node[name] = value;\n if (value == null && name in (((_a = globalThis.HTMLElement) == null ? void 0 : _a.prototype) ?? {})) {\n node.removeAttribute(name);\n }\n}\n\n// dist/react.ts\nvar react_default = createComponent({\n react: React,\n tagName: \"spotify-audio\",\n elementClass: CustomMediaElement,\n toAttributeName(propName) {\n if (propName === \"muted\") return \"\";\n if (propName === \"defaultMuted\") return \"muted\";\n return defaultToAttributeName(propName);\n }\n});\nexport {\n react_default as default\n};\n/*! Bundled license information:\n\nce-la-react/dist/ce-la-react.js:\n (**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n *\n * Modified version of `@lit/react` for vanilla custom elements with support for SSR.\n *)\n*/\n","const EMBED_BASE = \"https://open.spotify.com\";\nconst MATCH_SRC = /open\\.spotify\\.com\\/(\\w+)\\/(\\w+)/i;\nconst API_URL = \"https://open.spotify.com/embed-podcast/iframe-api/v1\";\nconst API_GLOBAL = \"SpotifyIframeApi\";\nconst API_GLOBAL_READY = \"onSpotifyIframeApiReady\";\nfunction getTemplateHTML(attrs, props = {}) {\n const iframeAttrs = {\n src: serializeIframeUrl(attrs, props),\n scrolling: \"no\",\n frameborder: 0,\n width: \"100%\",\n height: \"100%\",\n allow: \"accelerometer; fullscreen; autoplay; encrypted-media; gyroscope; picture-in-picture\"\n };\n return (\n /*html*/\n `\n <style>\n :host {\n display: inline-block;\n min-width: 160px;\n min-height: 80px;\n position: relative;\n }\n iframe {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n :host(:not([controls])) {\n display: none !important;\n }\n </style>\n <iframe${serializeAttributes(iframeAttrs)}></iframe>\n `\n );\n}\nfunction serializeIframeUrl(attrs, props) {\n var _a, _b, _c;\n if (!attrs.src) return;\n const matches = attrs.src.match(MATCH_SRC);\n const type = matches && matches[1];\n const metaId = matches && matches[2];\n const params = {\n t: (_a = props.config) == null ? void 0 : _a.startAt,\n theme: ((_b = props.config) == null ? void 0 : _b.theme) === \"dark\" ? \"0\" : null\n };\n const videoPath = ((_c = props.config) == null ? void 0 : _c.preferVideo) ? \"/video\" : \"\";\n return `${EMBED_BASE}/embed/${type}/${metaId}${videoPath}?${serialize(params)}`;\n}\nclass SpotifyAudioElement extends (globalThis.HTMLElement ?? class {\n}) {\n static getTemplateHTML = getTemplateHTML;\n static shadowRootOptions = { mode: \"open\" };\n static observedAttributes = [\n \"controls\",\n \"loop\",\n \"src\"\n ];\n loadComplete = new PublicPromise();\n #loadRequested;\n #hasLoaded;\n #isInit;\n #isWaiting = false;\n #closeToEnded = false;\n #paused = true;\n #currentTime = 0;\n #duration = NaN;\n #seeking = false;\n #config = null;\n constructor() {\n super();\n this.#upgradeProperty(\"config\");\n }\n async load() {\n var _a, _b, _c;\n if (this.#loadRequested) return;\n if (this.#hasLoaded) this.loadComplete = new PublicPromise();\n this.#hasLoaded = true;\n await (this.#loadRequested = Promise.resolve());\n this.#loadRequested = null;\n this.#isWaiting = false;\n this.#closeToEnded = false;\n this.#currentTime = 0;\n this.#duration = NaN;\n this.#seeking = false;\n this.dispatchEvent(new Event(\"emptied\"));\n let oldApi = this.api;\n this.api = null;\n if (!this.src) {\n return;\n }\n this.dispatchEvent(new Event(\"loadstart\"));\n const options = {\n t: (_a = this.config) == null ? void 0 : _a.startAt,\n theme: ((_b = this.config) == null ? void 0 : _b.theme) === \"dark\" ? \"0\" : null,\n preferVideo: (_c = this.config) == null ? void 0 : _c.preferVideo\n };\n if (this.#isInit) {\n this.api = oldApi;\n this.api.iframeElement.src = serializeIframeUrl(namedNodeMapToObject(this.attributes), this);\n } else {\n this.#isInit = true;\n if (!this.shadowRoot) {\n this.attachShadow({ mode: \"open\" });\n this.shadowRoot.innerHTML = getTemplateHTML(namedNodeMapToObject(this.attributes), this);\n }\n let iframe = this.shadowRoot.querySelector(\"iframe\");\n const Spotify = await loadScript(API_URL, API_GLOBAL, API_GLOBAL_READY);\n this.api = await new Promise((resolve) => Spotify.createController(iframe, options, resolve));\n this.api.iframeElement = iframe;\n this.api.addListener(\"ready\", () => {\n this.dispatchEvent(new Event(\"loadedmetadata\"));\n this.dispatchEvent(new Event(\"durationchange\"));\n this.dispatchEvent(new Event(\"volumechange\"));\n });\n this.api.addListener(\"playback_update\", (event) => {\n if (this.#closeToEnded && this.#paused && (event.data.isBuffering || !event.data.isPaused)) {\n this.#closeToEnded = false;\n this.currentTime = 1;\n return;\n }\n if (event.data.duration / 1e3 !== this.#duration) {\n this.#closeToEnded = false;\n this.#duration = event.data.duration / 1e3;\n this.dispatchEvent(new Event(\"durationchange\"));\n }\n if (event.data.position / 1e3 !== this.#currentTime) {\n this.#seeking = false;\n this.#closeToEnded = false;\n this.#currentTime = event.data.position / 1e3;\n this.dispatchEvent(new Event(\"timeupdate\"));\n }\n if (!this.#isWaiting && !this.#paused && event.data.isPaused) {\n this.#paused = true;\n this.dispatchEvent(new Event(\"pause\"));\n return;\n }\n if (this.#paused && (event.data.isBuffering || !event.data.isPaused)) {\n this.#paused = false;\n this.dispatchEvent(new Event(\"play\"));\n this.#isWaiting = event.data.isBuffering;\n if (this.#isWaiting) {\n this.dispatchEvent(new Event(\"waiting\"));\n } else {\n this.dispatchEvent(new Event(\"playing\"));\n }\n return;\n }\n if (this.#isWaiting && !event.data.isPaused) {\n this.#isWaiting = false;\n this.dispatchEvent(new Event(\"playing\"));\n return;\n }\n if (!this.paused && !this.seeking && !this.#closeToEnded && Math.ceil(this.currentTime) >= this.duration) {\n this.#closeToEnded = true;\n if (this.loop) {\n this.currentTime = 1;\n return;\n }\n if (!this.continuous) {\n this.pause();\n this.dispatchEvent(new Event(\"ended\"));\n }\n return;\n }\n });\n }\n this.loadComplete.resolve();\n await this.loadComplete;\n }\n async attributeChangedCallback(attrName, oldValue, newValue) {\n if (oldValue === newValue) return;\n switch (attrName) {\n case \"src\": {\n this.load();\n return;\n }\n }\n }\n async play() {\n var _a;\n this.#paused = false;\n this.#isWaiting = true;\n this.dispatchEvent(new Event(\"play\"));\n await this.loadComplete;\n return (_a = this.api) == null ? void 0 : _a.resume();\n }\n async pause() {\n var _a;\n await this.loadComplete;\n return (_a = this.api) == null ? void 0 : _a.pause();\n }\n get config() {\n return this.#config;\n }\n set config(value) {\n this.#config = value;\n }\n get paused() {\n return this.#paused ?? true;\n }\n get muted() {\n return false;\n }\n set muted(val) {\n }\n get volume() {\n return 1;\n }\n set volume(val) {\n }\n get ended() {\n return Math.ceil(this.currentTime) >= this.duration;\n }\n get seeking() {\n return this.#seeking;\n }\n get loop() {\n return this.hasAttribute(\"loop\");\n }\n set loop(val) {\n if (this.loop == val) return;\n this.toggleAttribute(\"loop\", Boolean(val));\n }\n get currentTime() {\n return this.#currentTime;\n }\n set currentTime(val) {\n if (this.currentTime == val) return;\n this.#seeking = true;\n let oldTime = this.#currentTime;\n this.#currentTime = val;\n this.dispatchEvent(new Event(\"timeupdate\"));\n this.#currentTime = oldTime;\n this.loadComplete.then(() => {\n var _a;\n (_a = this.api) == null ? void 0 : _a.seek(val);\n });\n }\n get duration() {\n return this.#duration;\n }\n get src() {\n return this.getAttribute(\"src\");\n }\n set src(val) {\n this.setAttribute(\"src\", `${val}`);\n }\n // This is a pattern to update property values that are set before\n // the custom element is upgraded.\n // https://web.dev/custom-elements-best-practices/#make-properties-lazy\n #upgradeProperty(prop) {\n if (Object.prototype.hasOwnProperty.call(this, prop)) {\n const value = this[prop];\n delete this[prop];\n this[prop] = value;\n }\n }\n}\nfunction serializeAttributes(attrs) {\n let html = \"\";\n for (const key in attrs) {\n const value = attrs[key];\n if (value === \"\") html += ` ${key}`;\n else html += ` ${key}=\"${value}\"`;\n }\n return html;\n}\nfunction serialize(props) {\n return String(new URLSearchParams(boolToBinary(props)));\n}\nfunction boolToBinary(props) {\n let p = {};\n for (let key in props) {\n let val = props[key];\n if (val === true || val === \"\") p[key] = 1;\n else if (val === false) p[key] = 0;\n else if (val != null) p[key] = val;\n }\n return p;\n}\nfunction namedNodeMapToObject(namedNodeMap) {\n let obj = {};\n for (let attr of namedNodeMap) {\n obj[attr.name] = attr.value;\n }\n return obj;\n}\nconst loadScriptCache = {};\nasync function loadScript(src, globalName, readyFnName) {\n if (loadScriptCache[src]) return loadScriptCache[src];\n if (globalName && self[globalName]) {\n return Promise.resolve(self[globalName]);\n }\n return loadScriptCache[src] = new Promise(function(resolve, reject) {\n const script = document.createElement(\"script\");\n script.src = src;\n const ready = (api) => resolve(api);\n if (readyFnName) self[readyFnName] = ready;\n script.onload = () => !readyFnName && ready();\n script.onerror = reject;\n document.head.append(script);\n });\n}\nclass PublicPromise extends Promise {\n constructor(executor = () => {\n }) {\n let res, rej;\n super((resolve, reject) => {\n executor(resolve, reject);\n res = resolve;\n rej = reject;\n });\n this.resolve = res;\n this.reject = rej;\n }\n}\nif (globalThis.customElements && !globalThis.customElements.get(\"spotify-audio\")) {\n globalThis.customElements.define(\"spotify-audio\", SpotifyAudioElement);\n}\nvar spotify_audio_element_default = SpotifyAudioElement;\nexport {\n spotify_audio_element_default as default\n};\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;AC3KA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA"}