import { b as e, c as t, d as n, e as r, f as i, g as a, h as o } from "./chunk.BlbRoQQ3.js";
import { a6 as s } from "./use-page-data.Cb2SuuwJ.js";
import "./chunk-LSPN22SI.D75E3zS-.js";
import { c } from "./twind.BiM9xcCd.js";
import { b as l } from "./jsx-runtime.DF4K5VCp.js";
import "./chroma-js.Dcir27CH.js";
import "./color-system.Dp99zR0T.js";
import "./react.BZZIbN3T.js";
import "./schema-resolver.p7B_pu36.js";
import "./react-is.DZ6rX8e9.js";
import { b as u } from "./use-brick-style.DDPl-_C1.js";
import "./use-brick-manifest.Iv9SG-7-.js";
import { b as d, c as f } from "./patterns.CVV2epWU.js";
import { b as p } from "./cjs.S1Glohke.js";
import { b as m } from "./prop-types.BaEF44_C.js";
import { b as h } from "./BrickRoot.DbISziyH.js";
var g = /* @__PURE__ */ e(((exports, t) => {
	var n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, i = Object.getOwnPropertyNames, o = Object.prototype.hasOwnProperty, s = (e, t) => {
		for (var r in t) n(e, r, {
			get: t[r],
			enumerable: !0
		});
	}, c = (e, t, a, s) => {
		if (t && typeof t == "object" || typeof t == "function") for (let c of i(t)) !o.call(e, c) && c !== a && n(e, c, {
			get: () => t[c],
			enumerable: !(s = r(t, c)) || s.enumerable
		});
		return e;
	}, l = (e) => c(n({}, "__esModule", { value: !0 }), e), u = {};
	s(u, { default: () => h }), t.exports = l(u);
	var p = f(), m = d(), h = [
		{
			key: "youtube",
			name: "YouTube",
			canPlay: m.canPlay.youtube,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerYouTube' */
				"./YouTube.D2Got9Av.js"
).then(a()))
		},
		{
			key: "soundcloud",
			name: "SoundCloud",
			canPlay: m.canPlay.soundcloud,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerSoundCloud' */
				"./SoundCloud.Bq8OkdYm.js"
).then(a()))
		},
		{
			key: "vimeo",
			name: "Vimeo",
			canPlay: m.canPlay.vimeo,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerVimeo' */
				"./Vimeo.CBTVCnbi.js"
).then(a()))
		},
		{
			key: "mux",
			name: "Mux",
			canPlay: m.canPlay.mux,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerMux' */
				"./Mux.C3jiDfUK.js"
).then(a()))
		},
		{
			key: "facebook",
			name: "Facebook",
			canPlay: m.canPlay.facebook,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerFacebook' */
				"./Facebook.UTifWtkl.js"
).then(a()))
		},
		{
			key: "streamable",
			name: "Streamable",
			canPlay: m.canPlay.streamable,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerStreamable' */
				"./Streamable.DJ2ofh-c.js"
).then(a()))
		},
		{
			key: "wistia",
			name: "Wistia",
			canPlay: m.canPlay.wistia,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerWistia' */
				"./Wistia.BBV15ujo.js"
).then(a()))
		},
		{
			key: "twitch",
			name: "Twitch",
			canPlay: m.canPlay.twitch,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerTwitch' */
				"./Twitch.CbkEiTbZ.js"
).then(a()))
		},
		{
			key: "dailymotion",
			name: "DailyMotion",
			canPlay: m.canPlay.dailymotion,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerDailyMotion' */
				"./DailyMotion.J8G993qw.js"
).then(a()))
		},
		{
			key: "mixcloud",
			name: "Mixcloud",
			canPlay: m.canPlay.mixcloud,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerMixcloud' */
				"./Mixcloud.DcUu_YRQ.js"
).then(a()))
		},
		{
			key: "vidyard",
			name: "Vidyard",
			canPlay: m.canPlay.vidyard,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerVidyard' */
				"./Vidyard.CgSgkhL5.js"
).then(a()))
		},
		{
			key: "kaltura",
			name: "Kaltura",
			canPlay: m.canPlay.kaltura,
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerKaltura' */
				"./Kaltura.DphFYkNU.js"
).then(a()))
		},
		{
			key: "file",
			name: "FilePlayer",
			canPlay: m.canPlay.file,
			canEnablePIP: (e) => m.canPlay.file(e) && (document.pictureInPictureEnabled || (0, p.supportsWebKitPresentationMode)()) && !m.AUDIO_EXTENSIONS.test(e),
			lazyPlayer: (0, p.lazy)(() => import(
				/* webpackChunkName: 'reactPlayerFilePlayer' */
				"./FilePlayer.BRcfPyeT.js"
).then(a()))
		}
	];
})), _ = {};
n(_, { default: () => b });
function v(e, t) {
	return !!(e === t || x(e) && x(t));
}
function y(e, t) {
	if (e.length !== t.length) return !1;
	for (var n = 0; n < e.length; n++) if (!v(e[n], t[n])) return !1;
	return !0;
}
function b(e, t) {
	t === void 0 && (t = y);
	var n, r = [], i, a = !1;
	function o() {
		var o = [...arguments];
		return a && n === this && t(o, r) ? i : (i = e.apply(this, o), a = !0, n = this, r = o, i);
	}
	return o;
}
var x, S = t((() => {
	x = Number.isNaN || function(e) {
		return typeof e == "number" && e !== e;
	};
})), C = /* @__PURE__ */ e(((exports, t) => {
	var n = typeof Element < "u", r = typeof Map == "function", i = typeof Set == "function", a = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
	function o(e, t) {
		if (e === t) return !0;
		if (e && t && typeof e == "object" && typeof t == "object") {
			if (e.constructor !== t.constructor) return !1;
			var s, c, l;
			if (Array.isArray(e)) {
				if (s = e.length, s != t.length) return !1;
				for (c = s; c-- !== 0;) if (!o(e[c], t[c])) return !1;
				return !0;
			}
			var u;
			if (r && e instanceof Map && t instanceof Map) {
				if (e.size !== t.size) return !1;
				for (u = e.entries(); !(c = u.next()).done;) if (!t.has(c.value[0])) return !1;
				for (u = e.entries(); !(c = u.next()).done;) if (!o(c.value[1], t.get(c.value[0]))) return !1;
				return !0;
			}
			if (i && e instanceof Set && t instanceof Set) {
				if (e.size !== t.size) return !1;
				for (u = e.entries(); !(c = u.next()).done;) if (!t.has(c.value[0])) return !1;
				return !0;
			}
			if (a && ArrayBuffer.isView(e) && ArrayBuffer.isView(t)) {
				if (s = e.length, s != t.length) return !1;
				for (c = s; c-- !== 0;) if (e[c] !== t[c]) return !1;
				return !0;
			}
			if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
			if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof t.valueOf == "function") return e.valueOf() === t.valueOf();
			if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof t.toString == "function") return e.toString() === t.toString();
			if (l = Object.keys(e), s = l.length, s !== Object.keys(t).length) return !1;
			for (c = s; c-- !== 0;) if (!Object.prototype.hasOwnProperty.call(t, l[c])) return !1;
			if (n && e instanceof Element) return !1;
			for (c = s; c-- !== 0;) if (!((l[c] === "_owner" || l[c] === "__v" || l[c] === "__o") && e.$$typeof) && !o(e[l[c]], t[l[c]])) return !1;
			return !0;
		}
		return e !== e && t !== t;
	}
	t.exports = function(e, t) {
		try {
			return o(e, t);
		} catch (e) {
			if ((e.message || "").match(/stack|recursion/i)) return console.warn("react-fast-compare cannot handle circular refs"), !1;
			throw e;
		}
	};
})), w = /* @__PURE__ */ e(((exports, t) => {
	var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.getPrototypeOf, s = Object.prototype.hasOwnProperty, c = (e, t) => {
		for (var n in t) r(e, n, {
			get: t[n],
			enumerable: !0
		});
	}, l = (e, t, n, o) => {
		if (t && typeof t == "object" || typeof t == "function") for (let c of a(t)) !s.call(e, c) && c !== n && r(e, c, {
			get: () => t[c],
			enumerable: !(o = i(t, c)) || o.enumerable
		});
		return e;
	}, u = (e, t, i) => (i = e == null ? {} : n(o(e)), l(t || !e || !e.__esModule ? r(i, "default", {
		value: e,
		enumerable: !0
	}) : i, e)), d = (e) => l(r({}, "__esModule", { value: !0 }), e), f = {};
	c(f, {
		defaultProps: () => E,
		propTypes: () => w
	}), t.exports = d(f);
	var p = u(m());
	let { string: h, bool: g, number: _, array: v, oneOfType: y, shape: b, object: x, func: S, node: C } = p.default, w = {
		url: y([
			h,
			v,
			x
		]),
		playing: g,
		loop: g,
		controls: g,
		volume: _,
		muted: g,
		playbackRate: _,
		width: y([h, _]),
		height: y([h, _]),
		style: x,
		progressInterval: _,
		playsinline: g,
		pip: g,
		stopOnUnmount: g,
		light: y([
			g,
			h,
			x
		]),
		playIcon: C,
		previewTabIndex: _,
		previewAriaLabel: h,
		fallback: C,
		oEmbedUrl: h,
		wrapper: y([
			h,
			S,
			b({ render: S.isRequired })
		]),
		config: b({
			soundcloud: b({ options: x }),
			youtube: b({
				playerVars: x,
				embedOptions: x,
				onUnstarted: S
			}),
			facebook: b({
				appId: h,
				version: h,
				playerId: h,
				attributes: x
			}),
			dailymotion: b({ params: x }),
			vimeo: b({
				playerOptions: x,
				title: h
			}),
			mux: b({
				attributes: x,
				version: h
			}),
			file: b({
				attributes: x,
				tracks: v,
				forceVideo: g,
				forceAudio: g,
				forceHLS: g,
				forceSafariHLS: g,
				forceDisableHls: g,
				forceDASH: g,
				forceFLV: g,
				hlsOptions: x,
				hlsVersion: h,
				dashVersion: h,
				flvVersion: h
			}),
			wistia: b({
				options: x,
				playerId: h,
				customControls: v
			}),
			mixcloud: b({ options: x }),
			twitch: b({
				options: x,
				playerId: h
			}),
			vidyard: b({ options: x })
		}),
		onReady: S,
		onStart: S,
		onPlay: S,
		onPause: S,
		onBuffer: S,
		onBufferEnd: S,
		onEnded: S,
		onError: S,
		onDuration: S,
		onSeek: S,
		onPlaybackRateChange: S,
		onPlaybackQualityChange: S,
		onProgress: S,
		onClickPreview: S,
		onEnablePIP: S,
		onDisablePIP: S
	}, T = () => {}, E = {
		playing: !1,
		loop: !1,
		controls: !1,
		volume: null,
		muted: !1,
		playbackRate: 1,
		width: "640px",
		height: "360px",
		style: {},
		progressInterval: 1e3,
		playsinline: !1,
		pip: !1,
		stopOnUnmount: !0,
		light: !1,
		fallback: null,
		wrapper: "div",
		previewTabIndex: 0,
		previewAriaLabel: "",
		oEmbedUrl: "https://noembed.com/embed?url={url}",
		config: {
			soundcloud: { options: {
				visual: !0,
				buying: !1,
				liking: !1,
				download: !1,
				sharing: !1,
				show_comments: !1,
				show_playcount: !1
			} },
			youtube: {
				playerVars: {
					playsinline: 1,
					showinfo: 0,
					rel: 0,
					iv_load_policy: 3,
					modestbranding: 1
				},
				embedOptions: {},
				onUnstarted: T
			},
			facebook: {
				appId: "1309697205772819",
				version: "v3.3",
				playerId: null,
				attributes: {}
			},
			dailymotion: { params: {
				api: 1,
				"endscreen-enable": !1
			} },
			vimeo: {
				playerOptions: {
					autopause: !1,
					byline: !1,
					portrait: !1,
					title: !1
				},
				title: null
			},
			mux: {
				attributes: {},
				version: "2"
			},
			file: {
				attributes: {},
				tracks: [],
				forceVideo: !1,
				forceAudio: !1,
				forceHLS: !1,
				forceDASH: !1,
				forceFLV: !1,
				hlsOptions: {},
				hlsVersion: "1.1.4",
				dashVersion: "3.1.3",
				flvVersion: "1.5.0",
				forceDisableHls: !1
			},
			wistia: {
				options: {},
				playerId: null,
				customControls: null
			},
			mixcloud: { options: { hide_cover: 1 } },
			twitch: {
				options: {},
				playerId: null
			},
			vidyard: { options: {} }
		},
		onReady: T,
		onStart: T,
		onPlay: T,
		onPause: T,
		onBuffer: T,
		onBufferEnd: T,
		onEnded: T,
		onError: T,
		onDuration: T,
		onSeek: T,
		onPlaybackRateChange: T,
		onPlaybackQualityChange: T,
		onProgress: T,
		onClickPreview: T,
		onEnablePIP: T,
		onDisablePIP: T
	};
})), T = /* @__PURE__ */ e(((exports, t) => {
	var n = Object.create, i = Object.defineProperty, a = Object.getOwnPropertyDescriptor, o = Object.getOwnPropertyNames, s = Object.getPrototypeOf, c = Object.prototype.hasOwnProperty, l = (e, t, n) => t in e ? i(e, t, {
		enumerable: !0,
		configurable: !0,
		writable: !0,
		value: n
	}) : e[t] = n, u = (e, t) => {
		for (var n in t) i(e, n, {
			get: t[n],
			enumerable: !0
		});
	}, d = (e, t, n, r) => {
		if (t && typeof t == "object" || typeof t == "function") for (let s of o(t)) !c.call(e, s) && s !== n && i(e, s, {
			get: () => t[s],
			enumerable: !(r = a(t, s)) || r.enumerable
		});
		return e;
	}, p = (e, t, r) => (r = e == null ? {} : n(s(e)), d(t || !e || !e.__esModule ? i(r, "default", {
		value: e,
		enumerable: !0
	}) : r, e)), m = (e) => d(i({}, "__esModule", { value: !0 }), e), h = (e, t, n) => (l(e, typeof t == "symbol" ? t : t + "", n), n), g = {};
	u(g, { default: () => x }), t.exports = m(g);
	var _ = p(r("react")), v = p(C()), y = w(), b = f(), x = class extends _.Component {
		constructor() {
			super(...arguments), h(this, "mounted", !1), h(this, "isReady", !1), h(this, "isPlaying", !1), h(this, "isLoading", !0), h(this, "loadOnReady", null), h(this, "startOnPlay", !0), h(this, "seekOnPlay", null), h(this, "onDurationCalled", !1), h(this, "handlePlayerMount", (e) => {
				if (this.player) {
					this.progress();
					return;
				}
				this.player = e, this.player.load(this.props.url), this.progress();
			}), h(this, "getInternalPlayer", (e) => this.player ? this.player[e] : null), h(this, "progress", () => {
				if (this.props.url && this.player && this.isReady) {
					let e = this.getCurrentTime() || 0, t = this.getSecondsLoaded(), n = this.getDuration();
					if (n) {
						let r = {
							playedSeconds: e,
							played: e / n
						};
						t !== null && (r.loadedSeconds = t, r.loaded = t / n), (r.playedSeconds !== this.prevPlayed || r.loadedSeconds !== this.prevLoaded) && this.props.onProgress(r), this.prevPlayed = r.playedSeconds, this.prevLoaded = r.loadedSeconds;
					}
				}
				this.progressTimeout = setTimeout(this.progress, this.props.progressFrequency || this.props.progressInterval);
			}), h(this, "handleReady", () => {
				if (!this.mounted) return;
				this.isReady = !0, this.isLoading = !1;
				let { onReady: e, playing: t, volume: n, muted: r } = this.props;
				e(), !r && n !== null && this.player.setVolume(n), this.loadOnReady ? (this.player.load(this.loadOnReady, !0), this.loadOnReady = null) : t && this.player.play(), this.handleDurationCheck();
			}), h(this, "handlePlay", () => {
				this.isPlaying = !0, this.isLoading = !1;
				let { onStart: e, onPlay: t, playbackRate: n } = this.props;
				this.startOnPlay &&= (this.player.setPlaybackRate && n !== 1 && this.player.setPlaybackRate(n), e(), !1), t(), this.seekOnPlay &&= (this.seekTo(this.seekOnPlay), null), this.handleDurationCheck();
			}), h(this, "handlePause", (e) => {
				this.isPlaying = !1, this.isLoading || this.props.onPause(e);
			}), h(this, "handleEnded", () => {
				let { activePlayer: e, loop: t, onEnded: n } = this.props;
				e.loopOnEnded && t && this.seekTo(0), t || (this.isPlaying = !1, n());
			}), h(this, "handleError", (...e) => {
				this.isLoading = !1, this.props.onError(...e);
			}), h(this, "handleDurationCheck", () => {
				clearTimeout(this.durationCheckTimeout);
				let e = this.getDuration();
				e ? this.onDurationCalled ||= (this.props.onDuration(e), !0) : this.durationCheckTimeout = setTimeout(this.handleDurationCheck, 100);
			}), h(this, "handleLoaded", () => {
				this.isLoading = !1;
			});
		}
		componentDidMount() {
			this.mounted = !0;
		}
		componentWillUnmount() {
			clearTimeout(this.progressTimeout), clearTimeout(this.durationCheckTimeout), this.isReady && this.props.stopOnUnmount && (this.player.stop(), this.player.disablePIP && this.player.disablePIP()), this.mounted = !1;
		}
		componentDidUpdate(e) {
			if (!this.player) return;
			let { url: t, playing: n, volume: r, muted: i, playbackRate: a, pip: o, loop: s, activePlayer: c, disableDeferredLoading: l } = this.props;
			if (!(0, v.default)(e.url, t)) {
				if (this.isLoading && !c.forceLoad && !l && !(0, b.isMediaStream)(t)) {
					console.warn(`ReactPlayer: the attempt to load ${t} is being deferred until the player has loaded`), this.loadOnReady = t;
					return;
				}
				this.isLoading = !0, this.startOnPlay = !0, this.onDurationCalled = !1, this.player.load(t, this.isReady);
			}
			!e.playing && n && !this.isPlaying && this.player.play(), e.playing && !n && this.isPlaying && this.player.pause(), !e.pip && o && this.player.enablePIP && this.player.enablePIP(), e.pip && !o && this.player.disablePIP && this.player.disablePIP(), e.volume !== r && r !== null && this.player.setVolume(r), e.muted !== i && (i ? this.player.mute() : (this.player.unmute(), r !== null && setTimeout(() => this.player.setVolume(r)))), e.playbackRate !== a && this.player.setPlaybackRate && this.player.setPlaybackRate(a), e.loop !== s && this.player.setLoop && this.player.setLoop(s);
		}
		getDuration() {
			return this.isReady ? this.player.getDuration() : null;
		}
		getCurrentTime() {
			return this.isReady ? this.player.getCurrentTime() : null;
		}
		getSecondsLoaded() {
			return this.isReady ? this.player.getSecondsLoaded() : null;
		}
		seekTo(e, t, n) {
			if (!this.isReady) {
				e !== 0 && (this.seekOnPlay = e, setTimeout(() => {
					this.seekOnPlay = null;
				}, 5e3));
				return;
			}
			let r = t ? t === "fraction" : e > 0 && e < 1;
			if (r) {
				let t = this.player.getDuration();
				if (!t) {
					console.warn("ReactPlayer: could not seek using fraction –\xA0duration not yet available");
					return;
				}
				this.player.seekTo(t * e, n);
				return;
			}
			this.player.seekTo(e, n);
		}
		render() {
			let e = this.props.activePlayer;
			return e ? /* @__PURE__ */ _.default.createElement(e, {
				...this.props,
				onMount: this.handlePlayerMount,
				onReady: this.handleReady,
				onPlay: this.handlePlay,
				onPause: this.handlePause,
				onEnded: this.handleEnded,
				onLoaded: this.handleLoaded,
				onError: this.handleError
			}) : null;
		}
	};
	h(x, "displayName", "Player"), h(x, "propTypes", y.propTypes), h(x, "defaultProps", y.defaultProps);
})), E = /* @__PURE__ */ e(((exports, t) => {
	var n = Object.create, o = Object.defineProperty, s = Object.getOwnPropertyDescriptor, c = Object.getOwnPropertyNames, l = Object.getPrototypeOf, u = Object.prototype.hasOwnProperty, d = (e, t, n) => t in e ? o(e, t, {
		enumerable: !0,
		configurable: !0,
		writable: !0,
		value: n
	}) : e[t] = n, m = (e, t) => {
		for (var n in t) o(e, n, {
			get: t[n],
			enumerable: !0
		});
	}, h = (e, t, n, r) => {
		if (t && typeof t == "object" || typeof t == "function") for (let i of c(t)) !u.call(e, i) && i !== n && o(e, i, {
			get: () => t[i],
			enumerable: !(r = s(t, i)) || r.enumerable
		});
		return e;
	}, g = (e, t, r) => (r = e == null ? {} : n(l(e)), h(t || !e || !e.__esModule ? o(r, "default", {
		value: e,
		enumerable: !0
	}) : r, e)), v = (e) => h(o({}, "__esModule", { value: !0 }), e), y = (e, t, n) => (d(e, typeof t == "symbol" ? t : t + "", n), n), b = {};
	m(b, { createReactPlayer: () => R }), t.exports = v(b);
	var x = g(r("react")), E = g(p()), D = g((S(), i(_))), O = g(C()), k = w(), A = f(), j = g(T());
	let M = (0, A.lazy)(() => import(
		/* webpackChunkName: 'reactPlayerPreview' */
		"./Preview.DY-xtFyd.js"
).then(a())), N = typeof window < "u" && window.document && typeof document < "u", P = typeof global < "u" && global.window && global.window.document, F = Object.keys(k.propTypes), I = N || P ? x.Suspense : () => null, L = [], R = (e, t) => {
		var n;
		return n = class extends x.Component {
			constructor() {
				super(...arguments), y(this, "state", { showPreview: !!this.props.light }), y(this, "references", {
					wrapper: (e) => {
						this.wrapper = e;
					},
					player: (e) => {
						this.player = e;
					}
				}), y(this, "handleClickPreview", (e) => {
					this.setState({ showPreview: !1 }), this.props.onClickPreview(e);
				}), y(this, "showPreview", () => {
					this.setState({ showPreview: !0 });
				}), y(this, "getDuration", () => this.player ? this.player.getDuration() : null), y(this, "getCurrentTime", () => this.player ? this.player.getCurrentTime() : null), y(this, "getSecondsLoaded", () => this.player ? this.player.getSecondsLoaded() : null), y(this, "getInternalPlayer", (e = "player") => this.player ? this.player.getInternalPlayer(e) : null), y(this, "seekTo", (e, t, n) => {
					if (!this.player) return null;
					this.player.seekTo(e, t, n);
				}), y(this, "handleReady", () => {
					this.props.onReady(this);
				}), y(this, "getActivePlayer", (0, D.default)((n) => {
					for (let t of [...L, ...e]) if (t.canPlay(n)) return t;
					return t || null;
				})), y(this, "getConfig", (0, D.default)((e, t) => {
					let { config: n } = this.props;
					return E.default.all([
						k.defaultProps.config,
						k.defaultProps.config[t] || {},
						n,
						n[t] || {}
					]);
				})), y(this, "getAttributes", (0, D.default)((e) => (0, A.omit)(this.props, F))), y(this, "renderActivePlayer", (e) => {
					if (!e) return null;
					let t = this.getActivePlayer(e);
					if (!t) return null;
					let n = this.getConfig(e, t.key);
					return /* @__PURE__ */ x.default.createElement(j.default, {
						...this.props,
						key: t.key,
						ref: this.references.player,
						config: n,
						activePlayer: t.lazyPlayer || t,
						onReady: this.handleReady
					});
				});
			}
			shouldComponentUpdate(e, t) {
				return !(0, O.default)(this.props, e) || !(0, O.default)(this.state, t);
			}
			componentDidUpdate(e) {
				let { light: t } = this.props;
				!e.light && t && this.setState({ showPreview: !0 }), e.light && !t && this.setState({ showPreview: !1 });
			}
			renderPreview(e) {
				if (!e) return null;
				let { light: t, playIcon: n, previewTabIndex: r, oEmbedUrl: i, previewAriaLabel: a } = this.props;
				return /* @__PURE__ */ x.default.createElement(M, {
					url: e,
					light: t,
					playIcon: n,
					previewTabIndex: r,
					previewAriaLabel: a,
					oEmbedUrl: i,
					onClick: this.handleClickPreview
				});
			}
			render() {
				let { url: e, style: t, width: n, height: r, fallback: i, wrapper: a } = this.props, { showPreview: o } = this.state, s = this.getAttributes(e), c = typeof a == "string" ? this.references.wrapper : void 0;
				return /* @__PURE__ */ x.default.createElement(a, {
					ref: c,
					style: {
						...t,
						width: n,
						height: r
					},
					...s
				}, /* @__PURE__ */ x.default.createElement(I, { fallback: i }, o ? this.renderPreview(e) : this.renderActivePlayer(e)));
			}
		}, y(n, "displayName", "ReactPlayer"), y(n, "propTypes", k.propTypes), y(n, "defaultProps", k.defaultProps), y(n, "addCustomPlayer", (e) => {
			L.push(e);
		}), y(n, "removeCustomPlayers", () => {
			L.length = 0;
		}), y(n, "canPlay", (t) => {
			for (let n of [...L, ...e]) if (n.canPlay(t)) return !0;
			return !1;
		}), y(n, "canEnablePIP", (t) => {
			for (let n of [...L, ...e]) if (n.canEnablePIP && n.canEnablePIP(t)) return !0;
			return !1;
		}), n;
	};
})), D = /* @__PURE__ */ e(((exports, t) => {
	var n = Object.create, r = Object.defineProperty, i = Object.getOwnPropertyDescriptor, a = Object.getOwnPropertyNames, o = Object.getPrototypeOf, s = Object.prototype.hasOwnProperty, c = (e, t) => {
		for (var n in t) r(e, n, {
			get: t[n],
			enumerable: !0
		});
	}, l = (e, t, n, o) => {
		if (t && typeof t == "object" || typeof t == "function") for (let c of a(t)) !s.call(e, c) && c !== n && r(e, c, {
			get: () => t[c],
			enumerable: !(o = i(t, c)) || o.enumerable
		});
		return e;
	}, u = (e, t, i) => (i = e == null ? {} : n(o(e)), l(t || !e || !e.__esModule ? r(i, "default", {
		value: e,
		enumerable: !0
	}) : i, e)), d = (e) => l(r({}, "__esModule", { value: !0 }), e), f = {};
	c(f, { default: () => _ }), t.exports = d(f);
	var p = u(g()), m = E();
	let h = p.default[p.default.length - 1];
	var _ = (0, m.createReactPlayer)(p.default, h);
})), O = /* @__PURE__ */ o(D()), k = /* @__PURE__ */ o(l());
function A({ brick: e, editable: t }) {
	let n = u(e), r = e.props;
	return /* @__PURE__ */ (0, k.jsxs)(h, {
		brick: e,
		editable: t,
		manifest: s,
		className: c("relative", Object.values(n)),
		children: [t && /* @__PURE__ */ (0, k.jsx)("div", { className: "absolute inset-0" }), /* @__PURE__ */ (0, k.jsx)(O.default, {
			url: r.url,
			width: "100%",
			height: "100%"
		})]
	});
}
export { A as default };

//# sourceMappingURL=video.D3i_FUxI.js.map