import { produce } from "../../../../../immer@10.1.1/node_modules/immer/dist/immer.js";
const immerImpl = (initializer) => (set, get, store) => {
  store.setState = (updater, replace, ...a) => {
    const nextState = typeof updater === "function" ? produce(updater) : updater;
    return set(nextState, replace, ...a);
  };
  return initializer(store.setState, get, store);
};
const immer = immerImpl;
export {
  immer
};
//# sourceMappingURL=immer.js.map
