@banou/stub 0.0.18 → 0.0.20

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 (34) hide show
  1. package/build/.well-known/fkn.json +1 -1
  2. package/build/assets/lib-Preview-B6uZKyhl.js +82 -0
  3. package/build/assets/lib-account-BuVN6Bsx.js +41 -0
  4. package/build/assets/lib-account-Cw8yCZtf.js +2 -0
  5. package/build/assets/lib-api-DLvscoll-DhlBp9Wz.js +312 -0
  6. package/build/assets/lib-api-DVwR-22s.js +2 -0
  7. package/build/assets/lib-build-DEOZ3A7n.js +1846 -0
  8. package/build/assets/lib-compat-D8G4_Lzi.js +860 -0
  9. package/build/assets/lib-custom-media-element-CnANKrGl.js +217 -0
  10. package/build/assets/lib-dash.all.min-CDvdorbj.js +27251 -0
  11. package/build/assets/lib-dist-Dv8d3Kr0.js +7 -0
  12. package/build/assets/lib-dist-S8Gxnnq-.js +12468 -0
  13. package/build/assets/lib-dist-T0QlKbbk.js +18578 -0
  14. package/build/assets/lib-dist-xBHT3Lfz.js +911 -0
  15. package/build/assets/lib-react-BEg4mBBK.js +112 -0
  16. package/build/assets/lib-react-C0OCUIWX.js +434 -0
  17. package/build/assets/lib-react-CAkOlDha.js +367 -0
  18. package/build/assets/lib-react-CGlZXIjl.js +2187 -0
  19. package/build/assets/lib-react-CLVoi_ZM.js +334 -0
  20. package/build/assets/lib-react-DUxKSzCt.js +311 -0
  21. package/build/assets/lib-react-QvmpnEVK.js +334 -0
  22. package/build/assets/lib-react-WTnxAo6F.js +202 -0
  23. package/build/assets/lib-remote-DeY2A2G7.js +416 -0
  24. package/build/assets/lib-remote-DxEZmpd0.js +2 -0
  25. package/build/assets/lib-rolldown-runtime-B1bRi_D7.js +27 -0
  26. package/build/assets/lib-worker-anime-index-Jbe1K3rX.js +1 -0
  27. package/build/assets/lib-worker-anime-seasons-CVM0BQGM.js +1 -0
  28. package/build/assets/lib-worker-index-C7ynIZYg.js +1401 -0
  29. package/build/assets/{main-C8JOinyp.js → main-DejLBzlj.js} +1 -1
  30. package/build/fkn.json +1 -1
  31. package/build/index.html +1 -1
  32. package/build/index.js +40639 -0
  33. package/fkn.json +1 -1
  34. package/package.json +3 -3
