import { commonjsGlobal } from '../../../../../_virtual/_commonjsHelpers.mjs';

/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
var queueMicrotask_1;
var hasRequiredQueueMicrotask;
function requireQueueMicrotask() {
  if (hasRequiredQueueMicrotask) return queueMicrotask_1;
  hasRequiredQueueMicrotask = 1;
  let promise;
  queueMicrotask_1 = typeof queueMicrotask === 'function' ? queueMicrotask.bind(typeof window !== 'undefined' ? window : commonjsGlobal)
  // reuse resolved promise, and allocate it lazily
  : cb => (promise || (promise = Promise.resolve())).then(cb).catch(err => setTimeout(() => {
    throw err;
  }, 0));
  return queueMicrotask_1;
}

export { requireQueueMicrotask as __require };
