import { __module as x } from "./index-loadjs.umd3.js";
var P = x.exports, q;
function D() {
  return q ? x.exports : (q = 1, (function(w, R) {
    (function(p, a) {
      w.exports = a();
    })(P, function() {
      var p = function() {
      }, a = {}, v = {}, h = {};
      function L(e, n) {
        e = e.push ? e : [e];
        var t = [], r = e.length, o = r, f, s, l, u;
        for (f = function(c, d) {
          d.length && t.push(c), o--, o || n(t);
        }; r--; ) {
          if (s = e[r], l = v[s], l) {
            f(s, l);
            continue;
          }
          u = h[s] = h[s] || [], u.push(f);
        }
      }
      function g(e, n) {
        if (e) {
          var t = h[e];
          if (v[e] = n, !!t)
            for (; t.length; )
              t[0](e, n), t.splice(0, 1);
        }
      }
      function _(e, n) {
        e.call && (e = { success: e }), n.length ? (e.error || p)(n) : (e.success || p)(e);
      }
      function j(e, n, t, r) {
        var o = document, f = t.async, s = (t.numRetries || 0) + 1, l = t.before || p, u = e.replace(/[\?|#].*$/, ""), c = e.replace(/^(css|img|module|nomodule)!/, ""), d, C, i;
        if (r = r || 0, /(^css!|\.css$)/.test(u))
          i = o.createElement("link"), i.rel = "stylesheet", i.href = c, d = "hideFocus" in i, d && i.relList && (d = 0, i.rel = "preload", i.as = "style");
        else if (/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(u))
          i = o.createElement("img"), i.src = c;
        else if (i = o.createElement("script"), i.src = c, i.async = f === void 0 ? !0 : f, C = "noModule" in i, /^module!/.test(u)) {
          if (!C) return n(e, "l");
          i.type = "module";
        } else if (/^nomodule!/.test(u) && C) return n(e, "l");
        i.onload = i.onerror = i.onbeforeload = function(b) {
          var y = b.type[0];
          if (d)
            try {
              i.sheet.cssText.length || (y = "e");
            } catch ($) {
              $.code != 18 && (y = "e");
            }
          if (y == "e") {
            if (r += 1, r < s)
              return j(e, n, t, r);
          } else if (i.rel == "preload" && i.as == "style")
            return i.rel = "stylesheet";
          n(e, y, b.defaultPrevented);
        }, l(e, i) !== !1 && o.head.appendChild(i);
      }
      function E(e, n, t) {
        e = e.push ? e : [e];
        var r = e.length, o = r, f = [], s, l;
        for (s = function(u, c, d) {
          if (c == "e" && f.push(u), c == "b")
            if (d) f.push(u);
            else return;
          r--, r || n(f);
        }, l = 0; l < o; l++) j(e[l], s, t);
      }
      function m(e, n, t) {
        var r, o;
        if (n && n.trim && (r = n), o = (r ? t : n) || {}, r) {
          if (r in a)
            throw "LoadJS";
          a[r] = !0;
        }
        function f(s, l) {
          E(e, function(u) {
            _(o, u), s && _({ success: s, error: l }, u), g(r, u);
          }, o);
        }
        if (o.returnPromise) return new Promise(f);
        f();
      }
      return m.ready = function(n, t) {
        return L(n, function(r) {
          _(t, r);
        }), m;
      }, m.done = function(n) {
        g(n, []);
      }, m.reset = function() {
        a = {}, v = {}, h = {};
      }, m.isDefined = function(n) {
        return n in a;
      }, m;
    });
  })(x), x.exports);
}
export {
  D as __require
};