@@ -0,0 +1,334 @@
1
+ import { f as e, i as t } from "./lib-compat-D8G4_Lzi.js";
2
+ //#region node_modules/tiktok-video-element/dist/tiktok-video-element.js
3
+ e();
4
+ var n = "https://www.tiktok.com/player/v1", r = /tiktok\.com\/(?:@[^/]+\/video\/)?(\d+)(?:\/([\w-]+))?/, i = {
5
+ INIT: -1,
6
+ ENDED: 0,
7
+ PLAYING: 1,
8
+ PAUSED: 2,
9
+ BUFFERING: 3
10
+ }, a = {
11
+ [i.INIT]: "emptied",
12
+ [i.PAUSED]: "pause",
13
+ [i.ENDED]: "ended",
14
+ [i.PLAYING]: "play",
15
+ [i.BUFFERING]: "waiting"
16
+ };
17
+ function o(e, t = {}) {
18
+ let n = {
19
+ src: s(e, t),
20
+ frameborder: 0,
21
+ width: "100%",
22
+ height: "100%",
23
+ allow: "accelerometer; autoplay; fullscreen; encrypted-media; gyroscope; picture-in-picture"
24
+ };
25
+ return t.config && (n["data-config"] = JSON.stringify(t.config)), `
26
+ <style>
27
+ :host {
28
+ display:inline-block;
29
+ min-width: 300px;
30
+ min-height: 150px;
31
+ position: relative;
32
+ }
33
+ iframe {
34
+ position:absolute;
35
+ top:0;
36
+ left:0;
37
+ width:100%;
38
+ height:100%;
39
+ border:0;
40
+ }
41
+ </style>
42
+ <iframe ${p(n)} title="TikTok video"></iframe>
43
+ `;
44
+ }
45
+ function s(e, t = {}) {
46
+ if (!e.src) return;
47
+ let i = e.src.match(r);
48
+ return `${n}/${i && i[1]}?${f({
49
+ controls: e.controls === "" ? null : 0,
50
+ autoplay: e.autoplay,
51
+ muted: e.muted,
52
+ loop: e.loop,
53
+ rel: 0,
54
+ ...t.config
55
+ })}`;
56
+ }
57
+ var c = class e extends (globalThis.HTMLElement ?? class {}) {
58
+ static getTemplateHTML = o;
59
+ static shadowRootOptions = { mode: "open" };
60
+ static get observedAttributes() {
61
+ return [
62
+ "src",
63
+ "controls",
64
+ "loop",
65
+ "autoplay",
66
+ "muted"
67
+ ];
68
+ }
69
+ loadComplete = new l();
70
+ #loadRequested;
71
+ #hasLoaded;
72
+ #muted = !1;
73
+ #currentTime = 0;
74
+ #paused = !0;
75
+ #config = null;
76
+ #volume = 100;
77
+ #duration = 0;
78
+ #iframe;
79
+ constructor() {
80
+ super(), this.#upgradeProperty("config");
81
+ }
82
+ async load() {
83
+ if (this.#loadRequested) return;
84
+ this.shadowRoot || this.attachShadow(e.shadowRootOptions);
85
+ let t = !this.#hasLoaded;
86
+ if (this.#hasLoaded && (this.loadComplete = new l()), this.#hasLoaded = !0, await (this.#loadRequested = Promise.resolve()), this.#loadRequested = null, this.#currentTime = 0, this.#muted = !1, this.#paused = !0, !this.src) {
87
+ this.shadowRoot.innerHTML = "", globalThis.removeEventListener("message", this.#onMessage);
88
+ return;
89
+ }
90
+ let n = this.shadowRoot.querySelector("iframe"), r = u(this.attributes);
91
+ t && n && (this.#config = JSON.parse(n.getAttribute("data-config") || "{}")), (!n?.src || n.src !== s(r, this)) && (this.shadowRoot.innerHTML = o(r, this), n = this.shadowRoot.querySelector("iframe")), this.#iframe = n, globalThis.addEventListener("message", this.#onMessage);
92
+ }
93
+ async attributeChangedCallback(e, t, n) {
94
+ if (t !== n) switch (e) {
95
+ case "muted":
96
+ await this.loadComplete, this.muted = n != null;
97
+ break;
98
+ case "autoplay":
99
+ case "controls":
100
+ case "loop":
101
+ case "src":
102
+ this.load();
103
+ return;
104
+ }
105
+ }
106
+ get config() {
107
+ return this.#config;
108
+ }
109
+ set config(e) {
110
+ this.#config = e;
111
+ }
112
+ #onMessage = (e) => {
113
+ let t = e.data;
114
+ if (t?.["x-tiktok-player"]) switch (t.type) {
115
+ case "onPlayerReady":
116
+ this.loadComplete.resolve();
117
+ break;
118
+ case "onStateChange": {
119
+ this.#paused = [
120
+ i.INIT,
121
+ i.PAUSED,
122
+ i.ENDED
123
+ ].includes(t.value);
124
+ let e = a[t.value];
125
+ e && this.dispatchEvent(new Event(e));
126
+ break;
127
+ }
128
+ case "onCurrentTime":
129
+ this.#currentTime = t.value.currentTime, this.#duration = t.value.duration, this.dispatchEvent(new Event("durationchange")), this.dispatchEvent(new Event("timeupdate"));
130
+ break;
131
+ case "onVolumeChange":
132
+ this.#volume = t.value, this.dispatchEvent(new Event("volumechange"));
133
+ break;
134
+ case "onMute":
135
+ this.#muted = !!t.value, this.#volume = t.value ? 0 : this.#volume, this.dispatchEvent(new Event("volumechange"));
136
+ break;
137
+ case "onError":
138
+ this.dispatchEvent(new Event("error"));
139
+ break;
140
+ default:
141
+ console.warn("Unhandled TikTok player message:", t);
142
+ break;
143
+ }
144
+ };
145
+ #post(e, t) {
146
+ if (!this.#iframe?.contentWindow) return;
147
+ let n = {
148
+ "x-tiktok-player": !0,
149
+ type: e,
150
+ ...t === void 0 ? {} : { value: t }
151
+ };
152
+ this.#iframe.contentWindow.postMessage(n, "*");
153
+ }
154
+ async play() {
155
+ await this.loadComplete, this.#post("play");
156
+ }
157
+ async pause() {
158
+ await this.loadComplete, this.#post("pause");
159
+ }
160
+ async #seekTo(e) {
161
+ await this.loadComplete, this.#post("seekTo", Number(e));
162
+ }
163
+ async #mute() {
164
+ await this.loadComplete, this.#post("mute");
165
+ }
166
+ async #unMute() {
167
+ await this.loadComplete, this.#post("unMute");
168
+ }
169
+ get volume() {
170
+ return this.#volume / 100;
171
+ }
172
+ set volume(e) {
173
+ console.warn("Volume control is not supported for TikTok videos.");
174
+ }
175
+ get currentTime() {
176
+ return this.#currentTime;
177
+ }
178
+ set currentTime(e) {
179
+ this.#seekTo(e);
180
+ }
181
+ get muted() {
182
+ return this.#muted;
183
+ }
184
+ set muted(e) {
185
+ this.#muted = e, e ? this.#mute() : this.#unMute();
186
+ }
187
+ get defaultMuted() {
188
+ return this.hasAttribute("muted");
189
+ }
190
+ set defaultMuted(e) {
191
+ this.toggleAttribute("muted", !!e);
192
+ }
193
+ get paused() {
194
+ return this.#paused;
195
+ }
196
+ get duration() {
197
+ return this.#duration;
198
+ }
199
+ get src() {
200
+ return this.getAttribute("src");
201
+ }
202
+ set src(e) {
203
+ this.setAttribute("src", e ?? "");
204
+ }
205
+ #upgradeProperty(e) {
206
+ if (Object.prototype.hasOwnProperty.call(this, e)) {
207
+ let t = this[e];
208
+ delete this[e], this[e] = t;
209
+ }
210
+ }
211
+ }, l = class extends Promise {
212
+ constructor(e = () => {}) {
213
+ let t, n;
214
+ super((r, i) => {
215
+ e(r, i), t = r, n = i;
216
+ }), this.resolve = t, this.reject = n;
217
+ }
218
+ };
219
+ function u(e) {
220
+ let t = {};
221
+ for (let n of e) t[n.name] = n.value;
222
+ return t;
223
+ }
224
+ function d(e) {
225
+ let t = {};
226
+ for (let n in e) {
227
+ let r = e[n];
228
+ r === !0 || r === "" ? t[n] = 1 : r === !1 ? t[n] = 0 : r != null && (t[n] = r);
229
+ }
230
+ return t;
231
+ }
232
+ function f(e) {
233
+ return String(new URLSearchParams(d(e)));
234
+ }
235
+ function p(e) {
236
+ let t = "";
237
+ for (let n in e) {
238
+ let r = e[n];
239
+ r === "" ? t += ` ${m(n)}` : t += ` ${m(n)}="${m(`${r}`)}"`;
240
+ }
241
+ return t;
242
+ }
243
+ function m(e) {
244
+ return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/`/g, "&#x60;");
245
+ }
246
+ globalThis.customElements && !globalThis.customElements.get("tiktok-video") && globalThis.customElements.define("tiktok-video", c);
247
+ var h = c, g = /* @__PURE__ */ new Set([
248
+ "style",
249
+ "children",
250
+ "ref",
251
+ "key",
252
+ "suppressContentEditableWarning",
253
+ "suppressHydrationWarning",
254
+ "dangerouslySetInnerHTML"
255
+ ]), _ = {
256
+ className: "class",
257
+ htmlFor: "for"
258
+ };
259
+ function v(e) {
260
+ return e.toLowerCase();
261
+ }
262
+ function y(e) {
263
+ if (typeof e == "boolean") return e ? "" : void 0;
264
+ if (typeof e != "function" && !(typeof e == "object" && e)) return e;
265
+ }
266
+ function b({ react: e, tagName: t, elementClass: n, events: r, displayName: i, defaultProps: a, toAttributeName: o = v, toAttributeValue: s = y }) {
267
+ let c = Number.parseInt(e.version) >= 19, l = e.forwardRef((i, l) => {
268
+ let u = e.useRef(null), d = e.useRef(/* @__PURE__ */ new Map()), f = {}, p = {}, m = {}, h = {};
269
+ for (let [e, t] of Object.entries(i)) {
270
+ if (g.has(e)) {
271
+ m[e] = t;
272
+ continue;
273
+ }
274
+ let r = o(_[e] ?? e);
275
+ if (e in n.prototype && !(e in (globalThis.HTMLElement?.prototype ?? {})) && !n.observedAttributes?.some((e) => e === r)) {
276
+ h[e] = t;
277
+ continue;
278
+ }
279
+ if (e.startsWith("on")) {
280
+ f[e] = t;
281
+ continue;
282
+ }
283
+ let i = s(t);
284
+ r && i != null && (p[r] = String(i), c || (m[r] = i)), r && c && (i === y(t) ? m[r] = t : m[r] = i);
285
+ }
286
+ if (typeof window < "u") {
287
+ for (let t in f) {
288
+ let n = f[t], i = t.endsWith("Capture"), a = (r?.[t] ?? t.slice(2).toLowerCase()).slice(0, i ? -7 : void 0);
289
+ e.useLayoutEffect(() => {
290
+ let e = u?.current;
291
+ if (!(!e || typeof n != "function")) return e.addEventListener(a, n, i), () => {
292
+ e.removeEventListener(a, n, i);
293
+ };
294
+ }, [u?.current, n]);
295
+ }
296
+ e.useLayoutEffect(() => {
297
+ if (u.current === null) return;
298
+ let e = /* @__PURE__ */ new Map();
299
+ for (let t in h) x(u.current, t, h[t]), d.current.delete(t), e.set(t, h[t]);
300
+ for (let [e, t] of d.current) x(u.current, e, void 0);
301
+ d.current = e;
302
+ });
303
+ }
304
+ if (typeof window > "u" && n?.getTemplateHTML && n?.shadowRootOptions) {
305
+ let { mode: t, delegatesFocus: r } = n.shadowRootOptions;
306
+ m.children = [e.createElement("template", {
307
+ shadowrootmode: t,
308
+ shadowrootdelegatesfocus: r,
309
+ dangerouslySetInnerHTML: { __html: n.getTemplateHTML(p, i) }
310
+ }), m.children];
311
+ }
312
+ return e.createElement(t, {
313
+ ...a,
314
+ ...m,
315
+ ref: e.useCallback((e) => {
316
+ u.current = e, typeof l == "function" ? l(e) : l !== null && (l.current = e);
317
+ }, [l])
318
+ });
319
+ });
320
+ return l.displayName = i ?? n.name, l;
321
+ }
322
+ function x(e, t, n) {
323
+ e[t] = n, n == null && t in (globalThis.HTMLElement?.prototype ?? {}) && e.removeAttribute(t);
324
+ }
325
+ var S = b({
326
+ react: t,
327
+ tagName: "tiktok-video",
328
+ elementClass: h,
329
+ toAttributeName(e) {
330
+ return e === "muted" ? "" : e === "defaultMuted" ? "muted" : v(e);
331
+ }
332
+ });
333
+ //#endregion
334
+ export { S as default };
@@ -0,0 +1,202 @@
1
+ import { f as e, i as t } from "./lib-compat-D8G4_Lzi.js";
2
+ import { n, t as r } from "./lib-dist-T0QlKbbk.js";
3
+ import { t as i } from "./lib-custom-media-element-CnANKrGl.js";
4
+ //#region node_modules/hls-video-element/dist/hls-video-element.js
5
+ e();
6
+ var a = ((e) => class extends e {
7
+ static shadowRootOptions = { ...e.shadowRootOptions };
8
+ static getTemplateHTML = (t, n = {}) => {
9
+ let { src: r, ...i } = t;
10
+ return `
11
+ <script type="application/json" id="config">
12
+ ${JSON.stringify(n.config || {})}
13
+ <\/script>
14
+ ${e.getTemplateHTML(i)}
15
+ `;
16
+ };
17
+ #e = null;
18
+ #t = null;
19
+ constructor() {
20
+ super(), this.#i("config");
21
+ }
22
+ get config() {
23
+ return this.#t;
24
+ }
25
+ set config(e) {
26
+ this.#t = e;
27
+ }
28
+ attributeChangedCallback(e, t, n) {
29
+ e !== "src" && super.attributeChangedCallback(e, t, n), e === "src" && t != n && this.load();
30
+ }
31
+ #n() {
32
+ var e, t;
33
+ (e = this.#e) == null || e.remove(), (t = this.nativeEl) == null || t.removeEventListener("webkitcurrentplaybacktargetiswirelesschanged", this.#r), this.api &&= (this.api.detachMedia(), this.api.destroy(), null);
34
+ }
35
+ async load() {
36
+ var e;
37
+ let t = !this.api;
38
+ if (this.#n(), this.src) {
39
+ if (t && !this.#t && (this.#t = JSON.parse(this.shadowRoot.getElementById("config")?.textContent || "{}")), n.isSupported()) {
40
+ switch (this.api = new n({
41
+ liveDurationInfinity: !0,
42
+ autoStartLoad: !1,
43
+ ...this.config
44
+ }), await Promise.resolve(), this.api.loadSource(this.src), this.api.attachMedia(this.nativeEl), this.nativeEl.preload) {
45
+ case "none": {
46
+ let e = () => this.api.startLoad();
47
+ this.nativeEl.addEventListener("play", e, { once: !0 }), this.api.on(n.Events.DESTROYING, () => {
48
+ this.nativeEl.removeEventListener("play", e);
49
+ });
50
+ break;
51
+ }
52
+ case "metadata": {
53
+ let e = this.api.config.maxBufferLength, t = this.api.config.maxBufferSize;
54
+ this.api.config.maxBufferLength = 1, this.api.config.maxBufferSize = 1;
55
+ let r = () => {
56
+ this.api.config.maxBufferLength = e, this.api.config.maxBufferSize = t;
57
+ };
58
+ this.nativeEl.addEventListener("play", r, { once: !0 }), this.api.on(n.Events.DESTROYING, () => {
59
+ this.nativeEl.removeEventListener("play", r);
60
+ }), this.api.startLoad();
61
+ break;
62
+ }
63
+ default: this.api.startLoad();
64
+ }
65
+ this.nativeEl.webkitCurrentPlaybackTargetIsWireless && this.api.stopLoad(), this.nativeEl.addEventListener("webkitcurrentplaybacktargetiswirelesschanged", this.#r), this.#e = document.createElement("source"), this.#e.setAttribute("type", "application/x-mpegURL"), this.#e.setAttribute("src", this.src), this.nativeEl.disableRemotePlayback = !1, this.nativeEl.append(this.#e);
66
+ let t = /* @__PURE__ */ new WeakMap();
67
+ this.api.on(n.Events.MANIFEST_PARSED, (e, n) => {
68
+ this.nativeEl.autoplay && this.nativeEl.paused && this.nativeEl.play().catch((e) => {
69
+ console.warn("Autoplay failed:", e);
70
+ }), r();
71
+ let i = this.videoTracks.getTrackById("main");
72
+ i || (i = this.addVideoTrack("main"), i.id = "main", i.selected = !0);
73
+ for (let [e, r] of n.levels.entries()) {
74
+ let n = i.addRendition(r.url[0], r.width, r.height, r.videoCodec, r.bitrate);
75
+ t.set(r, `${e}`), n.id = `${e}`;
76
+ }
77
+ for (let [e, t] of n.audioTracks.entries()) {
78
+ let n = t.default ? "main" : "alternative", r = this.addAudioTrack(n, t.name, t.lang);
79
+ r.id = `${e}`, t.default && (r.enabled = !0);
80
+ }
81
+ }), this.audioTracks.addEventListener("change", () => {
82
+ let e = +[...this.audioTracks].find((e) => e.enabled)?.id, t = this.api.audioTracks.map((e) => e.id);
83
+ e != this.api.audioTrack && t.includes(e) && (this.api.audioTrack = e);
84
+ }), this.api.on(n.Events.LEVELS_UPDATED, (e, n) => {
85
+ let r = this.videoTracks[this.videoTracks.selectedIndex ?? 0];
86
+ if (!r) return;
87
+ let i = n.levels.map((e) => t.get(e));
88
+ for (let e of this.videoRenditions) e.id && !i.includes(e.id) && r.removeRendition(e);
89
+ }), (e = this.videoRenditions) == null || e.addEventListener("change", (e) => {
90
+ let t = e.target.selectedIndex;
91
+ t != this.api.nextLevel && (this.api.nextLevel = t);
92
+ });
93
+ let r = () => {
94
+ for (let e of this.videoTracks) this.removeVideoTrack(e);
95
+ for (let e of this.audioTracks) this.removeAudioTrack(e);
96
+ };
97
+ this.api.once(n.Events.DESTROYING, r);
98
+ return;
99
+ }
100
+ await Promise.resolve(), this.nativeEl.canPlayType("application/vnd.apple.mpegurl") && (this.nativeEl.src = this.src);
101
+ }
102
+ }
103
+ #r = () => {
104
+ var e, t;
105
+ this.nativeEl?.webkitCurrentPlaybackTargetIsWireless ? (e = this.api) == null || e.stopLoad() : (t = this.api) == null || t.startLoad();
106
+ };
107
+ #i(e) {
108
+ if (Object.prototype.hasOwnProperty.call(this, e)) {
109
+ let t = this[e];
110
+ delete this[e], this[e] = t;
111
+ }
112
+ }
113
+ })(r(i));
114
+ globalThis.customElements && !globalThis.customElements.get("hls-video") && globalThis.customElements.define("hls-video", a);
115
+ var o = a, s = /* @__PURE__ */ new Set([
116
+ "style",
117
+ "children",
118
+ "ref",
119
+ "key",
120
+ "suppressContentEditableWarning",
121
+ "suppressHydrationWarning",
122
+ "dangerouslySetInnerHTML"
123
+ ]), c = {
124
+ className: "class",
125
+ htmlFor: "for"
126
+ };
127
+ function l(e) {
128
+ return e.toLowerCase();
129
+ }
130
+ function u(e) {
131
+ if (typeof e == "boolean") return e ? "" : void 0;
132
+ if (typeof e != "function" && !(typeof e == "object" && e)) return e;
133
+ }
134
+ function d({ react: e, tagName: t, elementClass: n, events: r, displayName: i, defaultProps: a, toAttributeName: o = l, toAttributeValue: d = u }) {
135
+ let p = Number.parseInt(e.version) >= 19, m = e.forwardRef((i, l) => {
136
+ let m = e.useRef(null), h = e.useRef(/* @__PURE__ */ new Map()), g = {}, _ = {}, v = {}, y = {};
137
+ for (let [e, t] of Object.entries(i)) {
138
+ if (s.has(e)) {
139
+ v[e] = t;
140
+ continue;
141
+ }
142
+ let r = o(c[e] ?? e);
143
+ if (e in n.prototype && !(e in (globalThis.HTMLElement?.prototype ?? {})) && !n.observedAttributes?.some((e) => e === r)) {
144
+ y[e] = t;
145
+ continue;
146
+ }
147
+ if (e.startsWith("on")) {
148
+ g[e] = t;
149
+ continue;
150
+ }
151
+ let i = d(t);
152
+ r && i != null && (_[r] = String(i), p || (v[r] = i)), r && p && (i === u(t) ? v[r] = t : v[r] = i);
153
+ }
154
+ if (typeof window < "u") {
155
+ for (let t in g) {
156
+ let n = g[t], i = t.endsWith("Capture"), a = (r?.[t] ?? t.slice(2).toLowerCase()).slice(0, i ? -7 : void 0);
157
+ e.useLayoutEffect(() => {
158
+ let e = m?.current;
159
+ if (!(!e || typeof n != "function")) return e.addEventListener(a, n, i), () => {
160
+ e.removeEventListener(a, n, i);
161
+ };
162
+ }, [m?.current, n]);
163
+ }
164
+ e.useLayoutEffect(() => {
165
+ if (m.current === null) return;
166
+ let e = /* @__PURE__ */ new Map();
167
+ for (let t in y) f(m.current, t, y[t]), h.current.delete(t), e.set(t, y[t]);
168
+ for (let [e, t] of h.current) f(m.current, e, void 0);
169
+ h.current = e;
170
+ });
171
+ }
172
+ if (typeof window > "u" && n?.getTemplateHTML && n?.shadowRootOptions) {
173
+ let { mode: t, delegatesFocus: r } = n.shadowRootOptions;
174
+ v.children = [e.createElement("template", {
175
+ shadowrootmode: t,
176
+ shadowrootdelegatesfocus: r,
177
+ dangerouslySetInnerHTML: { __html: n.getTemplateHTML(_, i) }
178
+ }), v.children];
179
+ }
180
+ return e.createElement(t, {
181
+ ...a,
182
+ ...v,
183
+ ref: e.useCallback((e) => {
184
+ m.current = e, typeof l == "function" ? l(e) : l !== null && (l.current = e);
185
+ }, [l])
186
+ });
187
+ });
188
+ return m.displayName = i ?? n.name, m;
189
+ }
190
+ function f(e, t, n) {
191
+ e[t] = n, n == null && t in (globalThis.HTMLElement?.prototype ?? {}) && e.removeAttribute(t);
192
+ }
193
+ var p = d({
194
+ react: t,
195
+ tagName: "hls-video",
196
+ elementClass: o,
197
+ toAttributeName(e) {
198
+ return e === "muted" ? "" : e === "defaultMuted" ? "muted" : l(e);
199
+ }
200
+ });
201
+ //#endregion
202
+ export { p as default };