import { S as L, A as K, d as Xe, O as We } from "./Env-92498313.mjs";
import me from "dompurify";
import J from "classnames";
import a, { useMemo as q, useRef as Mt, useState as _t, useEffect as It } from "react";
import { c as O } from "./merge-78dc87d6.mjs";
import { L as D, N as Ye } from "./index-35107a02.mjs";
import { L as qe } from "./LauncherDownloadButton-8a06bc87.mjs";
import { LoginWidget as Ke } from "./login.mjs";
import { h as ye, t as Pt } from "./useRoutes-367960a3.mjs";
import { Trans as j } from "react-i18next";
import { U as G } from "./UrlUtils-1bad2fa2.mjs";
import { u as Te, a as Je } from "./index-28007ca6.mjs";
import { H as Dt } from "./HeaderAlerts-ad49aa54.mjs";
import { u as Q } from "./useCompanyLogo-e4bed311.mjs";
import { L as Ht } from "./LanguageSelector-f4c332fb.mjs";
import { Globe as Vt } from "react-feather";
const Ft = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 19", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M20.317 2.15557C18.7873 1.45369 17.147 0.936576 15.4319 0.640403C15.4007 0.634687 15.3695 0.648971 15.3534 0.677541C15.1424 1.05276 14.9087 1.54225 14.7451 1.927C12.9004 1.65083 11.0652 1.65083 9.25832 1.927C9.09465 1.5337 8.85248 1.05276 8.64057 0.677541C8.62449 0.649924 8.59328 0.63564 8.56205 0.640403C6.84791 0.93563 5.20756 1.45275 3.67693 2.15557C3.66368 2.16129 3.65233 2.17082 3.64479 2.18319C0.533392 6.83155 -0.31895 11.3657 0.0991801 15.8436C0.101072 15.8655 0.11337 15.8864 0.130398 15.8997C2.18321 17.4073 4.17171 18.3225 6.12328 18.9291C6.15451 18.9386 6.18761 18.9272 6.20748 18.9015C6.66913 18.2711 7.08064 17.6063 7.43348 16.9073C7.4543 16.8664 7.43442 16.8178 7.39186 16.8016C6.73913 16.554 6.1176 16.2521 5.51973 15.9093C5.47244 15.8816 5.46865 15.814 5.51216 15.7816C5.63797 15.6873 5.76382 15.5893 5.88396 15.4902C5.90569 15.4721 5.93598 15.4683 5.96153 15.4797C9.88928 17.273 14.1415 17.273 18.023 15.4797C18.0485 15.4674 18.0788 15.4712 18.1015 15.4893C18.2216 15.5883 18.3475 15.6873 18.4742 15.7816C18.5177 15.814 18.5149 15.8816 18.4676 15.9093C17.8697 16.2588 17.2482 16.554 16.5945 16.8006C16.552 16.8168 16.533 16.8664 16.5538 16.9073C16.9143 17.6054 17.3258 18.2701 17.7789 18.9005C17.7978 18.9272 17.8319 18.9386 17.8631 18.9291C19.8241 18.3225 21.8126 17.4073 23.8654 15.8997C23.8834 15.8864 23.8948 15.8664 23.8967 15.8445C24.3971 10.6676 23.0585 6.17064 20.3482 2.18414C20.3416 2.17082 20.3303 2.16129 20.317 2.15557ZM8.02002 13.117C6.8375 13.117 5.86313 12.0313 5.86313 10.6981C5.86313 9.36477 6.8186 8.27912 8.02002 8.27912C9.23087 8.27912 10.1958 9.3743 10.1769 10.6981C10.1769 12.0313 9.22141 13.117 8.02002 13.117ZM15.9947 13.117C14.8123 13.117 13.8379 12.0313 13.8379 10.6981C13.8379 9.36477 14.7933 8.27912 15.9947 8.27912C17.2056 8.27912 18.1705 9.3743 18.1516 10.6981C18.1516 12.0313 17.2056 13.117 15.9947 13.117Z",
    fill: `${n || "white"}`
  }
))), Bt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",
    fill: `${n || "white"}`
  }
))), Ut = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M12 2.16094C15.2063 2.16094 15.5859 2.175 16.8469 2.23125C18.0188 2.28281 18.6516 2.47969 19.0734 2.64375C19.6313 2.85938 20.0344 3.12188 20.4516 3.53906C20.8734 3.96094 21.1313 4.35938 21.3469 4.91719C21.5109 5.33906 21.7078 5.97656 21.7594 7.14375C21.8156 8.40937 21.8297 8.78906 21.8297 11.9906C21.8297 15.1969 21.8156 15.5766 21.7594 16.8375C21.7078 18.0094 21.5109 18.6422 21.3469 19.0641C21.1313 19.6219 20.8687 20.025 20.4516 20.4422C20.0297 20.8641 19.6313 21.1219 19.0734 21.3375C18.6516 21.5016 18.0141 21.6984 16.8469 21.75C15.5813 21.8062 15.2016 21.8203 12 21.8203C8.79375 21.8203 8.41406 21.8062 7.15313 21.75C5.98125 21.6984 5.34844 21.5016 4.92656 21.3375C4.36875 21.1219 3.96563 20.8594 3.54844 20.4422C3.12656 20.0203 2.86875 19.6219 2.65313 19.0641C2.48906 18.6422 2.29219 18.0047 2.24063 16.8375C2.18438 15.5719 2.17031 15.1922 2.17031 11.9906C2.17031 8.78438 2.18438 8.40469 2.24063 7.14375C2.29219 5.97187 2.48906 5.33906 2.65313 4.91719C2.86875 4.35938 3.13125 3.95625 3.54844 3.53906C3.97031 3.11719 4.36875 2.85938 4.92656 2.64375C5.34844 2.47969 5.98594 2.28281 7.15313 2.23125C8.41406 2.175 8.79375 2.16094 12 2.16094ZM12 0C8.74219 0 8.33438 0.0140625 7.05469 0.0703125C5.77969 0.126563 4.90313 0.332812 4.14375 0.628125C3.35156 0.9375 2.68125 1.34531 2.01563 2.01562C1.34531 2.68125 0.9375 3.35156 0.628125 4.13906C0.332812 4.90313 0.126563 5.775 0.0703125 7.05C0.0140625 8.33437 0 8.74219 0 12C0 15.2578 0.0140625 15.6656 0.0703125 16.9453C0.126563 18.2203 0.332812 19.0969 0.628125 19.8563C0.9375 20.6484 1.34531 21.3188 2.01563 21.9844C2.68125 22.65 3.35156 23.0625 4.13906 23.3672C4.90313 23.6625 5.775 23.8687 7.05 23.925C8.32969 23.9812 8.7375 23.9953 11.9953 23.9953C15.2531 23.9953 15.6609 23.9812 16.9406 23.925C18.2156 23.8687 19.0922 23.6625 19.8516 23.3672C20.6391 23.0625 21.3094 22.65 21.975 21.9844C22.6406 21.3188 23.0531 20.6484 23.3578 19.8609C23.6531 19.0969 23.8594 18.225 23.9156 16.95C23.9719 15.6703 23.9859 15.2625 23.9859 12.0047C23.9859 8.74688 23.9719 8.33906 23.9156 7.05938C23.8594 5.78438 23.6531 4.90781 23.3578 4.14844C23.0625 3.35156 22.6547 2.68125 21.9844 2.01562C21.3188 1.35 20.6484 0.9375 19.8609 0.632812C19.0969 0.3375 18.225 0.13125 16.95 0.075C15.6656 0.0140625 15.2578 0 12 0Z",
    fill: `${n || "white"}`
  }
), /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M12 5.83594C8.59688 5.83594 5.83594 8.59688 5.83594 12C5.83594 15.4031 8.59688 18.1641 12 18.1641C15.4031 18.1641 18.1641 15.4031 18.1641 12C18.1641 8.59688 15.4031 5.83594 12 5.83594ZM12 15.9984C9.79219 15.9984 8.00156 14.2078 8.00156 12C8.00156 9.79219 9.79219 8.00156 12 8.00156C14.2078 8.00156 15.9984 9.79219 15.9984 12C15.9984 14.2078 14.2078 15.9984 12 15.9984Z",
    fill: `${n || "white"}`
  }
), /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M19.8469 5.59221C19.8469 6.38908 19.2 7.03127 18.4078 7.03127C17.6109 7.03127 16.9688 6.38439 16.9688 5.59221C16.9688 4.79533 17.6156 4.15314 18.4078 4.15314C19.2 4.15314 19.8469 4.80002 19.8469 5.59221Z",
    fill: `${n || "white"}`
  }
))), jt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M22.2234 0H1.77187C0.792187 0 0 0.773438 0 1.72969V22.2656C0 23.2219 0.792187 24 1.77187 24H22.2234C23.2031 24 24 23.2219 24 22.2703V1.72969C24 0.773438 23.2031 0 22.2234 0ZM7.12031 20.4516H3.55781V8.99531H7.12031V20.4516ZM5.33906 7.43438C4.19531 7.43438 3.27188 6.51094 3.27188 5.37187C3.27188 4.23281 4.19531 3.30937 5.33906 3.30937C6.47813 3.30937 7.40156 4.23281 7.40156 5.37187C7.40156 6.50625 6.47813 7.43438 5.33906 7.43438ZM20.4516 20.4516H16.8937V14.8828C16.8937 13.5562 16.8703 11.8453 15.0422 11.8453C13.1906 11.8453 12.9094 13.2937 12.9094 14.7891V20.4516H9.35625V8.99531H12.7687V10.5609H12.8156C13.2891 9.66094 14.4516 8.70938 16.1813 8.70938C19.7859 8.70938 20.4516 11.0813 20.4516 14.1656V20.4516Z",
    fill: `${n || "white"}`
  }
))), zt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    fillRule: "evenodd",
    clipRule: "evenodd",
    d: "M24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12ZM18.2456 10.2456C19.214 10.2456 20 11.0316 20 12C20 12.7158 19.5649 13.3333 18.9895 13.614C19.0175 13.7824 19.0316 13.9509 19.0316 14.1333C19.0316 16.828 15.9018 19.0035 12.0281 19.0035C8.15439 19.0035 5.02457 16.828 5.02457 14.1333C5.02457 13.9509 5.0386 13.7684 5.06667 13.6C4.44913 13.3193 4.02808 12.7158 4.02808 12C4.02808 11.0316 4.81404 10.2456 5.78246 10.2456C6.24562 10.2456 6.68071 10.4421 6.98948 10.7368C8.1965 9.85261 9.86667 9.30524 11.7333 9.2491L12.6176 5.06664C12.6456 4.98243 12.6877 4.91226 12.7579 4.87015C12.8281 4.82805 12.9123 4.81401 12.9965 4.82805L15.9018 5.44559C16.0983 5.02454 16.5193 4.74384 17.0105 4.74384C17.6983 4.74384 18.2597 5.30524 18.2597 5.99296C18.2597 6.68068 17.6983 7.24208 17.0105 7.24208C16.3368 7.24208 15.7895 6.70875 15.7614 6.0491L13.1649 5.50173L12.3649 9.2491C14.1895 9.31928 15.8456 9.88068 17.0386 10.7368C17.3474 10.428 17.7684 10.2456 18.2456 10.2456ZM9.24913 12C8.56141 12 8.00001 12.5614 8.00001 13.2491C8.00001 13.9368 8.56141 14.4982 9.24913 14.4982C9.93685 14.4982 10.4983 13.9368 10.4983 13.2491C10.4983 12.5614 9.93685 12 9.24913 12ZM12.014 17.4596C12.4912 17.4596 14.1193 17.4035 14.9754 16.5473C15.1018 16.421 15.1018 16.2245 15.0035 16.0842C14.8772 15.9579 14.6667 15.9579 14.5404 16.0842C13.993 16.6175 12.8561 16.814 12.0281 16.814C11.2 16.814 10.0491 16.6175 9.5158 16.0842C9.38948 15.9579 9.17895 15.9579 9.05264 16.0842C8.92632 16.2105 8.92632 16.421 9.05264 16.5473C9.89474 17.3895 11.5368 17.4596 12.014 17.4596ZM13.5018 13.2491C13.5018 13.9368 14.0632 14.4982 14.7509 14.4982C15.4386 14.4982 16 13.9368 16 13.2491C16 12.5614 15.4386 12 14.7509 12C14.0632 12 13.5018 12.5614 13.5018 13.2491Z",
    fill: `${n || "white"}`
  }
))), $t = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M17.0725 0H13.0278V16.3478C13.0278 18.2957 11.4722 19.8957 9.53626 19.8957C7.60034 19.8957 6.04469 18.2957 6.04469 16.3478C6.04469 14.4348 7.56577 12.8695 9.43257 12.8V8.69567C5.31872 8.7652 2 12.1391 2 16.3478C2 20.5913 5.38786 24 9.57085 24C13.7538 24 17.1416 20.5565 17.1416 16.3478V7.9652C18.6627 9.07827 20.5295 9.73913 22.5 9.77393V5.66957C19.4579 5.56522 17.0725 3.06087 17.0725 0Z",
    fill: `${n || "white"}`
  }
))), Gt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement("path", { d: "M20.8571 11.1428L17.4285 14.5714H14L11 17.5714V14.5714H7.14282V1.71423H20.8571V11.1428Z", fill: "none" }), /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M6.28571 0L2 4.28571V19.7143H7.14286V24L11.4286 19.7143H14.8571L22.5714 12V0H6.28571ZM20.8571 11.1429L17.4286 14.5714H14L11 17.5714V14.5714H7.14286V1.71429H20.8571V11.1429Z",
    fill: `${n || "white"}`
  }
), /* @__PURE__ */ a.createElement("path", { d: "M18.2858 4.71423H16.5715V9.85709H18.2858V4.71423Z", fill: `${n || "white"}` }), /* @__PURE__ */ a.createElement("path", { d: "M13.5715 4.71423H11.8572V9.85709H13.5715V4.71423Z", fill: `${n || "white"}` }))), Zt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M7.54752 19.7506C16.6042 19.7506 21.5578 12.2473 21.5578 5.7404C21.5578 5.52728 21.5578 5.31512 21.5434 5.10392C22.507 4.40687 23.3389 3.5438 24 2.55512C23.1014 2.95352 22.148 3.21467 21.1718 3.32984C22.1998 2.71453 22.9692 1.74662 23.3366 0.606318C22.3701 1.17993 21.3126 1.58414 20.2099 1.80152C19.4675 1.0121 18.4856 0.489359 17.4162 0.314202C16.3468 0.139046 15.2494 0.321233 14.294 0.832571C13.3385 1.34391 12.5782 2.15589 12.1307 3.14287C11.6833 4.12984 11.5735 5.23678 11.8186 6.2924C9.8609 6.1942 7.94576 5.68543 6.19745 4.79912C4.44915 3.91282 2.90676 2.66878 1.6704 1.14776C1.04073 2.23175 0.847872 3.51499 1.1311 4.73618C1.41433 5.95737 2.15234 7.02471 3.19488 7.72088C2.41123 7.69792 1.64465 7.48651 0.96 7.10456V7.16696C0.960311 8.30381 1.35385 9.40555 2.07387 10.2853C2.79389 11.1651 3.79606 11.7687 4.9104 11.9938C4.18548 12.1916 3.42487 12.2205 2.68704 12.0783C3.00181 13.0566 3.61443 13.9122 4.43924 14.5253C5.26405 15.1384 6.25983 15.4784 7.28736 15.4978C6.26644 16.3003 5.09731 16.8936 3.84687 17.2438C2.59643 17.594 1.28921 17.6943 0 17.5388C2.25183 18.9838 4.87192 19.7503 7.54752 19.7468",
    fill: `${n || "white"}`
  }
))), Xt = ({ className: e, size: t, fill: n }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { width: t, height: t, className: e, viewBox: "0 0 24 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, /* @__PURE__ */ a.createElement(
  "path",
  {
    d: "M23.7609 4.20005C23.7609 4.20005 23.5266 2.54536 22.8047 1.8188C21.8906 0.862549 20.8688 0.857861 20.4 0.801611C17.0438 0.557861 12.0047 0.557861 12.0047 0.557861H11.9953C11.9953 0.557861 6.95625 0.557861 3.6 0.801611C3.13125 0.857861 2.10938 0.862549 1.19531 1.8188C0.473438 2.54536 0.24375 4.20005 0.24375 4.20005C0.24375 4.20005 0 6.14536 0 8.08599V9.90474C0 11.8454 0.239062 13.7907 0.239062 13.7907C0.239062 13.7907 0.473437 15.4454 1.19062 16.1719C2.10469 17.1282 3.30469 17.0954 3.83906 17.1985C5.76094 17.3813 12 17.4375 12 17.4375C12 17.4375 17.0438 17.4282 20.4 17.1891C20.8688 17.1329 21.8906 17.1282 22.8047 16.1719C23.5266 15.4454 23.7609 13.7907 23.7609 13.7907C23.7609 13.7907 24 11.85 24 9.90474V8.08599C24 6.14536 23.7609 4.20005 23.7609 4.20005ZM9.52031 12.1125V5.36724L16.0031 8.75161L9.52031 12.1125Z",
    fill: `${n || "white"}`
  }
)));
const k = "1rem", S = "rgba(var(--od-rgba-secondary))", Re = {
  [L.DISCORD]: /* @__PURE__ */ a.createElement(Ft, { size: k, fill: S }),
  [L.FACEBOOK]: /* @__PURE__ */ a.createElement(Bt, { size: k, fill: S }),
  [L.TWITCH]: /* @__PURE__ */ a.createElement(Gt, { size: k, fill: S }),
  [L.YOUTUBE]: /* @__PURE__ */ a.createElement(Xt, { size: k, fill: S }),
  [L.INSTAGRAM]: /* @__PURE__ */ a.createElement(Ut, { size: k, fill: S }),
  [L.TWITTER]: /* @__PURE__ */ a.createElement(Zt, { size: k, fill: S }),
  [L.REDDIT]: /* @__PURE__ */ a.createElement(zt, { size: k, fill: S }),
  [L.LINKEDIN]: /* @__PURE__ */ a.createElement(jt, { size: k, fill: S }),
  [L.TIKTOK]: /* @__PURE__ */ a.createElement($t, { size: k, fill: S }),
  default: /* @__PURE__ */ a.createElement(Vt, { size: k, color: S })
}, Wt = (e) => ({
  label: e.platform,
  link: e.url,
  icon: Re[e.platform] || Re.default
});
const Qe = ({ logo: e, scrollToTop: t }) => {
  const {
    state: { playerPortalConfigData: n }
  } = Te(), { state: r } = ye(), [o] = Xe(), l = !!(n != null && n.homepage.data.isDisabled), u = n == null ? void 0 : n.homepage.data.siteBrandURL, s = n == null ? void 0 : n.homepage.data.redirectionURL;
  let i = r.home.link, c = !1;
  if (l && o) {
    if (u) {
      const f = G.getRouterRedirection(u, o.baseURL);
      c = !f, i = f || u;
    }
    if (!u && s) {
      const f = G.getRouterRedirection(s, o.baseURL);
      c = !f, i = f || s;
    }
  }
  return c ? /* @__PURE__ */ a.createElement("a", { className: "logo", href: i }, /* @__PURE__ */ a.createElement("img", { src: e, alt: "logo" })) : /* @__PURE__ */ a.createElement(D, { to: i, className: "logo", onClick: t }, /* @__PURE__ */ a.createElement("img", { src: e, alt: "logo", loading: "lazy" }));
}, Yt = ({ socialLink: e, socialUrl: t }) => {
  const n = Wt(e);
  return /* @__PURE__ */ a.createElement("a", { href: t, target: "_blank", rel: "noreferrer", "aria-label": n.label }, n.icon);
}, Br = (e) => {
  const { socialMediaLinks: t, copyright: n, footerDataLinks: r, companyLogoUrl: o, isPaymentPreview: l, isPreviewMode: u, areLinksHidden: s } = e, {
    state: { playerPortalConfigData: i }
  } = Te(), {
    state: { allSocialLinks: c, flags: f, discoveryConfigData: h },
    hasFeature: T
  } = Je(), { state: g } = ye(), { companyLogo: m } = Q(K.PP, "footer"), d = () => {
    const x = i == null ? void 0 : i.footer.data.value.links;
    return x ? x.filter(({ name: B, link: U }) => B && U) : [];
  }, E = (x) => G.isValidUrl2(x, !1) ? x : `https://${x}`, A = () => window.scrollTo({ top: 0, behavior: "smooth" }), v = t || c, R = o || m, V = n || (h == null ? void 0 : h.copyright.data.value), Z = !!(i != null && i.homepage.data.isDisabled), de = r || d(), F = de.length > 0, X = V && F, Nt = q(() => T("isStoreVisible") && g.store, [f, g]), At = q(() => T("isTwitchDropEnabled") && g.twitchDrops, [f, g]), Lt = q(
    () => T("isPlayerPortalSupportVisible") && g.support,
    [f, g]
  );
  return /* @__PURE__ */ a.createElement("footer", { className: "footer" }, !s && !l && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("section", { className: "topSection" }, /* @__PURE__ */ a.createElement("div", { className: "logoContainer" }, R && /* @__PURE__ */ a.createElement(Qe, { logo: R, scrollToTop: A })), /* @__PURE__ */ a.createElement("div", { className: "navLink" }, !Z && /* @__PURE__ */ a.createElement(D, { to: g.home.link, onClick: A }, /* @__PURE__ */ a.createElement(j, { i18nKey: "Navigation.links.home" }, "Home")), (Nt || u) && /* @__PURE__ */ a.createElement(D, { to: g.store.index.link, onClick: A }, /* @__PURE__ */ a.createElement(j, { i18nKey: "Navigation.links.store" }, "Store")), At && /* @__PURE__ */ a.createElement(D, { to: g.twitchDrops.index.link, onClick: A }, /* @__PURE__ */ a.createElement(j, { i18nKey: "Navigation.links.events" }, "Events")), Lt && /* @__PURE__ */ a.createElement(D, { to: g.support.index.link }, /* @__PURE__ */ a.createElement(j, { i18nKey: "Navigation.links.support.title" }, "Support"))), /* @__PURE__ */ a.createElement("div", { className: "socialMediaLink" }, v == null ? void 0 : v.map((x, B) => {
    const U = E(x.url);
    return /* @__PURE__ */ a.createElement(Yt, { key: `social-link-${B}`, socialLink: x, socialUrl: U });
  })))), /* @__PURE__ */ a.createElement("section", { className: "bottomSection" }, /* @__PURE__ */ a.createElement(Ht, { isDisabled: u, onChangeLanguage: e.onChangeLanguage }), /* @__PURE__ */ a.createElement("div", { className: "linkAndCopyright" }, /* @__PURE__ */ a.createElement("p", { className: "copyright" }, V), X && /* @__PURE__ */ a.createElement("span", { className: "divider" }, "|"), F && /* @__PURE__ */ a.createElement("div", { className: "links" }, de.map(({ link: x, id: B, name: U }) => {
    const Rt = E(x);
    return /* @__PURE__ */ a.createElement("a", { key: B, href: Rt, target: "_blank", rel: "noreferrer" }, U);
  })))));
}, qt = ["link", "launcher-download-button", "login-widget", "header-logo", "footer-logo"], Kt = ["class", "to", "text", "id"], et = class {
};
let ee = et;
ee.sanitize = (e, t) => (t ? me.setConfig(t) : me.setConfig({
  ADD_TAGS: qt,
  ADD_ATTR: Kt
}), me.sanitize(et.sanitizeText(e)));
ee.sanitizeText = (e) => {
  const t = /[^\x20-\x7E\t\n\r]/g, n = /\u200b/g;
  return e.replace(t, "").replace(n, "");
};
var we = {}, be = {};
(function(e) {
  Object.defineProperty(e, "__esModule", { value: !0 }), e.Doctype = e.CDATA = e.Tag = e.Style = e.Script = e.Comment = e.Directive = e.Text = e.Root = e.isTag = e.ElementType = void 0;
  var t;
  (function(r) {
    r.Root = "root", r.Text = "text", r.Directive = "directive", r.Comment = "comment", r.Script = "script", r.Style = "style", r.Tag = "tag", r.CDATA = "cdata", r.Doctype = "doctype";
  })(t = e.ElementType || (e.ElementType = {}));
  function n(r) {
    return r.type === t.Tag || r.type === t.Script || r.type === t.Style;
  }
  e.isTag = n, e.Root = t.Root, e.Text = t.Text, e.Directive = t.Directive, e.Comment = t.Comment, e.Script = t.Script, e.Style = t.Style, e.Tag = t.Tag, e.CDATA = t.CDATA, e.Doctype = t.Doctype;
})(be);
var p = {}, M = O && O.__extends || function() {
  var e = function(t, n) {
    return e = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, o) {
      r.__proto__ = o;
    } || function(r, o) {
      for (var l in o)
        Object.prototype.hasOwnProperty.call(o, l) && (r[l] = o[l]);
    }, e(t, n);
  };
  return function(t, n) {
    if (typeof n != "function" && n !== null)
      throw new TypeError("Class extends value " + String(n) + " is not a constructor or null");
    e(t, n);
    function r() {
      this.constructor = t;
    }
    t.prototype = n === null ? Object.create(n) : (r.prototype = n.prototype, new r());
  };
}(), $ = O && O.__assign || function() {
  return $ = Object.assign || function(e) {
    for (var t, n = 1, r = arguments.length; n < r; n++) {
      t = arguments[n];
      for (var o in t)
        Object.prototype.hasOwnProperty.call(t, o) && (e[o] = t[o]);
    }
    return e;
  }, $.apply(this, arguments);
};
Object.defineProperty(p, "__esModule", { value: !0 });
p.cloneNode = p.hasChildren = p.isDocument = p.isDirective = p.isComment = p.isText = p.isCDATA = p.isTag = p.Element = p.Document = p.CDATA = p.NodeWithChildren = p.ProcessingInstruction = p.Comment = p.Text = p.DataNode = p.Node = void 0;
var w = be, xe = (
  /** @class */
  function() {
    function e() {
      this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null;
    }
    return Object.defineProperty(e.prototype, "parentNode", {
      // Read-write aliases for properties
      /**
       * Same as {@link parent}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.parent;
      },
      set: function(t) {
        this.parent = t;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(e.prototype, "previousSibling", {
      /**
       * Same as {@link prev}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.prev;
      },
      set: function(t) {
        this.prev = t;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(e.prototype, "nextSibling", {
      /**
       * Same as {@link next}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.next;
      },
      set: function(t) {
        this.next = t;
      },
      enumerable: !1,
      configurable: !0
    }), e.prototype.cloneNode = function(t) {
      return t === void 0 && (t = !1), ke(this, t);
    }, e;
  }()
);
p.Node = xe;
var ie = (
  /** @class */
  function(e) {
    M(t, e);
    function t(n) {
      var r = e.call(this) || this;
      return r.data = n, r;
    }
    return Object.defineProperty(t.prototype, "nodeValue", {
      /**
       * Same as {@link data}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.data;
      },
      set: function(n) {
        this.data = n;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(xe)
);
p.DataNode = ie;
var tt = (
  /** @class */
  function(e) {
    M(t, e);
    function t() {
      var n = e !== null && e.apply(this, arguments) || this;
      return n.type = w.ElementType.Text, n;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 3;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ie)
);
p.Text = tt;
var nt = (
  /** @class */
  function(e) {
    M(t, e);
    function t() {
      var n = e !== null && e.apply(this, arguments) || this;
      return n.type = w.ElementType.Comment, n;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 8;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ie)
);
p.Comment = nt;
var rt = (
  /** @class */
  function(e) {
    M(t, e);
    function t(n, r) {
      var o = e.call(this, r) || this;
      return o.name = n, o.type = w.ElementType.Directive, o;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 1;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ie)
);
p.ProcessingInstruction = rt;
var ae = (
  /** @class */
  function(e) {
    M(t, e);
    function t(n) {
      var r = e.call(this) || this;
      return r.children = n, r;
    }
    return Object.defineProperty(t.prototype, "firstChild", {
      // Aliases
      /** First child of the node. */
      get: function() {
        var n;
        return (n = this.children[0]) !== null && n !== void 0 ? n : null;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(t.prototype, "lastChild", {
      /** Last child of the node. */
      get: function() {
        return this.children.length > 0 ? this.children[this.children.length - 1] : null;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(t.prototype, "childNodes", {
      /**
       * Same as {@link children}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.children;
      },
      set: function(n) {
        this.children = n;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(xe)
);
p.NodeWithChildren = ae;
var it = (
  /** @class */
  function(e) {
    M(t, e);
    function t() {
      var n = e !== null && e.apply(this, arguments) || this;
      return n.type = w.ElementType.CDATA, n;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 4;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ae)
);
p.CDATA = it;
var at = (
  /** @class */
  function(e) {
    M(t, e);
    function t() {
      var n = e !== null && e.apply(this, arguments) || this;
      return n.type = w.ElementType.Root, n;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 9;
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ae)
);
p.Document = at;
var ot = (
  /** @class */
  function(e) {
    M(t, e);
    function t(n, r, o, l) {
      o === void 0 && (o = []), l === void 0 && (l = n === "script" ? w.ElementType.Script : n === "style" ? w.ElementType.Style : w.ElementType.Tag);
      var u = e.call(this, o) || this;
      return u.name = n, u.attribs = r, u.type = l, u;
    }
    return Object.defineProperty(t.prototype, "nodeType", {
      get: function() {
        return 1;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(t.prototype, "tagName", {
      // DOM Level 1 aliases
      /**
       * Same as {@link name}.
       * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.
       */
      get: function() {
        return this.name;
      },
      set: function(n) {
        this.name = n;
      },
      enumerable: !1,
      configurable: !0
    }), Object.defineProperty(t.prototype, "attributes", {
      get: function() {
        var n = this;
        return Object.keys(this.attribs).map(function(r) {
          var o, l;
          return {
            name: r,
            value: n.attribs[r],
            namespace: (o = n["x-attribsNamespace"]) === null || o === void 0 ? void 0 : o[r],
            prefix: (l = n["x-attribsPrefix"]) === null || l === void 0 ? void 0 : l[r]
          };
        });
      },
      enumerable: !1,
      configurable: !0
    }), t;
  }(ae)
);
p.Element = ot;
function st(e) {
  return (0, w.isTag)(e);
}
p.isTag = st;
function lt(e) {
  return e.type === w.ElementType.CDATA;
}
p.isCDATA = lt;
function ct(e) {
  return e.type === w.ElementType.Text;
}
p.isText = ct;
function ut(e) {
  return e.type === w.ElementType.Comment;
}
p.isComment = ut;
function ft(e) {
  return e.type === w.ElementType.Directive;
}
p.isDirective = ft;
function dt(e) {
  return e.type === w.ElementType.Root;
}
p.isDocument = dt;
function Jt(e) {
  return Object.prototype.hasOwnProperty.call(e, "children");
}
p.hasChildren = Jt;
function ke(e, t) {
  t === void 0 && (t = !1);
  var n;
  if (ct(e))
    n = new tt(e.data);
  else if (ut(e))
    n = new nt(e.data);
  else if (st(e)) {
    var r = t ? pe(e.children) : [], o = new ot(e.name, $({}, e.attribs), r);
    r.forEach(function(i) {
      return i.parent = o;
    }), e.namespace != null && (o.namespace = e.namespace), e["x-attribsNamespace"] && (o["x-attribsNamespace"] = $({}, e["x-attribsNamespace"])), e["x-attribsPrefix"] && (o["x-attribsPrefix"] = $({}, e["x-attribsPrefix"])), n = o;
  } else if (lt(e)) {
    var r = t ? pe(e.children) : [], l = new it(r);
    r.forEach(function(c) {
      return c.parent = l;
    }), n = l;
  } else if (dt(e)) {
    var r = t ? pe(e.children) : [], u = new at(r);
    r.forEach(function(c) {
      return c.parent = u;
    }), e["x-mode"] && (u["x-mode"] = e["x-mode"]), n = u;
  } else if (ft(e)) {
    var s = new rt(e.name, e.data);
    e["x-name"] != null && (s["x-name"] = e["x-name"], s["x-publicId"] = e["x-publicId"], s["x-systemId"] = e["x-systemId"]), n = s;
  } else
    throw new Error("Not implemented yet: ".concat(e.type));
  return n.startIndex = e.startIndex, n.endIndex = e.endIndex, e.sourceCodeLocation != null && (n.sourceCodeLocation = e.sourceCodeLocation), n;
}
p.cloneNode = ke;
function pe(e) {
  for (var t = e.map(function(r) {
    return ke(r, !0);
  }), n = 1; n < t.length; n++)
    t[n].prev = t[n - 1], t[n - 1].next = t[n];
  return t;
}
(function(e) {
  var t = O && O.__createBinding || (Object.create ? function(s, i, c, f) {
    f === void 0 && (f = c);
    var h = Object.getOwnPropertyDescriptor(i, c);
    (!h || ("get" in h ? !i.__esModule : h.writable || h.configurable)) && (h = { enumerable: !0, get: function() {
      return i[c];
    } }), Object.defineProperty(s, f, h);
  } : function(s, i, c, f) {
    f === void 0 && (f = c), s[f] = i[c];
  }), n = O && O.__exportStar || function(s, i) {
    for (var c in s)
      c !== "default" && !Object.prototype.hasOwnProperty.call(i, c) && t(i, s, c);
  };
  Object.defineProperty(e, "__esModule", { value: !0 }), e.DomHandler = void 0;
  var r = be, o = p;
  n(p, e);
  var l = {
    withStartIndices: !1,
    withEndIndices: !1,
    xmlMode: !1
  }, u = (
    /** @class */
    function() {
      function s(i, c, f) {
        this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, typeof c == "function" && (f = c, c = l), typeof i == "object" && (c = i, i = void 0), this.callback = i ?? null, this.options = c ?? l, this.elementCB = f ?? null;
      }
      return s.prototype.onparserinit = function(i) {
        this.parser = i;
      }, s.prototype.onreset = function() {
        this.dom = [], this.root = new o.Document(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null;
      }, s.prototype.onend = function() {
        this.done || (this.done = !0, this.parser = null, this.handleCallback(null));
      }, s.prototype.onerror = function(i) {
        this.handleCallback(i);
      }, s.prototype.onclosetag = function() {
        this.lastNode = null;
        var i = this.tagStack.pop();
        this.options.withEndIndices && (i.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(i);
      }, s.prototype.onopentag = function(i, c) {
        var f = this.options.xmlMode ? r.ElementType.Tag : void 0, h = new o.Element(i, c, void 0, f);
        this.addNode(h), this.tagStack.push(h);
      }, s.prototype.ontext = function(i) {
        var c = this.lastNode;
        if (c && c.type === r.ElementType.Text)
          c.data += i, this.options.withEndIndices && (c.endIndex = this.parser.endIndex);
        else {
          var f = new o.Text(i);
          this.addNode(f), this.lastNode = f;
        }
      }, s.prototype.oncomment = function(i) {
        if (this.lastNode && this.lastNode.type === r.ElementType.Comment) {
          this.lastNode.data += i;
          return;
        }
        var c = new o.Comment(i);
        this.addNode(c), this.lastNode = c;
      }, s.prototype.oncommentend = function() {
        this.lastNode = null;
      }, s.prototype.oncdatastart = function() {
        var i = new o.Text(""), c = new o.CDATA([i]);
        this.addNode(c), i.parent = c, this.lastNode = i;
      }, s.prototype.oncdataend = function() {
        this.lastNode = null;
      }, s.prototype.onprocessinginstruction = function(i, c) {
        var f = new o.ProcessingInstruction(i, c);
        this.addNode(f);
      }, s.prototype.handleCallback = function(i) {
        if (typeof this.callback == "function")
          this.callback(i, this.dom);
        else if (i)
          throw i;
      }, s.prototype.addNode = function(i) {
        var c = this.tagStack[this.tagStack.length - 1], f = c.children[c.children.length - 1];
        this.options.withStartIndices && (i.startIndex = this.parser.startIndex), this.options.withEndIndices && (i.endIndex = this.parser.endIndex), c.children.push(i), f && (i.prev = f, f.next = i), i.parent = c, this.lastNode = null;
      }, s;
    }()
  );
  e.DomHandler = u, e.default = u;
})(we);
var Me = "html", _e = "head", W = "body", Qt = /<([a-zA-Z]+[0-9]?)/, Ie = /<head[^]*>/i, Pe = /<body[^]*>/i, te = function() {
  throw new Error(
    "This browser does not support `document.implementation.createHTMLDocument`"
  );
}, Ce = function() {
  throw new Error(
    "This browser does not support `DOMParser.prototype.parseFromString`"
  );
}, De = typeof window == "object" && window.DOMParser;
if (typeof De == "function") {
  var en = new De(), tn = "text/html";
  Ce = function(e, t) {
    return t && (e = "<" + t + ">" + e + "</" + t + ">"), en.parseFromString(e, tn);
  }, te = Ce;
}
if (typeof document == "object" && document.implementation) {
  var Y = document.implementation.createHTMLDocument();
  te = function(e, t) {
    if (t) {
      var n = Y.documentElement.querySelector(t);
      return n.innerHTML = e, Y;
    }
    return Y.documentElement.innerHTML = e, Y;
  };
}
var he = typeof document == "object" ? document.createElement("template") : {}, Ee;
he.content && (Ee = function(e) {
  return he.innerHTML = e, he.content.childNodes;
});
function nn(e) {
  var t, n = e.match(Qt);
  n && n[1] && (t = n[1].toLowerCase());
  var r, o, l;
  switch (t) {
    case Me:
      return r = Ce(e), Ie.test(e) || (o = r.querySelector(_e), o && o.parentNode.removeChild(o)), Pe.test(e) || (o = r.querySelector(W), o && o.parentNode.removeChild(o)), r.querySelectorAll(Me);
    case _e:
    case W:
      return r = te(e), l = r.querySelectorAll(t), Pe.test(e) && Ie.test(e) ? l[0].parentNode.childNodes : l;
    default:
      return Ee ? Ee(e) : (o = te(e, W).querySelector(W), o.childNodes);
  }
}
var rn = nn, Se = {}, mt = {};
mt.CASE_SENSITIVE_TAG_NAMES = [
  "animateMotion",
  "animateTransform",
  "clipPath",
  "feBlend",
  "feColorMatrix",
  "feComponentTransfer",
  "feComposite",
  "feConvolveMatrix",
  "feDiffuseLighting",
  "feDisplacementMap",
  "feDropShadow",
  "feFlood",
  "feFuncA",
  "feFuncB",
  "feFuncG",
  "feFuncR",
  "feGaussianBlur",
  "feImage",
  "feMerge",
  "feMergeNode",
  "feMorphology",
  "feOffset",
  "fePointLight",
  "feSpecularLighting",
  "feSpotLight",
  "feTile",
  "feTurbulence",
  "foreignObject",
  "linearGradient",
  "radialGradient",
  "textPath"
];
var oe = we, an = mt, He = an.CASE_SENSITIVE_TAG_NAMES, on = oe.Comment, sn = oe.Element, ln = oe.ProcessingInstruction, cn = oe.Text, pt = {}, ve;
for (var ge = 0, un = He.length; ge < un; ge++)
  ve = He[ge], pt[ve.toLowerCase()] = ve;
function fn(e) {
  return pt[e];
}
function ht(e) {
  for (var t = {}, n, r = 0, o = e.length; r < o; r++)
    n = e[r], t[n.name] = n.value;
  return t;
}
function dn(e) {
  e = e.toLowerCase();
  var t = fn(e);
  return t || e;
}
function vt(e, t, n) {
  t = t || null;
  for (var r = [], o, l = 0, u = e.length; l < u; l++) {
    var s = e[l], i;
    switch (s.nodeType) {
      case 1:
        o = dn(s.nodeName), i = new sn(o, ht(s.attributes)), i.children = vt(
          // template children are on content
          o === "template" ? s.content.childNodes : s.childNodes,
          i
        );
        break;
      case 3:
        i = new cn(s.nodeValue);
        break;
      case 8:
        i = new on(s.nodeValue);
        break;
      default:
        continue;
    }
    var c = r[l - 1] || null;
    c && (c.next = i), i.parent = t, i.prev = c, i.next = null, r.push(i);
  }
  return n && (i = new ln(
    n.substring(0, n.indexOf(" ")).toLowerCase(),
    n
  ), i.next = r[0] || null, i.parent = t, r.unshift(i), r[1] && (r[1].prev = r[0])), r;
}
Se.formatAttributes = ht;
Se.formatDOM = vt;
var mn = rn, pn = Se, hn = pn.formatDOM, vn = /<(![a-zA-Z\s]+)>/;
function gn(e) {
  if (typeof e != "string")
    throw new TypeError("First argument must be a string");
  if (e === "")
    return [];
  var t = e.match(vn), n;
  return t && t[1] && (n = t[1]), hn(mn(e), null, n);
}
var Cn = gn, b = {}, se = {}, En = 0;
se.SAME = En;
var yn = 1;
se.CAMELCASE = yn;
se.possibleStandardNames = {
  accept: 0,
  acceptCharset: 1,
  "accept-charset": "acceptCharset",
  accessKey: 1,
  action: 0,
  allowFullScreen: 1,
  alt: 0,
  as: 0,
  async: 0,
  autoCapitalize: 1,
  autoComplete: 1,
  autoCorrect: 1,
  autoFocus: 1,
  autoPlay: 1,
  autoSave: 1,
  capture: 0,
  cellPadding: 1,
  cellSpacing: 1,
  challenge: 0,
  charSet: 1,
  checked: 0,
  children: 0,
  cite: 0,
  class: "className",
  classID: 1,
  className: 1,
  cols: 0,
  colSpan: 1,
  content: 0,
  contentEditable: 1,
  contextMenu: 1,
  controls: 0,
  controlsList: 1,
  coords: 0,
  crossOrigin: 1,
  dangerouslySetInnerHTML: 1,
  data: 0,
  dateTime: 1,
  default: 0,
  defaultChecked: 1,
  defaultValue: 1,
  defer: 0,
  dir: 0,
  disabled: 0,
  disablePictureInPicture: 1,
  disableRemotePlayback: 1,
  download: 0,
  draggable: 0,
  encType: 1,
  enterKeyHint: 1,
  for: "htmlFor",
  form: 0,
  formMethod: 1,
  formAction: 1,
  formEncType: 1,
  formNoValidate: 1,
  formTarget: 1,
  frameBorder: 1,
  headers: 0,
  height: 0,
  hidden: 0,
  high: 0,
  href: 0,
  hrefLang: 1,
  htmlFor: 1,
  httpEquiv: 1,
  "http-equiv": "httpEquiv",
  icon: 0,
  id: 0,
  innerHTML: 1,
  inputMode: 1,
  integrity: 0,
  is: 0,
  itemID: 1,
  itemProp: 1,
  itemRef: 1,
  itemScope: 1,
  itemType: 1,
  keyParams: 1,
  keyType: 1,
  kind: 0,
  label: 0,
  lang: 0,
  list: 0,
  loop: 0,
  low: 0,
  manifest: 0,
  marginWidth: 1,
  marginHeight: 1,
  max: 0,
  maxLength: 1,
  media: 0,
  mediaGroup: 1,
  method: 0,
  min: 0,
  minLength: 1,
  multiple: 0,
  muted: 0,
  name: 0,
  noModule: 1,
  nonce: 0,
  noValidate: 1,
  open: 0,
  optimum: 0,
  pattern: 0,
  placeholder: 0,
  playsInline: 1,
  poster: 0,
  preload: 0,
  profile: 0,
  radioGroup: 1,
  readOnly: 1,
  referrerPolicy: 1,
  rel: 0,
  required: 0,
  reversed: 0,
  role: 0,
  rows: 0,
  rowSpan: 1,
  sandbox: 0,
  scope: 0,
  scoped: 0,
  scrolling: 0,
  seamless: 0,
  selected: 0,
  shape: 0,
  size: 0,
  sizes: 0,
  span: 0,
  spellCheck: 1,
  src: 0,
  srcDoc: 1,
  srcLang: 1,
  srcSet: 1,
  start: 0,
  step: 0,
  style: 0,
  summary: 0,
  tabIndex: 1,
  target: 0,
  title: 0,
  type: 0,
  useMap: 1,
  value: 0,
  width: 0,
  wmode: 0,
  wrap: 0,
  about: 0,
  accentHeight: 1,
  "accent-height": "accentHeight",
  accumulate: 0,
  additive: 0,
  alignmentBaseline: 1,
  "alignment-baseline": "alignmentBaseline",
  allowReorder: 1,
  alphabetic: 0,
  amplitude: 0,
  arabicForm: 1,
  "arabic-form": "arabicForm",
  ascent: 0,
  attributeName: 1,
  attributeType: 1,
  autoReverse: 1,
  azimuth: 0,
  baseFrequency: 1,
  baselineShift: 1,
  "baseline-shift": "baselineShift",
  baseProfile: 1,
  bbox: 0,
  begin: 0,
  bias: 0,
  by: 0,
  calcMode: 1,
  capHeight: 1,
  "cap-height": "capHeight",
  clip: 0,
  clipPath: 1,
  "clip-path": "clipPath",
  clipPathUnits: 1,
  clipRule: 1,
  "clip-rule": "clipRule",
  color: 0,
  colorInterpolation: 1,
  "color-interpolation": "colorInterpolation",
  colorInterpolationFilters: 1,
  "color-interpolation-filters": "colorInterpolationFilters",
  colorProfile: 1,
  "color-profile": "colorProfile",
  colorRendering: 1,
  "color-rendering": "colorRendering",
  contentScriptType: 1,
  contentStyleType: 1,
  cursor: 0,
  cx: 0,
  cy: 0,
  d: 0,
  datatype: 0,
  decelerate: 0,
  descent: 0,
  diffuseConstant: 1,
  direction: 0,
  display: 0,
  divisor: 0,
  dominantBaseline: 1,
  "dominant-baseline": "dominantBaseline",
  dur: 0,
  dx: 0,
  dy: 0,
  edgeMode: 1,
  elevation: 0,
  enableBackground: 1,
  "enable-background": "enableBackground",
  end: 0,
  exponent: 0,
  externalResourcesRequired: 1,
  fill: 0,
  fillOpacity: 1,
  "fill-opacity": "fillOpacity",
  fillRule: 1,
  "fill-rule": "fillRule",
  filter: 0,
  filterRes: 1,
  filterUnits: 1,
  floodOpacity: 1,
  "flood-opacity": "floodOpacity",
  floodColor: 1,
  "flood-color": "floodColor",
  focusable: 0,
  fontFamily: 1,
  "font-family": "fontFamily",
  fontSize: 1,
  "font-size": "fontSize",
  fontSizeAdjust: 1,
  "font-size-adjust": "fontSizeAdjust",
  fontStretch: 1,
  "font-stretch": "fontStretch",
  fontStyle: 1,
  "font-style": "fontStyle",
  fontVariant: 1,
  "font-variant": "fontVariant",
  fontWeight: 1,
  "font-weight": "fontWeight",
  format: 0,
  from: 0,
  fx: 0,
  fy: 0,
  g1: 0,
  g2: 0,
  glyphName: 1,
  "glyph-name": "glyphName",
  glyphOrientationHorizontal: 1,
  "glyph-orientation-horizontal": "glyphOrientationHorizontal",
  glyphOrientationVertical: 1,
  "glyph-orientation-vertical": "glyphOrientationVertical",
  glyphRef: 1,
  gradientTransform: 1,
  gradientUnits: 1,
  hanging: 0,
  horizAdvX: 1,
  "horiz-adv-x": "horizAdvX",
  horizOriginX: 1,
  "horiz-origin-x": "horizOriginX",
  ideographic: 0,
  imageRendering: 1,
  "image-rendering": "imageRendering",
  in2: 0,
  in: 0,
  inlist: 0,
  intercept: 0,
  k1: 0,
  k2: 0,
  k3: 0,
  k4: 0,
  k: 0,
  kernelMatrix: 1,
  kernelUnitLength: 1,
  kerning: 0,
  keyPoints: 1,
  keySplines: 1,
  keyTimes: 1,
  lengthAdjust: 1,
  letterSpacing: 1,
  "letter-spacing": "letterSpacing",
  lightingColor: 1,
  "lighting-color": "lightingColor",
  limitingConeAngle: 1,
  local: 0,
  markerEnd: 1,
  "marker-end": "markerEnd",
  markerHeight: 1,
  markerMid: 1,
  "marker-mid": "markerMid",
  markerStart: 1,
  "marker-start": "markerStart",
  markerUnits: 1,
  markerWidth: 1,
  mask: 0,
  maskContentUnits: 1,
  maskUnits: 1,
  mathematical: 0,
  mode: 0,
  numOctaves: 1,
  offset: 0,
  opacity: 0,
  operator: 0,
  order: 0,
  orient: 0,
  orientation: 0,
  origin: 0,
  overflow: 0,
  overlinePosition: 1,
  "overline-position": "overlinePosition",
  overlineThickness: 1,
  "overline-thickness": "overlineThickness",
  paintOrder: 1,
  "paint-order": "paintOrder",
  panose1: 0,
  "panose-1": "panose1",
  pathLength: 1,
  patternContentUnits: 1,
  patternTransform: 1,
  patternUnits: 1,
  pointerEvents: 1,
  "pointer-events": "pointerEvents",
  points: 0,
  pointsAtX: 1,
  pointsAtY: 1,
  pointsAtZ: 1,
  prefix: 0,
  preserveAlpha: 1,
  preserveAspectRatio: 1,
  primitiveUnits: 1,
  property: 0,
  r: 0,
  radius: 0,
  refX: 1,
  refY: 1,
  renderingIntent: 1,
  "rendering-intent": "renderingIntent",
  repeatCount: 1,
  repeatDur: 1,
  requiredExtensions: 1,
  requiredFeatures: 1,
  resource: 0,
  restart: 0,
  result: 0,
  results: 0,
  rotate: 0,
  rx: 0,
  ry: 0,
  scale: 0,
  security: 0,
  seed: 0,
  shapeRendering: 1,
  "shape-rendering": "shapeRendering",
  slope: 0,
  spacing: 0,
  specularConstant: 1,
  specularExponent: 1,
  speed: 0,
  spreadMethod: 1,
  startOffset: 1,
  stdDeviation: 1,
  stemh: 0,
  stemv: 0,
  stitchTiles: 1,
  stopColor: 1,
  "stop-color": "stopColor",
  stopOpacity: 1,
  "stop-opacity": "stopOpacity",
  strikethroughPosition: 1,
  "strikethrough-position": "strikethroughPosition",
  strikethroughThickness: 1,
  "strikethrough-thickness": "strikethroughThickness",
  string: 0,
  stroke: 0,
  strokeDasharray: 1,
  "stroke-dasharray": "strokeDasharray",
  strokeDashoffset: 1,
  "stroke-dashoffset": "strokeDashoffset",
  strokeLinecap: 1,
  "stroke-linecap": "strokeLinecap",
  strokeLinejoin: 1,
  "stroke-linejoin": "strokeLinejoin",
  strokeMiterlimit: 1,
  "stroke-miterlimit": "strokeMiterlimit",
  strokeWidth: 1,
  "stroke-width": "strokeWidth",
  strokeOpacity: 1,
  "stroke-opacity": "strokeOpacity",
  suppressContentEditableWarning: 1,
  suppressHydrationWarning: 1,
  surfaceScale: 1,
  systemLanguage: 1,
  tableValues: 1,
  targetX: 1,
  targetY: 1,
  textAnchor: 1,
  "text-anchor": "textAnchor",
  textDecoration: 1,
  "text-decoration": "textDecoration",
  textLength: 1,
  textRendering: 1,
  "text-rendering": "textRendering",
  to: 0,
  transform: 0,
  typeof: 0,
  u1: 0,
  u2: 0,
  underlinePosition: 1,
  "underline-position": "underlinePosition",
  underlineThickness: 1,
  "underline-thickness": "underlineThickness",
  unicode: 0,
  unicodeBidi: 1,
  "unicode-bidi": "unicodeBidi",
  unicodeRange: 1,
  "unicode-range": "unicodeRange",
  unitsPerEm: 1,
  "units-per-em": "unitsPerEm",
  unselectable: 0,
  vAlphabetic: 1,
  "v-alphabetic": "vAlphabetic",
  values: 0,
  vectorEffect: 1,
  "vector-effect": "vectorEffect",
  version: 0,
  vertAdvY: 1,
  "vert-adv-y": "vertAdvY",
  vertOriginX: 1,
  "vert-origin-x": "vertOriginX",
  vertOriginY: 1,
  "vert-origin-y": "vertOriginY",
  vHanging: 1,
  "v-hanging": "vHanging",
  vIdeographic: 1,
  "v-ideographic": "vIdeographic",
  viewBox: 1,
  viewTarget: 1,
  visibility: 0,
  vMathematical: 1,
  "v-mathematical": "vMathematical",
  vocab: 0,
  widths: 0,
  wordSpacing: 1,
  "word-spacing": "wordSpacing",
  writingMode: 1,
  "writing-mode": "writingMode",
  x1: 0,
  x2: 0,
  x: 0,
  xChannelSelector: 1,
  xHeight: 1,
  "x-height": "xHeight",
  xlinkActuate: 1,
  "xlink:actuate": "xlinkActuate",
  xlinkArcrole: 1,
  "xlink:arcrole": "xlinkArcrole",
  xlinkHref: 1,
  "xlink:href": "xlinkHref",
  xlinkRole: 1,
  "xlink:role": "xlinkRole",
  xlinkShow: 1,
  "xlink:show": "xlinkShow",
  xlinkTitle: 1,
  "xlink:title": "xlinkTitle",
  xlinkType: 1,
  "xlink:type": "xlinkType",
  xmlBase: 1,
  "xml:base": "xmlBase",
  xmlLang: 1,
  "xml:lang": "xmlLang",
  xmlns: 0,
  "xml:space": "xmlSpace",
  xmlnsXlink: 1,
  "xmlns:xlink": "xmlnsXlink",
  xmlSpace: 1,
  y1: 0,
  y2: 0,
  y: 0,
  yChannelSelector: 1,
  z: 0,
  zoomAndPan: 1
};
Object.defineProperty(b, "__esModule", { value: !0 });
function Tn(e, t) {
  return wn(e) || bn(e, t) || xn(e, t) || kn();
}
function wn(e) {
  if (Array.isArray(e))
    return e;
}
function bn(e, t) {
  var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
  if (n != null) {
    var r = [], o = !0, l = !1, u, s;
    try {
      for (n = n.call(e); !(o = (u = n.next()).done) && (r.push(u.value), !(t && r.length === t)); o = !0)
        ;
    } catch (i) {
      l = !0, s = i;
    } finally {
      try {
        !o && n.return != null && n.return();
      } finally {
        if (l)
          throw s;
      }
    }
    return r;
  }
}
function xn(e, t) {
  if (e) {
    if (typeof e == "string")
      return Ve(e, t);
    var n = Object.prototype.toString.call(e).slice(8, -1);
    if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set")
      return Array.from(e);
    if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
      return Ve(e, t);
  }
}
function Ve(e, t) {
  (t == null || t > e.length) && (t = e.length);
  for (var n = 0, r = new Array(t); n < t; n++)
    r[n] = e[n];
  return r;
}
function kn() {
  throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
}
var gt = 0, _ = 1, le = 2, ce = 3, Oe = 4, Ct = 5, Et = 6;
function Sn(e) {
  return C.hasOwnProperty(e) ? C[e] : null;
}
function y(e, t, n, r, o, l, u) {
  this.acceptsBooleans = t === le || t === ce || t === Oe, this.attributeName = r, this.attributeNamespace = o, this.mustUseProperty = n, this.propertyName = e, this.type = t, this.sanitizeURL = l, this.removeEmptyString = u;
}
var C = {}, On = [
  "children",
  "dangerouslySetInnerHTML",
  // TODO: This prevents the assignment of defaultValue to regular
  // elements (not just inputs). Now that ReactDOMInput assigns to the
  // defaultValue property -- do we need this?
  "defaultValue",
  "defaultChecked",
  "innerHTML",
  "suppressContentEditableWarning",
  "suppressHydrationWarning",
  "style"
];
On.forEach(function(e) {
  C[e] = new y(
    e,
    gt,
    !1,
    // mustUseProperty
    e,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[["acceptCharset", "accept-charset"], ["className", "class"], ["htmlFor", "for"], ["httpEquiv", "http-equiv"]].forEach(function(e) {
  var t = Tn(e, 2), n = t[0], r = t[1];
  C[n] = new y(
    n,
    _,
    !1,
    // mustUseProperty
    r,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
["contentEditable", "draggable", "spellCheck", "value"].forEach(function(e) {
  C[e] = new y(
    e,
    le,
    !1,
    // mustUseProperty
    e.toLowerCase(),
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
["autoReverse", "externalResourcesRequired", "focusable", "preserveAlpha"].forEach(function(e) {
  C[e] = new y(
    e,
    le,
    !1,
    // mustUseProperty
    e,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[
  "allowFullScreen",
  "async",
  // Note: there is a special case that prevents it from being written to the DOM
  // on the client side because the browsers are inconsistent. Instead we call focus().
  "autoFocus",
  "autoPlay",
  "controls",
  "default",
  "defer",
  "disabled",
  "disablePictureInPicture",
  "disableRemotePlayback",
  "formNoValidate",
  "hidden",
  "loop",
  "noModule",
  "noValidate",
  "open",
  "playsInline",
  "readOnly",
  "required",
  "reversed",
  "scoped",
  "seamless",
  // Microdata
  "itemScope"
].forEach(function(e) {
  C[e] = new y(
    e,
    ce,
    !1,
    // mustUseProperty
    e.toLowerCase(),
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[
  "checked",
  // Note: `option.selected` is not updated if `select.multiple` is
  // disabled with `removeAttribute`. We have special logic for handling this.
  "multiple",
  "muted",
  "selected"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  C[e] = new y(
    e,
    ce,
    !0,
    // mustUseProperty
    e,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[
  "capture",
  "download"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  C[e] = new y(
    e,
    Oe,
    !1,
    // mustUseProperty
    e,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[
  "cols",
  "rows",
  "size",
  "span"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  C[e] = new y(
    e,
    Et,
    !1,
    // mustUseProperty
    e,
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
["rowSpan", "start"].forEach(function(e) {
  C[e] = new y(
    e,
    Ct,
    !1,
    // mustUseProperty
    e.toLowerCase(),
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
var Ne = /[\-\:]([a-z])/g, Ae = function(t) {
  return t[1].toUpperCase();
};
[
  "accent-height",
  "alignment-baseline",
  "arabic-form",
  "baseline-shift",
  "cap-height",
  "clip-path",
  "clip-rule",
  "color-interpolation",
  "color-interpolation-filters",
  "color-profile",
  "color-rendering",
  "dominant-baseline",
  "enable-background",
  "fill-opacity",
  "fill-rule",
  "flood-color",
  "flood-opacity",
  "font-family",
  "font-size",
  "font-size-adjust",
  "font-stretch",
  "font-style",
  "font-variant",
  "font-weight",
  "glyph-name",
  "glyph-orientation-horizontal",
  "glyph-orientation-vertical",
  "horiz-adv-x",
  "horiz-origin-x",
  "image-rendering",
  "letter-spacing",
  "lighting-color",
  "marker-end",
  "marker-mid",
  "marker-start",
  "overline-position",
  "overline-thickness",
  "paint-order",
  "panose-1",
  "pointer-events",
  "rendering-intent",
  "shape-rendering",
  "stop-color",
  "stop-opacity",
  "strikethrough-position",
  "strikethrough-thickness",
  "stroke-dasharray",
  "stroke-dashoffset",
  "stroke-linecap",
  "stroke-linejoin",
  "stroke-miterlimit",
  "stroke-opacity",
  "stroke-width",
  "text-anchor",
  "text-decoration",
  "text-rendering",
  "underline-position",
  "underline-thickness",
  "unicode-bidi",
  "unicode-range",
  "units-per-em",
  "v-alphabetic",
  "v-hanging",
  "v-ideographic",
  "v-mathematical",
  "vector-effect",
  "vert-adv-y",
  "vert-origin-x",
  "vert-origin-y",
  "word-spacing",
  "writing-mode",
  "xmlns:xlink",
  "x-height"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  var t = e.replace(Ne, Ae);
  C[t] = new y(
    t,
    _,
    !1,
    // mustUseProperty
    e,
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
[
  "xlink:actuate",
  "xlink:arcrole",
  "xlink:role",
  "xlink:show",
  "xlink:title",
  "xlink:type"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  var t = e.replace(Ne, Ae);
  C[t] = new y(
    t,
    _,
    !1,
    // mustUseProperty
    e,
    "http://www.w3.org/1999/xlink",
    !1,
    // sanitizeURL
    !1
  );
});
[
  "xml:base",
  "xml:lang",
  "xml:space"
  // NOTE: if you add a camelCased prop to this list,
  // you'll need to set attributeName to name.toLowerCase()
  // instead in the assignment below.
].forEach(function(e) {
  var t = e.replace(Ne, Ae);
  C[t] = new y(
    t,
    _,
    !1,
    // mustUseProperty
    e,
    "http://www.w3.org/XML/1998/namespace",
    !1,
    // sanitizeURL
    !1
  );
});
["tabIndex", "crossOrigin"].forEach(function(e) {
  C[e] = new y(
    e,
    _,
    !1,
    // mustUseProperty
    e.toLowerCase(),
    // attributeName
    null,
    // attributeNamespace
    !1,
    // sanitizeURL
    !1
  );
});
var Nn = "xlinkHref";
C[Nn] = new y(
  "xlinkHref",
  _,
  !1,
  // mustUseProperty
  "xlink:href",
  "http://www.w3.org/1999/xlink",
  !0,
  // sanitizeURL
  !1
);
["src", "href", "action", "formAction"].forEach(function(e) {
  C[e] = new y(
    e,
    _,
    !1,
    // mustUseProperty
    e.toLowerCase(),
    // attributeName
    null,
    // attributeNamespace
    !0,
    // sanitizeURL
    !0
  );
});
var Le = se, An = Le.CAMELCASE, Ln = Le.SAME, Fe = Le.possibleStandardNames, Rn = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD", Mn = Rn + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", _n = RegExp.prototype.test.bind(
  // eslint-disable-next-line no-misleading-character-class
  new RegExp("^(data|aria)-[" + Mn + "]*$")
), In = Object.keys(Fe).reduce(function(e, t) {
  var n = Fe[t];
  return n === Ln ? e[t] = t : n === An ? e[t.toLowerCase()] = t : e[t] = n, e;
}, {});
b.BOOLEAN = ce;
b.BOOLEANISH_STRING = le;
b.NUMERIC = Ct;
b.OVERLOADED_BOOLEAN = Oe;
b.POSITIVE_NUMERIC = Et;
b.RESERVED = gt;
b.STRING = _;
b.getPropertyInfo = Sn;
b.isCustomAttribute = _n;
b.possibleStandardNames = In;
var yt = {}, ne = {}, Pn = {
  get exports() {
    return ne;
  },
  set exports(e) {
    ne = e;
  }
}, Be = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, Dn = /\n/g, Hn = /^\s*/, Vn = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, Fn = /^:\s*/, Bn = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, Un = /^[;\s]*/, jn = /^\s+|\s+$/g, zn = `
`, Ue = "/", je = "*", P = "", $n = "comment", Gn = "declaration", Zn = function(e, t) {
  if (typeof e != "string")
    throw new TypeError("First argument must be a string");
  if (!e)
    return [];
  t = t || {};
  var n = 1, r = 1;
  function o(m) {
    var d = m.match(Dn);
    d && (n += d.length);
    var E = m.lastIndexOf(zn);
    r = ~E ? m.length - E : r + m.length;
  }
  function l() {
    var m = { line: n, column: r };
    return function(d) {
      return d.position = new u(m), c(), d;
    };
  }
  function u(m) {
    this.start = m, this.end = { line: n, column: r }, this.source = t.source;
  }
  u.prototype.content = e;
  function s(m) {
    var d = new Error(
      t.source + ":" + n + ":" + r + ": " + m
    );
    if (d.reason = m, d.filename = t.source, d.line = n, d.column = r, d.source = e, !t.silent)
      throw d;
  }
  function i(m) {
    var d = m.exec(e);
    if (d) {
      var E = d[0];
      return o(E), e = e.slice(E.length), d;
    }
  }
  function c() {
    i(Hn);
  }
  function f(m) {
    var d;
    for (m = m || []; d = h(); )
      d !== !1 && m.push(d);
    return m;
  }
  function h() {
    var m = l();
    if (!(Ue != e.charAt(0) || je != e.charAt(1))) {
      for (var d = 2; P != e.charAt(d) && (je != e.charAt(d) || Ue != e.charAt(d + 1)); )
        ++d;
      if (d += 2, P === e.charAt(d - 1))
        return s("End of comment missing");
      var E = e.slice(2, d - 2);
      return r += 2, o(E), e = e.slice(d), r += 2, m({
        type: $n,
        comment: E
      });
    }
  }
  function T() {
    var m = l(), d = i(Vn);
    if (d) {
      if (h(), !i(Fn))
        return s("property missing ':'");
      var E = i(Bn), A = m({
        type: Gn,
        property: ze(d[0].replace(Be, P)),
        value: E ? ze(E[0].replace(Be, P)) : P
      });
      return i(Un), A;
    }
  }
  function g() {
    var m = [];
    f(m);
    for (var d; d = T(); )
      d !== !1 && (m.push(d), f(m));
    return m;
  }
  return c(), g();
};
function ze(e) {
  return e ? e.replace(jn, P) : P;
}
var Xn = Zn;
function Tt(e, t) {
  var n = null;
  if (!e || typeof e != "string")
    return n;
  for (var r, o = Xn(e), l = typeof t == "function", u, s, i = 0, c = o.length; i < c; i++)
    r = o[i], u = r.property, s = r.value, l ? t(u, s, r) : s && (n || (n = {}), n[u] = s);
  return n;
}
Pn.exports = Tt;
ne.default = Tt;
var ue = {};
ue.__esModule = !0;
ue.camelCase = void 0;
var Wn = /^--[a-zA-Z0-9-]+$/, Yn = /-([a-z])/g, qn = /^[^-]+$/, Kn = /^-(webkit|moz|ms|o|khtml)-/, Jn = /^-(ms)-/, Qn = function(e) {
  return !e || qn.test(e) || Wn.test(e);
}, er = function(e, t) {
  return t.toUpperCase();
}, $e = function(e, t) {
  return "".concat(t, "-");
}, tr = function(e, t) {
  return t === void 0 && (t = {}), Qn(e) ? e : (e = e.toLowerCase(), t.reactCompat ? e = e.replace(Jn, $e) : e = e.replace(Kn, $e), e.replace(Yn, er));
};
ue.camelCase = tr;
(function(e) {
  var t = O && O.__importDefault || function(l) {
    return l && l.__esModule ? l : { default: l };
  };
  e.__esModule = !0;
  var n = t(ne), r = ue;
  function o(l, u) {
    var s = {};
    return !l || typeof l != "string" || (0, n.default)(l, function(i, c) {
      i && c && (s[(0, r.camelCase)(i, u)] = c);
    }), s;
  }
  e.default = o;
})(yt);
var nr = a, rr = yt.default;
function ir(e, t) {
  if (!e || typeof e != "object")
    throw new TypeError("First argument must be an object");
  var n, r, o = typeof t == "function", l = {}, u = {};
  for (n in e) {
    if (r = e[n], o && (l = t(n, r), l && l.length === 2)) {
      u[l[0]] = l[1];
      continue;
    }
    typeof r == "string" && (u[r] = n);
  }
  return u;
}
function ar(e, t) {
  if (e.indexOf("-") === -1)
    return t && typeof t.is == "string";
  switch (e) {
    case "annotation-xml":
    case "color-profile":
    case "font-face":
    case "font-face-src":
    case "font-face-uri":
    case "font-face-format":
    case "font-face-name":
    case "missing-glyph":
      return !1;
    default:
      return !0;
  }
}
var or = { reactCompat: !0 };
function sr(e, t) {
  if (e != null)
    try {
      t.style = rr(e, or);
    } catch {
      t.style = {};
    }
}
var lr = nr.version.split(".")[0] >= 16, wt = /* @__PURE__ */ new Set([
  "tr",
  "tbody",
  "thead",
  "tfoot",
  "colgroup",
  "table",
  "head",
  "html",
  "frameset"
]);
function cr(e) {
  return !wt.has(e.name);
}
var bt = {
  PRESERVE_CUSTOM_ATTRIBUTES: lr,
  invertObject: ir,
  isCustomComponent: ar,
  setStyleProp: sr,
  canTextBeChildOfNode: cr,
  elementsWithNoTextChildren: wt
}, z = b, Ge = bt, ur = ["checked", "value"], fr = ["input", "select", "textarea"], dr = {
  reset: !0,
  submit: !0
}, xt = function(t, n) {
  t = t || {};
  var r, o, l, u, s, i = {}, c = t.type && dr[t.type];
  for (r in t) {
    if (l = t[r], z.isCustomAttribute(r)) {
      i[r] = l;
      continue;
    }
    if (o = r.toLowerCase(), u = Ze(o), u) {
      switch (s = z.getPropertyInfo(u), ur.indexOf(u) !== -1 && fr.indexOf(n) !== -1 && !c && (u = Ze("default" + o)), i[u] = l, s && s.type) {
        case z.BOOLEAN:
          i[u] = !0;
          break;
        case z.OVERLOADED_BOOLEAN:
          l === "" && (i[u] = !0);
          break;
      }
      continue;
    }
    Ge.PRESERVE_CUSTOM_ATTRIBUTES && (i[r] = l);
  }
  return Ge.setStyleProp(t.style, i), i;
};
function Ze(e) {
  return z.possibleStandardNames[e];
}
var mr = a, pr = xt, re = bt, hr = re.setStyleProp, vr = re.canTextBeChildOfNode;
function kt(e, t) {
  t = t || {};
  for (var n = t.library || mr, r = n.cloneElement, o = n.createElement, l = n.isValidElement, u = [], s, i, c = typeof t.replace == "function", f, h, T, g = t.trim, m = 0, d = e.length; m < d; m++) {
    if (s = e[m], c && (f = t.replace(s), l(f))) {
      d > 1 && (f = r(f, {
        key: f.key || m
      })), u.push(f);
      continue;
    }
    if (s.type === "text") {
      if (i = !s.data.trim().length, i && s.parent && !vr(s.parent) || g && i)
        continue;
      u.push(s.data);
      continue;
    }
    switch (h = s.attribs, gr(s) ? hr(h.style, h) : h && (h = pr(h, s.name)), T = null, s.type) {
      case "script":
      case "style":
        s.children[0] && (h.dangerouslySetInnerHTML = {
          __html: s.children[0].data
        });
        break;
      case "tag":
        s.name === "textarea" && s.children[0] ? h.defaultValue = s.children[0].data : s.children && s.children.length && (T = kt(s.children, t));
        break;
      default:
        continue;
    }
    d > 1 && (h.key = m), u.push(o(s.name, h, T));
  }
  return u.length === 1 ? u[0] : u;
}
function gr(e) {
  return re.PRESERVE_CUSTOM_ATTRIBUTES && e.type === "tag" && re.isCustomComponent(e.name, e.attribs);
}
var Cr = kt, fe = we, H = Cn, Er = xt, St = Cr;
H = /* istanbul ignore next */
typeof H.default == "function" ? H.default : H;
var yr = { lowerCaseAttributeNames: !1 };
function N(e, t) {
  if (typeof e != "string")
    throw new TypeError("First argument must be a string");
  return e === "" ? [] : (t = t || {}, St(
    H(e, t.htmlparser2 || yr),
    t
  ));
}
N.domToReact = St;
N.htmlToDOM = H;
N.attributesToProps = Er;
N.Comment = fe.Comment;
N.Element = fe.Element;
N.ProcessingInstruction = fe.ProcessingInstruction;
N.Text = fe.Text;
var I = N;
N.default = N;
I.domToReact;
I.htmlToDOM;
I.attributesToProps;
I.Comment;
I.Element;
I.ProcessingInstruction;
I.Text;
const Tr = ({ className: e, title: t }) => /* @__PURE__ */ a.createElement("i", { className: e }, /* @__PURE__ */ a.createElement("svg", { viewBox: "0 0 20 20", xmlns: "http://www.w3.org/2000/svg" }, !!t && /* @__PURE__ */ a.createElement("title", null, t), /* @__PURE__ */ a.createElement("path", { d: "M0 3h20v2H0V3zm0 6h20v2H0V9zm0 6h20v2H0v-2z" })));
const Ot = ({ logo: e, isHomepageDisabled: t, siteBrandURL: n, redirectionURL: r }) => {
  const { state: o } = ye(), [l] = Xe();
  let u = o.home.link, s = !1;
  if (t && l) {
    if (n) {
      const i = G.getRouterRedirection(n, l.baseURL);
      s = !i, u = i || n;
    }
    if (!n && r) {
      const i = G.getRouterRedirection(r, l.baseURL);
      s = !i, u = i || r;
    }
  }
  return s ? /* @__PURE__ */ a.createElement("a", { className: "logo", href: u }, /* @__PURE__ */ a.createElement("img", { src: e, alt: "logo" })) : /* @__PURE__ */ a.createElement(D, { className: "logo", to: u }, /* @__PURE__ */ a.createElement("img", { src: e, alt: "logo" }));
}, wr = ({ menus: e }) => /* @__PURE__ */ a.createElement("nav", { className: "navigationContainer" }, e == null ? void 0 : e.map((t, n) => /* @__PURE__ */ a.createElement(Ye, { key: `menuLink-${n}`, className: "menuLink", to: t.pathname }, t.label))), Ur = (e) => {
  const { areLinksHidden: t, menus: n, userDropdownMenus: r } = e, {
    state: { playerPortalConfigData: o }
  } = Te(), {
    state: { flags: l },
    hasFeature: u
  } = Je(), { companyLogo: s } = Q(K.PP, "header"), i = Mt(null), [c, f] = _t(!1), h = o == null ? void 0 : o.homepage.data.siteBrandURL, T = o == null ? void 0 : o.homepage.data.redirectionURL, g = !!(o != null && o.homepage.data.isDisabled), m = q(() => u("isGetLauncherVisible"), [l]), d = () => {
    f(!c);
  };
  return o != null && o.customHeader.data.isEnabled && typeof window < "u" ? br("customHeader", o, { headerProps: e }) : /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("header", { className: J("headerPP", We.TITLE_FONT, "headerPreview") }, /* @__PURE__ */ a.createElement("div", { className: "translucent" }), /* @__PURE__ */ a.createElement("div", { className: "headerContent" }, /* @__PURE__ */ a.createElement("div", { className: "logoContainer" }, s && /* @__PURE__ */ a.createElement(
    Ot,
    {
      logo: s,
      isHomepageDisabled: g,
      siteBrandURL: h,
      redirectionURL: T
    }
  )), !t && /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("div", { className: "hamburgerMenu" }, /* @__PURE__ */ a.createElement("button", { ref: i, className: "menuIconContainer", onClick: d }, /* @__PURE__ */ a.createElement(Tr, { className: "menuIcon", title: Pt("Header.menuTitle") }))), /* @__PURE__ */ a.createElement("div", { className: J("dropdownMenu", c ? "open" : "closed") }, /* @__PURE__ */ a.createElement(wr, { menus: n }), /* @__PURE__ */ a.createElement(Ke, { userDropdownMenus: r }), m && /* @__PURE__ */ a.createElement("div", { className: "getLauncherButtonContainer" }, /* @__PURE__ */ a.createElement(qe, null, /* @__PURE__ */ a.createElement(j, { i18nKey: "Header.getLauncherButton" }, "Get Launcher")))))), /* @__PURE__ */ a.createElement(Dt, { className: "headerAlerts" })));
}, br = (e, t, n) => {
  var A;
  const { customHTML: r, customCSS: o, isEnabled: l } = t[e].data, { isSticky: u, stickyHeight: s } = e === "customHeader" && l ? t[e].data : { isSticky: !1, stickyHeight: void 0 }, i = t == null ? void 0 : t.homepage.data.siteBrandURL, c = t == null ? void 0 : t.homepage.data.redirectionURL, f = !!(t != null && t.homepage.data.isDisabled), h = (A = n.headerProps) == null ? void 0 : A.userDropdownMenus, T = Q(K.PP, "header").companyLogo, g = Q(K.PP, "footer").companyLogo, m = () => window.scrollTo({ top: 0, behavior: "smooth" }), d = a.createElement("style", null, ee.sanitizeText(o)), E = {
    replace: (v) => {
      var R;
      switch (!0) {
        case (v.type === "tag" && v.name === "login-widget"):
          return /* @__PURE__ */ a.createElement(Ke, { userDropdownMenus: h });
        case (v.type === "tag" && v.name === "link"):
          return /* @__PURE__ */ a.createElement(Ye, { className: J(v.attribs.class, "menuLink"), to: v.attribs.to }, v.attribs.text);
        case (v.type === "tag" && v.name === "launcher-download-button"):
          return /* @__PURE__ */ a.createElement(qe, { className: v.attribs.class }, (R = v.children[0]) == null ? void 0 : R.data);
        case (v.type === "tag" && v.name === "header-logo"):
          return T ? /* @__PURE__ */ a.createElement(
            Ot,
            {
              logo: T,
              isHomepageDisabled: f,
              siteBrandURL: i,
              redirectionURL: c
            }
          ) : null;
        case (v.type === "tag" && v.name === "footer-logo"):
          return g ? /* @__PURE__ */ a.createElement(Qe, { logo: g, scrollToTop: m }) : null;
        default:
          return null;
      }
    }
  };
  return It(() => {
    const v = t.customClassPageScrollEvent.data, R = () => {
      var F, X;
      const V = v.elementSelector.replace(/^[.#]/, ""), Z = v.customClassName.replace(".", "");
      window.scrollY > 0 ? (F = document.getElementById(V)) == null || F.classList.add(Z) : (X = document.getElementById(V)) == null || X.classList.remove(Z);
    };
    return v.isEnabled && window.addEventListener("scroll", R), () => {
      v.isEnabled && window.removeEventListener("scroll", R);
    };
  }, []), /* @__PURE__ */ a.createElement(
    "div",
    {
      className: J("z-50", u ? "fixed flex w-screen" : "", We.TITLE_FONT),
      style: {
        height: u !== !1 ? `${s}px` : "auto"
      }
    },
    d,
    I(ee.sanitize(r), E)
  );
};
export {
  br as D,
  Br as F,
  Ot as H,
  Ur as a
};
