axe-core 4.10.3-canary.d77c885 → 4.10.3-canary.d7dfebc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/axe.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! axe v4.10.3-canary.d77c885
1
+ /*! axe v4.10.3-canary.d7dfebc
2
2
  * Copyright (c) 2015 - 2025 Deque Systems, Inc.
3
3
  *
4
4
  * Your use of this Source Code Form is subject to the terms of the Mozilla Public
@@ -22,7 +22,7 @@
22
22
  }, _typeof(o);
23
23
  }
24
24
  var axe = axe || {};
25
- axe.version = '4.10.3-canary.d77c885';
25
+ axe.version = '4.10.3-canary.d7dfebc';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -4673,14 +4673,14 @@
4673
4673
  }
4674
4674
  })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);
4675
4675
  });
4676
- var require_global = __commonJS(function(exports, module) {
4676
+ var require_global_this2 = __commonJS(function(exports, module) {
4677
4677
  'use strict';
4678
4678
  var check = function check(it) {
4679
4679
  return it && it.Math === Math && it;
4680
4680
  };
4681
- module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || function() {
4681
+ module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || check(_typeof(exports) == 'object' && exports) || function() {
4682
4682
  return this;
4683
- }() || exports || Function('return this')();
4683
+ }() || Function('return this')();
4684
4684
  });
4685
4685
  var require_fails = __commonJS(function(exports, module) {
4686
4686
  'use strict';
@@ -4741,20 +4741,10 @@
4741
4741
  }
4742
4742
  };
4743
4743
  });
4744
- var require_document_all = __commonJS(function(exports, module) {
4745
- 'use strict';
4746
- var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
4747
- var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== void 0;
4748
- module.exports = {
4749
- all: documentAll,
4750
- IS_HTMLDDA: IS_HTMLDDA
4751
- };
4752
- });
4753
4744
  var require_is_callable2 = __commonJS(function(exports, module) {
4754
4745
  'use strict';
4755
- var $documentAll = require_document_all();
4756
- var documentAll = $documentAll.all;
4757
- module.exports = $documentAll.IS_HTMLDDA ? function(argument) {
4746
+ var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
4747
+ module.exports = typeof documentAll == 'undefined' && documentAll !== void 0 ? function(argument) {
4758
4748
  return typeof argument == 'function' || argument === documentAll;
4759
4749
  } : function(argument) {
4760
4750
  return typeof argument == 'function';
@@ -4843,11 +4833,7 @@
4843
4833
  var require_is_object2 = __commonJS(function(exports, module) {
4844
4834
  'use strict';
4845
4835
  var isCallable = require_is_callable2();
4846
- var $documentAll = require_document_all();
4847
- var documentAll = $documentAll.all;
4848
- module.exports = $documentAll.IS_HTMLDDA ? function(it) {
4849
- return _typeof(it) == 'object' ? it !== null : isCallable(it) || it === documentAll;
4850
- } : function(it) {
4836
+ module.exports = function(it) {
4851
4837
  return _typeof(it) == 'object' ? it !== null : isCallable(it);
4852
4838
  };
4853
4839
  });
@@ -4858,13 +4844,13 @@
4858
4844
  var require_get_built_in = __commonJS(function(exports, module) {
4859
4845
  'use strict';
4860
4846
  var path = require_path();
4861
- var global2 = require_global();
4847
+ var globalThis2 = require_global_this2();
4862
4848
  var isCallable = require_is_callable2();
4863
4849
  var aFunction = function aFunction(variable) {
4864
4850
  return isCallable(variable) ? variable : void 0;
4865
4851
  };
4866
4852
  module.exports = function(namespace, method) {
4867
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global2[namespace]) : path[namespace] && path[namespace][method] || global2[namespace] && global2[namespace][method];
4853
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis2[namespace]) : path[namespace] && path[namespace][method] || globalThis2[namespace] && globalThis2[namespace][method];
4868
4854
  };
4869
4855
  });
4870
4856
  var require_object_is_prototype_of = __commonJS(function(exports, module) {
@@ -4872,16 +4858,19 @@
4872
4858
  var uncurryThis = require_function_uncurry_this();
4873
4859
  module.exports = uncurryThis({}.isPrototypeOf);
4874
4860
  });
4875
- var require_engine_user_agent = __commonJS(function(exports, module) {
4861
+ var require_environment_user_agent = __commonJS(function(exports, module) {
4876
4862
  'use strict';
4877
- module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
4863
+ var globalThis2 = require_global_this2();
4864
+ var navigator = globalThis2.navigator;
4865
+ var userAgent = navigator && navigator.userAgent;
4866
+ module.exports = userAgent ? String(userAgent) : '';
4878
4867
  });
4879
- var require_engine_v8_version = __commonJS(function(exports, module) {
4868
+ var require_environment_v8_version = __commonJS(function(exports, module) {
4880
4869
  'use strict';
4881
- var global2 = require_global();
4882
- var userAgent = require_engine_user_agent();
4883
- var process2 = global2.process;
4884
- var Deno = global2.Deno;
4870
+ var globalThis2 = require_global_this2();
4871
+ var userAgent = require_environment_user_agent();
4872
+ var process2 = globalThis2.process;
4873
+ var Deno = globalThis2.Deno;
4885
4874
  var versions = process2 && process2.versions || Deno && Deno.version;
4886
4875
  var v8 = versions && versions.v8;
4887
4876
  var match;
@@ -4903,10 +4892,10 @@
4903
4892
  });
4904
4893
  var require_symbol_constructor_detection = __commonJS(function(exports, module) {
4905
4894
  'use strict';
4906
- var V8_VERSION = require_engine_v8_version();
4895
+ var V8_VERSION = require_environment_v8_version();
4907
4896
  var fails = require_fails();
4908
- var global2 = require_global();
4909
- var $String = global2.String;
4897
+ var globalThis2 = require_global_this2();
4898
+ var $String = globalThis2.String;
4910
4899
  module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
4911
4900
  var symbol = Symbol('symbol detection');
4912
4901
  return !$String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
@@ -4989,42 +4978,42 @@
4989
4978
  });
4990
4979
  var require_define_global_property = __commonJS(function(exports, module) {
4991
4980
  'use strict';
4992
- var global2 = require_global();
4981
+ var globalThis2 = require_global_this2();
4993
4982
  var defineProperty = Object.defineProperty;
4994
4983
  module.exports = function(key, value) {
4995
4984
  try {
4996
- defineProperty(global2, key, {
4985
+ defineProperty(globalThis2, key, {
4997
4986
  value: value,
4998
4987
  configurable: true,
4999
4988
  writable: true
5000
4989
  });
5001
4990
  } catch (error) {
5002
- global2[key] = value;
4991
+ globalThis2[key] = value;
5003
4992
  }
5004
4993
  return value;
5005
4994
  };
5006
4995
  });
5007
4996
  var require_shared_store = __commonJS(function(exports, module) {
5008
4997
  'use strict';
5009
- var global2 = require_global();
4998
+ var IS_PURE = require_is_pure();
4999
+ var globalThis2 = require_global_this2();
5010
5000
  var defineGlobalProperty = require_define_global_property();
5011
5001
  var SHARED = '__core-js_shared__';
5012
- var store = global2[SHARED] || defineGlobalProperty(SHARED, {});
5013
- module.exports = store;
5002
+ var store = module.exports = globalThis2[SHARED] || defineGlobalProperty(SHARED, {});
5003
+ (store.versions || (store.versions = [])).push({
5004
+ version: '3.44.0',
5005
+ mode: IS_PURE ? 'pure' : 'global',
5006
+ copyright: '\xa9 2014-2025 Denis Pushkarev (zloirock.ru)',
5007
+ license: 'https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE',
5008
+ source: 'https://github.com/zloirock/core-js'
5009
+ });
5014
5010
  });
5015
5011
  var require_shared = __commonJS(function(exports, module) {
5016
5012
  'use strict';
5017
- var IS_PURE = require_is_pure();
5018
5013
  var store = require_shared_store();
5019
- (module.exports = function(key, value) {
5020
- return store[key] || (store[key] = value !== void 0 ? value : {});
5021
- })('versions', []).push({
5022
- version: '3.33.0',
5023
- mode: IS_PURE ? 'pure' : 'global',
5024
- copyright: '\xa9 2014-2023 Denis Pushkarev (zloirock.ru)',
5025
- license: 'https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE',
5026
- source: 'https://github.com/zloirock/core-js'
5027
- });
5014
+ module.exports = function(key, value) {
5015
+ return store[key] || (store[key] = value || {});
5016
+ };
5028
5017
  });
5029
5018
  var require_to_object = __commonJS(function(exports, module) {
5030
5019
  'use strict';
@@ -5048,20 +5037,20 @@
5048
5037
  var uncurryThis = require_function_uncurry_this();
5049
5038
  var id = 0;
5050
5039
  var postfix = Math.random();
5051
- var toString = uncurryThis(1..toString);
5040
+ var toString = uncurryThis(1.1.toString);
5052
5041
  module.exports = function(key) {
5053
5042
  return 'Symbol(' + (key === void 0 ? '' : key) + ')_' + toString(++id + postfix, 36);
5054
5043
  };
5055
5044
  });
5056
5045
  var require_well_known_symbol = __commonJS(function(exports, module) {
5057
5046
  'use strict';
5058
- var global2 = require_global();
5047
+ var globalThis2 = require_global_this2();
5059
5048
  var shared = require_shared();
5060
5049
  var hasOwn2 = require_has_own_property();
5061
5050
  var uid = require_uid();
5062
5051
  var NATIVE_SYMBOL = require_symbol_constructor_detection();
5063
5052
  var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
5064
- var Symbol2 = global2.Symbol;
5053
+ var Symbol2 = globalThis2.Symbol;
5065
5054
  var WellKnownSymbolsStore = shared('wks');
5066
5055
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2['for'] || Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
5067
5056
  module.exports = function(name) {
@@ -5114,9 +5103,9 @@
5114
5103
  });
5115
5104
  var require_document_create_element = __commonJS(function(exports, module) {
5116
5105
  'use strict';
5117
- var global2 = require_global();
5106
+ var globalThis2 = require_global_this2();
5118
5107
  var isObject = require_is_object2();
5119
- var document2 = global2.document;
5108
+ var document2 = globalThis2.document;
5120
5109
  var EXISTS = isObject(document2) && isObject(document2.createElement);
5121
5110
  module.exports = function(it) {
5122
5111
  return EXISTS ? document2.createElement(it) : {};
@@ -5273,7 +5262,7 @@
5273
5262
  });
5274
5263
  var require_export = __commonJS(function(exports, module) {
5275
5264
  'use strict';
5276
- var global2 = require_global();
5265
+ var globalThis2 = require_global_this2();
5277
5266
  var apply = require_function_apply();
5278
5267
  var uncurryThis = require_function_uncurry_this_clause();
5279
5268
  var isCallable = require_is_callable2();
@@ -5283,6 +5272,7 @@
5283
5272
  var bind = require_function_bind_context();
5284
5273
  var createNonEnumerableProperty = require_create_non_enumerable_property();
5285
5274
  var hasOwn2 = require_has_own_property();
5275
+ require_shared_store();
5286
5276
  var wrapConstructor = function wrapConstructor(NativeConstructor) {
5287
5277
  var _Wrapper = function Wrapper(a2, b2, c4) {
5288
5278
  if (this instanceof _Wrapper) {
@@ -5308,7 +5298,7 @@
5308
5298
  var GLOBAL = options.global;
5309
5299
  var STATIC = options.stat;
5310
5300
  var PROTO = options.proto;
5311
- var nativeSource = GLOBAL ? global2 : STATIC ? global2[TARGET] : (global2[TARGET] || {}).prototype;
5301
+ var nativeSource = GLOBAL ? globalThis2 : STATIC ? globalThis2[TARGET] : globalThis2[TARGET] && globalThis2[TARGET].prototype;
5312
5302
  var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
5313
5303
  var targetPrototype = target.prototype;
5314
5304
  var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
@@ -5326,11 +5316,11 @@
5326
5316
  }
5327
5317
  }
5328
5318
  sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
5329
- if (USE_NATIVE && _typeof(targetProperty) == _typeof(sourceProperty)) {
5319
+ if (!FORCED && !PROTO && _typeof(targetProperty) == _typeof(sourceProperty)) {
5330
5320
  continue;
5331
5321
  }
5332
5322
  if (options.bind && USE_NATIVE) {
5333
- resultProperty = bind(sourceProperty, global2);
5323
+ resultProperty = bind(sourceProperty, globalThis2);
5334
5324
  } else if (options.wrap && USE_NATIVE) {
5335
5325
  resultProperty = wrapConstructor(sourceProperty);
5336
5326
  } else if (PROTO && isCallable(sourceProperty)) {
@@ -5454,7 +5444,8 @@
5454
5444
  var toIntegerOrInfinity = require_to_integer_or_infinity();
5455
5445
  var min = Math.min;
5456
5446
  module.exports = function(argument) {
5457
- return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
5447
+ var len = toIntegerOrInfinity(argument);
5448
+ return len > 0 ? min(len, 9007199254740991) : 0;
5458
5449
  };
5459
5450
  });
5460
5451
  var require_length_of_array_like = __commonJS(function(exports, module) {
@@ -5473,6 +5464,9 @@
5473
5464
  return function($this, el, fromIndex) {
5474
5465
  var O = toIndexedObject($this);
5475
5466
  var length = lengthOfArrayLike(O);
5467
+ if (length === 0) {
5468
+ return !IS_INCLUDES && -1;
5469
+ }
5476
5470
  var index = toAbsoluteIndex(fromIndex, length);
5477
5471
  var value;
5478
5472
  if (IS_INCLUDES && el !== el) {
@@ -5674,15 +5668,15 @@
5674
5668
  });
5675
5669
  var require_weak_map_basic_detection = __commonJS(function(exports, module) {
5676
5670
  'use strict';
5677
- var global2 = require_global();
5671
+ var globalThis2 = require_global_this2();
5678
5672
  var isCallable = require_is_callable2();
5679
- var WeakMap2 = global2.WeakMap;
5673
+ var WeakMap2 = globalThis2.WeakMap;
5680
5674
  module.exports = isCallable(WeakMap2) && /native code/.test(String(WeakMap2));
5681
5675
  });
5682
5676
  var require_internal_state = __commonJS(function(exports, module) {
5683
5677
  'use strict';
5684
5678
  var NATIVE_WEAK_MAP = require_weak_map_basic_detection();
5685
- var global2 = require_global();
5679
+ var globalThis2 = require_global_this2();
5686
5680
  var isObject = require_is_object2();
5687
5681
  var createNonEnumerableProperty = require_create_non_enumerable_property();
5688
5682
  var hasOwn2 = require_has_own_property();
@@ -5690,8 +5684,8 @@
5690
5684
  var sharedKey = require_shared_key();
5691
5685
  var hiddenKeys = require_hidden_keys();
5692
5686
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
5693
- var TypeError2 = global2.TypeError;
5694
- var WeakMap2 = global2.WeakMap;
5687
+ var TypeError2 = globalThis2.TypeError;
5688
+ var WeakMap2 = globalThis2.WeakMap;
5695
5689
  var set2;
5696
5690
  var get2;
5697
5691
  var has;
@@ -5934,8 +5928,8 @@
5934
5928
  var wellKnownSymbol = require_well_known_symbol();
5935
5929
  var TO_STRING_TAG = wellKnownSymbol('toStringTag');
5936
5930
  module.exports = function(it, TAG, STATIC, SET_METHOD) {
5937
- if (it) {
5938
- var target = STATIC ? it : it.prototype;
5931
+ var target = STATIC ? it : it && it.prototype;
5932
+ if (target) {
5939
5933
  if (!hasOwn2(target, TO_STRING_TAG)) {
5940
5934
  defineProperty(target, TO_STRING_TAG, {
5941
5935
  configurable: true,
@@ -5982,13 +5976,20 @@
5982
5976
  } catch (error) {}
5983
5977
  };
5984
5978
  });
5979
+ var require_is_possible_prototype = __commonJS(function(exports, module) {
5980
+ 'use strict';
5981
+ var isObject = require_is_object2();
5982
+ module.exports = function(argument) {
5983
+ return isObject(argument) || argument === null;
5984
+ };
5985
+ });
5985
5986
  var require_a_possible_prototype = __commonJS(function(exports, module) {
5986
5987
  'use strict';
5987
- var isCallable = require_is_callable2();
5988
+ var isPossiblePrototype = require_is_possible_prototype();
5988
5989
  var $String = String;
5989
5990
  var $TypeError = TypeError;
5990
5991
  module.exports = function(argument) {
5991
- if (_typeof(argument) == 'object' || isCallable(argument)) {
5992
+ if (isPossiblePrototype(argument)) {
5992
5993
  return argument;
5993
5994
  }
5994
5995
  throw new $TypeError('Can\'t set ' + $String(argument) + ' as a prototype');
@@ -5997,7 +5998,8 @@
5997
5998
  var require_object_set_prototype_of = __commonJS(function(exports, module) {
5998
5999
  'use strict';
5999
6000
  var uncurryThisAccessor = require_function_uncurry_this_accessor();
6000
- var anObject = require_an_object();
6001
+ var isObject = require_is_object2();
6002
+ var requireObjectCoercible = require_require_object_coercible();
6001
6003
  var aPossiblePrototype = require_a_possible_prototype();
6002
6004
  module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function() {
6003
6005
  var CORRECT_SETTER = false;
@@ -6009,8 +6011,11 @@
6009
6011
  CORRECT_SETTER = test instanceof Array;
6010
6012
  } catch (error) {}
6011
6013
  return function setPrototypeOf(O, proto) {
6012
- anObject(O);
6014
+ requireObjectCoercible(O);
6013
6015
  aPossiblePrototype(proto);
6016
+ if (!isObject(O)) {
6017
+ return O;
6018
+ }
6014
6019
  if (CORRECT_SETTER) {
6015
6020
  setter(O, proto);
6016
6021
  } else {
@@ -6251,7 +6256,6 @@
6251
6256
  var getBuiltIn = require_get_built_in();
6252
6257
  var inspectSource = require_inspect_source();
6253
6258
  var noop3 = function noop3() {};
6254
- var empty = [];
6255
6259
  var construct = getBuiltIn('Reflect', 'construct');
6256
6260
  var constructorRegExp = /^\s*(?:class|function)\b/;
6257
6261
  var exec = uncurryThis(constructorRegExp.exec);
@@ -6261,7 +6265,7 @@
6261
6265
  return false;
6262
6266
  }
6263
6267
  try {
6264
- construct(noop3, empty, argument);
6268
+ construct(noop3, [], argument);
6265
6269
  return true;
6266
6270
  } catch (error) {
6267
6271
  return false;
@@ -6293,15 +6297,14 @@
6293
6297
  });
6294
6298
  var require_create_property = __commonJS(function(exports, module) {
6295
6299
  'use strict';
6296
- var toPropertyKey = require_to_property_key();
6300
+ var DESCRIPTORS = require_descriptors();
6297
6301
  var definePropertyModule = require_object_define_property();
6298
6302
  var createPropertyDescriptor = require_create_property_descriptor();
6299
6303
  module.exports = function(object, key, value) {
6300
- var propertyKey = toPropertyKey(key);
6301
- if (propertyKey in object) {
6302
- definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
6304
+ if (DESCRIPTORS) {
6305
+ definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
6303
6306
  } else {
6304
- object[propertyKey] = value;
6307
+ object[key] = value;
6305
6308
  }
6306
6309
  };
6307
6310
  });
@@ -6361,9 +6364,9 @@
6361
6364
  var index = 0;
6362
6365
  var length, result, step, iterator, next, value;
6363
6366
  if (iteratorMethod && !(this === $Array && isArrayIteratorMethod(iteratorMethod))) {
6367
+ result = IS_CONSTRUCTOR ? new this() : [];
6364
6368
  iterator = getIterator(O, iteratorMethod);
6365
6369
  next = iterator.next;
6366
- result = IS_CONSTRUCTOR ? new this() : [];
6367
6370
  for (;!(step = call(next, iterator)).done; index++) {
6368
6371
  value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [ step.value, index ], true) : step.value;
6369
6372
  createProperty(result, index, value);
@@ -18591,10 +18594,10 @@
18591
18594
  if (!win.navigator || _typeof(win.navigator) !== 'object') {
18592
18595
  return {};
18593
18596
  }
18594
- var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
18597
+ var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
18595
18598
  var _ref62 = getOrientation(win) || {}, angle = _ref62.angle, type2 = _ref62.type;
18596
18599
  return {
18597
- userAgent: navigator2.userAgent,
18600
+ userAgent: navigator.userAgent,
18598
18601
  windowWidth: innerWidth,
18599
18602
  windowHeight: innerHeight,
18600
18603
  orientationAngle: angle,
@@ -19211,62 +19214,101 @@
19211
19214
  return window.performance.now();
19212
19215
  }
19213
19216
  }
19214
- var originalTime = null;
19215
- var lastRecordedTime = now();
19217
+ var axeStartTime = now();
19218
+ var axeStarted = false;
19216
19219
  return {
19217
19220
  start: function start() {
19221
+ this.reset();
19222
+ axeStarted = true;
19218
19223
  this.mark('mark_axe_start');
19219
19224
  },
19220
19225
  end: function end() {
19221
19226
  this.mark('mark_axe_end');
19222
- this.measure('axe', 'mark_axe_start', 'mark_axe_end');
19227
+ this.measure('axe', 'mark_axe_start', 'mark_axe_end', true);
19223
19228
  this.logMeasures('axe');
19229
+ this.clearMark('mark_axe_start', 'mark_axe_end');
19230
+ axeStarted = false;
19224
19231
  },
19225
19232
  auditStart: function auditStart() {
19233
+ if (!axeStarted) {
19234
+ this.reset();
19235
+ }
19226
19236
  this.mark('mark_audit_start');
19227
19237
  },
19228
19238
  auditEnd: function auditEnd() {
19229
19239
  this.mark('mark_audit_end');
19230
- this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
19240
+ this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end', true);
19231
19241
  this.logMeasures();
19242
+ this.clearMark('mark_audit_start', 'mark_audit_end');
19232
19243
  },
19233
19244
  mark: function mark(markName) {
19234
- if (window.performance && window.performance.mark !== void 0) {
19245
+ var _window$performance;
19246
+ if ((_window$performance = window.performance) !== null && _window$performance !== void 0 && _window$performance.mark) {
19235
19247
  window.performance.mark(markName);
19236
19248
  }
19237
19249
  },
19238
19250
  measure: function measure(measureName, startMark, endMark) {
19239
- if (window.performance && window.performance.measure !== void 0) {
19240
- window.performance.measure(measureName, startMark, endMark);
19251
+ var _window$performance2;
19252
+ var keepMarks = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
19253
+ if (!((_window$performance2 = window.performance) !== null && _window$performance2 !== void 0 && _window$performance2.measure)) {
19254
+ return;
19255
+ }
19256
+ window.performance.measure(measureName, startMark, endMark);
19257
+ if (!keepMarks) {
19258
+ this.clearMark(startMark, endMark);
19241
19259
  }
19242
19260
  },
19243
19261
  logMeasures: function logMeasures(measureName) {
19244
- function logMeasure(req) {
19245
- log_default('Measure ' + req.name + ' took ' + req.duration + 'ms');
19262
+ var _this6 = this, _window$performance3, _window$performance4;
19263
+ var last2 = function last2(arr) {
19264
+ return Array.isArray(arr) ? arr[arr.length - 1] : arr;
19265
+ };
19266
+ var logMeasure = function logMeasure(req) {
19267
+ _this6._log('Measure ' + req.name + ' took ' + req.duration + 'ms');
19268
+ };
19269
+ if (!((_window$performance3 = window.performance) !== null && _window$performance3 !== void 0 && _window$performance3.getEntriesByType) || !((_window$performance4 = window.performance) !== null && _window$performance4 !== void 0 && _window$performance4.getEntriesByName)) {
19270
+ return;
19246
19271
  }
19247
- if (window.performance && window.performance.getEntriesByType !== void 0) {
19248
- var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
19249
- var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
19250
- return measure.startTime >= axeStart.startTime;
19251
- });
19252
- for (var _i26 = 0; _i26 < measures.length; ++_i26) {
19253
- var req = measures[_i26];
19254
- if (req.name === measureName) {
19255
- logMeasure(req);
19256
- return;
19257
- }
19272
+ var axeStart = last2(window.performance.getEntriesByName('mark_axe_start')) || last2(window.performance.getEntriesByName('mark_audit_start'));
19273
+ if (!axeStart) {
19274
+ this._log('Axe must be started before using performanceTimer');
19275
+ return;
19276
+ }
19277
+ var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
19278
+ return measure.startTime >= axeStart.startTime;
19279
+ });
19280
+ for (var _i26 = 0; _i26 < measures.length; ++_i26) {
19281
+ var req = measures[_i26];
19282
+ if (req.name === measureName) {
19283
+ logMeasure(req);
19284
+ return;
19285
+ } else if (!measureName) {
19258
19286
  logMeasure(req);
19259
19287
  }
19260
19288
  }
19261
19289
  },
19262
19290
  timeElapsed: function timeElapsed() {
19263
- return now() - lastRecordedTime;
19291
+ var currentTime = now();
19292
+ return currentTime - axeStartTime;
19264
19293
  },
19265
- reset: function reset() {
19266
- if (!originalTime) {
19267
- originalTime = now();
19294
+ clearMark: function clearMark() {
19295
+ var _window$performance5;
19296
+ if (!((_window$performance5 = window.performance) !== null && _window$performance5 !== void 0 && _window$performance5.clearMarks)) {
19297
+ return;
19298
+ }
19299
+ for (var _len7 = arguments.length, markNames = new Array(_len7), _key8 = 0; _key8 < _len7; _key8++) {
19300
+ markNames[_key8] = arguments[_key8];
19268
19301
  }
19269
- lastRecordedTime = now();
19302
+ for (var _i27 = 0, _markNames = markNames; _i27 < _markNames.length; _i27++) {
19303
+ var markName = _markNames[_i27];
19304
+ window.performance.clearMarks(markName);
19305
+ }
19306
+ },
19307
+ reset: function reset() {
19308
+ axeStartTime = now();
19309
+ },
19310
+ _log: function _log(message) {
19311
+ log_default(message);
19270
19312
  }
19271
19313
  };
19272
19314
  }();
@@ -19344,9 +19386,9 @@
19344
19386
  var childAny = null;
19345
19387
  var combinedLength = (((_currentLevel$anyLeve = currentLevel.anyLevel) === null || _currentLevel$anyLeve === void 0 ? void 0 : _currentLevel$anyLeve.length) || 0) + (((_currentLevel$thisLev = currentLevel.thisLevel) === null || _currentLevel$thisLev === void 0 ? void 0 : _currentLevel$thisLev.length) || 0);
19346
19388
  var added = false;
19347
- for (var _i27 = 0; _i27 < combinedLength; _i27++) {
19389
+ for (var _i28 = 0; _i28 < combinedLength; _i28++) {
19348
19390
  var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
19349
- var exp = _i27 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i27] : currentLevel.thisLevel[_i27 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
19391
+ var exp = _i28 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i28] : currentLevel.thisLevel[_i28 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
19350
19392
  if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
19351
19393
  if (exp.length === 1) {
19352
19394
  if (!added && (!filter || filter(vNode))) {
@@ -19779,8 +19821,8 @@
19779
19821
  }
19780
19822
  var outerIncludes = getOuterIncludes(context.include);
19781
19823
  var isInContext = getContextFilter(context);
19782
- for (var _i28 = 0; _i28 < outerIncludes.length; _i28++) {
19783
- candidate = outerIncludes[_i28];
19824
+ for (var _i29 = 0; _i29 < outerIncludes.length; _i29++) {
19825
+ candidate = outerIncludes[_i29];
19784
19826
  var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
19785
19827
  result = mergeArrayUniques(result, nodes);
19786
19828
  }
@@ -19817,9 +19859,9 @@
19817
19859
  arr1 = arr2;
19818
19860
  arr2 = temp;
19819
19861
  }
19820
- for (var _i29 = 0, l = arr2.length; _i29 < l; _i29++) {
19821
- if (!arr1.includes(arr2[_i29])) {
19822
- arr1.push(arr2[_i29]);
19862
+ for (var _i30 = 0, l = arr2.length; _i30 < l; _i30++) {
19863
+ if (!arr1.includes(arr2[_i30])) {
19864
+ arr1.push(arr2[_i30]);
19823
19865
  }
19824
19866
  }
19825
19867
  return arr1;
@@ -19894,8 +19936,8 @@
19894
19936
  while (lang.length < 3) {
19895
19937
  lang += '`';
19896
19938
  }
19897
- for (var _i30 = 0; _i30 <= lang.length - 1; _i30++) {
19898
- var index = lang.charCodeAt(_i30) - 96;
19939
+ for (var _i31 = 0; _i31 <= lang.length - 1; _i31++) {
19940
+ var index = lang.charCodeAt(_i31) - 96;
19899
19941
  array = array[index];
19900
19942
  if (!array) {
19901
19943
  return false;
@@ -19921,12 +19963,12 @@
19921
19963
  var valid_langs_default = isValidLang;
19922
19964
  var SerialVirtualNode = function(_abstract_virtual_nod2) {
19923
19965
  function SerialVirtualNode(serialNode) {
19924
- var _this6;
19966
+ var _this7;
19925
19967
  _classCallCheck(this, SerialVirtualNode);
19926
- _this6 = _callSuper(this, SerialVirtualNode);
19927
- _this6._props = normaliseProps(serialNode);
19928
- _this6._attrs = normaliseAttrs(serialNode);
19929
- return _this6;
19968
+ _this7 = _callSuper(this, SerialVirtualNode);
19969
+ _this7._props = normaliseProps(serialNode);
19970
+ _this7._attrs = normaliseAttrs(serialNode);
19971
+ return _this7;
19930
19972
  }
19931
19973
  _inherits(SerialVirtualNode, _abstract_virtual_nod2);
19932
19974
  return _createClass(SerialVirtualNode, [ {
@@ -20587,8 +20629,8 @@
20587
20629
  idRefs.get(_id3).push(node);
20588
20630
  }
20589
20631
  }
20590
- for (var _i31 = 0; _i31 < refAttrs.length; ++_i31) {
20591
- var attr = refAttrs[_i31];
20632
+ for (var _i32 = 0; _i32 < refAttrs.length; ++_i32) {
20633
+ var attr = refAttrs[_i32];
20592
20634
  var attrValue = sanitize_default(node.getAttribute(attr) || '');
20593
20635
  if (!attrValue) {
20594
20636
  continue;
@@ -20610,9 +20652,9 @@
20610
20652
  }
20611
20653
  }
20612
20654
  }
20613
- for (var _i32 = 0; _i32 < node.childNodes.length; _i32++) {
20614
- if (node.childNodes[_i32].nodeType === 1) {
20615
- cacheIdRefs(node.childNodes[_i32], idRefs, refAttrs);
20655
+ for (var _i33 = 0; _i33 < node.childNodes.length; _i33++) {
20656
+ if (node.childNodes[_i33].nodeType === 1) {
20657
+ cacheIdRefs(node.childNodes[_i33], idRefs, refAttrs);
20616
20658
  }
20617
20659
  }
20618
20660
  }
@@ -23233,16 +23275,16 @@
23233
23275
  var outerText = elm.textContent.trim();
23234
23276
  var innerText = outerText;
23235
23277
  while (innerText === outerText && nextNode !== void 0) {
23236
- var _i33 = -1;
23278
+ var _i34 = -1;
23237
23279
  elm = nextNode;
23238
23280
  if (elm.children.length === 0) {
23239
23281
  return elm;
23240
23282
  }
23241
23283
  do {
23242
- _i33++;
23243
- innerText = elm.children[_i33].textContent.trim();
23244
- } while (innerText === '' && _i33 + 1 < elm.children.length);
23245
- nextNode = elm.children[_i33];
23284
+ _i34++;
23285
+ innerText = elm.children[_i34].textContent.trim();
23286
+ } while (innerText === '' && _i34 + 1 < elm.children.length);
23287
+ nextNode = elm.children[_i34];
23246
23288
  }
23247
23289
  return elm;
23248
23290
  }
@@ -23650,8 +23692,8 @@
23650
23692
  if (a2.length !== b2.length) {
23651
23693
  return false;
23652
23694
  }
23653
- for (var _i34 = 0; _i34 < a2.length; ++_i34) {
23654
- if (a2[_i34] !== b2[_i34]) {
23695
+ for (var _i35 = 0; _i35 < a2.length; ++_i35) {
23696
+ if (a2[_i35] !== b2[_i35]) {
23655
23697
  return false;
23656
23698
  }
23657
23699
  }
@@ -23985,8 +24027,8 @@
23985
24027
  color: bgColors.reduce(_flattenShadowColors)
23986
24028
  } ];
23987
24029
  }
23988
- for (var _i35 = 0; _i35 < elmStack.length; _i35++) {
23989
- var bgElm = elmStack[_i35];
24030
+ for (var _i36 = 0; _i36 < elmStack.length; _i36++) {
24031
+ var bgElm = elmStack[_i36];
23990
24032
  var bgElmStyle = window.getComputedStyle(bgElm);
23991
24033
  if (element_has_image_default(bgElm, bgElmStyle)) {
23992
24034
  bgElms.push(bgElm);
@@ -24085,8 +24127,8 @@
24085
24127
  });
24086
24128
  } ];
24087
24129
  var fgColors = [];
24088
- for (var _i36 = 0, _colorStack = colorStack; _i36 < _colorStack.length; _i36++) {
24089
- var colorFn = _colorStack[_i36];
24130
+ for (var _i37 = 0, _colorStack = colorStack; _i37 < _colorStack.length; _i37++) {
24131
+ var colorFn = _colorStack[_i37];
24090
24132
  var _color4 = colorFn();
24091
24133
  if (!_color4) {
24092
24134
  continue;
@@ -24722,7 +24764,7 @@
24722
24764
  var relatedElements = [];
24723
24765
  var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
24724
24766
  var _loop9 = function _loop9() {
24725
- var key = _Object$keys3[_i37];
24767
+ var key = _Object$keys3[_i38];
24726
24768
  var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
24727
24769
  var orientationRules = rules.filter(isMediaRuleWithOrientation);
24728
24770
  if (!orientationRules.length) {
@@ -24740,7 +24782,7 @@
24740
24782
  });
24741
24783
  });
24742
24784
  };
24743
- for (var _i37 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i37 < _Object$keys3.length; _i37++) {
24785
+ for (var _i38 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i38 < _Object$keys3.length; _i38++) {
24744
24786
  if (_loop9()) {
24745
24787
  continue;
24746
24788
  }
@@ -24974,8 +25016,8 @@
24974
25016
  return false;
24975
25017
  }
24976
25018
  var hasDt = false, hasDd = false, nodeName2;
24977
- for (var _i38 = 0; _i38 < children.length; _i38++) {
24978
- nodeName2 = children[_i38].props.nodeName.toUpperCase();
25019
+ for (var _i39 = 0; _i39 < children.length; _i39++) {
25020
+ nodeName2 = children[_i39].props.nodeName.toUpperCase();
24979
25021
  if (nodeName2 === 'DT') {
24980
25022
  hasDt = true;
24981
25023
  }
@@ -25394,7 +25436,7 @@
25394
25436
  }
25395
25437
  var help_same_as_label_evaluate_default = helpSameAsLabelEvaluate;
25396
25438
  function explicitEvaluate(node, options, virtualNode) {
25397
- var _this7 = this;
25439
+ var _this8 = this;
25398
25440
  if (!virtualNode.attr('id')) {
25399
25441
  return false;
25400
25442
  }
@@ -25417,7 +25459,7 @@
25417
25459
  inControlContext: true,
25418
25460
  startNode: virtualNode
25419
25461
  }));
25420
- _this7.data({
25462
+ _this8.data({
25421
25463
  explicitLabel: explicitLabel
25422
25464
  });
25423
25465
  return !!explicitLabel;
@@ -25868,8 +25910,8 @@
25868
25910
  return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
25869
25911
  }
25870
25912
  function hasPseudoContent(node) {
25871
- for (var _i39 = 0, _arr3 = [ 'before', 'after' ]; _i39 < _arr3.length; _i39++) {
25872
- var pseudo = _arr3[_i39];
25913
+ for (var _i40 = 0, _arr3 = [ 'before', 'after' ]; _i40 < _arr3.length; _i40++) {
25914
+ var pseudo = _arr3[_i40];
25873
25915
  var style = window.getComputedStyle(node, ':'.concat(pseudo));
25874
25916
  var content = style.getPropertyValue('content');
25875
25917
  if (content !== 'none') {
@@ -26461,8 +26503,8 @@
26461
26503
  }
26462
26504
  var owners = getAriaOwners(node);
26463
26505
  if (owners) {
26464
- for (var _i40 = 0, l = owners.length; _i40 < l; _i40++) {
26465
- missingParents = getMissingContext(get_node_from_tree_default(owners[_i40]), ownGroupRoles, missingParents, true);
26506
+ for (var _i41 = 0, l = owners.length; _i41 < l; _i41++) {
26507
+ missingParents = getMissingContext(get_node_from_tree_default(owners[_i41]), ownGroupRoles, missingParents, true);
26466
26508
  if (!missingParents) {
26467
26509
  return true;
26468
26510
  }
@@ -27429,8 +27471,8 @@
27429
27471
  var aria = /^aria-/;
27430
27472
  var attrs = virtualNode.attrNames;
27431
27473
  if (attrs.length) {
27432
- for (var _i41 = 0, l = attrs.length; _i41 < l; _i41++) {
27433
- if (aria.test(attrs[_i41])) {
27474
+ for (var _i42 = 0, l = attrs.length; _i42 < l; _i42++) {
27475
+ if (aria.test(attrs[_i42])) {
27434
27476
  return true;
27435
27477
  }
27436
27478
  }
@@ -27689,7 +27731,7 @@
27689
27731
  return checkResult;
27690
27732
  };
27691
27733
  Check.prototype.configure = function configure2(spec) {
27692
- var _this8 = this;
27734
+ var _this9 = this;
27693
27735
  if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {
27694
27736
  this._internalCheck = true;
27695
27737
  }
@@ -27706,7 +27748,7 @@
27706
27748
  [ 'evaluate', 'after' ].filter(function(prop) {
27707
27749
  return spec.hasOwnProperty(prop);
27708
27750
  }).forEach(function(prop) {
27709
- return _this8[prop] = createExecutionContext(spec[prop]);
27751
+ return _this9[prop] = createExecutionContext(spec[prop]);
27710
27752
  });
27711
27753
  };
27712
27754
  Check.prototype.getOptions = function getOptions(options) {
@@ -27815,7 +27857,7 @@
27815
27857
  };
27816
27858
  };
27817
27859
  Rule.prototype.run = function run2(context) {
27818
- var _this9 = this;
27860
+ var _this0 = this;
27819
27861
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
27820
27862
  var resolve = arguments.length > 2 ? arguments[2] : undefined;
27821
27863
  var reject = arguments.length > 3 ? arguments[3] : undefined;
@@ -27842,7 +27884,7 @@
27842
27884
  var checkQueue = queue_default();
27843
27885
  [ 'any', 'all', 'none' ].forEach(function(type2) {
27844
27886
  checkQueue.defer(function(res, rej) {
27845
- _this9.runChecks(type2, node, options, context, res, rej);
27887
+ _this0.runChecks(type2, node, options, context, res, rej);
27846
27888
  });
27847
27889
  });
27848
27890
  checkQueue.then(function(results) {
@@ -27850,7 +27892,7 @@
27850
27892
  if (result) {
27851
27893
  result.node = new dq_element_default(node);
27852
27894
  ruleResult.nodes.push(result);
27853
- if (_this9.reviewOnFail) {
27895
+ if (_this0.reviewOnFail) {
27854
27896
  [ 'any', 'all' ].forEach(function(type2) {
27855
27897
  result[type2].forEach(function(checkResult) {
27856
27898
  if (checkResult.result === false) {
@@ -27873,20 +27915,20 @@
27873
27915
  });
27874
27916
  q.then(function() {
27875
27917
  if (options.performanceTimer) {
27876
- _this9._logRulePerformance();
27918
+ _this0._logRulePerformance();
27877
27919
  }
27878
27920
  setTimeout(function() {
27879
27921
  resolve(ruleResult);
27880
27922
  }, 0);
27881
27923
  })['catch'](function(error) {
27882
27924
  if (options.performanceTimer) {
27883
- _this9._logRulePerformance();
27925
+ _this0._logRulePerformance();
27884
27926
  }
27885
27927
  reject(error);
27886
27928
  });
27887
27929
  };
27888
27930
  Rule.prototype.runSync = function runSync2(context) {
27889
- var _this0 = this;
27931
+ var _this1 = this;
27890
27932
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
27891
27933
  if (options.performanceTimer) {
27892
27934
  this._trackPerformance();
@@ -27907,13 +27949,13 @@
27907
27949
  nodes.forEach(function(node) {
27908
27950
  var results = [];
27909
27951
  [ 'any', 'all', 'none' ].forEach(function(type2) {
27910
- results.push(_this0.runChecksSync(type2, node, options, context));
27952
+ results.push(_this1.runChecksSync(type2, node, options, context));
27911
27953
  });
27912
27954
  var result = getResult(results);
27913
27955
  if (result) {
27914
27956
  result.node = node.actualNode ? new dq_element_default(node) : null;
27915
27957
  ruleResult.nodes.push(result);
27916
- if (_this0.reviewOnFail) {
27958
+ if (_this1.reviewOnFail) {
27917
27959
  [ 'any', 'all' ].forEach(function(type2) {
27918
27960
  result[type2].forEach(function(checkResult) {
27919
27961
  if (checkResult.result === false) {
@@ -27941,7 +27983,7 @@
27941
27983
  this._markChecksEnd = 'mark_runchecks_end_' + this.id;
27942
27984
  };
27943
27985
  Rule.prototype._logGatherPerformance = function _logGatherPerformance(nodes) {
27944
- log_default('gather (', nodes.length, '):', performance_timer_default.timeElapsed() + 'ms');
27986
+ log_default('gather for '.concat(this.id, ' (').concat(nodes.length, ' nodes): ').concat(performance_timer_default.timeElapsed(), 'ms'));
27945
27987
  performance_timer_default.mark(this._markChecksStart);
27946
27988
  };
27947
27989
  Rule.prototype._logRulePerformance = function _logRulePerformance() {
@@ -27970,7 +28012,7 @@
27970
28012
  }
27971
28013
  }
27972
28014
  Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {
27973
- var _this1 = this;
28015
+ var _this10 = this;
27974
28016
  var markMatchesStart = 'mark_matches_start_' + this.id;
27975
28017
  var markMatchesEnd = 'mark_matches_end_' + this.id;
27976
28018
  var nodes = this.gather(context, options);
@@ -27978,7 +28020,7 @@
27978
28020
  performance_timer_default.mark(markMatchesStart);
27979
28021
  }
27980
28022
  nodes = nodes.filter(function(node) {
27981
- return _this1.matches(node.actualNode, node, context);
28023
+ return _this10.matches(node.actualNode, node, context);
27982
28024
  });
27983
28025
  if (options.performanceTimer) {
27984
28026
  performance_timer_default.mark(markMatchesEnd);
@@ -28033,17 +28075,17 @@
28033
28075
  return nodes;
28034
28076
  }
28035
28077
  Rule.prototype.after = function after(result, options) {
28036
- var _this10 = this;
28078
+ var _this11 = this;
28037
28079
  var afterChecks = findAfterChecks(this);
28038
28080
  var ruleID = this.id;
28039
28081
  afterChecks.forEach(function(check) {
28040
28082
  var beforeResults = findCheckResults(result.nodes, check.id);
28041
28083
  var checkOption = get_check_option_default(check, ruleID, options);
28042
28084
  var afterResults = check.after(beforeResults, checkOption.options);
28043
- if (_this10.reviewOnFail) {
28085
+ if (_this11.reviewOnFail) {
28044
28086
  afterResults.forEach(function(checkResult) {
28045
- var changeAnyAllResults = (_this10.any.includes(checkResult.id) || _this10.all.includes(checkResult.id)) && checkResult.result === false;
28046
- var changeNoneResult = _this10.none.includes(checkResult.id) && checkResult.result === true;
28087
+ var changeAnyAllResults = (_this11.any.includes(checkResult.id) || _this11.all.includes(checkResult.id)) && checkResult.result === false;
28088
+ var changeNoneResult = _this11.none.includes(checkResult.id) && checkResult.result === true;
28047
28089
  if (changeAnyAllResults || changeNoneResult) {
28048
28090
  checkResult.result = void 0;
28049
28091
  }
@@ -28123,8 +28165,8 @@
28123
28165
  lang: this.lang
28124
28166
  };
28125
28167
  var checkIDs = Object.keys(this.data.checks);
28126
- for (var _i42 = 0; _i42 < checkIDs.length; _i42++) {
28127
- var _id6 = checkIDs[_i42];
28168
+ for (var _i43 = 0; _i43 < checkIDs.length; _i43++) {
28169
+ var _id6 = checkIDs[_i43];
28128
28170
  var check = this.data.checks[_id6];
28129
28171
  var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
28130
28172
  locale.checks[_id6] = {
@@ -28134,8 +28176,8 @@
28134
28176
  };
28135
28177
  }
28136
28178
  var ruleIDs = Object.keys(this.data.rules);
28137
- for (var _i43 = 0; _i43 < ruleIDs.length; _i43++) {
28138
- var _id7 = ruleIDs[_i43];
28179
+ for (var _i44 = 0; _i44 < ruleIDs.length; _i44++) {
28180
+ var _id7 = ruleIDs[_i44];
28139
28181
  var rule = this.data.rules[_id7];
28140
28182
  var description = rule.description, help = rule.help;
28141
28183
  locale.rules[_id7] = {
@@ -28144,8 +28186,8 @@
28144
28186
  };
28145
28187
  }
28146
28188
  var failureSummaries = Object.keys(this.data.failureSummaries);
28147
- for (var _i44 = 0; _i44 < failureSummaries.length; _i44++) {
28148
- var type2 = failureSummaries[_i44];
28189
+ for (var _i45 = 0; _i45 < failureSummaries.length; _i45++) {
28190
+ var type2 = failureSummaries[_i45];
28149
28191
  var failureSummary2 = this.data.failureSummaries[type2];
28150
28192
  var failureMessage = failureSummary2.failureMessage;
28151
28193
  locale.failureSummaries[type2] = {
@@ -28168,8 +28210,8 @@
28168
28210
  key: '_applyCheckLocale',
28169
28211
  value: function _applyCheckLocale(checks) {
28170
28212
  var keys = Object.keys(checks);
28171
- for (var _i45 = 0; _i45 < keys.length; _i45++) {
28172
- var _id8 = keys[_i45];
28213
+ for (var _i46 = 0; _i46 < keys.length; _i46++) {
28214
+ var _id8 = keys[_i46];
28173
28215
  if (!this.data.checks[_id8]) {
28174
28216
  throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));
28175
28217
  }
@@ -28180,8 +28222,8 @@
28180
28222
  key: '_applyRuleLocale',
28181
28223
  value: function _applyRuleLocale(rules) {
28182
28224
  var keys = Object.keys(rules);
28183
- for (var _i46 = 0; _i46 < keys.length; _i46++) {
28184
- var _id9 = keys[_i46];
28225
+ for (var _i47 = 0; _i47 < keys.length; _i47++) {
28226
+ var _id9 = keys[_i47];
28185
28227
  if (!this.data.rules[_id9]) {
28186
28228
  throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));
28187
28229
  }
@@ -28192,12 +28234,12 @@
28192
28234
  key: '_applyFailureSummaries',
28193
28235
  value: function _applyFailureSummaries(messages) {
28194
28236
  var keys = Object.keys(messages);
28195
- for (var _i47 = 0; _i47 < keys.length; _i47++) {
28196
- var _key8 = keys[_i47];
28197
- if (!this.data.failureSummaries[_key8]) {
28198
- throw new Error('Locale provided for unknown failureMessage: "'.concat(_key8, '"'));
28237
+ for (var _i48 = 0; _i48 < keys.length; _i48++) {
28238
+ var _key9 = keys[_i48];
28239
+ if (!this.data.failureSummaries[_key9]) {
28240
+ throw new Error('Locale provided for unknown failureMessage: "'.concat(_key9, '"'));
28199
28241
  }
28200
- this.data.failureSummaries[_key8] = mergeFailureMessage(this.data.failureSummaries[_key8], messages[_key8]);
28242
+ this.data.failureSummaries[_key9] = mergeFailureMessage(this.data.failureSummaries[_key9], messages[_key9]);
28201
28243
  }
28202
28244
  }
28203
28245
  }, {
@@ -28479,16 +28521,16 @@
28479
28521
  }, {
28480
28522
  key: '_constructHelpUrls',
28481
28523
  value: function _constructHelpUrls() {
28482
- var _this11 = this;
28524
+ var _this12 = this;
28483
28525
  var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
28484
28526
  var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
28485
28527
  this.rules.forEach(function(rule) {
28486
- if (!_this11.data.rules[rule.id]) {
28487
- _this11.data.rules[rule.id] = {};
28528
+ if (!_this12.data.rules[rule.id]) {
28529
+ _this12.data.rules[rule.id] = {};
28488
28530
  }
28489
- var metaData = _this11.data.rules[rule.id];
28531
+ var metaData = _this12.data.rules[rule.id];
28490
28532
  if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
28491
- metaData.helpUrl = getHelpUrl(_this11, rule.id, version);
28533
+ metaData.helpUrl = getHelpUrl(_this12, rule.id, version);
28492
28534
  }
28493
28535
  });
28494
28536
  }
@@ -28878,8 +28920,8 @@
28878
28920
  }
28879
28921
  var noop2 = function noop2() {};
28880
28922
  function run4() {
28881
- for (var _len7 = arguments.length, args = new Array(_len7), _key9 = 0; _key9 < _len7; _key9++) {
28882
- args[_key9] = arguments[_key9];
28923
+ for (var _len8 = arguments.length, args = new Array(_len8), _key0 = 0; _key0 < _len8; _key0++) {
28924
+ args[_key0] = arguments[_key0];
28883
28925
  }
28884
28926
  setupGlobals(args[0]);
28885
28927
  var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
@@ -28975,8 +29017,8 @@
28975
29017
  throw err2;
28976
29018
  }
28977
29019
  function runPartial() {
28978
- for (var _len8 = arguments.length, args = new Array(_len8), _key0 = 0; _key0 < _len8; _key0++) {
28979
- args[_key0] = arguments[_key0];
29020
+ for (var _len9 = arguments.length, args = new Array(_len9), _key1 = 0; _key1 < _len9; _key1++) {
29021
+ args[_key1] = arguments[_key1];
28980
29022
  }
28981
29023
  var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
28982
29024
  assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
@@ -29114,8 +29156,8 @@
29114
29156
  var transformedResults = results.map(function(result) {
29115
29157
  var transformedResult = _extends({}, result);
29116
29158
  var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
29117
- for (var _i48 = 0, _types = types; _i48 < _types.length; _i48++) {
29118
- var type2 = _types[_i48];
29159
+ for (var _i49 = 0, _types = types; _i49 < _types.length; _i49++) {
29160
+ var type2 = _types[_i49];
29119
29161
  transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]);
29120
29162
  }
29121
29163
  return transformedResult;