import T from "react";
var l = { exports: {} }, y = {};
/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var L;
function A() {
  if (L) return y;
  L = 1;
  var i = T;
  function _(t, o) {
    return t === o && (t !== 0 || 1 / t === 1 / o) || t !== t && o !== o;
  }
  var c = typeof Object.is == "function" ? Object.is : _, p = i.useState, u = i.useEffect, S = i.useLayoutEffect, E = i.useDebugValue;
  function O(t, o) {
    var e = o(), r = p({ inst: { value: e, getSnapshot: o } }), n = r[0].inst, a = r[1];
    return S(
      function() {
        n.value = e, n.getSnapshot = o, f(n) && a({ inst: n });
      },
      [t, e, o]
    ), u(
      function() {
        return f(n) && a({ inst: n }), t(function() {
          f(n) && a({ inst: n });
        });
      },
      [t]
    ), E(e), e;
  }
  function f(t) {
    var o = t.getSnapshot;
    t = t.value;
    try {
      var e = o();
      return !c(t, e);
    } catch {
      return !0;
    }
  }
  function v(t, o) {
    return o();
  }
  var d = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? v : O;
  return y.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : d, y;
}
var m = {};
/**
 * @license React
 * use-sync-external-store-shim.development.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var x;
function R() {
  return x || (x = 1, process.env.NODE_ENV !== "production" && (function() {
    function i(e, r) {
      return e === r && (e !== 0 || 1 / e === 1 / r) || e !== e && r !== r;
    }
    function _(e, r) {
      d || u.startTransition === void 0 || (d = !0, console.error(
        "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
      ));
      var n = r();
      if (!t) {
        var a = r();
        S(n, a) || (console.error(
          "The result of getSnapshot should be cached to avoid an infinite loop"
        ), t = !0);
      }
      a = E({
        inst: { value: n, getSnapshot: r }
      });
      var s = a[0].inst, h = a[1];
      return f(
        function() {
          s.value = n, s.getSnapshot = r, c(s) && h({ inst: s });
        },
        [e, n, r]
      ), O(
        function() {
          return c(s) && h({ inst: s }), e(function() {
            c(s) && h({ inst: s });
          });
        },
        [e]
      ), v(n), n;
    }
    function c(e) {
      var r = e.getSnapshot;
      e = e.value;
      try {
        var n = r();
        return !S(e, n);
      } catch {
        return !0;
      }
    }
    function p(e, r) {
      return r();
    }
    typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
    var u = T, S = typeof Object.is == "function" ? Object.is : i, E = u.useState, O = u.useEffect, f = u.useLayoutEffect, v = u.useDebugValue, d = !1, t = !1, o = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? p : _;
    m.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : o, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
  })()), m;
}
var w;
function g() {
  return w || (w = 1, process.env.NODE_ENV === "production" ? l.exports = A() : l.exports = R()), l.exports;
}
var G = g();
export {
  g as r,
  G as s
};
//# sourceMappingURL=index-VL0YEmOW.mjs.map
