import {
  __commonJS
} from "./chunk-HKJ2B2AA.js";

// node_modules/boxicons/dist/boxicons.js
var require_boxicons = __commonJS({
  "node_modules/boxicons/dist/boxicons.js"(exports, module) {
    !function(t, e, n, r, o) {
      if ("customElements" in n) o();
      else {
        if (n.AWAITING_WEB_COMPONENTS_POLYFILL) return void n.AWAITING_WEB_COMPONENTS_POLYFILL.then(o);
        var a = n.AWAITING_WEB_COMPONENTS_POLYFILL = f();
        a.then(o);
        var i = n.WEB_COMPONENTS_POLYFILL || "//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/2.0.2/webcomponents-bundle.js", s = n.ES6_CORE_POLYFILL || "//cdnjs.cloudflare.com/ajax/libs/core-js/2.5.3/core.min.js";
        "Promise" in n ? c(i).then(function() {
          a.isDone = true, a.exec();
        }) : c(s).then(function() {
          c(i).then(function() {
            a.isDone = true, a.exec();
          });
        });
      }
      function f() {
        var t2 = [];
        return t2.isDone = false, t2.exec = function() {
          t2.splice(0).forEach(function(t3) {
            t3();
          });
        }, t2.then = function(e2) {
          return t2.isDone ? e2() : t2.push(e2), t2;
        }, t2;
      }
      function c(t2) {
        var e2 = f(), n2 = r.createElement("script");
        return n2.type = "text/javascript", n2.readyState ? n2.onreadystatechange = function() {
          "loaded" != n2.readyState && "complete" != n2.readyState || (n2.onreadystatechange = null, e2.isDone = true, e2.exec());
        } : n2.onload = function() {
          e2.isDone = true, e2.exec();
        }, n2.src = t2, r.getElementsByTagName("head")[0].appendChild(n2), n2.then = e2.then, n2;
      }
    }(0, 0, window, document, function() {
      var t, e;
      t = window, e = function() {
        return function(t2) {
          var e2 = {};
          function n(r) {
            if (e2[r]) return e2[r].exports;
            var o = e2[r] = { i: r, l: false, exports: {} };
            return t2[r].call(o.exports, o, o.exports, n), o.l = true, o.exports;
          }
          return n.m = t2, n.c = e2, n.d = function(t3, e3, r) {
            n.o(t3, e3) || Object.defineProperty(t3, e3, { enumerable: true, get: r });
          }, n.r = function(t3) {
            "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(t3, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(t3, "__esModule", { value: true });
          }, n.t = function(t3, e3) {
            if (1 & e3 && (t3 = n(t3)), 8 & e3) return t3;
            if (4 & e3 && "object" == typeof t3 && t3 && t3.__esModule) return t3;
            var r = /* @__PURE__ */ Object.create(null);
            if (n.r(r), Object.defineProperty(r, "default", { enumerable: true, value: t3 }), 2 & e3 && "string" != typeof t3) for (var o in t3) n.d(r, o, (function(e4) {
              return t3[e4];
            }).bind(null, o));
            return r;
          }, n.n = function(t3) {
            var e3 = t3 && t3.__esModule ? function() {
              return t3.default;
            } : function() {
              return t3;
            };
            return n.d(e3, "a", e3), e3;
          }, n.o = function(t3, e3) {
            return Object.prototype.hasOwnProperty.call(t3, e3);
          }, n.p = "", n(n.s = 5);
        }([function(t2, e2) {
          t2.exports = function(t3) {
            var e3 = [];
            return e3.toString = function() {
              return this.map(function(e4) {
                var n = function(t4, e5) {
                  var n2, r = t4[1] || "", o = t4[3];
                  if (!o) return r;
                  if (e5 && "function" == typeof btoa) {
                    var a = (n2 = o, "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(n2)))) + " */"), i = o.sources.map(function(t5) {
                      return "/*# sourceURL=" + o.sourceRoot + t5 + " */";
                    });
                    return [r].concat(i).concat([a]).join("\n");
                  }
                  return [r].join("\n");
                }(e4, t3);
                return e4[2] ? "@media " + e4[2] + "{" + n + "}" : n;
              }).join("");
            }, e3.i = function(t4, n) {
              "string" == typeof t4 && (t4 = [[null, t4, ""]]);
              for (var r = {}, o = 0; o < this.length; o++) {
                var a = this[o][0];
                "number" == typeof a && (r[a] = true);
              }
              for (o = 0; o < t4.length; o++) {
                var i = t4[o];
                "number" == typeof i[0] && r[i[0]] || (n && !i[2] ? i[2] = n : n && (i[2] = "(" + i[2] + ") and (" + n + ")"), e3.push(i));
              }
            }, e3;
          };
        }, function(t2, e2, n) {
          var r = n(3);
          t2.exports = "string" == typeof r ? r : r.toString();
        }, function(t2, e2, n) {
          var r = n(4);
          t2.exports = "string" == typeof r ? r : r.toString();
        }, function(t2, e2, n) {
          (t2.exports = n(0)(false)).push([t2.i, "@-webkit-keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@-webkit-keyframes burst{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}90%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@keyframes burst{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}90%{-webkit-transform:scale(1.5);transform:scale(1.5);opacity:0}}@-webkit-keyframes flashing{0%{opacity:1}45%{opacity:0}90%{opacity:1}}@keyframes flashing{0%{opacity:1}45%{opacity:0}90%{opacity:1}}@-webkit-keyframes fade-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(-20px);transform:translateX(-20px);opacity:0}}@keyframes fade-left{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(-20px);transform:translateX(-20px);opacity:0}}@-webkit-keyframes fade-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(20px);transform:translateX(20px);opacity:0}}@keyframes fade-right{0%{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}75%{-webkit-transform:translateX(20px);transform:translateX(20px);opacity:0}}@-webkit-keyframes fade-up{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}}@keyframes fade-up{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(-20px);transform:translateY(-20px);opacity:0}}@-webkit-keyframes fade-down{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(20px);transform:translateY(20px);opacity:0}}@keyframes fade-down{0%{-webkit-transform:translateY(0);transform:translateY(0);opacity:1}75%{-webkit-transform:translateY(20px);transform:translateY(20px);opacity:0}}@-webkit-keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.95,.95,.95) rotate(-10deg);transform:scale3d(.95,.95,.95) rotate(-10deg)}30%,50%,70%,90%{-webkit-transform:scaleX(1) rotate(10deg);transform:scaleX(1) rotate(10deg)}40%,60%,80%{-webkit-transform:scaleX(1) rotate(-10deg);transform:scaleX(1) rotate(-10deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}@keyframes tada{0%{-webkit-transform:scaleX(1);transform:scaleX(1)}10%,20%{-webkit-transform:scale3d(.95,.95,.95) rotate(-10deg);transform:scale3d(.95,.95,.95) rotate(-10deg)}30%,50%,70%,90%{-webkit-transform:scaleX(1) rotate(10deg);transform:scaleX(1) rotate(10deg)}40%,60%,80%{-webkit-transform:rotate(-10deg);transform:rotate(-10deg)}to{-webkit-transform:scaleX(1);transform:scaleX(1)}}.bx-spin,.bx-spin-hover:hover{-webkit-animation:spin 2s linear infinite;animation:spin 2s linear infinite}.bx-tada,.bx-tada-hover:hover{-webkit-animation:tada 1.5s ease infinite;animation:tada 1.5s ease infinite}.bx-flashing,.bx-flashing-hover:hover{-webkit-animation:flashing 1.5s infinite linear;animation:flashing 1.5s infinite linear}.bx-burst,.bx-burst-hover:hover{-webkit-animation:burst 1.5s infinite linear;animation:burst 1.5s infinite linear}.bx-fade-up,.bx-fade-up-hover:hover{-webkit-animation:fade-up 1.5s infinite linear;animation:fade-up 1.5s infinite linear}.bx-fade-down,.bx-fade-down-hover:hover{-webkit-animation:fade-down 1.5s infinite linear;animation:fade-down 1.5s infinite linear}.bx-fade-left,.bx-fade-left-hover:hover{-webkit-animation:fade-left 1.5s infinite linear;animation:fade-left 1.5s infinite linear}.bx-fade-right,.bx-fade-right-hover:hover{-webkit-animation:fade-right 1.5s infinite linear;animation:fade-right 1.5s infinite linear}", ""]);
        }, function(t2, e2, n) {
          (t2.exports = n(0)(false)).push([t2.i, '.bx-rotate-90{transform:rotate(90deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)"}.bx-rotate-180{transform:rotate(180deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)"}.bx-rotate-270{transform:rotate(270deg);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"}.bx-flip-horizontal{transform:scaleX(-1);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)"}.bx-flip-vertical{transform:scaleY(-1);-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}', ""]);
        }, function(t2, e2, n) {
          "use strict";
          n.r(e2), n.d(e2, "BoxIconElement", function() {
            return g;
          });
          var r, o, a, i, s = n(1), f = n.n(s), c = n(2), l = n.n(c), m = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t3) {
            return typeof t3;
          } : function(t3) {
            return t3 && "function" == typeof Symbol && t3.constructor === Symbol && t3 !== Symbol.prototype ? "symbol" : typeof t3;
          }, u = /* @__PURE__ */ function() {
            function t3(t4, e3) {
              for (var n2 = 0; n2 < e3.length; n2++) {
                var r2 = e3[n2];
                r2.enumerable = r2.enumerable || false, r2.configurable = true, "value" in r2 && (r2.writable = true), Object.defineProperty(t4, r2.key, r2);
              }
            }
            return function(e3, n2, r2) {
              return n2 && t3(e3.prototype, n2), r2 && t3(e3, r2), e3;
            };
          }(), d = (o = (r = Object).getPrototypeOf || function(t3) {
            return t3.__proto__;
          }, a = r.setPrototypeOf || function(t3, e3) {
            return t3.__proto__ = e3, t3;
          }, i = "object" === ("undefined" == typeof Reflect ? "undefined" : m(Reflect)) ? Reflect.construct : function(t3, e3, n2) {
            var r2, o2 = [null];
            return o2.push.apply(o2, e3), r2 = t3.bind.apply(t3, o2), a(new r2(), n2.prototype);
          }, function(t3) {
            var e3 = o(t3);
            return a(t3, a(function() {
              return i(e3, arguments, o(this).constructor);
            }, e3));
          }), p = window, b = {}, y = document.createElement("template"), h = function() {
            return !!p.ShadyCSS;
          };
          y.innerHTML = '\n<style>\n:host {\n  display: inline-block;\n  font-size: initial;\n  box-sizing: border-box;\n  width: 24px;\n  height: 24px;\n}\n:host([size=xs]) {\n    width: 0.8rem;\n    height: 0.8rem;\n}\n:host([size=sm]) {\n    width: 1.55rem;\n    height: 1.55rem;\n}\n:host([size=md]) {\n    width: 2.25rem;\n    height: 2.25rem;\n}\n:host([size=lg]) {\n    width: 3.0rem;\n    height: 3.0rem;\n}\n\n:host([size]:not([size=""]):not([size=xs]):not([size=sm]):not([size=md]):not([size=lg])) {\n    width: auto;\n    height: auto;\n}\n:host([pull=left]) #icon {\n    float: left;\n    margin-right: .3em!important;\n}\n:host([pull=right]) #icon {\n    float: right;\n    margin-left: .3em!important;\n}\n:host([border=square]) #icon {\n    padding: .25em;\n    border: .07em solid rgba(0,0,0,.1);\n    border-radius: .25em;\n}\n:host([border=circle]) #icon {\n    padding: .25em;\n    border: .07em solid rgba(0,0,0,.1);\n    border-radius: 50%;\n}\n#icon,\nsvg {\n  width: 100%;\n  height: 100%;\n}\n#icon {\n    box-sizing: border-box;\n} \n' + f.a + "\n" + l.a + '\n</style>\n<div id="icon"></div>';
          var g = d(function(t3) {
            function e3() {
              !function(t5, e4) {
                if (!(t5 instanceof e4)) throw new TypeError("Cannot call a class as a function");
              }(this, e3);
              var t4 = function(t5, e4) {
                if (!t5) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
                return !e4 || "object" != typeof e4 && "function" != typeof e4 ? t5 : e4;
              }(this, (e3.__proto__ || Object.getPrototypeOf(e3)).call(this));
              return t4.$ui = t4.attachShadow({ mode: "open" }), t4.$ui.appendChild(t4.ownerDocument.importNode(y.content, true)), h() && p.ShadyCSS.styleElement(t4), t4._state = { $iconHolder: t4.$ui.getElementById("icon"), type: t4.getAttribute("type") }, t4;
            }
            return function(t4, e4) {
              if ("function" != typeof e4 && null !== e4) throw new TypeError("Super expression must either be null or a function, not " + typeof e4);
              t4.prototype = Object.create(e4 && e4.prototype, { constructor: { value: t4, enumerable: false, writable: true, configurable: true } }), e4 && (Object.setPrototypeOf ? Object.setPrototypeOf(t4, e4) : t4.__proto__ = e4);
            }(e3, HTMLElement), u(e3, null, [{ key: "getIconSvg", value: function(t4, e4) {
              var n2 = this.cdnUrl + "/regular/bx-" + t4 + ".svg";
              return "solid" === e4 ? n2 = this.cdnUrl + "/solid/bxs-" + t4 + ".svg" : "logo" === e4 && (n2 = this.cdnUrl + "/logos/bxl-" + t4 + ".svg"), n2 && b[n2] || (b[n2] = new Promise(function(t5, e5) {
                var r2 = new XMLHttpRequest();
                r2.addEventListener("load", function() {
                  this.status < 200 || this.status >= 300 ? e5(new Error(this.status + " " + this.responseText)) : t5(this.responseText);
                }), r2.onerror = e5, r2.onabort = e5, r2.open("GET", n2), r2.send();
              })), b[n2];
            } }, { key: "define", value: function(t4) {
              t4 = t4 || this.tagName, h() && p.ShadyCSS.prepareTemplate(y, t4), customElements.define(t4, this);
            } }, { key: "cdnUrl", get: function() {
              return "//unpkg.com/boxicons@2.1.4/svg";
            } }, { key: "tagName", get: function() {
              return "box-icon";
            } }, { key: "observedAttributes", get: function() {
              return ["type", "name", "color", "size", "rotate", "flip", "animation", "border", "pull"];
            } }]), u(e3, [{ key: "attributeChangedCallback", value: function(t4, e4, n2) {
              var r2 = this._state.$iconHolder;
              switch (t4) {
                case "type":
                  !function(t5, e5, n3) {
                    var r3 = t5._state;
                    r3.$iconHolder.textContent = "", r3.type && (r3.type = null), r3.type = !n3 || "solid" !== n3 && "logo" !== n3 ? "regular" : n3, void 0 !== r3.currentName && t5.constructor.getIconSvg(r3.currentName, r3.type).then(function(t6) {
                      r3.type === n3 && (r3.$iconHolder.innerHTML = t6);
                    }).catch(function(t6) {
                      console.error("Failed to load icon: " + r3.currentName + "\n" + t6);
                    });
                  }(this, 0, n2);
                  break;
                case "name":
                  !function(t5, e5, n3) {
                    var r3 = t5._state;
                    r3.currentName = n3, r3.$iconHolder.textContent = "", n3 && void 0 !== r3.type && t5.constructor.getIconSvg(n3, r3.type).then(function(t6) {
                      r3.currentName === n3 && (r3.$iconHolder.innerHTML = t6);
                    }).catch(function(t6) {
                      console.error("Failed to load icon: " + n3 + "\n" + t6);
                    });
                  }(this, 0, n2);
                  break;
                case "color":
                  r2.style.fill = n2 || "";
                  break;
                case "size":
                  !function(t5, e5, n3) {
                    var r3 = t5._state;
                    r3.size && (r3.$iconHolder.style.width = r3.$iconHolder.style.height = "", r3.size = r3.sizeType = null), n3 && !/^(xs|sm|md|lg)$/.test(r3.size) && (r3.size = n3.trim(), r3.$iconHolder.style.width = r3.$iconHolder.style.height = r3.size);
                  }(this, 0, n2);
                  break;
                case "rotate":
                  e4 && r2.classList.remove("bx-rotate-" + e4), n2 && r2.classList.add("bx-rotate-" + n2);
                  break;
                case "flip":
                  e4 && r2.classList.remove("bx-flip-" + e4), n2 && r2.classList.add("bx-flip-" + n2);
                  break;
                case "animation":
                  e4 && r2.classList.remove("bx-" + e4), n2 && r2.classList.add("bx-" + n2);
              }
            } }, { key: "connectedCallback", value: function() {
              h() && p.ShadyCSS.styleElement(this);
            } }]), e3;
          }());
          e2.default = g, g.define();
        }]);
      }, "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.BoxIconElement = e() : t.BoxIconElement = e();
    });
  }
});
export default require_boxicons();
//# sourceMappingURL=boxicons.js.map
