govuk_publishing_components 41.1.0 → 41.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/component_guide/application.scss +6 -0
  3. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +13 -1
  4. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +12 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +8 -0
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +22 -0
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +12 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +14 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +24 -0
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +32 -0
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_tabs.scss +32 -0
  12. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_attachment.scss +25 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +17 -0
  14. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +11 -0
  15. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_media-player.scss +6 -0
  16. data/app/views/govuk_publishing_components/components/_attachment.html.erb +2 -0
  17. data/app/views/govuk_publishing_components/components/_cards.html.erb +6 -1
  18. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +4 -4
  19. data/app/views/govuk_publishing_components/components/_layout_super_navigation_header.html.erb +1 -1
  20. data/app/views/govuk_publishing_components/components/_table.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/attachment/_thumbnail_external.html.erb +3 -0
  22. data/app/views/govuk_publishing_components/components/docs/cards.yml +14 -34
  23. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +1 -1
  24. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +1 -1
  25. data/lib/govuk_publishing_components/presenters/attachment_helper.rb +4 -0
  26. data/lib/govuk_publishing_components/version.rb +1 -1
  27. data/node_modules/axe-core/axe.d.ts +18 -5
  28. data/node_modules/axe-core/axe.js +757 -716
  29. data/node_modules/axe-core/axe.min.js +2 -2
  30. data/node_modules/axe-core/locales/_template.json +101 -96
  31. data/node_modules/axe-core/locales/de.json +12 -5
  32. data/node_modules/axe-core/locales/ja.json +15 -7
  33. data/node_modules/axe-core/package.json +14 -10
  34. data/node_modules/axe-core/sri-history.json +4 -0
  35. metadata +3 -2
