import { g as global$1 } from './normalize-component-43ce05b9.js';
import { d as domIterables } from './dom-iterables-b6f5ef3b.js';
import { a as arrayIteration } from './array-iteration-75fcf9dc.js';
import { a as arrayMethodIsStrict$1 } from './array-method-is-strict-28896b99.js';
import { j as createNonEnumerableProperty$1 } from './well-known-symbol-9b7e0fd8.js';

var $forEach = arrayIteration.forEach;
var arrayMethodIsStrict = arrayMethodIsStrict$1;

var STRICT_METHOD = arrayMethodIsStrict('forEach');

// `Array.prototype.forEach` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.foreach
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;

var global = global$1;
var DOMIterables = domIterables;
var forEach = arrayForEach;
var createNonEnumerableProperty = createNonEnumerableProperty$1;

for (var COLLECTION_NAME in DOMIterables) {
  var Collection = global[COLLECTION_NAME];
  var CollectionPrototype = Collection && Collection.prototype;
  // some Chrome versions have non-configurable methods on DOMTokenList
  if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
    createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
  } catch (error) {
    CollectionPrototype.forEach = forEach;
  }
}
