import { __exports as f } from "../../../_virtual/use-sync-external-store-shim.production.min.es.js";
import h from "react";
/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
var s;
function w() {
  if (s)
    return f;
  s = 1;
  var u = h;
  function a(e, t) {
    return e === t && (e !== 0 || 1 / e === 1 / t) || e !== e && t !== t;
  }
  var S = typeof Object.is == "function" ? Object.is : a, d = u.useState, p = u.useEffect, m = u.useLayoutEffect, l = u.useDebugValue;
  function y(e, t) {
    var r = t(), i = d({ inst: { value: r, getSnapshot: t } }), n = i[0].inst, c = i[1];
    return m(function() {
      n.value = r, n.getSnapshot = t, o(n) && c({ inst: n });
    }, [e, r, t]), p(function() {
      return o(n) && c({ inst: n }), e(function() {
        o(n) && c({ inst: n });
      });
    }, [e]), l(r), r;
  }
  function o(e) {
    var t = e.getSnapshot;
    e = e.value;
    try {
      var r = t();
      return !S(e, r);
    } catch {
      return !0;
    }
  }
  function _(e, t) {
    return t();
  }
  var v = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? _ : y;
  return f.useSyncExternalStore = u.useSyncExternalStore !== void 0 ? u.useSyncExternalStore : v, f;
}
export {
  w as __require
};
//# sourceMappingURL=use-sync-external-store-shim.production.min.es.js.map
