UNPKG

@expofp/floorplan

Version:

Interactive floor plan library for expos and events

79 lines (78 loc) 3.36 kB
(function() { try { var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}; e.SENTRY_RELEASE = { id: "3.7.8" }; var t = new e.Error().stack; t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "2ef0544c-6822-4618-b0d8-662f99974861", e._sentryDebugIdIdentifier = "sentry-dbid-2ef0544c-6822-4618-b0d8-662f99974861"); } catch {} })(); import { t as e } from "./rolldown-runtime-YBAZwyzS.js"; //#region ../../node_modules/.pnpm/fetch-retry@6.0.0/node_modules/fetch-retry/dist/fetch-retry.umd.js var t = /* @__PURE__ */ e(((e, t) => { (function(n, r) { typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.fetchRetry = r()); })(e, (function() { var e = function(e, r) { if (r = r || {}, typeof e != "function") throw new n("fetch must be a function"); if (typeof r != "object") throw new n("defaults must be an object"); if (r.retries !== void 0 && !t(r.retries)) throw new n("retries must be a positive integer"); if (r.retryDelay !== void 0 && !t(r.retryDelay) && typeof r.retryDelay != "function") throw new n("retryDelay must be a positive integer or a function returning a positive integer"); if (r.retryOn !== void 0 && !Array.isArray(r.retryOn) && typeof r.retryOn != "function") throw new n("retryOn property expects an array or function"); return r = Object.assign({ retries: 3, retryDelay: 1e3, retryOn: [] }, r), function(i, a) { var o = r.retries, s = r.retryDelay, c = r.retryOn; if (a && a.retries !== void 0) if (t(a.retries)) o = a.retries; else throw new n("retries must be a positive integer"); if (a && a.retryDelay !== void 0) if (t(a.retryDelay) || typeof a.retryDelay == "function") s = a.retryDelay; else throw new n("retryDelay must be a positive integer or a function returning a positive integer"); if (a && a.retryOn) if (Array.isArray(a.retryOn) || typeof a.retryOn == "function") c = a.retryOn; else throw new n("retryOn property expects an array or function"); return new Promise(function(t, n) { var r = function(r) { e(typeof Request < "u" && i instanceof Request ? i.clone() : i, a).then(function(e) { if (Array.isArray(c) && c.indexOf(e.status) === -1) t(e); else if (typeof c == "function") try { return Promise.resolve(c(r, null, e)).then(function(n) { n ? l(r, null, e) : t(e); }).catch(n); } catch (e) { n(e); } else r < o ? l(r, null, e) : t(e); }).catch(function(e) { if (typeof c == "function") try { Promise.resolve(c(r, e, null)).then(function(t) { t ? l(r, e, null) : n(e); }).catch(function(e) { n(e); }); } catch (e) { n(e); } else r < o ? l(r, e, null) : n(e); }); }; function l(e, t, n) { var i = typeof s == "function" ? s(e, t, n) : s; setTimeout(function() { r(++e); }, i); } r(0); }); }; }; function t(e) { return Number.isInteger(e) && e >= 0; } function n(e) { this.name = "ArgumentError", this.message = e; } return e; })); })); //#endregion export default t();