@@ -1,4 +1,4 @@
1
- /*! axe v4.9.1
1
+ /*! axe v4.10.0
2
2
  * Copyright (c) 2015 - 2024 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.9.1';
25
+ axe.version = '4.10.0';
26
26
  if (typeof define === 'function' && define.amd) {
27
27
  define('axe-core', [], function() {
28
28
  return axe;
@@ -50,22 +50,16 @@
50
50
  SupportError.prototype.constructor = SupportError;
51
51
  'use strict';
52
52
  var _excluded = [ 'node' ], _excluded2 = [ 'relatedNodes' ], _excluded3 = [ 'node' ], _excluded4 = [ 'variant' ], _excluded5 = [ 'matches' ], _excluded6 = [ 'chromium' ], _excluded7 = [ 'noImplicit' ], _excluded8 = [ 'noPresentational' ], _excluded9 = [ 'precision', 'format', 'inGamut' ], _excluded10 = [ 'space' ], _excluded11 = [ 'algorithm' ], _excluded12 = [ 'method' ], _excluded13 = [ 'maxDeltaE', 'deltaEMethod', 'steps', 'maxSteps' ], _excluded14 = [ 'node' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ], _excluded17 = [ 'environmentData' ], _excluded18 = [ 'environmentData' ], _excluded19 = [ 'environmentData' ];
53
- function _toArray(arr) {
54
- return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
53
+ function _toArray(r) {
54
+ return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
55
55
  }
56
- function _defineProperty(obj, key, value) {
57
- key = _toPropertyKey(key);
58
- if (key in obj) {
59
- Object.defineProperty(obj, key, {
60
- value: value,
61
- enumerable: true,
62
- configurable: true,
63
- writable: true
64
- });
65
- } else {
66
- obj[key] = value;
67
- }
68
- return obj;
56
+ function _defineProperty(e, r, t) {
57
+ return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
58
+ value: t,
59
+ enumerable: !0,
60
+ configurable: !0,
61
+ writable: !0
62
+ }) : e[r] = t, e;
69
63
  }
70
64
  function _construct(t, e, r) {
71
65
  if (_isNativeReflectConstruct()) {
@@ -79,19 +73,20 @@
79
73
  function _callSuper(t, o, e) {
80
74
  return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
81
75
  }
82
- function _possibleConstructorReturn(self, call) {
83
- if (call && (_typeof(call) === 'object' || typeof call === 'function')) {
84
- return call;
85
- } else if (call !== void 0) {
76
+ function _possibleConstructorReturn(t, e) {
77
+ if (e && ('object' == _typeof(e) || 'function' == typeof e)) {
78
+ return e;
79
+ }
80
+ if (void 0 !== e) {
86
81
  throw new TypeError('Derived constructors may only return object or undefined');
87
82
  }
88
- return _assertThisInitialized(self);
83
+ return _assertThisInitialized(t);
89
84
  }
90
- function _assertThisInitialized(self) {
91
- if (self === void 0) {
85
+ function _assertThisInitialized(e) {
86
+ if (void 0 === e) {
92
87
  throw new ReferenceError('this hasn\'t been initialised - super() hasn\'t been called');
93
88
  }
94
- return self;
89
+ return e;
95
90
  }
96
91
  function _isNativeReflectConstruct() {
97
92
  try {
@@ -101,47 +96,38 @@
101
96
  return !!t;
102
97
  })();
103
98
  }
104
- function _getPrototypeOf(o) {
105
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
106
- return o.__proto__ || Object.getPrototypeOf(o);
107
- };
108
- return _getPrototypeOf(o);
99
+ function _getPrototypeOf(t) {
100
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t) {
101
+ return t.__proto__ || Object.getPrototypeOf(t);
102
+ }, _getPrototypeOf(t);
109
103
  }
110
- function _inherits(subClass, superClass) {
111
- if (typeof superClass !== 'function' && superClass !== null) {
104
+ function _inherits(t, e) {
105
+ if ('function' != typeof e && null !== e) {
112
106
  throw new TypeError('Super expression must either be null or a function');
113
107
  }
114
- subClass.prototype = Object.create(superClass && superClass.prototype, {
108
+ t.prototype = Object.create(e && e.prototype, {
115
109
  constructor: {
116
- value: subClass,
117
- writable: true,
118
- configurable: true
110
+ value: t,
111
+ writable: !0,
112
+ configurable: !0
119
113
  }
120
- });
121
- Object.defineProperty(subClass, 'prototype', {
122
- writable: false
123
- });
124
- if (superClass) {
125
- _setPrototypeOf(subClass, superClass);
126
- }
114
+ }), Object.defineProperty(t, 'prototype', {
115
+ writable: !1
116
+ }), e && _setPrototypeOf(t, e);
127
117
  }
128
- function _setPrototypeOf(o, p) {
129
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
130
- o.__proto__ = p;
131
- return o;
132
- };
133
- return _setPrototypeOf(o, p);
118
+ function _setPrototypeOf(t, e) {
119
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t, e) {
120
+ return t.__proto__ = e, t;
121
+ }, _setPrototypeOf(t, e);
134
122
  }
135
- function _classPrivateFieldInitSpec(obj, privateMap, value) {
136
- _checkPrivateRedeclaration(obj, privateMap);
137
- privateMap.set(obj, value);
123
+ function _classPrivateFieldInitSpec(e, t, a) {
124
+ _checkPrivateRedeclaration(e, t), t.set(e, a);
138
125
  }
139
- function _classPrivateMethodInitSpec(obj, privateSet) {
140
- _checkPrivateRedeclaration(obj, privateSet);
141
- privateSet.add(obj);
126
+ function _classPrivateMethodInitSpec(e, a) {
127
+ _checkPrivateRedeclaration(e, a), a.add(e);
142
128
  }
143
- function _checkPrivateRedeclaration(obj, privateCollection) {
144
- if (privateCollection.has(obj)) {
129
+ function _checkPrivateRedeclaration(e, t) {
130
+ if (t.has(e)) {
145
131
  throw new TypeError('Cannot initialize the same private elements twice on an object');
146
132
  }
147
133
  }
@@ -157,75 +143,63 @@
157
143
  }
158
144
  throw new TypeError('Private element is not present on this object');
159
145
  }
160
- function _objectWithoutProperties(source, excluded) {
161
- if (source == null) {
146
+ function _objectWithoutProperties(e, t) {
147
+ if (null == e) {
162
148
  return {};
163
149
  }
164
- var target = _objectWithoutPropertiesLoose(source, excluded);
165
- var key, i;
150
+ var o, r, i = _objectWithoutPropertiesLoose(e, t);
166
151
  if (Object.getOwnPropertySymbols) {
167
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
168
- for (i = 0; i < sourceSymbolKeys.length; i++) {
169
- key = sourceSymbolKeys[i];
170
- if (excluded.indexOf(key) >= 0) {
171
- continue;
172
- }
173
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) {
174
- continue;
175
- }
176
- target[key] = source[key];
152
+ var n = Object.getOwnPropertySymbols(e);
153
+ for (r = 0; r < n.length; r++) {
154
+ o = n[r], t.indexOf(o) >= 0 || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
177
155
  }
178
156
  }
179
- return target;
157
+ return i;
180
158
  }
181
- function _objectWithoutPropertiesLoose(source, excluded) {
182
- if (source == null) {
159
+ function _objectWithoutPropertiesLoose(r, e) {
160
+ if (null == r) {
183
161
  return {};
184
162
  }
185
- var target = {};
186
- var sourceKeys = Object.keys(source);
187
- var key, i;
188
- for (i = 0; i < sourceKeys.length; i++) {
189
- key = sourceKeys[i];
190
- if (excluded.indexOf(key) >= 0) {
191
- continue;
163
+ var t = {};
164
+ for (var n in r) {
165
+ if ({}.hasOwnProperty.call(r, n)) {
166
+ if (e.indexOf(n) >= 0) {
167
+ continue;
168
+ }
169
+ t[n] = r[n];
192
170
  }
193
- target[key] = source[key];
194
171
  }
195
- return target;
172
+ return t;
196
173
  }
197
- function _toConsumableArray(arr) {
198
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
174
+ function _toConsumableArray(r) {
175
+ return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
199
176
  }
200
177
  function _nonIterableSpread() {
201
178
  throw new TypeError('Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
202
179
  }
203
- function _iterableToArray(iter) {
204
- if (typeof Symbol !== 'undefined' && iter[Symbol.iterator] != null || iter['@@iterator'] != null) {
205
- return Array.from(iter);
180
+ function _iterableToArray(r) {
181
+ if ('undefined' != typeof Symbol && null != r[Symbol.iterator] || null != r['@@iterator']) {
182
+ return Array.from(r);
206
183
  }
207
184
  }
208
- function _arrayWithoutHoles(arr) {
209
- if (Array.isArray(arr)) {
210
- return _arrayLikeToArray(arr);
185
+ function _arrayWithoutHoles(r) {
186
+ if (Array.isArray(r)) {
187
+ return _arrayLikeToArray(r);
211
188
  }
212
189
  }
213
190
  function _extends() {
214
- _extends = Object.assign ? Object.assign.bind() : function(target) {
215
- for (var i = 1; i < arguments.length; i++) {
216
- var source = arguments[i];
217
- for (var key in source) {
218
- if (Object.prototype.hasOwnProperty.call(source, key)) {
219
- target[key] = source[key];
220
- }
191
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
192
+ for (var e = 1; e < arguments.length; e++) {
193
+ var t = arguments[e];
194
+ for (var r in t) {
195
+ ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
221
196
  }
222
197
  }
223
- return target;
224
- };
225
- return _extends.apply(this, arguments);
198
+ return n;
199
+ }, _extends.apply(null, arguments);
226
200
  }
227
- function _slicedToArray(arr, i) {
228
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
201
+ function _slicedToArray(r, e) {
202
+ return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
229
203
  }
230
204
  function _nonIterableRest() {
231
205
  throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
@@ -259,38 +233,28 @@
259
233
  return a;
260
234
  }
261
235
  }
262
- function _arrayWithHoles(arr) {
263
- if (Array.isArray(arr)) {
264
- return arr;
236
+ function _arrayWithHoles(r) {
237
+ if (Array.isArray(r)) {
238
+ return r;
265
239
  }
266
240
  }
267
- function _classCallCheck(instance, Constructor) {
268
- if (!(instance instanceof Constructor)) {
241
+ function _classCallCheck(a, n) {
242
+ if (!(a instanceof n)) {
269
243
  throw new TypeError('Cannot call a class as a function');
270
244
  }
271
245
  }
272
- function _defineProperties(target, props) {
273
- for (var i = 0; i < props.length; i++) {
274
- var descriptor = props[i];
275
- descriptor.enumerable = descriptor.enumerable || false;
276
- descriptor.configurable = true;
277
- if ('value' in descriptor) {
278
- descriptor.writable = true;
279
- }
280
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
246
+ function _defineProperties(e, r) {
247
+ for (var t = 0; t < r.length; t++) {
248
+ var o = r[t];
249
+ o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0),
250
+ Object.defineProperty(e, _toPropertyKey(o.key), o);
281
251
  }
282
252
  }
283
- function _createClass(Constructor, protoProps, staticProps) {
284
- if (protoProps) {
285
- _defineProperties(Constructor.prototype, protoProps);
286
- }
287
- if (staticProps) {
288
- _defineProperties(Constructor, staticProps);
289
- }
290
- Object.defineProperty(Constructor, 'prototype', {
291
- writable: false
292
- });
293
- return Constructor;
253
+ function _createClass(e, r, t) {
254
+ return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t),
255
+ Object.defineProperty(e, 'prototype', {
256
+ writable: !1
257
+ }), e;
294
258
  }
295
259
  function _toPropertyKey(t) {
296
260
  var i = _toPrimitive(t, 'string');
@@ -310,89 +274,68 @@
310
274
  }
311
275
  return ('string' === r ? String : Number)(t);
312
276
  }
313
- function _createForOfIteratorHelper(o, allowArrayLike) {
314
- var it = typeof Symbol !== 'undefined' && o[Symbol.iterator] || o['@@iterator'];
315
- if (!it) {
316
- if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === 'number') {
317
- if (it) {
318
- o = it;
319
- }
320
- var i = 0;
321
- var F = function F() {};
277
+ function _createForOfIteratorHelper(r, e) {
278
+ var t = 'undefined' != typeof Symbol && r[Symbol.iterator] || r['@@iterator'];
279
+ if (!t) {
280
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && 'number' == typeof r.length) {
281
+ t && (r = t);
282
+ var _n = 0, F = function F() {};
322
283
  return {
323
284
  s: F,
324
285
  n: function n() {
325
- if (i >= o.length) {
326
- return {
327
- done: true
328
- };
329
- }
330
- return {
331
- done: false,
332
- value: o[i++]
286
+ return _n >= r.length ? {
287
+ done: !0
288
+ } : {
289
+ done: !1,
290
+ value: r[_n++]
333
291
  };
334
292
  },
335
- e: function e(_e) {
336
- throw _e;
293
+ e: function e(r) {
294
+ throw r;
337
295
  },
338
296
  f: F
339
297
  };
340
298
  }
341
299
  throw new TypeError('Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
342
300
  }
343
- var normalCompletion = true, didErr = false, err;
301
+ var o, a = !0, u = !1;
344
302
  return {
345
303
  s: function s() {
346
- it = it.call(o);
304
+ t = t.call(r);
347
305
  },
348
306
  n: function n() {
349
- var step = it.next();
350
- normalCompletion = step.done;
351
- return step;
307
+ var r = t.next();
308
+ return a = r.done, r;
352
309
  },
353
- e: function e(_e2) {
354
- didErr = true;
355
- err = _e2;
310
+ e: function e(r) {
311
+ u = !0, o = r;
356
312
  },
357
313
  f: function f() {
358
314
  try {
359
- if (!normalCompletion && it['return'] != null) {
360
- it['return']();
361
- }
315
+ a || null == t['return'] || t['return']();
362
316
  } finally {
363
- if (didErr) {
364
- throw err;
317
+ if (u) {
318
+ throw o;
365
319
  }
366
320
  }
367
321
  }
368
322
  };
369
323
  }
370
- function _unsupportedIterableToArray(o, minLen) {
371
- if (!o) {
372
- return;
373
- }
374
- if (typeof o === 'string') {
375
- return _arrayLikeToArray(o, minLen);
376
- }
377
- var n = Object.prototype.toString.call(o).slice(8, -1);
378
- if (n === 'Object' && o.constructor) {
379
- n = o.constructor.name;
380
- }
381
- if (n === 'Map' || n === 'Set') {
382
- return Array.from(o);
383
- }
384
- if (n === 'Arguments' || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) {
385
- return _arrayLikeToArray(o, minLen);
324
+ function _unsupportedIterableToArray(r, a) {
325
+ if (r) {
326
+ if ('string' == typeof r) {
327
+ return _arrayLikeToArray(r, a);
328
+ }
329
+ var t = {}.toString.call(r).slice(8, -1);
330
+ return 'Object' === t && r.constructor && (t = r.constructor.name), 'Map' === t || 'Set' === t ? Array.from(r) : 'Arguments' === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
386
331
  }
387
332
  }
388
- function _arrayLikeToArray(arr, len) {
389
- if (len == null || len > arr.length) {
390
- len = arr.length;
391
- }
392
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
393
- arr2[i] = arr[i];
333
+ function _arrayLikeToArray(r, a) {
334
+ (null == a || a > r.length) && (a = r.length);
335
+ for (var e = 0, n = Array(a); e < a; e++) {
336
+ n[e] = r[e];
394
337
  }
395
- return arr2;
338
+ return n;
396
339
  }
397
340
  function _typeof(o) {
398
341
  '@babel/helpers - typeof';
@@ -402,7 +345,7 @@
402
345
  return o && 'function' == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? 'symbol' : typeof o;
403
346
  }, _typeof(o);
404
347
  }
405
- (function(_Class_brand, _path, _space, _r, _g, _b, _red, _green, _blue, _Class3_brand) {
348
+ (function(_Class_brand, _path, _CSS, _space, _r, _g, _b, _red, _green, _blue, _Class3_brand) {
406
349
  var __create = Object.create;
407
350
  var __defProp = Object.defineProperty;
408
351
  var __getProtoOf = Object.getPrototypeOf;
@@ -6924,12 +6867,30 @@
6924
6867
  injectStyle: function injectStyle() {
6925
6868
  return inject_style_default;
6926
6869
  },
6870
+ isArrayLike: function isArrayLike() {
6871
+ return _isArrayLike;
6872
+ },
6873
+ isContextObject: function isContextObject() {
6874
+ return _isContextObject;
6875
+ },
6876
+ isContextProp: function isContextProp() {
6877
+ return _isContextProp;
6878
+ },
6879
+ isContextSpec: function isContextSpec() {
6880
+ return _isContextSpec;
6881
+ },
6927
6882
  isHidden: function isHidden() {
6928
6883
  return is_hidden_default;
6929
6884
  },
6930
6885
  isHtmlElement: function isHtmlElement() {
6931
6886
  return is_html_element_default;
6932
6887
  },
6888
+ isLabelledFramesSelector: function isLabelledFramesSelector() {
6889
+ return _isLabelledFramesSelector;
6890
+ },
6891
+ isLabelledShadowDomSelector: function isLabelledShadowDomSelector() {
6892
+ return _isLabelledShadowDomSelector;
6893
+ },
6933
6894
  isNodeInContext: function isNodeInContext() {
6934
6895
  return _isNodeInContext;
6935
6896
  },
@@ -6969,6 +6930,9 @@
6969
6930
  nodeSorter: function nodeSorter() {
6970
6931
  return node_sorter_default;
6971
6932
  },
6933
+ objectHasOwn: function objectHasOwn() {
6934
+ return _objectHasOwn;
6935
+ },
6972
6936
  parseCrossOriginStylesheet: function parseCrossOriginStylesheet() {
6973
6937
  return parse_crossorigin_stylesheet_default;
6974
6938
  },
@@ -7369,7 +7333,9 @@
7369
7333
  var matchesSelector = function() {
7370
7334
  var method;
7371
7335
  function getMethod(node) {
7372
- var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;
7336
+ var candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ];
7337
+ var length = candidates.length;
7338
+ var index, candidate;
7373
7339
  for (index = 0; index < length; index++) {
7374
7340
  candidate = candidates[index];
7375
7341
  if (node[candidate]) {
@@ -7786,10 +7752,10 @@
7786
7752
  }
7787
7753
  return truncate(source || '');
7788
7754
  }
7789
- function DqElement(elm) {
7790
- var _this$spec$selector, _this$_virtualNode;
7791
- var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
7792
- var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
7755
+ var DqElement = memoize_default(function DqElement2(elm, options, spec) {
7756
+ var _options, _spec, _this$spec$selector, _this$_virtualNode;
7757
+ (_options = options) !== null && _options !== void 0 ? _options : options = null;
7758
+ (_spec = spec) !== null && _spec !== void 0 ? _spec : spec = {};
7793
7759
  if (!options) {
7794
7760
  var _cache_default$get;
7795
7761
  options = (_cache_default$get = cache_default.get(CACHE_KEY)) !== null && _cache_default$get !== void 0 ? _cache_default$get : {};
@@ -7820,7 +7786,8 @@
7820
7786
  var _this$spec$source;
7821
7787
  this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);
7822
7788
  }
7823
- }
7789
+ return this;
7790
+ });
7824
7791
  DqElement.prototype = {
7825
7792
  get selector() {
7826
7793
  return this.spec.selector || [ _getSelector(this.element, this._options) ];
@@ -8254,15 +8221,14 @@
8254
8221
  var _rng;
8255
8222
  var _crypto = window.crypto || window.msCrypto;
8256
8223
  if (!_rng && _crypto && _crypto.getRandomValues) {
8257
- _rnds8 = new Uint8Array(16);
8224
+ var _rnds8 = new Uint8Array(16);
8258
8225
  _rng = function whatwgRNG() {
8259
8226
  _crypto.getRandomValues(_rnds8);
8260
8227
  return _rnds8;
8261
8228
  };
8262
8229
  }
8263
- var _rnds8;
8264
8230
  if (!_rng) {
8265
- _rnds = new Array(16);
8231
+ var _rnds = new Array(16);
8266
8232
  _rng = function _rng() {
8267
8233
  for (var i = 0, r; i < 16; i++) {
8268
8234
  if ((i & 3) === 0) {
@@ -8273,7 +8239,6 @@
8273
8239
  return _rnds;
8274
8240
  };
8275
8241
  }
8276
- var _rnds;
8277
8242
  var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;
8278
8243
  var _byteToHex = [];
8279
8244
  var _hexToByte = {};
@@ -8392,7 +8357,7 @@
8392
8357
  var data;
8393
8358
  try {
8394
8359
  data = JSON.parse(dataString);
8395
- } catch (e) {
8360
+ } catch (_unused) {
8396
8361
  return;
8397
8362
  }
8398
8363
  if (!isRespondableMessage(data)) {
@@ -8795,8 +8760,9 @@
8795
8760
  }
8796
8761
  function spliceNodes(target, to2) {
8797
8762
  var firstFromFrame = to2[0].node;
8763
+ var node;
8798
8764
  for (var _i3 = 0; _i3 < target.length; _i3++) {
8799
- var node = target[_i3].node;
8765
+ node = target[_i3].node;
8800
8766
  var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes);
8801
8767
  if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) {
8802
8768
  target.splice.apply(target, [ _i3, 0 ].concat(_toConsumableArray(to2)));
@@ -8950,7 +8916,7 @@
8950
8916
  to2[prop] = null;
8951
8917
  try {
8952
8918
  to2[prop] = from[prop](to2);
8953
- } catch (e) {}
8919
+ } catch (_unused2) {}
8954
8920
  });
8955
8921
  }
8956
8922
  var extend_meta_data_default = extendMetaData;
@@ -10509,7 +10475,7 @@
10509
10475
  }
10510
10476
  }
10511
10477
  return result;
10512
- } catch (e) {
10478
+ } catch (_unused3) {
10513
10479
  throw new TypeError('Cannot resolve id references for non-DOM nodes');
10514
10480
  }
10515
10481
  }
@@ -12527,20 +12493,20 @@
12527
12493
  function toGrid(node) {
12528
12494
  var table = [];
12529
12495
  var rows = node.rows;
12530
- for (var i = 0, rowLength = rows.length; i < rowLength; i++) {
12531
- var cells = rows[i].cells;
12532
- table[i] = table[i] || [];
12496
+ for (var _i9 = 0, rowLength = rows.length; _i9 < rowLength; _i9++) {
12497
+ var cells = rows[_i9].cells;
12498
+ table[_i9] = table[_i9] || [];
12533
12499
  var columnIndex = 0;
12534
12500
  for (var j = 0, cellLength = cells.length; j < cellLength; j++) {
12535
12501
  for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {
12536
12502
  var rowspanAttr = cells[j].getAttribute('rowspan');
12537
12503
  var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;
12538
12504
  for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {
12539
- table[i + rowSpan] = table[i + rowSpan] || [];
12540
- while (table[i + rowSpan][columnIndex]) {
12505
+ table[_i9 + rowSpan] = table[_i9 + rowSpan] || [];
12506
+ while (table[_i9 + rowSpan][columnIndex]) {
12541
12507
  columnIndex++;
12542
12508
  }
12543
- table[i + rowSpan][columnIndex] = cells[j];
12509
+ table[_i9 + rowSpan][columnIndex] = cells[j];
12544
12510
  }
12545
12511
  columnIndex++;
12546
12512
  }
@@ -12618,17 +12584,21 @@
12618
12584
  return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();
12619
12585
  }
12620
12586
  var sanitize_default = sanitize;
12621
- var getSectioningElementSelector = function getSectioningElementSelector() {
12622
- return cache_default.get('sectioningElementSelector', function() {
12587
+ var getSectioningContentSelector = function getSectioningContentSelector() {
12588
+ return cache_default.get('sectioningContentSelector', function() {
12623
12589
  return get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
12624
12590
  return ''.concat(nodeName2, ':not([role])');
12625
- }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
12591
+ }).join(', ') + ' , [role=article], [role=complementary], [role=navigation], [role=region]';
12592
+ });
12593
+ };
12594
+ var getSectioningContentPlusMainSelector = function getSectioningContentPlusMainSelector() {
12595
+ return cache_default.get('sectioningContentPlusMainSelector', function() {
12596
+ return getSectioningContentSelector() + ' , main:not([role]), [role=main]';
12626
12597
  });
12627
12598
  };
12628
12599
  function hasAccessibleName(vNode) {
12629
- var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
12630
- var ariaLabel = sanitize_default(_arialabelText(vNode));
12631
- return !!(ariaLabelledby || ariaLabel);
12600
+ var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$checkTitle = _ref28.checkTitle, checkTitle = _ref28$checkTitle === void 0 ? false : _ref28$checkTitle;
12601
+ return !!(sanitize_default(arialabelledby_text_default(vNode)) || sanitize_default(_arialabelText(vNode)) || checkTitle && (vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) === 1 && sanitize_default(vNode.attr('title')));
12632
12602
  }
12633
12603
  var implicitHtmlRoles = {
12634
12604
  a: function a(vNode) {
@@ -12638,7 +12608,14 @@
12638
12608
  return vNode.hasAttr('href') ? 'link' : null;
12639
12609
  },
12640
12610
  article: 'article',
12641
- aside: 'complementary',
12611
+ aside: function aside(vNode) {
12612
+ if (closest_default(vNode.parent, getSectioningContentSelector()) && !hasAccessibleName(vNode, {
12613
+ checkTitle: true
12614
+ })) {
12615
+ return null;
12616
+ }
12617
+ return 'complementary';
12618
+ },
12642
12619
  body: 'document',
12643
12620
  button: 'button',
12644
12621
  datalist: 'listbox',
@@ -12650,7 +12627,7 @@
12650
12627
  fieldset: 'group',
12651
12628
  figure: 'figure',
12652
12629
  footer: function footer(vNode) {
12653
- var sectioningElement = closest_default(vNode, getSectioningElementSelector());
12630
+ var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector());
12654
12631
  return !sectioningElement ? 'contentinfo' : null;
12655
12632
  },
12656
12633
  form: function form(vNode) {
@@ -12663,7 +12640,7 @@
12663
12640
  h5: 'heading',
12664
12641
  h6: 'heading',
12665
12642
  header: function header(vNode) {
12666
- var sectioningElement = closest_default(vNode, getSectioningElementSelector());
12643
+ var sectioningElement = closest_default(vNode, getSectioningContentPlusMainSelector());
12667
12644
  return !sectioningElement ? 'banner' : null;
12668
12645
  },
12669
12646
  hr: 'separator',
@@ -12871,7 +12848,7 @@
12871
12848
  matches_default.semanticRole = semantic_role_default;
12872
12849
  var matches_default2 = matches_default;
12873
12850
  function getElementSpec(vNode) {
12874
- var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$noMatchAccessi = _ref28.noMatchAccessibleName, noMatchAccessibleName = _ref28$noMatchAccessi === void 0 ? false : _ref28$noMatchAccessi;
12851
+ var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref29$noMatchAccessi = _ref29.noMatchAccessibleName, noMatchAccessibleName = _ref29$noMatchAccessi === void 0 ? false : _ref29$noMatchAccessi;
12875
12852
  var standard = standards_default.htmlElms[vNode.props.nodeName];
12876
12853
  if (!standard) {
12877
12854
  return {};
@@ -12886,8 +12863,8 @@
12886
12863
  }
12887
12864
  var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded5);
12888
12865
  var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
12889
- for (var _i9 = 0; _i9 < matchProperties.length && noMatchAccessibleName; _i9++) {
12890
- if (matchProperties[_i9].hasOwnProperty('hasAccessibleName')) {
12866
+ for (var _i10 = 0; _i10 < matchProperties.length && noMatchAccessibleName; _i10++) {
12867
+ if (matchProperties[_i10].hasOwnProperty('hasAccessibleName')) {
12891
12868
  return standard;
12892
12869
  }
12893
12870
  }
@@ -12908,7 +12885,7 @@
12908
12885
  }
12909
12886
  var get_element_spec_default = getElementSpec;
12910
12887
  function implicitRole2(node) {
12911
- var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref29.chromium;
12888
+ var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref30.chromium;
12912
12889
  var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
12913
12890
  node = vNode.actualNode;
12914
12891
  if (!vNode) {
@@ -12961,8 +12938,8 @@
12961
12938
  }
12962
12939
  return getInheritedRole(vNode.parent, explicitRoleOptions);
12963
12940
  }
12964
- function resolveImplicitRole(vNode, _ref30) {
12965
- var chromium = _ref30.chromium, explicitRoleOptions = _objectWithoutProperties(_ref30, _excluded6);
12941
+ function resolveImplicitRole(vNode, _ref31) {
12942
+ var chromium = _ref31.chromium, explicitRoleOptions = _objectWithoutProperties(_ref31, _excluded6);
12966
12943
  var implicitRole3 = implicit_role_default(vNode, {
12967
12944
  chromium: chromium
12968
12945
  });
@@ -12982,8 +12959,8 @@
12982
12959
  return hasGlobalAria || _isFocusable(vNode);
12983
12960
  }
12984
12961
  function resolveRole(node) {
12985
- var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12986
- var noImplicit = _ref31.noImplicit, roleOptions = _objectWithoutProperties(_ref31, _excluded7);
12962
+ var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12963
+ var noImplicit = _ref32.noImplicit, roleOptions = _objectWithoutProperties(_ref32, _excluded7);
12987
12964
  var _nodeLookup10 = _nodeLookup(node), vNode = _nodeLookup10.vNode;
12988
12965
  if (vNode.props.nodeType !== 1) {
12989
12966
  return null;
@@ -13001,8 +12978,8 @@
13001
12978
  return explicitRole2;
13002
12979
  }
13003
12980
  function getRole(node) {
13004
- var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
13005
- var noPresentational = _ref32.noPresentational, options = _objectWithoutProperties(_ref32, _excluded8);
12981
+ var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
12982
+ var noPresentational = _ref33.noPresentational, options = _objectWithoutProperties(_ref33, _excluded8);
13006
12983
  var role = resolveRole(node, options);
13007
12984
  if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
13008
12985
  return null;
@@ -13023,7 +13000,7 @@
13023
13000
  }
13024
13001
  var title_text_default = titleText;
13025
13002
  function namedFromContents(vNode) {
13026
- var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref33.strict;
13003
+ var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref34.strict;
13027
13004
  vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
13028
13005
  if (vNode.props.nodeType !== 1) {
13029
13006
  return false;
@@ -13322,12 +13299,12 @@
13322
13299
  button: ''
13323
13300
  };
13324
13301
  var nativeTextMethods = {
13325
- valueText: function valueText(_ref34) {
13326
- var actualNode = _ref34.actualNode;
13302
+ valueText: function valueText(_ref35) {
13303
+ var actualNode = _ref35.actualNode;
13327
13304
  return actualNode.value || '';
13328
13305
  },
13329
- buttonDefaultText: function buttonDefaultText(_ref35) {
13330
- var actualNode = _ref35.actualNode;
13306
+ buttonDefaultText: function buttonDefaultText(_ref36) {
13307
+ var actualNode = _ref36.actualNode;
13331
13308
  return defaultButtonValues[actualNode.type] || '';
13332
13309
  },
13333
13310
  tableCaptionText: descendantText.bind(null, 'caption'),
@@ -13347,8 +13324,8 @@
13347
13324
  function attrText(attr, vNode) {
13348
13325
  return vNode.attr(attr) || '';
13349
13326
  }
13350
- function descendantText(nodeName2, _ref36, context) {
13351
- var actualNode = _ref36.actualNode;
13327
+ function descendantText(nodeName2, _ref37, context) {
13328
+ var actualNode = _ref37.actualNode;
13352
13329
  nodeName2 = nodeName2.toLowerCase();
13353
13330
  var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
13354
13331
  var candidate = actualNode.querySelector(nodeNames2);
@@ -13616,7 +13593,7 @@
13616
13593
  locations: [ 'billing', 'shipping' ]
13617
13594
  };
13618
13595
  function isValidAutocomplete(autocompleteValue) {
13619
- var _ref37 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref37$looseTyped = _ref37.looseTyped, looseTyped = _ref37$looseTyped === void 0 ? false : _ref37$looseTyped, _ref37$stateTerms = _ref37.stateTerms, stateTerms = _ref37$stateTerms === void 0 ? [] : _ref37$stateTerms, _ref37$locations = _ref37.locations, locations = _ref37$locations === void 0 ? [] : _ref37$locations, _ref37$qualifiers = _ref37.qualifiers, qualifiers = _ref37$qualifiers === void 0 ? [] : _ref37$qualifiers, _ref37$standaloneTerm = _ref37.standaloneTerms, standaloneTerms = _ref37$standaloneTerm === void 0 ? [] : _ref37$standaloneTerm, _ref37$qualifiedTerms = _ref37.qualifiedTerms, qualifiedTerms = _ref37$qualifiedTerms === void 0 ? [] : _ref37$qualifiedTerms;
13596
+ var _ref38 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref38$looseTyped = _ref38.looseTyped, looseTyped = _ref38$looseTyped === void 0 ? false : _ref38$looseTyped, _ref38$stateTerms = _ref38.stateTerms, stateTerms = _ref38$stateTerms === void 0 ? [] : _ref38$stateTerms, _ref38$locations = _ref38.locations, locations = _ref38$locations === void 0 ? [] : _ref38$locations, _ref38$qualifiers = _ref38.qualifiers, qualifiers = _ref38$qualifiers === void 0 ? [] : _ref38$qualifiers, _ref38$standaloneTerm = _ref38.standaloneTerms, standaloneTerms = _ref38$standaloneTerm === void 0 ? [] : _ref38$standaloneTerm, _ref38$qualifiedTerms = _ref38.qualifiedTerms, qualifiedTerms = _ref38$qualifiedTerms === void 0 ? [] : _ref38$qualifiedTerms, _ref38$ignoredValues = _ref38.ignoredValues, ignoredValues = _ref38$ignoredValues === void 0 ? [] : _ref38$ignoredValues;
13620
13597
  autocompleteValue = autocompleteValue.toLowerCase().trim();
13621
13598
  stateTerms = stateTerms.concat(_autocomplete.stateTerms);
13622
13599
  if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
@@ -13649,6 +13626,9 @@
13649
13626
  }
13650
13627
  }
13651
13628
  var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];
13629
+ if (ignoredValues.includes(purposeTerm)) {
13630
+ return void 0;
13631
+ }
13652
13632
  return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);
13653
13633
  }
13654
13634
  var is_valid_autocomplete_default = isValidAutocomplete;
@@ -13881,8 +13861,8 @@
13881
13861
  if (hiddenTextElms.includes(elm.props.nodeName)) {
13882
13862
  return false;
13883
13863
  }
13884
- return elm.children.some(function(_ref38) {
13885
- var props = _ref38.props;
13864
+ return elm.children.some(function(_ref39) {
13865
+ var props = _ref39.props;
13886
13866
  return props.nodeType === 3 && props.nodeValue.trim();
13887
13867
  });
13888
13868
  }
@@ -14072,7 +14052,7 @@
14072
14052
  return Array.from(document.elementsFromPoint(point.x, point.y));
14073
14053
  });
14074
14054
  var _loop4 = function _loop4() {
14075
- var modalElement = stacks[_i10].find(function(elm) {
14055
+ var modalElement = stacks[_i11].find(function(elm) {
14076
14056
  var style = window.getComputedStyle(elm);
14077
14057
  return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
14078
14058
  });
@@ -14085,7 +14065,7 @@
14085
14065
  };
14086
14066
  }
14087
14067
  }, _ret;
14088
- for (var _i10 = 0; _i10 < stacks.length; _i10++) {
14068
+ for (var _i11 = 0; _i11 < stacks.length; _i11++) {
14089
14069
  _ret = _loop4();
14090
14070
  if (_ret) {
14091
14071
  return _ret.v;
@@ -14254,9 +14234,9 @@
14254
14234
  var length = list.length >>> 0;
14255
14235
  var thisArg = arguments[1];
14256
14236
  var value;
14257
- for (var i = 0; i < length; i++) {
14258
- value = list[i];
14259
- if (predicate.call(thisArg, value, i, list)) {
14237
+ for (var _i12 = 0; _i12 < length; _i12++) {
14238
+ value = list[_i12];
14239
+ if (predicate.call(thisArg, value, _i12, list)) {
14260
14240
  return value;
14261
14241
  }
14262
14242
  }
@@ -14276,10 +14256,10 @@
14276
14256
  var list = Object(this);
14277
14257
  var length = list.length >>> 0;
14278
14258
  var value;
14279
- for (var i = 0; i < length; i++) {
14280
- value = list[i];
14281
- if (predicate.call(thisArg, value, i, list)) {
14282
- return i;
14259
+ for (var _i13 = 0; _i13 < length; _i13++) {
14260
+ value = list[_i13];
14261
+ if (predicate.call(thisArg, value, _i13, list)) {
14262
+ return _i13;
14283
14263
  }
14284
14264
  }
14285
14265
  return -1;
@@ -14328,8 +14308,8 @@
14328
14308
  var t = Object(this);
14329
14309
  var len = t.length >>> 0;
14330
14310
  var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
14331
- for (var i = 0; i < len; i++) {
14332
- if (i in t && fun.call(thisArg, t[i], i, t)) {
14311
+ for (var _i14 = 0; _i14 < len; _i14++) {
14312
+ if (_i14 in t && fun.call(thisArg, t[_i14], _i14, t)) {
14333
14313
  return true;
14334
14314
  }
14335
14315
  }
@@ -14412,8 +14392,8 @@
14412
14392
  }
14413
14393
  return ret;
14414
14394
  }
14415
- for (var _i11 = 0; _i11 < row.length; _i11++) {
14416
- ret += row[_i11] * (col[_i11] || 0);
14395
+ for (var _i15 = 0; _i15 < row.length; _i15++) {
14396
+ ret += row[_i15] * (col[_i15] || 0);
14417
14397
  }
14418
14398
  return ret;
14419
14399
  });
@@ -14607,7 +14587,7 @@
14607
14587
  var \u03b5$4 = 75e-6;
14608
14588
  var _ColorSpace = (_Class_brand = new WeakSet(), _path = new WeakMap(), function() {
14609
14589
  function _ColorSpace(options) {
14610
- var _options$coords, _ref39, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
14590
+ var _options$coords, _ref40, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
14611
14591
  _classCallCheck(this, _ColorSpace);
14612
14592
  _classPrivateMethodInitSpec(this, _Class_brand);
14613
14593
  _classPrivateFieldInitSpec(this, _path, void 0);
@@ -14621,7 +14601,7 @@
14621
14601
  }
14622
14602
  var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
14623
14603
  this.coords = _coords;
14624
- var white2 = (_ref39 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref39 !== void 0 ? _ref39 : 'D65';
14604
+ var white2 = (_ref40 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref40 !== void 0 ? _ref40 : 'D65';
14625
14605
  this.white = getWhite(white2);
14626
14606
  this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
14627
14607
  for (var name in this.formats) {
@@ -14646,7 +14626,7 @@
14646
14626
  return _createClass(_ColorSpace, [ {
14647
14627
  key: 'inGamut',
14648
14628
  value: function inGamut(coords) {
14649
- var _ref40 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref40$epsilon = _ref40.epsilon, epsilon = _ref40$epsilon === void 0 ? \u03b5$4 : _ref40$epsilon;
14629
+ var _ref41 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref41$epsilon = _ref41.epsilon, epsilon = _ref41$epsilon === void 0 ? \u03b5$4 : _ref41$epsilon;
14650
14630
  if (this.isPolar) {
14651
14631
  coords = this.toBase(coords);
14652
14632
  return this.base.inGamut(coords, {
@@ -14705,9 +14685,9 @@
14705
14685
  key: 'to',
14706
14686
  value: function to(space, coords) {
14707
14687
  if (arguments.length === 1) {
14708
- var _ref41 = [ space.space, space.coords ];
14709
- space = _ref41[0];
14710
- coords = _ref41[1];
14688
+ var _ref42 = [ space.space, space.coords ];
14689
+ space = _ref42[0];
14690
+ coords = _ref42[1];
14711
14691
  }
14712
14692
  space = _ColorSpace.get(space);
14713
14693
  if (this === space) {
@@ -14719,10 +14699,10 @@
14719
14699
  var myPath = _classPrivateFieldGet(_path, this);
14720
14700
  var otherPath = _classPrivateFieldGet(_path, space);
14721
14701
  var connectionSpace, connectionSpaceIndex;
14722
- for (var _i12 = 0; _i12 < myPath.length; _i12++) {
14723
- if (myPath[_i12] === otherPath[_i12]) {
14724
- connectionSpace = myPath[_i12];
14725
- connectionSpaceIndex = _i12;
14702
+ for (var _i16 = 0; _i16 < myPath.length; _i16++) {
14703
+ if (myPath[_i16] === otherPath[_i16]) {
14704
+ connectionSpace = myPath[_i16];
14705
+ connectionSpaceIndex = _i16;
14726
14706
  } else {
14727
14707
  break;
14728
14708
  }
@@ -14730,11 +14710,11 @@
14730
14710
  if (!connectionSpace) {
14731
14711
  throw new Error('Cannot convert between color spaces '.concat(this, ' and ').concat(space, ': no connection space was found'));
14732
14712
  }
14733
- for (var _i13 = myPath.length - 1; _i13 > connectionSpaceIndex; _i13--) {
14734
- coords = myPath[_i13].toBase(coords);
14713
+ for (var _i17 = myPath.length - 1; _i17 > connectionSpaceIndex; _i17--) {
14714
+ coords = myPath[_i17].toBase(coords);
14735
14715
  }
14736
- for (var _i14 = connectionSpaceIndex + 1; _i14 < otherPath.length; _i14++) {
14737
- coords = otherPath[_i14].fromBase(coords);
14716
+ for (var _i18 = connectionSpaceIndex + 1; _i18 < otherPath.length; _i18++) {
14717
+ coords = otherPath[_i18].fromBase(coords);
14738
14718
  }
14739
14719
  return coords;
14740
14720
  }
@@ -14742,9 +14722,9 @@
14742
14722
  key: 'from',
14743
14723
  value: function from(space, coords) {
14744
14724
  if (arguments.length === 1) {
14745
- var _ref42 = [ space.space, space.coords ];
14746
- space = _ref42[0];
14747
- coords = _ref42[1];
14725
+ var _ref43 = [ space.space, space.coords ];
14726
+ space = _ref43[0];
14727
+ coords = _ref43[1];
14748
14728
  }
14749
14729
  space = _ColorSpace.get(space);
14750
14730
  return space.to(this, coords);
@@ -14836,9 +14816,9 @@
14836
14816
  coord = ref;
14837
14817
  }
14838
14818
  } else if (Array.isArray(ref)) {
14839
- var _ref43 = _slicedToArray(ref, 2);
14840
- space = _ref43[0];
14841
- coord = _ref43[1];
14819
+ var _ref44 = _slicedToArray(ref, 2);
14820
+ space = _ref44[0];
14821
+ coord = _ref44[1];
14842
14822
  } else {
14843
14823
  space = ref.space;
14844
14824
  coord = ref.coordId;
@@ -14885,8 +14865,8 @@
14885
14865
  format.type || (format.type = 'function');
14886
14866
  format.name || (format.name = 'color');
14887
14867
  format.coordGrammar = parseCoordGrammar(format.coords);
14888
- var coordFormats = Object.entries(this.coords).map(function(_ref151, i) {
14889
- var _ref152 = _slicedToArray(_ref151, 2), id = _ref152[0], coordMeta = _ref152[1];
14868
+ var coordFormats = Object.entries(this.coords).map(function(_ref152, i) {
14869
+ var _ref153 = _slicedToArray(_ref152, 2), id = _ref153[0], coordMeta = _ref153[1];
14890
14870
  var outputType = format.coordGrammar[i][0];
14891
14871
  var fromRange = coordMeta.range || coordMeta.refRange;
14892
14872
  var toRange = outputType.range, suffix = '';
@@ -15068,9 +15048,9 @@
15068
15048
  }
15069
15049
  var coords = env.parsed.args;
15070
15050
  if (format.coordGrammar) {
15071
- Object.entries(space.coords).forEach(function(_ref44, i) {
15051
+ Object.entries(space.coords).forEach(function(_ref45, i) {
15072
15052
  var _coords$i;
15073
- var _ref45 = _slicedToArray(_ref44, 2), id = _ref45[0], coordMeta = _ref45[1];
15053
+ var _ref46 = _slicedToArray(_ref45, 2), id = _ref46[0], coordMeta = _ref46[1];
15074
15054
  var coordGrammar2 = format.coordGrammar[i];
15075
15055
  var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
15076
15056
  coordGrammar2 = coordGrammar2.find(function(c4) {
@@ -15334,7 +15314,7 @@
15334
15314
  var r2d = 180 / \u03c0$1;
15335
15315
  var d2r$1 = \u03c0$1 / 180;
15336
15316
  function deltaE2000(color, sample) {
15337
- var _ref46 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref46$kL = _ref46.kL, kL = _ref46$kL === void 0 ? 1 : _ref46$kL, _ref46$kC = _ref46.kC, kC = _ref46$kC === void 0 ? 1 : _ref46$kC, _ref46$kH = _ref46.kH, kH = _ref46$kH === void 0 ? 1 : _ref46$kH;
15317
+ var _ref47 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref47$kL = _ref47.kL, kL = _ref47$kL === void 0 ? 1 : _ref47$kL, _ref47$kC = _ref47.kC, kC = _ref47$kC === void 0 ? 1 : _ref47$kC, _ref47$kH = _ref47.kH, kH = _ref47$kH === void 0 ? 1 : _ref47$kH;
15338
15318
  var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
15339
15319
  var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
15340
15320
  var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
@@ -15414,7 +15394,7 @@
15414
15394
  var \u03b5$2 = 75e-6;
15415
15395
  function inGamut(color) {
15416
15396
  var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
15417
- var _ref47 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref47$epsilon = _ref47.epsilon, epsilon = _ref47$epsilon === void 0 ? \u03b5$2 : _ref47$epsilon;
15397
+ var _ref48 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref48$epsilon = _ref48.epsilon, epsilon = _ref48$epsilon === void 0 ? \u03b5$2 : _ref48$epsilon;
15418
15398
  color = getColor(color);
15419
15399
  space = ColorSpace.get(space);
15420
15400
  var coords = color.coords;
@@ -15433,7 +15413,7 @@
15433
15413
  };
15434
15414
  }
15435
15415
  function toGamut(color) {
15436
- var _ref48 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref48$method = _ref48.method, method = _ref48$method === void 0 ? defaults.gamut_mapping : _ref48$method, _ref48$space = _ref48.space, space = _ref48$space === void 0 ? color.space : _ref48$space;
15416
+ var _ref49 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref49$method = _ref49.method, method = _ref49$method === void 0 ? defaults.gamut_mapping : _ref49$method, _ref49$space = _ref49.space, space = _ref49$space === void 0 ? color.space : _ref49$space;
15437
15417
  if (isString(arguments[1])) {
15438
15418
  space = arguments[1];
15439
15419
  }
@@ -15503,7 +15483,7 @@
15503
15483
  }
15504
15484
  toGamut.returns = 'color';
15505
15485
  function to(color, space) {
15506
- var _ref49 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref49.inGamut;
15486
+ var _ref50 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref50.inGamut;
15507
15487
  color = getColor(color);
15508
15488
  space = ColorSpace.get(space);
15509
15489
  var coords = space.from(color);
@@ -15519,13 +15499,13 @@
15519
15499
  }
15520
15500
  to.returns = 'color';
15521
15501
  function serialize(color) {
15522
- var _ref51, _color$space$getForma;
15523
- var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15524
- var _ref50$precision = _ref50.precision, precision = _ref50$precision === void 0 ? defaults.precision : _ref50$precision, _ref50$format = _ref50.format, format = _ref50$format === void 0 ? 'default' : _ref50$format, _ref50$inGamut = _ref50.inGamut, inGamut$1 = _ref50$inGamut === void 0 ? true : _ref50$inGamut, customOptions = _objectWithoutProperties(_ref50, _excluded9);
15502
+ var _ref52, _color$space$getForma;
15503
+ var _ref51 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15504
+ var _ref51$precision = _ref51.precision, precision = _ref51$precision === void 0 ? defaults.precision : _ref51$precision, _ref51$format = _ref51.format, format = _ref51$format === void 0 ? 'default' : _ref51$format, _ref51$inGamut = _ref51.inGamut, inGamut$1 = _ref51$inGamut === void 0 ? true : _ref51$inGamut, customOptions = _objectWithoutProperties(_ref51, _excluded9);
15525
15505
  var ret;
15526
15506
  color = getColor(color);
15527
15507
  var formatId = format;
15528
- format = (_ref51 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref51 !== void 0 ? _ref51 : ColorSpace.DEFAULT_FORMAT;
15508
+ format = (_ref52 = (_color$space$getForma = color.space.getFormat(format)) !== null && _color$space$getForma !== void 0 ? _color$space$getForma : color.space.getFormat('default')) !== null && _ref52 !== void 0 ? _ref52 : ColorSpace.DEFAULT_FORMAT;
15529
15509
  inGamut$1 || (inGamut$1 = format.toGamut);
15530
15510
  var coords = color.coords;
15531
15511
  coords = coords.map(function(c4) {
@@ -15844,7 +15824,7 @@
15844
15824
  };
15845
15825
  },
15846
15826
  serialize: function serialize(coords, alpha) {
15847
- var _ref52 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref52$collapse = _ref52.collapse, collapse = _ref52$collapse === void 0 ? true : _ref52$collapse;
15827
+ var _ref53 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref53$collapse = _ref53.collapse, collapse = _ref53$collapse === void 0 ? true : _ref53$collapse;
15848
15828
  if (alpha < 1) {
15849
15829
  coords.push(alpha);
15850
15830
  }
@@ -15901,9 +15881,9 @@
15901
15881
  }
15902
15882
  });
15903
15883
  defaults.display_space = sRGB;
15904
- if (typeof CSS !== 'undefined' && CSS.supports) {
15905
- for (var _i15 = 0, _arr2 = [ lab, REC2020, P3 ]; _i15 < _arr2.length; _i15++) {
15906
- var space = _arr2[_i15];
15884
+ if (typeof CSS !== 'undefined' && (_CSS = CSS) !== null && _CSS !== void 0 && _CSS.supports) {
15885
+ for (var _i19 = 0, _arr2 = [ lab, REC2020, P3 ]; _i19 < _arr2.length; _i19++) {
15886
+ var space = _arr2[_i19];
15907
15887
  var coords = space.getMinCoords();
15908
15888
  var color = {
15909
15889
  space: space,
@@ -15918,10 +15898,11 @@
15918
15898
  }
15919
15899
  }
15920
15900
  function _display(color) {
15921
- var _ref53 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15922
- var _ref53$space = _ref53.space, space = _ref53$space === void 0 ? defaults.display_space : _ref53$space, options = _objectWithoutProperties(_ref53, _excluded10);
15901
+ var _CSS2;
15902
+ var _ref54 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
15903
+ var _ref54$space = _ref54.space, space = _ref54$space === void 0 ? defaults.display_space : _ref54$space, options = _objectWithoutProperties(_ref54, _excluded10);
15923
15904
  var ret = serialize(color, options);
15924
- if (typeof CSS === 'undefined' || CSS.supports('color', ret) || !defaults.display_space) {
15905
+ if (typeof CSS === 'undefined' || (_CSS2 = CSS) !== null && _CSS2 !== void 0 && _CSS2.supports('color', ret) || !defaults.display_space) {
15925
15906
  ret = new String(ret);
15926
15907
  ret.color = color;
15927
15908
  } else {
@@ -15979,9 +15960,9 @@
15979
15960
  var Y1 = Math.max(getLuminance(color1), 0);
15980
15961
  var Y2 = Math.max(getLuminance(color2), 0);
15981
15962
  if (Y2 > Y1) {
15982
- var _ref54 = [ Y2, Y1 ];
15983
- Y1 = _ref54[0];
15984
- Y2 = _ref54[1];
15963
+ var _ref55 = [ Y2, Y1 ];
15964
+ Y1 = _ref55[0];
15965
+ Y2 = _ref55[1];
15985
15966
  }
15986
15967
  return (Y1 + .05) / (Y2 + .05);
15987
15968
  }
@@ -16055,9 +16036,9 @@
16055
16036
  var Y1 = Math.max(getLuminance(color1), 0);
16056
16037
  var Y2 = Math.max(getLuminance(color2), 0);
16057
16038
  if (Y2 > Y1) {
16058
- var _ref55 = [ Y2, Y1 ];
16059
- Y1 = _ref55[0];
16060
- Y2 = _ref55[1];
16039
+ var _ref56 = [ Y2, Y1 ];
16040
+ Y1 = _ref56[0];
16041
+ Y2 = _ref56[1];
16061
16042
  }
16062
16043
  var denom = Y1 + Y2;
16063
16044
  return denom === 0 ? 0 : (Y1 - Y2) / denom;
@@ -16069,9 +16050,9 @@
16069
16050
  var Y1 = Math.max(getLuminance(color1), 0);
16070
16051
  var Y2 = Math.max(getLuminance(color2), 0);
16071
16052
  if (Y2 > Y1) {
16072
- var _ref56 = [ Y2, Y1 ];
16073
- Y1 = _ref56[0];
16074
- Y2 = _ref56[1];
16053
+ var _ref57 = [ Y2, Y1 ];
16054
+ Y1 = _ref57[0];
16055
+ Y2 = _ref57[1];
16075
16056
  }
16076
16057
  return Y2 === 0 ? max : (Y1 - Y2) / Y2;
16077
16058
  }
@@ -16204,7 +16185,7 @@
16204
16185
  var \u03c0 = Math.PI;
16205
16186
  var d2r = \u03c0 / 180;
16206
16187
  function deltaECMC(color, sample) {
16207
- var _ref57 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref57$l = _ref57.l, l = _ref57$l === void 0 ? 2 : _ref57$l, _ref57$c = _ref57.c, c4 = _ref57$c === void 0 ? 1 : _ref57$c;
16188
+ var _ref58 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref58$l = _ref58.l, l = _ref58$l === void 0 ? 2 : _ref58$l, _ref58$c = _ref58.c, c4 = _ref58$c === void 0 ? 1 : _ref58$c;
16208
16189
  var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
16209
16190
  var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
16210
16191
  var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
@@ -16552,13 +16533,13 @@
16552
16533
  function mix(c12, c22) {
16553
16534
  var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
16554
16535
  var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
16555
- var _ref58 = [ getColor(c12), getColor(c22) ];
16556
- c12 = _ref58[0];
16557
- c22 = _ref58[1];
16536
+ var _ref59 = [ getColor(c12), getColor(c22) ];
16537
+ c12 = _ref59[0];
16538
+ c22 = _ref59[1];
16558
16539
  if (type(p2) === 'object') {
16559
- var _ref59 = [ .5, p2 ];
16560
- p2 = _ref59[0];
16561
- o = _ref59[1];
16540
+ var _ref60 = [ .5, p2 ];
16541
+ p2 = _ref60[0];
16542
+ o = _ref60[1];
16562
16543
  }
16563
16544
  var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
16564
16545
  var r = range(c12, c22, {
@@ -16578,11 +16559,11 @@
16578
16559
  c12 = _colorRange$rangeArgs[0];
16579
16560
  c22 = _colorRange$rangeArgs[1];
16580
16561
  }
16581
- var _options = options, maxDeltaE = _options.maxDeltaE, deltaEMethod = _options.deltaEMethod, _options$steps = _options.steps, steps2 = _options$steps === void 0 ? 2 : _options$steps, _options$maxSteps = _options.maxSteps, maxSteps = _options$maxSteps === void 0 ? 1e3 : _options$maxSteps, rangeOptions = _objectWithoutProperties(_options, _excluded13);
16562
+ var _options2 = options, maxDeltaE = _options2.maxDeltaE, deltaEMethod = _options2.deltaEMethod, _options2$steps = _options2.steps, steps2 = _options2$steps === void 0 ? 2 : _options2$steps, _options2$maxSteps = _options2.maxSteps, maxSteps = _options2$maxSteps === void 0 ? 1e3 : _options2$maxSteps, rangeOptions = _objectWithoutProperties(_options2, _excluded13);
16582
16563
  if (!colorRange) {
16583
- var _ref60 = [ getColor(c12), getColor(c22) ];
16584
- c12 = _ref60[0];
16585
- c22 = _ref60[1];
16564
+ var _ref61 = [ getColor(c12), getColor(c22) ];
16565
+ c12 = _ref61[0];
16566
+ c22 = _ref61[1];
16586
16567
  colorRange = range(c12, c22, rangeOptions);
16587
16568
  }
16588
16569
  var totalDelta = deltaE(c12, c22);
@@ -16618,17 +16599,17 @@
16618
16599
  }, 0);
16619
16600
  while (maxDelta > maxDeltaE) {
16620
16601
  maxDelta = 0;
16621
- for (var _i16 = 1; _i16 < ret.length && ret.length < maxSteps; _i16++) {
16622
- var prev = ret[_i16 - 1];
16623
- var cur = ret[_i16];
16602
+ for (var _i20 = 1; _i20 < ret.length && ret.length < maxSteps; _i20++) {
16603
+ var prev = ret[_i20 - 1];
16604
+ var cur = ret[_i20];
16624
16605
  var p2 = (cur.p + prev.p) / 2;
16625
16606
  var _color = colorRange(p2);
16626
16607
  maxDelta = Math.max(maxDelta, deltaE(_color, prev.color), deltaE(_color, cur.color));
16627
- ret.splice(_i16, 0, {
16608
+ ret.splice(_i20, 0, {
16628
16609
  p: p2,
16629
16610
  color: colorRange(p2)
16630
16611
  });
16631
- _i16++;
16612
+ _i20++;
16632
16613
  }
16633
16614
  }
16634
16615
  }
@@ -16665,7 +16646,7 @@
16665
16646
  if (space.coords.h && space.coords.h.type === 'angle') {
16666
16647
  var arc = options.hue = options.hue || 'shorter';
16667
16648
  var hue = [ space, 'h' ];
16668
- var _ref61 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref61[0], \u03b82 = _ref61[1];
16649
+ var _ref62 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref62[0], \u03b82 = _ref62[1];
16669
16650
  var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
16670
16651
  var _adjust2 = _slicedToArray(_adjust, 2);
16671
16652
  \u03b81 = _adjust2[0];
@@ -17067,8 +17048,8 @@
17067
17048
  env.M = adapt(env.W1, env.W2, env.options.method);
17068
17049
  }
17069
17050
  });
17070
- function defineCAT(_ref62) {
17071
- var id = _ref62.id, toCone_M = _ref62.toCone_M, fromCone_M = _ref62.fromCone_M;
17051
+ function defineCAT(_ref63) {
17052
+ var id = _ref63.id, toCone_M = _ref63.toCone_M, fromCone_M = _ref63.fromCone_M;
17072
17053
  CATs[id] = arguments[0];
17073
17054
  }
17074
17055
  function adapt(W1, W2) {
@@ -17244,9 +17225,9 @@
17244
17225
  _classPrivateFieldSet(_space, this, ColorSpace.get(space));
17245
17226
  this.coords = coords ? coords.slice() : [ 0, 0, 0 ];
17246
17227
  this.alpha = alpha < 1 ? alpha : 1;
17247
- for (var _i17 = 0; _i17 < this.coords.length; _i17++) {
17248
- if (this.coords[_i17] === 'NaN') {
17249
- this.coords[_i17] = NaN;
17228
+ for (var _i21 = 0; _i21 < this.coords.length; _i21++) {
17229
+ if (this.coords[_i21] === 'NaN') {
17230
+ this.coords[_i21] = NaN;
17250
17231
  }
17251
17232
  }
17252
17233
  var _loop7 = function _loop7(id) {
@@ -17384,8 +17365,8 @@
17384
17365
  parse: parse2,
17385
17366
  defaults: defaults
17386
17367
  });
17387
- for (var _i18 = 0, _Object$keys2 = Object.keys(spaces); _i18 < _Object$keys2.length; _i18++) {
17388
- var key = _Object$keys2[_i18];
17368
+ for (var _i22 = 0, _Object$keys2 = Object.keys(spaces); _i22 < _Object$keys2.length; _i22++) {
17369
+ var key = _Object$keys2[_i22];
17389
17370
  ColorSpace.register(spaces[key]);
17390
17371
  }
17391
17372
  for (var id in ColorSpace.registry) {
@@ -17591,7 +17572,7 @@
17591
17572
  this.g = _color2.g;
17592
17573
  this.b = _color2.b;
17593
17574
  this.alpha = +_color2.alpha;
17594
- } catch (err2) {
17575
+ } catch (_unused4) {
17595
17576
  throw new Error('Unable to parse color "'.concat(colorString, '"'));
17596
17577
  }
17597
17578
  return this;
@@ -17785,8 +17766,8 @@
17785
17766
  if (!refs || !refs.length) {
17786
17767
  return false;
17787
17768
  }
17788
- return refs.some(function(_ref63) {
17789
- var actualNode = _ref63.actualNode;
17769
+ return refs.some(function(_ref64) {
17770
+ var actualNode = _ref64.actualNode;
17790
17771
  return isVisible(actualNode, screenReader, recursed);
17791
17772
  });
17792
17773
  }
@@ -17798,7 +17779,7 @@
17798
17779
  var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
17799
17780
  el = vNode ? vNode.actualNode : el;
17800
17781
  var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
17801
- var _ref64 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref64.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref64.DOCUMENT_FRAGMENT_NODE;
17782
+ var _ref65 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref65.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref65.DOCUMENT_FRAGMENT_NODE;
17802
17783
  var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
17803
17784
  var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
17804
17785
  if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -18187,8 +18168,8 @@
18187
18168
  return;
18188
18169
  }
18189
18170
  var shadowId = domTree[0].shadowId;
18190
- for (var _i19 = 0; _i19 < expressions.length; _i19++) {
18191
- if (expressions[_i19].length > 1 && expressions[_i19].some(function(expression) {
18171
+ for (var _i23 = 0; _i23 < expressions.length; _i23++) {
18172
+ if (expressions[_i23].length > 1 && expressions[_i23].some(function(expression) {
18192
18173
  return isGlobalSelector(expression);
18193
18174
  })) {
18194
18175
  return;
@@ -18249,9 +18230,9 @@
18249
18230
  nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes;
18250
18231
  }
18251
18232
  if (exp.attributes) {
18252
- for (var _i20 = 0; _i20 < exp.attributes.length; _i20++) {
18233
+ for (var _i24 = 0; _i24 < exp.attributes.length; _i24++) {
18253
18234
  var _selectorMap;
18254
- var attr = exp.attributes[_i20];
18235
+ var attr = exp.attributes[_i24];
18255
18236
  if (attr.type === 'attrValue') {
18256
18237
  isComplexSelector = true;
18257
18238
  }
@@ -18326,7 +18307,7 @@
18326
18307
  return vNode;
18327
18308
  }
18328
18309
  function flattenTree(node, shadowId, parent) {
18329
- var retVal, realArray, nodeName2;
18310
+ var retVal, realArray;
18330
18311
  function reduceShadowDOM(res, child, parentVNode) {
18331
18312
  var replacements = flattenTree(child, shadowId, parentVNode);
18332
18313
  if (replacements) {
@@ -18337,7 +18318,7 @@
18337
18318
  if (node.documentElement) {
18338
18319
  node = node.documentElement;
18339
18320
  }
18340
- nodeName2 = node.nodeName.toLowerCase();
18321
+ var nodeName2 = node.nodeName.toLowerCase();
18341
18322
  if (is_shadow_root_default(node)) {
18342
18323
  hasShadowRoot = true;
18343
18324
  retVal = createNode(node, parent, shadowId);
@@ -18605,7 +18586,7 @@
18605
18586
  return {};
18606
18587
  }
18607
18588
  var navigator2 = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
18608
- var _ref65 = getOrientation(win) || {}, angle = _ref65.angle, type2 = _ref65.type;
18589
+ var _ref66 = getOrientation(win) || {}, angle = _ref66.angle, type2 = _ref66.type;
18609
18590
  return {
18610
18591
  userAgent: navigator2.userAgent,
18611
18592
  windowWidth: innerWidth,
@@ -18614,12 +18595,12 @@
18614
18595
  orientationType: type2
18615
18596
  };
18616
18597
  }
18617
- function getOrientation(_ref66) {
18618
- var screen = _ref66.screen;
18598
+ function getOrientation(_ref67) {
18599
+ var screen = _ref67.screen;
18619
18600
  return screen.orientation || screen.msOrientation || screen.mozOrientation;
18620
18601
  }
18621
- function createFrameContext(frame, _ref67) {
18622
- var focusable = _ref67.focusable, page = _ref67.page;
18602
+ function createFrameContext(frame, _ref68) {
18603
+ var focusable = _ref68.focusable, page = _ref68.page;
18623
18604
  return {
18624
18605
  node: frame,
18625
18606
  include: [],
@@ -18652,11 +18633,11 @@
18652
18633
  };
18653
18634
  }
18654
18635
  function normalizeContext(contextSpec) {
18655
- if (isContextObject(contextSpec)) {
18636
+ if (_isContextObject(contextSpec)) {
18656
18637
  var msg = ' must be used inside include or exclude. It should not be on the same object.';
18657
- assert2(!objectHasOwn(contextSpec, 'fromFrames'), 'fromFrames' + msg);
18658
- assert2(!objectHasOwn(contextSpec, 'fromShadowDom'), 'fromShadowDom' + msg);
18659
- } else if (isContextProp(contextSpec)) {
18638
+ assert2(!_objectHasOwn(contextSpec, 'fromFrames'), 'fromFrames' + msg);
18639
+ assert2(!_objectHasOwn(contextSpec, 'fromShadowDom'), 'fromShadowDom' + msg);
18640
+ } else if (_isContextProp(contextSpec)) {
18660
18641
  contextSpec = {
18661
18642
  include: contextSpec,
18662
18643
  exclude: []
@@ -18677,17 +18658,14 @@
18677
18658
  exclude: exclude
18678
18659
  };
18679
18660
  }
18680
- function isContextSpec(contextSpec) {
18681
- return isContextObject(contextSpec) || isContextProp(contextSpec);
18682
- }
18683
18661
  function normalizeContextList() {
18684
18662
  var selectorList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
18685
18663
  var normalizedList = [];
18686
- if (!isArrayLike(selectorList)) {
18664
+ if (!_isArrayLike(selectorList)) {
18687
18665
  selectorList = [ selectorList ];
18688
18666
  }
18689
- for (var _i21 = 0; _i21 < selectorList.length; _i21++) {
18690
- var normalizedSelector = normalizeContextSelector(selectorList[_i21]);
18667
+ for (var _i25 = 0; _i25 < selectorList.length; _i25++) {
18668
+ var normalizedSelector = normalizeContextSelector(selectorList[_i25]);
18691
18669
  if (normalizedSelector) {
18692
18670
  normalizedList.push(normalizedSelector);
18693
18671
  }
@@ -18701,10 +18679,10 @@
18701
18679
  if (typeof selector === 'string') {
18702
18680
  return [ selector ];
18703
18681
  }
18704
- if (isLabelledFramesSelector(selector)) {
18682
+ if (_isLabelledFramesSelector(selector)) {
18705
18683
  assertLabelledFrameSelector(selector);
18706
18684
  selector = selector.fromFrames;
18707
- } else if (isLabelledShadowDomSelector(selector)) {
18685
+ } else if (_isLabelledShadowDomSelector(selector)) {
18708
18686
  selector = [ selector ];
18709
18687
  }
18710
18688
  return normalizeFrameSelectors(selector);
@@ -18718,7 +18696,7 @@
18718
18696
  try {
18719
18697
  for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
18720
18698
  var selector = _step11.value;
18721
- if (isLabelledShadowDomSelector(selector)) {
18699
+ if (_isLabelledShadowDomSelector(selector)) {
18722
18700
  assertLabelledShadowDomSelector(selector);
18723
18701
  selector = selector.fromShadowDom;
18724
18702
  }
@@ -18734,34 +18712,20 @@
18734
18712
  }
18735
18713
  return normalizedSelectors;
18736
18714
  }
18737
- function isContextObject(contextSpec) {
18738
- return [ 'include', 'exclude' ].some(function(prop) {
18739
- return objectHasOwn(contextSpec, prop) && isContextProp(contextSpec[prop]);
18740
- });
18741
- }
18742
- function isContextProp(contextList) {
18743
- return typeof contextList === 'string' || contextList instanceof window.Node || isLabelledFramesSelector(contextList) || isLabelledShadowDomSelector(contextList) || isArrayLike(contextList);
18744
- }
18745
- function isLabelledFramesSelector(selector) {
18746
- return objectHasOwn(selector, 'fromFrames');
18747
- }
18748
- function isLabelledShadowDomSelector(selector) {
18749
- return objectHasOwn(selector, 'fromShadowDom');
18750
- }
18751
18715
  function assertLabelledFrameSelector(selector) {
18752
18716
  assert2(Array.isArray(selector.fromFrames), 'fromFrames property must be an array');
18753
18717
  assert2(selector.fromFrames.every(function(fromFrameSelector) {
18754
- return !objectHasOwn(fromFrameSelector, 'fromFrames');
18718
+ return !_objectHasOwn(fromFrameSelector, 'fromFrames');
18755
18719
  }), 'Invalid context; fromFrames selector must be appended, rather than nested');
18756
- assert2(!objectHasOwn(selector, 'fromShadowDom'), 'fromFrames and fromShadowDom cannot be used on the same object');
18720
+ assert2(!_objectHasOwn(selector, 'fromShadowDom'), 'fromFrames and fromShadowDom cannot be used on the same object');
18757
18721
  }
18758
18722
  function assertLabelledShadowDomSelector(selector) {
18759
18723
  assert2(Array.isArray(selector.fromShadowDom), 'fromShadowDom property must be an array');
18760
18724
  assert2(selector.fromShadowDom.every(function(fromShadowDomSelector) {
18761
- return !objectHasOwn(fromShadowDomSelector, 'fromFrames');
18725
+ return !_objectHasOwn(fromShadowDomSelector, 'fromFrames');
18762
18726
  }), 'shadow selector must be inside fromFrame instead');
18763
18727
  assert2(selector.fromShadowDom.every(function(fromShadowDomSelector) {
18764
- return !objectHasOwn(fromShadowDomSelector, 'fromShadowDom');
18728
+ return !_objectHasOwn(fromShadowDomSelector, 'fromShadowDom');
18765
18729
  }), 'fromShadowDom selector must be appended, rather than nested');
18766
18730
  }
18767
18731
  function isShadowSelector(selector) {
@@ -18769,22 +18733,13 @@
18769
18733
  return typeof str === 'string';
18770
18734
  });
18771
18735
  }
18772
- function isArrayLike(arr) {
18773
- return arr && _typeof(arr) === 'object' && typeof arr.length === 'number' && arr instanceof window.Node === false;
18774
- }
18775
18736
  function assert2(bool, str) {
18776
18737
  assert_default(bool, 'Invalid context; '.concat(str, '\nSee: https://github.com/dequelabs/axe-core/blob/master/doc/context.md'));
18777
18738
  }
18778
- function objectHasOwn(obj, prop) {
18779
- if (!obj || _typeof(obj) !== 'object') {
18780
- return false;
18781
- }
18782
- return Object.prototype.hasOwnProperty.call(obj, prop);
18783
- }
18784
18739
  function parseSelectorArray(context, type2) {
18785
18740
  var result = [];
18786
- for (var _i22 = 0, l = context[type2].length; _i22 < l; _i22++) {
18787
- var item = context[type2][_i22];
18741
+ for (var _i26 = 0, l = context[type2].length; _i26 < l; _i26++) {
18742
+ var item = context[type2][_i26];
18788
18743
  if (item instanceof window.Node) {
18789
18744
  if (item.documentElement instanceof window.Node) {
18790
18745
  result.push(context.flatTree[0]);
@@ -18822,13 +18777,13 @@
18822
18777
  });
18823
18778
  }
18824
18779
  function Context(spec, flatTree) {
18825
- var _spec, _spec2, _spec3, _spec4, _this5 = this;
18780
+ var _spec2, _spec3, _spec4, _spec5, _this5 = this;
18826
18781
  spec = _clone(spec);
18827
18782
  this.frames = [];
18828
- this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
18829
- this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
18830
- this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;
18831
- this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};
18783
+ this.page = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.page) === 'boolean' ? spec.page : void 0;
18784
+ this.initiator = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.initiator) === 'boolean' ? spec.initiator : true;
18785
+ this.focusable = typeof ((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.focusable) === 'boolean' ? spec.focusable : true;
18786
+ this.size = _typeof((_spec5 = spec) === null || _spec5 === void 0 ? void 0 : _spec5.size) === 'object' ? spec.size : {};
18832
18787
  spec = normalizeContext(spec);
18833
18788
  this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : _getFlattenedTree(getRootNode2(spec));
18834
18789
  this.exclude = spec.exclude;
@@ -18858,8 +18813,8 @@
18858
18813
  }
18859
18814
  context.frames.push(createFrameContext(frame, context));
18860
18815
  }
18861
- function isPageContext(_ref68) {
18862
- var include = _ref68.include;
18816
+ function isPageContext(_ref69) {
18817
+ var include = _ref69.include;
18863
18818
  return include.length === 1 && include[0].actualNode === document.documentElement;
18864
18819
  }
18865
18820
  function validateContext(context) {
@@ -18868,11 +18823,11 @@
18868
18823
  throw new Error('No elements found for include in ' + env + ' Context');
18869
18824
  }
18870
18825
  }
18871
- function getRootNode2(_ref69) {
18872
- var include = _ref69.include, exclude = _ref69.exclude;
18826
+ function getRootNode2(_ref70) {
18827
+ var include = _ref70.include, exclude = _ref70.exclude;
18873
18828
  var selectors = Array.from(include).concat(Array.from(exclude));
18874
- for (var _i23 = 0; _i23 < selectors.length; _i23++) {
18875
- var item = selectors[_i23];
18829
+ for (var _i27 = 0; _i27 < selectors.length; _i27++) {
18830
+ var item = selectors[_i27];
18876
18831
  if (item instanceof window.Element) {
18877
18832
  return item.ownerDocument.documentElement;
18878
18833
  }
@@ -18888,8 +18843,8 @@
18888
18843
  return [];
18889
18844
  }
18890
18845
  var _Context = new Context(context), frames = _Context.frames;
18891
- return frames.map(function(_ref70) {
18892
- var node = _ref70.node, frameContext = _objectWithoutProperties(_ref70, _excluded14);
18846
+ return frames.map(function(_ref71) {
18847
+ var node = _ref71.node, frameContext = _objectWithoutProperties(_ref71, _excluded14);
18893
18848
  frameContext.initiator = false;
18894
18849
  var frameSelector = _getAncestry(node);
18895
18850
  return {
@@ -18899,8 +18854,8 @@
18899
18854
  });
18900
18855
  }
18901
18856
  function _getRule(ruleId) {
18902
- var rule = axe._audit.rules.find(function(_ref71) {
18903
- var id = _ref71.id;
18857
+ var rule = axe._audit.rules.find(function(_ref72) {
18858
+ var id = _ref72.id;
18904
18859
  return id === ruleId;
18905
18860
  });
18906
18861
  if (!rule) {
@@ -19007,6 +18962,32 @@
19007
18962
  return styleSheet;
19008
18963
  }
19009
18964
  var inject_style_default = injectStyle;
18965
+ function _isArrayLike(arr) {
18966
+ return !!arr && _typeof(arr) === 'object' && typeof arr.length === 'number' && arr instanceof window.Node === false;
18967
+ }
18968
+ function _objectHasOwn(obj, prop) {
18969
+ if (!obj || _typeof(obj) !== 'object') {
18970
+ return false;
18971
+ }
18972
+ return Object.prototype.hasOwnProperty.call(obj, prop);
18973
+ }
18974
+ function _isContextSpec(contextSpec) {
18975
+ return _isContextObject(contextSpec) || _isContextProp(contextSpec);
18976
+ }
18977
+ function _isContextObject(contextSpec) {
18978
+ return [ 'include', 'exclude' ].some(function(prop) {
18979
+ return _objectHasOwn(contextSpec, prop) && _isContextProp(contextSpec[prop]);
18980
+ });
18981
+ }
18982
+ function _isContextProp(contextList) {
18983
+ return typeof contextList === 'string' || contextList instanceof window.Node || _isLabelledFramesSelector(contextList) || _isLabelledShadowDomSelector(contextList) || _isArrayLike(contextList);
18984
+ }
18985
+ function _isLabelledFramesSelector(selector) {
18986
+ return _objectHasOwn(selector, 'fromFrames');
18987
+ }
18988
+ function _isLabelledShadowDomSelector(selector) {
18989
+ return _objectHasOwn(selector, 'fromShadowDom');
18990
+ }
19010
18991
  function isHidden(el, recursed) {
19011
18992
  var node = get_node_from_tree_default(el);
19012
18993
  if (el.nodeType === 9) {
@@ -19039,8 +19020,8 @@
19039
19020
  return !!standards_default.htmlElms[nodeName2];
19040
19021
  }
19041
19022
  var is_html_element_default = isHtmlElement;
19042
- function _isNodeInContext(node, _ref72) {
19043
- var _ref72$include = _ref72.include, include = _ref72$include === void 0 ? [] : _ref72$include, _ref72$exclude = _ref72.exclude, exclude = _ref72$exclude === void 0 ? [] : _ref72$exclude;
19023
+ function _isNodeInContext(node, _ref73) {
19024
+ var _ref73$include = _ref73.include, include = _ref73$include === void 0 ? [] : _ref73$include, _ref73$exclude = _ref73.exclude, exclude = _ref73$exclude === void 0 ? [] : _ref73$exclude;
19044
19025
  var filterInclude = include.filter(function(candidate) {
19045
19026
  return _contains(candidate, node);
19046
19027
  });
@@ -19247,16 +19228,16 @@
19247
19228
  }
19248
19229
  },
19249
19230
  logMeasures: function logMeasures(measureName) {
19250
- function logMeasure(req2) {
19251
- log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');
19231
+ function logMeasure(req) {
19232
+ log_default('Measure ' + req.name + ' took ' + req.duration + 'ms');
19252
19233
  }
19253
19234
  if (window.performance && window.performance.getEntriesByType !== void 0) {
19254
19235
  var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
19255
19236
  var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
19256
19237
  return measure.startTime >= axeStart.startTime;
19257
19238
  });
19258
- for (var i = 0; i < measures.length; ++i) {
19259
- var req = measures[i];
19239
+ for (var _i28 = 0; _i28 < measures.length; ++_i28) {
19240
+ var req = measures[_i28];
19260
19241
  if (req.name === measureName) {
19261
19242
  logMeasure(req);
19262
19243
  return;
@@ -19350,9 +19331,9 @@
19350
19331
  var childAny = null;
19351
19332
  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);
19352
19333
  var added = false;
19353
- for (var _i24 = 0; _i24 < combinedLength; _i24++) {
19334
+ for (var _i29 = 0; _i29 < combinedLength; _i29++) {
19354
19335
  var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
19355
- var exp = _i24 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i24] : currentLevel.thisLevel[_i24 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
19336
+ var exp = _i29 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i29] : currentLevel.thisLevel[_i29 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
19356
19337
  if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
19357
19338
  if (exp.length === 1) {
19358
19339
  if (!added && (!filter || filter(vNode))) {
@@ -19396,8 +19377,8 @@
19396
19377
  return matchExpressions(domTree, expressions, filter);
19397
19378
  }
19398
19379
  var query_selector_all_filter_default = querySelectorAllFilter;
19399
- function preloadCssom(_ref73) {
19400
- var _ref73$treeRoot = _ref73.treeRoot, treeRoot = _ref73$treeRoot === void 0 ? axe._tree[0] : _ref73$treeRoot;
19380
+ function preloadCssom(_ref74) {
19381
+ var _ref74$treeRoot = _ref74.treeRoot, treeRoot = _ref74$treeRoot === void 0 ? axe._tree[0] : _ref74$treeRoot;
19401
19382
  var rootNodes = getAllRootNodesInTree(treeRoot);
19402
19383
  if (!rootNodes.length) {
19403
19384
  return Promise.resolve();
@@ -19427,8 +19408,8 @@
19427
19408
  }
19428
19409
  function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
19429
19410
  var promises = [];
19430
- rootNodes.forEach(function(_ref74, index) {
19431
- var rootNode = _ref74.rootNode, shadowId = _ref74.shadowId;
19411
+ rootNodes.forEach(function(_ref75, index) {
19412
+ var rootNode = _ref75.rootNode, shadowId = _ref75.shadowId;
19432
19413
  var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
19433
19414
  if (!sheets) {
19434
19415
  return Promise.all(promises);
@@ -19514,10 +19495,10 @@
19514
19495
  return true;
19515
19496
  });
19516
19497
  }
19517
- function preloadMedia(_ref75) {
19518
- var _ref75$treeRoot = _ref75.treeRoot, treeRoot = _ref75$treeRoot === void 0 ? axe._tree[0] : _ref75$treeRoot;
19519
- var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref76) {
19520
- var actualNode = _ref76.actualNode;
19498
+ function preloadMedia(_ref76) {
19499
+ var _ref76$treeRoot = _ref76.treeRoot, treeRoot = _ref76$treeRoot === void 0 ? axe._tree[0] : _ref76$treeRoot;
19500
+ var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref77) {
19501
+ var actualNode = _ref77.actualNode;
19521
19502
  if (actualNode.hasAttribute('src')) {
19522
19503
  return !!actualNode.getAttribute('src');
19523
19504
  }
@@ -19529,8 +19510,8 @@
19529
19510
  }
19530
19511
  return true;
19531
19512
  });
19532
- return Promise.all(mediaVirtualNodes.map(function(_ref77) {
19533
- var actualNode = _ref77.actualNode;
19513
+ return Promise.all(mediaVirtualNodes.map(function(_ref78) {
19514
+ var actualNode = _ref78.actualNode;
19534
19515
  return isMediaElementReady(actualNode);
19535
19516
  }));
19536
19517
  }
@@ -19643,7 +19624,7 @@
19643
19624
  throw new Error();
19644
19625
  }
19645
19626
  return msg;
19646
- } catch (e) {
19627
+ } catch (_unused5) {
19647
19628
  if (typeof checkData.missingData === 'string') {
19648
19629
  return messages.incomplete[checkData.missingData];
19649
19630
  } else {
@@ -19683,7 +19664,7 @@
19683
19664
  }
19684
19665
  var query_selector_all_default = querySelectorAll;
19685
19666
  function matchTags(rule, runOnly) {
19686
- var include, exclude, matching;
19667
+ var include, exclude;
19687
19668
  var defaultExclude = axe._audit && axe._audit.tagExclude ? axe._audit.tagExclude : [];
19688
19669
  if (runOnly.hasOwnProperty('include') || runOnly.hasOwnProperty('exclude')) {
19689
19670
  include = runOnly.include || [];
@@ -19699,7 +19680,7 @@
19699
19680
  return include.indexOf(tag) === -1;
19700
19681
  });
19701
19682
  }
19702
- matching = include.some(function(tag) {
19683
+ var matching = include.some(function(tag) {
19703
19684
  return rule.tags.indexOf(tag) !== -1;
19704
19685
  });
19705
19686
  if (matching || include.length === 0 && rule.enabled !== false) {
@@ -19779,8 +19760,8 @@
19779
19760
  }
19780
19761
  var outerIncludes = getOuterIncludes(context.include);
19781
19762
  var isInContext = getContextFilter(context);
19782
- for (var _i25 = 0; _i25 < outerIncludes.length; _i25++) {
19783
- candidate = outerIncludes[_i25];
19763
+ for (var _i30 = 0; _i30 < outerIncludes.length; _i30++) {
19764
+ candidate = outerIncludes[_i30];
19784
19765
  var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
19785
19766
  result = mergeArrayUniques(result, nodes);
19786
19767
  }
@@ -19817,9 +19798,9 @@
19817
19798
  arr1 = arr2;
19818
19799
  arr2 = temp;
19819
19800
  }
19820
- for (var _i26 = 0, l = arr2.length; _i26 < l; _i26++) {
19821
- if (!arr1.includes(arr2[_i26])) {
19822
- arr1.push(arr2[_i26]);
19801
+ for (var _i31 = 0, l = arr2.length; _i31 < l; _i31++) {
19802
+ if (!arr1.includes(arr2[_i31])) {
19803
+ arr1.push(arr2[_i31]);
19823
19804
  }
19824
19805
  }
19825
19806
  return arr1;
@@ -19833,8 +19814,8 @@
19833
19814
  }
19834
19815
  }
19835
19816
  function setScrollState(scrollState) {
19836
- scrollState.forEach(function(_ref79) {
19837
- var elm = _ref79.elm, top = _ref79.top, left = _ref79.left;
19817
+ scrollState.forEach(function(_ref80) {
19818
+ var elm = _ref80.elm, top = _ref80.top, left = _ref80.left;
19838
19819
  return setScroll(elm, top, left);
19839
19820
  });
19840
19821
  }
@@ -19862,8 +19843,8 @@
19862
19843
  }
19863
19844
  return selectAllRecursive(selectorArr, doc);
19864
19845
  }
19865
- function selectAllRecursive(_ref80, doc) {
19866
- var _ref81 = _toArray(_ref80), selectorStr = _ref81[0], restSelector = _ref81.slice(1);
19846
+ function selectAllRecursive(_ref81, doc) {
19847
+ var _ref82 = _toArray(_ref81), selectorStr = _ref82[0], restSelector = _ref82.slice(1);
19867
19848
  var elms = doc.querySelectorAll(selectorStr);
19868
19849
  if (restSelector.length === 0) {
19869
19850
  return Array.from(elms);
@@ -19894,8 +19875,8 @@
19894
19875
  while (lang.length < 3) {
19895
19876
  lang += '`';
19896
19877
  }
19897
- for (var _i27 = 0; _i27 <= lang.length - 1; _i27++) {
19898
- var index = lang.charCodeAt(_i27) - 96;
19878
+ for (var _i32 = 0; _i32 <= lang.length - 1; _i32++) {
19879
+ var index = lang.charCodeAt(_i32) - 96;
19899
19880
  array = array[index];
19900
19881
  if (!array) {
19901
19882
  return false;
@@ -19965,9 +19946,9 @@
19965
19946
  nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
19966
19947
  });
19967
19948
  function normaliseProps(serialNode) {
19968
- var _serialNode$nodeName, _ref82, _serialNode$nodeType;
19949
+ var _serialNode$nodeName, _ref83, _serialNode$nodeType;
19969
19950
  var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
19970
- var nodeType = (_ref82 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref82 !== void 0 ? _ref82 : 1;
19951
+ var nodeType = (_ref83 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref83 !== void 0 ? _ref83 : 1;
19971
19952
  assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
19972
19953
  assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
19973
19954
  nodeName2 = nodeName2.toLowerCase();
@@ -19988,8 +19969,8 @@
19988
19969
  delete props.attributes;
19989
19970
  return Object.freeze(props);
19990
19971
  }
19991
- function normaliseAttrs(_ref83) {
19992
- var _ref83$attributes = _ref83.attributes, attributes2 = _ref83$attributes === void 0 ? {} : _ref83$attributes;
19972
+ function normaliseAttrs(_ref84) {
19973
+ var _ref84$attributes = _ref84.attributes, attributes2 = _ref84$attributes === void 0 ? {} : _ref84$attributes;
19993
19974
  var attrMap = {
19994
19975
  htmlFor: 'for',
19995
19976
  className: 'class'
@@ -20064,8 +20045,7 @@
20064
20045
  }
20065
20046
  }
20066
20047
  function configure(spec) {
20067
- var audit;
20068
- audit = axe._audit;
20048
+ var audit = axe._audit;
20069
20049
  if (!audit) {
20070
20050
  throw new Error('No audit configured');
20071
20051
  }
@@ -20371,8 +20351,8 @@
20371
20351
  return true;
20372
20352
  }
20373
20353
  var bgColor, bgImage;
20374
- for (rowIndex = 0; rowIndex < rowLength; rowIndex++) {
20375
- row = node.rows[rowIndex];
20354
+ for (var _rowIndex = 0; _rowIndex < rowLength; _rowIndex++) {
20355
+ row = node.rows[_rowIndex];
20376
20356
  if (bgColor && bgColor !== window.getComputedStyle(row).getPropertyValue('background-color')) {
20377
20357
  return true;
20378
20358
  } else {
@@ -20682,8 +20662,8 @@
20682
20662
  idRefs.get(_id3).push(node);
20683
20663
  }
20684
20664
  }
20685
- for (var _i28 = 0; _i28 < refAttrs.length; ++_i28) {
20686
- var attr = refAttrs[_i28];
20665
+ for (var _i33 = 0; _i33 < refAttrs.length; ++_i33) {
20666
+ var attr = refAttrs[_i33];
20687
20667
  var attrValue = sanitize_default(node.getAttribute(attr) || '');
20688
20668
  if (!attrValue) {
20689
20669
  continue;
@@ -20705,9 +20685,9 @@
20705
20685
  }
20706
20686
  }
20707
20687
  }
20708
- for (var _i29 = 0; _i29 < node.childNodes.length; _i29++) {
20709
- if (node.childNodes[_i29].nodeType === 1) {
20710
- cacheIdRefs(node.childNodes[_i29], idRefs, refAttrs);
20688
+ for (var _i34 = 0; _i34 < node.childNodes.length; _i34++) {
20689
+ if (node.childNodes[_i34].nodeType === 1) {
20690
+ cacheIdRefs(node.childNodes[_i34], idRefs, refAttrs);
20711
20691
  }
20712
20692
  }
20713
20693
  }
@@ -22555,8 +22535,8 @@
22555
22535
  nodeName: [ 'abbr', 'address', 'canvas', 'div', 'p', 'pre', 'blockquote', 'ins', 'del', 'output', 'span', 'table', 'tbody', 'thead', 'tfoot', 'td', 'em', 'strong', 'small', 's', 'cite', 'q', 'dfn', 'abbr', 'time', 'code', 'var', 'samp', 'kbd', 'sub', 'sup', 'i', 'b', 'u', 'mark', 'ruby', 'rt', 'rp', 'bdi', 'bdo', 'br', 'wbr', 'th', 'tr' ]
22556
22536
  } ];
22557
22537
  lookupTable.evaluateRoleForElement = {
22558
- A: function A(_ref84) {
22559
- var node = _ref84.node, out = _ref84.out;
22538
+ A: function A(_ref85) {
22539
+ var node = _ref85.node, out = _ref85.out;
22560
22540
  if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
22561
22541
  return true;
22562
22542
  }
@@ -22565,19 +22545,19 @@
22565
22545
  }
22566
22546
  return true;
22567
22547
  },
22568
- AREA: function AREA(_ref85) {
22569
- var node = _ref85.node;
22548
+ AREA: function AREA(_ref86) {
22549
+ var node = _ref86.node;
22570
22550
  return !node.href;
22571
22551
  },
22572
- BUTTON: function BUTTON(_ref86) {
22573
- var node = _ref86.node, role = _ref86.role, out = _ref86.out;
22552
+ BUTTON: function BUTTON(_ref87) {
22553
+ var node = _ref87.node, role = _ref87.role, out = _ref87.out;
22574
22554
  if (node.getAttribute('type') === 'menu') {
22575
22555
  return role === 'menuitem';
22576
22556
  }
22577
22557
  return out;
22578
22558
  },
22579
- IMG: function IMG(_ref87) {
22580
- var node = _ref87.node, role = _ref87.role, out = _ref87.out;
22559
+ IMG: function IMG(_ref88) {
22560
+ var node = _ref88.node, role = _ref88.role, out = _ref88.out;
22581
22561
  switch (node.alt) {
22582
22562
  case null:
22583
22563
  return out;
@@ -22589,8 +22569,8 @@
22589
22569
  return role !== 'presentation' && role !== 'none';
22590
22570
  }
22591
22571
  },
22592
- INPUT: function INPUT(_ref88) {
22593
- var node = _ref88.node, role = _ref88.role, out = _ref88.out;
22572
+ INPUT: function INPUT(_ref89) {
22573
+ var node = _ref89.node, role = _ref89.role, out = _ref89.out;
22594
22574
  switch (node.type) {
22595
22575
  case 'button':
22596
22576
  case 'image':
@@ -22620,32 +22600,32 @@
22620
22600
  return false;
22621
22601
  }
22622
22602
  },
22623
- LI: function LI(_ref89) {
22624
- var node = _ref89.node, out = _ref89.out;
22603
+ LI: function LI(_ref90) {
22604
+ var node = _ref90.node, out = _ref90.out;
22625
22605
  var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
22626
22606
  if (hasImplicitListitemRole) {
22627
22607
  return out;
22628
22608
  }
22629
22609
  return true;
22630
22610
  },
22631
- MENU: function MENU(_ref90) {
22632
- var node = _ref90.node;
22611
+ MENU: function MENU(_ref91) {
22612
+ var node = _ref91.node;
22633
22613
  if (node.getAttribute('type') === 'context') {
22634
22614
  return false;
22635
22615
  }
22636
22616
  return true;
22637
22617
  },
22638
- OPTION: function OPTION(_ref91) {
22639
- var node = _ref91.node;
22618
+ OPTION: function OPTION(_ref92) {
22619
+ var node = _ref92.node;
22640
22620
  var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
22641
22621
  return !withinOptionList;
22642
22622
  },
22643
- SELECT: function SELECT(_ref92) {
22644
- var node = _ref92.node, role = _ref92.role;
22623
+ SELECT: function SELECT(_ref93) {
22624
+ var node = _ref93.node, role = _ref93.role;
22645
22625
  return !node.multiple && node.size <= 1 && role === 'menu';
22646
22626
  },
22647
- SVG: function SVG(_ref93) {
22648
- var node = _ref93.node, out = _ref93.out;
22627
+ SVG: function SVG(_ref94) {
22628
+ var node = _ref94.node, out = _ref94.out;
22649
22629
  if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
22650
22630
  return true;
22651
22631
  }
@@ -22671,7 +22651,7 @@
22671
22651
  var is_accessible_ref_default = isAccessibleRef;
22672
22652
  function _isComboboxPopup(virtualNode) {
22673
22653
  var _popupRoles;
22674
- var _ref94 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref94.popupRoles;
22654
+ var _ref95 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref95.popupRoles;
22675
22655
  var role = get_role_default(virtualNode);
22676
22656
  (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
22677
22657
  if (!popupRoles.includes(role)) {
@@ -22763,7 +22743,7 @@
22763
22743
  try {
22764
22744
  var doc = get_root_node_default2(vNode.actualNode);
22765
22745
  return !!(value && doc.getElementById(value));
22766
- } catch (e) {
22746
+ } catch (_unused6) {
22767
22747
  throw new TypeError('Cannot resolve id references for partial DOM');
22768
22748
  }
22769
22749
 
@@ -22854,8 +22834,8 @@
22854
22834
  if (!virtualNode.children) {
22855
22835
  return void 0;
22856
22836
  }
22857
- var titleNode = virtualNode.children.find(function(_ref95) {
22858
- var props = _ref95.props;
22837
+ var titleNode = virtualNode.children.find(function(_ref96) {
22838
+ var props = _ref96.props;
22859
22839
  return props.nodeName === 'title';
22860
22840
  });
22861
22841
  if (!titleNode) {
@@ -22874,7 +22854,7 @@
22874
22854
  });
22875
22855
  return false;
22876
22856
  }
22877
- } catch (e) {
22857
+ } catch (_unused7) {
22878
22858
  return void 0;
22879
22859
  }
22880
22860
  return true;
@@ -22992,8 +22972,8 @@
22992
22972
  }
22993
22973
  return false;
22994
22974
  }
22995
- function getNumberValue(domNode, _ref96) {
22996
- var cssProperty = _ref96.cssProperty, absoluteValues = _ref96.absoluteValues, normalValue = _ref96.normalValue;
22975
+ function getNumberValue(domNode, _ref97) {
22976
+ var cssProperty = _ref97.cssProperty, absoluteValues = _ref97.absoluteValues, normalValue = _ref97.normalValue;
22997
22977
  var computedStyle = window.getComputedStyle(domNode);
22998
22978
  var cssPropValue = computedStyle.getPropertyValue(cssProperty);
22999
22979
  if (cssPropValue === 'normal') {
@@ -23043,7 +23023,7 @@
23043
23023
  function ariaLabelledbyEvaluate(node, options, virtualNode) {
23044
23024
  try {
23045
23025
  return !!sanitize_default(arialabelledby_text_default(virtualNode));
23046
- } catch (e) {
23026
+ } catch (_unused8) {
23047
23027
  return void 0;
23048
23028
  }
23049
23029
  }
@@ -23140,8 +23120,8 @@
23140
23120
  } else if (node !== document.body && has_content_default(node, true) && !isShallowlyHidden(virtualNode)) {
23141
23121
  return [ virtualNode ];
23142
23122
  } else {
23143
- return virtualNode.children.filter(function(_ref97) {
23144
- var actualNode = _ref97.actualNode;
23123
+ return virtualNode.children.filter(function(_ref98) {
23124
+ var actualNode = _ref98.actualNode;
23145
23125
  return actualNode.nodeType === 1;
23146
23126
  }).map(function(vNode) {
23147
23127
  return findRegionlessElms(vNode, options);
@@ -23223,16 +23203,16 @@
23223
23203
  var outerText = elm.textContent.trim();
23224
23204
  var innerText = outerText;
23225
23205
  while (innerText === outerText && nextNode !== void 0) {
23226
- var _i30 = -1;
23206
+ var _i35 = -1;
23227
23207
  elm = nextNode;
23228
23208
  if (elm.children.length === 0) {
23229
23209
  return elm;
23230
23210
  }
23231
23211
  do {
23232
- _i30++;
23233
- innerText = elm.children[_i30].textContent.trim();
23234
- } while (innerText === '' && _i30 + 1 < elm.children.length);
23235
- nextNode = elm.children[_i30];
23212
+ _i35++;
23213
+ innerText = elm.children[_i35].textContent.trim();
23214
+ } while (innerText === '' && _i35 + 1 < elm.children.length);
23215
+ nextNode = elm.children[_i35];
23236
23216
  }
23237
23217
  return elm;
23238
23218
  }
@@ -23289,7 +23269,7 @@
23289
23269
  var separatorRegex = /[;,\s]/;
23290
23270
  var validRedirectNumRegex = /^[0-9.]+$/;
23291
23271
  function metaRefreshEvaluate(node, options, virtualNode) {
23292
- var _ref98 = options || {}, minDelay = _ref98.minDelay, maxDelay = _ref98.maxDelay;
23272
+ var _ref99 = options || {}, minDelay = _ref99.minDelay, maxDelay = _ref99.maxDelay;
23293
23273
  var content = (virtualNode.attr('content') || '').trim();
23294
23274
  var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
23295
23275
  if (!redirectStr.match(validRedirectNumRegex)) {
@@ -23640,8 +23620,8 @@
23640
23620
  if (a2.length !== b2.length) {
23641
23621
  return false;
23642
23622
  }
23643
- for (var i = 0; i < a2.length; ++i) {
23644
- if (a2[i] !== b2[i]) {
23623
+ for (var _i36 = 0; _i36 < a2.length; ++_i36) {
23624
+ if (a2[_i36] !== b2[_i36]) {
23645
23625
  return false;
23646
23626
  }
23647
23627
  }
@@ -23652,10 +23632,10 @@
23652
23632
  var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
23653
23633
  var edges = [ 'top', 'right', 'bottom', 'left' ];
23654
23634
  function _getStrokeColorsFromShadows(parsedShadows) {
23655
- var _ref99 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref99$ignoreEdgeCoun = _ref99.ignoreEdgeCount, ignoreEdgeCount = _ref99$ignoreEdgeCoun === void 0 ? false : _ref99$ignoreEdgeCoun;
23635
+ var _ref100 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref100$ignoreEdgeCou = _ref100.ignoreEdgeCount, ignoreEdgeCount = _ref100$ignoreEdgeCou === void 0 ? false : _ref100$ignoreEdgeCou;
23656
23636
  var shadowMap = getShadowColorsMap(parsedShadows);
23657
- var shadowsByColor = Object.entries(shadowMap).map(function(_ref100) {
23658
- var _ref101 = _slicedToArray(_ref100, 2), colorStr = _ref101[0], sides = _ref101[1];
23637
+ var shadowsByColor = Object.entries(shadowMap).map(function(_ref101) {
23638
+ var _ref102 = _slicedToArray(_ref101, 2), colorStr = _ref102[0], sides = _ref102[1];
23659
23639
  var edgeCount = edges.filter(function(side) {
23660
23640
  return sides[side].length !== 0;
23661
23641
  }).length;
@@ -23665,8 +23645,8 @@
23665
23645
  edgeCount: edgeCount
23666
23646
  };
23667
23647
  });
23668
- if (!ignoreEdgeCount && shadowsByColor.some(function(_ref102) {
23669
- var edgeCount = _ref102.edgeCount;
23648
+ if (!ignoreEdgeCount && shadowsByColor.some(function(_ref103) {
23649
+ var edgeCount = _ref103.edgeCount;
23670
23650
  return edgeCount > 1 && edgeCount < 4;
23671
23651
  })) {
23672
23652
  return null;
@@ -23708,8 +23688,8 @@
23708
23688
  }
23709
23689
  return colorMap;
23710
23690
  }
23711
- function shadowGroupToColor(_ref103) {
23712
- var colorStr = _ref103.colorStr, sides = _ref103.sides, edgeCount = _ref103.edgeCount;
23691
+ function shadowGroupToColor(_ref104) {
23692
+ var colorStr = _ref104.colorStr, sides = _ref104.sides, edgeCount = _ref104.edgeCount;
23713
23693
  if (edgeCount !== 4) {
23714
23694
  return null;
23715
23695
  }
@@ -23760,8 +23740,8 @@
23760
23740
  throw new Error('Unable to process text-shadows: '.concat(str));
23761
23741
  }
23762
23742
  }
23763
- shadows.forEach(function(_ref104) {
23764
- var pixels = _ref104.pixels;
23743
+ shadows.forEach(function(_ref105) {
23744
+ var pixels = _ref105.pixels;
23765
23745
  if (pixels.length === 2) {
23766
23746
  pixels.push(0);
23767
23747
  }
@@ -23769,7 +23749,7 @@
23769
23749
  return shadows;
23770
23750
  }
23771
23751
  function _getTextShadowColors(node) {
23772
- var _ref105 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref105.minRatio, maxRatio = _ref105.maxRatio, ignoreEdgeCount = _ref105.ignoreEdgeCount;
23752
+ var _ref106 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref106.minRatio, maxRatio = _ref106.maxRatio, ignoreEdgeCount = _ref106.ignoreEdgeCount;
23773
23753
  var shadowColors = [];
23774
23754
  var style = window.getComputedStyle(node);
23775
23755
  var textShadow = style.getPropertyValue('text-shadow');
@@ -23832,8 +23812,8 @@
23832
23812
  }
23833
23813
  return shadowColors;
23834
23814
  }
23835
- function textShadowColor(_ref106) {
23836
- var colorStr = _ref106.colorStr, offsetX = _ref106.offsetX, offsetY = _ref106.offsetY, blurRadius = _ref106.blurRadius, fontSize = _ref106.fontSize;
23815
+ function textShadowColor(_ref107) {
23816
+ var colorStr = _ref107.colorStr, offsetX = _ref107.offsetX, offsetY = _ref107.offsetY, blurRadius = _ref107.blurRadius, fontSize = _ref107.fontSize;
23837
23817
  if (offsetX > blurRadius || offsetY > blurRadius) {
23838
23818
  return new color_default(0, 0, 0, 0);
23839
23819
  }
@@ -23862,13 +23842,13 @@
23862
23842
  var _stackingOrder2;
23863
23843
  var bgVNode = get_node_from_tree_default(bgElm);
23864
23844
  var bgColor = getOwnBackgroundColor2(bgVNode);
23865
- var stackingOrder = bgVNode._stackingOrder.filter(function(_ref107) {
23866
- var vNode = _ref107.vNode;
23845
+ var stackingOrder = bgVNode._stackingOrder.filter(function(_ref108) {
23846
+ var vNode = _ref108.vNode;
23867
23847
  return !!vNode;
23868
23848
  });
23869
- stackingOrder.forEach(function(_ref108, index) {
23849
+ stackingOrder.forEach(function(_ref109, index) {
23870
23850
  var _stackingOrder;
23871
- var vNode = _ref108.vNode;
23851
+ var vNode = _ref109.vNode;
23872
23852
  var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
23873
23853
  var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
23874
23854
  if (index === 0 && !contextMap.get(vNode)) {
@@ -23976,8 +23956,8 @@
23976
23956
  color: bgColors.reduce(_flattenShadowColors)
23977
23957
  } ];
23978
23958
  }
23979
- for (var _i31 = 0; _i31 < elmStack.length; _i31++) {
23980
- var bgElm = elmStack[_i31];
23959
+ for (var _i37 = 0; _i37 < elmStack.length; _i37++) {
23960
+ var bgElm = elmStack[_i37];
23981
23961
  var bgElmStyle = window.getComputedStyle(bgElm);
23982
23962
  if (element_has_image_default(bgElm, bgElmStyle)) {
23983
23963
  bgElms.push(bgElm);
@@ -24077,8 +24057,8 @@
24077
24057
  });
24078
24058
  } ];
24079
24059
  var fgColors = [];
24080
- for (var _i32 = 0, _colorStack = colorStack; _i32 < _colorStack.length; _i32++) {
24081
- var colorFn = _colorStack[_i32];
24060
+ for (var _i38 = 0, _colorStack = colorStack; _i38 < _colorStack.length; _i38++) {
24061
+ var colorFn = _colorStack[_i38];
24082
24062
  var _color4 = colorFn();
24083
24063
  if (!_color4) {
24084
24064
  continue;
@@ -24104,8 +24084,8 @@
24104
24084
  function getTextColor(nodeStyle) {
24105
24085
  return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
24106
24086
  }
24107
- function getStrokeColor(nodeStyle, _ref109) {
24108
- var _ref109$textStrokeEmM = _ref109.textStrokeEmMin, textStrokeEmMin = _ref109$textStrokeEmM === void 0 ? 0 : _ref109$textStrokeEmM;
24087
+ function getStrokeColor(nodeStyle, _ref110) {
24088
+ var _ref110$textStrokeEmM = _ref110.textStrokeEmMin, textStrokeEmMin = _ref110$textStrokeEmM === void 0 ? 0 : _ref110$textStrokeEmM;
24109
24089
  var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
24110
24090
  if (strokeWidth === 0) {
24111
24091
  return null;
@@ -24267,8 +24247,8 @@
24267
24247
  if (results.length < 2) {
24268
24248
  return results;
24269
24249
  }
24270
- var incompleteResults = results.filter(function(_ref110) {
24271
- var result = _ref110.result;
24250
+ var incompleteResults = results.filter(function(_ref111) {
24251
+ var result = _ref111.result;
24272
24252
  return result !== void 0;
24273
24253
  });
24274
24254
  var uniqueResults = [];
@@ -24280,12 +24260,12 @@
24280
24260
  if (nameMap[name]) {
24281
24261
  return 1;
24282
24262
  }
24283
- var sameNameResults = incompleteResults.filter(function(_ref111, resultNum) {
24284
- var data = _ref111.data;
24263
+ var sameNameResults = incompleteResults.filter(function(_ref112, resultNum) {
24264
+ var data = _ref112.data;
24285
24265
  return data.name === name && resultNum !== index;
24286
24266
  });
24287
- var isSameUrl = sameNameResults.every(function(_ref112) {
24288
- var data = _ref112.data;
24267
+ var isSameUrl = sameNameResults.every(function(_ref113) {
24268
+ var data = _ref113.data;
24289
24269
  return isIdenticalObject(data.urlProps, urlProps);
24290
24270
  });
24291
24271
  if (sameNameResults.length && !isSameUrl) {
@@ -24311,7 +24291,7 @@
24311
24291
  var headingRole = role && role.includes('heading');
24312
24292
  var ariaHeadingLevel = vNode.attr('aria-level');
24313
24293
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
24314
- var _ref113 = vNode.props.nodeName.match(/h(\d)/) || [], _ref114 = _slicedToArray(_ref113, 2), headingLevel = _ref114[1];
24294
+ var _ref114 = vNode.props.nodeName.match(/h(\d)/) || [], _ref115 = _slicedToArray(_ref114, 2), headingLevel = _ref115[1];
24315
24295
  if (!headingRole) {
24316
24296
  return -1;
24317
24297
  }
@@ -24371,14 +24351,14 @@
24371
24351
  }
24372
24352
  function getHeadingOrder(results) {
24373
24353
  results = _toConsumableArray(results);
24374
- results.sort(function(_ref115, _ref116) {
24375
- var nodeA = _ref115.node;
24376
- var nodeB = _ref116.node;
24354
+ results.sort(function(_ref116, _ref117) {
24355
+ var nodeA = _ref116.node;
24356
+ var nodeB = _ref117.node;
24377
24357
  return nodeA.ancestry.length - nodeB.ancestry.length;
24378
24358
  });
24379
24359
  var headingOrder = results.reduce(mergeHeadingOrder, []);
24380
- return headingOrder.filter(function(_ref117) {
24381
- var level = _ref117.level;
24360
+ return headingOrder.filter(function(_ref118) {
24361
+ var level = _ref118.level;
24382
24362
  return level !== -1;
24383
24363
  });
24384
24364
  }
@@ -24531,14 +24511,14 @@
24531
24511
  }
24532
24512
  function getLargestUnobscuredArea(vNode, obscuredNodes) {
24533
24513
  var nodeRect = vNode.boundingClientRect;
24534
- var obscuringRects = obscuredNodes.map(function(_ref118) {
24535
- var rect = _ref118.boundingClientRect;
24514
+ var obscuringRects = obscuredNodes.map(function(_ref119) {
24515
+ var rect = _ref119.boundingClientRect;
24536
24516
  return rect;
24537
24517
  });
24538
24518
  var unobscuredRects;
24539
24519
  try {
24540
24520
  unobscuredRects = _splitRects(nodeRect, obscuringRects);
24541
- } catch (err2) {
24521
+ } catch (_unused9) {
24542
24522
  return null;
24543
24523
  }
24544
24524
  return getLargestRect2(unobscuredRects);
@@ -24578,8 +24558,8 @@
24578
24558
  return _contains(vAncestor, vNode) && !_isInTabOrder(vNode);
24579
24559
  }
24580
24560
  function mapActualNodes(vNodes) {
24581
- return vNodes.map(function(_ref119) {
24582
- var actualNode = _ref119.actualNode;
24561
+ return vNodes.map(function(_ref120) {
24562
+ var actualNode = _ref120.actualNode;
24583
24563
  return actualNode;
24584
24564
  });
24585
24565
  }
@@ -24638,8 +24618,8 @@
24638
24618
  });
24639
24619
  return true;
24640
24620
  }
24641
- this.relatedNodes(closeNeighbors.map(function(_ref120) {
24642
- var actualNode = _ref120.actualNode;
24621
+ this.relatedNodes(closeNeighbors.map(function(_ref121) {
24622
+ var actualNode = _ref121.actualNode;
24643
24623
  return actualNode;
24644
24624
  }));
24645
24625
  if (!closeNeighbors.some(_isInTabOrder)) {
@@ -24660,7 +24640,7 @@
24660
24640
  return Math.round(num * 10) / 10;
24661
24641
  }
24662
24642
  function metaViewportScaleEvaluate(node, options, virtualNode) {
24663
- var _ref121 = options || {}, _ref121$scaleMinimum = _ref121.scaleMinimum, scaleMinimum = _ref121$scaleMinimum === void 0 ? 2 : _ref121$scaleMinimum, _ref121$lowerBound = _ref121.lowerBound, lowerBound = _ref121$lowerBound === void 0 ? false : _ref121$lowerBound;
24643
+ var _ref122 = options || {}, _ref122$scaleMinimum = _ref122.scaleMinimum, scaleMinimum = _ref122$scaleMinimum === void 0 ? 2 : _ref122$scaleMinimum, _ref122$lowerBound = _ref122.lowerBound, lowerBound = _ref122$lowerBound === void 0 ? false : _ref122$lowerBound;
24664
24644
  var content = virtualNode.attr('content') || '';
24665
24645
  if (!content) {
24666
24646
  return true;
@@ -24705,8 +24685,8 @@
24705
24685
  }
24706
24686
  var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
24707
24687
  function cssOrientationLockEvaluate(node, options, virtualNode, context) {
24708
- var _ref122 = context || {}, _ref122$cssom = _ref122.cssom, cssom = _ref122$cssom === void 0 ? void 0 : _ref122$cssom;
24709
- var _ref123 = options || {}, _ref123$degreeThresho = _ref123.degreeThreshold, degreeThreshold = _ref123$degreeThresho === void 0 ? 0 : _ref123$degreeThresho;
24688
+ var _ref123 = context || {}, _ref123$cssom = _ref123.cssom, cssom = _ref123$cssom === void 0 ? void 0 : _ref123$cssom;
24689
+ var _ref124 = options || {}, _ref124$degreeThresho = _ref124.degreeThreshold, degreeThreshold = _ref124$degreeThresho === void 0 ? 0 : _ref124$degreeThresho;
24710
24690
  if (!cssom || !cssom.length) {
24711
24691
  return void 0;
24712
24692
  }
@@ -24714,14 +24694,14 @@
24714
24694
  var relatedElements = [];
24715
24695
  var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
24716
24696
  var _loop9 = function _loop9() {
24717
- var key = _Object$keys3[_i33];
24697
+ var key = _Object$keys3[_i39];
24718
24698
  var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
24719
24699
  var orientationRules = rules.filter(isMediaRuleWithOrientation);
24720
24700
  if (!orientationRules.length) {
24721
24701
  return 1;
24722
24702
  }
24723
- orientationRules.forEach(function(_ref124) {
24724
- var cssRules = _ref124.cssRules;
24703
+ orientationRules.forEach(function(_ref125) {
24704
+ var cssRules = _ref125.cssRules;
24725
24705
  Array.from(cssRules).forEach(function(cssRule) {
24726
24706
  var locked = getIsOrientationLocked(cssRule);
24727
24707
  if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -24732,7 +24712,7 @@
24732
24712
  });
24733
24713
  });
24734
24714
  };
24735
- for (var _i33 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i33 < _Object$keys3.length; _i33++) {
24715
+ for (var _i39 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i39 < _Object$keys3.length; _i39++) {
24736
24716
  if (_loop9()) {
24737
24717
  continue;
24738
24718
  }
@@ -24745,8 +24725,8 @@
24745
24725
  }
24746
24726
  return false;
24747
24727
  function groupCssomByDocument(cssObjectModel) {
24748
- return cssObjectModel.reduce(function(out, _ref125) {
24749
- var sheet = _ref125.sheet, root = _ref125.root, shadowId = _ref125.shadowId;
24728
+ return cssObjectModel.reduce(function(out, _ref126) {
24729
+ var sheet = _ref126.sheet, root = _ref126.root, shadowId = _ref126.shadowId;
24750
24730
  var key = shadowId ? shadowId : 'topDocument';
24751
24731
  if (!out[key]) {
24752
24732
  out[key] = {
@@ -24762,15 +24742,15 @@
24762
24742
  return out;
24763
24743
  }, {});
24764
24744
  }
24765
- function isMediaRuleWithOrientation(_ref126) {
24766
- var type2 = _ref126.type, cssText = _ref126.cssText;
24745
+ function isMediaRuleWithOrientation(_ref127) {
24746
+ var type2 = _ref127.type, cssText = _ref127.cssText;
24767
24747
  if (type2 !== 4) {
24768
24748
  return false;
24769
24749
  }
24770
24750
  return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
24771
24751
  }
24772
- function getIsOrientationLocked(_ref127) {
24773
- var selectorText = _ref127.selectorText, style = _ref127.style;
24752
+ function getIsOrientationLocked(_ref128) {
24753
+ var selectorText = _ref128.selectorText, style = _ref128.style;
24774
24754
  if (!selectorText || style.length <= 0) {
24775
24755
  return false;
24776
24756
  }
@@ -24825,7 +24805,7 @@
24825
24805
  }
24826
24806
  }
24827
24807
  function getAngleInDegrees(angleWithUnit) {
24828
- var _ref128 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref129 = _slicedToArray(_ref128, 1), unit = _ref129[0];
24808
+ var _ref129 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref130 = _slicedToArray(_ref129, 1), unit = _ref130[0];
24829
24809
  if (!unit) {
24830
24810
  return 0;
24831
24811
  }
@@ -24962,8 +24942,8 @@
24962
24942
  return false;
24963
24943
  }
24964
24944
  var hasDt = false, hasDd = false, nodeName2;
24965
- for (var i = 0; i < children.length; i++) {
24966
- nodeName2 = children[i].props.nodeName.toUpperCase();
24945
+ for (var _i40 = 0; _i40 < children.length; _i40++) {
24946
+ nodeName2 = children[_i40].props.nodeName.toUpperCase();
24967
24947
  if (nodeName2 === 'DT') {
24968
24948
  hasDt = true;
24969
24949
  }
@@ -25116,8 +25096,8 @@
25116
25096
  this.relatedNodes(relatedNodes);
25117
25097
  return true;
25118
25098
  }
25119
- function getInvalidSelector(vChild, nested, _ref130) {
25120
- var _ref130$validRoles = _ref130.validRoles, validRoles = _ref130$validRoles === void 0 ? [] : _ref130$validRoles, _ref130$validNodeName = _ref130.validNodeNames, validNodeNames = _ref130$validNodeName === void 0 ? [] : _ref130$validNodeName;
25099
+ function getInvalidSelector(vChild, nested, _ref131) {
25100
+ var _ref131$validRoles = _ref131.validRoles, validRoles = _ref131$validRoles === void 0 ? [] : _ref131$validRoles, _ref131$validNodeName = _ref131.validNodeNames, validNodeNames = _ref131$validNodeName === void 0 ? [] : _ref131$validNodeName;
25121
25101
  var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
25122
25102
  var selector = nested ? 'div > ' : '';
25123
25103
  if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -25336,7 +25316,7 @@
25336
25316
  return !!implicitLabel;
25337
25317
  }
25338
25318
  return false;
25339
- } catch (e) {
25319
+ } catch (_unused10) {
25340
25320
  return void 0;
25341
25321
  }
25342
25322
  }
@@ -25353,7 +25333,7 @@
25353
25333
  var name;
25354
25334
  try {
25355
25335
  name = _accessibleTextVirtual(virtualNode).trim();
25356
- } catch (e) {
25336
+ } catch (_unused11) {
25357
25337
  return void 0;
25358
25338
  }
25359
25339
  var isNameEmpty = name === '';
@@ -25364,7 +25344,8 @@
25364
25344
  }
25365
25345
  var hidden_explicit_label_evaluate_default = hiddenExplicitLabelEvaluate;
25366
25346
  function helpSameAsLabelEvaluate(node, options, virtualNode) {
25367
- var labelText2 = label_virtual_default2(virtualNode), check = node.getAttribute('title');
25347
+ var labelText2 = label_virtual_default2(virtualNode);
25348
+ var check = node.getAttribute('title');
25368
25349
  if (!labelText2) {
25369
25350
  return false;
25370
25351
  }
@@ -25410,7 +25391,7 @@
25410
25391
  return !!explicitLabel;
25411
25392
  }
25412
25393
  });
25413
- } catch (e) {
25394
+ } catch (_unused12) {
25414
25395
  return void 0;
25415
25396
  }
25416
25397
  }
@@ -25460,7 +25441,7 @@
25460
25441
  this.relatedNodes(focusableDescendants2);
25461
25442
  }
25462
25443
  return false;
25463
- } catch (e) {
25444
+ } catch (_unused13) {
25464
25445
  return void 0;
25465
25446
  }
25466
25447
  }
@@ -25513,7 +25494,7 @@
25513
25494
  return !virtualNode.children.some(function(child) {
25514
25495
  return focusableDescendants(child);
25515
25496
  });
25516
- } catch (e) {
25497
+ } catch (_unused14) {
25517
25498
  return void 0;
25518
25499
  }
25519
25500
  }
@@ -25562,14 +25543,14 @@
25562
25543
  }
25563
25544
  try {
25564
25545
  return !_accessibleTextVirtual(virtualNode);
25565
- } catch (e) {
25546
+ } catch (_unused15) {
25566
25547
  return void 0;
25567
25548
  }
25568
25549
  }
25569
25550
  var focusable_no_name_evaluate_default = focusableNoNameEvaluate;
25570
25551
  function focusableModalOpenEvaluate(node, options, virtualNode) {
25571
- var tabbableElements = virtualNode.tabbableElements.map(function(_ref131) {
25572
- var actualNode = _ref131.actualNode;
25552
+ var tabbableElements = virtualNode.tabbableElements.map(function(_ref132) {
25553
+ var actualNode = _ref132.actualNode;
25573
25554
  return actualNode;
25574
25555
  });
25575
25556
  if (!tabbableElements || !tabbableElements.length) {
@@ -25709,7 +25690,7 @@
25709
25690
  function hasTextContentEvaluate(node, options, virtualNode) {
25710
25691
  try {
25711
25692
  return sanitize_default(subtree_text_default(virtualNode)) !== '';
25712
- } catch (e) {
25693
+ } catch (_unused16) {
25713
25694
  return void 0;
25714
25695
  }
25715
25696
  }
@@ -25764,7 +25745,7 @@
25764
25745
  return true;
25765
25746
  }
25766
25747
  var attr_non_space_content_evaluate_default = attrNonSpaceContentEvaluate;
25767
- function autocompleteValidEvaluate(node, options, virtualNode) {
25748
+ function autocompleteValidEvaluate(_node, options, virtualNode) {
25768
25749
  var autocomplete2 = virtualNode.attr('autocomplete') || '';
25769
25750
  return is_valid_autocomplete_default(autocomplete2, options);
25770
25751
  }
@@ -25857,8 +25838,8 @@
25857
25838
  return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
25858
25839
  }
25859
25840
  function hasPseudoContent(node) {
25860
- for (var _i34 = 0, _arr3 = [ 'before', 'after' ]; _i34 < _arr3.length; _i34++) {
25861
- var pseudo = _arr3[_i34];
25841
+ for (var _i41 = 0, _arr3 = [ 'before', 'after' ]; _i41 < _arr3.length; _i41++) {
25842
+ var pseudo = _arr3[_i41];
25862
25843
  var style = window.getComputedStyle(node, ':'.concat(pseudo));
25863
25844
  var content = style.getPropertyValue('content');
25864
25845
  if (content !== 'none') {
@@ -25964,7 +25945,7 @@
25964
25945
  var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
25965
25946
  var ptSize = Math.ceil(fontSize * 72) / 96;
25966
25947
  var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
25967
- var _ref132 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref132.expected, minThreshold = _ref132.minThreshold, maxThreshold = _ref132.maxThreshold;
25948
+ var _ref133 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref133.expected, minThreshold = _ref133.minThreshold, maxThreshold = _ref133.maxThreshold;
25968
25949
  var pseudoElm = findPseudoElement(virtualNode, {
25969
25950
  ignorePseudo: ignorePseudo,
25970
25951
  pseudoSizeThreshold: pseudoSizeThreshold
@@ -26049,8 +26030,8 @@
26049
26030
  }
26050
26031
  return isValid;
26051
26032
  }
26052
- function findPseudoElement(vNode, _ref133) {
26053
- var _ref133$pseudoSizeThr = _ref133.pseudoSizeThreshold, pseudoSizeThreshold = _ref133$pseudoSizeThr === void 0 ? .25 : _ref133$pseudoSizeThr, _ref133$ignorePseudo = _ref133.ignorePseudo, ignorePseudo = _ref133$ignorePseudo === void 0 ? false : _ref133$ignorePseudo;
26033
+ function findPseudoElement(vNode, _ref134) {
26034
+ var _ref134$pseudoSizeThr = _ref134.pseudoSizeThreshold, pseudoSizeThreshold = _ref134$pseudoSizeThr === void 0 ? .25 : _ref134$pseudoSizeThr, _ref134$ignorePseudo = _ref134.ignorePseudo, ignorePseudo = _ref134$ignorePseudo === void 0 ? false : _ref134$ignorePseudo;
26054
26035
  if (ignorePseudo) {
26055
26036
  return;
26056
26037
  }
@@ -26092,7 +26073,7 @@
26092
26073
  }
26093
26074
  function parseUnit(str) {
26094
26075
  var unitRegex = /^([0-9.]+)([a-z]+)$/i;
26095
- var _ref134 = str.match(unitRegex) || [], _ref135 = _slicedToArray(_ref134, 3), _ref135$ = _ref135[1], value = _ref135$ === void 0 ? '' : _ref135$, _ref135$2 = _ref135[2], unit = _ref135$2 === void 0 ? '' : _ref135$2;
26076
+ var _ref135 = str.match(unitRegex) || [], _ref136 = _slicedToArray(_ref135, 3), _ref136$ = _ref136[1], value = _ref136$ === void 0 ? '' : _ref136$, _ref136$2 = _ref136[2], unit = _ref136$2 === void 0 ? '' : _ref136$2;
26096
26077
  return {
26097
26078
  value: parseFloat(value),
26098
26079
  unit: unit.toLowerCase()
@@ -26158,7 +26139,7 @@
26158
26139
  try {
26159
26140
  label3 = sanitize_default(label_text_default(virtualNode)).toLowerCase();
26160
26141
  accText = sanitize_default(_accessibleTextVirtual(virtualNode)).toLowerCase();
26161
- } catch (e) {
26142
+ } catch (_unused17) {
26162
26143
  return void 0;
26163
26144
  }
26164
26145
  if (!accText && !label3) {
@@ -26261,7 +26242,7 @@
26261
26242
  }
26262
26243
  try {
26263
26244
  return sanitize_default(_accessibleTextVirtual(virtualNode)) !== '';
26264
- } catch (_unused) {
26245
+ } catch (_unused18) {
26265
26246
  return void 0;
26266
26247
  }
26267
26248
  }
@@ -26313,7 +26294,7 @@
26313
26294
  var attrValue = virtualNode.attr(attrName);
26314
26295
  try {
26315
26296
  validValue = validate_attr_value_default(virtualNode, attrName);
26316
- } catch (e) {
26297
+ } catch (_unused19) {
26317
26298
  needsReview = ''.concat(attrName, '="').concat(attrValue, '"');
26318
26299
  messageKey = 'idrefs';
26319
26300
  return;
@@ -26426,7 +26407,8 @@
26426
26407
  return reqContext;
26427
26408
  }
26428
26409
  function getAriaOwners(element) {
26429
- var owners = [], o = null;
26410
+ var owners = [];
26411
+ var o = null;
26430
26412
  while (element) {
26431
26413
  if (element.getAttribute('id')) {
26432
26414
  var _id5 = escape_selector_default(element.getAttribute('id'));
@@ -26448,8 +26430,8 @@
26448
26430
  }
26449
26431
  var owners = getAriaOwners(node);
26450
26432
  if (owners) {
26451
- for (var _i35 = 0, l = owners.length; _i35 < l; _i35++) {
26452
- missingParents = getMissingContext(get_node_from_tree_default(owners[_i35]), ownGroupRoles, missingParents, true);
26433
+ for (var _i42 = 0, l = owners.length; _i42 < l; _i42++) {
26434
+ missingParents = getMissingContext(get_node_from_tree_default(owners[_i42]), ownGroupRoles, missingParents, true);
26453
26435
  if (!missingParents) {
26454
26436
  return true;
26455
26437
  }
@@ -26469,19 +26451,19 @@
26469
26451
  return true;
26470
26452
  }
26471
26453
  var ownedRoles = getOwnedRoles(virtualNode, required);
26472
- var unallowed = ownedRoles.filter(function(_ref136) {
26473
- var role = _ref136.role, vNode = _ref136.vNode;
26454
+ var unallowed = ownedRoles.filter(function(_ref137) {
26455
+ var role = _ref137.role, vNode = _ref137.vNode;
26474
26456
  return vNode.props.nodeType === 1 && !required.includes(role);
26475
26457
  });
26476
26458
  if (unallowed.length) {
26477
- this.relatedNodes(unallowed.map(function(_ref137) {
26478
- var vNode = _ref137.vNode;
26459
+ this.relatedNodes(unallowed.map(function(_ref138) {
26460
+ var vNode = _ref138.vNode;
26479
26461
  return vNode;
26480
26462
  }));
26481
26463
  this.data({
26482
26464
  messageKey: 'unallowed',
26483
- values: unallowed.map(function(_ref138) {
26484
- var vNode = _ref138.vNode, attr = _ref138.attr;
26465
+ values: unallowed.map(function(_ref139) {
26466
+ var vNode = _ref139.vNode, attr = _ref139.attr;
26485
26467
  return getUnallowedSelector(vNode, attr);
26486
26468
  }).filter(function(selector, index, array) {
26487
26469
  return array.indexOf(selector) === index;
@@ -26544,8 +26526,8 @@
26544
26526
  return ownedRoles;
26545
26527
  }
26546
26528
  function hasRequiredChildren(required, ownedRoles) {
26547
- return ownedRoles.some(function(_ref139) {
26548
- var role = _ref139.role;
26529
+ return ownedRoles.some(function(_ref140) {
26530
+ var role = _ref140.role;
26549
26531
  return role && required.includes(role);
26550
26532
  });
26551
26533
  }
@@ -26570,14 +26552,15 @@
26570
26552
  }
26571
26553
  return nodeName2;
26572
26554
  }
26573
- function isContent(_ref140) {
26574
- var vNode = _ref140.vNode;
26555
+ function isContent(_ref141) {
26556
+ var vNode = _ref141.vNode;
26575
26557
  if (vNode.props.nodeType === 3) {
26576
26558
  return vNode.props.nodeValue.trim().length > 0;
26577
26559
  }
26578
26560
  return has_content_virtual_default(vNode, false, true);
26579
26561
  }
26580
26562
  function ariaRequiredAttrEvaluate(node) {
26563
+ var _virtualNode$attr3;
26581
26564
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26582
26565
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
26583
26566
  var role = get_explicit_role_default(virtualNode);
@@ -26592,6 +26575,9 @@
26592
26575
  if (isStaticSeparator(virtualNode, role) || isClosedCombobox(virtualNode, role)) {
26593
26576
  return true;
26594
26577
  }
26578
+ if (role === 'slider' && (_virtualNode$attr3 = virtualNode.attr('aria-valuetext')) !== null && _virtualNode$attr3 !== void 0 && _virtualNode$attr3.trim()) {
26579
+ return true;
26580
+ }
26595
26581
  var elmSpec = get_element_spec_default(virtualNode);
26596
26582
  var missingAttrs = requiredAttrs.filter(function(requiredAttr2) {
26597
26583
  return !virtualNode.attr(requiredAttr2) && !hasImplicitAttr(elmSpec, requiredAttr2);
@@ -26620,7 +26606,7 @@
26620
26606
  var role = get_role_default(virtualNode, {
26621
26607
  chromium: true
26622
26608
  });
26623
- var prohibitedList = listProhibitedAttrs(role, nodeName2, elementsAllowedAriaLabel);
26609
+ var prohibitedList = listProhibitedAttrs(virtualNode, role, nodeName2, elementsAllowedAriaLabel);
26624
26610
  var prohibited = prohibitedList.filter(function(attrName) {
26625
26611
  if (!virtualNode.attrNames.includes(attrName)) {
26626
26612
  return false;
@@ -26646,16 +26632,29 @@
26646
26632
  }
26647
26633
  return true;
26648
26634
  }
26649
- function listProhibitedAttrs(role, nodeName2, elementsAllowedAriaLabel) {
26635
+ function listProhibitedAttrs(vNode, role, nodeName2, elementsAllowedAriaLabel) {
26650
26636
  var roleSpec = standards_default.ariaRoles[role];
26651
26637
  if (roleSpec) {
26652
26638
  return roleSpec.prohibitedAttrs || [];
26653
26639
  }
26654
- if (!!role || elementsAllowedAriaLabel.includes(nodeName2)) {
26640
+ if (!!role || elementsAllowedAriaLabel.includes(nodeName2) || getClosestAncestorRoleType(vNode) === 'widget') {
26655
26641
  return [];
26656
26642
  }
26657
26643
  return [ 'aria-label', 'aria-labelledby' ];
26658
26644
  }
26645
+ var getClosestAncestorRoleType = memoize_default(function getClosestAncestorRoleTypeMemoized(vNode) {
26646
+ if (!vNode) {
26647
+ return;
26648
+ }
26649
+ var role = get_role_default(vNode, {
26650
+ noPresentational: true,
26651
+ chromium: true
26652
+ });
26653
+ if (role) {
26654
+ return get_role_type_default(role);
26655
+ }
26656
+ return getClosestAncestorRoleType(vNode.parent);
26657
+ });
26659
26658
  function ariaLevelEvaluate(node, options, virtualNode) {
26660
26659
  var ariaHeadingLevel = virtualNode.attr('aria-level');
26661
26660
  var ariaLevel = parseInt(ariaHeadingLevel, 10);
@@ -26685,7 +26684,7 @@
26685
26684
  var idref;
26686
26685
  try {
26687
26686
  idref = attr && idrefs_default(virtualNode, 'aria-errormessage')[0];
26688
- } catch (e) {
26687
+ } catch (_unused20) {
26689
26688
  this.data({
26690
26689
  messageKey: 'idrefs',
26691
26690
  values: token_list_default(attr)
@@ -26712,7 +26711,7 @@
26712
26711
  }
26713
26712
  function ariaConditionalRowAttr(node) {
26714
26713
  var _invalidTableRowAttrs, _invalidTableRowAttrs2;
26715
- var _ref141 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref141.invalidTableRowAttrs;
26714
+ var _ref142 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref142.invalidTableRowAttrs;
26716
26715
  var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
26717
26716
  var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 || (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
26718
26717
  return virtualNode.hasAttr(invalidAttr);
@@ -26818,7 +26817,7 @@
26818
26817
  try {
26819
26818
  for (_iterator21.s(); !(_step21 = _iterator21.n()).done; ) {
26820
26819
  var attrName = _step21.value;
26821
- if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
26820
+ if (validate_attr_default(attrName) && !allowed.includes(attrName) && !ignoredAttrs(attrName, virtualNode.attr(attrName), virtualNode)) {
26822
26821
  invalid.push(attrName);
26823
26822
  }
26824
26823
  }
@@ -26838,6 +26837,15 @@
26838
26837
  }
26839
26838
  return false;
26840
26839
  }
26840
+ function ignoredAttrs(attrName, attrValue, vNode) {
26841
+ if (attrName === 'aria-required' && attrValue === 'false') {
26842
+ return true;
26843
+ }
26844
+ if (attrName === 'aria-multiline' && attrValue === 'false' && vNode.hasAttr('contenteditable')) {
26845
+ return true;
26846
+ }
26847
+ return false;
26848
+ }
26841
26849
  function abstractroleEvaluate(node, options, virtualNode) {
26842
26850
  var abstractRoles = token_list_default(virtualNode.attr('role')).filter(function(role) {
26843
26851
  return get_role_type_default(role) === 'abstract';
@@ -26866,7 +26874,7 @@
26866
26874
  return true;
26867
26875
  }
26868
26876
  return !!closest_default(virtualNode, 'svg');
26869
- } catch (e) {
26877
+ } catch (_unused21) {
26870
26878
  return false;
26871
26879
  }
26872
26880
  }
@@ -26910,6 +26918,24 @@
26910
26918
  var role = get_role_default(vNode);
26911
26919
  return [ 'treegrid', 'grid', 'table' ].includes(role);
26912
26920
  }
26921
+ function summaryIsInteractiveMatches(_, virtualNode) {
26922
+ var parent = virtualNode.parent;
26923
+ if (parent.props.nodeName !== 'details' || isSlottedElm(virtualNode)) {
26924
+ return false;
26925
+ }
26926
+ var firstSummary = parent.children.find(function(child) {
26927
+ return child.props.nodeName === 'summary';
26928
+ });
26929
+ if (firstSummary !== virtualNode) {
26930
+ return false;
26931
+ }
26932
+ return true;
26933
+ }
26934
+ function isSlottedElm(vNode) {
26935
+ var _vNode$actualNode;
26936
+ var domParent = (_vNode$actualNode = vNode.actualNode) === null || _vNode$actualNode === void 0 ? void 0 : _vNode$actualNode.parentElement;
26937
+ return domParent && domParent !== vNode.parent.actualNode;
26938
+ }
26913
26939
  function skipLinkMatches(node) {
26914
26940
  return _isSkipLink(node) && is_offscreen_default(node);
26915
26941
  }
@@ -26946,7 +26972,7 @@
26946
26972
  if (!role || [ 'none', 'presentation' ].includes(role)) {
26947
26973
  return true;
26948
26974
  }
26949
- var _ref142 = aria_roles_default[role] || {}, accessibleNameRequired = _ref142.accessibleNameRequired;
26975
+ var _ref143 = aria_roles_default[role] || {}, accessibleNameRequired = _ref143.accessibleNameRequired;
26950
26976
  if (accessibleNameRequired || _isFocusable(virtualNode)) {
26951
26977
  return true;
26952
26978
  }
@@ -27044,7 +27070,6 @@
27044
27070
  return !is_data_table_default(node) && !_isFocusable(node);
27045
27071
  }
27046
27072
  var layout_table_matches_default = dataTableMatches;
27047
- var excludedParentsForHeaderFooterLandmarks = [ 'article', 'aside', 'main', 'nav', 'section' ].join(',');
27048
27073
  function landmarkUniqueMatches(node, virtualNode) {
27049
27074
  return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(virtualNode);
27050
27075
  }
@@ -27055,18 +27080,12 @@
27055
27080
  return false;
27056
27081
  }
27057
27082
  var nodeName2 = vNode.props.nodeName;
27058
- if (nodeName2 === 'header' || nodeName2 === 'footer') {
27059
- return isHeaderFooterLandmark(vNode);
27060
- }
27061
27083
  if (nodeName2 === 'section' || nodeName2 === 'form') {
27062
27084
  var accessibleText2 = _accessibleTextVirtual(vNode);
27063
27085
  return !!accessibleText2;
27064
27086
  }
27065
27087
  return landmarkRoles2.indexOf(role) >= 0 || role === 'region';
27066
27088
  }
27067
- function isHeaderFooterLandmark(headerFooterElement) {
27068
- return !closest_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);
27069
- }
27070
27089
  function landmarkHasBodyContextMatches(node, virtualNode) {
27071
27090
  var nativeScopeFilter = 'article, aside, main, nav, section';
27072
27091
  return node.hasAttribute('role') || !find_up_virtual_default(virtualNode, nativeScopeFilter);
@@ -27371,8 +27390,8 @@
27371
27390
  var aria = /^aria-/;
27372
27391
  var attrs = virtualNode.attrNames;
27373
27392
  if (attrs.length) {
27374
- for (var _i36 = 0, l = attrs.length; _i36 < l; _i36++) {
27375
- if (aria.test(attrs[_i36])) {
27393
+ for (var _i43 = 0, l = attrs.length; _i43 < l; _i43++) {
27394
+ if (aria.test(attrs[_i43])) {
27376
27395
  return true;
27377
27396
  }
27378
27397
  }
@@ -27524,6 +27543,7 @@
27524
27543
  'skip-link-evaluate': skip_link_evaluate_default,
27525
27544
  'skip-link-matches': skip_link_matches_default,
27526
27545
  'structured-dlitems-evaluate': structured_dlitems_evaluate_default,
27546
+ 'summary-interactive-matches': summaryIsInteractiveMatches,
27527
27547
  'svg-namespace-matches': svg_namespace_matches_default,
27528
27548
  'svg-non-empty-title-evaluate': svg_non_empty_title_evaluate_default,
27529
27549
  'tabindex-evaluate': tabindex_evaluate_default,
@@ -27607,7 +27627,7 @@
27607
27627
  };
27608
27628
  Check.prototype.runSync = function runSync(node, options, context) {
27609
27629
  options = options || {};
27610
- var _options2 = options, _options2$enabled = _options2.enabled, enabled = _options2$enabled === void 0 ? this.enabled : _options2$enabled;
27630
+ var _options3 = options, _options3$enabled = _options3.enabled, enabled = _options3$enabled === void 0 ? this.enabled : _options3$enabled;
27611
27631
  if (!enabled) {
27612
27632
  return null;
27613
27633
  }
@@ -28062,8 +28082,8 @@
28062
28082
  lang: this.lang
28063
28083
  };
28064
28084
  var checkIDs = Object.keys(this.data.checks);
28065
- for (var _i37 = 0; _i37 < checkIDs.length; _i37++) {
28066
- var _id6 = checkIDs[_i37];
28085
+ for (var _i44 = 0; _i44 < checkIDs.length; _i44++) {
28086
+ var _id6 = checkIDs[_i44];
28067
28087
  var check = this.data.checks[_id6];
28068
28088
  var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
28069
28089
  locale.checks[_id6] = {
@@ -28073,8 +28093,8 @@
28073
28093
  };
28074
28094
  }
28075
28095
  var ruleIDs = Object.keys(this.data.rules);
28076
- for (var _i38 = 0; _i38 < ruleIDs.length; _i38++) {
28077
- var _id7 = ruleIDs[_i38];
28096
+ for (var _i45 = 0; _i45 < ruleIDs.length; _i45++) {
28097
+ var _id7 = ruleIDs[_i45];
28078
28098
  var rule = this.data.rules[_id7];
28079
28099
  var description = rule.description, help = rule.help;
28080
28100
  locale.rules[_id7] = {
@@ -28083,8 +28103,8 @@
28083
28103
  };
28084
28104
  }
28085
28105
  var failureSummaries = Object.keys(this.data.failureSummaries);
28086
- for (var _i39 = 0; _i39 < failureSummaries.length; _i39++) {
28087
- var type2 = failureSummaries[_i39];
28106
+ for (var _i46 = 0; _i46 < failureSummaries.length; _i46++) {
28107
+ var type2 = failureSummaries[_i46];
28088
28108
  var failureSummary2 = this.data.failureSummaries[type2];
28089
28109
  var failureMessage = failureSummary2.failureMessage;
28090
28110
  locale.failureSummaries[type2] = {
@@ -28107,8 +28127,8 @@
28107
28127
  key: '_applyCheckLocale',
28108
28128
  value: function _applyCheckLocale(checks) {
28109
28129
  var keys = Object.keys(checks);
28110
- for (var _i40 = 0; _i40 < keys.length; _i40++) {
28111
- var _id8 = keys[_i40];
28130
+ for (var _i47 = 0; _i47 < keys.length; _i47++) {
28131
+ var _id8 = keys[_i47];
28112
28132
  if (!this.data.checks[_id8]) {
28113
28133
  throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));
28114
28134
  }
@@ -28119,8 +28139,8 @@
28119
28139
  key: '_applyRuleLocale',
28120
28140
  value: function _applyRuleLocale(rules) {
28121
28141
  var keys = Object.keys(rules);
28122
- for (var _i41 = 0; _i41 < keys.length; _i41++) {
28123
- var _id9 = keys[_i41];
28142
+ for (var _i48 = 0; _i48 < keys.length; _i48++) {
28143
+ var _id9 = keys[_i48];
28124
28144
  if (!this.data.rules[_id9]) {
28125
28145
  throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));
28126
28146
  }
@@ -28131,8 +28151,8 @@
28131
28151
  key: '_applyFailureSummaries',
28132
28152
  value: function _applyFailureSummaries(messages) {
28133
28153
  var keys = Object.keys(messages);
28134
- for (var _i42 = 0; _i42 < keys.length; _i42++) {
28135
- var _key8 = keys[_i42];
28154
+ for (var _i49 = 0; _i49 < keys.length; _i49++) {
28155
+ var _key8 = keys[_i49];
28136
28156
  if (!this.data.failureSummaries[_key8]) {
28137
28157
  throw new Error('Locale provided for unknown failureMessage: "'.concat(_key8, '"'));
28138
28158
  }
@@ -28194,7 +28214,7 @@
28194
28214
  this.checks = {};
28195
28215
  this.brand = 'axe';
28196
28216
  this.application = 'axeAPI';
28197
- this.tagExclude = [ 'experimental' ];
28217
+ this.tagExclude = [ 'experimental', 'deprecated' ];
28198
28218
  this.noHtml = audit.noHtml;
28199
28219
  this.allowedOrigins = audit.allowedOrigins;
28200
28220
  unpackToObject(audit.rules, this, 'addRule');
@@ -28562,8 +28582,8 @@
28562
28582
  });
28563
28583
  };
28564
28584
  }
28565
- function getHelpUrl(_ref143, ruleId, version) {
28566
- var brand = _ref143.brand, application = _ref143.application, lang = _ref143.lang;
28585
+ function getHelpUrl(_ref144, ruleId, version) {
28586
+ var brand = _ref144.brand, application = _ref144.application, lang = _ref144.lang;
28567
28587
  return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
28568
28588
  }
28569
28589
  function setupGlobals(context) {
@@ -28777,11 +28797,11 @@
28777
28797
  toolOptions: options
28778
28798
  });
28779
28799
  }
28780
- function normalizeRunParams(_ref144) {
28781
- var _ref146, _options$reporter, _axe$_audit;
28782
- var _ref145 = _slicedToArray(_ref144, 3), context = _ref145[0], options = _ref145[1], callback = _ref145[2];
28800
+ function normalizeRunParams(_ref145) {
28801
+ var _ref147, _options$reporter, _axe$_audit;
28802
+ var _ref146 = _slicedToArray(_ref145, 3), context = _ref146[0], options = _ref146[1], callback = _ref146[2];
28783
28803
  var typeErr = new TypeError('axe.run arguments are invalid');
28784
- if (!isContextSpec(context)) {
28804
+ if (!_isContextSpec(context)) {
28785
28805
  if (callback !== void 0) {
28786
28806
  throw typeErr;
28787
28807
  }
@@ -28800,7 +28820,7 @@
28800
28820
  throw typeErr;
28801
28821
  }
28802
28822
  options = _clone(options);
28803
- options.reporter = (_ref146 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref146 !== void 0 ? _ref146 : 'v1';
28823
+ options.reporter = (_ref147 = (_options$reporter = options.reporter) !== null && _options$reporter !== void 0 ? _options$reporter : (_axe$_audit = axe._audit) === null || _axe$_audit === void 0 ? void 0 : _axe$_audit.reporter) !== null && _ref147 !== void 0 ? _ref147 : 'v1';
28804
28824
  return {
28805
28825
  context: context,
28806
28826
  options: options,
@@ -28915,8 +28935,8 @@
28915
28935
  axe._audit.run(contextObj, options, res, rej);
28916
28936
  }).then(function(results) {
28917
28937
  results = node_serializer_default.mapRawResults(results);
28918
- var frames = contextObj.frames.map(function(_ref147) {
28919
- var node = _ref147.node;
28938
+ var frames = contextObj.frames.map(function(_ref148) {
28939
+ var node = _ref148.node;
28920
28940
  return node_serializer_default.toSpec(node);
28921
28941
  });
28922
28942
  var environmentData;
@@ -28937,14 +28957,14 @@
28937
28957
  });
28938
28958
  }
28939
28959
  function finishRun(partialResults) {
28940
- var _ref149, _options$reporter2, _axe$_audit2;
28960
+ var _ref150, _options$reporter2, _axe$_audit2;
28941
28961
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28942
28962
  options = _clone(options);
28943
- var _ref148 = partialResults.find(function(r) {
28963
+ var _ref149 = partialResults.find(function(r) {
28944
28964
  return r.environmentData;
28945
- }) || {}, environmentData = _ref148.environmentData;
28965
+ }) || {}, environmentData = _ref149.environmentData;
28946
28966
  axe._audit.normalizeOptions(options);
28947
- options.reporter = (_ref149 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref149 !== void 0 ? _ref149 : 'v1';
28967
+ options.reporter = (_ref150 = (_options$reporter2 = options.reporter) !== null && _options$reporter2 !== void 0 ? _options$reporter2 : (_axe$_audit2 = axe._audit) === null || _axe$_audit2 === void 0 ? void 0 : _axe$_audit2.reporter) !== null && _ref150 !== void 0 ? _ref150 : 'v1';
28948
28968
  setFrameSpec(partialResults);
28949
28969
  var results = merge_results_default(partialResults);
28950
28970
  results = axe._audit.after(results, options);
@@ -28974,8 +28994,8 @@
28974
28994
  _iterator23.f();
28975
28995
  }
28976
28996
  }
28977
- function getMergedFrameSpecs(_ref150) {
28978
- var childFrameSpecs = _ref150.frames, parentFrameSpec = _ref150.frameSpec;
28997
+ function getMergedFrameSpecs(_ref151) {
28998
+ var childFrameSpecs = _ref151.frames, parentFrameSpec = _ref151.frameSpec;
28979
28999
  if (!parentFrameSpec) {
28980
29000
  return childFrameSpecs;
28981
29001
  }
@@ -29008,7 +29028,7 @@
29008
29028
  callback = options;
29009
29029
  options = {};
29010
29030
  }
29011
- var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded15);
29031
+ var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded15);
29012
29032
  callback(_extends({}, _getEnvironmentData(environmentData), {
29013
29033
  toolOptions: toolOptions
29014
29034
  }, processAggregate(results, options)));
@@ -29019,7 +29039,7 @@
29019
29039
  callback = options;
29020
29040
  options = {};
29021
29041
  }
29022
- var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded16);
29042
+ var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded16);
29023
29043
  options.resultTypes = [ 'violations' ];
29024
29044
  var _processAggregate = processAggregate(results, options), violations = _processAggregate.violations;
29025
29045
  callback(_extends({}, _getEnvironmentData(environmentData), {
@@ -29039,8 +29059,8 @@
29039
29059
  var transformedResults = results.map(function(result) {
29040
29060
  var transformedResult = _extends({}, result);
29041
29061
  var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
29042
- for (var _i43 = 0, _types = types; _i43 < _types.length; _i43++) {
29043
- var type2 = _types[_i43];
29062
+ for (var _i50 = 0, _types = types; _i50 < _types.length; _i50++) {
29063
+ var type2 = _types[_i50];
29044
29064
  transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]);
29045
29065
  }
29046
29066
  return transformedResult;
@@ -29053,7 +29073,7 @@
29053
29073
  callback = options;
29054
29074
  options = {};
29055
29075
  }
29056
- var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded17);
29076
+ var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded17);
29057
29077
  raw_default(results, toolOptions, function(raw) {
29058
29078
  var env = _getEnvironmentData(environmentData);
29059
29079
  callback({
@@ -29068,7 +29088,7 @@
29068
29088
  callback = options;
29069
29089
  options = {};
29070
29090
  }
29071
- var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded18);
29091
+ var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded18);
29072
29092
  var out = processAggregate(results, options);
29073
29093
  var addFailureSummaries = function addFailureSummaries(result) {
29074
29094
  result.nodes.forEach(function(nodeResult) {
@@ -29087,7 +29107,7 @@
29087
29107
  callback = options;
29088
29108
  options = {};
29089
29109
  }
29090
- var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded19);
29110
+ var _options8 = options, environmentData = _options8.environmentData, toolOptions = _objectWithoutProperties(_options8, _excluded19);
29091
29111
  var out = processAggregate(results, options);
29092
29112
  callback(_extends({}, _getEnvironmentData(environmentData), {
29093
29113
  toolOptions: toolOptions
@@ -29176,19 +29196,19 @@
29176
29196
  data: {
29177
29197
  rules: {
29178
29198
  accesskeys: {
29179
- description: 'Ensures every accesskey attribute value is unique',
29199
+ description: 'Ensure every accesskey attribute value is unique',
29180
29200
  help: 'accesskey attribute value should be unique'
29181
29201
  },
29182
29202
  'area-alt': {
29183
- description: 'Ensures <area> elements of image maps have alternate text',
29203
+ description: 'Ensure <area> elements of image maps have alternate text',
29184
29204
  help: 'Active <area> elements must have alternate text'
29185
29205
  },
29186
29206
  'aria-allowed-attr': {
29187
- description: 'Ensures an element\'s role supports its ARIA attributes',
29207
+ description: 'Ensure an element\'s role supports its ARIA attributes',
29188
29208
  help: 'Elements must only use supported ARIA attributes'
29189
29209
  },
29190
29210
  'aria-allowed-role': {
29191
- description: 'Ensures role attribute has an appropriate value for the element',
29211
+ description: 'Ensure role attribute has an appropriate value for the element',
29192
29212
  help: 'ARIA role should be appropriate for the element'
29193
29213
  },
29194
29214
  'aria-braille-equivalent': {
@@ -29196,55 +29216,55 @@
29196
29216
  help: 'aria-braille attributes must have a non-braille equivalent'
29197
29217
  },
29198
29218
  'aria-command-name': {
29199
- description: 'Ensures every ARIA button, link and menuitem has an accessible name',
29219
+ description: 'Ensure every ARIA button, link and menuitem has an accessible name',
29200
29220
  help: 'ARIA commands must have an accessible name'
29201
29221
  },
29202
29222
  'aria-conditional-attr': {
29203
- description: 'Ensures ARIA attributes are used as described in the specification of the element\'s role',
29223
+ description: 'Ensure ARIA attributes are used as described in the specification of the element\'s role',
29204
29224
  help: 'ARIA attributes must be used as specified for the element\'s role'
29205
29225
  },
29206
29226
  'aria-deprecated-role': {
29207
- description: 'Ensures elements do not use deprecated roles',
29227
+ description: 'Ensure elements do not use deprecated roles',
29208
29228
  help: 'Deprecated ARIA roles must not be used'
29209
29229
  },
29210
29230
  'aria-dialog-name': {
29211
- description: 'Ensures every ARIA dialog and alertdialog node has an accessible name',
29231
+ description: 'Ensure every ARIA dialog and alertdialog node has an accessible name',
29212
29232
  help: 'ARIA dialog and alertdialog nodes should have an accessible name'
29213
29233
  },
29214
29234
  'aria-hidden-body': {
29215
- description: 'Ensures aria-hidden="true" is not present on the document body.',
29235
+ description: 'Ensure aria-hidden="true" is not present on the document body.',
29216
29236
  help: 'aria-hidden="true" must not be present on the document body'
29217
29237
  },
29218
29238
  'aria-hidden-focus': {
29219
- description: 'Ensures aria-hidden elements are not focusable nor contain focusable elements',
29239
+ description: 'Ensure aria-hidden elements are not focusable nor contain focusable elements',
29220
29240
  help: 'ARIA hidden element must not be focusable or contain focusable elements'
29221
29241
  },
29222
29242
  'aria-input-field-name': {
29223
- description: 'Ensures every ARIA input field has an accessible name',
29243
+ description: 'Ensure every ARIA input field has an accessible name',
29224
29244
  help: 'ARIA input fields must have an accessible name'
29225
29245
  },
29226
29246
  'aria-meter-name': {
29227
- description: 'Ensures every ARIA meter node has an accessible name',
29247
+ description: 'Ensure every ARIA meter node has an accessible name',
29228
29248
  help: 'ARIA meter nodes must have an accessible name'
29229
29249
  },
29230
29250
  'aria-progressbar-name': {
29231
- description: 'Ensures every ARIA progressbar node has an accessible name',
29251
+ description: 'Ensure every ARIA progressbar node has an accessible name',
29232
29252
  help: 'ARIA progressbar nodes must have an accessible name'
29233
29253
  },
29234
29254
  'aria-prohibited-attr': {
29235
- description: 'Ensures ARIA attributes are not prohibited for an element\'s role',
29255
+ description: 'Ensure ARIA attributes are not prohibited for an element\'s role',
29236
29256
  help: 'Elements must only use permitted ARIA attributes'
29237
29257
  },
29238
29258
  'aria-required-attr': {
29239
- description: 'Ensures elements with ARIA roles have all required ARIA attributes',
29259
+ description: 'Ensure elements with ARIA roles have all required ARIA attributes',
29240
29260
  help: 'Required ARIA attributes must be provided'
29241
29261
  },
29242
29262
  'aria-required-children': {
29243
- description: 'Ensures elements with an ARIA role that require child roles contain them',
29263
+ description: 'Ensure elements with an ARIA role that require child roles contain them',
29244
29264
  help: 'Certain ARIA roles must contain particular children'
29245
29265
  },
29246
29266
  'aria-required-parent': {
29247
- description: 'Ensures elements with an ARIA role that require parent roles are contained by them',
29267
+ description: 'Ensure elements with an ARIA role that require parent roles are contained by them',
29248
29268
  help: 'Certain ARIA roles must be contained by particular parents'
29249
29269
  },
29250
29270
  'aria-roledescription': {
@@ -29252,35 +29272,35 @@
29252
29272
  help: 'aria-roledescription must be on elements with a semantic role'
29253
29273
  },
29254
29274
  'aria-roles': {
29255
- description: 'Ensures all elements with a role attribute use a valid value',
29275
+ description: 'Ensure all elements with a role attribute use a valid value',
29256
29276
  help: 'ARIA roles used must conform to valid values'
29257
29277
  },
29258
29278
  'aria-text': {
29259
- description: 'Ensures role="text" is used on elements with no focusable descendants',
29279
+ description: 'Ensure role="text" is used on elements with no focusable descendants',
29260
29280
  help: '"role=text" should have no focusable descendants'
29261
29281
  },
29262
29282
  'aria-toggle-field-name': {
29263
- description: 'Ensures every ARIA toggle field has an accessible name',
29283
+ description: 'Ensure every ARIA toggle field has an accessible name',
29264
29284
  help: 'ARIA toggle fields must have an accessible name'
29265
29285
  },
29266
29286
  'aria-tooltip-name': {
29267
- description: 'Ensures every ARIA tooltip node has an accessible name',
29287
+ description: 'Ensure every ARIA tooltip node has an accessible name',
29268
29288
  help: 'ARIA tooltip nodes must have an accessible name'
29269
29289
  },
29270
29290
  'aria-treeitem-name': {
29271
- description: 'Ensures every ARIA treeitem node has an accessible name',
29291
+ description: 'Ensure every ARIA treeitem node has an accessible name',
29272
29292
  help: 'ARIA treeitem nodes should have an accessible name'
29273
29293
  },
29274
29294
  'aria-valid-attr-value': {
29275
- description: 'Ensures all ARIA attributes have valid values',
29295
+ description: 'Ensure all ARIA attributes have valid values',
29276
29296
  help: 'ARIA attributes must conform to valid values'
29277
29297
  },
29278
29298
  'aria-valid-attr': {
29279
- description: 'Ensures attributes that begin with aria- are valid ARIA attributes',
29299
+ description: 'Ensure attributes that begin with aria- are valid ARIA attributes',
29280
29300
  help: 'ARIA attributes must conform to valid names'
29281
29301
  },
29282
29302
  'audio-caption': {
29283
- description: 'Ensures <audio> elements have captions',
29303
+ description: 'Ensure <audio> elements have captions',
29284
29304
  help: '<audio> elements must have a captions track'
29285
29305
  },
29286
29306
  'autocomplete-valid': {
@@ -29292,87 +29312,87 @@
29292
29312
  help: 'Inline text spacing must be adjustable with custom stylesheets'
29293
29313
  },
29294
29314
  blink: {
29295
- description: 'Ensures <blink> elements are not used',
29315
+ description: 'Ensure <blink> elements are not used',
29296
29316
  help: '<blink> elements are deprecated and must not be used'
29297
29317
  },
29298
29318
  'button-name': {
29299
- description: 'Ensures buttons have discernible text',
29319
+ description: 'Ensure buttons have discernible text',
29300
29320
  help: 'Buttons must have discernible text'
29301
29321
  },
29302
29322
  bypass: {
29303
- description: 'Ensures each page has at least one mechanism for a user to bypass navigation and jump straight to the content',
29323
+ description: 'Ensure each page has at least one mechanism for a user to bypass navigation and jump straight to the content',
29304
29324
  help: 'Page must have means to bypass repeated blocks'
29305
29325
  },
29306
29326
  'color-contrast-enhanced': {
29307
- description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds',
29327
+ description: 'Ensure the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds',
29308
29328
  help: 'Elements must meet enhanced color contrast ratio thresholds'
29309
29329
  },
29310
29330
  'color-contrast': {
29311
- description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds',
29331
+ description: 'Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds',
29312
29332
  help: 'Elements must meet minimum color contrast ratio thresholds'
29313
29333
  },
29314
29334
  'css-orientation-lock': {
29315
- description: 'Ensures content is not locked to any specific display orientation, and the content is operable in all display orientations',
29335
+ description: 'Ensure content is not locked to any specific display orientation, and the content is operable in all display orientations',
29316
29336
  help: 'CSS Media queries must not lock display orientation'
29317
29337
  },
29318
29338
  'definition-list': {
29319
- description: 'Ensures <dl> elements are structured correctly',
29339
+ description: 'Ensure <dl> elements are structured correctly',
29320
29340
  help: '<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements'
29321
29341
  },
29322
29342
  dlitem: {
29323
- description: 'Ensures <dt> and <dd> elements are contained by a <dl>',
29343
+ description: 'Ensure <dt> and <dd> elements are contained by a <dl>',
29324
29344
  help: '<dt> and <dd> elements must be contained by a <dl>'
29325
29345
  },
29326
29346
  'document-title': {
29327
- description: 'Ensures each HTML document contains a non-empty <title> element',
29347
+ description: 'Ensure each HTML document contains a non-empty <title> element',
29328
29348
  help: 'Documents must have <title> element to aid in navigation'
29329
29349
  },
29330
29350
  'duplicate-id-active': {
29331
- description: 'Ensures every id attribute value of active elements is unique',
29351
+ description: 'Ensure every id attribute value of active elements is unique',
29332
29352
  help: 'IDs of active elements must be unique'
29333
29353
  },
29334
29354
  'duplicate-id-aria': {
29335
- description: 'Ensures every id attribute value used in ARIA and in labels is unique',
29355
+ description: 'Ensure every id attribute value used in ARIA and in labels is unique',
29336
29356
  help: 'IDs used in ARIA and labels must be unique'
29337
29357
  },
29338
29358
  'duplicate-id': {
29339
- description: 'Ensures every id attribute value is unique',
29359
+ description: 'Ensure every id attribute value is unique',
29340
29360
  help: 'id attribute value must be unique'
29341
29361
  },
29342
29362
  'empty-heading': {
29343
- description: 'Ensures headings have discernible text',
29363
+ description: 'Ensure headings have discernible text',
29344
29364
  help: 'Headings should not be empty'
29345
29365
  },
29346
29366
  'empty-table-header': {
29347
- description: 'Ensures table headers have discernible text',
29367
+ description: 'Ensure table headers have discernible text',
29348
29368
  help: 'Table header text should not be empty'
29349
29369
  },
29350
29370
  'focus-order-semantics': {
29351
- description: 'Ensures elements in the focus order have a role appropriate for interactive content',
29371
+ description: 'Ensure elements in the focus order have a role appropriate for interactive content',
29352
29372
  help: 'Elements in the focus order should have an appropriate role'
29353
29373
  },
29354
29374
  'form-field-multiple-labels': {
29355
- description: 'Ensures form field does not have multiple label elements',
29375
+ description: 'Ensure form field does not have multiple label elements',
29356
29376
  help: 'Form field must not have multiple label elements'
29357
29377
  },
29358
29378
  'frame-focusable-content': {
29359
- description: 'Ensures <frame> and <iframe> elements with focusable content do not have tabindex=-1',
29379
+ description: 'Ensure <frame> and <iframe> elements with focusable content do not have tabindex=-1',
29360
29380
  help: 'Frames with focusable content must not have tabindex=-1'
29361
29381
  },
29362
29382
  'frame-tested': {
29363
- description: 'Ensures <iframe> and <frame> elements contain the axe-core script',
29383
+ description: 'Ensure <iframe> and <frame> elements contain the axe-core script',
29364
29384
  help: 'Frames should be tested with axe-core'
29365
29385
  },
29366
29386
  'frame-title-unique': {
29367
- description: 'Ensures <iframe> and <frame> elements contain a unique title attribute',
29387
+ description: 'Ensure <iframe> and <frame> elements contain a unique title attribute',
29368
29388
  help: 'Frames must have a unique title attribute'
29369
29389
  },
29370
29390
  'frame-title': {
29371
- description: 'Ensures <iframe> and <frame> elements have an accessible name',
29391
+ description: 'Ensure <iframe> and <frame> elements have an accessible name',
29372
29392
  help: 'Frames must have an accessible name'
29373
29393
  },
29374
29394
  'heading-order': {
29375
- description: 'Ensures the order of headings is semantically correct',
29395
+ description: 'Ensure the order of headings is semantically correct',
29376
29396
  help: 'Heading levels should only increase by one'
29377
29397
  },
29378
29398
  'hidden-content': {
@@ -29380,11 +29400,11 @@
29380
29400
  help: 'Hidden content on the page should be analyzed'
29381
29401
  },
29382
29402
  'html-has-lang': {
29383
- description: 'Ensures every HTML document has a lang attribute',
29403
+ description: 'Ensure every HTML document has a lang attribute',
29384
29404
  help: '<html> element must have a lang attribute'
29385
29405
  },
29386
29406
  'html-lang-valid': {
29387
- description: 'Ensures the lang attribute of the <html> element has a valid value',
29407
+ description: 'Ensure the lang attribute of the <html> element has a valid value',
29388
29408
  help: '<html> element must have a valid value for the lang attribute'
29389
29409
  },
29390
29410
  'html-xml-lang-mismatch': {
@@ -29396,7 +29416,7 @@
29396
29416
  help: 'Links with the same name must have a similar purpose'
29397
29417
  },
29398
29418
  'image-alt': {
29399
- description: 'Ensures <img> elements have alternate text or a role of none or presentation',
29419
+ description: 'Ensure <img> elements have alternate text or a role of none or presentation',
29400
29420
  help: 'Images must have alternate text'
29401
29421
  },
29402
29422
  'image-redundant-alt': {
@@ -29404,107 +29424,107 @@
29404
29424
  help: 'Alternative text of images should not be repeated as text'
29405
29425
  },
29406
29426
  'input-button-name': {
29407
- description: 'Ensures input buttons have discernible text',
29427
+ description: 'Ensure input buttons have discernible text',
29408
29428
  help: 'Input buttons must have discernible text'
29409
29429
  },
29410
29430
  'input-image-alt': {
29411
- description: 'Ensures <input type="image"> elements have alternate text',
29431
+ description: 'Ensure <input type="image"> elements have alternate text',
29412
29432
  help: 'Image buttons must have alternate text'
29413
29433
  },
29414
29434
  'label-content-name-mismatch': {
29415
- description: 'Ensures that elements labelled through their content must have their visible text as part of their accessible name',
29435
+ description: 'Ensure that elements labelled through their content must have their visible text as part of their accessible name',
29416
29436
  help: 'Elements must have their visible text as part of their accessible name'
29417
29437
  },
29418
29438
  'label-title-only': {
29419
- description: 'Ensures that every form element has a visible label and is not solely labeled using hidden labels, or the title or aria-describedby attributes',
29439
+ description: 'Ensure that every form element has a visible label and is not solely labeled using hidden labels, or the title or aria-describedby attributes',
29420
29440
  help: 'Form elements should have a visible label'
29421
29441
  },
29422
29442
  label: {
29423
- description: 'Ensures every form element has a label',
29443
+ description: 'Ensure every form element has a label',
29424
29444
  help: 'Form elements must have labels'
29425
29445
  },
29426
29446
  'landmark-banner-is-top-level': {
29427
- description: 'Ensures the banner landmark is at top level',
29447
+ description: 'Ensure the banner landmark is at top level',
29428
29448
  help: 'Banner landmark should not be contained in another landmark'
29429
29449
  },
29430
29450
  'landmark-complementary-is-top-level': {
29431
- description: 'Ensures the complementary landmark or aside is at top level',
29451
+ description: 'Ensure the complementary landmark or aside is at top level',
29432
29452
  help: 'Aside should not be contained in another landmark'
29433
29453
  },
29434
29454
  'landmark-contentinfo-is-top-level': {
29435
- description: 'Ensures the contentinfo landmark is at top level',
29455
+ description: 'Ensure the contentinfo landmark is at top level',
29436
29456
  help: 'Contentinfo landmark should not be contained in another landmark'
29437
29457
  },
29438
29458
  'landmark-main-is-top-level': {
29439
- description: 'Ensures the main landmark is at top level',
29459
+ description: 'Ensure the main landmark is at top level',
29440
29460
  help: 'Main landmark should not be contained in another landmark'
29441
29461
  },
29442
29462
  'landmark-no-duplicate-banner': {
29443
- description: 'Ensures the document has at most one banner landmark',
29463
+ description: 'Ensure the document has at most one banner landmark',
29444
29464
  help: 'Document should not have more than one banner landmark'
29445
29465
  },
29446
29466
  'landmark-no-duplicate-contentinfo': {
29447
- description: 'Ensures the document has at most one contentinfo landmark',
29467
+ description: 'Ensure the document has at most one contentinfo landmark',
29448
29468
  help: 'Document should not have more than one contentinfo landmark'
29449
29469
  },
29450
29470
  'landmark-no-duplicate-main': {
29451
- description: 'Ensures the document has at most one main landmark',
29471
+ description: 'Ensure the document has at most one main landmark',
29452
29472
  help: 'Document should not have more than one main landmark'
29453
29473
  },
29454
29474
  'landmark-one-main': {
29455
- description: 'Ensures the document has a main landmark',
29475
+ description: 'Ensure the document has a main landmark',
29456
29476
  help: 'Document should have one main landmark'
29457
29477
  },
29458
29478
  'landmark-unique': {
29459
- help: 'Ensures landmarks are unique',
29460
- description: 'Landmarks should have a unique role or role/label/title (i.e. accessible name) combination'
29479
+ description: 'Ensure landmarks are unique',
29480
+ help: 'Landmarks should have a unique role or role/label/title (i.e. accessible name) combination'
29461
29481
  },
29462
29482
  'link-in-text-block': {
29463
29483
  description: 'Ensure links are distinguished from surrounding text in a way that does not rely on color',
29464
29484
  help: 'Links must be distinguishable without relying on color'
29465
29485
  },
29466
29486
  'link-name': {
29467
- description: 'Ensures links have discernible text',
29487
+ description: 'Ensure links have discernible text',
29468
29488
  help: 'Links must have discernible text'
29469
29489
  },
29470
29490
  list: {
29471
- description: 'Ensures that lists are structured correctly',
29491
+ description: 'Ensure that lists are structured correctly',
29472
29492
  help: '<ul> and <ol> must only directly contain <li>, <script> or <template> elements'
29473
29493
  },
29474
29494
  listitem: {
29475
- description: 'Ensures <li> elements are used semantically',
29495
+ description: 'Ensure <li> elements are used semantically',
29476
29496
  help: '<li> elements must be contained in a <ul> or <ol>'
29477
29497
  },
29478
29498
  marquee: {
29479
- description: 'Ensures <marquee> elements are not used',
29499
+ description: 'Ensure <marquee> elements are not used',
29480
29500
  help: '<marquee> elements are deprecated and must not be used'
29481
29501
  },
29482
29502
  'meta-refresh-no-exceptions': {
29483
- description: 'Ensures <meta http-equiv="refresh"> is not used for delayed refresh',
29503
+ description: 'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',
29484
29504
  help: 'Delayed refresh must not be used'
29485
29505
  },
29486
29506
  'meta-refresh': {
29487
- description: 'Ensures <meta http-equiv="refresh"> is not used for delayed refresh',
29507
+ description: 'Ensure <meta http-equiv="refresh"> is not used for delayed refresh',
29488
29508
  help: 'Delayed refresh under 20 hours must not be used'
29489
29509
  },
29490
29510
  'meta-viewport-large': {
29491
- description: 'Ensures <meta name="viewport"> can scale a significant amount',
29511
+ description: 'Ensure <meta name="viewport"> can scale a significant amount',
29492
29512
  help: 'Users should be able to zoom and scale the text up to 500%'
29493
29513
  },
29494
29514
  'meta-viewport': {
29495
- description: 'Ensures <meta name="viewport"> does not disable text scaling and zooming',
29515
+ description: 'Ensure <meta name="viewport"> does not disable text scaling and zooming',
29496
29516
  help: 'Zooming and scaling must not be disabled'
29497
29517
  },
29498
29518
  'nested-interactive': {
29499
- description: 'Ensures interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies',
29519
+ description: 'Ensure interactive controls are not nested as they are not always announced by screen readers or can cause focus problems for assistive technologies',
29500
29520
  help: 'Interactive controls must not be nested'
29501
29521
  },
29502
29522
  'no-autoplay-audio': {
29503
- description: 'Ensures <video> or <audio> elements do not autoplay audio for more than 3 seconds without a control mechanism to stop or mute the audio',
29523
+ description: 'Ensure <video> or <audio> elements do not autoplay audio for more than 3 seconds without a control mechanism to stop or mute the audio',
29504
29524
  help: '<video> or <audio> elements must not play automatically'
29505
29525
  },
29506
29526
  'object-alt': {
29507
- description: 'Ensures <object> elements have alternate text',
29527
+ description: 'Ensure <object> elements have alternate text',
29508
29528
  help: '<object> elements must have alternate text'
29509
29529
  },
29510
29530
  'p-as-heading': {
@@ -29520,15 +29540,15 @@
29520
29540
  help: 'Ensure elements marked as presentational are consistently ignored'
29521
29541
  },
29522
29542
  region: {
29523
- description: 'Ensures all page content is contained by landmarks',
29543
+ description: 'Ensure all page content is contained by landmarks',
29524
29544
  help: 'All page content should be contained by landmarks'
29525
29545
  },
29526
29546
  'role-img-alt': {
29527
- description: 'Ensures [role="img"] elements have alternate text',
29547
+ description: 'Ensure [role="img"] elements have alternate text',
29528
29548
  help: '[role="img"] elements must have an alternative text'
29529
29549
  },
29530
29550
  'scope-attr-valid': {
29531
- description: 'Ensures the scope attribute is used correctly on tables',
29551
+ description: 'Ensure the scope attribute is used correctly on tables',
29532
29552
  help: 'scope attribute should be used correctly'
29533
29553
  },
29534
29554
  'scrollable-region-focusable': {
@@ -29536,35 +29556,39 @@
29536
29556
  help: 'Scrollable region must have keyboard access'
29537
29557
  },
29538
29558
  'select-name': {
29539
- description: 'Ensures select element has an accessible name',
29559
+ description: 'Ensure select element has an accessible name',
29540
29560
  help: 'Select element must have an accessible name'
29541
29561
  },
29542
29562
  'server-side-image-map': {
29543
- description: 'Ensures that server-side image maps are not used',
29563
+ description: 'Ensure that server-side image maps are not used',
29544
29564
  help: 'Server-side image maps must not be used'
29545
29565
  },
29546
29566
  'skip-link': {
29547
29567
  description: 'Ensure all skip links have a focusable target',
29548
29568
  help: 'The skip-link target should exist and be focusable'
29549
29569
  },
29570
+ 'summary-name': {
29571
+ description: 'Ensure summary elements have discernible text',
29572
+ help: 'Summary elements must have discernible text'
29573
+ },
29550
29574
  'svg-img-alt': {
29551
- description: 'Ensures <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text',
29575
+ description: 'Ensure <svg> elements with an img, graphics-document or graphics-symbol role have an accessible text',
29552
29576
  help: '<svg> elements with an img role must have an alternative text'
29553
29577
  },
29554
29578
  tabindex: {
29555
- description: 'Ensures tabindex attribute values are not greater than 0',
29579
+ description: 'Ensure tabindex attribute values are not greater than 0',
29556
29580
  help: 'Elements should not have tabindex greater than zero'
29557
29581
  },
29558
29582
  'table-duplicate-name': {
29559
29583
  description: 'Ensure the <caption> element does not contain the same text as the summary attribute',
29560
- help: 'tables should not have the same summary and caption'
29584
+ help: 'Tables should not have the same summary and caption'
29561
29585
  },
29562
29586
  'table-fake-caption': {
29563
29587
  description: 'Ensure that tables with a caption use the <caption> element.',
29564
29588
  help: 'Data or header cells must not be used to give caption to a data table.'
29565
29589
  },
29566
29590
  'target-size': {
29567
- description: 'Ensure touch target have sufficient size and space',
29591
+ description: 'Ensure touch targets have sufficient size and space',
29568
29592
  help: 'All touch targets must be 24px large, or leave sufficient space'
29569
29593
  },
29570
29594
  'td-has-header': {
@@ -29580,11 +29604,11 @@
29580
29604
  help: 'Table headers in a data table must refer to data cells'
29581
29605
  },
29582
29606
  'valid-lang': {
29583
- description: 'Ensures lang attributes have valid values',
29607
+ description: 'Ensure lang attributes have valid values',
29584
29608
  help: 'lang attribute must have a valid value'
29585
29609
  },
29586
29610
  'video-caption': {
29587
- description: 'Ensures <video> elements have captions',
29611
+ description: 'Ensure <video> elements have captions',
29588
29612
  help: '<video> elements must have captions'
29589
29613
  }
29590
29614
  },
@@ -29652,9 +29676,9 @@
29652
29676
  hidden: 'aria-errormessage value `${data.values}` cannot reference a hidden element'
29653
29677
  },
29654
29678
  incomplete: {
29655
- singular: 'ensure aria-errormessage value `${data.values}` references an existing element',
29656
- plural: 'ensure aria-errormessage values `${data.values}` reference existing elements',
29657
- idrefs: 'unable to determine if aria-errormessage element exists on the page: ${data.values}'
29679
+ singular: 'Ensure aria-errormessage value `${data.values}` references an existing element',
29680
+ plural: 'Ensure aria-errormessage values `${data.values}` reference existing elements',
29681
+ idrefs: 'Unable to determine if aria-errormessage element exists on the page: ${data.values}'
29658
29682
  }
29659
29683
  }
29660
29684
  },
@@ -29947,15 +29971,16 @@
29947
29971
  'autocomplete-appropriate': {
29948
29972
  impact: 'serious',
29949
29973
  messages: {
29950
- pass: 'the autocomplete value is on an appropriate element',
29951
- fail: 'the autocomplete value is inappropriate for this type of input'
29974
+ pass: 'The autocomplete value is on an appropriate element',
29975
+ fail: 'The autocomplete value is inappropriate for this type of input'
29952
29976
  }
29953
29977
  },
29954
29978
  'autocomplete-valid': {
29955
29979
  impact: 'serious',
29956
29980
  messages: {
29957
29981
  pass: 'the autocomplete attribute is correctly formatted',
29958
- fail: 'the autocomplete attribute is incorrectly formatted'
29982
+ fail: 'the autocomplete attribute is incorrectly formatted',
29983
+ incomplete: 'the autocomplete attribute has a non-standard value. Check whether any standard value could be used instead.'
29959
29984
  }
29960
29985
  },
29961
29986
  accesskeys: {
@@ -30407,7 +30432,7 @@
30407
30432
  messages: {
30408
30433
  pass: 'aria-labelledby attribute exists and references elements that are visible to screen readers',
30409
30434
  fail: 'aria-labelledby attribute does not exist, references elements that do not exist or references elements that are empty',
30410
- incomplete: 'ensure aria-labelledby references an existing element'
30435
+ incomplete: 'Ensure aria-labelledby references an existing element'
30411
30436
  }
30412
30437
  },
30413
30438
  'avoid-inline-spacing': {
@@ -30538,7 +30563,7 @@
30538
30563
  'presentational-role': {
30539
30564
  impact: 'minor',
30540
30565
  messages: {
30541
- pass: 'Element\'s default semantics were overriden with role="${data.role}"',
30566
+ pass: 'Element\'s default semantics were overridden with role="${data.role}"',
30542
30567
  fail: {
30543
30568
  default: 'Element\'s default semantics were not overridden with role="none" or role="presentation"',
30544
30569
  globalAria: 'Element\'s role is not presentational because it has a global ARIA attribute',
@@ -30551,14 +30576,14 @@
30551
30576
  'role-none': {
30552
30577
  impact: 'minor',
30553
30578
  messages: {
30554
- pass: 'Element\'s default semantics were overriden with role="none"',
30579
+ pass: 'Element\'s default semantics were overridden with role="none"',
30555
30580
  fail: 'Element\'s default semantics were not overridden with role="none"'
30556
30581
  }
30557
30582
  },
30558
30583
  'role-presentation': {
30559
30584
  impact: 'minor',
30560
30585
  messages: {
30561
- pass: 'Element\'s default semantics were overriden with role="presentation"',
30586
+ pass: 'Element\'s default semantics were overridden with role="presentation"',
30562
30587
  fail: 'Element\'s default semantics were not overridden with role="presentation"'
30563
30588
  }
30564
30589
  },
@@ -31022,7 +31047,8 @@
31022
31047
  actIds: [ '73f2c2' ],
31023
31048
  all: [ {
31024
31049
  options: {
31025
- stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ]
31050
+ stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ],
31051
+ ignoredValues: [ 'text', 'pronouns', 'gender', 'message', 'content' ]
31026
31052
  },
31027
31053
  id: 'autocomplete-valid'
31028
31054
  } ],
@@ -31935,6 +31961,20 @@
31935
31961
  all: [],
31936
31962
  any: [ 'skip-link' ],
31937
31963
  none: []
31964
+ }, {
31965
+ id: 'summary-name',
31966
+ impact: 'serious',
31967
+ selector: 'summary',
31968
+ matches: 'summary-interactive-matches',
31969
+ tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],
31970
+ all: [],
31971
+ any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
31972
+ options: {
31973
+ attribute: 'title'
31974
+ },
31975
+ id: 'non-empty-title'
31976
+ } ],
31977
+ none: []
31938
31978
  }, {
31939
31979
  id: 'svg-img-alt',
31940
31980
  impact: 'serious',
@@ -32222,7 +32262,8 @@
32222
32262
  id: 'autocomplete-valid',
32223
32263
  evaluate: 'autocomplete-valid-evaluate',
32224
32264
  options: {
32225
- stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ]
32265
+ stateTerms: [ 'none', 'false', 'true', 'disabled', 'enabled', 'undefined', 'null' ],
32266
+ ignoredValues: [ 'text', 'pronouns', 'gender', 'message', 'content' ]
32226
32267
  }
32227
32268
  }, {
32228
32269
  id: 'accesskeys',