var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
let window = _____WB$wombat$assign$function_____("window");
let self = _____WB$wombat$assign$function_____("self");
let document = _____WB$wombat$assign$function_____("document");
let location = _____WB$wombat$assign$function_____("location");
let top = _____WB$wombat$assign$function_____("top");
let parent = _____WB$wombat$assign$function_____("parent");
let frames = _____WB$wombat$assign$function_____("frames");
let opens = _____WB$wombat$assign$function_____("opens");
import an, { Suspense as kv, useMemo as Wv, useRef as Bv } from "react";
import { StateStoreImpl as Nv, useStateOverrides as Gv } from "@wix/builder-state";
const Kv = (r) => {
  if (!(r instanceof Promise))
    return;
  const o = r;
  switch (o.status) {
    case "pending":
      throw o;
    case "fulfilled":
      return;
    case "rejected":
      throw o.reason;
    default:
      throw o.status = "pending", o.then((i) => {
        o.status = "fulfilled", o.value = i;
      }, (i) => {
        o.status = "rejected", o.reason = i;
      }), o;
  }
}, Hv = ({ onReadyPromise: r, children: o }) => (Kv(r), an.createElement(an.Fragment, null, o)), Vv = ({ fallback: r, onReadyPromise: o, children: i }) => an.createElement(
  kv,
  { fallback: r },
  an.createElement(Hv, { onReadyPromise: o }, i)
), qv = {
  DatePicker: "portal-",
  ComboBoxInput: "listModal_",
  RichTextBox: "linkModal_",
  VideoBox: "VideoBox_dummy_"
}, nl = (r) => `${r}-overrides`, Yv = (r, o) => {
  const i = Object.keys(r);
  return i.length === Object.keys(o).length && i.every((a) => r[a] === o[a]);
};
function b0(r, o) {
  r.forEach((i) => {
    const a = o.props.getOverrides(nl(i));
    if (a)
      for (const [f, d] of Object.entries(a)) {
        if (!a || !d || o.scopeId)
          return;
        o.createScopedStore(f, d);
      }
  });
}
const Xv = an.memo(({ props: r, onPropsChanged: o }) => {
  const i = Bv(null);
  return i.current && o(i.current, r), i.current = r, null;
}, (r, o) => Yv(r.props, o.props)), w0 = ({ children: r, fallback: o, appDefinitionId: i, invokeOnPropsChanged: a, invokeOnReady: f, ...d }) => {
  const m = Wv(() => f(), []);
  return an.createElement(
    Vv,
    { onReadyPromise: m, fallback: o },
    an.createElement(Xv, { onPropsChanged: a, props: d }),
    r
  );
};
class Vo {
  #e;
  #r;
  #i;
  #t;
  #n;
  constructor(o, i) {
    this.#e = o, this.#r = /* @__PURE__ */ new Map(), this.#i = i ?? {}, this.#t = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map();
  }
  subscribeToEvent(o, i, a) {
    return this.#t.has(o) || this.#t.set(o, {}), this.#t.get(o)[i] || (this.#t.get(o)[i] = /* @__PURE__ */ new Set()), this.#t.get(o)[i].add(a), this.#e.props.updateOverrides(o, {
      [i]: (f) => {
        const d = typeof f == "object" ? { ...f, type: f.type, data: f.data, compId: this.scopeId } : f;
        this.#t.get(o)[i].forEach((m) => m(d));
      }
    }), this.#n.forEach((f) => {
      f.props.getOverrides(o) && f.subscribeToEvent(o, i, a);
    }), () => {
      this.#t.get(o)[i].delete(a), this.#t.get(o)[i].size === 0 && this.#e.props.updateOverrides(o, { [i]: void 0 });
    };
  }
  getSdkData(o) {
    return this.#i[o];
  }
  get state() {
    return this.#r;
  }
  get stateStore() {
    return this.#e;
  }
  get props() {
    return this.#e.props;
  }
  get deletedComponents() {
    return this.#e.deletedComponents;
  }
  get styles() {
    return this.#e.styles;
  }
  get scopeId() {
    return this.#e.scopeId;
  }
  get scopedStores() {
    return this.#n;
  }
  createScopedStore(o, i) {
    const a = this.#n.get(o);
    if (a)
      return a;
    const f = new Vo(this.#e.createScopedStore(o, i, () => this.#n.delete(o)), this.#i);
    return f.#r = this.#r, this.#n.set(o, f), f;
  }
  disposeScopedStore(o) {
    this.#e.disposeScopedStore(o), this.#n.delete(o);
  }
}
var Yt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
function jv(r) {
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
}
function rl(r) {
  if (r.__esModule) return r;
  var o = r.default;
  if (typeof o == "function") {
    var i = function a() {
      return this instanceof a ? Reflect.construct(o, arguments, this.constructor) : o.apply(this, arguments);
    };
    i.prototype = o.prototype;
  } else i = {};
  return Object.defineProperty(i, "__esModule", { value: !0 }), Object.keys(r).forEach(function(a) {
    var f = Object.getOwnPropertyDescriptor(r, a);
    Object.defineProperty(i, a, f.get ? f : {
      enumerable: !0,
      get: function() {
        return r[a];
      }
    });
  }), i;
}
var il = {}, Wo = function(r, o) {
  return Wo = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(i, a) {
    i.__proto__ = a;
  } || function(i, a) {
    for (var f in a) Object.prototype.hasOwnProperty.call(a, f) && (i[f] = a[f]);
  }, Wo(r, o);
};
function ol(r, o) {
  if (typeof o != "function" && o !== null)
    throw new TypeError("Class extends value " + String(o) + " is not a constructor or null");
  Wo(r, o);
  function i() {
    this.constructor = r;
  }
  r.prototype = o === null ? Object.create(o) : (i.prototype = o.prototype, new i());
}
var ni = function() {
  return ni = Object.assign || function(o) {
    for (var i, a = 1, f = arguments.length; a < f; a++) {
      i = arguments[a];
      for (var d in i) Object.prototype.hasOwnProperty.call(i, d) && (o[d] = i[d]);
    }
    return o;
  }, ni.apply(this, arguments);
};
function sl(r, o) {
  var i = {};
  for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && o.indexOf(a) < 0 && (i[a] = r[a]);
  if (r != null && typeof Object.getOwnPropertySymbols == "function")
    for (var f = 0, a = Object.getOwnPropertySymbols(r); f < a.length; f++)
      o.indexOf(a[f]) < 0 && Object.prototype.propertyIsEnumerable.call(r, a[f]) && (i[a[f]] = r[a[f]]);
  return i;
}
function al(r, o, i, a) {
  var f = arguments.length, d = f < 3 ? o : a === null ? a = Object.getOwnPropertyDescriptor(o, i) : a, m;
  if (typeof Reflect == "object" && typeof Reflect.decorate == "function") d = Reflect.decorate(r, o, i, a);
  else for (var _ = r.length - 1; _ >= 0; _--) (m = r[_]) && (d = (f < 3 ? m(d) : f > 3 ? m(o, i, d) : m(o, i)) || d);
  return f > 3 && d && Object.defineProperty(o, i, d), d;
}
function ul(r, o) {
  return function(i, a) {
    o(i, a, r);
  };
}
function ll(r, o, i, a, f, d) {
  function m(Z) {
    if (Z !== void 0 && typeof Z != "function") throw new TypeError("Function expected");
    return Z;
  }
  for (var _ = a.kind, w = _ === "getter" ? "get" : _ === "setter" ? "set" : "value", y = !o && r ? a.static ? r : r.prototype : null, P = o || (y ? Object.getOwnPropertyDescriptor(y, a.name) : {}), T, K = !1, E = i.length - 1; E >= 0; E--) {
    var I = {};
    for (var R in a) I[R] = R === "access" ? {} : a[R];
    for (var R in a.access) I.access[R] = a.access[R];
    I.addInitializer = function(Z) {
      if (K) throw new TypeError("Cannot add initializers after decoration has completed");
      d.push(m(Z || null));
    };
    var W = (0, i[E])(_ === "accessor" ? { get: P.get, set: P.set } : P[w], I);
    if (_ === "accessor") {
      if (W === void 0) continue;
      if (W === null || typeof W != "object") throw new TypeError("Object expected");
      (T = m(W.get)) && (P.get = T), (T = m(W.set)) && (P.set = T), (T = m(W.init)) && f.unshift(T);
    } else (T = m(W)) && (_ === "field" ? f.unshift(T) : P[w] = T);
  }
  y && Object.defineProperty(y, a.name, P), K = !0;
}
function cl(r, o, i) {
  for (var a = arguments.length > 2, f = 0; f < o.length; f++)
    i = a ? o[f].call(r, i) : o[f].call(r);
  return a ? i : void 0;
}
function fl(r) {
  return typeof r == "symbol" ? r : "".concat(r);
}
function dl(r, o, i) {
  return typeof o == "symbol" && (o = o.description ? "[".concat(o.description, "]") : ""), Object.defineProperty(r, "name", { configurable: !0, value: i ? "".concat(i, " ", o) : o });
}
function hl(r, o) {
  if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(r, o);
}
function pl(r, o, i, a) {
  function f(d) {
    return d instanceof i ? d : new i(function(m) {
      m(d);
    });
  }
  return new (i || (i = Promise))(function(d, m) {
    function _(P) {
      try {
        y(a.next(P));
      } catch (T) {
        m(T);
      }
    }
    function w(P) {
      try {
        y(a.throw(P));
      } catch (T) {
        m(T);
      }
    }
    function y(P) {
      P.done ? d(P.value) : f(P.value).then(_, w);
    }
    y((a = a.apply(r, o || [])).next());
  });
}
function _l(r, o) {
  var i = { label: 0, sent: function() {
    if (d[0] & 1) throw d[1];
    return d[1];
  }, trys: [], ops: [] }, a, f, d, m = Object.create((typeof Iterator == "function" ? Iterator : Object).prototype);
  return m.next = _(0), m.throw = _(1), m.return = _(2), typeof Symbol == "function" && (m[Symbol.iterator] = function() {
    return this;
  }), m;
  function _(y) {
    return function(P) {
      return w([y, P]);
    };
  }
  function w(y) {
    if (a) throw new TypeError("Generator is already executing.");
    for (; m && (m = 0, y[0] && (i = 0)), i; ) try {
      if (a = 1, f && (d = y[0] & 2 ? f.return : y[0] ? f.throw || ((d = f.return) && d.call(f), 0) : f.next) && !(d = d.call(f, y[1])).done) return d;
      switch (f = 0, d && (y = [y[0] & 2, d.value]), y[0]) {
        case 0:
        case 1:
          d = y;
          break;
        case 4:
          return i.label++, { value: y[1], done: !1 };
        case 5:
          i.label++, f = y[1], y = [0];
          continue;
        case 7:
          y = i.ops.pop(), i.trys.pop();
          continue;
        default:
          if (d = i.trys, !(d = d.length > 0 && d[d.length - 1]) && (y[0] === 6 || y[0] === 2)) {
            i = 0;
            continue;
          }
          if (y[0] === 3 && (!d || y[1] > d[0] && y[1] < d[3])) {
            i.label = y[1];
            break;
          }
          if (y[0] === 6 && i.label < d[1]) {
            i.label = d[1], d = y;
            break;
          }
          if (d && i.label < d[2]) {
            i.label = d[2], i.ops.push(y);
            break;
          }
          d[2] && i.ops.pop(), i.trys.pop();
          continue;
      }
      y = o.call(r, i);
    } catch (P) {
      y = [6, P], f = 0;
    } finally {
      a = d = 0;
    }
    if (y[0] & 5) throw y[1];
    return { value: y[0] ? y[1] : void 0, done: !0 };
  }
}
var si = Object.create ? function(r, o, i, a) {
  a === void 0 && (a = i);
  var f = Object.getOwnPropertyDescriptor(o, i);
  (!f || ("get" in f ? !o.__esModule : f.writable || f.configurable)) && (f = { enumerable: !0, get: function() {
    return o[i];
  } }), Object.defineProperty(r, a, f);
} : function(r, o, i, a) {
  a === void 0 && (a = i), r[a] = o[i];
};
function gl(r, o) {
  for (var i in r) i !== "default" && !Object.prototype.hasOwnProperty.call(o, i) && si(o, r, i);
}
function ri(r) {
  var o = typeof Symbol == "function" && Symbol.iterator, i = o && r[o], a = 0;
  if (i) return i.call(r);
  if (r && typeof r.length == "number") return {
    next: function() {
      return r && a >= r.length && (r = void 0), { value: r && r[a++], done: !r };
    }
  };
  throw new TypeError(o ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function qo(r, o) {
  var i = typeof Symbol == "function" && r[Symbol.iterator];
  if (!i) return r;
  var a = i.call(r), f, d = [], m;
  try {
    for (; (o === void 0 || o-- > 0) && !(f = a.next()).done; ) d.push(f.value);
  } catch (_) {
    m = { error: _ };
  } finally {
    try {
      f && !f.done && (i = a.return) && i.call(a);
    } finally {
      if (m) throw m.error;
    }
  }
  return d;
}
function vl() {
  for (var r = [], o = 0; o < arguments.length; o++)
    r = r.concat(qo(arguments[o]));
  return r;
}
function ml() {
  for (var r = 0, o = 0, i = arguments.length; o < i; o++) r += arguments[o].length;
  for (var a = Array(r), f = 0, o = 0; o < i; o++)
    for (var d = arguments[o], m = 0, _ = d.length; m < _; m++, f++)
      a[f] = d[m];
  return a;
}
function yl(r, o, i) {
  if (i || arguments.length === 2) for (var a = 0, f = o.length, d; a < f; a++)
    (d || !(a in o)) && (d || (d = Array.prototype.slice.call(o, 0, a)), d[a] = o[a]);
  return r.concat(d || Array.prototype.slice.call(o));
}
function Bn(r) {
  return this instanceof Bn ? (this.v = r, this) : new Bn(r);
}
function bl(r, o, i) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var a = i.apply(r, o || []), f, d = [];
  return f = Object.create((typeof AsyncIterator == "function" ? AsyncIterator : Object).prototype), _("next"), _("throw"), _("return", m), f[Symbol.asyncIterator] = function() {
    return this;
  }, f;
  function m(E) {
    return function(I) {
      return Promise.resolve(I).then(E, T);
    };
  }
  function _(E, I) {
    a[E] && (f[E] = function(R) {
      return new Promise(function(W, Z) {
        d.push([E, R, W, Z]) > 1 || w(E, R);
      });
    }, I && (f[E] = I(f[E])));
  }
  function w(E, I) {
    try {
      y(a[E](I));
    } catch (R) {
      K(d[0][3], R);
    }
  }
  function y(E) {
    E.value instanceof Bn ? Promise.resolve(E.value.v).then(P, T) : K(d[0][2], E);
  }
  function P(E) {
    w("next", E);
  }
  function T(E) {
    w("throw", E);
  }
  function K(E, I) {
    E(I), d.shift(), d.length && w(d[0][0], d[0][1]);
  }
}
function wl(r) {
  var o, i;
  return o = {}, a("next"), a("throw", function(f) {
    throw f;
  }), a("return"), o[Symbol.iterator] = function() {
    return this;
  }, o;
  function a(f, d) {
    o[f] = r[f] ? function(m) {
      return (i = !i) ? { value: Bn(r[f](m)), done: !1 } : d ? d(m) : m;
    } : d;
  }
}
function El(r) {
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
  var o = r[Symbol.asyncIterator], i;
  return o ? o.call(r) : (r = typeof ri == "function" ? ri(r) : r[Symbol.iterator](), i = {}, a("next"), a("throw"), a("return"), i[Symbol.asyncIterator] = function() {
    return this;
  }, i);
  function a(d) {
    i[d] = r[d] && function(m) {
      return new Promise(function(_, w) {
        m = r[d](m), f(_, w, m.done, m.value);
      });
    };
  }
  function f(d, m, _, w) {
    Promise.resolve(w).then(function(y) {
      d({ value: y, done: _ });
    }, m);
  }
}
function Sl(r, o) {
  return Object.defineProperty ? Object.defineProperty(r, "raw", { value: o }) : r.raw = o, r;
}
var zv = Object.create ? function(r, o) {
  Object.defineProperty(r, "default", { enumerable: !0, value: o });
} : function(r, o) {
  r.default = o;
}, Bo = function(r) {
  return Bo = Object.getOwnPropertyNames || function(o) {
    var i = [];
    for (var a in o) Object.prototype.hasOwnProperty.call(o, a) && (i[i.length] = a);
    return i;
  }, Bo(r);
};
function Ll(r) {
  if (r && r.__esModule) return r;
  var o = {};
  if (r != null) for (var i = Bo(r), a = 0; a < i.length; a++) i[a] !== "default" && si(o, r, i[a]);
  return zv(o, r), o;
}
function Ol(r) {
  return r && r.__esModule ? r : { default: r };
}
function Al(r, o, i, a) {
  if (i === "a" && !a) throw new TypeError("Private accessor was defined without a getter");
  if (typeof o == "function" ? r !== o || !a : !o.has(r)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
  return i === "m" ? a : i === "a" ? a.call(r) : a ? a.value : o.get(r);
}
function Tl(r, o, i, a, f) {
  if (a === "m") throw new TypeError("Private method is not writable");
  if (a === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
  if (typeof o == "function" ? r !== o || !f : !o.has(r)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
  return a === "a" ? f.call(r, i) : f ? f.value = i : o.set(r, i), i;
}
function Il(r, o) {
  if (o === null || typeof o != "object" && typeof o != "function") throw new TypeError("Cannot use 'in' operator on non-object");
  return typeof r == "function" ? o === r : r.has(o);
}
function Pl(r, o, i) {
  if (o != null) {
    if (typeof o != "object" && typeof o != "function") throw new TypeError("Object expected.");
    var a, f;
    if (i) {
      if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
      a = o[Symbol.asyncDispose];
    }
    if (a === void 0) {
      if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
      a = o[Symbol.dispose], i && (f = a);
    }
    if (typeof a != "function") throw new TypeError("Object not disposable.");
    f && (a = function() {
      try {
        f.call(this);
      } catch (d) {
        return Promise.reject(d);
      }
    }), r.stack.push({ value: o, dispose: a, async: i });
  } else i && r.stack.push({ async: !0 });
  return o;
}
var Zv = typeof SuppressedError == "function" ? SuppressedError : function(r, o, i) {
  var a = new Error(i);
  return a.name = "SuppressedError", a.error = r, a.suppressed = o, a;
};
function $l(r) {
  function o(d) {
    r.error = r.hasError ? new Zv(d, r.error, "An error was suppressed during disposal.") : d, r.hasError = !0;
  }
  var i, a = 0;
  function f() {
    for (; i = r.stack.pop(); )
      try {
        if (!i.async && a === 1) return a = 0, r.stack.push(i), Promise.resolve().then(f);
        if (i.dispose) {
          var d = i.dispose.call(i.value);
          if (i.async) return a |= 2, Promise.resolve(d).then(f, function(m) {
            return o(m), f();
          });
        } else a |= 1;
      } catch (m) {
        o(m);
      }
    if (a === 1) return r.hasError ? Promise.reject(r.error) : Promise.resolve();
    if (r.hasError) throw r.error;
  }
  return f();
}
function Rl(r, o) {
  return typeof r == "string" && /^\.\.?\//.test(r) ? r.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(i, a, f, d, m) {
    return a ? o ? ".jsx" : ".js" : f && (!d || !m) ? i : f + d + "." + m.toLowerCase() + "js";
  }) : r;
}
const Qv = {
  __extends: ol,
  __assign: ni,
  __rest: sl,
  __decorate: al,
  __param: ul,
  __esDecorate: ll,
  __runInitializers: cl,
  __propKey: fl,
  __setFunctionName: dl,
  __metadata: hl,
  __awaiter: pl,
  __generator: _l,
  __createBinding: si,
  __exportStar: gl,
  __values: ri,
  __read: qo,
  __spread: vl,
  __spreadArrays: ml,
  __spreadArray: yl,
  __await: Bn,
  __asyncGenerator: bl,
  __asyncDelegator: wl,
  __asyncValues: El,
  __makeTemplateObject: Sl,
  __importStar: Ll,
  __importDefault: Ol,
  __classPrivateFieldGet: Al,
  __classPrivateFieldSet: Tl,
  __classPrivateFieldIn: Il,
  __addDisposableResource: Pl,
  __disposeResources: $l,
  __rewriteRelativeImportExtension: Rl
}, Jv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  __addDisposableResource: Pl,
  get __assign() {
    return ni;
  },
  __asyncDelegator: wl,
  __asyncGenerator: bl,
  __asyncValues: El,
  __await: Bn,
  __awaiter: pl,
  __classPrivateFieldGet: Al,
  __classPrivateFieldIn: Il,
  __classPrivateFieldSet: Tl,
  __createBinding: si,
  __decorate: al,
  __disposeResources: $l,
  __esDecorate: ll,
  __exportStar: gl,
  __extends: ol,
  __generator: _l,
  __importDefault: Ol,
  __importStar: Ll,
  __makeTemplateObject: Sl,
  __metadata: hl,
  __param: ul,
  __propKey: fl,
  __read: qo,
  __rest: sl,
  __rewriteRelativeImportExtension: Rl,
  __runInitializers: cl,
  __setFunctionName: dl,
  __spread: vl,
  __spreadArray: yl,
  __spreadArrays: ml,
  __values: ri,
  default: Qv
}, Symbol.toStringTag, { value: "Module" })), cr = /* @__PURE__ */ rl(Jv);
var ar = {}, xu;
function xl() {
  if (xu) return ar;
  xu = 1, Object.defineProperty(ar, "__esModule", { value: !0 }), ar.createStyleUtils = void 0;
  const r = {
    visibility: "hidden !important",
    overflow: "hidden !important",
    height: "0 !important",
    width: "0 !important",
    "min-width": "0 !important",
    "min-height": "0 !important",
    "margin-bottom": "0 !important",
    "margin-left": "0 !important",
    "margin-right": "0 !important",
    padding: "0 !important"
  }, o = {
    ...r,
    position: "absolute !important",
    "margin-top": "0 !important"
  }, i = {
    visibility: null,
    overflow: null,
    height: null,
    width: null,
    "min-width": null,
    "min-height": null,
    "margin-bottom": null,
    "margin-left": null,
    "margin-right": null,
    padding: null
  }, a = {
    ...i,
    position: null,
    "margin-top": null
  }, f = {
    visibility: "hidden !important"
  }, d = {
    visibility: null
  }, m = ({ isResponsive: _ }) => ({
    getCollapsedStyles: () => _ ? o : r,
    getExpandedStyles: () => _ ? a : i,
    getHiddenStyles: () => f,
    getShownStyles: () => d
  });
  return ar.createStyleUtils = m, ar;
}
var Po = {}, ai = {}, Nn = {}, fr = {}, em = {};
const tm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  wixContext: em
}, Symbol.toStringTag, { value: "Module" })), nm = /* @__PURE__ */ rl(tm);
var Gn = {};
Object.defineProperty(Gn, "__esModule", { value: !0 });
Gn.ThreadMode = void 0;
Gn.defineService = rm;
Gn.implementService = Cl;
var Cu;
(function(r) {
  r[r.MAIN = 0] = "MAIN", r[r.REMOTE = 1] = "REMOTE";
})(Cu || (Gn.ThreadMode = Cu = {}));
function rm(r) {
  return r;
}
function Cl(r, o) {
  return o;
}
Cl.withConfig = function() {
  return function(r, o) {
    return o;
  };
};
(function(r) {
  Object.defineProperty(r, "__esModule", { value: !0 }), r.resolveSignalsReadyFromContext = r.resolveServiceGetterFromContext = r.implementService = r.defineService = void 0;
  const o = nm;
  var i = Gn;
  Object.defineProperty(r, "defineService", { enumerable: !0, get: function() {
    return i.defineService;
  } }), Object.defineProperty(r, "implementService", { enumerable: !0, get: function() {
    return i.implementService;
  } });
  const a = () => o.wixContext?.getService || globalThis?.__wix_context__?.getService;
  r.resolveServiceGetterFromContext = a;
  const f = () => (o.wixContext?.awaitRemoteSignals || globalThis?.__wix_context__?.awaitRemoteSignals || (() => Promise.resolve()))();
  r.resolveSignalsReadyFromContext = f;
})(fr);
Object.defineProperty(Nn, "__esModule", { value: !0 });
Nn.implementStaticService = Nn.defineStaticService = void 0;
const Ul = fr;
Nn.defineStaticService = Ul.defineService;
Nn.implementStaticService = Ul.implementService;
(function(r) {
  var o = Yt && Yt.__createBinding || (Object.create ? function(a, f, d, m) {
    m === void 0 && (m = d);
    var _ = Object.getOwnPropertyDescriptor(f, d);
    (!_ || ("get" in _ ? !f.__esModule : _.writable || _.configurable)) && (_ = { enumerable: !0, get: function() {
      return f[d];
    } }), Object.defineProperty(a, m, _);
  } : function(a, f, d, m) {
    m === void 0 && (m = d), a[m] = f[d];
  }), i = Yt && Yt.__exportStar || function(a, f) {
    for (var d in a) d !== "default" && !Object.prototype.hasOwnProperty.call(f, d) && o(f, a, d);
  };
  Object.defineProperty(r, "__esModule", { value: !0 }), i(Nn, r);
})(ai);
var Uu;
function im() {
  return Uu || (Uu = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.StyleUtilsService = r.StyleUtilsDefinition = void 0;
    const o = ai, i = xl();
    r.StyleUtilsDefinition = (0, o.defineStaticService)("viewer-core/style-utils"), r.StyleUtilsService = (0, o.implementStaticService)(r.StyleUtilsDefinition, ({ config: a }) => (0, i.createStyleUtils)(a));
  }(Po)), Po;
}
var $o = {}, Du;
function om() {
  return Du || (Du = 1, Object.defineProperty($o, "__esModule", { value: !0 })), $o;
}
(function(r) {
  Object.defineProperty(r, "__esModule", { value: !0 });
  const o = cr;
  o.__exportStar(xl(), r), o.__exportStar(im(), r), o.__exportStar(om(), r);
})(il);
var Dl = {}, yn = {}, ii = { exports: {} };
ii.exports;
(function(r, o) {
  (function() {
    var i, a = "4.17.21", f = 200, d = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", m = "Expected a function", _ = "Invalid `variable` option passed into `_.template`", w = "__lodash_hash_undefined__", y = 500, P = "__lodash_placeholder__", T = 1, K = 2, E = 4, I = 1, R = 2, W = 1, Z = 2, k = 4, F = 8, J = 16, pe = 32, q = 64, ae = 128, ve = 256, D = 512, Pe = 30, Be = "...", Ae = 800, Xe = 16, Ot = 1, $ = 2, G = 3, ie = 1 / 0, le = 9007199254740991, C = 17976931348623157e292, B = NaN, X = 4294967295, ce = X - 1, Le = X >>> 1, $e = [
      ["ary", ae],
      ["bind", W],
      ["bindKey", Z],
      ["curry", F],
      ["curryRight", J],
      ["flip", D],
      ["partial", pe],
      ["partialRight", q],
      ["rearg", ve]
    ], Te = "[object Arguments]", Fe = "[object Array]", At = "[object AsyncFunction]", Ze = "[object Boolean]", ut = "[object Date]", Xt = "[object DOMException]", Mt = "[object Error]", U = "[object Function]", V = "[object GeneratorFunction]", Q = "[object Map]", ge = "[object Number]", Ce = "[object Null]", be = "[object Object]", Ne = "[object Promise]", xt = "[object Proxy]", lt = "[object RegExp]", ke = "[object Set]", Tt = "[object String]", jt = "[object Symbol]", Kn = "[object Undefined]", un = "[object WeakMap]", Hn = "[object WeakSet]", zt = "[object ArrayBuffer]", Ft = "[object DataView]", En = "[object Float32Array]", ln = "[object Float64Array]", Vn = "[object Int8Array]", ci = "[object Int16Array]", fi = "[object Int32Array]", di = "[object Uint8Array]", hi = "[object Uint8ClampedArray]", pi = "[object Uint16Array]", _i = "[object Uint32Array]", ic = /\b__p \+= '';/g, oc = /\b(__p \+=) '' \+/g, sc = /(__e\(.*?\)|\b__t\)) \+\n'';/g, rs = /&(?:amp|lt|gt|quot|#39);/g, is = /[&<>"']/g, ac = RegExp(rs.source), uc = RegExp(is.source), lc = /<%-([\s\S]+?)%>/g, cc = /<%([\s\S]+?)%>/g, os = /<%=([\s\S]+?)%>/g, fc = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, dc = /^\w*$/, hc = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, gi = /[\\^$.*+?()[\]{}|]/g, pc = RegExp(gi.source), vi = /^\s+/, _c = /\s/, gc = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, vc = /\{\n\/\* \[wrapped with (.+)\] \*/, mc = /,? & /, yc = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, bc = /[()=,{}\[\]\/\s]/, wc = /\\(\\)?/g, Ec = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, ss = /\w*$/, Sc = /^[-+]0x[0-9a-f]+$/i, Lc = /^0b[01]+$/i, Oc = /^\[object .+?Constructor\]$/, Ac = /^0o[0-7]+$/i, Tc = /^(?:0|[1-9]\d*)$/, Ic = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, hr = /($^)/, Pc = /['\n\r\u2028\u2029\\]/g, pr = "\\ud800-\\udfff", $c = "\\u0300-\\u036f", Rc = "\\ufe20-\\ufe2f", xc = "\\u20d0-\\u20ff", as = $c + Rc + xc, us = "\\u2700-\\u27bf", ls = "a-z\\xdf-\\xf6\\xf8-\\xff", Cc = "\\xac\\xb1\\xd7\\xf7", Uc = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Dc = "\\u2000-\\u206f", Mc = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", cs = "A-Z\\xc0-\\xd6\\xd8-\\xde", fs = "\\ufe0e\\ufe0f", ds = Cc + Uc + Dc + Mc, mi = "['’]", Fc = "[" + pr + "]", hs = "[" + ds + "]", _r = "[" + as + "]", ps = "\\d+", kc = "[" + us + "]", _s = "[" + ls + "]", gs = "[^" + pr + ds + ps + us + ls + cs + "]", yi = "\\ud83c[\\udffb-\\udfff]", Wc = "(?:" + _r + "|" + yi + ")", vs = "[^" + pr + "]", bi = "(?:\\ud83c[\\udde6-\\uddff]){2}", wi = "[\\ud800-\\udbff][\\udc00-\\udfff]", Sn = "[" + cs + "]", ms = "\\u200d", ys = "(?:" + _s + "|" + gs + ")", Bc = "(?:" + Sn + "|" + gs + ")", bs = "(?:" + mi + "(?:d|ll|m|re|s|t|ve))?", ws = "(?:" + mi + "(?:D|LL|M|RE|S|T|VE))?", Es = Wc + "?", Ss = "[" + fs + "]?", Nc = "(?:" + ms + "(?:" + [vs, bi, wi].join("|") + ")" + Ss + Es + ")*", Gc = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Kc = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Ls = Ss + Es + Nc, Hc = "(?:" + [kc, bi, wi].join("|") + ")" + Ls, Vc = "(?:" + [vs + _r + "?", _r, bi, wi, Fc].join("|") + ")", qc = RegExp(mi, "g"), Yc = RegExp(_r, "g"), Ei = RegExp(yi + "(?=" + yi + ")|" + Vc + Ls, "g"), Xc = RegExp([
      Sn + "?" + _s + "+" + bs + "(?=" + [hs, Sn, "$"].join("|") + ")",
      Bc + "+" + ws + "(?=" + [hs, Sn + ys, "$"].join("|") + ")",
      Sn + "?" + ys + "+" + bs,
      Sn + "+" + ws,
      Kc,
      Gc,
      ps,
      Hc
    ].join("|"), "g"), jc = RegExp("[" + ms + pr + as + fs + "]"), zc = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, Zc = [
      "Array",
      "Buffer",
      "DataView",
      "Date",
      "Error",
      "Float32Array",
      "Float64Array",
      "Function",
      "Int8Array",
      "Int16Array",
      "Int32Array",
      "Map",
      "Math",
      "Object",
      "Promise",
      "RegExp",
      "Set",
      "String",
      "Symbol",
      "TypeError",
      "Uint8Array",
      "Uint8ClampedArray",
      "Uint16Array",
      "Uint32Array",
      "WeakMap",
      "_",
      "clearTimeout",
      "isFinite",
      "parseInt",
      "setTimeout"
    ], Qc = -1, Oe = {};
    Oe[En] = Oe[ln] = Oe[Vn] = Oe[ci] = Oe[fi] = Oe[di] = Oe[hi] = Oe[pi] = Oe[_i] = !0, Oe[Te] = Oe[Fe] = Oe[zt] = Oe[Ze] = Oe[Ft] = Oe[ut] = Oe[Mt] = Oe[U] = Oe[Q] = Oe[ge] = Oe[be] = Oe[lt] = Oe[ke] = Oe[Tt] = Oe[un] = !1;
    var Se = {};
    Se[Te] = Se[Fe] = Se[zt] = Se[Ft] = Se[Ze] = Se[ut] = Se[En] = Se[ln] = Se[Vn] = Se[ci] = Se[fi] = Se[Q] = Se[ge] = Se[be] = Se[lt] = Se[ke] = Se[Tt] = Se[jt] = Se[di] = Se[hi] = Se[pi] = Se[_i] = !0, Se[Mt] = Se[U] = Se[un] = !1;
    var Jc = {
      // Latin-1 Supplement block.
      À: "A",
      Á: "A",
      Â: "A",
      Ã: "A",
      Ä: "A",
      Å: "A",
      à: "a",
      á: "a",
      â: "a",
      ã: "a",
      ä: "a",
      å: "a",
      Ç: "C",
      ç: "c",
      Ð: "D",
      ð: "d",
      È: "E",
      É: "E",
      Ê: "E",
      Ë: "E",
      è: "e",
      é: "e",
      ê: "e",
      ë: "e",
      Ì: "I",
      Í: "I",
      Î: "I",
      Ï: "I",
      ì: "i",
      í: "i",
      î: "i",
      ï: "i",
      Ñ: "N",
      ñ: "n",
      Ò: "O",
      Ó: "O",
      Ô: "O",
      Õ: "O",
      Ö: "O",
      Ø: "O",
      ò: "o",
      ó: "o",
      ô: "o",
      õ: "o",
      ö: "o",
      ø: "o",
      Ù: "U",
      Ú: "U",
      Û: "U",
      Ü: "U",
      ù: "u",
      ú: "u",
      û: "u",
      ü: "u",
      Ý: "Y",
      ý: "y",
      ÿ: "y",
      Æ: "Ae",
      æ: "ae",
      Þ: "Th",
      þ: "th",
      ß: "ss",
      // Latin Extended-A block.
      Ā: "A",
      Ă: "A",
      Ą: "A",
      ā: "a",
      ă: "a",
      ą: "a",
      Ć: "C",
      Ĉ: "C",
      Ċ: "C",
      Č: "C",
      ć: "c",
      ĉ: "c",
      ċ: "c",
      č: "c",
      Ď: "D",
      Đ: "D",
      ď: "d",
      đ: "d",
      Ē: "E",
      Ĕ: "E",
      Ė: "E",
      Ę: "E",
      Ě: "E",
      ē: "e",
      ĕ: "e",
      ė: "e",
      ę: "e",
      ě: "e",
      Ĝ: "G",
      Ğ: "G",
      Ġ: "G",
      Ģ: "G",
      ĝ: "g",
      ğ: "g",
      ġ: "g",
      ģ: "g",
      Ĥ: "H",
      Ħ: "H",
      ĥ: "h",
      ħ: "h",
      Ĩ: "I",
      Ī: "I",
      Ĭ: "I",
      Į: "I",
      İ: "I",
      ĩ: "i",
      ī: "i",
      ĭ: "i",
      į: "i",
      ı: "i",
      Ĵ: "J",
      ĵ: "j",
      Ķ: "K",
      ķ: "k",
      ĸ: "k",
      Ĺ: "L",
      Ļ: "L",
      Ľ: "L",
      Ŀ: "L",
      Ł: "L",
      ĺ: "l",
      ļ: "l",
      ľ: "l",
      ŀ: "l",
      ł: "l",
      Ń: "N",
      Ņ: "N",
      Ň: "N",
      Ŋ: "N",
      ń: "n",
      ņ: "n",
      ň: "n",
      ŋ: "n",
      Ō: "O",
      Ŏ: "O",
      Ő: "O",
      ō: "o",
      ŏ: "o",
      ő: "o",
      Ŕ: "R",
      Ŗ: "R",
      Ř: "R",
      ŕ: "r",
      ŗ: "r",
      ř: "r",
      Ś: "S",
      Ŝ: "S",
      Ş: "S",
      Š: "S",
      ś: "s",
      ŝ: "s",
      ş: "s",
      š: "s",
      Ţ: "T",
      Ť: "T",
      Ŧ: "T",
      ţ: "t",
      ť: "t",
      ŧ: "t",
      Ũ: "U",
      Ū: "U",
      Ŭ: "U",
      Ů: "U",
      Ű: "U",
      Ų: "U",
      ũ: "u",
      ū: "u",
      ŭ: "u",
      ů: "u",
      ű: "u",
      ų: "u",
      Ŵ: "W",
      ŵ: "w",
      Ŷ: "Y",
      ŷ: "y",
      Ÿ: "Y",
      Ź: "Z",
      Ż: "Z",
      Ž: "Z",
      ź: "z",
      ż: "z",
      ž: "z",
      Ĳ: "IJ",
      ĳ: "ij",
      Œ: "Oe",
      œ: "oe",
      ŉ: "'n",
      ſ: "s"
    }, ef = {
      "&": "&amp;",
      "<": "&lt;",
      ">": "&gt;",
      '"': "&quot;",
      "'": "&#39;"
    }, tf = {
      "&amp;": "&",
      "&lt;": "<",
      "&gt;": ">",
      "&quot;": '"',
      "&#39;": "'"
    }, nf = {
      "\\": "\\",
      "'": "'",
      "\n": "n",
      "\r": "r",
      "\u2028": "u2028",
      "\u2029": "u2029"
    }, rf = parseFloat, of = parseInt, Os = typeof Yt == "object" && Yt && Yt.Object === Object && Yt, sf = typeof self == "object" && self && self.Object === Object && self, qe = Os || sf || Function("return this")(), Si = o && !o.nodeType && o, cn = Si && !0 && r && !r.nodeType && r, As = cn && cn.exports === Si, Li = As && Os.process, gt = function() {
      try {
        var g = cn && cn.require && cn.require("util").types;
        return g || Li && Li.binding && Li.binding("util");
      } catch {
      }
    }(), Ts = gt && gt.isArrayBuffer, Is = gt && gt.isDate, Ps = gt && gt.isMap, $s = gt && gt.isRegExp, Rs = gt && gt.isSet, xs = gt && gt.isTypedArray;
    function ct(g, S, b) {
      switch (b.length) {
        case 0:
          return g.call(S);
        case 1:
          return g.call(S, b[0]);
        case 2:
          return g.call(S, b[0], b[1]);
        case 3:
          return g.call(S, b[0], b[1], b[2]);
      }
      return g.apply(S, b);
    }
    function af(g, S, b, M) {
      for (var ee = -1, me = g == null ? 0 : g.length; ++ee < me; ) {
        var Ge = g[ee];
        S(M, Ge, b(Ge), g);
      }
      return M;
    }
    function vt(g, S) {
      for (var b = -1, M = g == null ? 0 : g.length; ++b < M && S(g[b], b, g) !== !1; )
        ;
      return g;
    }
    function uf(g, S) {
      for (var b = g == null ? 0 : g.length; b-- && S(g[b], b, g) !== !1; )
        ;
      return g;
    }
    function Cs(g, S) {
      for (var b = -1, M = g == null ? 0 : g.length; ++b < M; )
        if (!S(g[b], b, g))
          return !1;
      return !0;
    }
    function Zt(g, S) {
      for (var b = -1, M = g == null ? 0 : g.length, ee = 0, me = []; ++b < M; ) {
        var Ge = g[b];
        S(Ge, b, g) && (me[ee++] = Ge);
      }
      return me;
    }
    function gr(g, S) {
      var b = g == null ? 0 : g.length;
      return !!b && Ln(g, S, 0) > -1;
    }
    function Oi(g, S, b) {
      for (var M = -1, ee = g == null ? 0 : g.length; ++M < ee; )
        if (b(S, g[M]))
          return !0;
      return !1;
    }
    function Ie(g, S) {
      for (var b = -1, M = g == null ? 0 : g.length, ee = Array(M); ++b < M; )
        ee[b] = S(g[b], b, g);
      return ee;
    }
    function Qt(g, S) {
      for (var b = -1, M = S.length, ee = g.length; ++b < M; )
        g[ee + b] = S[b];
      return g;
    }
    function Ai(g, S, b, M) {
      var ee = -1, me = g == null ? 0 : g.length;
      for (M && me && (b = g[++ee]); ++ee < me; )
        b = S(b, g[ee], ee, g);
      return b;
    }
    function lf(g, S, b, M) {
      var ee = g == null ? 0 : g.length;
      for (M && ee && (b = g[--ee]); ee--; )
        b = S(b, g[ee], ee, g);
      return b;
    }
    function Ti(g, S) {
      for (var b = -1, M = g == null ? 0 : g.length; ++b < M; )
        if (S(g[b], b, g))
          return !0;
      return !1;
    }
    var cf = Ii("length");
    function ff(g) {
      return g.split("");
    }
    function df(g) {
      return g.match(yc) || [];
    }
    function Us(g, S, b) {
      var M;
      return b(g, function(ee, me, Ge) {
        if (S(ee, me, Ge))
          return M = me, !1;
      }), M;
    }
    function vr(g, S, b, M) {
      for (var ee = g.length, me = b + (M ? 1 : -1); M ? me-- : ++me < ee; )
        if (S(g[me], me, g))
          return me;
      return -1;
    }
    function Ln(g, S, b) {
      return S === S ? Lf(g, S, b) : vr(g, Ds, b);
    }
    function hf(g, S, b, M) {
      for (var ee = b - 1, me = g.length; ++ee < me; )
        if (M(g[ee], S))
          return ee;
      return -1;
    }
    function Ds(g) {
      return g !== g;
    }
    function Ms(g, S) {
      var b = g == null ? 0 : g.length;
      return b ? $i(g, S) / b : B;
    }
    function Ii(g) {
      return function(S) {
        return S == null ? i : S[g];
      };
    }
    function Pi(g) {
      return function(S) {
        return g == null ? i : g[S];
      };
    }
    function Fs(g, S, b, M, ee) {
      return ee(g, function(me, Ge, Ee) {
        b = M ? (M = !1, me) : S(b, me, Ge, Ee);
      }), b;
    }
    function pf(g, S) {
      var b = g.length;
      for (g.sort(S); b--; )
        g[b] = g[b].value;
      return g;
    }
    function $i(g, S) {
      for (var b, M = -1, ee = g.length; ++M < ee; ) {
        var me = S(g[M]);
        me !== i && (b = b === i ? me : b + me);
      }
      return b;
    }
    function Ri(g, S) {
      for (var b = -1, M = Array(g); ++b < g; )
        M[b] = S(b);
      return M;
    }
    function _f(g, S) {
      return Ie(S, function(b) {
        return [b, g[b]];
      });
    }
    function ks(g) {
      return g && g.slice(0, Gs(g) + 1).replace(vi, "");
    }
    function ft(g) {
      return function(S) {
        return g(S);
      };
    }
    function xi(g, S) {
      return Ie(S, function(b) {
        return g[b];
      });
    }
    function qn(g, S) {
      return g.has(S);
    }
    function Ws(g, S) {
      for (var b = -1, M = g.length; ++b < M && Ln(S, g[b], 0) > -1; )
        ;
      return b;
    }
    function Bs(g, S) {
      for (var b = g.length; b-- && Ln(S, g[b], 0) > -1; )
        ;
      return b;
    }
    function gf(g, S) {
      for (var b = g.length, M = 0; b--; )
        g[b] === S && ++M;
      return M;
    }
    var vf = Pi(Jc), mf = Pi(ef);
    function yf(g) {
      return "\\" + nf[g];
    }
    function bf(g, S) {
      return g == null ? i : g[S];
    }
    function On(g) {
      return jc.test(g);
    }
    function wf(g) {
      return zc.test(g);
    }
    function Ef(g) {
      for (var S, b = []; !(S = g.next()).done; )
        b.push(S.value);
      return b;
    }
    function Ci(g) {
      var S = -1, b = Array(g.size);
      return g.forEach(function(M, ee) {
        b[++S] = [ee, M];
      }), b;
    }
    function Ns(g, S) {
      return function(b) {
        return g(S(b));
      };
    }
    function Jt(g, S) {
      for (var b = -1, M = g.length, ee = 0, me = []; ++b < M; ) {
        var Ge = g[b];
        (Ge === S || Ge === P) && (g[b] = P, me[ee++] = b);
      }
      return me;
    }
    function mr(g) {
      var S = -1, b = Array(g.size);
      return g.forEach(function(M) {
        b[++S] = M;
      }), b;
    }
    function Sf(g) {
      var S = -1, b = Array(g.size);
      return g.forEach(function(M) {
        b[++S] = [M, M];
      }), b;
    }
    function Lf(g, S, b) {
      for (var M = b - 1, ee = g.length; ++M < ee; )
        if (g[M] === S)
          return M;
      return -1;
    }
    function Of(g, S, b) {
      for (var M = b + 1; M--; )
        if (g[M] === S)
          return M;
      return M;
    }
    function An(g) {
      return On(g) ? Tf(g) : cf(g);
    }
    function It(g) {
      return On(g) ? If(g) : ff(g);
    }
    function Gs(g) {
      for (var S = g.length; S-- && _c.test(g.charAt(S)); )
        ;
      return S;
    }
    var Af = Pi(tf);
    function Tf(g) {
      for (var S = Ei.lastIndex = 0; Ei.test(g); )
        ++S;
      return S;
    }
    function If(g) {
      return g.match(Ei) || [];
    }
    function Pf(g) {
      return g.match(Xc) || [];
    }
    var $f = function g(S) {
      S = S == null ? qe : Tn.defaults(qe.Object(), S, Tn.pick(qe, Zc));
      var b = S.Array, M = S.Date, ee = S.Error, me = S.Function, Ge = S.Math, Ee = S.Object, Ui = S.RegExp, Rf = S.String, mt = S.TypeError, yr = b.prototype, xf = me.prototype, In = Ee.prototype, br = S["__core-js_shared__"], wr = xf.toString, we = In.hasOwnProperty, Cf = 0, Ks = function() {
        var e = /[^.]+$/.exec(br && br.keys && br.keys.IE_PROTO || "");
        return e ? "Symbol(src)_1." + e : "";
      }(), Er = In.toString, Uf = wr.call(Ee), Df = qe._, Mf = Ui(
        "^" + wr.call(we).replace(gi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
      ), Sr = As ? S.Buffer : i, en = S.Symbol, Lr = S.Uint8Array, Hs = Sr ? Sr.allocUnsafe : i, Or = Ns(Ee.getPrototypeOf, Ee), Vs = Ee.create, qs = In.propertyIsEnumerable, Ar = yr.splice, Ys = en ? en.isConcatSpreadable : i, Yn = en ? en.iterator : i, fn = en ? en.toStringTag : i, Tr = function() {
        try {
          var e = gn(Ee, "defineProperty");
          return e({}, "", {}), e;
        } catch {
        }
      }(), Ff = S.clearTimeout !== qe.clearTimeout && S.clearTimeout, kf = M && M.now !== qe.Date.now && M.now, Wf = S.setTimeout !== qe.setTimeout && S.setTimeout, Ir = Ge.ceil, Pr = Ge.floor, Di = Ee.getOwnPropertySymbols, Bf = Sr ? Sr.isBuffer : i, Xs = S.isFinite, Nf = yr.join, Gf = Ns(Ee.keys, Ee), Ke = Ge.max, je = Ge.min, Kf = M.now, Hf = S.parseInt, js = Ge.random, Vf = yr.reverse, Mi = gn(S, "DataView"), Xn = gn(S, "Map"), Fi = gn(S, "Promise"), Pn = gn(S, "Set"), jn = gn(S, "WeakMap"), zn = gn(Ee, "create"), $r = jn && new jn(), $n = {}, qf = vn(Mi), Yf = vn(Xn), Xf = vn(Fi), jf = vn(Pn), zf = vn(jn), Rr = en ? en.prototype : i, Zn = Rr ? Rr.valueOf : i, zs = Rr ? Rr.toString : i;
      function l(e) {
        if (xe(e) && !ne(e) && !(e instanceof de)) {
          if (e instanceof yt)
            return e;
          if (we.call(e, "__wrapped__"))
            return Za(e);
        }
        return new yt(e);
      }
      var Rn = /* @__PURE__ */ function() {
        function e() {
        }
        return function(t) {
          if (!Re(t))
            return {};
          if (Vs)
            return Vs(t);
          e.prototype = t;
          var n = new e();
          return e.prototype = i, n;
        };
      }();
      function xr() {
      }
      function yt(e, t) {
        this.__wrapped__ = e, this.__actions__ = [], this.__chain__ = !!t, this.__index__ = 0, this.__values__ = i;
      }
      l.templateSettings = {
        /**
         * Used to detect `data` property values to be HTML-escaped.
         *
         * @memberOf _.templateSettings
         * @type {RegExp}
         */
        escape: lc,
        /**
         * Used to detect code to be evaluated.
         *
         * @memberOf _.templateSettings
         * @type {RegExp}
         */
        evaluate: cc,
        /**
         * Used to detect `data` property values to inject.
         *
         * @memberOf _.templateSettings
         * @type {RegExp}
         */
        interpolate: os,
        /**
         * Used to reference the data object in the template text.
         *
         * @memberOf _.templateSettings
         * @type {string}
         */
        variable: "",
        /**
         * Used to import variables into the compiled template.
         *
         * @memberOf _.templateSettings
         * @type {Object}
         */
        imports: {
          /**
           * A reference to the `lodash` function.
           *
           * @memberOf _.templateSettings.imports
           * @type {Function}
           */
          _: l
        }
      }, l.prototype = xr.prototype, l.prototype.constructor = l, yt.prototype = Rn(xr.prototype), yt.prototype.constructor = yt;
      function de(e) {
        this.__wrapped__ = e, this.__actions__ = [], this.__dir__ = 1, this.__filtered__ = !1, this.__iteratees__ = [], this.__takeCount__ = X, this.__views__ = [];
      }
      function Zf() {
        var e = new de(this.__wrapped__);
        return e.__actions__ = nt(this.__actions__), e.__dir__ = this.__dir__, e.__filtered__ = this.__filtered__, e.__iteratees__ = nt(this.__iteratees__), e.__takeCount__ = this.__takeCount__, e.__views__ = nt(this.__views__), e;
      }
      function Qf() {
        if (this.__filtered__) {
          var e = new de(this);
          e.__dir__ = -1, e.__filtered__ = !0;
        } else
          e = this.clone(), e.__dir__ *= -1;
        return e;
      }
      function Jf() {
        var e = this.__wrapped__.value(), t = this.__dir__, n = ne(e), s = t < 0, u = n ? e.length : 0, c = fh(0, u, this.__views__), h = c.start, p = c.end, v = p - h, L = s ? p : h - 1, O = this.__iteratees__, A = O.length, x = 0, N = je(v, this.__takeCount__);
        if (!n || !s && u == v && N == v)
          return ba(e, this.__actions__);
        var j = [];
        e:
          for (; v-- && x < N; ) {
            L += t;
            for (var se = -1, z = e[L]; ++se < A; ) {
              var fe = O[se], he = fe.iteratee, pt = fe.type, et = he(z);
              if (pt == $)
                z = et;
              else if (!et) {
                if (pt == Ot)
                  continue e;
                break e;
              }
            }
            j[x++] = z;
          }
        return j;
      }
      de.prototype = Rn(xr.prototype), de.prototype.constructor = de;
      function dn(e) {
        var t = -1, n = e == null ? 0 : e.length;
        for (this.clear(); ++t < n; ) {
          var s = e[t];
          this.set(s[0], s[1]);
        }
      }
      function ed() {
        this.__data__ = zn ? zn(null) : {}, this.size = 0;
      }
      function td(e) {
        var t = this.has(e) && delete this.__data__[e];
        return this.size -= t ? 1 : 0, t;
      }
      function nd(e) {
        var t = this.__data__;
        if (zn) {
          var n = t[e];
          return n === w ? i : n;
        }
        return we.call(t, e) ? t[e] : i;
      }
      function rd(e) {
        var t = this.__data__;
        return zn ? t[e] !== i : we.call(t, e);
      }
      function id(e, t) {
        var n = this.__data__;
        return this.size += this.has(e) ? 0 : 1, n[e] = zn && t === i ? w : t, this;
      }
      dn.prototype.clear = ed, dn.prototype.delete = td, dn.prototype.get = nd, dn.prototype.has = rd, dn.prototype.set = id;
      function kt(e) {
        var t = -1, n = e == null ? 0 : e.length;
        for (this.clear(); ++t < n; ) {
          var s = e[t];
          this.set(s[0], s[1]);
        }
      }
      function od() {
        this.__data__ = [], this.size = 0;
      }
      function sd(e) {
        var t = this.__data__, n = Cr(t, e);
        if (n < 0)
          return !1;
        var s = t.length - 1;
        return n == s ? t.pop() : Ar.call(t, n, 1), --this.size, !0;
      }
      function ad(e) {
        var t = this.__data__, n = Cr(t, e);
        return n < 0 ? i : t[n][1];
      }
      function ud(e) {
        return Cr(this.__data__, e) > -1;
      }
      function ld(e, t) {
        var n = this.__data__, s = Cr(n, e);
        return s < 0 ? (++this.size, n.push([e, t])) : n[s][1] = t, this;
      }
      kt.prototype.clear = od, kt.prototype.delete = sd, kt.prototype.get = ad, kt.prototype.has = ud, kt.prototype.set = ld;
      function Wt(e) {
        var t = -1, n = e == null ? 0 : e.length;
        for (this.clear(); ++t < n; ) {
          var s = e[t];
          this.set(s[0], s[1]);
        }
      }
      function cd() {
        this.size = 0, this.__data__ = {
          hash: new dn(),
          map: new (Xn || kt)(),
          string: new dn()
        };
      }
      function fd(e) {
        var t = Vr(this, e).delete(e);
        return this.size -= t ? 1 : 0, t;
      }
      function dd(e) {
        return Vr(this, e).get(e);
      }
      function hd(e) {
        return Vr(this, e).has(e);
      }
      function pd(e, t) {
        var n = Vr(this, e), s = n.size;
        return n.set(e, t), this.size += n.size == s ? 0 : 1, this;
      }
      Wt.prototype.clear = cd, Wt.prototype.delete = fd, Wt.prototype.get = dd, Wt.prototype.has = hd, Wt.prototype.set = pd;
      function hn(e) {
        var t = -1, n = e == null ? 0 : e.length;
        for (this.__data__ = new Wt(); ++t < n; )
          this.add(e[t]);
      }
      function _d(e) {
        return this.__data__.set(e, w), this;
      }
      function gd(e) {
        return this.__data__.has(e);
      }
      hn.prototype.add = hn.prototype.push = _d, hn.prototype.has = gd;
      function Pt(e) {
        var t = this.__data__ = new kt(e);
        this.size = t.size;
      }
      function vd() {
        this.__data__ = new kt(), this.size = 0;
      }
      function md(e) {
        var t = this.__data__, n = t.delete(e);
        return this.size = t.size, n;
      }
      function yd(e) {
        return this.__data__.get(e);
      }
      function bd(e) {
        return this.__data__.has(e);
      }
      function wd(e, t) {
        var n = this.__data__;
        if (n instanceof kt) {
          var s = n.__data__;
          if (!Xn || s.length < f - 1)
            return s.push([e, t]), this.size = ++n.size, this;
          n = this.__data__ = new Wt(s);
        }
        return n.set(e, t), this.size = n.size, this;
      }
      Pt.prototype.clear = vd, Pt.prototype.delete = md, Pt.prototype.get = yd, Pt.prototype.has = bd, Pt.prototype.set = wd;
      function Zs(e, t) {
        var n = ne(e), s = !n && mn(e), u = !n && !s && sn(e), c = !n && !s && !u && Dn(e), h = n || s || u || c, p = h ? Ri(e.length, Rf) : [], v = p.length;
        for (var L in e)
          (t || we.call(e, L)) && !(h && // Safari 9 has enumerable `arguments.length` in strict mode.
          (L == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
          u && (L == "offset" || L == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
          c && (L == "buffer" || L == "byteLength" || L == "byteOffset") || // Skip index properties.
          Kt(L, v))) && p.push(L);
        return p;
      }
      function Qs(e) {
        var t = e.length;
        return t ? e[Xi(0, t - 1)] : i;
      }
      function Ed(e, t) {
        return qr(nt(e), pn(t, 0, e.length));
      }
      function Sd(e) {
        return qr(nt(e));
      }
      function ki(e, t, n) {
        (n !== i && !$t(e[t], n) || n === i && !(t in e)) && Bt(e, t, n);
      }
      function Qn(e, t, n) {
        var s = e[t];
        (!(we.call(e, t) && $t(s, n)) || n === i && !(t in e)) && Bt(e, t, n);
      }
      function Cr(e, t) {
        for (var n = e.length; n--; )
          if ($t(e[n][0], t))
            return n;
        return -1;
      }
      function Ld(e, t, n, s) {
        return tn(e, function(u, c, h) {
          t(s, u, n(u), h);
        }), s;
      }
      function Js(e, t) {
        return e && Ut(t, He(t), e);
      }
      function Od(e, t) {
        return e && Ut(t, it(t), e);
      }
      function Bt(e, t, n) {
        t == "__proto__" && Tr ? Tr(e, t, {
          configurable: !0,
          enumerable: !0,
          value: n,
          writable: !0
        }) : e[t] = n;
      }
      function Wi(e, t) {
        for (var n = -1, s = t.length, u = b(s), c = e == null; ++n < s; )
          u[n] = c ? i : bo(e, t[n]);
        return u;
      }
      function pn(e, t, n) {
        return e === e && (n !== i && (e = e <= n ? e : n), t !== i && (e = e >= t ? e : t)), e;
      }
      function bt(e, t, n, s, u, c) {
        var h, p = t & T, v = t & K, L = t & E;
        if (n && (h = u ? n(e, s, u, c) : n(e)), h !== i)
          return h;
        if (!Re(e))
          return e;
        var O = ne(e);
        if (O) {
          if (h = hh(e), !p)
            return nt(e, h);
        } else {
          var A = ze(e), x = A == U || A == V;
          if (sn(e))
            return Sa(e, p);
          if (A == be || A == Te || x && !u) {
            if (h = v || x ? {} : Ga(e), !p)
              return v ? nh(e, Od(h, e)) : th(e, Js(h, e));
          } else {
            if (!Se[A])
              return u ? e : {};
            h = ph(e, A, p);
          }
        }
        c || (c = new Pt());
        var N = c.get(e);
        if (N)
          return N;
        c.set(e, h), vu(e) ? e.forEach(function(z) {
          h.add(bt(z, t, n, z, e, c));
        }) : _u(e) && e.forEach(function(z, fe) {
          h.set(fe, bt(z, t, n, fe, e, c));
        });
        var j = L ? v ? oo : io : v ? it : He, se = O ? i : j(e);
        return vt(se || e, function(z, fe) {
          se && (fe = z, z = e[fe]), Qn(h, fe, bt(z, t, n, fe, e, c));
        }), h;
      }
      function Ad(e) {
        var t = He(e);
        return function(n) {
          return ea(n, e, t);
        };
      }
      function ea(e, t, n) {
        var s = n.length;
        if (e == null)
          return !s;
        for (e = Ee(e); s--; ) {
          var u = n[s], c = t[u], h = e[u];
          if (h === i && !(u in e) || !c(h))
            return !1;
        }
        return !0;
      }
      function ta(e, t, n) {
        if (typeof e != "function")
          throw new mt(m);
        return or(function() {
          e.apply(i, n);
        }, t);
      }
      function Jn(e, t, n, s) {
        var u = -1, c = gr, h = !0, p = e.length, v = [], L = t.length;
        if (!p)
          return v;
        n && (t = Ie(t, ft(n))), s ? (c = Oi, h = !1) : t.length >= f && (c = qn, h = !1, t = new hn(t));
        e:
          for (; ++u < p; ) {
            var O = e[u], A = n == null ? O : n(O);
            if (O = s || O !== 0 ? O : 0, h && A === A) {
              for (var x = L; x--; )
                if (t[x] === A)
                  continue e;
              v.push(O);
            } else c(t, A, s) || v.push(O);
          }
        return v;
      }
      var tn = Ia(Ct), na = Ia(Ni, !0);
      function Td(e, t) {
        var n = !0;
        return tn(e, function(s, u, c) {
          return n = !!t(s, u, c), n;
        }), n;
      }
      function Ur(e, t, n) {
        for (var s = -1, u = e.length; ++s < u; ) {
          var c = e[s], h = t(c);
          if (h != null && (p === i ? h === h && !ht(h) : n(h, p)))
            var p = h, v = c;
        }
        return v;
      }
      function Id(e, t, n, s) {
        var u = e.length;
        for (n = oe(n), n < 0 && (n = -n > u ? 0 : u + n), s = s === i || s > u ? u : oe(s), s < 0 && (s += u), s = n > s ? 0 : yu(s); n < s; )
          e[n++] = t;
        return e;
      }
      function ra(e, t) {
        var n = [];
        return tn(e, function(s, u, c) {
          t(s, u, c) && n.push(s);
        }), n;
      }
      function Ye(e, t, n, s, u) {
        var c = -1, h = e.length;
        for (n || (n = gh), u || (u = []); ++c < h; ) {
          var p = e[c];
          t > 0 && n(p) ? t > 1 ? Ye(p, t - 1, n, s, u) : Qt(u, p) : s || (u[u.length] = p);
        }
        return u;
      }
      var Bi = Pa(), ia = Pa(!0);
      function Ct(e, t) {
        return e && Bi(e, t, He);
      }
      function Ni(e, t) {
        return e && ia(e, t, He);
      }
      function Dr(e, t) {
        return Zt(t, function(n) {
          return Ht(e[n]);
        });
      }
      function _n(e, t) {
        t = rn(t, e);
        for (var n = 0, s = t.length; e != null && n < s; )
          e = e[Dt(t[n++])];
        return n && n == s ? e : i;
      }
      function oa(e, t, n) {
        var s = t(e);
        return ne(e) ? s : Qt(s, n(e));
      }
      function Qe(e) {
        return e == null ? e === i ? Kn : Ce : fn && fn in Ee(e) ? ch(e) : Sh(e);
      }
      function Gi(e, t) {
        return e > t;
      }
      function Pd(e, t) {
        return e != null && we.call(e, t);
      }
      function $d(e, t) {
        return e != null && t in Ee(e);
      }
      function Rd(e, t, n) {
        return e >= je(t, n) && e < Ke(t, n);
      }
      function Ki(e, t, n) {
        for (var s = n ? Oi : gr, u = e[0].length, c = e.length, h = c, p = b(c), v = 1 / 0, L = []; h--; ) {
          var O = e[h];
          h && t && (O = Ie(O, ft(t))), v = je(O.length, v), p[h] = !n && (t || u >= 120 && O.length >= 120) ? new hn(h && O) : i;
        }
        O = e[0];
        var A = -1, x = p[0];
        e:
          for (; ++A < u && L.length < v; ) {
            var N = O[A], j = t ? t(N) : N;
            if (N = n || N !== 0 ? N : 0, !(x ? qn(x, j) : s(L, j, n))) {
              for (h = c; --h; ) {
                var se = p[h];
                if (!(se ? qn(se, j) : s(e[h], j, n)))
                  continue e;
              }
              x && x.push(j), L.push(N);
            }
          }
        return L;
      }
      function xd(e, t, n, s) {
        return Ct(e, function(u, c, h) {
          t(s, n(u), c, h);
        }), s;
      }
      function er(e, t, n) {
        t = rn(t, e), e = qa(e, t);
        var s = e == null ? e : e[Dt(Et(t))];
        return s == null ? i : ct(s, e, n);
      }
      function sa(e) {
        return xe(e) && Qe(e) == Te;
      }
      function Cd(e) {
        return xe(e) && Qe(e) == zt;
      }
      function Ud(e) {
        return xe(e) && Qe(e) == ut;
      }
      function tr(e, t, n, s, u) {
        return e === t ? !0 : e == null || t == null || !xe(e) && !xe(t) ? e !== e && t !== t : Dd(e, t, n, s, tr, u);
      }
      function Dd(e, t, n, s, u, c) {
        var h = ne(e), p = ne(t), v = h ? Fe : ze(e), L = p ? Fe : ze(t);
        v = v == Te ? be : v, L = L == Te ? be : L;
        var O = v == be, A = L == be, x = v == L;
        if (x && sn(e)) {
          if (!sn(t))
            return !1;
          h = !0, O = !1;
        }
        if (x && !O)
          return c || (c = new Pt()), h || Dn(e) ? Wa(e, t, n, s, u, c) : uh(e, t, v, n, s, u, c);
        if (!(n & I)) {
          var N = O && we.call(e, "__wrapped__"), j = A && we.call(t, "__wrapped__");
          if (N || j) {
            var se = N ? e.value() : e, z = j ? t.value() : t;
            return c || (c = new Pt()), u(se, z, n, s, c);
          }
        }
        return x ? (c || (c = new Pt()), lh(e, t, n, s, u, c)) : !1;
      }
      function Md(e) {
        return xe(e) && ze(e) == Q;
      }
      function Hi(e, t, n, s) {
        var u = n.length, c = u, h = !s;
        if (e == null)
          return !c;
        for (e = Ee(e); u--; ) {
          var p = n[u];
          if (h && p[2] ? p[1] !== e[p[0]] : !(p[0] in e))
            return !1;
        }
        for (; ++u < c; ) {
          p = n[u];
          var v = p[0], L = e[v], O = p[1];
          if (h && p[2]) {
            if (L === i && !(v in e))
              return !1;
          } else {
            var A = new Pt();
            if (s)
              var x = s(L, O, v, e, t, A);
            if (!(x === i ? tr(O, L, I | R, s, A) : x))
              return !1;
          }
        }
        return !0;
      }
      function aa(e) {
        if (!Re(e) || mh(e))
          return !1;
        var t = Ht(e) ? Mf : Oc;
        return t.test(vn(e));
      }
      function Fd(e) {
        return xe(e) && Qe(e) == lt;
      }
      function kd(e) {
        return xe(e) && ze(e) == ke;
      }
      function Wd(e) {
        return xe(e) && Qr(e.length) && !!Oe[Qe(e)];
      }
      function ua(e) {
        return typeof e == "function" ? e : e == null ? ot : typeof e == "object" ? ne(e) ? fa(e[0], e[1]) : ca(e) : $u(e);
      }
      function Vi(e) {
        if (!ir(e))
          return Gf(e);
        var t = [];
        for (var n in Ee(e))
          we.call(e, n) && n != "constructor" && t.push(n);
        return t;
      }
      function Bd(e) {
        if (!Re(e))
          return Eh(e);
        var t = ir(e), n = [];
        for (var s in e)
          s == "constructor" && (t || !we.call(e, s)) || n.push(s);
        return n;
      }
      function qi(e, t) {
        return e < t;
      }
      function la(e, t) {
        var n = -1, s = rt(e) ? b(e.length) : [];
        return tn(e, function(u, c, h) {
          s[++n] = t(u, c, h);
        }), s;
      }
      function ca(e) {
        var t = ao(e);
        return t.length == 1 && t[0][2] ? Ha(t[0][0], t[0][1]) : function(n) {
          return n === e || Hi(n, e, t);
        };
      }
      function fa(e, t) {
        return lo(e) && Ka(t) ? Ha(Dt(e), t) : function(n) {
          var s = bo(n, e);
          return s === i && s === t ? wo(n, e) : tr(t, s, I | R);
        };
      }
      function Mr(e, t, n, s, u) {
        e !== t && Bi(t, function(c, h) {
          if (u || (u = new Pt()), Re(c))
            Nd(e, t, h, n, Mr, s, u);
          else {
            var p = s ? s(fo(e, h), c, h + "", e, t, u) : i;
            p === i && (p = c), ki(e, h, p);
          }
        }, it);
      }
      function Nd(e, t, n, s, u, c, h) {
        var p = fo(e, n), v = fo(t, n), L = h.get(v);
        if (L) {
          ki(e, n, L);
          return;
        }
        var O = c ? c(p, v, n + "", e, t, h) : i, A = O === i;
        if (A) {
          var x = ne(v), N = !x && sn(v), j = !x && !N && Dn(v);
          O = v, x || N || j ? ne(p) ? O = p : Ue(p) ? O = nt(p) : N ? (A = !1, O = Sa(v, !0)) : j ? (A = !1, O = La(v, !0)) : O = [] : sr(v) || mn(v) ? (O = p, mn(p) ? O = bu(p) : (!Re(p) || Ht(p)) && (O = Ga(v))) : A = !1;
        }
        A && (h.set(v, O), u(O, v, s, c, h), h.delete(v)), ki(e, n, O);
      }
      function da(e, t) {
        var n = e.length;
        if (n)
          return t += t < 0 ? n : 0, Kt(t, n) ? e[t] : i;
      }
      function ha(e, t, n) {
        t.length ? t = Ie(t, function(c) {
          return ne(c) ? function(h) {
            return _n(h, c.length === 1 ? c[0] : c);
          } : c;
        }) : t = [ot];
        var s = -1;
        t = Ie(t, ft(Y()));
        var u = la(e, function(c, h, p) {
          var v = Ie(t, function(L) {
            return L(c);
          });
          return { criteria: v, index: ++s, value: c };
        });
        return pf(u, function(c, h) {
          return eh(c, h, n);
        });
      }
      function Gd(e, t) {
        return pa(e, t, function(n, s) {
          return wo(e, s);
        });
      }
      function pa(e, t, n) {
        for (var s = -1, u = t.length, c = {}; ++s < u; ) {
          var h = t[s], p = _n(e, h);
          n(p, h) && nr(c, rn(h, e), p);
        }
        return c;
      }
      function Kd(e) {
        return function(t) {
          return _n(t, e);
        };
      }
      function Yi(e, t, n, s) {
        var u = s ? hf : Ln, c = -1, h = t.length, p = e;
        for (e === t && (t = nt(t)), n && (p = Ie(e, ft(n))); ++c < h; )
          for (var v = 0, L = t[c], O = n ? n(L) : L; (v = u(p, O, v, s)) > -1; )
            p !== e && Ar.call(p, v, 1), Ar.call(e, v, 1);
        return e;
      }
      function _a(e, t) {
        for (var n = e ? t.length : 0, s = n - 1; n--; ) {
          var u = t[n];
          if (n == s || u !== c) {
            var c = u;
            Kt(u) ? Ar.call(e, u, 1) : Zi(e, u);
          }
        }
        return e;
      }
      function Xi(e, t) {
        return e + Pr(js() * (t - e + 1));
      }
      function Hd(e, t, n, s) {
        for (var u = -1, c = Ke(Ir((t - e) / (n || 1)), 0), h = b(c); c--; )
          h[s ? c : ++u] = e, e += n;
        return h;
      }
      function ji(e, t) {
        var n = "";
        if (!e || t < 1 || t > le)
          return n;
        do
          t % 2 && (n += e), t = Pr(t / 2), t && (e += e);
        while (t);
        return n;
      }
      function ue(e, t) {
        return ho(Va(e, t, ot), e + "");
      }
      function Vd(e) {
        return Qs(Mn(e));
      }
      function qd(e, t) {
        var n = Mn(e);
        return qr(n, pn(t, 0, n.length));
      }
      function nr(e, t, n, s) {
        if (!Re(e))
          return e;
        t = rn(t, e);
        for (var u = -1, c = t.length, h = c - 1, p = e; p != null && ++u < c; ) {
          var v = Dt(t[u]), L = n;
          if (v === "__proto__" || v === "constructor" || v === "prototype")
            return e;
          if (u != h) {
            var O = p[v];
            L = s ? s(O, v, p) : i, L === i && (L = Re(O) ? O : Kt(t[u + 1]) ? [] : {});
          }
          Qn(p, v, L), p = p[v];
        }
        return e;
      }
      var ga = $r ? function(e, t) {
        return $r.set(e, t), e;
      } : ot, Yd = Tr ? function(e, t) {
        return Tr(e, "toString", {
          configurable: !0,
          enumerable: !1,
          value: So(t),
          writable: !0
        });
      } : ot;
      function Xd(e) {
        return qr(Mn(e));
      }
      function wt(e, t, n) {
        var s = -1, u = e.length;
        t < 0 && (t = -t > u ? 0 : u + t), n = n > u ? u : n, n < 0 && (n += u), u = t > n ? 0 : n - t >>> 0, t >>>= 0;
        for (var c = b(u); ++s < u; )
          c[s] = e[s + t];
        return c;
      }
      function jd(e, t) {
        var n;
        return tn(e, function(s, u, c) {
          return n = t(s, u, c), !n;
        }), !!n;
      }
      function Fr(e, t, n) {
        var s = 0, u = e == null ? s : e.length;
        if (typeof t == "number" && t === t && u <= Le) {
          for (; s < u; ) {
            var c = s + u >>> 1, h = e[c];
            h !== null && !ht(h) && (n ? h <= t : h < t) ? s = c + 1 : u = c;
          }
          return u;
        }
        return zi(e, t, ot, n);
      }
      function zi(e, t, n, s) {
        var u = 0, c = e == null ? 0 : e.length;
        if (c === 0)
          return 0;
        t = n(t);
        for (var h = t !== t, p = t === null, v = ht(t), L = t === i; u < c; ) {
          var O = Pr((u + c) / 2), A = n(e[O]), x = A !== i, N = A === null, j = A === A, se = ht(A);
          if (h)
            var z = s || j;
          else L ? z = j && (s || x) : p ? z = j && x && (s || !N) : v ? z = j && x && !N && (s || !se) : N || se ? z = !1 : z = s ? A <= t : A < t;
          z ? u = O + 1 : c = O;
        }
        return je(c, ce);
      }
      function va(e, t) {
        for (var n = -1, s = e.length, u = 0, c = []; ++n < s; ) {
          var h = e[n], p = t ? t(h) : h;
          if (!n || !$t(p, v)) {
            var v = p;
            c[u++] = h === 0 ? 0 : h;
          }
        }
        return c;
      }
      function ma(e) {
        return typeof e == "number" ? e : ht(e) ? B : +e;
      }
      function dt(e) {
        if (typeof e == "string")
          return e;
        if (ne(e))
          return Ie(e, dt) + "";
        if (ht(e))
          return zs ? zs.call(e) : "";
        var t = e + "";
        return t == "0" && 1 / e == -ie ? "-0" : t;
      }
      function nn(e, t, n) {
        var s = -1, u = gr, c = e.length, h = !0, p = [], v = p;
        if (n)
          h = !1, u = Oi;
        else if (c >= f) {
          var L = t ? null : sh(e);
          if (L)
            return mr(L);
          h = !1, u = qn, v = new hn();
        } else
          v = t ? [] : p;
        e:
          for (; ++s < c; ) {
            var O = e[s], A = t ? t(O) : O;
            if (O = n || O !== 0 ? O : 0, h && A === A) {
              for (var x = v.length; x--; )
                if (v[x] === A)
                  continue e;
              t && v.push(A), p.push(O);
            } else u(v, A, n) || (v !== p && v.push(A), p.push(O));
          }
        return p;
      }
      function Zi(e, t) {
        return t = rn(t, e), e = qa(e, t), e == null || delete e[Dt(Et(t))];
      }
      function ya(e, t, n, s) {
        return nr(e, t, n(_n(e, t)), s);
      }
      function kr(e, t, n, s) {
        for (var u = e.length, c = s ? u : -1; (s ? c-- : ++c < u) && t(e[c], c, e); )
          ;
        return n ? wt(e, s ? 0 : c, s ? c + 1 : u) : wt(e, s ? c + 1 : 0, s ? u : c);
      }
      function ba(e, t) {
        var n = e;
        return n instanceof de && (n = n.value()), Ai(t, function(s, u) {
          return u.func.apply(u.thisArg, Qt([s], u.args));
        }, n);
      }
      function Qi(e, t, n) {
        var s = e.length;
        if (s < 2)
          return s ? nn(e[0]) : [];
        for (var u = -1, c = b(s); ++u < s; )
          for (var h = e[u], p = -1; ++p < s; )
            p != u && (c[u] = Jn(c[u] || h, e[p], t, n));
        return nn(Ye(c, 1), t, n);
      }
      function wa(e, t, n) {
        for (var s = -1, u = e.length, c = t.length, h = {}; ++s < u; ) {
          var p = s < c ? t[s] : i;
          n(h, e[s], p);
        }
        return h;
      }
      function Ji(e) {
        return Ue(e) ? e : [];
      }
      function eo(e) {
        return typeof e == "function" ? e : ot;
      }
      function rn(e, t) {
        return ne(e) ? e : lo(e, t) ? [e] : za(ye(e));
      }
      var zd = ue;
      function on(e, t, n) {
        var s = e.length;
        return n = n === i ? s : n, !t && n >= s ? e : wt(e, t, n);
      }
      var Ea = Ff || function(e) {
        return qe.clearTimeout(e);
      };
      function Sa(e, t) {
        if (t)
          return e.slice();
        var n = e.length, s = Hs ? Hs(n) : new e.constructor(n);
        return e.copy(s), s;
      }
      function to(e) {
        var t = new e.constructor(e.byteLength);
        return new Lr(t).set(new Lr(e)), t;
      }
      function Zd(e, t) {
        var n = t ? to(e.buffer) : e.buffer;
        return new e.constructor(n, e.byteOffset, e.byteLength);
      }
      function Qd(e) {
        var t = new e.constructor(e.source, ss.exec(e));
        return t.lastIndex = e.lastIndex, t;
      }
      function Jd(e) {
        return Zn ? Ee(Zn.call(e)) : {};
      }
      function La(e, t) {
        var n = t ? to(e.buffer) : e.buffer;
        return new e.constructor(n, e.byteOffset, e.length);
      }
      function Oa(e, t) {
        if (e !== t) {
          var n = e !== i, s = e === null, u = e === e, c = ht(e), h = t !== i, p = t === null, v = t === t, L = ht(t);
          if (!p && !L && !c && e > t || c && h && v && !p && !L || s && h && v || !n && v || !u)
            return 1;
          if (!s && !c && !L && e < t || L && n && u && !s && !c || p && n && u || !h && u || !v)
            return -1;
        }
        return 0;
      }
      function eh(e, t, n) {
        for (var s = -1, u = e.criteria, c = t.criteria, h = u.length, p = n.length; ++s < h; ) {
          var v = Oa(u[s], c[s]);
          if (v) {
            if (s >= p)
              return v;
            var L = n[s];
            return v * (L == "desc" ? -1 : 1);
          }
        }
        return e.index - t.index;
      }
      function Aa(e, t, n, s) {
        for (var u = -1, c = e.length, h = n.length, p = -1, v = t.length, L = Ke(c - h, 0), O = b(v + L), A = !s; ++p < v; )
          O[p] = t[p];
        for (; ++u < h; )
          (A || u < c) && (O[n[u]] = e[u]);
        for (; L--; )
          O[p++] = e[u++];
        return O;
      }
      function Ta(e, t, n, s) {
        for (var u = -1, c = e.length, h = -1, p = n.length, v = -1, L = t.length, O = Ke(c - p, 0), A = b(O + L), x = !s; ++u < O; )
          A[u] = e[u];
        for (var N = u; ++v < L; )
          A[N + v] = t[v];
        for (; ++h < p; )
          (x || u < c) && (A[N + n[h]] = e[u++]);
        return A;
      }
      function nt(e, t) {
        var n = -1, s = e.length;
        for (t || (t = b(s)); ++n < s; )
          t[n] = e[n];
        return t;
      }
      function Ut(e, t, n, s) {
        var u = !n;
        n || (n = {});
        for (var c = -1, h = t.length; ++c < h; ) {
          var p = t[c], v = s ? s(n[p], e[p], p, n, e) : i;
          v === i && (v = e[p]), u ? Bt(n, p, v) : Qn(n, p, v);
        }
        return n;
      }
      function th(e, t) {
        return Ut(e, uo(e), t);
      }
      function nh(e, t) {
        return Ut(e, Ba(e), t);
      }
      function Wr(e, t) {
        return function(n, s) {
          var u = ne(n) ? af : Ld, c = t ? t() : {};
          return u(n, e, Y(s, 2), c);
        };
      }
      function xn(e) {
        return ue(function(t, n) {
          var s = -1, u = n.length, c = u > 1 ? n[u - 1] : i, h = u > 2 ? n[2] : i;
          for (c = e.length > 3 && typeof c == "function" ? (u--, c) : i, h && Je(n[0], n[1], h) && (c = u < 3 ? i : c, u = 1), t = Ee(t); ++s < u; ) {
            var p = n[s];
            p && e(t, p, s, c);
          }
          return t;
        });
      }
      function Ia(e, t) {
        return function(n, s) {
          if (n == null)
            return n;
          if (!rt(n))
            return e(n, s);
          for (var u = n.length, c = t ? u : -1, h = Ee(n); (t ? c-- : ++c < u) && s(h[c], c, h) !== !1; )
            ;
          return n;
        };
      }
      function Pa(e) {
        return function(t, n, s) {
          for (var u = -1, c = Ee(t), h = s(t), p = h.length; p--; ) {
            var v = h[e ? p : ++u];
            if (n(c[v], v, c) === !1)
              break;
          }
          return t;
        };
      }
      function rh(e, t, n) {
        var s = t & W, u = rr(e);
        function c() {
          var h = this && this !== qe && this instanceof c ? u : e;
          return h.apply(s ? n : this, arguments);
        }
        return c;
      }
      function $a(e) {
        return function(t) {
          t = ye(t);
          var n = On(t) ? It(t) : i, s = n ? n[0] : t.charAt(0), u = n ? on(n, 1).join("") : t.slice(1);
          return s[e]() + u;
        };
      }
      function Cn(e) {
        return function(t) {
          return Ai(Iu(Tu(t).replace(qc, "")), e, "");
        };
      }
      function rr(e) {
        return function() {
          var t = arguments;
          switch (t.length) {
            case 0:
              return new e();
            case 1:
              return new e(t[0]);
            case 2:
              return new e(t[0], t[1]);
            case 3:
              return new e(t[0], t[1], t[2]);
            case 4:
              return new e(t[0], t[1], t[2], t[3]);
            case 5:
              return new e(t[0], t[1], t[2], t[3], t[4]);
            case 6:
              return new e(t[0], t[1], t[2], t[3], t[4], t[5]);
            case 7:
              return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]);
          }
          var n = Rn(e.prototype), s = e.apply(n, t);
          return Re(s) ? s : n;
        };
      }
      function ih(e, t, n) {
        var s = rr(e);
        function u() {
          for (var c = arguments.length, h = b(c), p = c, v = Un(u); p--; )
            h[p] = arguments[p];
          var L = c < 3 && h[0] !== v && h[c - 1] !== v ? [] : Jt(h, v);
          if (c -= L.length, c < n)
            return Da(
              e,
              t,
              Br,
              u.placeholder,
              i,
              h,
              L,
              i,
              i,
              n - c
            );
          var O = this && this !== qe && this instanceof u ? s : e;
          return ct(O, this, h);
        }
        return u;
      }
      function Ra(e) {
        return function(t, n, s) {
          var u = Ee(t);
          if (!rt(t)) {
            var c = Y(n, 3);
            t = He(t), n = function(p) {
              return c(u[p], p, u);
            };
          }
          var h = e(t, n, s);
          return h > -1 ? u[c ? t[h] : h] : i;
        };
      }
      function xa(e) {
        return Gt(function(t) {
          var n = t.length, s = n, u = yt.prototype.thru;
          for (e && t.reverse(); s--; ) {
            var c = t[s];
            if (typeof c != "function")
              throw new mt(m);
            if (u && !h && Hr(c) == "wrapper")
              var h = new yt([], !0);
          }
          for (s = h ? s : n; ++s < n; ) {
            c = t[s];
            var p = Hr(c), v = p == "wrapper" ? so(c) : i;
            v && co(v[0]) && v[1] == (ae | F | pe | ve) && !v[4].length && v[9] == 1 ? h = h[Hr(v[0])].apply(h, v[3]) : h = c.length == 1 && co(c) ? h[p]() : h.thru(c);
          }
          return function() {
            var L = arguments, O = L[0];
            if (h && L.length == 1 && ne(O))
              return h.plant(O).value();
            for (var A = 0, x = n ? t[A].apply(this, L) : O; ++A < n; )
              x = t[A].call(this, x);
            return x;
          };
        });
      }
      function Br(e, t, n, s, u, c, h, p, v, L) {
        var O = t & ae, A = t & W, x = t & Z, N = t & (F | J), j = t & D, se = x ? i : rr(e);
        function z() {
          for (var fe = arguments.length, he = b(fe), pt = fe; pt--; )
            he[pt] = arguments[pt];
          if (N)
            var et = Un(z), _t = gf(he, et);
          if (s && (he = Aa(he, s, u, N)), c && (he = Ta(he, c, h, N)), fe -= _t, N && fe < L) {
            var De = Jt(he, et);
            return Da(
              e,
              t,
              Br,
              z.placeholder,
              n,
              he,
              De,
              p,
              v,
              L - fe
            );
          }
          var Rt = A ? n : this, qt = x ? Rt[e] : e;
          return fe = he.length, p ? he = Lh(he, p) : j && fe > 1 && he.reverse(), O && v < fe && (he.length = v), this && this !== qe && this instanceof z && (qt = se || rr(qt)), qt.apply(Rt, he);
        }
        return z;
      }
      function Ca(e, t) {
        return function(n, s) {
          return xd(n, e, t(s), {});
        };
      }
      function Nr(e, t) {
        return function(n, s) {
          var u;
          if (n === i && s === i)
            return t;
          if (n !== i && (u = n), s !== i) {
            if (u === i)
              return s;
            typeof n == "string" || typeof s == "string" ? (n = dt(n), s = dt(s)) : (n = ma(n), s = ma(s)), u = e(n, s);
          }
          return u;
        };
      }
      function no(e) {
        return Gt(function(t) {
          return t = Ie(t, ft(Y())), ue(function(n) {
            var s = this;
            return e(t, function(u) {
              return ct(u, s, n);
            });
          });
        });
      }
      function Gr(e, t) {
        t = t === i ? " " : dt(t);
        var n = t.length;
        if (n < 2)
          return n ? ji(t, e) : t;
        var s = ji(t, Ir(e / An(t)));
        return On(t) ? on(It(s), 0, e).join("") : s.slice(0, e);
      }
      function oh(e, t, n, s) {
        var u = t & W, c = rr(e);
        function h() {
          for (var p = -1, v = arguments.length, L = -1, O = s.length, A = b(O + v), x = this && this !== qe && this instanceof h ? c : e; ++L < O; )
            A[L] = s[L];
          for (; v--; )
            A[L++] = arguments[++p];
          return ct(x, u ? n : this, A);
        }
        return h;
      }
      function Ua(e) {
        return function(t, n, s) {
          return s && typeof s != "number" && Je(t, n, s) && (n = s = i), t = Vt(t), n === i ? (n = t, t = 0) : n = Vt(n), s = s === i ? t < n ? 1 : -1 : Vt(s), Hd(t, n, s, e);
        };
      }
      function Kr(e) {
        return function(t, n) {
          return typeof t == "string" && typeof n == "string" || (t = St(t), n = St(n)), e(t, n);
        };
      }
      function Da(e, t, n, s, u, c, h, p, v, L) {
        var O = t & F, A = O ? h : i, x = O ? i : h, N = O ? c : i, j = O ? i : c;
        t |= O ? pe : q, t &= ~(O ? q : pe), t & k || (t &= ~(W | Z));
        var se = [
          e,
          t,
          u,
          N,
          A,
          j,
          x,
          p,
          v,
          L
        ], z = n.apply(i, se);
        return co(e) && Ya(z, se), z.placeholder = s, Xa(z, e, t);
      }
      function ro(e) {
        var t = Ge[e];
        return function(n, s) {
          if (n = St(n), s = s == null ? 0 : je(oe(s), 292), s && Xs(n)) {
            var u = (ye(n) + "e").split("e"), c = t(u[0] + "e" + (+u[1] + s));
            return u = (ye(c) + "e").split("e"), +(u[0] + "e" + (+u[1] - s));
          }
          return t(n);
        };
      }
      var sh = Pn && 1 / mr(new Pn([, -0]))[1] == ie ? function(e) {
        return new Pn(e);
      } : Ao;
      function Ma(e) {
        return function(t) {
          var n = ze(t);
          return n == Q ? Ci(t) : n == ke ? Sf(t) : _f(t, e(t));
        };
      }
      function Nt(e, t, n, s, u, c, h, p) {
        var v = t & Z;
        if (!v && typeof e != "function")
          throw new mt(m);
        var L = s ? s.length : 0;
        if (L || (t &= ~(pe | q), s = u = i), h = h === i ? h : Ke(oe(h), 0), p = p === i ? p : oe(p), L -= u ? u.length : 0, t & q) {
          var O = s, A = u;
          s = u = i;
        }
        var x = v ? i : so(e), N = [
          e,
          t,
          n,
          s,
          u,
          O,
          A,
          c,
          h,
          p
        ];
        if (x && wh(N, x), e = N[0], t = N[1], n = N[2], s = N[3], u = N[4], p = N[9] = N[9] === i ? v ? 0 : e.length : Ke(N[9] - L, 0), !p && t & (F | J) && (t &= ~(F | J)), !t || t == W)
          var j = rh(e, t, n);
        else t == F || t == J ? j = ih(e, t, p) : (t == pe || t == (W | pe)) && !u.length ? j = oh(e, t, n, s) : j = Br.apply(i, N);
        var se = x ? ga : Ya;
        return Xa(se(j, N), e, t);
      }
      function Fa(e, t, n, s) {
        return e === i || $t(e, In[n]) && !we.call(s, n) ? t : e;
      }
      function ka(e, t, n, s, u, c) {
        return Re(e) && Re(t) && (c.set(t, e), Mr(e, t, i, ka, c), c.delete(t)), e;
      }
      function ah(e) {
        return sr(e) ? i : e;
      }
      function Wa(e, t, n, s, u, c) {
        var h = n & I, p = e.length, v = t.length;
        if (p != v && !(h && v > p))
          return !1;
        var L = c.get(e), O = c.get(t);
        if (L && O)
          return L == t && O == e;
        var A = -1, x = !0, N = n & R ? new hn() : i;
        for (c.set(e, t), c.set(t, e); ++A < p; ) {
          var j = e[A], se = t[A];
          if (s)
            var z = h ? s(se, j, A, t, e, c) : s(j, se, A, e, t, c);
          if (z !== i) {
            if (z)
              continue;
            x = !1;
            break;
          }
          if (N) {
            if (!Ti(t, function(fe, he) {
              if (!qn(N, he) && (j === fe || u(j, fe, n, s, c)))
                return N.push(he);
            })) {
              x = !1;
              break;
            }
          } else if (!(j === se || u(j, se, n, s, c))) {
            x = !1;
            break;
          }
        }
        return c.delete(e), c.delete(t), x;
      }
      function uh(e, t, n, s, u, c, h) {
        switch (n) {
          case Ft:
            if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
              return !1;
            e = e.buffer, t = t.buffer;
          case zt:
            return !(e.byteLength != t.byteLength || !c(new Lr(e), new Lr(t)));
          case Ze:
          case ut:
          case ge:
            return $t(+e, +t);
          case Mt:
            return e.name == t.name && e.message == t.message;
          case lt:
          case Tt:
            return e == t + "";
          case Q:
            var p = Ci;
          case ke:
            var v = s & I;
            if (p || (p = mr), e.size != t.size && !v)
              return !1;
            var L = h.get(e);
            if (L)
              return L == t;
            s |= R, h.set(e, t);
            var O = Wa(p(e), p(t), s, u, c, h);
            return h.delete(e), O;
          case jt:
            if (Zn)
              return Zn.call(e) == Zn.call(t);
        }
        return !1;
      }
      function lh(e, t, n, s, u, c) {
        var h = n & I, p = io(e), v = p.length, L = io(t), O = L.length;
        if (v != O && !h)
          return !1;
        for (var A = v; A--; ) {
          var x = p[A];
          if (!(h ? x in t : we.call(t, x)))
            return !1;
        }
        var N = c.get(e), j = c.get(t);
        if (N && j)
          return N == t && j == e;
        var se = !0;
        c.set(e, t), c.set(t, e);
        for (var z = h; ++A < v; ) {
          x = p[A];
          var fe = e[x], he = t[x];
          if (s)
            var pt = h ? s(he, fe, x, t, e, c) : s(fe, he, x, e, t, c);
          if (!(pt === i ? fe === he || u(fe, he, n, s, c) : pt)) {
            se = !1;
            break;
          }
          z || (z = x == "constructor");
        }
        if (se && !z) {
          var et = e.constructor, _t = t.constructor;
          et != _t && "constructor" in e && "constructor" in t && !(typeof et == "function" && et instanceof et && typeof _t == "function" && _t instanceof _t) && (se = !1);
        }
        return c.delete(e), c.delete(t), se;
      }
      function Gt(e) {
        return ho(Va(e, i, eu), e + "");
      }
      function io(e) {
        return oa(e, He, uo);
      }
      function oo(e) {
        return oa(e, it, Ba);
      }
      var so = $r ? function(e) {
        return $r.get(e);
      } : Ao;
      function Hr(e) {
        for (var t = e.name + "", n = $n[t], s = we.call($n, t) ? n.length : 0; s--; ) {
          var u = n[s], c = u.func;
          if (c == null || c == e)
            return u.name;
        }
        return t;
      }
      function Un(e) {
        var t = we.call(l, "placeholder") ? l : e;
        return t.placeholder;
      }
      function Y() {
        var e = l.iteratee || Lo;
        return e = e === Lo ? ua : e, arguments.length ? e(arguments[0], arguments[1]) : e;
      }
      function Vr(e, t) {
        var n = e.__data__;
        return vh(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
      }
      function ao(e) {
        for (var t = He(e), n = t.length; n--; ) {
          var s = t[n], u = e[s];
          t[n] = [s, u, Ka(u)];
        }
        return t;
      }
      function gn(e, t) {
        var n = bf(e, t);
        return aa(n) ? n : i;
      }
      function ch(e) {
        var t = we.call(e, fn), n = e[fn];
        try {
          e[fn] = i;
          var s = !0;
        } catch {
        }
        var u = Er.call(e);
        return s && (t ? e[fn] = n : delete e[fn]), u;
      }
      var uo = Di ? function(e) {
        return e == null ? [] : (e = Ee(e), Zt(Di(e), function(t) {
          return qs.call(e, t);
        }));
      } : To, Ba = Di ? function(e) {
        for (var t = []; e; )
          Qt(t, uo(e)), e = Or(e);
        return t;
      } : To, ze = Qe;
      (Mi && ze(new Mi(new ArrayBuffer(1))) != Ft || Xn && ze(new Xn()) != Q || Fi && ze(Fi.resolve()) != Ne || Pn && ze(new Pn()) != ke || jn && ze(new jn()) != un) && (ze = function(e) {
        var t = Qe(e), n = t == be ? e.constructor : i, s = n ? vn(n) : "";
        if (s)
          switch (s) {
            case qf:
              return Ft;
            case Yf:
              return Q;
            case Xf:
              return Ne;
            case jf:
              return ke;
            case zf:
              return un;
          }
        return t;
      });
      function fh(e, t, n) {
        for (var s = -1, u = n.length; ++s < u; ) {
          var c = n[s], h = c.size;
          switch (c.type) {
            case "drop":
              e += h;
              break;
            case "dropRight":
              t -= h;
              break;
            case "take":
              t = je(t, e + h);
              break;
            case "takeRight":
              e = Ke(e, t - h);
              break;
          }
        }
        return { start: e, end: t };
      }
      function dh(e) {
        var t = e.match(vc);
        return t ? t[1].split(mc) : [];
      }
      function Na(e, t, n) {
        t = rn(t, e);
        for (var s = -1, u = t.length, c = !1; ++s < u; ) {
          var h = Dt(t[s]);
          if (!(c = e != null && n(e, h)))
            break;
          e = e[h];
        }
        return c || ++s != u ? c : (u = e == null ? 0 : e.length, !!u && Qr(u) && Kt(h, u) && (ne(e) || mn(e)));
      }
      function hh(e) {
        var t = e.length, n = new e.constructor(t);
        return t && typeof e[0] == "string" && we.call(e, "index") && (n.index = e.index, n.input = e.input), n;
      }
      function Ga(e) {
        return typeof e.constructor == "function" && !ir(e) ? Rn(Or(e)) : {};
      }
      function ph(e, t, n) {
        var s = e.constructor;
        switch (t) {
          case zt:
            return to(e);
          case Ze:
          case ut:
            return new s(+e);
          case Ft:
            return Zd(e, n);
          case En:
          case ln:
          case Vn:
          case ci:
          case fi:
          case di:
          case hi:
          case pi:
          case _i:
            return La(e, n);
          case Q:
            return new s();
          case ge:
          case Tt:
            return new s(e);
          case lt:
            return Qd(e);
          case ke:
            return new s();
          case jt:
            return Jd(e);
        }
      }
      function _h(e, t) {
        var n = t.length;
        if (!n)
          return e;
        var s = n - 1;
        return t[s] = (n > 1 ? "& " : "") + t[s], t = t.join(n > 2 ? ", " : " "), e.replace(gc, `{
/* [wrapped with ` + t + `] */
`);
      }
      function gh(e) {
        return ne(e) || mn(e) || !!(Ys && e && e[Ys]);
      }
      function Kt(e, t) {
        var n = typeof e;
        return t = t ?? le, !!t && (n == "number" || n != "symbol" && Tc.test(e)) && e > -1 && e % 1 == 0 && e < t;
      }
      function Je(e, t, n) {
        if (!Re(n))
          return !1;
        var s = typeof t;
        return (s == "number" ? rt(n) && Kt(t, n.length) : s == "string" && t in n) ? $t(n[t], e) : !1;
      }
      function lo(e, t) {
        if (ne(e))
          return !1;
        var n = typeof e;
        return n == "number" || n == "symbol" || n == "boolean" || e == null || ht(e) ? !0 : dc.test(e) || !fc.test(e) || t != null && e in Ee(t);
      }
      function vh(e) {
        var t = typeof e;
        return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
      }
      function co(e) {
        var t = Hr(e), n = l[t];
        if (typeof n != "function" || !(t in de.prototype))
          return !1;
        if (e === n)
          return !0;
        var s = so(n);
        return !!s && e === s[0];
      }
      function mh(e) {
        return !!Ks && Ks in e;
      }
      var yh = br ? Ht : Io;
      function ir(e) {
        var t = e && e.constructor, n = typeof t == "function" && t.prototype || In;
        return e === n;
      }
      function Ka(e) {
        return e === e && !Re(e);
      }
      function Ha(e, t) {
        return function(n) {
          return n == null ? !1 : n[e] === t && (t !== i || e in Ee(n));
        };
      }
      function bh(e) {
        var t = zr(e, function(s) {
          return n.size === y && n.clear(), s;
        }), n = t.cache;
        return t;
      }
      function wh(e, t) {
        var n = e[1], s = t[1], u = n | s, c = u < (W | Z | ae), h = s == ae && n == F || s == ae && n == ve && e[7].length <= t[8] || s == (ae | ve) && t[7].length <= t[8] && n == F;
        if (!(c || h))
          return e;
        s & W && (e[2] = t[2], u |= n & W ? 0 : k);
        var p = t[3];
        if (p) {
          var v = e[3];
          e[3] = v ? Aa(v, p, t[4]) : p, e[4] = v ? Jt(e[3], P) : t[4];
        }
        return p = t[5], p && (v = e[5], e[5] = v ? Ta(v, p, t[6]) : p, e[6] = v ? Jt(e[5], P) : t[6]), p = t[7], p && (e[7] = p), s & ae && (e[8] = e[8] == null ? t[8] : je(e[8], t[8])), e[9] == null && (e[9] = t[9]), e[0] = t[0], e[1] = u, e;
      }
      function Eh(e) {
        var t = [];
        if (e != null)
          for (var n in Ee(e))
            t.push(n);
        return t;
      }
      function Sh(e) {
        return Er.call(e);
      }
      function Va(e, t, n) {
        return t = Ke(t === i ? e.length - 1 : t, 0), function() {
          for (var s = arguments, u = -1, c = Ke(s.length - t, 0), h = b(c); ++u < c; )
            h[u] = s[t + u];
          u = -1;
          for (var p = b(t + 1); ++u < t; )
            p[u] = s[u];
          return p[t] = n(h), ct(e, this, p);
        };
      }
      function qa(e, t) {
        return t.length < 2 ? e : _n(e, wt(t, 0, -1));
      }
      function Lh(e, t) {
        for (var n = e.length, s = je(t.length, n), u = nt(e); s--; ) {
          var c = t[s];
          e[s] = Kt(c, n) ? u[c] : i;
        }
        return e;
      }
      function fo(e, t) {
        if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
          return e[t];
      }
      var Ya = ja(ga), or = Wf || function(e, t) {
        return qe.setTimeout(e, t);
      }, ho = ja(Yd);
      function Xa(e, t, n) {
        var s = t + "";
        return ho(e, _h(s, Oh(dh(s), n)));
      }
      function ja(e) {
        var t = 0, n = 0;
        return function() {
          var s = Kf(), u = Xe - (s - n);
          if (n = s, u > 0) {
            if (++t >= Ae)
              return arguments[0];
          } else
            t = 0;
          return e.apply(i, arguments);
        };
      }
      function qr(e, t) {
        var n = -1, s = e.length, u = s - 1;
        for (t = t === i ? s : t; ++n < t; ) {
          var c = Xi(n, u), h = e[c];
          e[c] = e[n], e[n] = h;
        }
        return e.length = t, e;
      }
      var za = bh(function(e) {
        var t = [];
        return e.charCodeAt(0) === 46 && t.push(""), e.replace(hc, function(n, s, u, c) {
          t.push(u ? c.replace(wc, "$1") : s || n);
        }), t;
      });
      function Dt(e) {
        if (typeof e == "string" || ht(e))
          return e;
        var t = e + "";
        return t == "0" && 1 / e == -ie ? "-0" : t;
      }
      function vn(e) {
        if (e != null) {
          try {
            return wr.call(e);
          } catch {
          }
          try {
            return e + "";
          } catch {
          }
        }
        return "";
      }
      function Oh(e, t) {
        return vt($e, function(n) {
          var s = "_." + n[0];
          t & n[1] && !gr(e, s) && e.push(s);
        }), e.sort();
      }
      function Za(e) {
        if (e instanceof de)
          return e.clone();
        var t = new yt(e.__wrapped__, e.__chain__);
        return t.__actions__ = nt(e.__actions__), t.__index__ = e.__index__, t.__values__ = e.__values__, t;
      }
      function Ah(e, t, n) {
        (n ? Je(e, t, n) : t === i) ? t = 1 : t = Ke(oe(t), 0);
        var s = e == null ? 0 : e.length;
        if (!s || t < 1)
          return [];
        for (var u = 0, c = 0, h = b(Ir(s / t)); u < s; )
          h[c++] = wt(e, u, u += t);
        return h;
      }
      function Th(e) {
        for (var t = -1, n = e == null ? 0 : e.length, s = 0, u = []; ++t < n; ) {
          var c = e[t];
          c && (u[s++] = c);
        }
        return u;
      }
      function Ih() {
        var e = arguments.length;
        if (!e)
          return [];
        for (var t = b(e - 1), n = arguments[0], s = e; s--; )
          t[s - 1] = arguments[s];
        return Qt(ne(n) ? nt(n) : [n], Ye(t, 1));
      }
      var Ph = ue(function(e, t) {
        return Ue(e) ? Jn(e, Ye(t, 1, Ue, !0)) : [];
      }), $h = ue(function(e, t) {
        var n = Et(t);
        return Ue(n) && (n = i), Ue(e) ? Jn(e, Ye(t, 1, Ue, !0), Y(n, 2)) : [];
      }), Rh = ue(function(e, t) {
        var n = Et(t);
        return Ue(n) && (n = i), Ue(e) ? Jn(e, Ye(t, 1, Ue, !0), i, n) : [];
      });
      function xh(e, t, n) {
        var s = e == null ? 0 : e.length;
        return s ? (t = n || t === i ? 1 : oe(t), wt(e, t < 0 ? 0 : t, s)) : [];
      }
      function Ch(e, t, n) {
        var s = e == null ? 0 : e.length;
        return s ? (t = n || t === i ? 1 : oe(t), t = s - t, wt(e, 0, t < 0 ? 0 : t)) : [];
      }
      function Uh(e, t) {
        return e && e.length ? kr(e, Y(t, 3), !0, !0) : [];
      }
      function Dh(e, t) {
        return e && e.length ? kr(e, Y(t, 3), !0) : [];
      }
      function Mh(e, t, n, s) {
        var u = e == null ? 0 : e.length;
        return u ? (n && typeof n != "number" && Je(e, t, n) && (n = 0, s = u), Id(e, t, n, s)) : [];
      }
      function Qa(e, t, n) {
        var s = e == null ? 0 : e.length;
        if (!s)
          return -1;
        var u = n == null ? 0 : oe(n);
        return u < 0 && (u = Ke(s + u, 0)), vr(e, Y(t, 3), u);
      }
      function Ja(e, t, n) {
        var s = e == null ? 0 : e.length;
        if (!s)
          return -1;
        var u = s - 1;
        return n !== i && (u = oe(n), u = n < 0 ? Ke(s + u, 0) : je(u, s - 1)), vr(e, Y(t, 3), u, !0);
      }
      function eu(e) {
        var t = e == null ? 0 : e.length;
        return t ? Ye(e, 1) : [];
      }
      function Fh(e) {
        var t = e == null ? 0 : e.length;
        return t ? Ye(e, ie) : [];
      }
      function kh(e, t) {
        var n = e == null ? 0 : e.length;
        return n ? (t = t === i ? 1 : oe(t), Ye(e, t)) : [];
      }
      function Wh(e) {
        for (var t = -1, n = e == null ? 0 : e.length, s = {}; ++t < n; ) {
          var u = e[t];
          s[u[0]] = u[1];
        }
        return s;
      }
      function tu(e) {
        return e && e.length ? e[0] : i;
      }
      function Bh(e, t, n) {
        var s = e == null ? 0 : e.length;
        if (!s)
          return -1;
        var u = n == null ? 0 : oe(n);
        return u < 0 && (u = Ke(s + u, 0)), Ln(e, t, u);
      }
      function Nh(e) {
        var t = e == null ? 0 : e.length;
        return t ? wt(e, 0, -1) : [];
      }
      var Gh = ue(function(e) {
        var t = Ie(e, Ji);
        return t.length && t[0] === e[0] ? Ki(t) : [];
      }), Kh = ue(function(e) {
        var t = Et(e), n = Ie(e, Ji);
        return t === Et(n) ? t = i : n.pop(), n.length && n[0] === e[0] ? Ki(n, Y(t, 2)) : [];
      }), Hh = ue(function(e) {
        var t = Et(e), n = Ie(e, Ji);
        return t = typeof t == "function" ? t : i, t && n.pop(), n.length && n[0] === e[0] ? Ki(n, i, t) : [];
      });
      function Vh(e, t) {
        return e == null ? "" : Nf.call(e, t);
      }
      function Et(e) {
        var t = e == null ? 0 : e.length;
        return t ? e[t - 1] : i;
      }
      function qh(e, t, n) {
        var s = e == null ? 0 : e.length;
        if (!s)
          return -1;
        var u = s;
        return n !== i && (u = oe(n), u = u < 0 ? Ke(s + u, 0) : je(u, s - 1)), t === t ? Of(e, t, u) : vr(e, Ds, u, !0);
      }
      function Yh(e, t) {
        return e && e.length ? da(e, oe(t)) : i;
      }
      var Xh = ue(nu);
      function nu(e, t) {
        return e && e.length && t && t.length ? Yi(e, t) : e;
      }
      function jh(e, t, n) {
        return e && e.length && t && t.length ? Yi(e, t, Y(n, 2)) : e;
      }
      function zh(e, t, n) {
        return e && e.length && t && t.length ? Yi(e, t, i, n) : e;
      }
      var Zh = Gt(function(e, t) {
        var n = e == null ? 0 : e.length, s = Wi(e, t);
        return _a(e, Ie(t, function(u) {
          return Kt(u, n) ? +u : u;
        }).sort(Oa)), s;
      });
      function Qh(e, t) {
        var n = [];
        if (!(e && e.length))
          return n;
        var s = -1, u = [], c = e.length;
        for (t = Y(t, 3); ++s < c; ) {
          var h = e[s];
          t(h, s, e) && (n.push(h), u.push(s));
        }
        return _a(e, u), n;
      }
      function po(e) {
        return e == null ? e : Vf.call(e);
      }
      function Jh(e, t, n) {
        var s = e == null ? 0 : e.length;
        return s ? (n && typeof n != "number" && Je(e, t, n) ? (t = 0, n = s) : (t = t == null ? 0 : oe(t), n = n === i ? s : oe(n)), wt(e, t, n)) : [];
      }
      function ep(e, t) {
        return Fr(e, t);
      }
      function tp(e, t, n) {
        return zi(e, t, Y(n, 2));
      }
      function np(e, t) {
        var n = e == null ? 0 : e.length;
        if (n) {
          var s = Fr(e, t);
          if (s < n && $t(e[s], t))
            return s;
        }
        return -1;
      }
      function rp(e, t) {
        return Fr(e, t, !0);
      }
      function ip(e, t, n) {
        return zi(e, t, Y(n, 2), !0);
      }
      function op(e, t) {
        var n = e == null ? 0 : e.length;
        if (n) {
          var s = Fr(e, t, !0) - 1;
          if ($t(e[s], t))
            return s;
        }
        return -1;
      }
      function sp(e) {
        return e && e.length ? va(e) : [];
      }
      function ap(e, t) {
        return e && e.length ? va(e, Y(t, 2)) : [];
      }
      function up(e) {
        var t = e == null ? 0 : e.length;
        return t ? wt(e, 1, t) : [];
      }
      function lp(e, t, n) {
        return e && e.length ? (t = n || t === i ? 1 : oe(t), wt(e, 0, t < 0 ? 0 : t)) : [];
      }
      function cp(e, t, n) {
        var s = e == null ? 0 : e.length;
        return s ? (t = n || t === i ? 1 : oe(t), t = s - t, wt(e, t < 0 ? 0 : t, s)) : [];
      }
      function fp(e, t) {
        return e && e.length ? kr(e, Y(t, 3), !1, !0) : [];
      }
      function dp(e, t) {
        return e && e.length ? kr(e, Y(t, 3)) : [];
      }
      var hp = ue(function(e) {
        return nn(Ye(e, 1, Ue, !0));
      }), pp = ue(function(e) {
        var t = Et(e);
        return Ue(t) && (t = i), nn(Ye(e, 1, Ue, !0), Y(t, 2));
      }), _p = ue(function(e) {
        var t = Et(e);
        return t = typeof t == "function" ? t : i, nn(Ye(e, 1, Ue, !0), i, t);
      });
      function gp(e) {
        return e && e.length ? nn(e) : [];
      }
      function vp(e, t) {
        return e && e.length ? nn(e, Y(t, 2)) : [];
      }
      function mp(e, t) {
        return t = typeof t == "function" ? t : i, e && e.length ? nn(e, i, t) : [];
      }
      function _o(e) {
        if (!(e && e.length))
          return [];
        var t = 0;
        return e = Zt(e, function(n) {
          if (Ue(n))
            return t = Ke(n.length, t), !0;
        }), Ri(t, function(n) {
          return Ie(e, Ii(n));
        });
      }
      function ru(e, t) {
        if (!(e && e.length))
          return [];
        var n = _o(e);
        return t == null ? n : Ie(n, function(s) {
          return ct(t, i, s);
        });
      }
      var yp = ue(function(e, t) {
        return Ue(e) ? Jn(e, t) : [];
      }), bp = ue(function(e) {
        return Qi(Zt(e, Ue));
      }), wp = ue(function(e) {
        var t = Et(e);
        return Ue(t) && (t = i), Qi(Zt(e, Ue), Y(t, 2));
      }), Ep = ue(function(e) {
        var t = Et(e);
        return t = typeof t == "function" ? t : i, Qi(Zt(e, Ue), i, t);
      }), Sp = ue(_o);
      function Lp(e, t) {
        return wa(e || [], t || [], Qn);
      }
      function Op(e, t) {
        return wa(e || [], t || [], nr);
      }
      var Ap = ue(function(e) {
        var t = e.length, n = t > 1 ? e[t - 1] : i;
        return n = typeof n == "function" ? (e.pop(), n) : i, ru(e, n);
      });
      function iu(e) {
        var t = l(e);
        return t.__chain__ = !0, t;
      }
      function Tp(e, t) {
        return t(e), e;
      }
      function Yr(e, t) {
        return t(e);
      }
      var Ip = Gt(function(e) {
        var t = e.length, n = t ? e[0] : 0, s = this.__wrapped__, u = function(c) {
          return Wi(c, e);
        };
        return t > 1 || this.__actions__.length || !(s instanceof de) || !Kt(n) ? this.thru(u) : (s = s.slice(n, +n + (t ? 1 : 0)), s.__actions__.push({
          func: Yr,
          args: [u],
          thisArg: i
        }), new yt(s, this.__chain__).thru(function(c) {
          return t && !c.length && c.push(i), c;
        }));
      });
      function Pp() {
        return iu(this);
      }
      function $p() {
        return new yt(this.value(), this.__chain__);
      }
      function Rp() {
        this.__values__ === i && (this.__values__ = mu(this.value()));
        var e = this.__index__ >= this.__values__.length, t = e ? i : this.__values__[this.__index__++];
        return { done: e, value: t };
      }
      function xp() {
        return this;
      }
      function Cp(e) {
        for (var t, n = this; n instanceof xr; ) {
          var s = Za(n);
          s.__index__ = 0, s.__values__ = i, t ? u.__wrapped__ = s : t = s;
          var u = s;
          n = n.__wrapped__;
        }
        return u.__wrapped__ = e, t;
      }
      function Up() {
        var e = this.__wrapped__;
        if (e instanceof de) {
          var t = e;
          return this.__actions__.length && (t = new de(this)), t = t.reverse(), t.__actions__.push({
            func: Yr,
            args: [po],
            thisArg: i
          }), new yt(t, this.__chain__);
        }
        return this.thru(po);
      }
      function Dp() {
        return ba(this.__wrapped__, this.__actions__);
      }
      var Mp = Wr(function(e, t, n) {
        we.call(e, n) ? ++e[n] : Bt(e, n, 1);
      });
      function Fp(e, t, n) {
        var s = ne(e) ? Cs : Td;
        return n && Je(e, t, n) && (t = i), s(e, Y(t, 3));
      }
      function kp(e, t) {
        var n = ne(e) ? Zt : ra;
        return n(e, Y(t, 3));
      }
      var Wp = Ra(Qa), Bp = Ra(Ja);
      function Np(e, t) {
        return Ye(Xr(e, t), 1);
      }
      function Gp(e, t) {
        return Ye(Xr(e, t), ie);
      }
      function Kp(e, t, n) {
        return n = n === i ? 1 : oe(n), Ye(Xr(e, t), n);
      }
      function ou(e, t) {
        var n = ne(e) ? vt : tn;
        return n(e, Y(t, 3));
      }
      function su(e, t) {
        var n = ne(e) ? uf : na;
        return n(e, Y(t, 3));
      }
      var Hp = Wr(function(e, t, n) {
        we.call(e, n) ? e[n].push(t) : Bt(e, n, [t]);
      });
      function Vp(e, t, n, s) {
        e = rt(e) ? e : Mn(e), n = n && !s ? oe(n) : 0;
        var u = e.length;
        return n < 0 && (n = Ke(u + n, 0)), Jr(e) ? n <= u && e.indexOf(t, n) > -1 : !!u && Ln(e, t, n) > -1;
      }
      var qp = ue(function(e, t, n) {
        var s = -1, u = typeof t == "function", c = rt(e) ? b(e.length) : [];
        return tn(e, function(h) {
          c[++s] = u ? ct(t, h, n) : er(h, t, n);
        }), c;
      }), Yp = Wr(function(e, t, n) {
        Bt(e, n, t);
      });
      function Xr(e, t) {
        var n = ne(e) ? Ie : la;
        return n(e, Y(t, 3));
      }
      function Xp(e, t, n, s) {
        return e == null ? [] : (ne(t) || (t = t == null ? [] : [t]), n = s ? i : n, ne(n) || (n = n == null ? [] : [n]), ha(e, t, n));
      }
      var jp = Wr(function(e, t, n) {
        e[n ? 0 : 1].push(t);
      }, function() {
        return [[], []];
      });
      function zp(e, t, n) {
        var s = ne(e) ? Ai : Fs, u = arguments.length < 3;
        return s(e, Y(t, 4), n, u, tn);
      }
      function Zp(e, t, n) {
        var s = ne(e) ? lf : Fs, u = arguments.length < 3;
        return s(e, Y(t, 4), n, u, na);
      }
      function Qp(e, t) {
        var n = ne(e) ? Zt : ra;
        return n(e, Zr(Y(t, 3)));
      }
      function Jp(e) {
        var t = ne(e) ? Qs : Vd;
        return t(e);
      }
      function e_(e, t, n) {
        (n ? Je(e, t, n) : t === i) ? t = 1 : t = oe(t);
        var s = ne(e) ? Ed : qd;
        return s(e, t);
      }
      function t_(e) {
        var t = ne(e) ? Sd : Xd;
        return t(e);
      }
      function n_(e) {
        if (e == null)
          return 0;
        if (rt(e))
          return Jr(e) ? An(e) : e.length;
        var t = ze(e);
        return t == Q || t == ke ? e.size : Vi(e).length;
      }
      function r_(e, t, n) {
        var s = ne(e) ? Ti : jd;
        return n && Je(e, t, n) && (t = i), s(e, Y(t, 3));
      }
      var i_ = ue(function(e, t) {
        if (e == null)
          return [];
        var n = t.length;
        return n > 1 && Je(e, t[0], t[1]) ? t = [] : n > 2 && Je(t[0], t[1], t[2]) && (t = [t[0]]), ha(e, Ye(t, 1), []);
      }), jr = kf || function() {
        return qe.Date.now();
      };
      function o_(e, t) {
        if (typeof t != "function")
          throw new mt(m);
        return e = oe(e), function() {
          if (--e < 1)
            return t.apply(this, arguments);
        };
      }
      function au(e, t, n) {
        return t = n ? i : t, t = e && t == null ? e.length : t, Nt(e, ae, i, i, i, i, t);
      }
      function uu(e, t) {
        var n;
        if (typeof t != "function")
          throw new mt(m);
        return e = oe(e), function() {
          return --e > 0 && (n = t.apply(this, arguments)), e <= 1 && (t = i), n;
        };
      }
      var go = ue(function(e, t, n) {
        var s = W;
        if (n.length) {
          var u = Jt(n, Un(go));
          s |= pe;
        }
        return Nt(e, s, t, n, u);
      }), lu = ue(function(e, t, n) {
        var s = W | Z;
        if (n.length) {
          var u = Jt(n, Un(lu));
          s |= pe;
        }
        return Nt(t, s, e, n, u);
      });
      function cu(e, t, n) {
        t = n ? i : t;
        var s = Nt(e, F, i, i, i, i, i, t);
        return s.placeholder = cu.placeholder, s;
      }
      function fu(e, t, n) {
        t = n ? i : t;
        var s = Nt(e, J, i, i, i, i, i, t);
        return s.placeholder = fu.placeholder, s;
      }
      function du(e, t, n) {
        var s, u, c, h, p, v, L = 0, O = !1, A = !1, x = !0;
        if (typeof e != "function")
          throw new mt(m);
        t = St(t) || 0, Re(n) && (O = !!n.leading, A = "maxWait" in n, c = A ? Ke(St(n.maxWait) || 0, t) : c, x = "trailing" in n ? !!n.trailing : x);
        function N(De) {
          var Rt = s, qt = u;
          return s = u = i, L = De, h = e.apply(qt, Rt), h;
        }
        function j(De) {
          return L = De, p = or(fe, t), O ? N(De) : h;
        }
        function se(De) {
          var Rt = De - v, qt = De - L, Ru = t - Rt;
          return A ? je(Ru, c - qt) : Ru;
        }
        function z(De) {
          var Rt = De - v, qt = De - L;
          return v === i || Rt >= t || Rt < 0 || A && qt >= c;
        }
        function fe() {
          var De = jr();
          if (z(De))
            return he(De);
          p = or(fe, se(De));
        }
        function he(De) {
          return p = i, x && s ? N(De) : (s = u = i, h);
        }
        function pt() {
          p !== i && Ea(p), L = 0, s = v = u = p = i;
        }
        function et() {
          return p === i ? h : he(jr());
        }
        function _t() {
          var De = jr(), Rt = z(De);
          if (s = arguments, u = this, v = De, Rt) {
            if (p === i)
              return j(v);
            if (A)
              return Ea(p), p = or(fe, t), N(v);
          }
          return p === i && (p = or(fe, t)), h;
        }
        return _t.cancel = pt, _t.flush = et, _t;
      }
      var s_ = ue(function(e, t) {
        return ta(e, 1, t);
      }), a_ = ue(function(e, t, n) {
        return ta(e, St(t) || 0, n);
      });
      function u_(e) {
        return Nt(e, D);
      }
      function zr(e, t) {
        if (typeof e != "function" || t != null && typeof t != "function")
          throw new mt(m);
        var n = function() {
          var s = arguments, u = t ? t.apply(this, s) : s[0], c = n.cache;
          if (c.has(u))
            return c.get(u);
          var h = e.apply(this, s);
          return n.cache = c.set(u, h) || c, h;
        };
        return n.cache = new (zr.Cache || Wt)(), n;
      }
      zr.Cache = Wt;
      function Zr(e) {
        if (typeof e != "function")
          throw new mt(m);
        return function() {
          var t = arguments;
          switch (t.length) {
            case 0:
              return !e.call(this);
            case 1:
              return !e.call(this, t[0]);
            case 2:
              return !e.call(this, t[0], t[1]);
            case 3:
              return !e.call(this, t[0], t[1], t[2]);
          }
          return !e.apply(this, t);
        };
      }
      function l_(e) {
        return uu(2, e);
      }
      var c_ = zd(function(e, t) {
        t = t.length == 1 && ne(t[0]) ? Ie(t[0], ft(Y())) : Ie(Ye(t, 1), ft(Y()));
        var n = t.length;
        return ue(function(s) {
          for (var u = -1, c = je(s.length, n); ++u < c; )
            s[u] = t[u].call(this, s[u]);
          return ct(e, this, s);
        });
      }), vo = ue(function(e, t) {
        var n = Jt(t, Un(vo));
        return Nt(e, pe, i, t, n);
      }), hu = ue(function(e, t) {
        var n = Jt(t, Un(hu));
        return Nt(e, q, i, t, n);
      }), f_ = Gt(function(e, t) {
        return Nt(e, ve, i, i, i, t);
      });
      function d_(e, t) {
        if (typeof e != "function")
          throw new mt(m);
        return t = t === i ? t : oe(t), ue(e, t);
      }
      function h_(e, t) {
        if (typeof e != "function")
          throw new mt(m);
        return t = t == null ? 0 : Ke(oe(t), 0), ue(function(n) {
          var s = n[t], u = on(n, 0, t);
          return s && Qt(u, s), ct(e, this, u);
        });
      }
      function p_(e, t, n) {
        var s = !0, u = !0;
        if (typeof e != "function")
          throw new mt(m);
        return Re(n) && (s = "leading" in n ? !!n.leading : s, u = "trailing" in n ? !!n.trailing : u), du(e, t, {
          leading: s,
          maxWait: t,
          trailing: u
        });
      }
      function __(e) {
        return au(e, 1);
      }
      function g_(e, t) {
        return vo(eo(t), e);
      }
      function v_() {
        if (!arguments.length)
          return [];
        var e = arguments[0];
        return ne(e) ? e : [e];
      }
      function m_(e) {
        return bt(e, E);
      }
      function y_(e, t) {
        return t = typeof t == "function" ? t : i, bt(e, E, t);
      }
      function b_(e) {
        return bt(e, T | E);
      }
      function w_(e, t) {
        return t = typeof t == "function" ? t : i, bt(e, T | E, t);
      }
      function E_(e, t) {
        return t == null || ea(e, t, He(t));
      }
      function $t(e, t) {
        return e === t || e !== e && t !== t;
      }
      var S_ = Kr(Gi), L_ = Kr(function(e, t) {
        return e >= t;
      }), mn = sa(/* @__PURE__ */ function() {
        return arguments;
      }()) ? sa : function(e) {
        return xe(e) && we.call(e, "callee") && !qs.call(e, "callee");
      }, ne = b.isArray, O_ = Ts ? ft(Ts) : Cd;
      function rt(e) {
        return e != null && Qr(e.length) && !Ht(e);
      }
      function Ue(e) {
        return xe(e) && rt(e);
      }
      function A_(e) {
        return e === !0 || e === !1 || xe(e) && Qe(e) == Ze;
      }
      var sn = Bf || Io, T_ = Is ? ft(Is) : Ud;
      function I_(e) {
        return xe(e) && e.nodeType === 1 && !sr(e);
      }
      function P_(e) {
        if (e == null)
          return !0;
        if (rt(e) && (ne(e) || typeof e == "string" || typeof e.splice == "function" || sn(e) || Dn(e) || mn(e)))
          return !e.length;
        var t = ze(e);
        if (t == Q || t == ke)
          return !e.size;
        if (ir(e))
          return !Vi(e).length;
        for (var n in e)
          if (we.call(e, n))
            return !1;
        return !0;
      }
      function $_(e, t) {
        return tr(e, t);
      }
      function R_(e, t, n) {
        n = typeof n == "function" ? n : i;
        var s = n ? n(e, t) : i;
        return s === i ? tr(e, t, i, n) : !!s;
      }
      function mo(e) {
        if (!xe(e))
          return !1;
        var t = Qe(e);
        return t == Mt || t == Xt || typeof e.message == "string" && typeof e.name == "string" && !sr(e);
      }
      function x_(e) {
        return typeof e == "number" && Xs(e);
      }
      function Ht(e) {
        if (!Re(e))
          return !1;
        var t = Qe(e);
        return t == U || t == V || t == At || t == xt;
      }
      function pu(e) {
        return typeof e == "number" && e == oe(e);
      }
      function Qr(e) {
        return typeof e == "number" && e > -1 && e % 1 == 0 && e <= le;
      }
      function Re(e) {
        var t = typeof e;
        return e != null && (t == "object" || t == "function");
      }
      function xe(e) {
        return e != null && typeof e == "object";
      }
      var _u = Ps ? ft(Ps) : Md;
      function C_(e, t) {
        return e === t || Hi(e, t, ao(t));
      }
      function U_(e, t, n) {
        return n = typeof n == "function" ? n : i, Hi(e, t, ao(t), n);
      }
      function D_(e) {
        return gu(e) && e != +e;
      }
      function M_(e) {
        if (yh(e))
          throw new ee(d);
        return aa(e);
      }
      function F_(e) {
        return e === null;
      }
      function k_(e) {
        return e == null;
      }
      function gu(e) {
        return typeof e == "number" || xe(e) && Qe(e) == ge;
      }
      function sr(e) {
        if (!xe(e) || Qe(e) != be)
          return !1;
        var t = Or(e);
        if (t === null)
          return !0;
        var n = we.call(t, "constructor") && t.constructor;
        return typeof n == "function" && n instanceof n && wr.call(n) == Uf;
      }
      var yo = $s ? ft($s) : Fd;
      function W_(e) {
        return pu(e) && e >= -le && e <= le;
      }
      var vu = Rs ? ft(Rs) : kd;
      function Jr(e) {
        return typeof e == "string" || !ne(e) && xe(e) && Qe(e) == Tt;
      }
      function ht(e) {
        return typeof e == "symbol" || xe(e) && Qe(e) == jt;
      }
      var Dn = xs ? ft(xs) : Wd;
      function B_(e) {
        return e === i;
      }
      function N_(e) {
        return xe(e) && ze(e) == un;
      }
      function G_(e) {
        return xe(e) && Qe(e) == Hn;
      }
      var K_ = Kr(qi), H_ = Kr(function(e, t) {
        return e <= t;
      });
      function mu(e) {
        if (!e)
          return [];
        if (rt(e))
          return Jr(e) ? It(e) : nt(e);
        if (Yn && e[Yn])
          return Ef(e[Yn]());
        var t = ze(e), n = t == Q ? Ci : t == ke ? mr : Mn;
        return n(e);
      }
      function Vt(e) {
        if (!e)
          return e === 0 ? e : 0;
        if (e = St(e), e === ie || e === -ie) {
          var t = e < 0 ? -1 : 1;
          return t * C;
        }
        return e === e ? e : 0;
      }
      function oe(e) {
        var t = Vt(e), n = t % 1;
        return t === t ? n ? t - n : t : 0;
      }
      function yu(e) {
        return e ? pn(oe(e), 0, X) : 0;
      }
      function St(e) {
        if (typeof e == "number")
          return e;
        if (ht(e))
          return B;
        if (Re(e)) {
          var t = typeof e.valueOf == "function" ? e.valueOf() : e;
          e = Re(t) ? t + "" : t;
        }
        if (typeof e != "string")
          return e === 0 ? e : +e;
        e = ks(e);
        var n = Lc.test(e);
        return n || Ac.test(e) ? of(e.slice(2), n ? 2 : 8) : Sc.test(e) ? B : +e;
      }
      function bu(e) {
        return Ut(e, it(e));
      }
      function V_(e) {
        return e ? pn(oe(e), -le, le) : e === 0 ? e : 0;
      }
      function ye(e) {
        return e == null ? "" : dt(e);
      }
      var q_ = xn(function(e, t) {
        if (ir(t) || rt(t)) {
          Ut(t, He(t), e);
          return;
        }
        for (var n in t)
          we.call(t, n) && Qn(e, n, t[n]);
      }), wu = xn(function(e, t) {
        Ut(t, it(t), e);
      }), ei = xn(function(e, t, n, s) {
        Ut(t, it(t), e, s);
      }), Y_ = xn(function(e, t, n, s) {
        Ut(t, He(t), e, s);
      }), X_ = Gt(Wi);
      function j_(e, t) {
        var n = Rn(e);
        return t == null ? n : Js(n, t);
      }
      var z_ = ue(function(e, t) {
        e = Ee(e);
        var n = -1, s = t.length, u = s > 2 ? t[2] : i;
        for (u && Je(t[0], t[1], u) && (s = 1); ++n < s; )
          for (var c = t[n], h = it(c), p = -1, v = h.length; ++p < v; ) {
            var L = h[p], O = e[L];
            (O === i || $t(O, In[L]) && !we.call(e, L)) && (e[L] = c[L]);
          }
        return e;
      }), Z_ = ue(function(e) {
        return e.push(i, ka), ct(Eu, i, e);
      });
      function Q_(e, t) {
        return Us(e, Y(t, 3), Ct);
      }
      function J_(e, t) {
        return Us(e, Y(t, 3), Ni);
      }
      function eg(e, t) {
        return e == null ? e : Bi(e, Y(t, 3), it);
      }
      function tg(e, t) {
        return e == null ? e : ia(e, Y(t, 3), it);
      }
      function ng(e, t) {
        return e && Ct(e, Y(t, 3));
      }
      function rg(e, t) {
        return e && Ni(e, Y(t, 3));
      }
      function ig(e) {
        return e == null ? [] : Dr(e, He(e));
      }
      function og(e) {
        return e == null ? [] : Dr(e, it(e));
      }
      function bo(e, t, n) {
        var s = e == null ? i : _n(e, t);
        return s === i ? n : s;
      }
      function sg(e, t) {
        return e != null && Na(e, t, Pd);
      }
      function wo(e, t) {
        return e != null && Na(e, t, $d);
      }
      var ag = Ca(function(e, t, n) {
        t != null && typeof t.toString != "function" && (t = Er.call(t)), e[t] = n;
      }, So(ot)), ug = Ca(function(e, t, n) {
        t != null && typeof t.toString != "function" && (t = Er.call(t)), we.call(e, t) ? e[t].push(n) : e[t] = [n];
      }, Y), lg = ue(er);
      function He(e) {
        return rt(e) ? Zs(e) : Vi(e);
      }
      function it(e) {
        return rt(e) ? Zs(e, !0) : Bd(e);
      }
      function cg(e, t) {
        var n = {};
        return t = Y(t, 3), Ct(e, function(s, u, c) {
          Bt(n, t(s, u, c), s);
        }), n;
      }
      function fg(e, t) {
        var n = {};
        return t = Y(t, 3), Ct(e, function(s, u, c) {
          Bt(n, u, t(s, u, c));
        }), n;
      }
      var dg = xn(function(e, t, n) {
        Mr(e, t, n);
      }), Eu = xn(function(e, t, n, s) {
        Mr(e, t, n, s);
      }), hg = Gt(function(e, t) {
        var n = {};
        if (e == null)
          return n;
        var s = !1;
        t = Ie(t, function(c) {
          return c = rn(c, e), s || (s = c.length > 1), c;
        }), Ut(e, oo(e), n), s && (n = bt(n, T | K | E, ah));
        for (var u = t.length; u--; )
          Zi(n, t[u]);
        return n;
      });
      function pg(e, t) {
        return Su(e, Zr(Y(t)));
      }
      var _g = Gt(function(e, t) {
        return e == null ? {} : Gd(e, t);
      });
      function Su(e, t) {
        if (e == null)
          return {};
        var n = Ie(oo(e), function(s) {
          return [s];
        });
        return t = Y(t), pa(e, n, function(s, u) {
          return t(s, u[0]);
        });
      }
      function gg(e, t, n) {
        t = rn(t, e);
        var s = -1, u = t.length;
        for (u || (u = 1, e = i); ++s < u; ) {
          var c = e == null ? i : e[Dt(t[s])];
          c === i && (s = u, c = n), e = Ht(c) ? c.call(e) : c;
        }
        return e;
      }
      function vg(e, t, n) {
        return e == null ? e : nr(e, t, n);
      }
      function mg(e, t, n, s) {
        return s = typeof s == "function" ? s : i, e == null ? e : nr(e, t, n, s);
      }
      var Lu = Ma(He), Ou = Ma(it);
      function yg(e, t, n) {
        var s = ne(e), u = s || sn(e) || Dn(e);
        if (t = Y(t, 4), n == null) {
          var c = e && e.constructor;
          u ? n = s ? new c() : [] : Re(e) ? n = Ht(c) ? Rn(Or(e)) : {} : n = {};
        }
        return (u ? vt : Ct)(e, function(h, p, v) {
          return t(n, h, p, v);
        }), n;
      }
      function bg(e, t) {
        return e == null ? !0 : Zi(e, t);
      }
      function wg(e, t, n) {
        return e == null ? e : ya(e, t, eo(n));
      }
      function Eg(e, t, n, s) {
        return s = typeof s == "function" ? s : i, e == null ? e : ya(e, t, eo(n), s);
      }
      function Mn(e) {
        return e == null ? [] : xi(e, He(e));
      }
      function Sg(e) {
        return e == null ? [] : xi(e, it(e));
      }
      function Lg(e, t, n) {
        return n === i && (n = t, t = i), n !== i && (n = St(n), n = n === n ? n : 0), t !== i && (t = St(t), t = t === t ? t : 0), pn(St(e), t, n);
      }
      function Og(e, t, n) {
        return t = Vt(t), n === i ? (n = t, t = 0) : n = Vt(n), e = St(e), Rd(e, t, n);
      }
      function Ag(e, t, n) {
        if (n && typeof n != "boolean" && Je(e, t, n) && (t = n = i), n === i && (typeof t == "boolean" ? (n = t, t = i) : typeof e == "boolean" && (n = e, e = i)), e === i && t === i ? (e = 0, t = 1) : (e = Vt(e), t === i ? (t = e, e = 0) : t = Vt(t)), e > t) {
          var s = e;
          e = t, t = s;
        }
        if (n || e % 1 || t % 1) {
          var u = js();
          return je(e + u * (t - e + rf("1e-" + ((u + "").length - 1))), t);
        }
        return Xi(e, t);
      }
      var Tg = Cn(function(e, t, n) {
        return t = t.toLowerCase(), e + (n ? Au(t) : t);
      });
      function Au(e) {
        return Eo(ye(e).toLowerCase());
      }
      function Tu(e) {
        return e = ye(e), e && e.replace(Ic, vf).replace(Yc, "");
      }
      function Ig(e, t, n) {
        e = ye(e), t = dt(t);
        var s = e.length;
        n = n === i ? s : pn(oe(n), 0, s);
        var u = n;
        return n -= t.length, n >= 0 && e.slice(n, u) == t;
      }
      function Pg(e) {
        return e = ye(e), e && uc.test(e) ? e.replace(is, mf) : e;
      }
      function $g(e) {
        return e = ye(e), e && pc.test(e) ? e.replace(gi, "\\$&") : e;
      }
      var Rg = Cn(function(e, t, n) {
        return e + (n ? "-" : "") + t.toLowerCase();
      }), xg = Cn(function(e, t, n) {
        return e + (n ? " " : "") + t.toLowerCase();
      }), Cg = $a("toLowerCase");
      function Ug(e, t, n) {
        e = ye(e), t = oe(t);
        var s = t ? An(e) : 0;
        if (!t || s >= t)
          return e;
        var u = (t - s) / 2;
        return Gr(Pr(u), n) + e + Gr(Ir(u), n);
      }
      function Dg(e, t, n) {
        e = ye(e), t = oe(t);
        var s = t ? An(e) : 0;
        return t && s < t ? e + Gr(t - s, n) : e;
      }
      function Mg(e, t, n) {
        e = ye(e), t = oe(t);
        var s = t ? An(e) : 0;
        return t && s < t ? Gr(t - s, n) + e : e;
      }
      function Fg(e, t, n) {
        return n || t == null ? t = 0 : t && (t = +t), Hf(ye(e).replace(vi, ""), t || 0);
      }
      function kg(e, t, n) {
        return (n ? Je(e, t, n) : t === i) ? t = 1 : t = oe(t), ji(ye(e), t);
      }
      function Wg() {
        var e = arguments, t = ye(e[0]);
        return e.length < 3 ? t : t.replace(e[1], e[2]);
      }
      var Bg = Cn(function(e, t, n) {
        return e + (n ? "_" : "") + t.toLowerCase();
      });
      function Ng(e, t, n) {
        return n && typeof n != "number" && Je(e, t, n) && (t = n = i), n = n === i ? X : n >>> 0, n ? (e = ye(e), e && (typeof t == "string" || t != null && !yo(t)) && (t = dt(t), !t && On(e)) ? on(It(e), 0, n) : e.split(t, n)) : [];
      }
      var Gg = Cn(function(e, t, n) {
        return e + (n ? " " : "") + Eo(t);
      });
      function Kg(e, t, n) {
        return e = ye(e), n = n == null ? 0 : pn(oe(n), 0, e.length), t = dt(t), e.slice(n, n + t.length) == t;
      }
      function Hg(e, t, n) {
        var s = l.templateSettings;
        n && Je(e, t, n) && (t = i), e = ye(e), t = ei({}, t, s, Fa);
        var u = ei({}, t.imports, s.imports, Fa), c = He(u), h = xi(u, c), p, v, L = 0, O = t.interpolate || hr, A = "__p += '", x = Ui(
          (t.escape || hr).source + "|" + O.source + "|" + (O === os ? Ec : hr).source + "|" + (t.evaluate || hr).source + "|$",
          "g"
        ), N = "//# sourceURL=" + (we.call(t, "sourceURL") ? (t.sourceURL + "").replace(/\s/g, " ") : "lodash.templateSources[" + ++Qc + "]") + `
`;
        e.replace(x, function(z, fe, he, pt, et, _t) {
          return he || (he = pt), A += e.slice(L, _t).replace(Pc, yf), fe && (p = !0, A += `' +
__e(` + fe + `) +
'`), et && (v = !0, A += `';
` + et + `;
__p += '`), he && (A += `' +
((__t = (` + he + `)) == null ? '' : __t) +
'`), L = _t + z.length, z;
        }), A += `';
`;
        var j = we.call(t, "variable") && t.variable;
        if (!j)
          A = `with (obj) {
` + A + `
}
`;
        else if (bc.test(j))
          throw new ee(_);
        A = (v ? A.replace(ic, "") : A).replace(oc, "$1").replace(sc, "$1;"), A = "function(" + (j || "obj") + `) {
` + (j ? "" : `obj || (obj = {});
`) + "var __t, __p = ''" + (p ? ", __e = _.escape" : "") + (v ? `, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
` : `;
`) + A + `return __p
}`;
        var se = Pu(function() {
          return me(c, N + "return " + A).apply(i, h);
        });
        if (se.source = A, mo(se))
          throw se;
        return se;
      }
      function Vg(e) {
        return ye(e).toLowerCase();
      }
      function qg(e) {
        return ye(e).toUpperCase();
      }
      function Yg(e, t, n) {
        if (e = ye(e), e && (n || t === i))
          return ks(e);
        if (!e || !(t = dt(t)))
          return e;
        var s = It(e), u = It(t), c = Ws(s, u), h = Bs(s, u) + 1;
        return on(s, c, h).join("");
      }
      function Xg(e, t, n) {
        if (e = ye(e), e && (n || t === i))
          return e.slice(0, Gs(e) + 1);
        if (!e || !(t = dt(t)))
          return e;
        var s = It(e), u = Bs(s, It(t)) + 1;
        return on(s, 0, u).join("");
      }
      function jg(e, t, n) {
        if (e = ye(e), e && (n || t === i))
          return e.replace(vi, "");
        if (!e || !(t = dt(t)))
          return e;
        var s = It(e), u = Ws(s, It(t));
        return on(s, u).join("");
      }
      function zg(e, t) {
        var n = Pe, s = Be;
        if (Re(t)) {
          var u = "separator" in t ? t.separator : u;
          n = "length" in t ? oe(t.length) : n, s = "omission" in t ? dt(t.omission) : s;
        }
        e = ye(e);
        var c = e.length;
        if (On(e)) {
          var h = It(e);
          c = h.length;
        }
        if (n >= c)
          return e;
        var p = n - An(s);
        if (p < 1)
          return s;
        var v = h ? on(h, 0, p).join("") : e.slice(0, p);
        if (u === i)
          return v + s;
        if (h && (p += v.length - p), yo(u)) {
          if (e.slice(p).search(u)) {
            var L, O = v;
            for (u.global || (u = Ui(u.source, ye(ss.exec(u)) + "g")), u.lastIndex = 0; L = u.exec(O); )
              var A = L.index;
            v = v.slice(0, A === i ? p : A);
          }
        } else if (e.indexOf(dt(u), p) != p) {
          var x = v.lastIndexOf(u);
          x > -1 && (v = v.slice(0, x));
        }
        return v + s;
      }
      function Zg(e) {
        return e = ye(e), e && ac.test(e) ? e.replace(rs, Af) : e;
      }
      var Qg = Cn(function(e, t, n) {
        return e + (n ? " " : "") + t.toUpperCase();
      }), Eo = $a("toUpperCase");
      function Iu(e, t, n) {
        return e = ye(e), t = n ? i : t, t === i ? wf(e) ? Pf(e) : df(e) : e.match(t) || [];
      }
      var Pu = ue(function(e, t) {
        try {
          return ct(e, i, t);
        } catch (n) {
          return mo(n) ? n : new ee(n);
        }
      }), Jg = Gt(function(e, t) {
        return vt(t, function(n) {
          n = Dt(n), Bt(e, n, go(e[n], e));
        }), e;
      });
      function ev(e) {
        var t = e == null ? 0 : e.length, n = Y();
        return e = t ? Ie(e, function(s) {
          if (typeof s[1] != "function")
            throw new mt(m);
          return [n(s[0]), s[1]];
        }) : [], ue(function(s) {
          for (var u = -1; ++u < t; ) {
            var c = e[u];
            if (ct(c[0], this, s))
              return ct(c[1], this, s);
          }
        });
      }
      function tv(e) {
        return Ad(bt(e, T));
      }
      function So(e) {
        return function() {
          return e;
        };
      }
      function nv(e, t) {
        return e == null || e !== e ? t : e;
      }
      var rv = xa(), iv = xa(!0);
      function ot(e) {
        return e;
      }
      function Lo(e) {
        return ua(typeof e == "function" ? e : bt(e, T));
      }
      function ov(e) {
        return ca(bt(e, T));
      }
      function sv(e, t) {
        return fa(e, bt(t, T));
      }
      var av = ue(function(e, t) {
        return function(n) {
          return er(n, e, t);
        };
      }), uv = ue(function(e, t) {
        return function(n) {
          return er(e, n, t);
        };
      });
      function Oo(e, t, n) {
        var s = He(t), u = Dr(t, s);
        n == null && !(Re(t) && (u.length || !s.length)) && (n = t, t = e, e = this, u = Dr(t, He(t)));
        var c = !(Re(n) && "chain" in n) || !!n.chain, h = Ht(e);
        return vt(u, function(p) {
          var v = t[p];
          e[p] = v, h && (e.prototype[p] = function() {
            var L = this.__chain__;
            if (c || L) {
              var O = e(this.__wrapped__), A = O.__actions__ = nt(this.__actions__);
              return A.push({ func: v, args: arguments, thisArg: e }), O.__chain__ = L, O;
            }
            return v.apply(e, Qt([this.value()], arguments));
          });
        }), e;
      }
      function lv() {
        return qe._ === this && (qe._ = Df), this;
      }
      function Ao() {
      }
      function cv(e) {
        return e = oe(e), ue(function(t) {
          return da(t, e);
        });
      }
      var fv = no(Ie), dv = no(Cs), hv = no(Ti);
      function $u(e) {
        return lo(e) ? Ii(Dt(e)) : Kd(e);
      }
      function pv(e) {
        return function(t) {
          return e == null ? i : _n(e, t);
        };
      }
      var _v = Ua(), gv = Ua(!0);
      function To() {
        return [];
      }
      function Io() {
        return !1;
      }
      function vv() {
        return {};
      }
      function mv() {
        return "";
      }
      function yv() {
        return !0;
      }
      function bv(e, t) {
        if (e = oe(e), e < 1 || e > le)
          return [];
        var n = X, s = je(e, X);
        t = Y(t), e -= X;
        for (var u = Ri(s, t); ++n < e; )
          t(n);
        return u;
      }
      function wv(e) {
        return ne(e) ? Ie(e, Dt) : ht(e) ? [e] : nt(za(ye(e)));
      }
      function Ev(e) {
        var t = ++Cf;
        return ye(e) + t;
      }
      var Sv = Nr(function(e, t) {
        return e + t;
      }, 0), Lv = ro("ceil"), Ov = Nr(function(e, t) {
        return e / t;
      }, 1), Av = ro("floor");
      function Tv(e) {
        return e && e.length ? Ur(e, ot, Gi) : i;
      }
      function Iv(e, t) {
        return e && e.length ? Ur(e, Y(t, 2), Gi) : i;
      }
      function Pv(e) {
        return Ms(e, ot);
      }
      function $v(e, t) {
        return Ms(e, Y(t, 2));
      }
      function Rv(e) {
        return e && e.length ? Ur(e, ot, qi) : i;
      }
      function xv(e, t) {
        return e && e.length ? Ur(e, Y(t, 2), qi) : i;
      }
      var Cv = Nr(function(e, t) {
        return e * t;
      }, 1), Uv = ro("round"), Dv = Nr(function(e, t) {
        return e - t;
      }, 0);
      function Mv(e) {
        return e && e.length ? $i(e, ot) : 0;
      }
      function Fv(e, t) {
        return e && e.length ? $i(e, Y(t, 2)) : 0;
      }
      return l.after = o_, l.ary = au, l.assign = q_, l.assignIn = wu, l.assignInWith = ei, l.assignWith = Y_, l.at = X_, l.before = uu, l.bind = go, l.bindAll = Jg, l.bindKey = lu, l.castArray = v_, l.chain = iu, l.chunk = Ah, l.compact = Th, l.concat = Ih, l.cond = ev, l.conforms = tv, l.constant = So, l.countBy = Mp, l.create = j_, l.curry = cu, l.curryRight = fu, l.debounce = du, l.defaults = z_, l.defaultsDeep = Z_, l.defer = s_, l.delay = a_, l.difference = Ph, l.differenceBy = $h, l.differenceWith = Rh, l.drop = xh, l.dropRight = Ch, l.dropRightWhile = Uh, l.dropWhile = Dh, l.fill = Mh, l.filter = kp, l.flatMap = Np, l.flatMapDeep = Gp, l.flatMapDepth = Kp, l.flatten = eu, l.flattenDeep = Fh, l.flattenDepth = kh, l.flip = u_, l.flow = rv, l.flowRight = iv, l.fromPairs = Wh, l.functions = ig, l.functionsIn = og, l.groupBy = Hp, l.initial = Nh, l.intersection = Gh, l.intersectionBy = Kh, l.intersectionWith = Hh, l.invert = ag, l.invertBy = ug, l.invokeMap = qp, l.iteratee = Lo, l.keyBy = Yp, l.keys = He, l.keysIn = it, l.map = Xr, l.mapKeys = cg, l.mapValues = fg, l.matches = ov, l.matchesProperty = sv, l.memoize = zr, l.merge = dg, l.mergeWith = Eu, l.method = av, l.methodOf = uv, l.mixin = Oo, l.negate = Zr, l.nthArg = cv, l.omit = hg, l.omitBy = pg, l.once = l_, l.orderBy = Xp, l.over = fv, l.overArgs = c_, l.overEvery = dv, l.overSome = hv, l.partial = vo, l.partialRight = hu, l.partition = jp, l.pick = _g, l.pickBy = Su, l.property = $u, l.propertyOf = pv, l.pull = Xh, l.pullAll = nu, l.pullAllBy = jh, l.pullAllWith = zh, l.pullAt = Zh, l.range = _v, l.rangeRight = gv, l.rearg = f_, l.reject = Qp, l.remove = Qh, l.rest = d_, l.reverse = po, l.sampleSize = e_, l.set = vg, l.setWith = mg, l.shuffle = t_, l.slice = Jh, l.sortBy = i_, l.sortedUniq = sp, l.sortedUniqBy = ap, l.split = Ng, l.spread = h_, l.tail = up, l.take = lp, l.takeRight = cp, l.takeRightWhile = fp, l.takeWhile = dp, l.tap = Tp, l.throttle = p_, l.thru = Yr, l.toArray = mu, l.toPairs = Lu, l.toPairsIn = Ou, l.toPath = wv, l.toPlainObject = bu, l.transform = yg, l.unary = __, l.union = hp, l.unionBy = pp, l.unionWith = _p, l.uniq = gp, l.uniqBy = vp, l.uniqWith = mp, l.unset = bg, l.unzip = _o, l.unzipWith = ru, l.update = wg, l.updateWith = Eg, l.values = Mn, l.valuesIn = Sg, l.without = yp, l.words = Iu, l.wrap = g_, l.xor = bp, l.xorBy = wp, l.xorWith = Ep, l.zip = Sp, l.zipObject = Lp, l.zipObjectDeep = Op, l.zipWith = Ap, l.entries = Lu, l.entriesIn = Ou, l.extend = wu, l.extendWith = ei, Oo(l, l), l.add = Sv, l.attempt = Pu, l.camelCase = Tg, l.capitalize = Au, l.ceil = Lv, l.clamp = Lg, l.clone = m_, l.cloneDeep = b_, l.cloneDeepWith = w_, l.cloneWith = y_, l.conformsTo = E_, l.deburr = Tu, l.defaultTo = nv, l.divide = Ov, l.endsWith = Ig, l.eq = $t, l.escape = Pg, l.escapeRegExp = $g, l.every = Fp, l.find = Wp, l.findIndex = Qa, l.findKey = Q_, l.findLast = Bp, l.findLastIndex = Ja, l.findLastKey = J_, l.floor = Av, l.forEach = ou, l.forEachRight = su, l.forIn = eg, l.forInRight = tg, l.forOwn = ng, l.forOwnRight = rg, l.get = bo, l.gt = S_, l.gte = L_, l.has = sg, l.hasIn = wo, l.head = tu, l.identity = ot, l.includes = Vp, l.indexOf = Bh, l.inRange = Og, l.invoke = lg, l.isArguments = mn, l.isArray = ne, l.isArrayBuffer = O_, l.isArrayLike = rt, l.isArrayLikeObject = Ue, l.isBoolean = A_, l.isBuffer = sn, l.isDate = T_, l.isElement = I_, l.isEmpty = P_, l.isEqual = $_, l.isEqualWith = R_, l.isError = mo, l.isFinite = x_, l.isFunction = Ht, l.isInteger = pu, l.isLength = Qr, l.isMap = _u, l.isMatch = C_, l.isMatchWith = U_, l.isNaN = D_, l.isNative = M_, l.isNil = k_, l.isNull = F_, l.isNumber = gu, l.isObject = Re, l.isObjectLike = xe, l.isPlainObject = sr, l.isRegExp = yo, l.isSafeInteger = W_, l.isSet = vu, l.isString = Jr, l.isSymbol = ht, l.isTypedArray = Dn, l.isUndefined = B_, l.isWeakMap = N_, l.isWeakSet = G_, l.join = Vh, l.kebabCase = Rg, l.last = Et, l.lastIndexOf = qh, l.lowerCase = xg, l.lowerFirst = Cg, l.lt = K_, l.lte = H_, l.max = Tv, l.maxBy = Iv, l.mean = Pv, l.meanBy = $v, l.min = Rv, l.minBy = xv, l.stubArray = To, l.stubFalse = Io, l.stubObject = vv, l.stubString = mv, l.stubTrue = yv, l.multiply = Cv, l.nth = Yh, l.noConflict = lv, l.noop = Ao, l.now = jr, l.pad = Ug, l.padEnd = Dg, l.padStart = Mg, l.parseInt = Fg, l.random = Ag, l.reduce = zp, l.reduceRight = Zp, l.repeat = kg, l.replace = Wg, l.result = gg, l.round = Uv, l.runInContext = g, l.sample = Jp, l.size = n_, l.snakeCase = Bg, l.some = r_, l.sortedIndex = ep, l.sortedIndexBy = tp, l.sortedIndexOf = np, l.sortedLastIndex = rp, l.sortedLastIndexBy = ip, l.sortedLastIndexOf = op, l.startCase = Gg, l.startsWith = Kg, l.subtract = Dv, l.sum = Mv, l.sumBy = Fv, l.template = Hg, l.times = bv, l.toFinite = Vt, l.toInteger = oe, l.toLength = yu, l.toLower = Vg, l.toNumber = St, l.toSafeInteger = V_, l.toString = ye, l.toUpper = qg, l.trim = Yg, l.trimEnd = Xg, l.trimStart = jg, l.truncate = zg, l.unescape = Zg, l.uniqueId = Ev, l.upperCase = Qg, l.upperFirst = Eo, l.each = ou, l.eachRight = su, l.first = tu, Oo(l, function() {
        var e = {};
        return Ct(l, function(t, n) {
          we.call(l.prototype, n) || (e[n] = t);
        }), e;
      }(), { chain: !1 }), l.VERSION = a, vt(["bind", "bindKey", "curry", "curryRight", "partial", "partialRight"], function(e) {
        l[e].placeholder = l;
      }), vt(["drop", "take"], function(e, t) {
        de.prototype[e] = function(n) {
          n = n === i ? 1 : Ke(oe(n), 0);
          var s = this.__filtered__ && !t ? new de(this) : this.clone();
          return s.__filtered__ ? s.__takeCount__ = je(n, s.__takeCount__) : s.__views__.push({
            size: je(n, X),
            type: e + (s.__dir__ < 0 ? "Right" : "")
          }), s;
        }, de.prototype[e + "Right"] = function(n) {
          return this.reverse()[e](n).reverse();
        };
      }), vt(["filter", "map", "takeWhile"], function(e, t) {
        var n = t + 1, s = n == Ot || n == G;
        de.prototype[e] = function(u) {
          var c = this.clone();
          return c.__iteratees__.push({
            iteratee: Y(u, 3),
            type: n
          }), c.__filtered__ = c.__filtered__ || s, c;
        };
      }), vt(["head", "last"], function(e, t) {
        var n = "take" + (t ? "Right" : "");
        de.prototype[e] = function() {
          return this[n](1).value()[0];
        };
      }), vt(["initial", "tail"], function(e, t) {
        var n = "drop" + (t ? "" : "Right");
        de.prototype[e] = function() {
          return this.__filtered__ ? new de(this) : this[n](1);
        };
      }), de.prototype.compact = function() {
        return this.filter(ot);
      }, de.prototype.find = function(e) {
        return this.filter(e).head();
      }, de.prototype.findLast = function(e) {
        return this.reverse().find(e);
      }, de.prototype.invokeMap = ue(function(e, t) {
        return typeof e == "function" ? new de(this) : this.map(function(n) {
          return er(n, e, t);
        });
      }), de.prototype.reject = function(e) {
        return this.filter(Zr(Y(e)));
      }, de.prototype.slice = function(e, t) {
        e = oe(e);
        var n = this;
        return n.__filtered__ && (e > 0 || t < 0) ? new de(n) : (e < 0 ? n = n.takeRight(-e) : e && (n = n.drop(e)), t !== i && (t = oe(t), n = t < 0 ? n.dropRight(-t) : n.take(t - e)), n);
      }, de.prototype.takeRightWhile = function(e) {
        return this.reverse().takeWhile(e).reverse();
      }, de.prototype.toArray = function() {
        return this.take(X);
      }, Ct(de.prototype, function(e, t) {
        var n = /^(?:filter|find|map|reject)|While$/.test(t), s = /^(?:head|last)$/.test(t), u = l[s ? "take" + (t == "last" ? "Right" : "") : t], c = s || /^find/.test(t);
        u && (l.prototype[t] = function() {
          var h = this.__wrapped__, p = s ? [1] : arguments, v = h instanceof de, L = p[0], O = v || ne(h), A = function(fe) {
            var he = u.apply(l, Qt([fe], p));
            return s && x ? he[0] : he;
          };
          O && n && typeof L == "function" && L.length != 1 && (v = O = !1);
          var x = this.__chain__, N = !!this.__actions__.length, j = c && !x, se = v && !N;
          if (!c && O) {
            h = se ? h : new de(this);
            var z = e.apply(h, p);
            return z.__actions__.push({ func: Yr, args: [A], thisArg: i }), new yt(z, x);
          }
          return j && se ? e.apply(this, p) : (z = this.thru(A), j ? s ? z.value()[0] : z.value() : z);
        });
      }), vt(["pop", "push", "shift", "sort", "splice", "unshift"], function(e) {
        var t = yr[e], n = /^(?:push|sort|unshift)$/.test(e) ? "tap" : "thru", s = /^(?:pop|shift)$/.test(e);
        l.prototype[e] = function() {
          var u = arguments;
          if (s && !this.__chain__) {
            var c = this.value();
            return t.apply(ne(c) ? c : [], u);
          }
          return this[n](function(h) {
            return t.apply(ne(h) ? h : [], u);
          });
        };
      }), Ct(de.prototype, function(e, t) {
        var n = l[t];
        if (n) {
          var s = n.name + "";
          we.call($n, s) || ($n[s] = []), $n[s].push({ name: t, func: n });
        }
      }), $n[Br(i, Z).name] = [{
        name: "wrapper",
        func: i
      }], de.prototype.clone = Zf, de.prototype.reverse = Qf, de.prototype.value = Jf, l.prototype.at = Ip, l.prototype.chain = Pp, l.prototype.commit = $p, l.prototype.next = Rp, l.prototype.plant = Cp, l.prototype.reverse = Up, l.prototype.toJSON = l.prototype.valueOf = l.prototype.value = Dp, l.prototype.first = l.prototype.head, Yn && (l.prototype[Yn] = xp), l;
    }, Tn = $f();
    cn ? ((cn.exports = Tn)._ = Tn, Si._ = Tn) : qe._ = Tn;
  }).call(Yt);
})(ii, ii.exports);
var ui = ii.exports;
const sm = /* @__PURE__ */ jv(ui);
var Ro = {}, xo = {}, Mu;
function Ml() {
  return Mu || (Mu = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.findFirstMatch = r.replaceUrls = r.replacePhoneNumbers = r.replaceEmails = r.getUrlWithProtocol = r.PatternType = void 0;
    const o = /(?:\+|\()?\d(?:[-.() \t\u00a0\u1680\u180e\u2000\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]{0,5}\d){6,16}\)?(?![<@)\w])|\*\d{4}(?![<@)\w])/, i = /(?:^|[\s:;,<>])(?:\+|\()?\d(?:[-.() \t\u00a0\u1680\u180e\u2000\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]{0,5}\d){6,16}\)?(?![<@)\w])|\*\d{4}(?![<@)\w])/, a = /(^|[\s:;,<>])([A-Z0-9][A-Z0-9._%+-]+@[A-Z0-9][A-Z0-9.-]+\.[A-Z]{2,})(?=$|[\s:;,<>])/i, f = /(^|[\s:;,<>])((?:https?:\/\/|www\.)[a-z0-9](?:\.?[a-z0-9\-%_])*(?:(?:\\|\/)[a-z0-9\-._~:/\\?#[\]@!$&'()*+,;=%]*)?)(?=$|[^a-z0-9\-._~:/\\?#[\]@!$&'()*+,;=%])/i, d = new RegExp(i, "g"), m = /([A-Z0-9][A-Z0-9._%+-]+@[A-Z0-9][A-Z0-9.-]+\.[A-Z]{2,})/gi, _ = /((?:https?:\/\/|www\.)[a-z0-9](?:\.?[a-z0-9\-%_])*(?:(?:\\|\/)[a-z0-9\-._~:/\\?#[\]@!$&'()*+,;=%]*)?)/gi;
    r.PatternType = {
      PHONE: "PHONE",
      MAIL: "MAIL",
      URL: "URL"
    };
    const w = (k) => {
      const F = k.match(o);
      return F && {
        key: F[0],
        value: F[0].match(/[*\d]/g).join(""),
        index: F.index,
        pattern: r.PatternType.PHONE
      };
    }, y = (k) => {
      const F = k.match(a);
      if (F) {
        const J = F[1].length, pe = F[2];
        return {
          key: pe,
          value: pe,
          index: F.index + J,
          pattern: r.PatternType.MAIL
        };
      } else
        return null;
    }, P = (k) => k.toLowerCase().indexOf("http") === 0 ? k : `http://${k}`;
    r.getUrlWithProtocol = P;
    const T = (k) => {
      const F = k.match(f);
      if (F) {
        const J = F[2], pe = F[1].length, q = (0, r.getUrlWithProtocol)(J);
        return {
          key: J,
          value: q,
          index: F.index + pe,
          pattern: r.PatternType.URL
        };
      } else
        return null;
    }, K = (k, F) => k.replace(m, F);
    r.replaceEmails = K;
    const E = [" ", ":", ";", ",", "<", ">"], I = (k, F) => k.replace(d, (J) => {
      const pe = E.find((q) => q === J[0]);
      return pe ? pe + F(J.substring(1, J.length)) : F(J);
    });
    r.replacePhoneNumbers = I;
    const R = (k, F) => k.replace(_, F);
    r.replaceUrls = R;
    const W = {
      [r.PatternType.PHONE]: w,
      [r.PatternType.MAIL]: y,
      [r.PatternType.URL]: T
    };
    function Z(k, F = {}) {
      if (!k)
        return null;
      const J = Object.keys(F).filter((q) => F[q]).map((q) => W[q](k)).filter((q) => q !== null);
      return J[0] ? J.reduce((q, ae) => ae.index < q.index ? ae : q, J[0]) : null;
    }
    r.findFirstMatch = Z;
  }(xo)), xo;
}
var Co = {}, Fu;
function dr() {
  return Fu || (Fu = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.isScrollTopOrBottomAnchor = r.isSamePageAnchorUrl = r.isPageUrl = r.isAbsoluteUrl = r.isDocumentUrl = r.isMailtoUrl = r.isWhatsappLink = r.isPhoneUrl = r.LEGACY_DOCUMENT_URL_REGEXP = r.DOCUMENT_URL_REGEXP = r.ABSOLUTE_URL_REGEXP = r.SAME_PAGE_WITH_ANCHOR_REGEXP = r.PAGE_URL_REGEXP = r.WHATSAPP_LINK_PREFIX = r.PHONE_URL_REGEXP = r.MAILTO_URL_REGEXP = void 0, r.MAILTO_URL_REGEXP = /mailto:([^?]+)(\?(.*))?/, r.PHONE_URL_REGEXP = /^tel:(.*)/, r.WHATSAPP_LINK_PREFIX = "https://api.whatsapp.com/send?phone=", r.PAGE_URL_REGEXP = /^\/([^ ?#]*)?[#]?([^ ?#]*)[?]?(.*)/, r.SAME_PAGE_WITH_ANCHOR_REGEXP = /^#([^ ?]*)[?]?(.*)/, r.ABSOLUTE_URL_REGEXP = /^(http|https):\/\/(.*)/, r.DOCUMENT_URL_REGEXP = /^wix:document:\/\/v1\/(.+)\/(.+)/, r.LEGACY_DOCUMENT_URL_REGEXP = /^document:\/\/(.*)/;
    const o = (y) => r.PHONE_URL_REGEXP.test(y);
    r.isPhoneUrl = o;
    const i = (y) => y.startsWith(r.WHATSAPP_LINK_PREFIX);
    r.isWhatsappLink = i;
    const a = (y) => r.MAILTO_URL_REGEXP.test(y);
    r.isMailtoUrl = a;
    const f = (y) => r.DOCUMENT_URL_REGEXP.test(y) || r.LEGACY_DOCUMENT_URL_REGEXP.test(y);
    r.isDocumentUrl = f;
    const d = (y) => r.ABSOLUTE_URL_REGEXP.test(y);
    r.isAbsoluteUrl = d;
    const m = (y) => r.PAGE_URL_REGEXP.test(y);
    r.isPageUrl = m;
    const _ = (y) => r.SAME_PAGE_WITH_ANCHOR_REGEXP.test(y);
    r.isSamePageAnchorUrl = _;
    const w = (y) => ["SCROLL_TO_TOP", "SCROLL_TO_BOTTOM"].includes(y);
    r.isScrollTopOrBottomAnchor = w;
  }(Co)), Co;
}
var ku;
function li() {
  return ku || (ku = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.hasLinkDataWithCurrentRouteAnchors = r.getDocumentLink = r.resolveDocumentLink = r.getBaseUrlFilesPath = r.resolveDynamicPageLink = r.resolveAddressLink = r.resolveWhatsAppLink = r.resolvePhoneLink = r.resolveEmailLink = r.getPostSignupUrl = r.getImpliedLinks = r.getImpliedLink = r.convertDataQueryLinksToHtmlAnchors = r.toQueryString = r.ALLOWED_FILE_EXTENSIONS_FROM_USER_DOMAIN = void 0;
    const o = Ml(), i = dr();
    r.ALLOWED_FILE_EXTENSIONS_FROM_USER_DOMAIN = [
      "pdf",
      "docx",
      "zip",
      "pptx",
      "xlsx",
      "doc",
      "txt",
      "rar",
      "xls",
      "ppt",
      "ppsx",
      "epub",
      "rtf",
      "pub",
      "vcf",
      "csv"
    ];
    const a = {
      [o.PatternType.PHONE]: "tel:",
      [o.PatternType.MAIL]: "mailto:",
      [o.PatternType.URL]: ""
    }, f = ({ pattern: $, value: G }) => ({ ...$ === o.PatternType.URL ? { target: "_blank" } : {}, href: `${a[$]}${G}` }), d = ($) => {
      switch ($) {
        case "linkPopupId":
          return "data-popupid";
        case "anchorDataId":
          return "data-anchor";
        case "anchorCompId":
          return "data-anchor-comp-id";
        default:
          return $;
      }
    }, m = ($) => Object.keys($).map((G) => `${G}=${encodeURIComponent($[G])}`).join("&");
    r.toQueryString = m;
    const _ = ($) => $ ? ($.linkPopupId && ($.role = "button", $["aria-haspopup"] = "dialog", $.tabindex = "0", delete $.href), Object.keys($).map((G) => `${d(G)}="${$[G]}"`).join(" ")) : "", w = ($) => $.filter((G) => G !== "").map((G) => G.trim()).join(" "), y = ($, G) => $.replace(/<a ([^>]*)dataquery="#([^"]+)"([^>]*)>/g, (ie, le, C, B) => {
      const X = G[C], ce = w([le, _(X), B]);
      return `<a${ce ? ` ${ce}` : ""}>`;
    });
    r.convertDataQueryLinksToHtmlAnchors = y;
    const P = ($, G) => {
      const ie = (0, o.findFirstMatch)($, { MAIL: !0, URL: !0, PHONE: G });
      return ie && f(ie);
    };
    r.getImpliedLink = P;
    const T = ($) => (G) => {
      let ie = "";
      const le = G.trim();
      switch ($) {
        case "email":
          ie = `href="mailto:${le}"`;
          break;
        case "phone":
          ie = `href="tel:${le}"`;
          break;
        case "url":
          ie = `href="${(0, o.getUrlWithProtocol)(le)}" target="_blank"`;
          break;
      }
      return `<a data-auto-recognition="true" ${ie}>${G}</a>`;
    }, K = T("email"), E = T("url"), I = T("phone"), R = ($, G) => (ie, le) => {
      if (!le || !G && le.startsWith("&lt;"))
        return ie;
      let C = (0, o.replaceEmails)(le, K);
      return C = (0, o.replaceUrls)(C, E), $ && (C = (0, o.replacePhoneNumbers)(C, I)), ie.split(le).join(C);
    };
    function W($, G, { parseEscaped: ie } = { parseEscaped: !1 }) {
      return $.replace(/>((?![<>]).+?)<|(?:<a.*>.*<\/a>)/g, R(G, ie));
    }
    r.getImpliedLinks = W;
    const Z = ($) => {
      const G = "{ifcontext}";
      if (!$.includes(G))
        return $;
      const [, ie] = $.split("?"), le = new URLSearchParams(ie);
      let C, B = "";
      return le.forEach((X, ce) => {
        ce.toLowerCase() === "ifcontext" && (C = X.replace("#", ""), /^[a-zA-Z0-9]+$/.test(C) ? B = $.replace(G, C) : B = $.replace(G, "illegalContextValue"));
      }), B || $;
    };
    r.getPostSignupUrl = Z;
    const k = ({ recipient: $, subject: G, body: ie, bcc: le = void 0, cc: C = void 0 }) => {
      const B = Object.entries({ subject: G, body: ie, bcc: le, cc: C }).filter(([, ce]) => ce).map(([ce, Le]) => `${ce}=${Le}`).join("&"), X = B.length > 0 ? `?${B}` : "";
      return `mailto:${$}${X}`;
    };
    r.resolveEmailLink = k;
    const F = ({ phoneNumber: $ }) => `tel:${$}`;
    r.resolvePhoneLink = F;
    const J = ({ phoneNumber: $ }) => {
      const G = $.replace(new RegExp("[+|-]", "g"), "");
      return `${i.WHATSAPP_LINK_PREFIX}${G}`;
    };
    r.resolveWhatsAppLink = J;
    const pe = ({ address: $ }) => `http://maps.google.com/maps?daddr=${encodeURI($)}`;
    r.resolveAddressLink = pe;
    const q = ($) => $ && $.replace(/^\//, ""), ae = ($, { innerRoute: G }, ie) => {
      const { prefix: le } = ie, C = q(G);
      return C ? `${$}/${le}/${C}` : `${$}/${le}`;
    };
    r.resolveDynamicPageLink = ae;
    const ve = ($) => {
      const G = new URL($).hostname;
      return G.endsWith(".wixsite.com") || G.endsWith(".editorx.io") || G.endsWith(".wixstudio.io");
    }, D = ($, G, ie) => {
      const le = new URL(G).hostname.startsWith("editor.wix");
      return !$ || le || ve(G) ? !1 : r.ALLOWED_FILE_EXTENSIONS_FROM_USER_DOMAIN.some((C) => ie.endsWith(C));
    }, Pe = ($, G, ie) => $.endsWith(".pdf") ? ie ? "?index=true" : "" : `?${(0, r.toQueryString)({ dn: G })}`, Be = ($) => {
      const G = $.endsWith("/") ? $ : `${$}/`;
      return new URL("_files", G);
    };
    r.getBaseUrlFilesPath = Be;
    const Ae = ({ docId: $, name: G, indexable: ie }, le, C, B, X) => {
      const Le = D(X, B, $) ? (0, r.getBaseUrlFilesPath)(B) : `https://${le}.${C}`, $e = $.includes("/") ? $ : `ugd/${$}`, Te = $e.startsWith("/") ? $e : `/${$e}`, Fe = Pe($, G, ie);
      return `${Le}${Te}${Fe}`;
    };
    r.resolveDocumentLink = Ae;
    const Xe = ($, G = "") => `wix:document://v1/${$}/${G}`;
    r.getDocumentLink = Xe;
    const Ot = ($) => {
      const G = $?.items || $?.linkList || $?.menuRef || [], ie = $?.anchorDataId || $?.link?.anchorDataId || "", le = $?.innerRoute || $?.link?.innerRoute;
      return ["SCROLL_TO_TOP", "SCROLL_TO_BOTTOM"].includes(ie) || le === "CURRENT_INNER_ROUTE" || G.some((X) => (0, r.hasLinkDataWithCurrentRouteAnchors)(X));
    };
    r.hasLinkDataWithCurrentRouteAnchors = Ot;
  }(Ro)), Ro;
}
var Uo = {}, Wu;
function Yo() {
  return Wu || (Wu = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.isAbsoluteLink = r.createExternalLinkUtils = r.getDocumentLinkProps = void 0;
    const o = cr, i = li(), a = dr(), f = o.__importDefault(ui), d = {
      top: "SCROLL_TO_TOP",
      bottom: "SCROLL_TO_BOTTOM"
    }, m = (I) => ({
      subject: encodeURIComponent(I.get("subject") || ""),
      body: encodeURIComponent(I.get("body") || ""),
      bcc: encodeURIComponent(I.get("bcc") || ""),
      cc: encodeURIComponent(I.get("cc") || "")
    }), _ = (I) => {
      const [, R, W] = a.MAILTO_URL_REGEXP.exec(I), Z = m(new URLSearchParams(W));
      return {
        type: "EmailLink",
        href: (0, i.resolveEmailLink)({ recipient: R, ...Z }),
        target: "_self"
      };
    }, w = (I) => {
      const [, R] = a.PHONE_URL_REGEXP.exec(I);
      return {
        type: "PhoneLink",
        href: (0, i.resolvePhoneLink)({ phoneNumber: R }),
        target: "_self"
      };
    }, y = (I, R = "_blank", W = "noopener") => ({
      type: "ExternalLink",
      href: I,
      target: R,
      rel: W
    }), P = (I, R, W = "filesusr.com/", Z = "", k = !1) => {
      const [, F, J] = a.DOCUMENT_URL_REGEXP.exec(I) || a.LEGACY_DOCUMENT_URL_REGEXP.exec(I);
      return {
        type: "DocumentLink",
        href: (0, i.resolveDocumentLink)({ docId: F, name: J || "", indexable: !1 }, R, W, Z, k),
        target: "_blank",
        docInfo: {
          docId: F,
          name: J
        }
      };
    };
    r.getDocumentLinkProps = P;
    class T extends Error {
      constructor() {
        super("Unsupported link type"), this.name = "UnsupportedLinkTypeError", Error.captureStackTrace && Error.captureStackTrace(this, T);
      }
    }
    const K = ({ metaSiteId: I = "unknown", isMobileView: R = !1 }) => {
      const W = `https://${I}.filesusr.com/`, Z = (k) => k.startsWith(W);
      return {
        isDynamicPage: () => !1,
        isAbsoluteUrl: a.isAbsoluteUrl,
        getImpliedLink: (k) => (0, i.getImpliedLink)(k, R),
        getImpliedLinks: (k, F) => (0, i.getImpliedLinks)(k, R, F),
        getLink: ({ href: k = "", anchorDataId: F = "", docInfo: J, type: pe } = {}) => {
          if ((0, a.isMailtoUrl)(k))
            return k;
          if (Z(k))
            return (0, i.getDocumentLink)(J.docId, J.name);
          const q = typeof F == "string" ? F : F?.id;
          return (0, a.isScrollTopOrBottomAnchor)(q) ? `#${f.default.invert(d)[q]}` : k;
        },
        getLinkProps: (k, F, J) => {
          if ((0, a.isMailtoUrl)(k))
            return _(k);
          if ((0, a.isPhoneUrl)(k))
            return w(k);
          if ((0, a.isAbsoluteUrl)(k))
            return y(k, F, J);
          if ((0, a.isDocumentUrl)(k))
            return (0, r.getDocumentLinkProps)(k, I);
          throw new T();
        },
        getLinkUrlFromDataItem: () => {
          throw new Error("getLinkUrlFromDataItem is not implemented");
        }
      };
    };
    r.createExternalLinkUtils = K;
    const E = (I, { href: R = "", anchorDataId: W = "", type: Z }) => {
      const k = typeof W == "string" ? W : W?.id;
      return (0, a.isMailtoUrl)(R) || Z === "ExternalLink" || R.startsWith(`https://${I}.filesusr.com/`) || (0, a.isScrollTopOrBottomAnchor)(k);
    };
    r.isAbsoluteLink = E;
  }(Uo)), Uo;
}
var bn = {}, Bu;
function am() {
  if (Bu) return bn;
  Bu = 1, Object.defineProperty(bn, "__esModule", { value: !0 }), bn.createLinkUtils = bn.isLinkProps = void 0;
  const o = cr.__importDefault(ui), i = li(), a = dr(), f = /^\/([^ ?#]*)?[#]?([^ ?#]*)[?]?(.*)/, d = /^#([^ ?]*)[?]?(.*)/, m = /^(http|https):\/\/(.*)/, _ = /^wix:document:\/\/v1\/(.+)\/(.+)/, w = /^document:\/\/(.*)/, y = {
    top: "SCROLL_TO_TOP",
    bottom: "SCROLL_TO_BOTTOM"
  }, P = (D) => {
    const [, Pe] = a.PHONE_URL_REGEXP.exec(D);
    return {
      type: "PhoneLink",
      href: (0, i.resolvePhoneLink)({ phoneNumber: Pe }),
      target: "_self"
    };
  }, T = (D) => ({
    subject: encodeURIComponent(D.get("subject") || ""),
    body: encodeURIComponent(D.get("body") || ""),
    bcc: encodeURIComponent(D.get("bcc") || ""),
    cc: encodeURIComponent(D.get("cc") || "")
  }), K = (D) => {
    const [, Pe, Be] = a.MAILTO_URL_REGEXP.exec(D), Ae = T(new URLSearchParams(Be));
    return {
      type: "EmailLink",
      href: (0, i.resolveEmailLink)({ recipient: Pe, ...Ae }),
      target: "_self"
    };
  }, E = (D) => _.test(D) || w.test(D), I = (D) => m.test(D), R = (D) => f.test(D), W = (D) => d.test(D), Z = (D, Pe) => {
    if (D) {
      const [Be] = Pe.replace("#", "/#").split(/[/]+/);
      return Object.values(D).filter((Xe) => Xe.prefix === Be).length === 1;
    }
    return !1;
  }, k = (D, Pe) => {
    const Be = decodeURIComponent(Pe), Ae = `./${Be}`;
    if (D[Ae])
      return [Be, ""];
    {
      const [Xe, ...Ot] = Pe.split("/"), $ = Ot.length > 0 ? `/${Ot.join("/")}` : "";
      return [Xe, $];
    }
  }, F = (D, Pe) => {
    const Be = o.default.findKey(D.routes, (Ae) => Ae.type === "Dynamic" ? (Ae.pageIds || []).includes(Pe) : Ae.pageId === Pe);
    if (Be)
      return q(Be);
    throw new Error(`No url route for pageId: ${Pe}`);
  };
  class J extends Error {
    constructor() {
      super("Unsupported link type"), this.name = "UnsupportedLinkTypeError", Error.captureStackTrace && Error.captureStackTrace(this, J);
    }
  }
  const pe = (D) => !D.id && !!(D.href || D.linkPopupId || D.anchorDataId || D.anchorCompId);
  bn.isLinkProps = pe;
  const q = (D) => D.replace(/^\.\//, "/"), ae = (D) => ["SCROLL_TO_TOP", "SCROLL_TO_BOTTOM"].includes(D), ve = ({ routingInfo: D, metaSiteId: Pe, userFileDomainUrl: Be, popupPages: Ae, getCompIdByWixCodeNickname: Xe, getRoleForCompId: Ot, routersConfig: $, multilingualInfo: G, isMobileView: ie, isPremiumDomain: le }) => {
    const C = `https://${Pe}.${Be}/`, B = (U) => Ae ? Ae[U] : !1, X = (U) => U.startsWith(C) || le && U.startsWith((0, i.getBaseUrlFilesPath)(D.externalBaseUrl).href), ce = (U, V = "") => `wix:document://v1/${U}/${V}`, Le = (U) => U.replace(D.externalBaseUrl, ""), $e = (U) => {
      const [, V, Q] = _.exec(U) || w.exec(U);
      return {
        type: "DocumentLink",
        href: (0, i.resolveDocumentLink)({ docId: V, name: Q || "", indexable: !1 }, Pe, Be, D.externalBaseUrl, le),
        target: "_blank",
        docInfo: {
          docId: V,
          name: Q
        }
      };
    }, Te = (U, V = "_blank", Q = "noopener") => ({
      type: "ExternalLink",
      href: U,
      target: V,
      rel: Q
    }), Fe = (U) => {
      const [, V = "", Q = "", ge = ""] = f.exec(U), Ce = V.replace(/\/+$/, ""), be = new URLSearchParams(ge);
      return !G?.isOriginalLanguage && G?.currentLanguage?.resolutionMethod === "QueryParam" && be.set("lang", G.currentLanguage.languageCode), { relativePageUrlPrefix: Ce, anchor: Q, queryString: be.toString() };
    }, At = (U) => {
      const { relativePageUrlPrefix: V } = Fe(U);
      return Z($, V);
    }, Ze = () => {
      const U = o.default.findKey(D.routes, (V) => V.pageId === D.mainPageId);
      return q(U);
    }, ut = (U, V = "_self", Q) => {
      const { relativePageUrlPrefix: ge = "", anchor: Ce = "", queryString: be } = Fe(U), Ne = y[Ce] || Ce;
      if (B(ge))
        return {
          type: "PageLink",
          href: "",
          target: "_self",
          linkPopupId: ge
        };
      const xt = D.externalBaseUrl;
      let lt, ke, Tt;
      if (Z($, ge))
        Tt = `./${ge}` === D.relativeUrl, lt = "DynamicPageLink", ke = `${xt}/${ge}`;
      else {
        const [Hn, zt] = k(D.routes, ge), Ft = D.pagesUriSEOs[Hn] || Hn, En = `./${Ft}`, ln = En === "./" ? { pageId: D.mainPageId } : D.routes[En], Vn = ln?.pageId === D.mainPageId;
        lt = "PageLink", ke = Vn && !zt ? xt : `${xt}/${Ft}${zt}`, Tt = ln && ln.pageId === D.pageId;
      }
      const jt = Ne && Xe && Xe(Ne), Kn = Tt && jt, un = Ne && !Kn;
      return {
        href: `${ke}${be ? `?${new URLSearchParams(be).toString()}` : ""}`,
        target: V,
        rel: Q,
        type: lt,
        // if we have an anchor on the current page, we set the anchor compId
        ...Kn && { anchorCompId: jt },
        // if we have an anchor on another page, we set the anchor data item Id
        ...un && { anchorDataId: Ne }
      };
    }, Xt = (U) => {
      const [V, Q] = U.split("?");
      if (Q) {
        const ge = encodeURIComponent(`?${Q}`);
        return V ? `${V}${ge}` : ge;
      }
      return V;
    }, Mt = {
      AnchorLink: (U) => {
        const { anchorDataId: V, pageId: Q } = U, Ce = ae(V) ? D.pageId : Q.replace(/^#/, ""), be = V.startsWith("#") ? V : `#${V}`;
        return `${F(D, Ce)}${be}`;
      },
      DocumentLink: (U) => {
        const { docId: V, name: Q } = U;
        return ce(V, Q);
      },
      ExternalLink: (U) => {
        const { url: V } = U;
        return V;
      },
      DynamicPageLink: (U) => {
        const { routerId: V, innerRoute: Q, anchorDataId: ge = "" } = U, Ce = `/${$[V].prefix}`, be = Q && Xt(Q), Ne = be ? `/${be}${ge}` : ge;
        return `${Ce}${Ne}`;
      },
      TpaPageLink: (U) => {
        const { pageId: V, path: Q = "" } = U, ge = V.replace(/^#/, ""), Ce = D.pageIdToPrefix[ge], be = D.pages[ge].pageUriSEO, Ne = Ce ? `/${Ce}/${be}` : `/${be}`, xt = Xt(Q);
        if (Q.startsWith(Ne))
          return xt;
        const ke = xt ? `/${xt}` : "";
        return `${Ne}${ke}`;
      },
      PageLink: (U) => {
        const { pageId: V } = U, Q = ((typeof V == "string" ? V : V.id) || "").replace(/^#/, "");
        return B(Q) ? `/${Q}` : Q === D.mainPageId ? "/" : F(D, Q);
      },
      PhoneLink: (U) => (0, i.resolvePhoneLink)(U),
      EmailLink: (U) => (0, i.resolveEmailLink)(U)
    };
    return {
      isAbsoluteUrl: I,
      isDynamicPage: At,
      getImpliedLink: (U) => (0, i.getImpliedLink)(U, ie),
      getImpliedLinks: (U, V) => (0, i.getImpliedLinks)(U, ie, V),
      getLink: ({ href: U = "", linkPopupId: V, anchorCompId: Q = "", anchorDataId: ge = "", docInfo: Ce, type: be } = {}) => {
        if (V)
          return `/${V}`;
        if ((0, a.isMailtoUrl)(U))
          return U;
        if (X(U))
          return ce(Ce.docId, Ce.name);
        const Ne = typeof ge == "string" ? ge : ge?.id;
        if (ae(Ne))
          return `#${o.default.invert(y)[Ne]}`;
        if (be === "ExternalLink")
          return U;
        const [lt] = U.split("?"), ke = Ot?.(Q, "wixCode") || Ne, Tt = ke ? `#${ke}` : "";
        return `${lt === D.externalBaseUrl ? Ze() : Le(lt)}${Tt}`;
      },
      getLinkProps: (U, V, Q) => {
        if (W(U)) {
          const Ce = `${q(D.relativeUrl)}${U}`;
          return ut(Ce, V);
        }
        if (R(U))
          return ut(U, V, Q);
        if ((0, a.isMailtoUrl)(U))
          return K(U);
        if ((0, a.isPhoneUrl)(U))
          return P(U);
        if (I(U))
          return Te(U, V, Q);
        if (E(U))
          return $e(U);
        throw new J();
      },
      getLinkUrlFromDataItem: (U) => {
        const V = Mt[U.type];
        if (V)
          return V(U);
        throw new Error("Provided link type is not supported");
      }
    };
  };
  return bn.createLinkUtils = ve, bn;
}
var Nu;
function um() {
  if (Nu) return yn;
  Nu = 1, Object.defineProperty(yn, "__esModule", { value: !0 }), yn.isLinkProps = yn.createLinkUtils = void 0;
  const o = cr.__importDefault(ui), i = li(), a = dr(), f = Yo(), d = am(), m = {
    top: "SCROLL_TO_TOP",
    bottom: "SCROLL_TO_BOTTOM"
  }, _ = (E, I) => {
    if (E) {
      const [R] = I.replace("#", "/#").split(/[/]+/);
      return Object.values(E).filter((Z) => Z.prefix === R).length === 1;
    }
    return !1;
  }, w = (E, I) => {
    const R = decodeURIComponent(I), W = `./${R}`;
    if (E[W])
      return [R, ""];
    {
      const [Z, ...k] = I.split("/"), F = k.length > 0 ? `/${k.join("/")}` : "";
      return [Z, F];
    }
  }, y = (E, I) => {
    const R = o.default.findKey(E.routes, (W) => W.type === "Dynamic" ? (W.pageIds || []).includes(I) : W.pageId === I);
    if (R)
      return P(R);
    throw new Error(`No url route for pageId: ${I}`);
  }, P = (E) => E.replace(/^\.\//, "/"), T = ({ routingInfo: E, metaSiteId: I, userFileDomainUrl: R, popupPages: W, getCompIdByWixCodeNickname: Z, getRoleForCompId: k, routersConfig: F, multilingualInfo: J, isMobileView: pe, isPremiumDomain: q, experiments: ae }) => {
    const ve = (0, f.createExternalLinkUtils)({ metaSiteId: I, isMobileView: pe });
    if (!ae["specs.thunderbolt.splitLinkUtils"])
      return (0, d.createLinkUtils)({
        routingInfo: E,
        metaSiteId: I,
        userFileDomainUrl: R,
        popupPages: W,
        getCompIdByWixCodeNickname: Z,
        getRoleForCompId: k,
        routersConfig: F,
        multilingualInfo: J,
        isMobileView: pe,
        isPremiumDomain: q,
        experiments: ae
      });
    const D = `https://${I}.${R}/`, Pe = (C) => W ? W[C] : !1, Be = (C) => C.startsWith(D) || q && C.startsWith((0, i.getBaseUrlFilesPath)(E.externalBaseUrl).href), Ae = (C) => C.replace(E.externalBaseUrl, ""), Xe = (C) => {
      const [, B = "", X = "", ce = ""] = a.PAGE_URL_REGEXP.exec(C), Le = B.replace(/\/+$/, ""), $e = new URLSearchParams(ce);
      return !J?.isOriginalLanguage && J?.currentLanguage?.resolutionMethod === "QueryParam" && $e.set("lang", J.currentLanguage.languageCode), { relativePageUrlPrefix: Le, anchor: X, queryString: $e.toString() };
    }, Ot = (C) => {
      const { relativePageUrlPrefix: B } = Xe(C);
      return _(F, B);
    }, $ = () => {
      const C = o.default.findKey(E.routes, (B) => B.pageId === E.mainPageId);
      return P(C);
    }, G = (C, B = "_self", X) => {
      const { relativePageUrlPrefix: ce = "", anchor: Le = "", queryString: $e } = Xe(C), Te = m[Le] || Le;
      if (Pe(ce))
        return {
          type: "PageLink",
          href: "",
          target: "_self",
          linkPopupId: ce
        };
      const Fe = E.externalBaseUrl;
      let At, Ze, ut;
      if (_(F, ce))
        ut = `./${ce}` === E.relativeUrl, At = "DynamicPageLink", Ze = `${Fe}/${ce}`;
      else {
        const [V, Q] = w(E.routes, ce), ge = E.pagesUriSEOs[V] || V, Ce = `./${ge}`, be = Ce === "./" ? { pageId: E.mainPageId } : E.routes[Ce], Ne = be?.pageId === E.mainPageId;
        At = "PageLink", Ze = Ne && !Q ? Fe : `${Fe}/${ge}${Q}`, ut = be && be.pageId === E.pageId;
      }
      const Xt = Te && Z && Z(Te), Mt = ut && Xt, U = Te && !Mt;
      return {
        href: `${Ze}${$e ? `?${new URLSearchParams($e).toString()}` : ""}`,
        target: B,
        rel: X,
        type: At,
        // if we have an anchor on the current page, we set the anchor compId
        ...Mt && { anchorCompId: Xt },
        // if we have an anchor on another page, we set the anchor data item Id
        ...U && { anchorDataId: Te }
      };
    }, ie = (C) => {
      const [B, X] = C.split("?");
      if (X) {
        const ce = encodeURIComponent(`?${X}`);
        return B ? `${B}${ce}` : ce;
      }
      return B;
    }, le = {
      AnchorLink: (C) => {
        const { anchorDataId: B, pageId: X } = C, Le = (0, a.isScrollTopOrBottomAnchor)(B) ? E.pageId : X.replace(/^#/, ""), $e = B.startsWith("#") ? B : `#${B}`;
        return `${y(E, Le)}${$e}`;
      },
      DocumentLink: (C) => {
        const { docId: B, name: X } = C;
        return (0, i.getDocumentLink)(B, X);
      },
      ExternalLink: (C) => {
        const { url: B } = C;
        return B;
      },
      DynamicPageLink: (C) => {
        const { routerId: B, innerRoute: X, anchorDataId: ce = "" } = C, Le = `/${F[B].prefix}`, $e = X && ie(X), Te = $e ? `/${$e}${ce}` : ce;
        return `${Le}${Te}`;
      },
      TpaPageLink: (C) => {
        const { pageId: B, path: X = "" } = C, ce = B.replace(/^#/, ""), Le = E.pageIdToPrefix[ce], $e = E.pages[ce].pageUriSEO, Te = Le ? `/${Le}/${$e}` : `/${$e}`, Fe = ie(X);
        if (X.startsWith(Te))
          return Fe;
        const Ze = Fe ? `/${Fe}` : "";
        return `${Te}${Ze}`;
      },
      PageLink: (C) => {
        const { pageId: B } = C, X = ((typeof B == "string" ? B : B.id) || "").replace(/^#/, "");
        return Pe(X) ? `/${X}` : X === E.mainPageId ? "/" : y(E, X);
      },
      PhoneLink: (C) => (0, i.resolvePhoneLink)(C),
      EmailLink: (C) => (0, i.resolveEmailLink)(C)
    };
    return {
      isDynamicPage: Ot,
      isAbsoluteUrl: ve.isAbsoluteUrl,
      getImpliedLink: ve.getImpliedLink,
      getImpliedLinks: ve.getImpliedLinks,
      getLink: ({ href: C = "", linkPopupId: B, anchorCompId: X = "", anchorDataId: ce = "", docInfo: Le, type: $e } = {}) => {
        if (B)
          return `/${B}`;
        if (Be(C))
          return (0, i.getDocumentLink)(Le.docId, Le.name);
        const Te = { href: C, linkPopupId: B, anchorDataId: ce, docInfo: Le, type: $e };
        if ((0, f.isAbsoluteLink)(I, Te))
          return ve.getLink(Te);
        const [Fe] = C.split("?"), At = k?.(X, "wixCode") || ce, Ze = At ? `#${At}` : "";
        return `${Fe === E.externalBaseUrl ? $() : Ae(Fe)}${Ze}`;
      },
      getLinkProps: (C, B, X) => {
        if ((0, a.isSamePageAnchorUrl)(C)) {
          const Le = `${P(E.relativeUrl)}${C}`;
          return G(Le, B);
        }
        return (0, a.isPageUrl)(C) ? G(C, B, X) : (0, a.isDocumentUrl)(C) ? (0, f.getDocumentLinkProps)(C, I, R, E.externalBaseUrl, q) : ve.getLinkProps(C, B, X);
      },
      getLinkUrlFromDataItem: (C) => {
        const B = le[C.type];
        if (B)
          return B(C);
        throw new Error("Provided link type is not supported");
      }
    };
  };
  yn.createLinkUtils = T;
  const K = (E) => !E.id && !!(E.href || E.linkPopupId || E.anchorDataId || E.anchorCompId);
  return yn.isLinkProps = K, yn;
}
var Do = {}, Gu;
function lm() {
  return Gu || (Gu = 1, Object.defineProperty(Do, "__esModule", { value: !0 })), Do;
}
var Mo = {}, Ku;
function cm() {
  return Ku || (Ku = 1, Object.defineProperty(Mo, "__esModule", { value: !0 })), Mo;
}
var Fo = {}, Hu;
function fm() {
  return Hu || (Hu = 1, function(r) {
    Object.defineProperty(r, "__esModule", { value: !0 }), r.LinkUtilsService = r.LinkUtilsServiceDefinition = void 0;
    const o = fr, i = Yo();
    r.LinkUtilsServiceDefinition = (0, o.defineService)("LinkUtils"), r.LinkUtilsService = (0, o.implementService)(r.LinkUtilsServiceDefinition, ({ config: a }) => (0, i.createExternalLinkUtils)(a));
  }(Fo)), Fo;
}
(function(r) {
  Object.defineProperty(r, "__esModule", { value: !0 });
  const o = cr;
  o.__exportStar(um(), r), o.__exportStar(Yo(), r), o.__exportStar(li(), r), o.__exportStar(Ml(), r), o.__exportStar(dr(), r), o.__exportStar(lm(), r), o.__exportStar(cm(), r), o.__exportStar(fm(), r);
})(Dl);
var Xo = {};
Object.defineProperty(Xo, "__esModule", { value: !0 });
var Fl = Xo.UrlDefinition = void 0;
const dm = fr;
Fl = Xo.UrlDefinition = (0, dm.defineService)("viewer-core/viewer-service-url");
var jo = {};
Object.defineProperty(jo, "__esModule", { value: !0 });
var kl = jo.EnvironmentDefinition = void 0;
const hm = ai;
kl = jo.EnvironmentDefinition = (0, hm.defineStaticService)("viewer-core/viewer-service-environment");
var zo = {};
Object.defineProperty(zo, "__esModule", { value: !0 });
var Wl = zo.FedopsLoggerDefinition = void 0;
const pm = ai;
Wl = zo.FedopsLoggerDefinition = (0, pm.defineStaticService)("viewer-core/fedops-logger");
const ur = {}, _m = (r, o) => {
  if (o && ur[r]) {
    const { resolver: i } = ur[r];
    i && i(o);
  }
}, gm = (r, o) => {
  const i = (a) => async (...f) => (await ur[r].promise)[a](...f);
  return new Proxy({}, {
    get: (a, f) => {
      if (!ur[r]) {
        let d;
        const m = new Promise((_) => {
          d = _;
        });
        ur[r] = { promise: m, resolver: d }, o.updateOverrides(r, { ref: (_) => _m(r, _) });
      }
      return i(f);
    }
  });
}, tt = void 0, vm = (r, { store: o, createSelector: i, $w: a, getService: f, slots: d = {} }, m, _, w = {}) => {
  const y = (q, ae) => o.styles.updateOverrides(q, ae), P = () => o.props.getOverrides(r), T = () => (w.children || []).map(a), K = () => a(w.parent), E = P().compId || P().id || "", I = P().fullNameCompType?.split(".").pop() || "", W = `${qv[I] || "portal-"}${E}`, Z = f(Dl.LinkUtilsServiceDefinition), k = f(il.StyleUtilsDefinition), F = f(kl), J = f(Fl), pe = f(Wl);
  return {
    get props() {
      return P();
    },
    setProps: _,
    restore() {
      o.deletedComponents.updateOverrides(r, !1);
    },
    remove() {
      o.deletedComponents.updateOverrides(r, !0);
    },
    setStyles(q) {
      o.styles.updateOverrides(E, q);
    },
    registerEvent(q, ae) {
      return o.subscribeToEvent(r, q, ae);
    },
    sdkData: o.getSdkData(r),
    effectsTriggersApi: tt,
    compId: r,
    // Relevant when App Controller exists and only used by TB (and not by editor-elements)
    // https://github.com/wix-private/editor-elements/blob/27e295166e3604d88dcedf131cab81b7f82db9ba/packages/editor-elements-website/docs/development/component-deep-dive/velo/prop-factories.md#undocumented-apis
    controllerCompId: "",
    createEvent(q) {
      const ae = m.value, ve = q.compId || o.scopeId ? { type: "COMPONENT_SCOPE", itemId: q.compId || o.scopeId } : { type: "GLOBAL_SCOPE" };
      return {
        ...q,
        target: ae,
        context: ve
      };
    },
    compRef: gm(r, o.props),
    getChildren: T,
    getSlot: () => d[r],
    handlers: tt,
    role: tt,
    runAnimation: tt,
    create$w: (q) => {
      const ae = q?.context;
      if (a.at = (ve) => ve && ve.type === "COMPONENT_SCOPE" && ve.itemId !== o.scopeId ? i(o.createScopedStore(ve.itemId), f) : a, ae && ae.type === "COMPONENT_SCOPE" && ae.itemId !== o.scopeId) {
        const ve = o.props.getOverrides(nl(r))?.[ae.itemId];
        return i(o.createScopedStore(ae.itemId, ve), f);
      }
      return a;
    },
    metaData: {
      compId: E,
      role: r,
      compType: I,
      isGlobal: () => !1,
      hiddenOnLoad: P().isHidden || !1,
      collapsedOnLoad: P().isCollapsed || !1,
      isRendered: () => !!globalThis.window?.document?.getElementById(E),
      getParent: K,
      getChildren: T,
      wixCodeId: r,
      isRepeaterTemplate: !!o.scopeId
    },
    portal: {
      setStyles: (q) => {
        y(W, q);
      },
      runAnimation: tt
    },
    getSdkInstance: () => m.value,
    // eslint-disable-next-line @typescript-eslint/no-explicit-any
    createSdkState: (q, ae = "defaultNS") => {
      const ve = { ...q };
      return o.state.set(ae, ve), [
        ve,
        (D) => {
          Object.assign(ve, D);
        }
      ];
    },
    platformUtils: {
      linkUtils: Z,
      essentials: {
        // @ts-expect-error not implemented
        experiments: {
          get: (q) => F.experiments[q]
        }
      }
    },
    envData: {
      location: {
        externalBaseUrl: J.externalBaseUrl
      },
      site: {
        viewMode: F.viewMode
      },
      router: {
        routingInfo: tt
      }
    },
    $wScope: tt,
    styleUtils: k,
    linkUtils: Z,
    sessionService: tt,
    appsPublicApisUtils: tt,
    biUtils: tt,
    locationManager: tt,
    // @ts-expect-error - The essentials object is intentionally missing some properties that are not needed
    essentials: {
      createFedopsLogger: pe.createFedopsLogger
    },
    warmupData: tt,
    consentPolicyManager: tt,
    clientSpecMapApi: tt,
    commonConfig: tt
  };
}, E0 = (r, o, i, a = {}) => {
  const { store: f, getService: d } = i, m = (T) => {
    f.props.updateOverrides(o, T);
  }, _ = () => f.props.getOverrides(o), w = (T) => {
    T instanceof Promise || typeof T.then == "function" ? (console.warn("setProps should not be called with a promise"), T.then(m)) : m(T);
  }, y = { value: null }, P = vm(o, i, y, w, a);
  return y.value = r(_, w, d, P), y.value;
};
function mm(r) {
  return {
    factory: r
  };
}
function We(r) {
  return typeof r == "number" && !Number.isNaN(r);
}
function No(r) {
  return typeof r == "string";
}
function ym(r) {
  return r === !0 || r === !1;
}
function bm(r) {
  return r instanceof Date && !Number.isNaN(r.getTime());
}
function wm(r) {
  return typeof r == "function";
}
function Bl(r) {
  return Array.isArray(r);
}
function Em(r) {
  return typeof r == "object" && r !== null && !Bl(r);
}
function Sm(r) {
  return Number.isInteger(r);
}
function Ve(r) {
  return r == null;
}
function Zo(r, o) {
  return o.includes(r);
}
function Qo(r, o) {
  return r > o;
}
function Jo(r, o) {
  return r < o;
}
const re = {
  /* prettier-ignore */
  warning_not_null: ({ propertyName: r, functionName: o }) => `The ${r} parameter that is passed to the ${o} method cannot be set to null.`,
  /* prettier-ignore */
  warning_non_images_in_gallery: ({ galleryId: r }) => `Gallery "${r}" cannot contain items that are not images. To also display video and text, choose a gallery that supports those types.`,
  /* prettier-ignore */
  warning_invalid_effect_name: ({ propertyName: r, compName: o, effectName: i, infoLink: a }) => `The "${r}" function called on "${o}" was executed without the "${i}" effect because it is an invalid effectName value. Read more about effects: "${a}"')`,
  /* prettier-ignore */
  warning_invalid_effect_option: ({ propertyName: r, compName: o, effectName: i, effectOption: a, effectOptionRef: f }) => `The "${r}" function called on "${o}" was executed without the "${i}" effect because it was called with the following invalid effectOptions keys: ${a}. Read more about the effectOptions object: "https://www.wix.com/code/reference/$w.EffectOptions.html#${f}"`,
  /* prettier-ignore */
  warning_effect_options_not_set: ({ propertyName: r, compName: o, infoLink: i }) => `The "${r}" function called on "${o}" was executed without the specified effect options because it was called without an effect. Read more about effects: "${i}"')`,
  /* prettier-ignore */
  warning_invalid_effect_options: ({ propertyName: r, compName: o, effectName: i, wrongProperty: a, wrongValue: f, infoLink: d }) => `The "${r}" function called on "${o}" was executed without the "${i}" effect because it was called with the following invalid effectOptions ${a}: ${f}. Read more about the effectOptions object: "${d}"')`,
  /* prettier-ignore */
  warning_deprecated_effect_name: ({ propertyName: r, compName: o, effectName: i, infoLink: a }) => `The "${r}" function  called on "${o}" was called with the following deprecated effect: "${i}". Read more about effects: "${a}"')`,
  /* prettier-ignore */
  warning_deprecated_effect_with_options: ({ propertyName: r, compName: o, effectName: i, infoLink: a }) => `The "${r}" function  called on "${o}" was executed without the specified effect options because it was called with the following deprecated effect: "${i}". Read more about effects: "${a}"`,
  /* prettier-ignore */
  warning_invalid_type_effect_options: ({ propertyName: r, compName: o, effectName: i, wrongValue: a, infoLink: f }) => `The "${r}" function called on "${o}" was executed without the "${i}" effect because the it was called with the following invalid effectOptions "${a}". The effectOptions must be of type Object. Read more about the effectOptions object: "${f}"'`,
  /* prettier-ignore */
  error_bad_image_format_with_index: ({ propertyName: r, wrongValue: o, index: i }) => `The "${r}" property of the item at index ${i} cannot be set to "${o}". It must be a valid URL starting with "http://", "https://", or "wix:image://".`,
  /* prettier-ignore */
  error_invalid_type_for_file_limit: ({ propertyName: r }) => `The ${r} property is not yet supported for Document or Audio file types.`,
  /* prettier-ignore */
  warning_not_null_for_comp_name: ({ propertyName: r, functionName: o, compName: i }) => `The ${r} parameter of "${i}" that is passed to the ${o} method cannot be set to null.`,
  /* prettier-ignore */
  warning_not_null_with_index: ({ propertyName: r, functionName: o, index: i }) => `The ${r} parameter of item at index ${i} that is passed to the ${o} method cannot be set to null or undefined.`,
  /* prettier-ignore */
  warning_invalid_option: ({ propertyName: r, wrongValue: o, index: i }) => `The ${r} parameter at index ${i} that is passed to the options function cannot be set to ${JSON.stringify(o)}. Options must contain either a non-null value or a non-null label.`,
  /* prettier-ignore */
  warning_duplicates_found: ({ propertyName: r, duplicateOptions: o }) => `The ${r} parameter provided to the options function includes duplicate options. To avoid confusion, these duplicates have been automatically removed: ${JSON.stringify(o)}.`,
  /* prettier-ignore */
  warning_invalid_option_value: ({ propertyName: r, wrongValue: o, functionName: i }) => `The ${r} parameter that is passed to the ${i} cannot be set to ${JSON.stringify(o)}. Ensure that the value is one of the available options in the array.`,
  /* prettier-ignore */
  warning_color_casting_performed: ({ propertyName: r, compName: o, infoLink: i }) => ` The value of "${r}" property of "${o}" expects an rgbColor value, but was set to an rgbaColor value. The color value has been set, but the alpha opacity information has been ignored. Read more about rgbColor values: "${i}"`,
  /* prettier-ignore */
  warning_value_changed: ({ propertyName: r, compName: o, newValue: i, changedProperty: a }) => `The ${r} of ${o} was set to ${i}, which is less than ${o}'s ${a} value. ${o} cannot have a ${a} value which is greater than its ${r} value. The value of ${a} has therefore been set to ${i}.`,
  /* prettier-ignore */
  warning_at_least: ({ propertyName: r, wrongValue: o, minValue: i }) => `The value of ${r} property should not be set to the value ${o}. It should be at least ${i}.`,
  /* prettier-ignore */
  warning_at_most: ({ propertyName: r, wrongValue: o, maxValue: i }) => `The value of ${r} property should not be set to the value ${o}. It should be at most ${i}.`,
  /* prettier-ignore */
  error_mandatory_val: ({ propertyName: r, functionName: o }) => `The ${r} parameter is required for ${o} method.`,
  /* prettier-ignore */
  error_mandatory_multiple_vals: ({ propertyNames: r, functionName: o }) => `The following parameters: ${[...r]}, are required for ${o} method.`,
  /* prettier-ignore */
  error_mandatory_val_with_index: ({ propertyName: r, functionName: o, index: i }) => `The ${r} parameter of item at index ${i} is required for ${o} method.`,
  /* prettier-ignore */
  error_unknown_val: ({ propertyName: r, functionName: o }) => `The ${r} parameter is not allowed for ${o} method.`,
  /* prettier-ignore */
  error_unknown_multiple_vals: ({ propertyNames: r, functionName: o }) => `The following parameters: ${[...r]} are unknown for ${o} method.`,
  /* prettier-ignore */
  error_unknown_val_with_index: ({ propertyName: r, functionName: o, index: i }) => `The ${r} parameter of item at index ${i} is not allowed for ${o} method.`,
  /* prettier-ignore */
  error_unknown_multiple_vals_with_index: ({ propertyNames: r, functionName: o, index: i }) => `The following parameters: ${[...r]} of item at index ${i} are unknown for ${o} method.`,
  /* prettier-ignore */
  error_length_in_range: ({ propertyName: r, functionName: o, value: i, minimum: a, maximum: f }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}". Its length must be between ${a} and ${f}.`,
  /* prettier-ignore */
  error_length_in_range_with_index: ({ propertyName: r, functionName: o, value: i, minimum: a, maximum: f, index: d }) => `The ${r} parameter of item at index ${d} that is passed to the ${o} method cannot be set to the value "${i}". Its length must be between ${a} and ${f}.`,
  /* prettier-ignore */
  error_length_accept_single_value: ({ propertyName: r, functionName: o, value: i, expectedValue: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}". Its length must be ${a}.`,
  /* prettier-ignore */
  error_length_accept_single_value_with_index: ({ propertyName: r, functionName: o, value: i, expectedValue: a, index: f }) => `The ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value "${i}". Its length must be ${a}.`,
  /* prettier-ignore */
  error_length_less_than: ({ propertyName: r, functionName: o, value: i, minimum: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}" because its length is shorter than ${a}.`,
  /* prettier-ignore */
  error_length_less_than_with_index: ({ propertyName: r, functionName: o, value: i, minimum: a, index: f }) => `The ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value "${i}" because its length is shorter than ${a}.`,
  /* prettier-ignore */
  error_length_exceeds: ({ propertyName: r, functionName: o, value: i, maximum: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}" because its length exceeds ${a}.`,
  /* prettier-ignore */
  error_length_exceeds_with_index: ({ propertyName: r, functionName: o, value: i, maximum: a, index: f }) => `The ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value "${i}" because its length exceeds ${a}.`,
  /* prettier-ignore */
  error_range: ({ propertyName: r, functionName: o, value: i, minimum: a, maximum: f }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}". It must be between ${a} and ${f}.`,
  /* prettier-ignore */
  error_range_with_index: ({ propertyName: r, functionName: o, value: i, minimum: a, maximum: f, index: d }) => `The ${r} parameter of item at index ${d} that is passed to the ${o} method cannot be set to the value "${i}". It must be between ${a} and ${f}.`,
  /* prettier-ignore */
  error_accept_single_value: ({ propertyName: r, functionName: o, value: i, expectedValue: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value "${i}". It must be ${a}.`,
  /* prettier-ignore */
  error_accept_single_value_with_index: ({ propertyName: r, functionName: o, value: i, expectedValue: a, index: f }) => `The ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value "${i}". It must be ${a}.`,
  /* prettier-ignore */
  error_larger_than: ({ propertyName: r, functionName: o, value: i, minimum: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. It must be larger than ${a}.`,
  /* prettier-ignore */
  error_at_least: ({ propertyName: r, functionName: o, value: i, minimum: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. It must be at least ${a}.`,
  /* prettier-ignore */
  error_larger_than_with_index: ({ propertyName: r, functionName: o, value: i, minimum: a, index: f }) => `The value of ${r} parameter of item at ${f} that is passed to the ${o} method cannot be set to the value ${i}. It must be larger than ${a}.`,
  /* prettier-ignore */
  error_less_than: ({ propertyName: r, functionName: o, value: i, maximum: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. It must be less than ${a}.`,
  /* prettier-ignore */
  error_less_than_with_index: ({ propertyName: r, functionName: o, value: i, maximum: a, index: f }) => `The value of ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value ${i}. It must be less than ${a}.`,
  /* prettier-ignore */
  error_type: ({ propertyName: r, functionName: o, value: i, expectedType: a }) => `The ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. It must be of type ${a}.`,
  /* prettier-ignore */
  error_type_with_index: ({ propertyName: r, functionName: o, value: i, expectedType: a, index: f }) => `The ${r} parameter of item at index ${f} that is passed to the ${o} method cannot be set to the value ${i}. It must be of type ${a}.`,
  /* prettier-ignore */
  error_bad_format: ({ propertyName: r, functionName: o, value: i }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. Bad format`,
  /* prettier-ignore */
  error_effects_input: ({ functionName: r, wrongEffects: o, allowedEffects: i }) => `Passed  effects: "${o.join('", "')}" to the ${r} method are wrong for this element. Allowed effects are: "${i.join('", "')}".`,
  /* prettier-ignore */
  error_slide_input: ({ propertyName: r, functionName: o, slideShowId: i, value: a, minimum: f, maximum: d }) => `The "${r}" parameter that is passed to the "${o}" method cannot be set to the value ${a}. It must be a slide from the "${i}" slideshow or an index between ${f} and ${d}`,
  /* prettier-ignore */
  error_state_input: ({ propertyName: r, functionName: o, stateBoxId: i, value: a }) => `The "${r}" parameter that is passed to the "${o}" method cannot be set to the value ${a}. It must be a state from the "${i}" statebox`,
  /* prettier-ignore */
  error_bad_format_with_index: ({ propertyName: r, functionName: o, value: i, index: a }) => `The "${r}" property of the item at index ${a} that is passed to the ${o} method cannot be set to "${i}". Bad format`,
  /* prettier-ignore */
  error_bad_format_with_hint: ({ propertyName: r, functionName: o, wrongValue: i, hint: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. Bad format, must be ${a} format.`,
  /* prettier-ignore */
  error_object_bad_format: ({ keyName: r, propertyName: o, functionName: i, wrongValue: a, message: f }) => `The value of ${r} in ${o} parameter that is passed to the ${i} method cannot be set to the value ${a}. ${f}`,
  /* prettier-ignore */
  error_object_bad_format_with_index: ({ keyName: r, propertyName: o, index: i, functionName: a, wrongValue: f, message: d }) => `The value of ${r} of item at index ${i} in ${o} parameter that is passed to the ${a} method cannot be set to the value ${f}. ${d}`,
  /* prettier-ignore */
  error_bad_svg_format: ({ propertyName: r, value: o }) => `The "${r}" property cannot be set to "${o}". It must be a valid SVG XML string or an SVG source starting with "http://", "https://", or "wix:vector://v1/".`,
  /* prettier-ignore */
  error_target_w_photo: ({ target: r }) => `The target parameter that is passed to the target method cannot be set to the value ${r}. It must be of type from (_blank,_self).`,
  /* prettier-ignore */
  error_invalid_rel: ({ rel: r, validKeywords: o }) => `The rel parameter that is passed to the rel method cannot be set to the value ${r}. It must be a space-separated list of unique keywords (${o.join()}).`,
  /* prettier-ignore */
  error_menu_items_target: ({ target: r, label: o, index: i }) => `The target parameter of the item with the label ${o} nested under the item at index ${i} that is passed to the target method cannot be set to the value ${r}. It must be of type from (_blank, _self).`,
  /* prettier-ignore */
  error_menu_items_id_pattern: ({ id: r, label: o, index: i }) => `The id parameter of the item with the label ${o} nested under the item at index ${i} that is passed to the id method cannot be set to the value ${r}. It must consist of letters, numbers, or dashes.`,
  /* prettier-ignore */
  error_menu_items_id_uniqueness: ({ id: r }) => `The menuItems parameter that is passed to the menuItems method cannot be set to the given value, as the id value ${r} already exists. Each menu item id must be unique.`,
  /* prettier-ignore */
  error_menu_items_depth: ({ labelValue: r, maxLevels: o }) => `The menuItems parameter with the label "${r}" that is passed to the menuItems method cannot be nested at this level. Menus can be ${o} levels deep.`,
  /* prettier-ignore */
  error_menu_items_label: ({ index: r }) => `The value of the label parameter of the item at index ${r} that is passed to the label cannot be set to the value undefined, null, or an empty string, unless a label can be inferred from the item link's page title.`,
  /* prettier-ignore */
  error_bad_menu_item_format: ({ propertyName: r, value: o }) => `The "${r}" property cannot be set to "${o}". It must be a valid URL starting with "http://", "https://", "image://", "wix:image://v1" or "wix:vector://v1/svgshape.v2".`,
  /* prettier-ignore */
  error_bad_menu_item_format_with_index: ({ propertyName: r, value: o, index: i }) => `The "${r}" property of the item at index ${i} cannot be set to "${o}". It must be a valid URL starting with "http://", "https://", "image://", "wix:image://v1" or "wix:vector://v1/svgshape.v2"`,
  /* prettier-ignore */
  error_invalid_css_value: ({ propertyName: r, compName: o, cssProperty: i, exampleFormat: a, infoLink: f }) => ` The "${r}" property of "${o}" was set to an invalid "${i}" value. The value is expected in the following format:"${a}". Read more about "${i}" values: "${f}"`,
  /* prettier-ignore */
  error_invalid_css_value_multiple_expected_formats: ({ propertyName: r, compName: o, cssProperty: i, exampleFormats: a, infoLink: f }) => ` The "${r}" property of "${o}" was set to an invalid "${i}" value. The value is expected in one of the following formats:"${a}". Read more about "${i}" values: "${f}"`,
  /* prettier-ignore */
  error_invalid_location: ({ propertyName: r, index: o, wrongValue: i }) => `The ${r} parameter at index ${o} that is passed to the markers function cannot be set to ${i}. You need to set either location object {longitude, latitude}, or a valid address - placeId.`,
  /* prettier-ignore */
  error_invalid_markers: ({ wrongValue: r }) => `The markers property cannot be set to ${r}. You need to set at least one marker in the array.`,
  /* prettier-ignore */
  error_only_getter: ({ propertyName: r, compType: o }) => `Cannot set property ${r} of ${o} which has only a getter.`,
  /* prettier-ignore */
  error_invalid_url: ({ url: r, type: o, prefix: i }) => `The "src" property cannot be set to "${r}". It must be a valid URL starting with "http://", "https://", or a valid ${o} URL starting with ${i}.`,
  /* prettier-ignore */
  error_supported_link_type_with_index: ({ functionName: r, wrongValue: o, index: i }) => `The link property of item at index ${i} that is passed to the ${r} method cannot be set to the value "${o}" as this is not a supported link type.`,
  /* prettier-ignore */
  error_invalid_target_with_index: ({ functionName: r, wrongValue: o, index: i }) => `The target parameter of item at index ${i} that is passed to the ${r} method cannot be set to the value ${o}. It must be of type from (_blank,_self).`,
  /* prettier-ignore */
  warning_unsupported_function_for_type: ({ functionName: r, type: o }) => `'${r}' is not supported for an element of type: ${o}.`,
  /* prettier-ignore */
  error_bad_iana_timezone: ({ timeZoneIANA: r }) => `Invalid IANA time zone specified: "${r}"`,
  /* prettier-ignore */
  error_invalid_option_fields: ({ propertyName: r, wrongValue: o, fields: i, index: a }) => `The ${r} at index ${a} cannot be set to ${JSON.stringify(o)}. Options must contain at least a non-null ${i[0]} or a non-null ${i[1]}.`,
  /* prettier-ignore */
  error_item_external_link: ({ propertyName: r, functionName: o, index: i }) => `The ${r} of the ${o} parameter of item at index ${i} that is passed to the items method cannot be an external link. It must be a link to a page on your site.`,
  /* prettier-ignore */
  error_unsupported_property_with_hint: ({ propertyName: r, hint: o }) => `The ${r} parameter cannot be set when ${o}`,
  /* prettier-ignore */
  error_item_not_found: ({ propertyName: r, functionName: o, value: i }) => `The ${r} parameter with value ${i} that is passed to the ${o} method is not found.`,
  /* prettier-ignore */
  error_array_length: ({ propertyName: r, functionName: o, value: i, arrayLength: a }) => `The value of ${r} parameter that is passed to the ${o} method cannot be set to the value ${i}. Its length must be at least ${a}.`,
  /* prettier-ignore */
  error_unsupported_chars: ({ propertyName: r, functionName: o }) => `The ${r} parameter that is passed to the ${o} method contains invalid characters.`,
  /* prettier-ignore */
  error_values_not_unique: ({ propertyName: r, functionName: o, wrongValue: i }) => `The ${r} parameter that is passed to the ${o} method cannot be set to ${JSON.stringify(i)}. Options must contain unique value properties.`,
  /* prettier-ignore */
  error_invalid_indice_value: ({ propertyName: r, invalidValue: o }) => `The ${r} parameter cannot be set to ${JSON.stringify(o)}. Ensure that the options array contains at least one option before applying ${r}.`,
  /* prettier-ignore */
  error_none_value_unavailable: ({ propertyName: r, functionName: o, value: i }) => `The ${r} parameter that is passed to the ${o} method cannot be set to ${i} value. Add none item to the ${o} list, or set ${r} to existing value`,
  /* prettier-ignore */
  warning_item_value_not_found: ({ propertyName: r, functionName: o, value: i }) => `The ${r} parameter with value ${i} that is passed to the ${o} method is not found.`,
  /* prettier-ignore */
  error_bad_link_format: ({ url: r, propertyName: o }) => `The ${o} property that is passed to the ${o} method cannot be set to the value "${r}" as this is not a supported link type.`,
  /* prettier-ignore */
  warning_icon_not_animated: ({ propertyName: r }) => `The animated icon is not set in the settings panel, so the ${r} method will not have any effect.`
}, Lm = ({ compName: r, functionName: o, propertyName: i, index: a }) => We(a) ? re.warning_not_null_with_index({
  propertyName: i,
  functionName: o,
  index: a
}) : r ? re.warning_not_null_for_comp_name({
  compName: r,
  functionName: o,
  propertyName: i
}) : re.warning_not_null({ functionName: o, propertyName: i }), Om = ({ functionName: r, propertyName: o, index: i }) => We(i) ? re.error_mandatory_val_with_index({
  functionName: r,
  propertyName: o,
  index: i
}) : re.error_mandatory_val({ functionName: r, propertyName: o }), Am = ({ functionName: r, propertyNames: o, index: i }) => o && o.length > 1 ? We(i) ? re.error_unknown_multiple_vals_with_index({
  functionName: r,
  propertyNames: o,
  index: i
}) : re.error_unknown_multiple_vals({ functionName: r, propertyNames: o }) : We(i) ? re.error_unknown_val_with_index({
  functionName: r,
  propertyName: o[0],
  index: i
}) : re.error_unknown_val({
  functionName: r,
  propertyName: o[0]
}), Tm = ({ functionName: r, propertyName: o, value: i, maximum: a, minimum: f, index: d }) => f && a ? f === a ? We(d) ? re.error_length_accept_single_value_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  expectedValue: f,
  index: d
}) : re.error_length_accept_single_value({
  functionName: r,
  propertyName: o,
  value: i,
  expectedValue: f
}) : We(d) ? re.error_length_in_range_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: a,
  minimum: f,
  index: d
}) : re.error_length_in_range({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: a,
  minimum: f
}) : !f && a ? We(d) ? re.error_length_exceeds_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: a,
  index: d
}) : re.error_length_exceeds({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: a
}) : We(d) ? re.error_length_less_than_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  minimum: f,
  index: d
}) : re.error_length_less_than({
  functionName: r,
  propertyName: o,
  value: i,
  minimum: f
}), Nl = ({ functionName: r, propertyName: o, value: i, minimum: a, maximum: f, index: d }) => a && f ? a === f ? We(d) ? re.error_accept_single_value_with_index({
  functionName: r,
  propertyName: o,
  expectedValue: a,
  value: i,
  index: d
}) : re.error_accept_single_value({
  functionName: r,
  propertyName: o,
  expectedValue: a,
  value: i
}) : We(d) ? re.error_range_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: f,
  minimum: a,
  index: d
}) : re.error_range({
  functionName: r,
  propertyName: o,
  value: i,
  maximum: f,
  minimum: a
}) : !a && f ? We(d) ? re.error_less_than_with_index({
  functionName: r,
  propertyName: o,
  maximum: f,
  value: i,
  index: d
}) : re.error_less_than({
  functionName: r,
  propertyName: o,
  maximum: f,
  value: i
}) : We(d) ? re.error_larger_than_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  minimum: a,
  index: d
}) : re.error_larger_than({
  functionName: r,
  propertyName: o,
  value: i,
  // TS should know that minimum can't be undefined here
  minimum: a
}), Gl = ({ functionName: r, propertyName: o, types: i, value: a, index: f }) => {
  const d = i.map((m) => m === "nil" ? "null" : m).join(",");
  return We(f) ? re.error_type_with_index({
    functionName: r,
    index: f,
    propertyName: o,
    value: a,
    expectedType: d
  }) : re.error_type({
    functionName: r,
    propertyName: o,
    value: a,
    expectedType: d
  });
}, es = ({ functionName: r, propertyName: o, value: i, enum: a, index: f }) => {
  const d = `from (${a.join(",")})`;
  return We(f) ? re.error_type_with_index({
    functionName: r,
    propertyName: o,
    value: i,
    expectedType: d,
    index: f
  }) : re.error_type({
    functionName: r,
    propertyName: o,
    value: i,
    expectedType: d
  });
}, Im = ({ functionName: r, propertyName: o, value: i, index: a }) => We(a) ? re.error_bad_format_with_index({
  functionName: r,
  propertyName: o,
  value: i,
  index: a
}) : re.error_bad_format({ functionName: r, propertyName: o, value: i }), Pm = (r) => "aria" + r.charAt(0).toUpperCase() + r.slice(1);
function wn(r, o) {
  const { modifyAriaSourceKeys: i } = o ?? {};
  return (a) => {
    const f = {};
    for (let d = 0; d < r.length; d++) {
      const m = r[d](a), _ = Object.keys(m);
      for (let w = 0; w < _.length; w++) {
        const y = _[w], P = Object.getOwnPropertyDescriptor(m, y);
        Object.defineProperty(f, i && P.get ? Pm(y) : y, P);
      }
    }
    return f;
  };
}
const $m = "Wix code SDK error:", Rm = "Wix code SDK warning:", Lt = (r) => {
  console.error(`${$m} ${r}`);
}, Wn = (r) => {
  console.warn(`${Rm} ${r}`);
};
function xm(r, o, i, a) {
  const { minimum: f, maximum: d, enum: m } = o;
  return We(r) ? m && !Zo(r, m) ? (i(es({
    value: r,
    enum: m,
    ...a
  }), { ...a, value: r }), _e.Invalid) : We(f) && Jo(r, f) || We(d) && Qo(r, d) ? (i(Nl({
    value: r,
    minimum: f,
    maximum: d,
    ...a
  }), { ...a, value: r }), _e.Invalid) : _e.Valid : _e.InvalidType;
}
function Cm(r, o, i, a) {
  const { minimum: f, maximum: d, enum: m } = o;
  return Sm(r) ? m && !Zo(r, m) ? (i(es({
    value: r,
    enum: m,
    ...a
  }), { ...a, value: r }), _e.Invalid) : We(f) && Jo(r, f) || We(d) && Qo(r, d) ? (i(Nl({
    value: r,
    minimum: f,
    maximum: d,
    ...a
  }), { ...a, value: r }), _e.Invalid) : _e.Valid : _e.InvalidType;
}
function Um(r, o, i, a) {
  const { minLength: f, maxLength: d, enum: m, pattern: _ } = o;
  return No(r) ? m && !Zo(r, m) ? (i(es({
    value: r,
    enum: m,
    ...a
  }), { ...a, value: r }), _e.Invalid) : f && Jo(r.length, f) || d && Qo(r.length, d) ? (i(Tm({
    value: r,
    minimum: f,
    maximum: d,
    ...a
  }), { ...a, value: r }), _e.Invalid) : _ && !new RegExp(_).test(r) ? (i(Im({
    value: r,
    ...a
  }), { ...a, value: r }), _e.Invalid) : _e.Valid : _e.InvalidType;
}
function Dm(r) {
  return ym(r) ? _e.Valid : _e.InvalidType;
}
function Mm(r) {
  return bm(r) ? _e.Valid : _e.InvalidType;
}
function Fm(r) {
  return Ve(r) ? _e.Valid : _e.InvalidType;
}
function km(r) {
  return wm(r) ? _e.Valid : _e.InvalidType;
}
function Vu(r) {
  return Array.isArray(r);
}
function Wm(r, o, i, a, f, d = !1) {
  if (!Bl(r))
    return _e.InvalidType;
  let m = _e.Valid;
  if (o.items) {
    const _ = Vu(o.items) ? Math.min(r.length, o.items.length) : r.length;
    for (let w = 0; w < _; w++) {
      const y = r[w];
      let P, T;
      Vu(o.items) ? (P = o.items[w], T = o.items[w].name) : (P = o.items, T = o.name), i(y, P, {
        functionName: f.functionName,
        propertyName: T || f.propertyName,
        index: d ? void 0 : w
      }) || (m = _e.Invalid);
    }
  }
  return m;
}
const qu = Object.prototype.hasOwnProperty, Yu = Object.getOwnPropertyNames, Bm = () => {
};
function Kl(r, o, i, a, f, d) {
  if (!Em(r))
    return _e.InvalidType;
  if (o.oneOf)
    return o.oneOf.map((_) => Kl(r, _, i, Bm, f, d)).filter((_) => _ === _e.Valid).length === 1 ? _e.Valid : _e.Invalid;
  if (o.required) {
    for (let _ = 0; _ < o.required.length; _++)
      if (!qu.call(r, o.required[_]))
        return a(Om({
          functionName: d.functionName,
          index: d.index,
          propertyName: o.required[_]
        }), { ...d, value: r }), _e.Invalid;
  }
  const m = Yu(o.properties ?? {});
  if (o.additionalProperties === !1) {
    const _ = Yu(r).filter((w) => !m.includes(w));
    if (_.length) {
      const w = Am({
        functionName: d.functionName,
        index: d.index,
        propertyNames: _
      });
      return a(w), _e.Invalid;
    }
  }
  for (let _ = 0; _ < m.length; _++) {
    const w = m[_];
    if (qu.call(r, w)) {
      const y = o.properties[w], P = r[w];
      if (!i(P, y, {
        functionName: d.functionName,
        index: d.index,
        propertyName: w
      }))
        return _e.Invalid;
    }
  }
  return _e.Valid;
}
const _e = {
  Valid: "valid",
  Invalid: "invalid",
  InvalidType: "invalid-type"
};
function Go({ reportError: r, reportWarning: o }, i, { suppressIndexErrors: a = !1 } = {}) {
  function f(_, w, y) {
    return d(_, w, {
      functionName: y,
      propertyName: y,
      /**
       * This intentional? In such a case all errors related to "index"
       * will never be fired
       */
      index: void 0
    });
  }
  function d(_, w, y) {
    w.warnIfNil && Ve(_) && o(Lm({
      ...y,
      compName: i
    }), { ...y, value: _ });
    let P = 0;
    for (; P < w.type.length; P++) {
      const T = m[w.type[P]], K = T(_, w, y);
      if (K !== _e.InvalidType)
        return K === _e.Valid;
    }
    return P === w.type.length && r(Gl({
      value: _,
      types: w.type,
      ...y
    }), { ...y, value: _ }), !1;
  }
  const m = {
    object: (_, w, y) => Kl(_, w, d, r, o, y),
    array: (_, w, y) => Wm(_, w, d, r, y, a),
    number: (_, w, y) => xm(_, w, r, y),
    integer: (_, w, y) => Cm(_, w, r, y),
    string: (_, w, y) => Um(_, w, r, y),
    boolean: (_) => Dm(_),
    date: (_) => Mm(_),
    nil: (_) => Fm(_),
    function: (_) => km(_)
  };
  return f;
}
function oi(r, { suppressIndexErrors: o = !1 } = {}) {
  return Go({ reportError: Lt, reportWarning: Wn }, r, {
    suppressIndexErrors: o
  });
}
function Me(r, o, i = {}) {
  return (a) => {
    const f = r(a), d = oi(a.metaData.role), m = oi(a.metaData.role, {
      suppressIndexErrors: !0
    });
    return Object.keys(f).reduce((w, y) => {
      const P = Object.getOwnPropertyDescriptor(f, y), T = {
        // retrieve value from sdk
        enumerable: !0,
        configurable: !0
      };
      return P.value ? typeof P.value == "function" ? T.value = (...K) => {
        const E = o.properties[y] && o.properties[y].args, I = i[y];
        let R = !0;
        return E && (R = m(K, { type: ["array"], items: E }, y)), R && I && (R = I.every((W) => W(K, a))), R ? P.value(...K) : void 0;
      } : T.value = P.value : (P.get && (T.get = () => f[y]), P.set && (T.set = (K) => {
        const E = i[y];
        let I = !0;
        o.properties[y] && (I = d(K, o.properties[y], y)), I && E && (I = E.every((R) => R(K, a))), I && (f[y] = K);
      })), Object.defineProperty(w, y, T), w;
    }, {});
  };
}
const Hl = ({ handlers: r, metaData: o }) => {
  const { compId: i, connection: a, compType: f, isGlobal: d, getParent: m, role: _, wixCodeId: w } = o, y = `$w.${f}`;
  return {
    get id() {
      return w || _;
    },
    get role() {
      return _;
    },
    get connectionConfig() {
      return a?.config;
    },
    get uniqueId() {
      return i;
    },
    get parent() {
      return m();
    },
    get global() {
      return d();
    },
    get type() {
      return y;
    },
    scrollTo() {
      return new Promise((P) => r.scrollToComponent(i, P));
    },
    toJSON() {
      return { id: _, type: y, global: d() };
    }
  };
}, Fn = (r, o) => {
  const i = /^[a-zA-Z_-][a-zA-Z0-9_-]*$/;
  return typeof r != "string" ? (Nm(r, o, "className", "string"), !1) : i.test(r) ? !0 : (Km(r, o), !1);
}, Nm = (r, o, i, a) => {
  Lt(re.error_type({
    propertyName: r,
    functionName: o,
    value: i,
    expectedType: a
  }));
}, Gm = (r, o) => {
  Lt(re.error_mandatory_multiple_vals({
    propertyNames: r,
    functionName: o
  }));
}, ti = (r, o) => {
  Lt(re.error_mandatory_val({
    propertyName: r,
    functionName: o
  }));
}, Km = (r, o) => {
  Lt(re.error_unsupported_chars({
    propertyName: r,
    functionName: o
  }));
}, Vl = (r) => {
  const { setProps: o, props: i } = r;
  return {
    customClassList: {
      get value() {
        return i.customClassNames ? i.customClassNames?.join(" ") : "";
      },
      values() {
        return i.customClassNames ? i.customClassNames : [];
      },
      add(...a) {
        const f = i.customClassNames ? new Set(i.customClassNames) : /* @__PURE__ */ new Set([]);
        if (!a.length) {
          ti("className", "customClassList.add");
          return;
        }
        for (const d of a)
          if (Fn(d, "customClassList.add"))
            f.add(d);
          else
            return;
        o({ customClassNames: Array.from(f) });
      },
      remove(...a) {
        if (!a.length) {
          ti("className", "customClassList.remove");
          return;
        }
        const f = new Set(i.customClassNames);
        for (const d of a)
          if (Fn(d, "customClassList.remove"))
            f.delete(d);
          else
            return;
        o({ customClassNames: Array.from(f) });
      },
      contains(a) {
        if (!a) {
          ti("className", "customClassList.contains");
          return;
        }
        if (Fn(a, "customClassList.contains"))
          return i.customClassNames ? i.customClassNames.includes(a) : !1;
      },
      replace(a, f) {
        return !a || !f ? (Gm(["currentClassName, newClassName"], "customClassList.replace"), !1) : Fn(f, "customClassList.replace") && Fn(a, "customClassList.replace") && this.contains(a) ? (this.remove(a), this.add(f), !0) : !1;
      },
      toggle(a) {
        return a ? Fn(a, "customClassList.toggle") ? this.contains(a) ? (this.remove(a), !1) : (this.add(a), !0) : !1 : (ti("className", "customClassList.toggle"), !1);
      }
    }
  };
}, H = {
  CLICK: "click",
  DBL_CLICK: "dblClick",
  MOUSE_IN: "mouseenter",
  MOUSE_OUT: "mouseleave",
  CHANGE: "change",
  BLUR: "blur",
  FOCUS: "focus",
  IMAGE_CHANGED: "imageChanged",
  IMAGE_EXPANDED: "imageExpanded",
  ON_INPUT: "onInput",
  ITEM_CLICKED: "itemClicked",
  CELL_SELECT: "cellSelect",
  CELL_EDIT: "cellEdit",
  ROW_SELECT: "rowSelect",
  FETCH_DATA: "fetchData",
  DATA_CHANGE: "dataChange",
  ON_TIMEOUT: "onTimeout",
  ON_VERIFY: "onVerified",
  ON_ERROR: "onError",
  ON_PLAY: "onPlay",
  ON_PAUSE: "onPause",
  ON_PROGRESS: "onProgress",
  ON_ENDED: "onEnded",
  AUTOPLAY_OFF: "autoplayOff",
  AUTOPLAY_ON: "autoplayOn",
  PLAY_ENDED: "playEnded",
  PLAY_PROGRESS: "playProgress",
  KEY_PRESS: "keyPress",
  KEY_UP: "keyUp",
  KEY_DOWN: "keyDown",
  SCREEN_IN: "screenIn",
  VIEWPORT_ENTER: "viewportEnter",
  VIEWPORT_LEAVE: "viewportLeave",
  SCROLL: "scroll",
  VALIDATE: "validate",
  SET_CUSTOM_VALIDITY: "setCustomValidity",
  SYNC_VALIDATION_DATA: "syncValidationData",
  UPDATE_VALIDITY_INDICATION: "updateValidityIndication",
  MESSAGE: "message",
  UPLOAD_COMPLETE: "uploadComplete",
  ITEM_READY: "itemReady",
  ITEM_REMOVED: "itemRemoved",
  TAG_CLICK: "tagClick",
  QUICK_ACTION_BAR_ITEM_CLICKED: "quickActionBarItemClicked",
  GOOGLE_MAP_MARKER_CLICKED: "markerClicked",
  GOOGLE_MAP_CLICKED: "mapClicked",
  ICON_MOUSE_IN: "iconMouseIn",
  ON_STATE_CHANGE: "onStateChange",
  ITEM_MOUSE_IN: "itemMouseIn",
  ITEM_MOUSE_OUT: "itemMouseOut",
  ITEM_MOUSE_CLICK: "itemMouseClick",
  ITEM_MOUSE_DOUBLE_CLICK: "itemMouseDblClick",
  ON_COLOR_CHANGE: "onColorChange",
  ON_FONT_CHANGE: "onFontChange",
  ON_OPACITY_CHANGE: "onOpacityChange"
}, Hm = {
  [H.CLICK]: "onClick",
  [H.DBL_CLICK]: "onDblClick",
  [H.MOUSE_IN]: "onMouseIn",
  [H.MOUSE_OUT]: "onMouseOut",
  [H.CHANGE]: "onChange",
  [H.ON_INPUT]: "onInput",
  [H.BLUR]: "onBlur",
  [H.FOCUS]: "onFocus",
  [H.IMAGE_CHANGED]: "onCurrentItemChanged",
  [H.IMAGE_EXPANDED]: void 0,
  [H.ITEM_CLICKED]: "onItemClicked",
  [H.CELL_SELECT]: "onCellSelect",
  [H.CELL_EDIT]: void 0,
  [H.ROW_SELECT]: "onRowSelect",
  [H.FETCH_DATA]: void 0,
  [H.DATA_CHANGE]: "onDataChange",
  [H.ON_TIMEOUT]: "onTimeout",
  [H.ON_VERIFY]: "onVerified",
  [H.ON_ERROR]: "onError",
  [H.ON_PLAY]: "onPlay",
  [H.ON_PAUSE]: "onPause",
  [H.ON_PROGRESS]: "onProgress",
  [H.ON_ENDED]: "onEnded",
  [H.AUTOPLAY_OFF]: "onPause",
  [H.AUTOPLAY_ON]: "onPlay",
  [H.PLAY_ENDED]: void 0,
  [H.PLAY_PROGRESS]: void 0,
  [H.KEY_PRESS]: "onKeyPress",
  [H.KEY_UP]: "onKeyUp",
  [H.KEY_DOWN]: "onKeyDown",
  [H.SCREEN_IN]: void 0,
  [H.VIEWPORT_ENTER]: "onViewportEnter",
  [H.VIEWPORT_LEAVE]: "onViewportLeave",
  [H.SCROLL]: void 0,
  [H.VALIDATE]: void 0,
  [H.SET_CUSTOM_VALIDITY]: void 0,
  [H.SYNC_VALIDATION_DATA]: void 0,
  [H.UPDATE_VALIDITY_INDICATION]: void 0,
  [H.MESSAGE]: "onMessage",
  [H.UPLOAD_COMPLETE]: void 0,
  [H.ITEM_READY]: "onItemReady",
  [H.ITEM_REMOVED]: "onItemRemoved",
  [H.TAG_CLICK]: void 0,
  [H.QUICK_ACTION_BAR_ITEM_CLICKED]: "onItemClicked",
  [H.GOOGLE_MAP_MARKER_CLICKED]: "onMarkerClicked",
  [H.GOOGLE_MAP_CLICKED]: "onMapClicked",
  [H.ICON_MOUSE_IN]: void 0,
  [H.ON_STATE_CHANGE]: "onStateChange",
  [H.ITEM_MOUSE_IN]: "onItemMouseIn",
  [H.ITEM_MOUSE_OUT]: "onItemMouseOut",
  [H.ITEM_MOUSE_CLICK]: "onItemClick",
  [H.ITEM_MOUSE_DOUBLE_CLICK]: "onItemDblClick",
  [H.ON_COLOR_CHANGE]: "onColorChange",
  [H.ON_FONT_CHANGE]: "onFontChange",
  [H.ON_OPACITY_CHANGE]: "onOpacityChange"
}, Vm = {
  dblclick: "dblClick",
  keydown: "keyPress",
  input: "onInput"
}, qm = (r) => {
  const { target: o, type: i, context: a } = r;
  return { target: o, type: Vm[i] ?? i, context: a };
}, Ym = (r) => {
  const { clientX: o, clientY: i, pageX: a, pageY: f, screenX: d, screenY: m, nativeEvent: _ } = r, { offsetX: w, offsetY: y } = _;
  return {
    clientX: o,
    clientY: i,
    pageX: a,
    pageY: f,
    screenX: d,
    screenY: m,
    offsetX: w,
    offsetY: y
  };
}, Xm = (r, o, i) => oi(i)(r, {
  type: ["function"]
}, o), ql = {
  onMouseEnter: "onMouseIn",
  onMouseLeave: "onMouseOut"
}, Xu = (r) => r.replace(/^on/i, ""), jm = (r) => Object.entries(ql).find(([i, a]) => Xu(a.toLowerCase()) === Xu(r.toLowerCase()))?.[0] ?? r, Yl = (r) => r.createSdkState({ listeners: [] }, "eventListeners"), Ko = (r, o, i, a) => {
  const { create$w: f, createEvent: d, registerEvent: m, getSdkInstance: _, metaData: w } = o, y = ql[r] ?? r;
  if (!Xm(i, y, w.role))
    return _();
  const [P, T] = Yl(o), K = m(
    r,
    /**
     * `eventPayload` adds extra data into native React events
     * which will be sanitized by the platform
     */
    (I, R) => {
      const W = d({ type: I.type, compId: I.compId }), Z = f({ context: W.context }), k = a?.({
        componentEvent: I,
        eventPayload: R
      });
      i({
        ...qm(W),
        ...k
      }, Z);
    }
  ), E = {
    eventName: r,
    compId: w.compId,
    cb: i,
    unregister: K
  };
  return T({
    listeners: [...P.listeners, E]
  }), _();
}, zm = (r, o) => {
  const i = jm(Hm[o] ?? o);
  return r.toLowerCase() === i.toLowerCase();
}, Zm = (r, o, i) => {
  const { metaData: a, getSdkInstance: f } = o, [d, m] = Yl(o), _ = d.listeners.filter((w) => zm(w.eventName, r) && w.cb === i && w.compId === a.compId);
  for (const w of _)
    w.unregister();
  return m({
    listeners: d.listeners.filter((w) => !_.includes(w))
  }), f();
}, ju = (r, o, i, a) => Ko(r, o, i, ({ componentEvent: f, eventPayload: d }) => ({
  ...Ym(f),
  ...d && a?.(d)
})), Xl = (r) => (o) => {
  const { metaData: i, getSdkInstance: a, create$w: f, createEvent: d } = o, m = (_, w) => oi(i.role)(_, {
    type: ["function"]
  }, w);
  return {
    onViewportEnter: (_) => m(_, "onViewportEnter") ? (r?.("onViewportEnter", () => {
      const w = d({ type: "viewportEnter" }), y = f();
      _(w, y);
    }), Ko("onViewportEnter", o, _)) : a(),
    onViewportLeave: (_) => m(_, "onViewportLeave") ? (r?.("onViewportLeave", () => {
      const w = d({ type: "viewportLeave" }), y = f();
      _(w, y);
    }), Ko("onViewportLeave", o, _)) : a()
  };
}, te = {
  duration: 1200,
  delay: 0
}, zu = {
  arc: {
    ...te,
    direction: "left"
  },
  bounce: {
    ...te,
    direction: "topLeft",
    intensity: "medium"
  },
  puff: {
    ...te
  },
  zoom: {
    ...te
  },
  fade: {
    ...te
  },
  flip: {
    ...te,
    direction: "right"
  },
  float: {
    ...te,
    direction: "right"
  },
  fly: {
    ...te,
    direction: "right"
  },
  fold: {
    ...te,
    direction: "left"
  },
  glide: {
    ...te,
    angle: 0,
    distance: 0
  },
  roll: {
    ...te,
    direction: "left"
  },
  slide: {
    ...te,
    direction: "left"
  },
  spin: {
    ...te,
    direction: "cw",
    cycles: 5
  },
  turn: {
    ...te,
    direction: "right"
  },
  ArcIn: {
    ...te,
    direction: "right"
  },
  ArcOut: {
    ...te,
    direction: "right"
  },
  BounceIn: {
    ...te,
    direction: "topLeft",
    intensity: "medium"
  },
  BounceOut: {
    ...te,
    direction: "topLeft",
    intensity: "medium"
  },
  ExpandIn: {
    ...te,
    direction: "right"
  },
  CollapseOut: {
    ...te
  },
  Conceal: {
    ...te,
    direction: "right"
  },
  Reveal: {
    ...te,
    direction: "left"
  },
  FadeIn: {
    ...te
  },
  FadeOut: {
    ...te
  },
  FlipIn: {
    ...te,
    direction: "left"
  },
  FlipOut: {
    ...te,
    direction: "left"
  },
  FloatIn: {
    ...te,
    direction: "right"
  },
  FloatOut: {
    ...te,
    direction: "right"
  },
  FlyIn: {
    ...te,
    direction: "right"
  },
  FlyOut: {
    ...te,
    direction: "right"
  },
  FoldIn: {
    ...te,
    direction: "left"
  },
  FoldOut: {
    ...te,
    direction: "left"
  },
  GlideIn: {
    ...te,
    angle: 0,
    distance: 150
  },
  GlideOut: {
    ...te,
    angle: 0,
    distance: 150
  },
  DropIn: {
    ...te
  },
  PopOut: {
    ...te
  },
  SlideIn: {
    ...te,
    direction: "left"
  },
  SlideOut: {
    ...te,
    direction: "left"
  },
  SpinIn: {
    ...te,
    direction: "cw",
    cycles: 2
  },
  SpinOut: {
    ...te,
    direction: "cw",
    cycles: 2
  },
  TurnIn: {
    ...te,
    direction: "right"
  },
  TurnOut: {
    ...te,
    direction: "right"
  }
}, Ho = {
  HIDE: {
    suffix: "out",
    deprecatedValues: [
      "ArcOut",
      "BounceOut",
      "CollapseOut",
      "Conceal",
      "FadeOut",
      "FlipOut",
      "FloatOut",
      "FlyOut",
      "FoldOut",
      "GlideOut",
      "PopOut",
      "SlideOut",
      "SpinOut",
      "TurnOut"
    ]
  },
  SHOW: {
    suffix: "in",
    deprecatedValues: [
      "ArcIn",
      "BounceIn",
      "DropIn",
      "ExpandIn",
      "FadeIn",
      "FlipIn",
      "FloatIn",
      "FlyIn",
      "FoldIn",
      "GlideIn",
      "Reveal",
      "SlideIn",
      "SpinIn",
      "TurnIn"
    ]
  }
}, lr = (r) => `https://www.wix.com/corvid/reference/$w/hiddenmixin/${r}`, st = { type: ["number", "nil"], minimum: 0, maximum: 4e3 }, at = { type: ["number", "nil"], minimum: 0, maximum: 8e3 }, kn = {
  type: ["string", "nil"],
  enum: ["left", "right", "top", "bottom"]
}, jl = {
  arc: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: {
        type: ["string", "nil"],
        enum: ["left", "right"]
      }
    }
  },
  bounce: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: {
        type: ["string", "nil"],
        enum: ["topLeft", "topRight", "bottomRight", "bottomLeft", "center"]
      },
      intensity: {
        type: ["string", "nil"],
        enum: ["soft", "medium", "hard"]
      }
    }
  },
  puff: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at
    }
  },
  zoom: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at
    }
  },
  fade: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at
    }
  },
  flip: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  float: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  fly: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  fold: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  glide: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      angle: {
        type: ["number", "nil"],
        minimum: 0,
        maximum: 360
      },
      distance: {
        type: ["number", "nil"],
        minimum: 0,
        maximum: 300
      }
    }
  },
  roll: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  slide: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: kn
    }
  },
  spin: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: {
        type: ["string", "nil"],
        enum: ["cw", "ccw"]
      },
      cycles: {
        type: ["number", "nil"],
        minimum: 1,
        maximum: 15
      }
    }
  },
  turn: {
    type: ["object"],
    properties: {
      duration: st,
      delay: at,
      direction: {
        type: ["string", "nil"],
        enum: ["right", "left"]
      }
    }
  }
}, Qm = ({ effectName: r, propertyName: o, compName: i }) => (a, f) => {
  Wn(re.warning_invalid_type_effect_options({
    propertyName: o,
    compName: i,
    effectName: r,
    wrongValue: `${f?.value}`,
    infoLink: lr(o)
  }));
}, Jm = ({ effectName: r, propertyName: o, compName: i }) => (a, f) => {
  Wn(re.warning_invalid_effect_options({
    propertyName: o,
    compName: i,
    effectName: r,
    wrongProperty: "value",
    wrongValue: `the key "${f?.propertyName}" cannot be set to the value "${f?.value}"`,
    infoLink: lr(o)
  }));
}, ey = ({ propertyName: r, compName: o }) => (i, a) => {
  if (!i)
    return !1;
  if (a === void 0)
    return !0;
  const f = Qm({
    effectName: i,
    propertyName: r,
    compName: o
  });
  if (!Go({
    reportError: f,
    reportWarning: () => ({})
  }, o)(a, { type: ["object"] }, r))
    return !1;
  const m = Jm({
    effectName: i,
    propertyName: r,
    compName: o
  });
  return !!Go({
    reportError: m,
    reportWarning: () => ({})
  }, o)(a, jl[i], r);
}, Zu = (r) => Object.keys(r).length === 0, ty = ({ compName: r }) => ({ effectName: o, effectOptions: i, propertyName: a }) => {
  const f = ey({
    propertyName: a,
    compName: r
  });
  if (!o && !i)
    return !1;
  if (!o && i && !Zu(i))
    return Wn(re.warning_effect_options_not_set({
      propertyName: a,
      compName: r,
      infoLink: lr(a)
    })), !1;
  const m = Ho[a === "hide" ? "HIDE" : "SHOW"]?.deprecatedValues;
  return o && i && m && m.find((_) => _ === o) && !Zu(i) ? (Wn(re.warning_deprecated_effect_with_options({
    compName: r,
    effectName: o,
    propertyName: a,
    infoLink: lr(a)
  })), !1) : m.find((_) => _ === o) ? !0 : o && !(o in jl) ? (Wn(re.warning_invalid_effect_name({
    propertyName: a,
    compName: r,
    effectName: o,
    infoLink: lr(a)
  })), !1) : !!f(o, i);
}, ny = ({ viewportState: r, hasPortal: o = !1 } = {}) => ({ setStyles: i, portal: a, metaData: f, getSdkInstance: d, runAnimation: m, createSdkState: _, styleUtils: w, setProps: y }) => {
  const P = ty({
    compName: f.role
  }), [T, K] = _({
    hidden: f.hiddenOnLoad,
    collapsed: f.collapsedOnLoad
  }, "hidden-collapsed");
  return {
    hide: async (E, I) => {
      if (y({ hidden: !0 }), T.collapsed || T.hidden) {
        K({ hidden: !0 });
        return;
      }
      if (P({
        effectName: E,
        effectOptions: I,
        propertyName: "hide"
      })) {
        const R = {
          animationDirection: Ho.HIDE.suffix,
          effectName: E,
          effectOptions: {
            ...zu?.[E] || te,
            ...I
          }
        };
        await Promise.all([
          m(R),
          o ? a.runAnimation(R) : void 0
        ]);
      } else
        i(w.getHiddenStyles()), o && a.setStyles(w.getHiddenStyles());
      K({ hidden: !0 }), r?.onViewportLeave?.forEach((R) => R());
    },
    show: async (E, I) => {
      if (y({ hidden: !1 }), T.collapsed || !T.hidden) {
        K({ hidden: !1 });
        return;
      }
      if (P({
        effectName: E,
        effectOptions: I,
        propertyName: "show"
      })) {
        const R = {
          animationDirection: Ho.SHOW.suffix,
          effectName: E,
          effectOptions: {
            ...zu?.[E] || te,
            ...I
          }
        };
        await Promise.all([
          m(R),
          o ? a.runAnimation(R) : void 0
        ]);
      } else
        i(w.getShownStyles()), o && a.setStyles(w.getShownStyles());
      K({ hidden: !1 }), r?.onViewportEnter?.forEach((R) => R());
    },
    collapse: async () => {
      y({ collapsed: !0 }), T.collapsed || (i(w.getCollapsedStyles()), o && a.setStyles(w.getCollapsedStyles()), K({ collapsed: !0 }), T.hidden || r?.onViewportLeave?.forEach((E) => E()));
    },
    expand: async () => {
      if (y({ collapsed: !1 }), T.collapsed) {
        const E = {
          ...w.getExpandedStyles(),
          visibility: T.hidden ? "hidden" : null
        };
        i(E), o && a.setStyles(E), K({ collapsed: !1 }), T.hidden || r?.onViewportEnter?.forEach((I) => I());
      }
    },
    get collapsed() {
      return T.collapsed;
    },
    get hidden() {
      return !!T.hidden;
    },
    get isVisible() {
      if (!f.isRendered())
        return !1;
      let E = d();
      for (; E; ) {
        if (E.hidden || E.collapsed)
          return !1;
        E = E.parent;
      }
      return !0;
    },
    get isAnimatable() {
      return !0;
    }
  };
}, ry = (r, o = !1) => {
  const [i, a] = r.createSdkState({
    onViewportEnter: [],
    onViewportLeave: []
  }, "viewport"), f = (_, w) => {
    a({ [_]: [...i[_], w] });
  }, d = ny({
    viewportState: i,
    hasPortal: o
  }), m = Xl(f);
  return wn([
    d,
    m
  ])(r);
}, iy = (r) => (o) => ry(o, r), ko = (r, o, i) => {
  const a = o.filter((f) => !r.includes(f));
  a.length && Lt(re.error_effects_input({
    functionName: i,
    wrongEffects: a,
    allowedEffects: r
  }));
}, zl = (r) => {
  const o = () => r.effectsTriggersApi?.getEffects() || [];
  return {
    effects: {
      get effects() {
        return o();
      },
      get activeEffects() {
        return r.effectsTriggersApi?.getActiveEffects() || [];
      },
      applyEffects: (i) => {
        ko(o(), i, "applyEffects"), r.effectsTriggersApi?.applyEffects(...i);
      },
      removeEffects: (i) => {
        ko(o(), i, "removeEffects"), r.effectsTriggersApi?.removeEffects(...i);
      },
      toggleEffects: (i) => {
        ko(o(), i, "toggleEffects"), r.effectsTriggersApi?.toggleEffects(...i);
      },
      removeAllEffects: () => r.effectsTriggersApi?.removeAllEffects()
    }
  };
}, oy = (r) => ({
  delete: () => {
    r.setProps({ deleted: !0 }), r.remove();
  },
  restore: () => {
    r.setProps({ deleted: !1 }), r.restore();
  },
  get deleted() {
    return !!r.props.deleted;
  }
}), sy = ({ role: r, compType: o, isGlobal: i, isRendered: a }) => ({
  id: r,
  type: `$w.${o}`,
  global: i(),
  rendered: a()
}), Zl = (r) => ({
  onMouseIn: (o) => ju("onMouseEnter", r, o),
  onMouseOut: (o) => ju("onMouseLeave", r, o),
  removeEventHandler: (o, i) => {
    const { getSdkInstance: a } = r;
    return typeof o != "string" ? (Lt(re.error_type({
      propertyName: "type",
      functionName: "removeEventHandler",
      value: o,
      expectedType: "string"
    })), a()) : typeof i != "function" ? (Lt(re.error_type({
      propertyName: "handler",
      functionName: "removeEventHandler",
      value: i,
      expectedType: "function"
    })), a()) : Zm(o, r, i);
  },
  get rendered() {
    return r.metaData.isRendered();
  },
  toJSON() {
    return sy(r.metaData);
  }
}), Ql = Xl();
wn([
  Hl,
  Ql,
  Zl,
  zl,
  Vl
]);
const ay = ({ useHiddenCollapsed: r = !0, hasPortal: o = !1 } = {}) => wn([
  Hl,
  Zl,
  zl,
  oy,
  r ? iy(o) : Ql,
  Vl
]), uy = ({ setProps: r, props: o }) => ({
  get label() {
    return o.ariaAttributes?.label;
  },
  set label(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        label: Ve(i) ? void 0 : i
      }
    });
  }
}), ly = Me(uy, {
  properties: {
    label: {
      type: ["string"],
      minLength: 1,
      maxLength: 1e3
    }
  }
}), cy = ({ setProps: r, props: o }) => ({
  get hidden() {
    return o.ariaAttributes?.hidden;
  },
  set hidden(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        hidden: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), fy = Me(cy, {
  properties: {
    hidden: {
      type: ["boolean", "string"],
      enum: ["false", "true"]
    }
  }
}), dy = ({ setProps: r, props: o }) => ({
  get pressed() {
    return o.ariaAttributes?.pressed;
  },
  set pressed(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        pressed: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), hy = Me(dy, {
  properties: {
    pressed: {
      type: ["string", "boolean"],
      enum: ["false", "true", "mixed"]
    }
  }
}), py = ({ setProps: r, props: o }) => ({
  get haspopup() {
    return o.ariaAttributes?.haspopup;
  },
  set haspopup(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        haspopup: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), _y = Me(py, {
  properties: {
    haspopup: {
      type: ["string", "boolean"],
      enum: ["false", "true", "menu", "dialog", "grid", "listbox", "tree"]
    }
  }
}), gy = ({ setProps: r, props: o }) => ({
  get atomic() {
    return o.ariaAttributes?.atomic;
  },
  set atomic(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        atomic: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), vy = Me(gy, {
  properties: {
    atomic: {
      type: ["boolean", "string"],
      enum: ["false", "true"]
    }
  }
}), my = ({ setProps: r, props: o }) => ({
  get busy() {
    return o.ariaAttributes?.busy;
  },
  set busy(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        busy: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), yy = Me(my, {
  properties: {
    busy: {
      type: ["boolean", "string"],
      enum: ["false", "true"]
    }
  }
});
var Qu;
(function(r) {
  r.ARIA_LABEL_NOT_STRING = "aria-label must be string", r.ARIA_LABEL_EMPTY_STRING = "aria-label can't be an empty string", r.REMOVING_MISSING_ATTRIBUTE = "Cannot remove a non existing attribute";
})(Qu || (Qu = {}));
const by = (r) => `The parameter that is passed to the ‘${r}’ property must be a selector function of a text element.`, wy = (r) => `The parameter that is passed to the ‘${r}’ property must be a selector function of an element.`, Ju = (r) => `The parameter that is passed to the ‘${r}’ property must be a string or ‘null’.`, Ey = ({ setProps: r, props: o }) => ({
  get current() {
    return o.ariaAttributes?.current;
  },
  set current(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        current: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), Sy = Me(Ey, {
  properties: {
    current: {
      type: ["string", "boolean"],
      enum: ["step", "page", "true", "false", "location", "date", "time"]
    }
  }
}), Ly = (r) => Jl(r) && (r.type === "$w.Text" || r.type === "$w.CollapsibleText"), Jl = (r) => !!(r.id && r.uniqueId && r.type), ec = (r, o, i, a, f) => f ? i(f) ? !0 : (Lt(a), !1) : o ? !0 : (Lt(Gl({
  value: f,
  types: ["object"],
  propertyName: r,
  functionName: `set ${r}`,
  index: void 0
})), !1), tc = (r, o = !0) => (i) => ec(r, o, Jl, wy(r), i), ts = (r, o = !0) => (i) => ec(r, o, Ly, by(r), i), Oy = ({ setProps: r, props: o, create$w: i }) => ({
  get describedBy() {
    return o.ariaAttributes?.describedBy ? i()(`#${o.ariaAttributes.describedBy}`) : void 0;
  },
  set describedBy(a) {
    if (!a) {
      r({
        ariaAttributes: {
          ...o.ariaAttributes,
          describedBy: void 0
        }
      });
      return;
    }
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        describedBy: a.uniqueId
      }
    });
  }
}), Ay = {
  describedBy: [ts("describedBy")]
}, Ty = Me(Oy, {
  properties: {
    describedBy: {
      type: ["object", "nil"]
    }
  }
}, Ay), Iy = ({ setProps: r, props: o, create$w: i }) => ({
  get errorMessage() {
    return o.ariaAttributes?.errorMessage ? i()(`#${o.ariaAttributes.errorMessage}`) : void 0;
  },
  set errorMessage(a) {
    if (!a) {
      r({
        ariaAttributes: {
          ...o.ariaAttributes,
          errorMessage: void 0
        }
      });
      return;
    }
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        errorMessage: a.uniqueId
      }
    });
  }
}), Py = {
  errorMessage: [ts("errorMessage")]
}, $y = Me(Iy, {
  properties: {
    errorMessage: {
      type: ["object", "nil"]
    }
  }
}, Py), Ry = ({ setProps: r, props: o }) => ({
  get expanded() {
    return o.ariaAttributes?.expanded;
  },
  set expanded(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        expanded: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), xy = Me(Ry, {
  properties: {
    expanded: {
      type: ["boolean", "string"],
      enum: ["false", "true"]
    }
  }
}), Cy = ({ setProps: r, props: o, create$w: i }) => ({
  get labelledBy() {
    return o.ariaAttributes?.labelledBy ? i()(`#${o.ariaAttributes.labelledBy}`) : void 0;
  },
  set labelledBy(a) {
    if (!a) {
      r({
        ariaAttributes: {
          ...o.ariaAttributes,
          labelledBy: void 0
        }
      });
      return;
    }
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        labelledBy: a.uniqueId
      }
    });
  }
}), Uy = {
  labelledBy: [ts("labelledBy")]
}, Dy = Me(Cy, {
  properties: {
    labelledBy: {
      type: ["object", "nil"]
    }
  }
}, Uy), My = ({ setProps: r, props: o }) => ({
  get live() {
    return o.ariaAttributes?.live;
  },
  set live(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        live: Ve(i) ? void 0 : i
      }
    });
  }
}), Fy = Me(My, {
  properties: {
    live: {
      type: ["string"],
      enum: ["polite", "assertive"]
    }
  }
}), ky = ({ setProps: r, props: o, create$w: i }) => ({
  get owns() {
    return o.ariaAttributes?.owns ? i()(`#${o.ariaAttributes.owns}`) : void 0;
  },
  set owns(a) {
    if (!a) {
      r({
        ariaAttributes: {
          ...o.ariaAttributes,
          owns: void 0
        }
      });
      return;
    }
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        owns: a.uniqueId
      }
    });
  }
}), Wy = {
  owns: [tc("owns")]
}, By = Me(ky, {
  properties: {
    owns: {
      type: ["object", "nil"]
    }
  }
}, Wy), Ny = ({ setProps: r, props: o, create$w: i }) => ({
  get controls() {
    return o.ariaAttributes?.controls ? i()(`#${o.ariaAttributes.controls}`) : void 0;
  },
  set controls(a) {
    if (!a) {
      r({
        ariaAttributes: {
          ...o.ariaAttributes,
          controls: void 0
        }
      });
      return;
    }
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        controls: a.uniqueId
      }
    });
  }
}), Gy = {
  controls: [tc("controls")]
}, Ky = Me(Ny, {
  properties: {
    controls: {
      type: ["object", "nil"]
    }
  }
}, Gy), Hy = ({ setProps: r, props: o }) => ({
  get roleDescription() {
    return o.ariaAttributes?.roleDescription;
  },
  set roleDescription(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        roleDescription: Ve(i) ? void 0 : i
      }
    });
  }
}), Vy = Me(Hy, {
  properties: {
    roleDescription: {
      type: ["string"],
      minLength: 1,
      maxLength: 100
    }
  }
}), qy = ({ setProps: r, props: o }) => ({
  get relevant() {
    return o.ariaAttributes?.relevant;
  },
  set relevant(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        relevant: Ve(i) ? void 0 : i
      }
    });
  }
}), Yy = Me(qy, {
  properties: {
    relevant: {
      type: ["string"],
      enum: ["additions", "additions text", "all", "removals", "text"]
    }
  }
}), Xy = ({ setProps: r, props: o }) => ({
  get role() {
    return o.role;
  },
  set role(i) {
    r({
      role: Ve(i) ? void 0 : i
    });
  }
}), jy = Me(Xy, {
  properties: {
    role: {
      type: ["string"]
    }
  }
}), zy = ({ setProps: r, props: o }) => ({
  screenReader: {
    get prefix() {
      return o.screenReader?.prefix;
    },
    set prefix(i) {
      if (i !== null && !No(i)) {
        Lt(Ju("prefix"));
        return;
      }
      r({ screenReader: { ...o.screenReader, prefix: i } });
    },
    get suffix() {
      return o.screenReader?.suffix;
    },
    set suffix(i) {
      if (i !== null && !No(i)) {
        Lt(Ju("suffix"));
        return;
      }
      r({ screenReader: { ...o.screenReader, suffix: i } });
    },
    get hasHint() {
      return o.screenReader?.hasHint;
    },
    set hasHint(i) {
      r({
        screenReader: {
          ...o.screenReader,
          hasHint: Ve(i) ? void 0 : i
        }
      });
    }
  }
}), Zy = ({ setProps: r, props: o }) => ({
  get tabIndex() {
    return o.tabIndex;
  },
  set tabIndex(i) {
    r({
      tabIndex: Ve(i) ? void 0 : i
    });
  }
}), Qy = Me(Zy, {
  properties: {
    tabIndex: {
      type: ["number"],
      enum: [0, -1]
    }
  }
}), Jy = ({ setProps: r, props: o }) => ({
  get required() {
    return o.ariaAttributes?.required;
  },
  set required(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        required: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), e0 = Me(Jy, {
  properties: {
    required: {
      type: ["string", "boolean"],
      enum: ["false", "true"]
    }
  }
}), t0 = ({ setProps: r, props: o }) => ({
  get valueText() {
    return o.ariaAttributes?.valueText;
  },
  set valueText(i) {
    r({
      ariaAttributes: {
        ...o.ariaAttributes,
        valueText: Ve(i) ? void 0 : String(i)
      }
    });
  }
}), n0 = Me(t0, {
  properties: {
    valueText: {
      type: ["string"],
      minLength: 1,
      maxLength: 1e3
    }
  }
}), r0 = ({ setProps: r, props: o }) => ({
  get lang() {
    return o.lang;
  },
  set lang(i) {
    r({
      lang: i
    });
  }
}), i0 = Me(r0, {
  properties: {
    lang: {
      type: ["string"]
    }
  }
}), el = {
  enableAriaLabel: ly,
  enableAriaDescribedBy: Ty,
  enableAriaLabelledBy: Dy,
  enableAriaAtomic: vy,
  enableAriaBusy: yy,
  enableAriaCurrent: Sy,
  enableAriaExpanded: xy,
  enableAriaLive: Fy,
  enableAriaOwns: By,
  enableAriaControls: Ky,
  enableAriaRoleDescription: Vy,
  enableAriaRelevant: Yy,
  enableAriaErrorMessage: $y,
  enableAriaHidden: fy,
  enableAriaPressed: hy,
  enableAriaHaspopup: _y,
  enableAriaRequired: e0,
  enableAriaValueText: n0
}, tl = {
  enableScreenReader: zy,
  enableRole: jy,
  enableTabIndex: Qy,
  enableLang: i0
}, o0 = (r) => {
  const o = [];
  return Object.entries(r).forEach(([i, a]) => a && el[i] && o.push(el[i])), (i) => {
    const a = wn(o, {
      modifyAriaSourceKeys: !0
    })(i);
    return a.ariaAttributes = wn(o)(i), a;
  };
}, s0 = ({ enableAriaLabel: r = !0, enableAriaDescribedBy: o = !0, enableAriaLabelledBy: i = !0, enableAriaAtomic: a = !1, enableAriaBusy: f = !1, enableAriaHidden: d = !1, enableAriaPressed: m = !1, enableAriaHaspopup: _ = !1, enableAriaCurrent: w = !1, enableAriaExpanded: y = !1, enableAriaLive: P = !1, enableAriaOwns: T = !1, enableAriaControls: K = !1, enableAriaRoleDescription: E = !1, enableAriaRelevant: I = !1, enableRole: R = !1, enableTabIndex: W = !1, enableLang: Z = !1, enableAriaErrorMessage: k = !1, enableScreenReader: F = !1, enableAriaRequired: J = !1, enableAriaValueText: pe = !1 } = {}) => (q) => {
  const ae = [], ve = {
    enableAriaLabel: r,
    enableAriaDescribedBy: o,
    enableAriaLabelledBy: i,
    enableAriaAtomic: a,
    enableAriaBusy: f,
    enableAriaCurrent: w,
    enableAriaExpanded: y,
    enableAriaLive: P,
    enableAriaOwns: T,
    enableAriaControls: K,
    enableAriaRoleDescription: E,
    enableAriaRelevant: I,
    enableAriaErrorMessage: k,
    enableAriaHidden: d,
    enableAriaPressed: m,
    enableAriaHaspopup: _,
    enableAriaRequired: J,
    enableAriaValueText: pe
  }, D = {
    enableScreenReader: F,
    enableRole: R,
    enableTabIndex: W,
    enableLang: Z
  };
  if (Object.values(ve).some((Ae) => Ae)) {
    const Ae = o0(ve);
    ae.push(Ae);
  }
  return Object.entries(D).forEach(([Ae, Xe]) => Xe && tl[Ae] && ae.push(tl[Ae])), { accessibility: wn(ae)(q) };
}, nc = (r) => r.map((o) => o._id), a0 = (r, o) => o.filter((i) => !nc(r).includes(i._id)), u0 = (r, o) => r.filter((i) => !nc(o).includes(i._id)), l0 = (r) => ({
  selectors: /* @__PURE__ */ new Map(),
  items: r?.map((o) => ({ _id: o })) ?? [],
  onItemReadyCallbacks: /* @__PURE__ */ new Set(),
  onItemRemovedCallbacks: /* @__PURE__ */ new Set(),
  isItemsSet: r.length > 0
}), c0 = (r) => {
  const o = l0(r.props.items), i = (_) => {
    if (!o.selectors.has(_)) {
      const w = r.create$w({
        context: { type: "COMPONENT_SCOPE", itemId: _, _internal: { repeaterCompId: r.props.id } }
      });
      o.selectors.set(_, w);
    }
    return o.selectors.get(_);
  }, a = (_) => {
    o.selectors.delete(_);
  }, f = (_, w) => {
    w.forEach((y, P) => {
      o[_].forEach((T) => T(i(y._id), y, P));
    });
  }, d = (_) => {
    _.length && (f("onItemRemovedCallbacks", _), _.forEach((w) => a(w._id)));
  }, m = (_) => {
    !_.length || !o.isItemsSet || f("onItemReadyCallbacks", _);
  };
  return {
    get data() {
      return o.items;
    },
    set data(_) {
      const w = o.items;
      d(u0(w, _)), m(a0(w, _)), o.items = _, o.isItemsSet = !0, r.setProps({ items: _.map((y) => y._id) });
    },
    forEachItem: (_) => {
      o.items.forEach((w, y) => _(i(w._id), w, y));
    },
    forItems: (_, w) => {
      if (!Array.isArray(_) || !_.length)
        return;
      const y = new Set(_);
      o.items.forEach((P, T) => {
        y.has(P._id) && w(i(P._id), P, T);
      });
    },
    onItemReady: (_) => (o.onItemReadyCallbacks.add(_), o.isItemsSet && f("onItemReadyCallbacks", o.items), () => {
      o.onItemReadyCallbacks.delete(_);
    }),
    onItemRemoved: (_) => (o.onItemRemovedCallbacks.add(_), () => {
      o.onItemRemovedCallbacks.delete(_);
    }),
    setCss(_) {
      r.setStyles(_);
    }
  };
}, S0 = (r, o, i, a) => {
  const f = s0({
    enableAriaLabel: !1,
    enableAriaLabelledBy: !0,
    enableAriaDescribedBy: !0,
    enableAriaControls: !1,
    enableAriaOwns: !1,
    enableAriaErrorMessage: !1,
    enableTabIndex: !1
  }), d = wn([c0, ay(), f]);
  return mm(d).factory({ getProps: r, setProps: o, getService: i, ...a });
};
function f0(r) {
  const o = {};
  for (const i in r)
    typeof r[i] == "function" && (o[i] = r[i]);
  return o;
}
const d0 = (r, o) => f0(r(o)), h0 = (r) => `on${r.charAt(0).toUpperCase()}${r.slice(1)}`, p0 = (r, o, i) => {
  let a = r?.props;
  const f = [], d = {}, m = {
    get props() {
      return o();
    },
    set props(T) {
      throw new Error("$widget.props is read only.");
    },
    onPropsChanged: (T) => {
      f.push(T);
    },
    fireEvent: (T, K) => {
      d[T] && d[T].forEach((E) => E({ data: K }));
    }
  }, _ = (T, K) => {
    f.forEach((E) => E(T, K)), i(K);
  }, w = (T, K) => {
    d[T] || (d[T] = []), d[T].push(K);
  }, y = (T, K) => T.reduce((E, I) => {
    const R = h0(I);
    return E[R] = (W) => K(I, W), E;
  }, {});
  return {
    $widget: m,
    invokeOnPropsChanged: _,
    widgetSdk: (() => {
      const T = {};
      a = a || {}, Object.keys(a).forEach((E) => Object.defineProperty(T, E, {
        get: () => o()?.[E],
        set: (I) => {
          const R = { ...o() };
          _(R, { ...R, [E]: I });
        }
      })), Object.keys(a).forEach((E) => {
        T[E] = a[E].default;
      });
      const K = r ? y(r.events || [], w) : {};
      return Object.assign(T, K);
    })()
  };
}, _0 = (r) => {
  const o = [], i = () => {
    const f = o.map((d) => d());
    if (f.some((d) => d instanceof Promise))
      return Promise.all(f);
  }, a = r;
  return a.onReady = (f) => {
    o.push(f);
  }, { $w: a, invokeOnReady: i };
}, g0 = ({ initialStore: r, sdkData: o, createSelector: i }) => (a, f) => {
  const d = new Nv(structuredClone(r)), m = new Vo(d, o), _ = i(m, f, a.slots), { $w: w, invokeOnReady: y } = _0(_);
  return {
    stateStore: d,
    $w: w,
    invokeOnReady: y
  };
};
var ns = {};
Object.defineProperty(ns, "__esModule", { value: !0 });
var rc = ns.WixClientDefinition = void 0;
const v0 = fr;
rc = ns.WixClientDefinition = (0, v0.defineService)("viewer-core/viewer-service-wix-client");
const L0 = ({ initialStore: r, sdkData: o, createSelector: i, userCodeModule: a, userCodeDeps: f }) => {
  const d = g0({ initialStore: r, sdkData: o, createSelector: i });
  return (m, _) => {
    const { stateStore: w, $w: y, invokeOnReady: P } = d(m, _), T = () => w.props.getOverrides(m.nickname), K = (k) => w.props.updateOverrides(m.nickname, k), { $widget: E, invokeOnPropsChanged: I, widgetSdk: R } = p0(o.widgetApi, T, K), Z = d0(a, (() => {
      const F = { client: _(rc).getWixClient() }, J = sm.mapValues(f, (pe) => _(pe));
      return {
        $w: y,
        $widget: E,
        console,
        $ns: J,
        // todo - implement $ns and rest of globals
        $wixContext: F
      };
    })());
    return {
      stateStore: w,
      velo: { invokeOnPropsChanged: I, invokeOnReady: P },
      sdk: Object.assign(R, Z)
    };
  };
}, O0 = (r) => (o) => {
  const [i = {}, a] = Gv(o.nickname);
  return a ? null : an.createElement(r, { ...o, ...i });
};
export {
  Vo as Store,
  w0 as VeloRuntime,
  p0 as create$widgetApi,
  E0 as createComponentSDK,
  b0 as createScopedRepeater,
  g0 as createStateFactory,
  L0 as createVeloState,
  S0 as repeaterSdk,
  d0 as runVeloCode,
  O0 as withVelo
};
//# sourceMappingURL=builder-velo.mjs.map

}