- commit
- 15e5c5402a65a005413e3ce71a9eafb34b017c0c
- parent
- c1d641f424168f3b2bf40a6647dc93f38b9a0709
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-02-02 15:07
update tools
Diffstat
| M | babel.js | 23276 | +++++++++++++++++++++++++++++++++++++------------------------ |
| M | fuzz.js | 282 | +++++++++++++++++++++++++++++++++++++++++-------------------- |
| M | package.json | 4 | ++-- |
| M | src/babel.js | 4 | ++-- |
4 files changed, 14363 insertions, 9203 deletions
diff --git a/babel.js b/babel.js
@@ -4975,52 +4975,56 @@ module.exports = {
4975 4975 },{"./lib/atree.js":10,"./lib/name.js":13,"./lib/query.js":14}],10:[function(require,module,exports){
4976 4976 var attrs = require('./attrs');
4977 4977
4978 -1 var _getOwner = function(node) {
-1 4978 var _getOwner = function(node, owners) {
4979 4979 if (node.nodeType === node.ELEMENT_NODE && node.id) {
4980 -1 var owner = document.querySelector('[aria-owns~="' + CSS.escape(node.id) + '"]');
4981 -1 if (owner) {
4982 -1 return owner;
-1 4980 var selector = '[aria-owns~="' + CSS.escape(node.id) + '"]';
-1 4981 if (owners) {
-1 4982 for (var owner of owners) {
-1 4983 if (owner.matches(selector)) {
-1 4984 return owner;
-1 4985 }
-1 4986 }
-1 4987 } else {
-1 4988 return document.querySelector(selector);
4983 4989 }
4984 4990 }
4985 4991 };
4986 4992
4987 -1 var _getParentNode = function(node) {
4988 -1 return _getOwner(node) || node.parentNode;
-1 4993 var _getParentNode = function(node, owners) {
-1 4994 return _getOwner(node, owners) || node.parentNode;
4989 4995 };
4990 4996
4991 -1 var detectLoop = function(node) {
4992 -1 var seen = [node]
4993 -1 while ((node = _getParentNode(node))) {
-1 4997 var detectLoop = function(node, owners) {
-1 4998 var seen = [node];
-1 4999 while ((node = _getParentNode(node, owners))) {
4994 5000 if (seen.includes(node)) {
4995 5001 return true;
4996 5002 }
4997 -1 seen.push(node)
-1 5003 seen.push(node);
4998 5004 }
4999 5005 };
5000 5006
5001 -1 var getOwner = function(node) {
5002 -1 if (node.nodeType === node.ELEMENT_NODE && node.id) {
5003 -1 var owner = document.querySelector('[aria-owns~="' + CSS.escape(node.id) + '"]');
5004 -1 if (owner && !detectLoop(node)) {
5005 -1 return owner;
5006 -1 }
-1 5007 var getOwner = function(node, owners) {
-1 5008 var owner = _getOwner(node, owners);
-1 5009 if (owner && !detectLoop(node, owners)) {
-1 5010 return owner;
5007 5011 }
5008 5012 };
5009 5013
5010 -1 var getParentNode = function(node) {
5011 -1 return getOwner(node) || node.parentNode;
-1 5014 var getParentNode = function(node, owners) {
-1 5015 return getOwner(node, owners) || node.parentNode;
5012 5016 };
5013 5017
5014 5018 var isHidden = function(node) {
5015 5019 return node.nodeType === node.ELEMENT_NODE && attrs.getAttribute(node, 'hidden');
5016 5020 };
5017 5021
5018 -1 var getChildNodes = function(node) {
-1 5022 var getChildNodes = function(node, owners) {
5019 5023 var childNodes = [];
5020 5024
5021 5025 for (var i = 0; i < node.childNodes.length; i++) {
5022 5026 var child = node.childNodes[i];
5023 -1 if (!getOwner(child) && !isHidden(child)) {
-1 5027 if (!getOwner(child, owners) && !isHidden(child)) {
5024 5028 childNodes.push(child);
5025 5029 }
5026 5030 }
@@ -5030,7 +5034,7 @@ var getChildNodes = function(node) {
5030 5034 for (var i = 0; i < owns.length; i++) {
5031 5035 var child = document.getElementById(owns[i]);
5032 5036 // double check with getOwner for consistency
5033 -1 if (child && getOwner(child) === node && !isHidden(child)) {
-1 5037 if (child && getOwner(child, owners) === node && !isHidden(child)) {
5034 5038 childNodes.push(child);
5035 5039 }
5036 5040 }
@@ -5040,10 +5044,13 @@ var getChildNodes = function(node) {
5040 5044 };
5041 5045
5042 5046 var walk = function(root, fn) {
5043 -1 fn(root);
5044 -1 getChildNodes(root).forEach(function(child) {
5045 -1 walk(child, fn);
5046 -1 });
-1 5047 var owners = document.querySelectorAll('[aria-owns]');
-1 5048 var queue = [root];
-1 5049 while (queue.length) {
-1 5050 var item = queue.shift();
-1 5051 fn(item);
-1 5052 queue = getChildNodes(item, owners).concat(queue);
-1 5053 }
5047 5054 };
5048 5055
5049 5056 var searchUp = function(node, test) {
@@ -5070,35 +5077,34 @@ var constants = require('./constants.js');
5070 5077 // candidates can be passed for performance optimization
5071 5078 var getRole = function(el, candidates) {
5072 5079 if (el.hasAttribute('role')) {
5073 -1 return el.getAttribute('role');
5074 -1 }
5075 -1 for (var role in constants.roles) {
5076 -1 var selector = (constants.roles[role].selectors || []).join(',');
5077 -1 if (selector && (!candidates || candidates.includes(role)) && el.matches(selector)) {
5078 -1 return role;
-1 5080 var roles = el.getAttribute('role').toLowerCase().split(/\s+/);
-1 5081 if (roles.length > 1 && candidates) {
-1 5082 return [roles, candidates];
5079 5083 }
5080 -1 }
5081 -1
5082 -1 if (!candidates ||
5083 -1 candidates.includes('banner') ||
5084 -1 candidates.includes('contentinfo')) {
5085 -1 if (!el.matches(constants.scoped)) {
5086 -1 if (el.matches('header')) {
5087 -1 return 'banner';
-1 5084 for (var role of roles) {
-1 5085 if (!candidates || candidates.includes(role)) {
-1 5086 return role;
5088 5087 }
5089 -1 if (el.matches('footer')) {
5090 -1 return 'contentinfo';
-1 5088 }
-1 5089 } else {
-1 5090 var roles = candidates ? candidates : Object.keys(constants.roles);
-1 5091 for (var role of roles) {
-1 5092 var r = constants.roles[role];
-1 5093 if (r) {
-1 5094 var selector = (r.selectors || []).join(',');
-1 5095 if (selector && el.matches(selector)) {
-1 5096 return role;
-1 5097 }
5091 5098 }
5092 5099 }
5093 5100 }
5094 5101 };
5095 5102
5096 5103 var hasRole = function(el, roles) {
5097 -1 var candidates = [].concat.apply([], roles.map(function(role) {
-1 5104 var candidates = [].concat.apply([], roles.map(role => {
5098 5105 return (constants.roles[role] || {}).subRoles || [role];
5099 5106 }));
5100 -1 var actual = getRole(el, candidates);
5101 -1 return candidates.includes(actual);
-1 5107 return !!getRole(el, candidates);
5102 5108 };
5103 5109
5104 5110 var getAttribute = function(el, key) {
@@ -5253,6 +5259,9 @@ exports.attributeWeakMapping = {
5253 5259 'selected': 'selected',
5254 5260 };
5255 5261
-1 5262 // https://www.w3.org/TR/html/dom.html#sectioning-content-2
-1 5263 var scoped = ['article *', 'aside *', 'nav *', 'section *'].join(',');
-1 5264
5256 5265 // https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings
5257 5266 // https://www.w3.org/TR/wai-aria/roles
5258 5267 exports.roles = {
@@ -5266,6 +5275,12 @@ exports.roles = {
5266 5275 article: {
5267 5276 selectors: ['article'],
5268 5277 },
-1 5278 banner: {
-1 5279 selectors: [`header:not(main *, ${scoped})`],
-1 5280 },
-1 5281 blockquote: {
-1 5282 selectors: ['blockquote'],
-1 5283 },
5269 5284 button: {
5270 5285 selectors: [
5271 5286 'button',
@@ -5277,26 +5292,32 @@ exports.roles = {
5277 5292 ],
5278 5293 nameFromContents: true,
5279 5294 },
-1 5295 caption: {
-1 5296 selectors: ['caption', 'figcaption'],
-1 5297 },
5280 5298 cell: {
5281 -1 selectors: ['td'],
5282 -1 childRoles: ['gridcell', 'rowheader'],
-1 5299 selectors: ['td', 'th:not([scope])'],
-1 5300 childRoles: ['columnheader', 'gridcell', 'rowheader'],
5283 5301 nameFromContents: true,
5284 5302 },
5285 5303 checkbox: {
5286 5304 selectors: ['input[type="checkbox"]'],
5287 -1 childRoles: ['menuitemcheckbox', 'switch'],
-1 5305 childRoles: ['switch'],
5288 5306 nameFromContents: true,
5289 5307 defaults: {
5290 5308 'checked': 'false',
5291 5309 },
5292 5310 },
-1 5311 code: {
-1 5312 selectors: ['code'],
-1 5313 },
5293 5314 columnheader: {
5294 5315 selectors: ['th[scope="col"]'],
5295 5316 nameFromContents: true,
5296 5317 },
5297 5318 combobox: {
5298 5319 selectors: [
5299 -1 'input:not([type])[list]',
-1 5320 'input:not([type])[list]',
5300 5321 'input[type="email"][list]',
5301 5322 'input[type="search"][list]',
5302 5323 'input[type="tel"][list]',
@@ -5315,14 +5336,25 @@ exports.roles = {
5315 5336 childRoles: ['button', 'link', 'menuitem'],
5316 5337 },
5317 5338 complementary: {
5318 -1 selectors: ['aside'],
-1 5339 selectors: [
-1 5340 `aside:not(${scoped})`,
-1 5341 'aside[aria-label]',
-1 5342 'aside[aria-labelledby]',
-1 5343 'aside[title]',
-1 5344 ],
5319 5345 },
5320 5346 composite: {
5321 5347 childRoles: ['grid', 'select', 'spinbutton', 'tablist'],
5322 5348 },
-1 5349 contentinfo: {
-1 5350 selectors: [`footer:not(main *, ${scoped})`],
-1 5351 },
5323 5352 definition: {
5324 5353 selectors: ['dd'],
5325 5354 },
-1 5355 deletion: {
-1 5356 selectors: ['del', 's'],
-1 5357 },
5326 5358 dialog: {
5327 5359 selectors: ['dialog'],
5328 5360 childRoles: ['alertdialog'],
@@ -5339,16 +5371,32 @@ exports.roles = {
5339 5371 'doc-noteref': {
5340 5372 nameFromContents: true,
5341 5373 },
-1 5374 'doc-pagebreak': {
-1 5375 nameFromContents: true,
-1 5376 },
-1 5377 'doc-subtitle': {
-1 5378 nameFromContents: true,
-1 5379 },
5342 5380 document: {
5343 -1 selectors: ['body'],
-1 5381 selectors: ['html'],
5344 5382 childRoles: ['article', 'graphics-document'],
5345 5383 },
-1 5384 emphasis: {
-1 5385 selectors: ['em'],
-1 5386 },
5346 5387 figure: {
5347 5388 selectors: ['figure'],
-1 5389 childRoles: ['doc-example'],
5348 5390 },
5349 5391 form: {
5350 5392 selectors: ['form[aria-label]', 'form[aria-labelledby]', 'form[title]'],
5351 5393 },
-1 5394 generic: {
-1 5395 // too many selectors to list
-1 5396 },
-1 5397 'graphics-document': {
-1 5398 selectors: ['svg'],
-1 5399 },
5352 5400 grid: {
5353 5401 childRoles: ['treegrid'],
5354 5402 },
@@ -5357,7 +5405,14 @@ exports.roles = {
5357 5405 nameFromContents: true,
5358 5406 },
5359 5407 group: {
5360 -1 selectors: ['details', 'optgroup'],
-1 5408 selectors: [
-1 5409 'address',
-1 5410 'details',
-1 5411 'fieldset',
-1 5412 'hgroup',
-1 5413 'optgroup',
-1 5414 'text',
-1 5415 ],
5361 5416 childRoles: ['row', 'select', 'toolbar', 'graphics-object'],
5362 5417 },
5363 5418 heading: {
@@ -5372,7 +5427,18 @@ exports.roles = {
5372 5427 childRoles: ['doc-cover'],
5373 5428 },
5374 5429 input: {
5375 -1 childRoles: ['checkbox', 'option', 'radio', 'slider', 'spinbutton', 'textbox'],
-1 5430 childRoles: [
-1 5431 'checkbox',
-1 5432 'combobox',
-1 5433 'option',
-1 5434 'radio',
-1 5435 'slider',
-1 5436 'spinbutton',
-1 5437 'textbox',
-1 5438 ],
-1 5439 },
-1 5440 insertion: {
-1 5441 selectors: ['ins'],
5376 5442 },
5377 5443 landmark: {
5378 5444 childRoles: [
@@ -5403,16 +5469,17 @@ exports.roles = {
5403 5469 ],
5404 5470 },
5405 5471 link: {
5406 -1 selectors: ['a[href]', 'area[href]', 'link[href]'],
-1 5472 selectors: ['a[href]', 'area[href]'],
5407 5473 childRoles: ['doc-backlink', 'doc-biblioref', 'doc-glossref', 'doc-noteref'],
5408 5474 nameFromContents: true,
5409 5475 },
5410 5476 list: {
5411 -1 selectors: ['dl', 'ol', 'ul'],
-1 5477 selectors: ['dl', 'ol', 'ul', 'menu'],
5412 5478 childRoles: ['directory', 'feed'],
5413 5479 },
5414 5480 listbox: {
5415 5481 selectors: [
-1 5482 'datalist',
5416 5483 'select[multiple]',
5417 5484 'select[size]:not([size="0"]):not([size="1"])',
5418 5485 ],
@@ -5421,7 +5488,7 @@ exports.roles = {
5421 5488 },
5422 5489 },
5423 5490 listitem: {
5424 -1 selectors: ['dt', 'ul > li', 'ol > li'],
-1 5491 selectors: ['li'],
5425 5492 childRoles: ['doc-biblioentry', 'doc-endnote', 'treeitem'],
5426 5493 },
5427 5494 log: {
@@ -5435,8 +5502,14 @@ exports.roles = {
5435 5502 math: {
5436 5503 selectors: ['math'],
5437 5504 },
-1 5505 meter: {
-1 5506 selectors: ['meter'],
-1 5507 defaults: {
-1 5508 'valuemin': 0,
-1 5509 'valuemax': 100,
-1 5510 },
-1 5511 },
5438 5512 menu: {
5439 -1 selectors: ['menu[type="context"]'],
5440 5513 childRoles: ['menubar'],
5441 5514 defaults: {
5442 5515 'orientation': 'vertical',
@@ -5448,12 +5521,10 @@ exports.roles = {
5448 5521 },
5449 5522 },
5450 5523 menuitem: {
5451 -1 selectors: ['menuitem[type="command"]'],
5452 5524 childRoles: ['menuitemcheckbox'],
5453 5525 nameFromContents: true,
5454 5526 },
5455 5527 menuitemcheckbox: {
5456 -1 selectors: ['menuitem[type="checkbox"]'],
5457 5528 childRoles: ['menuitemradio'],
5458 5529 nameFromContents: true,
5459 5530 defaults: {
@@ -5461,7 +5532,6 @@ exports.roles = {
5461 5532 },
5462 5533 },
5463 5534 menuitemradio: {
5464 -1 selectors: ['menuitem[type="radio"]'],
5465 5535 nameFromContents: true,
5466 5536 defaults: {
5467 5537 'checked': 'false',
@@ -5482,11 +5552,18 @@ exports.roles = {
5482 5552 'selected': 'false',
5483 5553 },
5484 5554 },
-1 5555 paragraph: {
-1 5556 selectors: ['p'],
-1 5557 },
5485 5558 presentation: {
5486 5559 selectors: ['img[alt=""]'],
5487 5560 },
5488 5561 progressbar: {
5489 5562 selectors: ['progress'],
-1 5563 defaults: {
-1 5564 'valuemin': 0,
-1 5565 'valuemax': 100,
-1 5566 },
5490 5567 },
5491 5568 radio: {
5492 5569 selectors: ['input[type="radio"]'],
@@ -5497,7 +5574,7 @@ exports.roles = {
5497 5574 },
5498 5575 },
5499 5576 range: {
5500 -1 childRoles: ['progressbar', 'scrollbar', 'slider', 'spinbutton'],
-1 5577 childRoles: ['meter', 'progressbar', 'scrollbar', 'slider', 'spinbutton'],
5501 5578 },
5502 5579 region: {
5503 5580 selectors: ['section[aria-label]', 'section[aria-labelledby]', 'section[title]'],
@@ -5511,7 +5588,6 @@ exports.roles = {
5511 5588 },
5512 5589 rowgroup: {
5513 5590 selectors: ['tbody', 'thead', 'tfoot'],
5514 -1 nameFromContents: true,
5515 5591 },
5516 5592 rowheader: {
5517 5593 selectors: ['th[scope="row"]'],
@@ -5522,29 +5598,38 @@ exports.roles = {
5522 5598 'orientation': 'vertical',
5523 5599 'valuemin': 0,
5524 5600 'valuemax': 100,
5525 -1 // FIXME: halfway between actual valuemin and valuemax
5526 -1 'valuenow': 50,
5527 5601 },
5528 5602 },
-1 5603 search: {
-1 5604 selectors: ['search'],
-1 5605 },
5529 5606 searchbox: {
5530 5607 selectors: ['input[type="search"]:not([list])'],
5531 5608 },
5532 5609 section: {
5533 5610 childRoles: [
5534 5611 'alert',
-1 5612 'blockquote',
-1 5613 'caption',
5535 5614 'cell',
-1 5615 'code',
5536 5616 'definition',
-1 5617 'deletion',
5537 5618 'doc-abstract',
5538 5619 'doc-colophon',
5539 5620 'doc-credit',
5540 5621 'doc-dedication',
5541 5622 'doc-epigraph',
5542 -1 'doc-example',
5543 5623 'doc-footnote',
-1 5624 'doc-pagefooter',
-1 5625 'doc-pageheader',
-1 5626 'doc-pullquote',
5544 5627 'doc-qna',
-1 5628 'emphasis',
5545 5629 'figure',
5546 5630 'group',
5547 5631 'img',
-1 5632 'insertion',
5548 5633 'landmark',
5549 5634 'list',
5550 5635 'listitem',
@@ -5552,10 +5637,15 @@ exports.roles = {
5552 5637 'marquee',
5553 5638 'math',
5554 5639 'note',
-1 5640 'paragraph',
5555 5641 'status',
-1 5642 'strong',
-1 5643 'subscript',
-1 5644 'superscript',
5556 5645 'table',
5557 5646 'tabpanel',
5558 5647 'term',
-1 5648 'time',
5559 5649 'tooltip',
5560 5650 ],
5561 5651 },
@@ -5570,7 +5660,7 @@ exports.roles = {
5570 5660 nameFromContents: true,
5571 5661 },
5572 5662 select: {
5573 -1 childRoles: ['combobox', 'listbox', 'menu', 'radiogroup', 'tree'],
-1 5663 childRoles: ['listbox', 'menu', 'radiogroup', 'tree'],
5574 5664 },
5575 5665 separator: {
5576 5666 // assume not focussable because <hr> is not
@@ -5578,6 +5668,8 @@ exports.roles = {
5578 5668 childRoles: ['doc-pagebreak'],
5579 5669 defaults: {
5580 5670 'orientation': 'horizontal',
-1 5671 'valuemin': 0,
-1 5672 'valuemax': 100,
5581 5673 },
5582 5674 },
5583 5675 slider: {
@@ -5593,8 +5685,7 @@ exports.roles = {
5593 5685 spinbutton: {
5594 5686 selectors: ['input[type="number"]'],
5595 5687 defaults: {
5596 -1 // FIXME: no valuemin/valuemax
5597 -1 'valuenow': 0,
-1 5688 // FIXME: no valuemin/valuemax/valuenow
5598 5689 },
5599 5690 },
5600 5691 status: {
@@ -5605,18 +5696,29 @@ exports.roles = {
5605 5696 'atomic': true,
5606 5697 },
5607 5698 },
-1 5699 strong: {
-1 5700 selectors: ['strong'],
-1 5701 },
5608 5702 structure: {
5609 5703 childRoles: [
5610 5704 'application',
5611 5705 'document',
5612 5706 'none',
-1 5707 'generic',
5613 5708 'presentation',
-1 5709 'range',
5614 5710 'rowgroup',
5615 5711 'section',
5616 5712 'sectionhead',
5617 5713 'separator',
5618 5714 ],
5619 5715 },
-1 5716 subscript: {
-1 5717 selectors: ['sub'],
-1 5718 },
-1 5719 superscript: {
-1 5720 selectors: ['sup'],
-1 5721 },
5620 5722 switch: {
5621 5723 nameFromContents: true,
5622 5724 defaults: {
@@ -5652,6 +5754,14 @@ exports.roles = {
5652 5754 ],
5653 5755 childRoles: ['searchbox'],
5654 5756 },
-1 5757 time: {
-1 5758 selectors: ['time'],
-1 5759 },
-1 5760 timer: {
-1 5761 defaults: {
-1 5762 'live': 'off',
-1 5763 },
-1 5764 },
5655 5765 toolbar: {
5656 5766 defaults: {
5657 5767 'orientation': 'horizontal',
@@ -5675,8 +5785,10 @@ exports.roles = {
5675 5785 'composite',
5676 5786 'gridcell',
5677 5787 'input',
5678 -1 'range',
-1 5788 'progressbar',
5679 5789 'row',
-1 5790 'scrollbar',
-1 5791 'separator',
5680 5792 'tab',
5681 5793 ],
5682 5794 },
@@ -5685,22 +5797,14 @@ exports.roles = {
5685 5797 },
5686 5798 };
5687 5799
5688 -1 exports.scoped = [
5689 -1 'main *',
5690 -1 // https://www.w3.org/TR/html/dom.html#sectioning-content-2
5691 -1 'article *', 'aside *', 'nav *', 'section *',
5692 -1 // https://www.w3.org/TR/html/sections.html#sectioning-roots
5693 -1 'blockquote *', 'details *', 'dialog *', 'fieldset *', 'figure *', 'td *',
5694 -1 ].join(',');
5695 -1
5696 5800 var getSubRoles = function(role) {
5697 5801 var children = (exports.roles[role] || {}).childRoles || [];
5698 5802 var descendents = children.map(getSubRoles);
5699 5803
5700 5804 var result = [role];
5701 5805
5702 -1 descendents.forEach(function(list) {
5703 -1 list.forEach(function(r) {
-1 5806 descendents.forEach(list => {
-1 5807 list.forEach(r => {
5704 5808 if (!result.includes(r)) {
5705 5809 result.push(r);
5706 5810 }
@@ -5812,7 +5916,7 @@ var getName = function(el, recursive, visited, directReference) {
5812 5916 // B
5813 5917 if (!recursive && el.matches('[aria-labelledby]')) {
5814 5918 var ids = el.getAttribute('aria-labelledby').split(/\s+/);
5815 -1 var strings = ids.map(function(id) {
-1 5919 var strings = ids.map(id => {
5816 5920 var label = document.getElementById(id);
5817 5921 return label ? getName(label, true, visited, true) : '';
5818 5922 });
@@ -5827,7 +5931,7 @@ var getName = function(el, recursive, visited, directReference) {
5827 5931
5828 5932 // D
5829 5933 if (!ret.trim() && !recursive && el.labels) {
5830 -1 var strings = Array.prototype.map.call(el.labels, function(label) {
-1 5934 var strings = Array.prototype.map.call(el.labels, label => {
5831 5935 return getName(label, true, visited);
5832 5936 });
5833 5937 ret = strings.join(' ');
@@ -5851,6 +5955,12 @@ var getName = function(el, recursive, visited, directReference) {
5851 5955 }
5852 5956 }
5853 5957 }
-1 5958 if (!ret.trim() && el.matches('svg *')) {
-1 5959 var svgTitle = el.querySelector('title');
-1 5960 if (svgTitle && svgTitle.parentElement === el) {
-1 5961 ret = svgTitle.textContent;
-1 5962 }
-1 5963 }
5854 5964
5855 5965 // E
5856 5966 if (!ret.trim() && (recursive || isInLabelForOtherWidget(el) || query.matches(el, 'button'))) {
@@ -5913,15 +6023,20 @@ var getDescription = function(el) {
5913 6023
5914 6024 if (el.matches('[aria-describedby]')) {
5915 6025 var ids = el.getAttribute('aria-describedby').split(/\s+/);
5916 -1 var strings = ids.map(function(id) {
-1 6026 var strings = ids.map(id => {
5917 6027 var label = document.getElementById(id);
5918 6028 return label ? getName(label, true) : '';
5919 6029 });
5920 6030 ret = strings.join(' ');
-1 6031 } else if (el.matches('[aria-description]')) {
-1 6032 ret = el.getAttribute('aria-description');
-1 6033 } else if (el.matches('svg *')) {
-1 6034 var svgDesc = el.querySelector('desc');
-1 6035 if (svgDesc && svgDesc.parentElement === el) {
-1 6036 ret = svgDesc.textContent;
-1 6037 }
5921 6038 } else if (el.title) {
5922 6039 ret = el.title;
5923 -1 } else if (el.placeholder) {
5924 -1 ret = el.placeholder;
5925 6040 }
5926 6041
5927 6042 ret = (ret || '').trim().replace(/\s+/g, ' ');
@@ -5963,7 +6078,7 @@ var _querySelector = function(all) {
5963 6078 return function(root, role) {
5964 6079 var results = [];
5965 6080 try {
5966 -1 atree.walk(root, function(node) {
-1 6081 atree.walk(root, node => {
5967 6082 if (node.nodeType === node.ELEMENT_NODE) {
5968 6083 // FIXME: skip hidden elements
5969 6084 if (matches(node, role)) {
@@ -5984,7 +6099,7 @@ var _querySelector = function(all) {
5984 6099 };
5985 6100
5986 6101 var closest = function(el, selector) {
5987 -1 return atree.searchUp(el, function(candidate) {
-1 6102 return atree.searchUp(el, candidate => {
5988 6103 if (candidate.nodeType === candidate.ELEMENT_NODE) {
5989 6104 return matches(candidate, selector);
5990 6105 }
@@ -5992,9 +6107,7 @@ var closest = function(el, selector) {
5992 6107 };
5993 6108
5994 6109 module.exports = {
5995 -1 getRole: function(el) {
5996 -1 return attrs.getRole(el);
5997 -1 },
-1 6110 getRole: el => attrs.getRole(el),
5998 6111 getAttribute: attrs.getAttribute,
5999 6112 matches: matches,
6000 6113 querySelector: _querySelector(),
@@ -6004,8 +6117,8 @@ module.exports = {
6004 6117
6005 6118 },{"./atree.js":10,"./attrs.js":11}],15:[function(require,module,exports){
6006 6119 (function (process,setImmediate){(function (){
6007 -1 /*! axe v4.6.2
6008 -1 * Copyright (c) 2023 Deque Systems, Inc.
-1 6120 /*! axe v4.8.3
-1 6121 * Copyright (c) 2015 - 2023 Deque Systems, Inc.
6009 6122 *
6010 6123 * Your use of this Source Code Form is subject to the terms of the Mozilla Public
6011 6124 * License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -6028,7 +6141,7 @@ module.exports = {
6028 6141 }, _typeof(obj);
6029 6142 }
6030 6143 var axe = axe || {};
6031 -1 axe.version = '4.6.2';
-1 6144 axe.version = '4.8.3';
6032 6145 if (typeof define === 'function' && define.amd) {
6033 6146 define('axe-core', [], function() {
6034 6147 return axe;
@@ -6055,11 +6168,12 @@ module.exports = {
6055 6168 SupportError.prototype = Object.create(Error.prototype);
6056 6169 SupportError.prototype.constructor = SupportError;
6057 6170 'use strict';
6058 -1 var _excluded = [ 'node' ], _excluded2 = [ 'variant' ], _excluded3 = [ 'matches' ], _excluded4 = [ 'chromium' ], _excluded5 = [ 'noImplicit' ], _excluded6 = [ 'noPresentational' ], _excluded7 = [ 'node' ], _excluded8 = [ 'nodes' ], _excluded9 = [ 'node' ], _excluded10 = [ 'relatedNodes' ], _excluded11 = [ 'environmentData' ], _excluded12 = [ 'environmentData' ], _excluded13 = [ 'node' ], _excluded14 = [ 'environmentData' ], _excluded15 = [ 'environmentData' ], _excluded16 = [ 'environmentData' ];
-1 6171 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' ];
6059 6172 function _toArray(arr) {
6060 6173 return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
6061 6174 }
6062 6175 function _defineProperty(obj, key, value) {
-1 6176 key = _toPropertyKey(key);
6063 6177 if (key in obj) {
6064 6178 Object.defineProperty(obj, key, {
6065 6179 value: value,
@@ -6072,6 +6186,23 @@ module.exports = {
6072 6186 }
6073 6187 return obj;
6074 6188 }
-1 6189 function _construct(Parent, args, Class) {
-1 6190 if (_isNativeReflectConstruct()) {
-1 6191 _construct = Reflect.construct.bind();
-1 6192 } else {
-1 6193 _construct = function _construct(Parent, args, Class) {
-1 6194 var a = [ null ];
-1 6195 a.push.apply(a, args);
-1 6196 var Constructor = Function.bind.apply(Parent, a);
-1 6197 var instance = new Constructor();
-1 6198 if (Class) {
-1 6199 _setPrototypeOf(instance, Class.prototype);
-1 6200 }
-1 6201 return instance;
-1 6202 };
-1 6203 }
-1 6204 return _construct.apply(null, arguments);
-1 6205 }
6075 6206 function _inherits(subClass, superClass) {
6076 6207 if (typeof superClass !== 'function' && superClass !== null) {
6077 6208 throw new TypeError('Super expression must either be null or a function');
@@ -6147,6 +6278,56 @@ module.exports = {
6147 6278 };
6148 6279 return _getPrototypeOf(o);
6149 6280 }
-1 6281 function _classPrivateFieldInitSpec(obj, privateMap, value) {
-1 6282 _checkPrivateRedeclaration(obj, privateMap);
-1 6283 privateMap.set(obj, value);
-1 6284 }
-1 6285 function _classPrivateMethodInitSpec(obj, privateSet) {
-1 6286 _checkPrivateRedeclaration(obj, privateSet);
-1 6287 privateSet.add(obj);
-1 6288 }
-1 6289 function _checkPrivateRedeclaration(obj, privateCollection) {
-1 6290 if (privateCollection.has(obj)) {
-1 6291 throw new TypeError('Cannot initialize the same private elements twice on an object');
-1 6292 }
-1 6293 }
-1 6294 function _classPrivateFieldGet(receiver, privateMap) {
-1 6295 var descriptor = _classExtractFieldDescriptor(receiver, privateMap, 'get');
-1 6296 return _classApplyDescriptorGet(receiver, descriptor);
-1 6297 }
-1 6298 function _classApplyDescriptorGet(receiver, descriptor) {
-1 6299 if (descriptor.get) {
-1 6300 return descriptor.get.call(receiver);
-1 6301 }
-1 6302 return descriptor.value;
-1 6303 }
-1 6304 function _classPrivateMethodGet(receiver, privateSet, fn) {
-1 6305 if (!privateSet.has(receiver)) {
-1 6306 throw new TypeError('attempted to get private field on non-instance');
-1 6307 }
-1 6308 return fn;
-1 6309 }
-1 6310 function _classPrivateFieldSet(receiver, privateMap, value) {
-1 6311 var descriptor = _classExtractFieldDescriptor(receiver, privateMap, 'set');
-1 6312 _classApplyDescriptorSet(receiver, descriptor, value);
-1 6313 return value;
-1 6314 }
-1 6315 function _classExtractFieldDescriptor(receiver, privateMap, action) {
-1 6316 if (!privateMap.has(receiver)) {
-1 6317 throw new TypeError('attempted to ' + action + ' private field on non-instance');
-1 6318 }
-1 6319 return privateMap.get(receiver);
-1 6320 }
-1 6321 function _classApplyDescriptorSet(receiver, descriptor, value) {
-1 6322 if (descriptor.set) {
-1 6323 descriptor.set.call(receiver, value);
-1 6324 } else {
-1 6325 if (!descriptor.writable) {
-1 6326 throw new TypeError('attempted to set read only private field');
-1 6327 }
-1 6328 descriptor.value = value;
-1 6329 }
-1 6330 }
6150 6331 function _objectWithoutProperties(source, excluded) {
6151 6332 if (source == null) {
6152 6333 return {};
@@ -6221,36 +6402,34 @@ module.exports = {
6221 6402 throw new TypeError('Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.');
6222 6403 }
6223 6404 function _iterableToArrayLimit(arr, i) {
6224 -1 var _i = arr == null ? null : typeof Symbol !== 'undefined' && arr[Symbol.iterator] || arr['@@iterator'];
6225 -1 if (_i == null) {
6226 -1 return;
6227 -1 }
6228 -1 var _arr = [];
6229 -1 var _n = true;
6230 -1 var _d = false;
6231 -1 var _s, _e;
6232 -1 try {
6233 -1 for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
6234 -1 _arr.push(_s.value);
6235 -1 if (i && _arr.length === i) {
6236 -1 break;
6237 -1 }
6238 -1 }
6239 -1 } catch (err) {
6240 -1 _d = true;
6241 -1 _e = err;
6242 -1 } finally {
-1 6405 var _i = null == arr ? null : 'undefined' != typeof Symbol && arr[Symbol.iterator] || arr['@@iterator'];
-1 6406 if (null != _i) {
-1 6407 var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1;
6243 6408 try {
6244 -1 if (!_n && _i['return'] != null) {
6245 -1 _i['return']();
-1 6409 if (_x = (_i = _i.call(arr)).next, 0 === i) {
-1 6410 if (Object(_i) !== _i) {
-1 6411 return;
-1 6412 }
-1 6413 _n = !1;
-1 6414 } else {
-1 6415 for (;!(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) {
-1 6416 }
6246 6417 }
-1 6418 } catch (err) {
-1 6419 _d = !0, _e = err;
6247 6420 } finally {
6248 -1 if (_d) {
6249 -1 throw _e;
-1 6421 try {
-1 6422 if (!_n && null != _i['return'] && (_r = _i['return'](), Object(_r) !== _r)) {
-1 6423 return;
-1 6424 }
-1 6425 } finally {
-1 6426 if (_d) {
-1 6427 throw _e;
-1 6428 }
6250 6429 }
6251 6430 }
-1 6431 return _arr;
6252 6432 }
6253 -1 return _arr;
6254 6433 }
6255 6434 function _arrayWithHoles(arr) {
6256 6435 if (Array.isArray(arr)) {
@@ -6270,7 +6449,7 @@ module.exports = {
6270 6449 if ('value' in descriptor) {
6271 6450 descriptor.writable = true;
6272 6451 }
6273 -1 Object.defineProperty(target, descriptor.key, descriptor);
-1 6452 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
6274 6453 }
6275 6454 }
6276 6455 function _createClass(Constructor, protoProps, staticProps) {
@@ -6285,6 +6464,24 @@ module.exports = {
6285 6464 });
6286 6465 return Constructor;
6287 6466 }
-1 6467 function _toPropertyKey(arg) {
-1 6468 var key = _toPrimitive(arg, 'string');
-1 6469 return _typeof(key) === 'symbol' ? key : String(key);
-1 6470 }
-1 6471 function _toPrimitive(input, hint) {
-1 6472 if (_typeof(input) !== 'object' || input === null) {
-1 6473 return input;
-1 6474 }
-1 6475 var prim = input[Symbol.toPrimitive];
-1 6476 if (prim !== undefined) {
-1 6477 var res = prim.call(input, hint || 'default');
-1 6478 if (_typeof(res) !== 'object') {
-1 6479 return res;
-1 6480 }
-1 6481 throw new TypeError('@@toPrimitive must return a primitive value.');
-1 6482 }
-1 6483 return (hint === 'string' ? String : Number)(input);
-1 6484 }
6288 6485 function _createForOfIteratorHelper(o, allowArrayLike) {
6289 6486 var it = typeof Symbol !== 'undefined' && o[Symbol.iterator] || o['@@iterator'];
6290 6487 if (!it) {
@@ -6378,12 +6575,21 @@ module.exports = {
6378 6575 }, _typeof(obj);
6379 6576 }
6380 6577 (function() {
-1 6578 var _processFormat, _path, _getPath, _space;
6381 6579 var __create = Object.create;
6382 6580 var __defProp = Object.defineProperty;
6383 6581 var __getProtoOf = Object.getPrototypeOf;
6384 6582 var __hasOwnProp = Object.prototype.hasOwnProperty;
6385 6583 var __getOwnPropNames = Object.getOwnPropertyNames;
6386 6584 var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
-1 6585 var __defNormalProp = function __defNormalProp(obj, key, value) {
-1 6586 return key in obj ? __defProp(obj, key, {
-1 6587 enumerable: true,
-1 6588 configurable: true,
-1 6589 writable: true,
-1 6590 value: value
-1 6591 }) : obj[key] = value;
-1 6592 };
6387 6593 var __markAsModule = function __markAsModule(target) {
6388 6594 return __defProp(target, '__esModule', {
6389 6595 value: true
@@ -6441,793 +6647,176 @@ module.exports = {
6441 6647 enumerable: true
6442 6648 })), module);
6443 6649 };
6444 -1 var require_utils = __commonJS(function(exports) {
-1 6650 var __publicField = function __publicField(obj, key, value) {
-1 6651 __defNormalProp(obj, _typeof(key) !== 'symbol' ? key + '' : key, value);
-1 6652 return value;
-1 6653 };
-1 6654 var require_noop = __commonJS(function(exports, module) {
6445 6655 'use strict';
6446 -1 Object.defineProperty(exports, '__esModule', {
6447 -1 value: true
6448 -1 });
6449 -1 function isIdentStart(c) {
6450 -1 return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c === '-' || c === '_';
6451 -1 }
6452 -1 exports.isIdentStart = isIdentStart;
6453 -1 function isIdent(c) {
6454 -1 return c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z' || c >= '0' && c <= '9' || c === '-' || c === '_';
6455 -1 }
6456 -1 exports.isIdent = isIdent;
6457 -1 function isHex(c) {
6458 -1 return c >= 'a' && c <= 'f' || c >= 'A' && c <= 'F' || c >= '0' && c <= '9';
6459 -1 }
6460 -1 exports.isHex = isHex;
6461 -1 function escapeIdentifier(s) {
6462 -1 var len = s.length;
6463 -1 var result = '';
6464 -1 var i = 0;
6465 -1 while (i < len) {
6466 -1 var chr = s.charAt(i);
6467 -1 if (exports.identSpecialChars[chr]) {
6468 -1 result += '\\' + chr;
6469 -1 } else {
6470 -1 if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {
6471 -1 var charCode = chr.charCodeAt(0);
6472 -1 if ((charCode & 63488) === 55296) {
6473 -1 var extraCharCode = s.charCodeAt(i++);
6474 -1 if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {
6475 -1 throw Error('UCS-2(decode): illegal sequence');
6476 -1 }
6477 -1 charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;
6478 -1 }
6479 -1 result += '\\' + charCode.toString(16) + ' ';
6480 -1 } else {
6481 -1 result += chr;
6482 -1 }
6483 -1 }
6484 -1 i++;
6485 -1 }
6486 -1 return result;
6487 -1 }
6488 -1 exports.escapeIdentifier = escapeIdentifier;
6489 -1 function escapeStr(s) {
6490 -1 var len = s.length;
6491 -1 var result = '';
6492 -1 var i = 0;
6493 -1 var replacement;
6494 -1 while (i < len) {
6495 -1 var chr = s.charAt(i);
6496 -1 if (chr === '"') {
6497 -1 chr = '\\"';
6498 -1 } else if (chr === '\\') {
6499 -1 chr = '\\\\';
6500 -1 } else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {
6501 -1 chr = replacement;
6502 -1 }
6503 -1 result += chr;
6504 -1 i++;
6505 -1 }
6506 -1 return '"' + result + '"';
6507 -1 }
6508 -1 exports.escapeStr = escapeStr;
6509 -1 exports.identSpecialChars = {
6510 -1 '!': true,
6511 -1 '"': true,
6512 -1 '#': true,
6513 -1 $: true,
6514 -1 '%': true,
6515 -1 '&': true,
6516 -1 '\'': true,
6517 -1 '(': true,
6518 -1 ')': true,
6519 -1 '*': true,
6520 -1 '+': true,
6521 -1 ',': true,
6522 -1 '.': true,
6523 -1 '/': true,
6524 -1 ';': true,
6525 -1 '<': true,
6526 -1 '=': true,
6527 -1 '>': true,
6528 -1 '?': true,
6529 -1 '@': true,
6530 -1 '[': true,
6531 -1 '\\': true,
6532 -1 ']': true,
6533 -1 '^': true,
6534 -1 '`': true,
6535 -1 '{': true,
6536 -1 '|': true,
6537 -1 '}': true,
6538 -1 '~': true
6539 -1 };
6540 -1 exports.strReplacementsRev = {
6541 -1 '\n': '\\n',
6542 -1 '\r': '\\r',
6543 -1 '\t': '\\t',
6544 -1 '\f': '\\f',
6545 -1 '\v': '\\v'
-1 6656 module.exports = function() {};
-1 6657 });
-1 6658 var require_is_value = __commonJS(function(exports, module) {
-1 6659 'use strict';
-1 6660 var _undefined = require_noop()();
-1 6661 module.exports = function(val) {
-1 6662 return val !== _undefined && val !== null;
6546 6663 };
6547 -1 exports.singleQuoteEscapeChars = {
6548 -1 n: '\n',
6549 -1 r: '\r',
6550 -1 t: '\t',
6551 -1 f: '\f',
6552 -1 '\\': '\\',
6553 -1 '\'': '\''
-1 6664 });
-1 6665 var require_normalize_options = __commonJS(function(exports, module) {
-1 6666 'use strict';
-1 6667 var isValue = require_is_value();
-1 6668 var forEach = Array.prototype.forEach;
-1 6669 var create = Object.create;
-1 6670 var process2 = function process2(src, obj) {
-1 6671 var key;
-1 6672 for (key in src) {
-1 6673 obj[key] = src[key];
-1 6674 }
6554 6675 };
6555 -1 exports.doubleQuotesEscapeChars = {
6556 -1 n: '\n',
6557 -1 r: '\r',
6558 -1 t: '\t',
6559 -1 f: '\f',
6560 -1 '\\': '\\',
6561 -1 '"': '"'
-1 6676 module.exports = function(opts1) {
-1 6677 var result = create(null);
-1 6678 forEach.call(arguments, function(options) {
-1 6679 if (!isValue(options)) {
-1 6680 return;
-1 6681 }
-1 6682 process2(Object(options), result);
-1 6683 });
-1 6684 return result;
6562 6685 };
6563 6686 });
6564 -1 var require_parser_context = __commonJS(function(exports) {
-1 6687 var require_is_implemented = __commonJS(function(exports, module) {
6565 6688 'use strict';
6566 -1 Object.defineProperty(exports, '__esModule', {
6567 -1 value: true
6568 -1 });
6569 -1 var utils_1 = require_utils();
6570 -1 function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) {
6571 -1 var l = str.length;
6572 -1 var chr = '';
6573 -1 function getStr(quote, escapeTable) {
6574 -1 var result = '';
6575 -1 pos++;
6576 -1 chr = str.charAt(pos);
6577 -1 while (pos < l) {
6578 -1 if (chr === quote) {
6579 -1 pos++;
6580 -1 return result;
6581 -1 } else if (chr === '\\') {
6582 -1 pos++;
6583 -1 chr = str.charAt(pos);
6584 -1 var esc = void 0;
6585 -1 if (chr === quote) {
6586 -1 result += quote;
6587 -1 } else if ((esc = escapeTable[chr]) !== void 0) {
6588 -1 result += esc;
6589 -1 } else if (utils_1.isHex(chr)) {
6590 -1 var hex = chr;
6591 -1 pos++;
6592 -1 chr = str.charAt(pos);
6593 -1 while (utils_1.isHex(chr)) {
6594 -1 hex += chr;
6595 -1 pos++;
6596 -1 chr = str.charAt(pos);
6597 -1 }
6598 -1 if (chr === ' ') {
6599 -1 pos++;
6600 -1 chr = str.charAt(pos);
6601 -1 }
6602 -1 result += String.fromCharCode(parseInt(hex, 16));
6603 -1 continue;
6604 -1 } else {
6605 -1 result += chr;
6606 -1 }
6607 -1 } else {
6608 -1 result += chr;
6609 -1 }
6610 -1 pos++;
6611 -1 chr = str.charAt(pos);
6612 -1 }
6613 -1 return result;
-1 6689 module.exports = function() {
-1 6690 var sign = Math.sign;
-1 6691 if (typeof sign !== 'function') {
-1 6692 return false;
6614 6693 }
6615 -1 function getIdent() {
6616 -1 var result = '';
6617 -1 chr = str.charAt(pos);
6618 -1 while (pos < l) {
6619 -1 if (utils_1.isIdent(chr)) {
6620 -1 result += chr;
6621 -1 } else if (chr === '\\') {
6622 -1 pos++;
6623 -1 if (pos >= l) {
6624 -1 throw Error('Expected symbol but end of file reached.');
6625 -1 }
6626 -1 chr = str.charAt(pos);
6627 -1 if (utils_1.identSpecialChars[chr]) {
6628 -1 result += chr;
6629 -1 } else if (utils_1.isHex(chr)) {
6630 -1 var hex = chr;
6631 -1 pos++;
6632 -1 chr = str.charAt(pos);
6633 -1 while (utils_1.isHex(chr)) {
6634 -1 hex += chr;
6635 -1 pos++;
6636 -1 chr = str.charAt(pos);
6637 -1 }
6638 -1 if (chr === ' ') {
6639 -1 pos++;
6640 -1 chr = str.charAt(pos);
6641 -1 }
6642 -1 result += String.fromCharCode(parseInt(hex, 16));
6643 -1 continue;
6644 -1 } else {
6645 -1 result += chr;
6646 -1 }
6647 -1 } else {
6648 -1 return result;
6649 -1 }
6650 -1 pos++;
6651 -1 chr = str.charAt(pos);
6652 -1 }
6653 -1 return result;
-1 6694 return sign(10) === 1 && sign(-20) === -1;
-1 6695 };
-1 6696 });
-1 6697 var require_shim = __commonJS(function(exports, module) {
-1 6698 'use strict';
-1 6699 module.exports = function(value) {
-1 6700 value = Number(value);
-1 6701 if (isNaN(value) || value === 0) {
-1 6702 return value;
6654 6703 }
6655 -1 function skipWhitespace() {
6656 -1 chr = str.charAt(pos);
6657 -1 var result = false;
6658 -1 while (chr === ' ' || chr === '\t' || chr === '\n' || chr === '\r' || chr === '\f') {
6659 -1 result = true;
6660 -1 pos++;
6661 -1 chr = str.charAt(pos);
6662 -1 }
6663 -1 return result;
-1 6704 return value > 0 ? 1 : -1;
-1 6705 };
-1 6706 });
-1 6707 var require_sign = __commonJS(function(exports, module) {
-1 6708 'use strict';
-1 6709 module.exports = require_is_implemented()() ? Math.sign : require_shim();
-1 6710 });
-1 6711 var require_to_integer = __commonJS(function(exports, module) {
-1 6712 'use strict';
-1 6713 var sign = require_sign();
-1 6714 var abs = Math.abs;
-1 6715 var floor = Math.floor;
-1 6716 module.exports = function(value) {
-1 6717 if (isNaN(value)) {
-1 6718 return 0;
6664 6719 }
6665 -1 function parse2() {
6666 -1 var res = parseSelector();
6667 -1 if (pos < l) {
6668 -1 throw Error('Rule expected but "' + str.charAt(pos) + '" found.');
6669 -1 }
6670 -1 return res;
-1 6720 value = Number(value);
-1 6721 if (value === 0 || !isFinite(value)) {
-1 6722 return value;
6671 6723 }
6672 -1 function parseSelector() {
6673 -1 var selector = parseSingleSelector();
6674 -1 if (!selector) {
6675 -1 return null;
-1 6724 return sign(value) * floor(abs(value));
-1 6725 };
-1 6726 });
-1 6727 var require_to_pos_integer = __commonJS(function(exports, module) {
-1 6728 'use strict';
-1 6729 var toInteger = require_to_integer();
-1 6730 var max2 = Math.max;
-1 6731 module.exports = function(value) {
-1 6732 return max2(0, toInteger(value));
-1 6733 };
-1 6734 });
-1 6735 var require_resolve_length = __commonJS(function(exports, module) {
-1 6736 'use strict';
-1 6737 var toPosInt = require_to_pos_integer();
-1 6738 module.exports = function(optsLength, fnLength, isAsync) {
-1 6739 var length;
-1 6740 if (isNaN(optsLength)) {
-1 6741 length = fnLength;
-1 6742 if (!(length >= 0)) {
-1 6743 return 1;
6676 6744 }
6677 -1 var res = selector;
6678 -1 chr = str.charAt(pos);
6679 -1 while (chr === ',') {
6680 -1 pos++;
6681 -1 skipWhitespace();
6682 -1 if (res.type !== 'selectors') {
6683 -1 res = {
6684 -1 type: 'selectors',
6685 -1 selectors: [ selector ]
6686 -1 };
6687 -1 }
6688 -1 selector = parseSingleSelector();
6689 -1 if (!selector) {
6690 -1 throw Error('Rule expected after ",".');
6691 -1 }
6692 -1 res.selectors.push(selector);
-1 6745 if (isAsync && length) {
-1 6746 return length - 1;
6693 6747 }
6694 -1 return res;
-1 6748 return length;
6695 6749 }
6696 -1 function parseSingleSelector() {
6697 -1 skipWhitespace();
6698 -1 var selector = {
6699 -1 type: 'ruleSet'
6700 -1 };
6701 -1 var rule = parseRule();
6702 -1 if (!rule) {
6703 -1 return null;
-1 6750 if (optsLength === false) {
-1 6751 return false;
-1 6752 }
-1 6753 return toPosInt(optsLength);
-1 6754 };
-1 6755 });
-1 6756 var require_valid_callable = __commonJS(function(exports, module) {
-1 6757 'use strict';
-1 6758 module.exports = function(fn) {
-1 6759 if (typeof fn !== 'function') {
-1 6760 throw new TypeError(fn + ' is not a function');
-1 6761 }
-1 6762 return fn;
-1 6763 };
-1 6764 });
-1 6765 var require_valid_value = __commonJS(function(exports, module) {
-1 6766 'use strict';
-1 6767 var isValue = require_is_value();
-1 6768 module.exports = function(value) {
-1 6769 if (!isValue(value)) {
-1 6770 throw new TypeError('Cannot use null or undefined');
-1 6771 }
-1 6772 return value;
-1 6773 };
-1 6774 });
-1 6775 var require_iterate = __commonJS(function(exports, module) {
-1 6776 'use strict';
-1 6777 var callable = require_valid_callable();
-1 6778 var value = require_valid_value();
-1 6779 var bind = Function.prototype.bind;
-1 6780 var call = Function.prototype.call;
-1 6781 var keys = Object.keys;
-1 6782 var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
-1 6783 module.exports = function(method, defVal) {
-1 6784 return function(obj, cb) {
-1 6785 var list, thisArg = arguments[2], compareFn = arguments[3];
-1 6786 obj = Object(value(obj));
-1 6787 callable(cb);
-1 6788 list = keys(obj);
-1 6789 if (compareFn) {
-1 6790 list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);
6704 6791 }
6705 -1 var currentRule = selector;
6706 -1 while (rule) {
6707 -1 rule.type = 'rule';
6708 -1 currentRule.rule = rule;
6709 -1 currentRule = rule;
6710 -1 skipWhitespace();
6711 -1 chr = str.charAt(pos);
6712 -1 if (pos >= l || chr === ',' || chr === ')') {
6713 -1 break;
6714 -1 }
6715 -1 if (ruleNestingOperators[chr]) {
6716 -1 var op = chr;
6717 -1 pos++;
6718 -1 skipWhitespace();
6719 -1 rule = parseRule();
6720 -1 if (!rule) {
6721 -1 throw Error('Rule expected after "' + op + '".');
6722 -1 }
6723 -1 rule.nestingOperator = op;
6724 -1 } else {
6725 -1 rule = parseRule();
6726 -1 if (rule) {
6727 -1 rule.nestingOperator = null;
6728 -1 }
6729 -1 }
-1 6792 if (typeof method !== 'function') {
-1 6793 method = list[method];
6730 6794 }
6731 -1 return selector;
6732 -1 }
6733 -1 function parseRule() {
6734 -1 var rule = null;
6735 -1 while (pos < l) {
6736 -1 chr = str.charAt(pos);
6737 -1 if (chr === '*') {
6738 -1 pos++;
6739 -1 (rule = rule || {}).tagName = '*';
6740 -1 } else if (utils_1.isIdentStart(chr) || chr === '\\') {
6741 -1 (rule = rule || {}).tagName = getIdent();
6742 -1 } else if (chr === '.') {
6743 -1 pos++;
6744 -1 rule = rule || {};
6745 -1 (rule.classNames = rule.classNames || []).push(getIdent());
6746 -1 } else if (chr === '#') {
6747 -1 pos++;
6748 -1 (rule = rule || {}).id = getIdent();
6749 -1 } else if (chr === '[') {
6750 -1 pos++;
6751 -1 skipWhitespace();
6752 -1 var attr = {
6753 -1 name: getIdent()
6754 -1 };
6755 -1 skipWhitespace();
6756 -1 if (chr === ']') {
6757 -1 pos++;
6758 -1 } else {
6759 -1 var operator = '';
6760 -1 if (attrEqualityMods[chr]) {
6761 -1 operator = chr;
6762 -1 pos++;
6763 -1 chr = str.charAt(pos);
6764 -1 }
6765 -1 if (pos >= l) {
6766 -1 throw Error('Expected "=" but end of file reached.');
6767 -1 }
6768 -1 if (chr !== '=') {
6769 -1 throw Error('Expected "=" but "' + chr + '" found.');
6770 -1 }
6771 -1 attr.operator = operator + '=';
6772 -1 pos++;
6773 -1 skipWhitespace();
6774 -1 var attrValue = '';
6775 -1 attr.valueType = 'string';
6776 -1 if (chr === '"') {
6777 -1 attrValue = getStr('"', utils_1.doubleQuotesEscapeChars);
6778 -1 } else if (chr === '\'') {
6779 -1 attrValue = getStr('\'', utils_1.singleQuoteEscapeChars);
6780 -1 } else if (substitutesEnabled && chr === '$') {
6781 -1 pos++;
6782 -1 attrValue = getIdent();
6783 -1 attr.valueType = 'substitute';
6784 -1 } else {
6785 -1 while (pos < l) {
6786 -1 if (chr === ']') {
6787 -1 break;
6788 -1 }
6789 -1 attrValue += chr;
6790 -1 pos++;
6791 -1 chr = str.charAt(pos);
6792 -1 }
6793 -1 attrValue = attrValue.trim();
6794 -1 }
6795 -1 skipWhitespace();
6796 -1 if (pos >= l) {
6797 -1 throw Error('Expected "]" but end of file reached.');
6798 -1 }
6799 -1 if (chr !== ']') {
6800 -1 throw Error('Expected "]" but "' + chr + '" found.');
6801 -1 }
6802 -1 pos++;
6803 -1 attr.value = attrValue;
6804 -1 }
6805 -1 rule = rule || {};
6806 -1 (rule.attrs = rule.attrs || []).push(attr);
6807 -1 } else if (chr === ':') {
6808 -1 pos++;
6809 -1 var pseudoName = getIdent();
6810 -1 var pseudo = {
6811 -1 name: pseudoName
6812 -1 };
6813 -1 if (chr === '(') {
6814 -1 pos++;
6815 -1 var value = '';
6816 -1 skipWhitespace();
6817 -1 if (pseudos[pseudoName] === 'selector') {
6818 -1 pseudo.valueType = 'selector';
6819 -1 value = parseSelector();
6820 -1 } else {
6821 -1 pseudo.valueType = pseudos[pseudoName] || 'string';
6822 -1 if (chr === '"') {
6823 -1 value = getStr('"', utils_1.doubleQuotesEscapeChars);
6824 -1 } else if (chr === '\'') {
6825 -1 value = getStr('\'', utils_1.singleQuoteEscapeChars);
6826 -1 } else if (substitutesEnabled && chr === '$') {
6827 -1 pos++;
6828 -1 value = getIdent();
6829 -1 pseudo.valueType = 'substitute';
6830 -1 } else {
6831 -1 while (pos < l) {
6832 -1 if (chr === ')') {
6833 -1 break;
6834 -1 }
6835 -1 value += chr;
6836 -1 pos++;
6837 -1 chr = str.charAt(pos);
6838 -1 }
6839 -1 value = value.trim();
6840 -1 }
6841 -1 skipWhitespace();
6842 -1 }
6843 -1 if (pos >= l) {
6844 -1 throw Error('Expected ")" but end of file reached.');
6845 -1 }
6846 -1 if (chr !== ')') {
6847 -1 throw Error('Expected ")" but "' + chr + '" found.');
6848 -1 }
6849 -1 pos++;
6850 -1 pseudo.value = value;
6851 -1 }
6852 -1 rule = rule || {};
6853 -1 (rule.pseudos = rule.pseudos || []).push(pseudo);
6854 -1 } else {
6855 -1 break;
-1 6795 return call.call(method, list, function(key, index) {
-1 6796 if (!objPropertyIsEnumerable.call(obj, key)) {
-1 6797 return defVal;
6856 6798 }
6857 -1 }
6858 -1 return rule;
6859 -1 }
6860 -1 return parse2();
6861 -1 }
6862 -1 exports.parseCssSelector = parseCssSelector;
-1 6799 return call.call(cb, thisArg, obj[key], key, obj, index);
-1 6800 });
-1 6801 };
-1 6802 };
6863 6803 });
6864 -1 var require_render = __commonJS(function(exports) {
-1 6804 var require_for_each = __commonJS(function(exports, module) {
6865 6805 'use strict';
6866 -1 Object.defineProperty(exports, '__esModule', {
6867 -1 value: true
6868 -1 });
6869 -1 var utils_1 = require_utils();
6870 -1 function renderEntity(entity) {
6871 -1 var res = '';
6872 -1 switch (entity.type) {
6873 -1 case 'ruleSet':
6874 -1 var currentEntity = entity.rule;
6875 -1 var parts = [];
6876 -1 while (currentEntity) {
6877 -1 if (currentEntity.nestingOperator) {
6878 -1 parts.push(currentEntity.nestingOperator);
6879 -1 }
6880 -1 parts.push(renderEntity(currentEntity));
6881 -1 currentEntity = currentEntity.rule;
6882 -1 }
6883 -1 res = parts.join(' ');
6884 -1 break;
6885 -1
6886 -1 case 'selectors':
6887 -1 res = entity.selectors.map(renderEntity).join(', ');
6888 -1 break;
6889 -1
6890 -1 case 'rule':
6891 -1 if (entity.tagName) {
6892 -1 if (entity.tagName === '*') {
6893 -1 res = '*';
6894 -1 } else {
6895 -1 res = utils_1.escapeIdentifier(entity.tagName);
6896 -1 }
6897 -1 }
6898 -1 if (entity.id) {
6899 -1 res += '#' + utils_1.escapeIdentifier(entity.id);
6900 -1 }
6901 -1 if (entity.classNames) {
6902 -1 res += entity.classNames.map(function(cn) {
6903 -1 return '.' + utils_1.escapeIdentifier(cn);
6904 -1 }).join('');
6905 -1 }
6906 -1 if (entity.attrs) {
6907 -1 res += entity.attrs.map(function(attr) {
6908 -1 if ('operator' in attr) {
6909 -1 if (attr.valueType === 'substitute') {
6910 -1 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';
6911 -1 } else {
6912 -1 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';
6913 -1 }
6914 -1 } else {
6915 -1 return '[' + utils_1.escapeIdentifier(attr.name) + ']';
6916 -1 }
6917 -1 }).join('');
6918 -1 }
6919 -1 if (entity.pseudos) {
6920 -1 res += entity.pseudos.map(function(pseudo) {
6921 -1 if (pseudo.valueType) {
6922 -1 if (pseudo.valueType === 'selector') {
6923 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';
6924 -1 } else if (pseudo.valueType === 'substitute') {
6925 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';
6926 -1 } else if (pseudo.valueType === 'numeric') {
6927 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';
6928 -1 } else {
6929 -1 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';
6930 -1 }
6931 -1 } else {
6932 -1 return ':' + utils_1.escapeIdentifier(pseudo.name);
6933 -1 }
6934 -1 }).join('');
6935 -1 }
6936 -1 break;
6937 -1
6938 -1 default:
6939 -1 throw Error('Unknown entity type: "' + entity.type + '".');
6940 -1 }
6941 -1 return res;
6942 -1 }
6943 -1 exports.renderEntity = renderEntity;
-1 6806 module.exports = require_iterate()('forEach');
6944 6807 });
6945 -1 var require_lib = __commonJS(function(exports) {
-1 6808 var require_registered_extensions = __commonJS(function() {
6946 6809 'use strict';
6947 -1 Object.defineProperty(exports, '__esModule', {
6948 -1 value: true
6949 -1 });
6950 -1 var parser_context_1 = require_parser_context();
6951 -1 var render_1 = require_render();
6952 -1 var CssSelectorParser3 = function() {
6953 -1 function CssSelectorParser4() {
6954 -1 this.pseudos = {};
6955 -1 this.attrEqualityMods = {};
6956 -1 this.ruleNestingOperators = {};
6957 -1 this.substitutesEnabled = false;
-1 6810 });
-1 6811 var require_is_implemented2 = __commonJS(function(exports, module) {
-1 6812 'use strict';
-1 6813 module.exports = function() {
-1 6814 var assign = Object.assign, obj;
-1 6815 if (typeof assign !== 'function') {
-1 6816 return false;
6958 6817 }
6959 -1 CssSelectorParser4.prototype.registerSelectorPseudos = function() {
6960 -1 var pseudos = [];
6961 -1 for (var _i = 0; _i < arguments.length; _i++) {
6962 -1 pseudos[_i] = arguments[_i];
6963 -1 }
6964 -1 for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {
6965 -1 var pseudo = pseudos_1[_a];
6966 -1 this.pseudos[pseudo] = 'selector';
6967 -1 }
6968 -1 return this;
6969 -1 };
6970 -1 CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {
6971 -1 var pseudos = [];
6972 -1 for (var _i = 0; _i < arguments.length; _i++) {
6973 -1 pseudos[_i] = arguments[_i];
6974 -1 }
6975 -1 for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {
6976 -1 var pseudo = pseudos_2[_a];
6977 -1 delete this.pseudos[pseudo];
6978 -1 }
6979 -1 return this;
6980 -1 };
6981 -1 CssSelectorParser4.prototype.registerNumericPseudos = function() {
6982 -1 var pseudos = [];
6983 -1 for (var _i = 0; _i < arguments.length; _i++) {
6984 -1 pseudos[_i] = arguments[_i];
6985 -1 }
6986 -1 for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {
6987 -1 var pseudo = pseudos_3[_a];
6988 -1 this.pseudos[pseudo] = 'numeric';
6989 -1 }
6990 -1 return this;
6991 -1 };
6992 -1 CssSelectorParser4.prototype.unregisterNumericPseudos = function() {
6993 -1 var pseudos = [];
6994 -1 for (var _i = 0; _i < arguments.length; _i++) {
6995 -1 pseudos[_i] = arguments[_i];
6996 -1 }
6997 -1 for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {
6998 -1 var pseudo = pseudos_4[_a];
6999 -1 delete this.pseudos[pseudo];
7000 -1 }
7001 -1 return this;
7002 -1 };
7003 -1 CssSelectorParser4.prototype.registerNestingOperators = function() {
7004 -1 var operators = [];
7005 -1 for (var _i = 0; _i < arguments.length; _i++) {
7006 -1 operators[_i] = arguments[_i];
7007 -1 }
7008 -1 for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {
7009 -1 var operator = operators_1[_a];
7010 -1 this.ruleNestingOperators[operator] = true;
7011 -1 }
7012 -1 return this;
7013 -1 };
7014 -1 CssSelectorParser4.prototype.unregisterNestingOperators = function() {
7015 -1 var operators = [];
7016 -1 for (var _i = 0; _i < arguments.length; _i++) {
7017 -1 operators[_i] = arguments[_i];
7018 -1 }
7019 -1 for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {
7020 -1 var operator = operators_2[_a];
7021 -1 delete this.ruleNestingOperators[operator];
7022 -1 }
7023 -1 return this;
7024 -1 };
7025 -1 CssSelectorParser4.prototype.registerAttrEqualityMods = function() {
7026 -1 var mods = [];
7027 -1 for (var _i = 0; _i < arguments.length; _i++) {
7028 -1 mods[_i] = arguments[_i];
7029 -1 }
7030 -1 for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {
7031 -1 var mod = mods_1[_a];
7032 -1 this.attrEqualityMods[mod] = true;
7033 -1 }
7034 -1 return this;
7035 -1 };
7036 -1 CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {
7037 -1 var mods = [];
7038 -1 for (var _i = 0; _i < arguments.length; _i++) {
7039 -1 mods[_i] = arguments[_i];
7040 -1 }
7041 -1 for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {
7042 -1 var mod = mods_2[_a];
7043 -1 delete this.attrEqualityMods[mod];
7044 -1 }
7045 -1 return this;
7046 -1 };
7047 -1 CssSelectorParser4.prototype.enableSubstitutes = function() {
7048 -1 this.substitutesEnabled = true;
7049 -1 return this;
7050 -1 };
7051 -1 CssSelectorParser4.prototype.disableSubstitutes = function() {
7052 -1 this.substitutesEnabled = false;
7053 -1 return this;
7054 -1 };
7055 -1 CssSelectorParser4.prototype.parse = function(str) {
7056 -1 return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);
7057 -1 };
7058 -1 CssSelectorParser4.prototype.render = function(path) {
7059 -1 return render_1.renderEntity(path).trim();
7060 -1 };
7061 -1 return CssSelectorParser4;
7062 -1 }();
7063 -1 exports.CssSelectorParser = CssSelectorParser3;
7064 -1 });
7065 -1 var require_noop = __commonJS(function(exports, module) {
7066 -1 'use strict';
7067 -1 module.exports = function() {};
7068 -1 });
7069 -1 var require_is_value = __commonJS(function(exports, module) {
7070 -1 'use strict';
7071 -1 var _undefined = require_noop()();
7072 -1 module.exports = function(val) {
7073 -1 return val !== _undefined && val !== null;
7074 -1 };
7075 -1 });
7076 -1 var require_normalize_options = __commonJS(function(exports, module) {
7077 -1 'use strict';
7078 -1 var isValue = require_is_value();
7079 -1 var forEach = Array.prototype.forEach;
7080 -1 var create = Object.create;
7081 -1 var process2 = function process2(src, obj) {
7082 -1 var key;
7083 -1 for (key in src) {
7084 -1 obj[key] = src[key];
7085 -1 }
7086 -1 };
7087 -1 module.exports = function(opts1) {
7088 -1 var result = create(null);
7089 -1 forEach.call(arguments, function(options) {
7090 -1 if (!isValue(options)) {
7091 -1 return;
7092 -1 }
7093 -1 process2(Object(options), result);
7094 -1 });
7095 -1 return result;
7096 -1 };
7097 -1 });
7098 -1 var require_is_implemented = __commonJS(function(exports, module) {
7099 -1 'use strict';
7100 -1 module.exports = function() {
7101 -1 var sign = Math.sign;
7102 -1 if (typeof sign !== 'function') {
7103 -1 return false;
7104 -1 }
7105 -1 return sign(10) === 1 && sign(-20) === -1;
7106 -1 };
7107 -1 });
7108 -1 var require_shim = __commonJS(function(exports, module) {
7109 -1 'use strict';
7110 -1 module.exports = function(value) {
7111 -1 value = Number(value);
7112 -1 if (isNaN(value) || value === 0) {
7113 -1 return value;
7114 -1 }
7115 -1 return value > 0 ? 1 : -1;
7116 -1 };
7117 -1 });
7118 -1 var require_sign = __commonJS(function(exports, module) {
7119 -1 'use strict';
7120 -1 module.exports = require_is_implemented()() ? Math.sign : require_shim();
7121 -1 });
7122 -1 var require_to_integer = __commonJS(function(exports, module) {
7123 -1 'use strict';
7124 -1 var sign = require_sign();
7125 -1 var abs = Math.abs;
7126 -1 var floor = Math.floor;
7127 -1 module.exports = function(value) {
7128 -1 if (isNaN(value)) {
7129 -1 return 0;
7130 -1 }
7131 -1 value = Number(value);
7132 -1 if (value === 0 || !isFinite(value)) {
7133 -1 return value;
7134 -1 }
7135 -1 return sign(value) * floor(abs(value));
7136 -1 };
7137 -1 });
7138 -1 var require_to_pos_integer = __commonJS(function(exports, module) {
7139 -1 'use strict';
7140 -1 var toInteger = require_to_integer();
7141 -1 var max = Math.max;
7142 -1 module.exports = function(value) {
7143 -1 return max(0, toInteger(value));
7144 -1 };
7145 -1 });
7146 -1 var require_resolve_length = __commonJS(function(exports, module) {
7147 -1 'use strict';
7148 -1 var toPosInt = require_to_pos_integer();
7149 -1 module.exports = function(optsLength, fnLength, isAsync) {
7150 -1 var length;
7151 -1 if (isNaN(optsLength)) {
7152 -1 length = fnLength;
7153 -1 if (!(length >= 0)) {
7154 -1 return 1;
7155 -1 }
7156 -1 if (isAsync && length) {
7157 -1 return length - 1;
7158 -1 }
7159 -1 return length;
7160 -1 }
7161 -1 if (optsLength === false) {
7162 -1 return false;
7163 -1 }
7164 -1 return toPosInt(optsLength);
7165 -1 };
7166 -1 });
7167 -1 var require_valid_callable = __commonJS(function(exports, module) {
7168 -1 'use strict';
7169 -1 module.exports = function(fn) {
7170 -1 if (typeof fn !== 'function') {
7171 -1 throw new TypeError(fn + ' is not a function');
7172 -1 }
7173 -1 return fn;
7174 -1 };
7175 -1 });
7176 -1 var require_valid_value = __commonJS(function(exports, module) {
7177 -1 'use strict';
7178 -1 var isValue = require_is_value();
7179 -1 module.exports = function(value) {
7180 -1 if (!isValue(value)) {
7181 -1 throw new TypeError('Cannot use null or undefined');
7182 -1 }
7183 -1 return value;
7184 -1 };
7185 -1 });
7186 -1 var require_iterate = __commonJS(function(exports, module) {
7187 -1 'use strict';
7188 -1 var callable = require_valid_callable();
7189 -1 var value = require_valid_value();
7190 -1 var bind = Function.prototype.bind;
7191 -1 var call = Function.prototype.call;
7192 -1 var keys = Object.keys;
7193 -1 var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable;
7194 -1 module.exports = function(method, defVal) {
7195 -1 return function(obj, cb) {
7196 -1 var list, thisArg = arguments[2], compareFn = arguments[3];
7197 -1 obj = Object(value(obj));
7198 -1 callable(cb);
7199 -1 list = keys(obj);
7200 -1 if (compareFn) {
7201 -1 list.sort(typeof compareFn === 'function' ? bind.call(compareFn, obj) : void 0);
7202 -1 }
7203 -1 if (typeof method !== 'function') {
7204 -1 method = list[method];
7205 -1 }
7206 -1 return call.call(method, list, function(key, index) {
7207 -1 if (!objPropertyIsEnumerable.call(obj, key)) {
7208 -1 return defVal;
7209 -1 }
7210 -1 return call.call(cb, thisArg, obj[key], key, obj, index);
7211 -1 });
7212 -1 };
7213 -1 };
7214 -1 });
7215 -1 var require_for_each = __commonJS(function(exports, module) {
7216 -1 'use strict';
7217 -1 module.exports = require_iterate()('forEach');
7218 -1 });
7219 -1 var require_registered_extensions = __commonJS(function() {
7220 -1 'use strict';
7221 -1 });
7222 -1 var require_is_implemented2 = __commonJS(function(exports, module) {
7223 -1 'use strict';
7224 -1 module.exports = function() {
7225 -1 var assign = Object.assign, obj;
7226 -1 if (typeof assign !== 'function') {
7227 -1 return false;
7228 -1 }
7229 -1 obj = {
7230 -1 foo: 'raz'
-1 6818 obj = {
-1 6819 foo: 'raz'
7231 6820 };
7232 6821 assign(obj, {
7233 6822 bar: 'dwa'
@@ -7264,9 +6853,9 @@ module.exports = {
7264 6853 'use strict';
7265 6854 var keys = require_keys();
7266 6855 var value = require_valid_value();
7267 -1 var max = Math.max;
-1 6856 var max2 = Math.max;
7268 6857 module.exports = function(dest, src) {
7269 -1 var error, i, length = max(arguments.length, 2), assign;
-1 6858 var error, i, length = max2(arguments.length, 2), assign;
7270 6859 dest = Object(value(dest));
7271 6860 assign = function assign(key) {
7272 6861 try {
@@ -7531,8 +7120,8 @@ module.exports = {
7531 7120 var assign = require_assign();
7532 7121 var normalizeOpts = require_normalize_options();
7533 7122 var contains3 = require_contains();
7534 -1 var d = module.exports = function(dscr, value) {
7535 -1 var c, e, w, options, desc;
-1 7123 var d2 = module.exports = function(dscr, value) {
-1 7124 var c4, e, w, options, desc;
7536 7125 if (arguments.length < 2 || typeof dscr !== 'string') {
7537 7126 options = value;
7538 7127 value = dscr;
@@ -7541,53 +7130,53 @@ module.exports = {
7541 7130 options = arguments[2];
7542 7131 }
7543 7132 if (isValue(dscr)) {
7544 -1 c = contains3.call(dscr, 'c');
-1 7133 c4 = contains3.call(dscr, 'c');
7545 7134 e = contains3.call(dscr, 'e');
7546 7135 w = contains3.call(dscr, 'w');
7547 7136 } else {
7548 -1 c = w = true;
-1 7137 c4 = w = true;
7549 7138 e = false;
7550 7139 }
7551 7140 desc = {
7552 7141 value: value,
7553 -1 configurable: c,
-1 7142 configurable: c4,
7554 7143 enumerable: e,
7555 7144 writable: w
7556 7145 };
7557 7146 return !options ? desc : assign(normalizeOpts(options), desc);
7558 7147 };
7559 -1 d.gs = function(dscr, get, set) {
7560 -1 var c, e, options, desc;
-1 7148 d2.gs = function(dscr, get2, set2) {
-1 7149 var c4, e, options, desc;
7561 7150 if (typeof dscr !== 'string') {
7562 -1 options = set;
7563 -1 set = get;
7564 -1 get = dscr;
-1 7151 options = set2;
-1 7152 set2 = get2;
-1 7153 get2 = dscr;
7565 7154 dscr = null;
7566 7155 } else {
7567 7156 options = arguments[3];
7568 7157 }
7569 -1 if (!isValue(get)) {
7570 -1 get = void 0;
7571 -1 } else if (!isPlainFunction(get)) {
7572 -1 options = get;
7573 -1 get = set = void 0;
7574 -1 } else if (!isValue(set)) {
7575 -1 set = void 0;
7576 -1 } else if (!isPlainFunction(set)) {
7577 -1 options = set;
7578 -1 set = void 0;
-1 7158 if (!isValue(get2)) {
-1 7159 get2 = void 0;
-1 7160 } else if (!isPlainFunction(get2)) {
-1 7161 options = get2;
-1 7162 get2 = set2 = void 0;
-1 7163 } else if (!isValue(set2)) {
-1 7164 set2 = void 0;
-1 7165 } else if (!isPlainFunction(set2)) {
-1 7166 options = set2;
-1 7167 set2 = void 0;
7579 7168 }
7580 7169 if (isValue(dscr)) {
7581 -1 c = contains3.call(dscr, 'c');
-1 7170 c4 = contains3.call(dscr, 'c');
7582 7171 e = contains3.call(dscr, 'e');
7583 7172 } else {
7584 -1 c = true;
-1 7173 c4 = true;
7585 7174 e = false;
7586 7175 }
7587 7176 desc = {
7588 -1 get: get,
7589 -1 set: set,
7590 -1 configurable: c,
-1 7177 get: get2,
-1 7178 set: set2,
-1 7179 configurable: c4,
7591 7180 enumerable: e
7592 7181 };
7593 7182 return !options ? desc : assign(normalizeOpts(options), desc);
@@ -7595,7 +7184,7 @@ module.exports = {
7595 7184 });
7596 7185 var require_event_emitter = __commonJS(function(exports, module) {
7597 7186 'use strict';
7598 -1 var d = require_d();
-1 7187 var d2 = require_d();
7599 7188 var callable = require_valid_callable();
7600 7189 var apply = Function.prototype.apply;
7601 7190 var call = Function.prototype.call;
@@ -7615,52 +7204,52 @@ module.exports = {
7615 7204 var methods;
7616 7205 var descriptors;
7617 7206 var base;
7618 -1 on = function on(type, listener) {
7619 -1 var data2;
-1 7207 on = function on(type2, listener) {
-1 7208 var data;
7620 7209 callable(listener);
7621 7210 if (!hasOwnProperty2.call(this, '__ee__')) {
7622 -1 data2 = descriptor.value = create(null);
-1 7211 data = descriptor.value = create(null);
7623 7212 defineProperty(this, '__ee__', descriptor);
7624 7213 descriptor.value = null;
7625 7214 } else {
7626 -1 data2 = this.__ee__;
-1 7215 data = this.__ee__;
7627 7216 }
7628 -1 if (!data2[type]) {
7629 -1 data2[type] = listener;
7630 -1 } else if (_typeof(data2[type]) === 'object') {
7631 -1 data2[type].push(listener);
-1 7217 if (!data[type2]) {
-1 7218 data[type2] = listener;
-1 7219 } else if (_typeof(data[type2]) === 'object') {
-1 7220 data[type2].push(listener);
7632 7221 } else {
7633 -1 data2[type] = [ data2[type], listener ];
-1 7222 data[type2] = [ data[type2], listener ];
7634 7223 }
7635 7224 return this;
7636 7225 };
7637 -1 once = function once(type, listener) {
-1 7226 once = function once(type2, listener) {
7638 7227 var _once, self2;
7639 7228 callable(listener);
7640 7229 self2 = this;
7641 -1 on.call(this, type, _once = function once2() {
7642 -1 off.call(self2, type, _once);
-1 7230 on.call(this, type2, _once = function once2() {
-1 7231 off.call(self2, type2, _once);
7643 7232 apply.call(listener, this, arguments);
7644 7233 });
7645 7234 _once.__eeOnceListener__ = listener;
7646 7235 return this;
7647 7236 };
7648 -1 off = function off(type, listener) {
7649 -1 var data2, listeners, candidate, i;
-1 7237 off = function off(type2, listener) {
-1 7238 var data, listeners, candidate, i;
7650 7239 callable(listener);
7651 7240 if (!hasOwnProperty2.call(this, '__ee__')) {
7652 7241 return this;
7653 7242 }
7654 -1 data2 = this.__ee__;
7655 -1 if (!data2[type]) {
-1 7243 data = this.__ee__;
-1 7244 if (!data[type2]) {
7656 7245 return this;
7657 7246 }
7658 -1 listeners = data2[type];
-1 7247 listeners = data[type2];
7659 7248 if (_typeof(listeners) === 'object') {
7660 7249 for (i = 0; candidate = listeners[i]; ++i) {
7661 7250 if (candidate === listener || candidate.__eeOnceListener__ === listener) {
7662 7251 if (listeners.length === 2) {
7663 -1 data2[type] = listeners[i ? 0 : 1];
-1 7252 data[type2] = listeners[i ? 0 : 1];
7664 7253 } else {
7665 7254 listeners.splice(i, 1);
7666 7255 }
@@ -7668,17 +7257,17 @@ module.exports = {
7668 7257 }
7669 7258 } else {
7670 7259 if (listeners === listener || listeners.__eeOnceListener__ === listener) {
7671 -1 delete data2[type];
-1 7260 delete data[type2];
7672 7261 }
7673 7262 }
7674 7263 return this;
7675 7264 };
7676 -1 emit = function emit(type) {
-1 7265 emit = function emit(type2) {
7677 7266 var i, l, listener, listeners, args;
7678 7267 if (!hasOwnProperty2.call(this, '__ee__')) {
7679 7268 return;
7680 7269 }
7681 -1 listeners = this.__ee__[type];
-1 7270 listeners = this.__ee__[type2];
7682 7271 if (!listeners) {
7683 7272 return;
7684 7273 }
@@ -7723,10 +7312,10 @@ module.exports = {
7723 7312 emit: emit
7724 7313 };
7725 7314 descriptors = {
7726 -1 on: d(on),
7727 -1 once: d(once),
7728 -1 off: d(off),
7729 -1 emit: d(emit)
-1 7315 on: d2(on),
-1 7316 once: d2(once),
-1 7317 off: d2(off),
-1 7318 emit: d2(emit)
7730 7319 };
7731 7320 base = defineProperties({}, descriptors);
7732 7321 module.exports = exports = function exports(o) {
@@ -7804,24 +7393,24 @@ module.exports = {
7804 7393 symbol: true
7805 7394 };
7806 7395 module.exports = function() {
7807 -1 var _Symbol = global2.Symbol;
-1 7396 var Symbol2 = global2.Symbol;
7808 7397 var symbol;
7809 -1 if (typeof _Symbol !== 'function') {
-1 7398 if (typeof Symbol2 !== 'function') {
7810 7399 return false;
7811 7400 }
7812 -1 symbol = _Symbol('test symbol');
-1 7401 symbol = Symbol2('test symbol');
7813 7402 try {
7814 7403 String(symbol);
7815 7404 } catch (e) {
7816 7405 return false;
7817 7406 }
7818 -1 if (!validTypes[_typeof(_Symbol.iterator)]) {
-1 7407 if (!validTypes[_typeof(Symbol2.iterator)]) {
7819 7408 return false;
7820 7409 }
7821 -1 if (!validTypes[_typeof(_Symbol.toPrimitive)]) {
-1 7410 if (!validTypes[_typeof(Symbol2.toPrimitive)]) {
7822 7411 return false;
7823 7412 }
7824 -1 if (!validTypes[_typeof(_Symbol.toStringTag)]) {
-1 7413 if (!validTypes[_typeof(Symbol2.toStringTag)]) {
7825 7414 return false;
7826 7415 }
7827 7416 return true;
@@ -7857,7 +7446,7 @@ module.exports = {
7857 7446 });
7858 7447 var require_generate_name = __commonJS(function(exports, module) {
7859 7448 'use strict';
7860 -1 var d = require_d();
-1 7449 var d2 = require_d();
7861 7450 var create = Object.create;
7862 7451 var defineProperty = Object.defineProperty;
7863 7452 var objPrototype = Object.prototype;
@@ -7870,12 +7459,12 @@ module.exports = {
7870 7459 desc += postfix || '';
7871 7460 created[desc] = true;
7872 7461 name = '@@' + desc;
7873 -1 defineProperty(objPrototype, name, d.gs(null, function(value) {
-1 7462 defineProperty(objPrototype, name, d2.gs(null, function(value) {
7874 7463 if (ie11BugWorkaround) {
7875 7464 return;
7876 7465 }
7877 7466 ie11BugWorkaround = true;
7878 -1 defineProperty(this, name, d(value));
-1 7467 defineProperty(this, name, d2(value));
7879 7468 ie11BugWorkaround = false;
7880 7469 }));
7881 7470 return name;
@@ -7883,38 +7472,38 @@ module.exports = {
7883 7472 });
7884 7473 var require_standard_symbols = __commonJS(function(exports, module) {
7885 7474 'use strict';
7886 -1 var d = require_d();
-1 7475 var d2 = require_d();
7887 7476 var NativeSymbol = require_global_this().Symbol;
7888 7477 module.exports = function(SymbolPolyfill) {
7889 7478 return Object.defineProperties(SymbolPolyfill, {
7890 -1 hasInstance: d('', NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill('hasInstance')),
7891 -1 isConcatSpreadable: d('', NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill('isConcatSpreadable')),
7892 -1 iterator: d('', NativeSymbol && NativeSymbol.iterator || SymbolPolyfill('iterator')),
7893 -1 match: d('', NativeSymbol && NativeSymbol.match || SymbolPolyfill('match')),
7894 -1 replace: d('', NativeSymbol && NativeSymbol.replace || SymbolPolyfill('replace')),
7895 -1 search: d('', NativeSymbol && NativeSymbol.search || SymbolPolyfill('search')),
7896 -1 species: d('', NativeSymbol && NativeSymbol.species || SymbolPolyfill('species')),
7897 -1 split: d('', NativeSymbol && NativeSymbol.split || SymbolPolyfill('split')),
7898 -1 toPrimitive: d('', NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill('toPrimitive')),
7899 -1 toStringTag: d('', NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill('toStringTag')),
7900 -1 unscopables: d('', NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill('unscopables'))
-1 7479 hasInstance: d2('', NativeSymbol && NativeSymbol.hasInstance || SymbolPolyfill('hasInstance')),
-1 7480 isConcatSpreadable: d2('', NativeSymbol && NativeSymbol.isConcatSpreadable || SymbolPolyfill('isConcatSpreadable')),
-1 7481 iterator: d2('', NativeSymbol && NativeSymbol.iterator || SymbolPolyfill('iterator')),
-1 7482 match: d2('', NativeSymbol && NativeSymbol.match || SymbolPolyfill('match')),
-1 7483 replace: d2('', NativeSymbol && NativeSymbol.replace || SymbolPolyfill('replace')),
-1 7484 search: d2('', NativeSymbol && NativeSymbol.search || SymbolPolyfill('search')),
-1 7485 species: d2('', NativeSymbol && NativeSymbol.species || SymbolPolyfill('species')),
-1 7486 split: d2('', NativeSymbol && NativeSymbol.split || SymbolPolyfill('split')),
-1 7487 toPrimitive: d2('', NativeSymbol && NativeSymbol.toPrimitive || SymbolPolyfill('toPrimitive')),
-1 7488 toStringTag: d2('', NativeSymbol && NativeSymbol.toStringTag || SymbolPolyfill('toStringTag')),
-1 7489 unscopables: d2('', NativeSymbol && NativeSymbol.unscopables || SymbolPolyfill('unscopables'))
7901 7490 });
7902 7491 };
7903 7492 });
7904 7493 var require_symbol_registry = __commonJS(function(exports, module) {
7905 7494 'use strict';
7906 -1 var d = require_d();
-1 7495 var d2 = require_d();
7907 7496 var validateSymbol = require_validate_symbol();
7908 7497 var registry = Object.create(null);
7909 7498 module.exports = function(SymbolPolyfill) {
7910 7499 return Object.defineProperties(SymbolPolyfill, {
7911 -1 for: d(function(key) {
-1 7500 for: d2(function(key) {
7912 7501 if (registry[key]) {
7913 7502 return registry[key];
7914 7503 }
7915 7504 return registry[key] = SymbolPolyfill(String(key));
7916 7505 }),
7917 -1 keyFor: d(function(symbol) {
-1 7506 keyFor: d2(function(symbol) {
7918 7507 var key;
7919 7508 validateSymbol(symbol);
7920 7509 for (key in registry) {
@@ -7929,7 +7518,7 @@ module.exports = {
7929 7518 });
7930 7519 var require_polyfill = __commonJS(function(exports, module) {
7931 7520 'use strict';
7932 -1 var d = require_d();
-1 7521 var d2 = require_d();
7933 7522 var validateSymbol = require_validate_symbol();
7934 7523 var NativeSymbol = require_global_this().Symbol;
7935 7524 var generateName = require_generate_name();
@@ -7949,15 +7538,15 @@ module.exports = {
7949 7538 } else {
7950 7539 NativeSymbol = null;
7951 7540 }
7952 -1 HiddenSymbol = function _Symbol2(description) {
-1 7541 HiddenSymbol = function Symbol2(description) {
7953 7542 if (this instanceof HiddenSymbol) {
7954 7543 throw new TypeError('Symbol is not a constructor');
7955 7544 }
7956 7545 return SymbolPolyfill(description);
7957 7546 };
7958 -1 module.exports = SymbolPolyfill = function _Symbol3(description) {
-1 7547 module.exports = SymbolPolyfill = function Symbol2(description) {
7959 7548 var symbol;
7960 -1 if (this instanceof _Symbol3) {
-1 7549 if (this instanceof Symbol2) {
7961 7550 throw new TypeError('Symbol is not a constructor');
7962 7551 }
7963 7552 if (isNativeSafe) {
@@ -7966,36 +7555,36 @@ module.exports = {
7966 7555 symbol = create(HiddenSymbol.prototype);
7967 7556 description = description === void 0 ? '' : String(description);
7968 7557 return defineProperties(symbol, {
7969 -1 __description__: d('', description),
7970 -1 __name__: d('', generateName(description))
-1 7558 __description__: d2('', description),
-1 7559 __name__: d2('', generateName(description))
7971 7560 });
7972 7561 };
7973 7562 setupStandardSymbols(SymbolPolyfill);
7974 7563 setupSymbolRegistry(SymbolPolyfill);
7975 7564 defineProperties(HiddenSymbol.prototype, {
7976 -1 constructor: d(SymbolPolyfill),
7977 -1 toString: d('', function() {
-1 7565 constructor: d2(SymbolPolyfill),
-1 7566 toString: d2('', function() {
7978 7567 return this.__name__;
7979 7568 })
7980 7569 });
7981 7570 defineProperties(SymbolPolyfill.prototype, {
7982 -1 toString: d(function() {
-1 7571 toString: d2(function() {
7983 7572 return 'Symbol (' + validateSymbol(this).__description__ + ')';
7984 7573 }),
7985 -1 valueOf: d(function() {
-1 7574 valueOf: d2(function() {
7986 7575 return validateSymbol(this);
7987 7576 })
7988 7577 });
7989 -1 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d('', function() {
-1 7578 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toPrimitive, d2('', function() {
7990 7579 var symbol = validateSymbol(this);
7991 7580 if (_typeof(symbol) === 'symbol') {
7992 7581 return symbol;
7993 7582 }
7994 7583 return symbol.toString();
7995 7584 }));
7996 -1 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d('c', 'Symbol'));
7997 -1 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));
7998 -1 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));
-1 7585 defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d2('c', 'Symbol'));
-1 7586 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toStringTag, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]));
-1 7587 defineProperty(HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, d2('c', SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]));
7999 7588 });
8000 7589 var require_es6_symbol = __commonJS(function(exports, module) {
8001 7590 'use strict';
@@ -8036,7 +7625,7 @@ module.exports = {
8036 7625 var callable = require_valid_callable();
8037 7626 var validValue = require_valid_value();
8038 7627 var isValue = require_is_value();
8039 -1 var isString = require_is_string();
-1 7628 var isString2 = require_is_string();
8040 7629 var isArray = Array.isArray;
8041 7630 var call = Function.prototype.call;
8042 7631 var desc = {
@@ -8095,7 +7684,7 @@ module.exports = {
8095 7684 ++i;
8096 7685 }
8097 7686 length = i;
8098 -1 } else if (isString(arrayLike)) {
-1 7687 } else if (isString2(arrayLike)) {
8099 7688 length = arrayLike.length;
8100 7689 if (Context2) {
8101 7690 arr = new Context2();
@@ -8208,7 +7797,7 @@ module.exports = {
8208 7797 'use strict';
8209 7798 var customError = require_custom();
8210 7799 var defineLength = require_define_length();
8211 -1 var d = require_d();
-1 7800 var d2 = require_d();
8212 7801 var ee = require_event_emitter().methods;
8213 7802 var resolveResolve = require_resolve_resolve();
8214 7803 var resolveNormalize = require_resolve_normalize();
@@ -8219,7 +7808,7 @@ module.exports = {
8219 7808 var _on = ee.on;
8220 7809 var emit = ee.emit;
8221 7810 module.exports = function(original, length, options) {
8222 -1 var cache2 = create(null), conf, memLength, _get, set, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
-1 7811 var cache2 = create(null), conf, memLength, get2, set2, del, _clear, extDel, extGet, extHas, normalizer, getListeners, setListeners, deleteListeners, memoized, resolve;
8223 7812 if (length !== false) {
8224 7813 memLength = length;
8225 7814 } else if (isNaN(original.length)) {
@@ -8229,21 +7818,21 @@ module.exports = {
8229 7818 }
8230 7819 if (options.normalizer) {
8231 7820 normalizer = resolveNormalize(options.normalizer);
8232 -1 _get = normalizer.get;
8233 -1 set = normalizer.set;
-1 7821 get2 = normalizer.get;
-1 7822 set2 = normalizer.set;
8234 7823 del = normalizer['delete'];
8235 7824 _clear = normalizer.clear;
8236 7825 }
8237 7826 if (options.resolvers != null) {
8238 7827 resolve = resolveResolve(options.resolvers);
8239 7828 }
8240 -1 if (_get) {
-1 7829 if (get2) {
8241 7830 memoized = defineLength(function(arg) {
8242 7831 var id, result, args = arguments;
8243 7832 if (resolve) {
8244 7833 args = resolve(args);
8245 7834 }
8246 -1 id = _get(args);
-1 7835 id = get2(args);
8247 7836 if (id !== null) {
8248 7837 if (hasOwnProperty.call(cache2, id)) {
8249 7838 if (getListeners) {
@@ -8258,11 +7847,11 @@ module.exports = {
8258 7847 result = apply.call(original, this, args);
8259 7848 }
8260 7849 if (id === null) {
8261 -1 id = _get(args);
-1 7850 id = get2(args);
8262 7851 if (id !== null) {
8263 7852 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8264 7853 }
8265 -1 id = set(args);
-1 7854 id = set2(args);
8266 7855 } else if (hasOwnProperty.call(cache2, id)) {
8267 7856 throw customError('Circular invocation', 'CIRCULAR_INVOCATION');
8268 7857 }
@@ -8331,8 +7920,8 @@ module.exports = {
8331 7920 if (resolve) {
8332 7921 args = resolve(args);
8333 7922 }
8334 -1 if (_get) {
8335 -1 return _get(args);
-1 7923 if (get2) {
-1 7924 return get2(args);
8336 7925 }
8337 7926 return String(args[0]);
8338 7927 },
@@ -8361,28 +7950,28 @@ module.exports = {
8361 7950 cache2 = create(null);
8362 7951 conf.emit('clear', oldCache);
8363 7952 },
8364 -1 on: function on(type, listener) {
8365 -1 if (type === 'get') {
-1 7953 on: function on(type2, listener) {
-1 7954 if (type2 === 'get') {
8366 7955 getListeners = true;
8367 -1 } else if (type === 'set') {
-1 7956 } else if (type2 === 'set') {
8368 7957 setListeners = true;
8369 -1 } else if (type === 'delete') {
-1 7958 } else if (type2 === 'delete') {
8370 7959 deleteListeners = true;
8371 7960 }
8372 -1 return _on.call(this, type, listener);
-1 7961 return _on.call(this, type2, listener);
8373 7962 },
8374 7963 emit: emit,
8375 7964 updateEnv: function updateEnv() {
8376 7965 original = conf.original;
8377 7966 }
8378 7967 };
8379 -1 if (_get) {
-1 7968 if (get2) {
8380 7969 extDel = defineLength(function(arg) {
8381 7970 var id, args = arguments;
8382 7971 if (resolve) {
8383 7972 args = resolve(args);
8384 7973 }
8385 -1 id = _get(args);
-1 7974 id = get2(args);
8386 7975 if (id === null) {
8387 7976 return;
8388 7977 }
@@ -8408,8 +7997,8 @@ module.exports = {
8408 7997 if (resolve) {
8409 7998 args = resolve(args);
8410 7999 }
8411 -1 if (_get) {
8412 -1 id = _get(args);
-1 8000 if (get2) {
-1 8001 id = get2(args);
8413 8002 } else {
8414 8003 id = String(args[0]);
8415 8004 }
@@ -8423,8 +8012,8 @@ module.exports = {
8423 8012 if (resolve) {
8424 8013 args = resolve(args);
8425 8014 }
8426 -1 if (_get) {
8427 -1 id = _get(args);
-1 8015 if (get2) {
-1 8016 id = get2(args);
8428 8017 } else {
8429 8018 id = String(args[0]);
8430 8019 }
@@ -8434,11 +8023,11 @@ module.exports = {
8434 8023 return conf.has(id);
8435 8024 });
8436 8025 defineProperties(memoized, {
8437 -1 __memoized__: d(true),
8438 -1 delete: d(extDel),
8439 -1 clear: d(conf.clear),
8440 -1 _get: d(extGet),
8441 -1 _has: d(extHas)
-1 8026 __memoized__: d2(true),
-1 8027 delete: d2(extDel),
-1 8028 clear: d2(conf.clear),
-1 8029 _get: d2(extGet),
-1 8030 _has: d2(extHas)
8442 8031 });
8443 8032 return conf;
8444 8033 };
@@ -8567,80 +8156,80 @@ module.exports = {
8567 8156 var lastId = 0, map = [], cache2 = create(null);
8568 8157 return {
8569 8158 get: function get(args) {
8570 -1 var index = 0, set = map, i, length = args.length;
-1 8159 var index = 0, set2 = map, i, length = args.length;
8571 8160 if (length === 0) {
8572 -1 return set[length] || null;
-1 8161 return set2[length] || null;
8573 8162 }
8574 -1 if (set = set[length]) {
-1 8163 if (set2 = set2[length]) {
8575 8164 while (index < length - 1) {
8576 -1 i = indexOf.call(set[0], args[index]);
-1 8165 i = indexOf.call(set2[0], args[index]);
8577 8166 if (i === -1) {
8578 8167 return null;
8579 8168 }
8580 -1 set = set[1][i];
-1 8169 set2 = set2[1][i];
8581 8170 ++index;
8582 8171 }
8583 -1 i = indexOf.call(set[0], args[index]);
-1 8172 i = indexOf.call(set2[0], args[index]);
8584 8173 if (i === -1) {
8585 8174 return null;
8586 8175 }
8587 -1 return set[1][i] || null;
-1 8176 return set2[1][i] || null;
8588 8177 }
8589 8178 return null;
8590 8179 },
8591 8180 set: function set(args) {
8592 -1 var index = 0, set = map, i, length = args.length;
-1 8181 var index = 0, set2 = map, i, length = args.length;
8593 8182 if (length === 0) {
8594 -1 set[length] = ++lastId;
-1 8183 set2[length] = ++lastId;
8595 8184 } else {
8596 -1 if (!set[length]) {
8597 -1 set[length] = [ [], [] ];
-1 8185 if (!set2[length]) {
-1 8186 set2[length] = [ [], [] ];
8598 8187 }
8599 -1 set = set[length];
-1 8188 set2 = set2[length];
8600 8189 while (index < length - 1) {
8601 -1 i = indexOf.call(set[0], args[index]);
-1 8190 i = indexOf.call(set2[0], args[index]);
8602 8191 if (i === -1) {
8603 -1 i = set[0].push(args[index]) - 1;
8604 -1 set[1].push([ [], [] ]);
-1 8192 i = set2[0].push(args[index]) - 1;
-1 8193 set2[1].push([ [], [] ]);
8605 8194 }
8606 -1 set = set[1][i];
-1 8195 set2 = set2[1][i];
8607 8196 ++index;
8608 8197 }
8609 -1 i = indexOf.call(set[0], args[index]);
-1 8198 i = indexOf.call(set2[0], args[index]);
8610 8199 if (i === -1) {
8611 -1 i = set[0].push(args[index]) - 1;
-1 8200 i = set2[0].push(args[index]) - 1;
8612 8201 }
8613 -1 set[1][i] = ++lastId;
-1 8202 set2[1][i] = ++lastId;
8614 8203 }
8615 8204 cache2[lastId] = args;
8616 8205 return lastId;
8617 8206 },
8618 8207 delete: function _delete(id) {
8619 -1 var index = 0, set = map, i, args = cache2[id], length = args.length, path = [];
-1 8208 var index = 0, set2 = map, i, args = cache2[id], length = args.length, path = [];
8620 8209 if (length === 0) {
8621 -1 delete set[length];
8622 -1 } else if (set = set[length]) {
-1 8210 delete set2[length];
-1 8211 } else if (set2 = set2[length]) {
8623 8212 while (index < length - 1) {
8624 -1 i = indexOf.call(set[0], args[index]);
-1 8213 i = indexOf.call(set2[0], args[index]);
8625 8214 if (i === -1) {
8626 8215 return;
8627 8216 }
8628 -1 path.push(set, i);
8629 -1 set = set[1][i];
-1 8217 path.push(set2, i);
-1 8218 set2 = set2[1][i];
8630 8219 ++index;
8631 8220 }
8632 -1 i = indexOf.call(set[0], args[index]);
-1 8221 i = indexOf.call(set2[0], args[index]);
8633 8222 if (i === -1) {
8634 8223 return;
8635 8224 }
8636 -1 id = set[1][i];
8637 -1 set[0].splice(i, 1);
8638 -1 set[1].splice(i, 1);
8639 -1 while (!set[0].length && path.length) {
-1 8225 id = set2[1][i];
-1 8226 set2[0].splice(i, 1);
-1 8227 set2[1].splice(i, 1);
-1 8228 while (!set2[0].length && path.length) {
8640 8229 i = path.pop();
8641 -1 set = path.pop();
8642 -1 set[0].splice(i, 1);
8643 -1 set[1].splice(i, 1);
-1 8230 set2 = path.pop();
-1 8231 set2[0].splice(i, 1);
-1 8232 set2[1].splice(i, 1);
8644 8233 }
8645 8234 }
8646 8235 delete cache2[id];
@@ -8689,63 +8278,63 @@ module.exports = {
8689 8278 var lastId = 0, map = [ [], [] ], cache2 = create(null);
8690 8279 return {
8691 8280 get: function get(args) {
8692 -1 var index = 0, set = map, i;
-1 8281 var index = 0, set2 = map, i;
8693 8282 while (index < length - 1) {
8694 -1 i = indexOf.call(set[0], args[index]);
-1 8283 i = indexOf.call(set2[0], args[index]);
8695 8284 if (i === -1) {
8696 8285 return null;
8697 8286 }
8698 -1 set = set[1][i];
-1 8287 set2 = set2[1][i];
8699 8288 ++index;
8700 8289 }
8701 -1 i = indexOf.call(set[0], args[index]);
-1 8290 i = indexOf.call(set2[0], args[index]);
8702 8291 if (i === -1) {
8703 8292 return null;
8704 8293 }
8705 -1 return set[1][i] || null;
-1 8294 return set2[1][i] || null;
8706 8295 },
8707 8296 set: function set(args) {
8708 -1 var index = 0, set = map, i;
-1 8297 var index = 0, set2 = map, i;
8709 8298 while (index < length - 1) {
8710 -1 i = indexOf.call(set[0], args[index]);
-1 8299 i = indexOf.call(set2[0], args[index]);
8711 8300 if (i === -1) {
8712 -1 i = set[0].push(args[index]) - 1;
8713 -1 set[1].push([ [], [] ]);
-1 8301 i = set2[0].push(args[index]) - 1;
-1 8302 set2[1].push([ [], [] ]);
8714 8303 }
8715 -1 set = set[1][i];
-1 8304 set2 = set2[1][i];
8716 8305 ++index;
8717 8306 }
8718 -1 i = indexOf.call(set[0], args[index]);
-1 8307 i = indexOf.call(set2[0], args[index]);
8719 8308 if (i === -1) {
8720 -1 i = set[0].push(args[index]) - 1;
-1 8309 i = set2[0].push(args[index]) - 1;
8721 8310 }
8722 -1 set[1][i] = ++lastId;
-1 8311 set2[1][i] = ++lastId;
8723 8312 cache2[lastId] = args;
8724 8313 return lastId;
8725 8314 },
8726 8315 delete: function _delete(id) {
8727 -1 var index = 0, set = map, i, path = [], args = cache2[id];
-1 8316 var index = 0, set2 = map, i, path = [], args = cache2[id];
8728 8317 while (index < length - 1) {
8729 -1 i = indexOf.call(set[0], args[index]);
-1 8318 i = indexOf.call(set2[0], args[index]);
8730 8319 if (i === -1) {
8731 8320 return;
8732 8321 }
8733 -1 path.push(set, i);
8734 -1 set = set[1][i];
-1 8322 path.push(set2, i);
-1 8323 set2 = set2[1][i];
8735 8324 ++index;
8736 8325 }
8737 -1 i = indexOf.call(set[0], args[index]);
-1 8326 i = indexOf.call(set2[0], args[index]);
8738 8327 if (i === -1) {
8739 8328 return;
8740 8329 }
8741 -1 id = set[1][i];
8742 -1 set[0].splice(i, 1);
8743 -1 set[1].splice(i, 1);
8744 -1 while (!set[0].length && path.length) {
-1 8330 id = set2[1][i];
-1 8331 set2[0].splice(i, 1);
-1 8332 set2[1].splice(i, 1);
-1 8333 while (!set2[0].length && path.length) {
8745 8334 i = path.pop();
8746 -1 set = path.pop();
8747 -1 set[0].splice(i, 1);
8748 -1 set[1].splice(i, 1);
-1 8335 set2 = path.pop();
-1 8336 set2[0].splice(i, 1);
-1 8337 set2[1].splice(i, 1);
8749 8338 }
8750 8339 delete cache2[id];
8751 8340 },
@@ -8866,9 +8455,9 @@ module.exports = {
8866 8455 require_registered_extensions().async = function(tbi, conf) {
8867 8456 var waiting = create(null), cache2 = create(null), base = conf.memoized, original = conf.original, currentCallback, currentContext, currentArgs;
8868 8457 conf.memoized = defineLength(function(arg) {
8869 -1 var args = arguments, last = args[args.length - 1];
8870 -1 if (typeof last === 'function') {
8871 -1 currentCallback = last;
-1 8458 var args = arguments, last2 = args[args.length - 1];
-1 8459 if (typeof last2 === 'function') {
-1 8460 currentCallback = last2;
8872 8461 args = slice.call(args, 0, -1);
8873 8462 }
8874 8463 return base.apply(currentContext = this, currentArgs = args);
@@ -8895,11 +8484,11 @@ module.exports = {
8895 8484 args = currentArgs;
8896 8485 currentCallback = currentContext = currentArgs = null;
8897 8486 nextTick(function() {
8898 -1 var data2;
-1 8487 var data;
8899 8488 if (hasOwnProperty.call(cache2, id)) {
8900 -1 data2 = cache2[id];
-1 8489 data = cache2[id];
8901 8490 conf.emit('getasync', id, args, context);
8902 -1 apply.call(cb, data2.context, data2.args);
-1 8491 apply.call(cb, data.context, data.args);
8903 8492 } else {
8904 8493 currentCallback = cb;
8905 8494 currentContext = context;
@@ -8988,8 +8577,8 @@ module.exports = {
8988 8577 conf.on('clear', function() {
8989 8578 var oldCache = cache2;
8990 8579 cache2 = create(null);
8991 -1 conf.emit('clearasync', objectMap(oldCache, function(data2) {
8992 -1 return slice.call(data2.args, 1);
-1 8580 conf.emit('clearasync', objectMap(oldCache, function(data) {
-1 8581 return slice.call(data.args, 1);
8993 8582 }));
8994 8583 });
8995 8584 };
@@ -8999,11 +8588,11 @@ module.exports = {
8999 8588 var forEach = Array.prototype.forEach;
9000 8589 var create = Object.create;
9001 8590 module.exports = function(arg) {
9002 -1 var set = create(null);
-1 8591 var set2 = create(null);
9003 8592 forEach.call(arguments, function(name) {
9004 -1 set[name] = true;
-1 8593 set2[name] = true;
9005 8594 });
9006 -1 return set;
-1 8595 return set2;
9007 8596 };
9008 8597 });
9009 8598 var require_is_callable = __commonJS(function(exports, module) {
@@ -9190,8 +8779,8 @@ module.exports = {
9190 8779 cache2 = create(null);
9191 8780 waiting = create(null);
9192 8781 promises = create(null);
9193 -1 conf.emit('clearasync', objectMap(oldCache, function(data2) {
9194 -1 return [ data2 ];
-1 8782 conf.emit('clearasync', objectMap(oldCache, function(data) {
-1 8783 return [ data ];
9195 8784 }));
9196 8785 });
9197 8786 };
@@ -9251,7 +8840,7 @@ module.exports = {
9251 8840 var timeout = require_valid_timeout();
9252 8841 var extensions = require_registered_extensions();
9253 8842 var noop3 = Function.prototype;
9254 -1 var max = Math.max;
-1 8843 var max2 = Math.max;
9255 8844 var min = Math.min;
9256 8845 var create = Object.create;
9257 8846 extensions.maxAge = function(maxAge, conf, options) {
@@ -9299,7 +8888,7 @@ module.exports = {
9299 8888 if (options.preFetch === true || isNaN(options.preFetch)) {
9300 8889 preFetchAge = .333;
9301 8890 } else {
9302 -1 preFetchAge = max(min(Number(options.preFetch), 1), 0);
-1 8891 preFetchAge = max2(min(Number(options.preFetch), 1), 0);
9303 8892 }
9304 8893 if (preFetchAge) {
9305 8894 preFetchTimeouts = {};
@@ -9414,13 +9003,13 @@ module.exports = {
9414 9003 var toPosInteger = require_to_pos_integer();
9415 9004 var lruQueue = require_lru_queue();
9416 9005 var extensions = require_registered_extensions();
9417 -1 extensions.max = function(max, conf, options) {
-1 9006 extensions.max = function(max2, conf, options) {
9418 9007 var postfix, queue2, hit;
9419 -1 max = toPosInteger(max);
9420 -1 if (!max) {
-1 9008 max2 = toPosInteger(max2);
-1 9009 if (!max2) {
9421 9010 return;
9422 9011 }
9423 -1 queue2 = lruQueue(max);
-1 9012 queue2 = lruQueue(max2);
9424 9013 postfix = options.async && extensions.async || options.promise && extensions.promise ? 'async' : '';
9425 9014 conf.on('set' + postfix, hit = function hit(id) {
9426 9015 id = queue2.hit(id);
@@ -9436,7 +9025,7 @@ module.exports = {
9436 9025 });
9437 9026 var require_ref_counter = __commonJS(function() {
9438 9027 'use strict';
9439 -1 var d = require_d();
-1 9028 var d2 = require_d();
9440 9029 var extensions = require_registered_extensions();
9441 9030 var create = Object.create;
9442 9031 var defineProperties = Object.defineProperties;
@@ -9457,7 +9046,7 @@ module.exports = {
9457 9046 cache2 = {};
9458 9047 });
9459 9048 defineProperties(conf.memoized, {
9460 -1 deleteRef: d(function() {
-1 9049 deleteRef: d2(function() {
9461 9050 var id = conf.get(arguments);
9462 9051 if (id === null) {
9463 9052 return null;
@@ -9471,7 +9060,7 @@ module.exports = {
9471 9060 }
9472 9061 return false;
9473 9062 }),
9474 -1 getRefCount: d(function() {
-1 9063 getRefCount: d2(function() {
9475 9064 var id = conf.get(arguments);
9476 9065 if (id === null) {
9477 9066 return 0;
@@ -9530,4868 +9119,6649 @@ module.exports = {
9530 9119 return plain(fn, options);
9531 9120 };
9532 9121 });
9533 -1 var require_doT = __commonJS(function(exports, module) {
9534 -1 (function() {
9535 -1 'use strict';
9536 -1 var doT3 = {
9537 -1 name: 'doT',
9538 -1 version: '1.1.1',
9539 -1 templateSettings: {
9540 -1 evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
9541 -1 interpolate: /\{\{=([\s\S]+?)\}\}/g,
9542 -1 encode: /\{\{!([\s\S]+?)\}\}/g,
9543 -1 use: /\{\{#([\s\S]+?)\}\}/g,
9544 -1 useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,
9545 -1 define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
9546 -1 defineParams: /^\s*([\w$]+):([\s\S]+)/,
9547 -1 conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
9548 -1 iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
9549 -1 varname: 'it',
9550 -1 strip: true,
9551 -1 append: true,
9552 -1 selfcontained: false,
9553 -1 doNotSkipEncoded: false
9554 -1 },
9555 -1 template: void 0,
9556 -1 compile: void 0,
9557 -1 log: true
9558 -1 };
9559 -1 (function() {
9560 -1 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {
9561 -1 return;
9562 -1 }
9563 -1 try {
9564 -1 Object.defineProperty(Object.prototype, '__magic__', {
9565 -1 get: function get() {
9566 -1 return this;
9567 -1 },
9568 -1 configurable: true
9569 -1 });
9570 -1 __magic__.globalThis = __magic__;
9571 -1 delete Object.prototype.__magic__;
9572 -1 } catch (e) {
9573 -1 window.globalThis = function() {
9574 -1 if (typeof self !== 'undefined') {
9575 -1 return self;
9576 -1 }
9577 -1 if (typeof window !== 'undefined') {
9578 -1 return window;
9579 -1 }
9580 -1 if (typeof global !== 'undefined') {
9581 -1 return global;
9582 -1 }
9583 -1 if (typeof this !== 'undefined') {
9584 -1 return this;
-1 9122 var require_utils = __commonJS(function(exports) {
-1 9123 'use strict';
-1 9124 Object.defineProperty(exports, '__esModule', {
-1 9125 value: true
-1 9126 });
-1 9127 function isIdentStart(c4) {
-1 9128 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 === '-' || c4 === '_';
-1 9129 }
-1 9130 exports.isIdentStart = isIdentStart;
-1 9131 function isIdent(c4) {
-1 9132 return c4 >= 'a' && c4 <= 'z' || c4 >= 'A' && c4 <= 'Z' || c4 >= '0' && c4 <= '9' || c4 === '-' || c4 === '_';
-1 9133 }
-1 9134 exports.isIdent = isIdent;
-1 9135 function isHex(c4) {
-1 9136 return c4 >= 'a' && c4 <= 'f' || c4 >= 'A' && c4 <= 'F' || c4 >= '0' && c4 <= '9';
-1 9137 }
-1 9138 exports.isHex = isHex;
-1 9139 function escapeIdentifier(s) {
-1 9140 var len = s.length;
-1 9141 var result = '';
-1 9142 var i = 0;
-1 9143 while (i < len) {
-1 9144 var chr = s.charAt(i);
-1 9145 if (exports.identSpecialChars[chr]) {
-1 9146 result += '\\' + chr;
-1 9147 } else {
-1 9148 if (!(chr === '_' || chr === '-' || chr >= 'A' && chr <= 'Z' || chr >= 'a' && chr <= 'z' || i !== 0 && chr >= '0' && chr <= '9')) {
-1 9149 var charCode = chr.charCodeAt(0);
-1 9150 if ((charCode & 63488) === 55296) {
-1 9151 var extraCharCode = s.charCodeAt(i++);
-1 9152 if ((charCode & 64512) !== 55296 || (extraCharCode & 64512) !== 56320) {
-1 9153 throw Error('UCS-2(decode): illegal sequence');
-1 9154 }
-1 9155 charCode = ((charCode & 1023) << 10) + (extraCharCode & 1023) + 65536;
9585 9156 }
9586 -1 throw new Error('Unable to locate global `this`');
9587 -1 }();
-1 9157 result += '\\' + charCode.toString(16) + ' ';
-1 9158 } else {
-1 9159 result += chr;
-1 9160 }
9588 9161 }
9589 -1 })();
9590 -1 doT3.encodeHTMLSource = function(doNotSkipEncoded) {
9591 -1 var encodeHTMLRules = {
9592 -1 '&': '&',
9593 -1 '<': '<',
9594 -1 '>': '>',
9595 -1 '"': '"',
9596 -1 '\'': ''',
9597 -1 '/': '/'
9598 -1 }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;
9599 -1 return function(code) {
9600 -1 return code ? code.toString().replace(matchHTML, function(m) {
9601 -1 return encodeHTMLRules[m] || m;
9602 -1 }) : '';
9603 -1 };
9604 -1 };
9605 -1 if (typeof module !== 'undefined' && module.exports) {
9606 -1 module.exports = doT3;
9607 -1 } else if (typeof define === 'function' && define.amd) {
9608 -1 define(function() {
9609 -1 return doT3;
9610 -1 });
9611 -1 } else {
9612 -1 globalThis.doT = doT3;
-1 9162 i++;
9613 9163 }
9614 -1 var startend = {
9615 -1 append: {
9616 -1 start: '\'+(',
9617 -1 end: ')+\'',
9618 -1 startencode: '\'+encodeHTML('
9619 -1 },
9620 -1 split: {
9621 -1 start: '\';out+=(',
9622 -1 end: ');out+=\'',
9623 -1 startencode: '\';out+=encodeHTML('
-1 9164 return result;
-1 9165 }
-1 9166 exports.escapeIdentifier = escapeIdentifier;
-1 9167 function escapeStr(s) {
-1 9168 var len = s.length;
-1 9169 var result = '';
-1 9170 var i = 0;
-1 9171 var replacement;
-1 9172 while (i < len) {
-1 9173 var chr = s.charAt(i);
-1 9174 if (chr === '"') {
-1 9175 chr = '\\"';
-1 9176 } else if (chr === '\\') {
-1 9177 chr = '\\\\';
-1 9178 } else if ((replacement = exports.strReplacementsRev[chr]) !== void 0) {
-1 9179 chr = replacement;
9624 9180 }
9625 -1 }, skip = /$^/;
9626 -1 function resolveDefs(c, block, def) {
9627 -1 return (typeof block === 'string' ? block : block.toString()).replace(c.define || skip, function(m, code, assign, value) {
9628 -1 if (code.indexOf('def.') === 0) {
9629 -1 code = code.substring(4);
9630 -1 }
9631 -1 if (!(code in def)) {
9632 -1 if (assign === ':') {
9633 -1 if (c.defineParams) {
9634 -1 value.replace(c.defineParams, function(m2, param, v) {
9635 -1 def[code] = {
9636 -1 arg: param,
9637 -1 text: v
9638 -1 };
9639 -1 });
-1 9181 result += chr;
-1 9182 i++;
-1 9183 }
-1 9184 return '"' + result + '"';
-1 9185 }
-1 9186 exports.escapeStr = escapeStr;
-1 9187 exports.identSpecialChars = {
-1 9188 '!': true,
-1 9189 '"': true,
-1 9190 '#': true,
-1 9191 $: true,
-1 9192 '%': true,
-1 9193 '&': true,
-1 9194 '\'': true,
-1 9195 '(': true,
-1 9196 ')': true,
-1 9197 '*': true,
-1 9198 '+': true,
-1 9199 ',': true,
-1 9200 '.': true,
-1 9201 '/': true,
-1 9202 ';': true,
-1 9203 '<': true,
-1 9204 '=': true,
-1 9205 '>': true,
-1 9206 '?': true,
-1 9207 '@': true,
-1 9208 '[': true,
-1 9209 '\\': true,
-1 9210 ']': true,
-1 9211 '^': true,
-1 9212 '`': true,
-1 9213 '{': true,
-1 9214 '|': true,
-1 9215 '}': true,
-1 9216 '~': true
-1 9217 };
-1 9218 exports.strReplacementsRev = {
-1 9219 '\n': '\\n',
-1 9220 '\r': '\\r',
-1 9221 '\t': '\\t',
-1 9222 '\f': '\\f',
-1 9223 '\v': '\\v'
-1 9224 };
-1 9225 exports.singleQuoteEscapeChars = {
-1 9226 n: '\n',
-1 9227 r: '\r',
-1 9228 t: '\t',
-1 9229 f: '\f',
-1 9230 '\\': '\\',
-1 9231 '\'': '\''
-1 9232 };
-1 9233 exports.doubleQuotesEscapeChars = {
-1 9234 n: '\n',
-1 9235 r: '\r',
-1 9236 t: '\t',
-1 9237 f: '\f',
-1 9238 '\\': '\\',
-1 9239 '"': '"'
-1 9240 };
-1 9241 });
-1 9242 var require_parser_context = __commonJS(function(exports) {
-1 9243 'use strict';
-1 9244 Object.defineProperty(exports, '__esModule', {
-1 9245 value: true
-1 9246 });
-1 9247 var utils_1 = require_utils();
-1 9248 function parseCssSelector(str, pos, pseudos, attrEqualityMods, ruleNestingOperators, substitutesEnabled) {
-1 9249 var l = str.length;
-1 9250 var chr = '';
-1 9251 function getStr(quote, escapeTable) {
-1 9252 var result = '';
-1 9253 pos++;
-1 9254 chr = str.charAt(pos);
-1 9255 while (pos < l) {
-1 9256 if (chr === quote) {
-1 9257 pos++;
-1 9258 return result;
-1 9259 } else if (chr === '\\') {
-1 9260 pos++;
-1 9261 chr = str.charAt(pos);
-1 9262 var esc = void 0;
-1 9263 if (chr === quote) {
-1 9264 result += quote;
-1 9265 } else if ((esc = escapeTable[chr]) !== void 0) {
-1 9266 result += esc;
-1 9267 } else if (utils_1.isHex(chr)) {
-1 9268 var hex = chr;
-1 9269 pos++;
-1 9270 chr = str.charAt(pos);
-1 9271 while (utils_1.isHex(chr)) {
-1 9272 hex += chr;
-1 9273 pos++;
-1 9274 chr = str.charAt(pos);
9640 9275 }
9641 -1 if (!(code in def)) {
9642 -1 def[code] = value;
-1 9276 if (chr === ' ') {
-1 9277 pos++;
-1 9278 chr = str.charAt(pos);
9643 9279 }
-1 9280 result += String.fromCharCode(parseInt(hex, 16));
-1 9281 continue;
9644 9282 } else {
9645 -1 new Function('def', 'def[\'' + code + '\']=' + value)(def);
-1 9283 result += chr;
9646 9284 }
-1 9285 } else {
-1 9286 result += chr;
9647 9287 }
9648 -1 return '';
9649 -1 }).replace(c.use || skip, function(m, code) {
9650 -1 if (c.useParams) {
9651 -1 code = code.replace(c.useParams, function(m2, s, d, param) {
9652 -1 if (def[d] && def[d].arg && param) {
9653 -1 var rw = (d + ':' + param).replace(/'|\\/g, '_');
9654 -1 def.__exp = def.__exp || {};
9655 -1 def.__exp[rw] = def[d].text.replace(new RegExp('(^|[^\\w$])' + def[d].arg + '([^\\w$])', 'g'), '$1' + param + '$2');
9656 -1 return s + 'def.__exp[\'' + rw + '\']';
9657 -1 }
9658 -1 });
9659 -1 }
9660 -1 var v = new Function('def', 'return ' + code)(def);
9661 -1 return v ? resolveDefs(c, v, def) : v;
9662 -1 });
9663 -1 }
9664 -1 function unescape(code) {
9665 -1 return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' ');
-1 9288 pos++;
-1 9289 chr = str.charAt(pos);
-1 9290 }
-1 9291 return result;
9666 9292 }
9667 -1 doT3.template = function(tmpl, c, def) {
9668 -1 c = c || doT3.templateSettings;
9669 -1 var cse = c.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c.use || c.define ? resolveDefs(c, tmpl, def || {}) : tmpl;
9670 -1 str = ('var out=\'' + (c.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c.interpolate || skip, function(m, code) {
9671 -1 return cse.start + unescape(code) + cse.end;
9672 -1 }).replace(c.encode || skip, function(m, code) {
9673 -1 needhtmlencode = true;
9674 -1 return cse.startencode + unescape(code) + cse.end;
9675 -1 }).replace(c.conditional || skip, function(m, elsecase, code) {
9676 -1 return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\'';
9677 -1 }).replace(c.iterate || skip, function(m, iterate, vname, iname) {
9678 -1 if (!iterate) {
9679 -1 return '\';} } out+=\'';
9680 -1 }
9681 -1 sid += 1;
9682 -1 indv = iname || 'i' + sid;
9683 -1 iterate = unescape(iterate);
9684 -1 return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\'';
9685 -1 }).replace(c.evaluate || skip, function(m, code) {
9686 -1 return '\';' + unescape(code) + 'out+=\'';
9687 -1 }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, '');
9688 -1 if (needhtmlencode) {
9689 -1 if (!c.selfcontained && globalThis && !globalThis._encodeHTML) {
9690 -1 globalThis._encodeHTML = doT3.encodeHTMLSource(c.doNotSkipEncoded);
9691 -1 }
9692 -1 str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT3.encodeHTMLSource.toString() + '(' + (c.doNotSkipEncoded || '') + '));' + str;
9693 -1 }
9694 -1 try {
9695 -1 return new Function(c.varname, str);
9696 -1 } catch (e) {
9697 -1 if (typeof console !== 'undefined') {
9698 -1 console.log('Could not create a template function: ' + str);
9699 -1 }
9700 -1 throw e;
9701 -1 }
9702 -1 };
9703 -1 doT3.compile = function(tmpl, def) {
9704 -1 return doT3.template(tmpl, null, def);
9705 -1 };
9706 -1 })();
9707 -1 });
9708 -1 var require_es6_promise = __commonJS(function(exports, module) {
9709 -1 (function(global2, factory) {
9710 -1 _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global2.ES6Promise = factory();
9711 -1 })(exports, function() {
9712 -1 'use strict';
9713 -1 function objectOrFunction(x) {
9714 -1 var type = _typeof(x);
9715 -1 return x !== null && (type === 'object' || type === 'function');
9716 -1 }
9717 -1 function isFunction(x) {
9718 -1 return typeof x === 'function';
9719 -1 }
9720 -1 var _isArray = void 0;
9721 -1 if (Array.isArray) {
9722 -1 _isArray = Array.isArray;
9723 -1 } else {
9724 -1 _isArray = function _isArray(x) {
9725 -1 return Object.prototype.toString.call(x) === '[object Array]';
9726 -1 };
9727 -1 }
9728 -1 var isArray = _isArray;
9729 -1 var len = 0;
9730 -1 var vertxNext = void 0;
9731 -1 var customSchedulerFn = void 0;
9732 -1 var asap = function asap2(callback, arg) {
9733 -1 queue2[len] = callback;
9734 -1 queue2[len + 1] = arg;
9735 -1 len += 2;
9736 -1 if (len === 2) {
9737 -1 if (customSchedulerFn) {
9738 -1 customSchedulerFn(flush);
-1 9293 function getIdent() {
-1 9294 var result = '';
-1 9295 chr = str.charAt(pos);
-1 9296 while (pos < l) {
-1 9297 if (utils_1.isIdent(chr)) {
-1 9298 result += chr;
-1 9299 } else if (chr === '\\') {
-1 9300 pos++;
-1 9301 if (pos >= l) {
-1 9302 throw Error('Expected symbol but end of file reached.');
-1 9303 }
-1 9304 chr = str.charAt(pos);
-1 9305 if (utils_1.identSpecialChars[chr]) {
-1 9306 result += chr;
-1 9307 } else if (utils_1.isHex(chr)) {
-1 9308 var hex = chr;
-1 9309 pos++;
-1 9310 chr = str.charAt(pos);
-1 9311 while (utils_1.isHex(chr)) {
-1 9312 hex += chr;
-1 9313 pos++;
-1 9314 chr = str.charAt(pos);
-1 9315 }
-1 9316 if (chr === ' ') {
-1 9317 pos++;
-1 9318 chr = str.charAt(pos);
-1 9319 }
-1 9320 result += String.fromCharCode(parseInt(hex, 16));
-1 9321 continue;
-1 9322 } else {
-1 9323 result += chr;
-1 9324 }
9739 9325 } else {
9740 -1 scheduleFlush();
-1 9326 return result;
9741 9327 }
-1 9328 pos++;
-1 9329 chr = str.charAt(pos);
9742 9330 }
9743 -1 };
9744 -1 function setScheduler(scheduleFn) {
9745 -1 customSchedulerFn = scheduleFn;
9746 -1 }
9747 -1 function setAsap(asapFn) {
9748 -1 asap = asapFn;
9749 -1 }
9750 -1 var browserWindow = typeof window !== 'undefined' ? window : void 0;
9751 -1 var browserGlobal = browserWindow || {};
9752 -1 var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
9753 -1 var isNode2 = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
9754 -1 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
9755 -1 function useNextTick() {
9756 -1 return function() {
9757 -1 return process.nextTick(flush);
9758 -1 };
-1 9331 return result;
9759 9332 }
9760 -1 function useVertxTimer() {
9761 -1 if (typeof vertxNext !== 'undefined') {
9762 -1 return function() {
9763 -1 vertxNext(flush);
9764 -1 };
-1 9333 function skipWhitespace() {
-1 9334 chr = str.charAt(pos);
-1 9335 var result = false;
-1 9336 while (chr === ' ' || chr === '\t' || chr === '\n' || chr === '\r' || chr === '\f') {
-1 9337 result = true;
-1 9338 pos++;
-1 9339 chr = str.charAt(pos);
9765 9340 }
9766 -1 return useSetTimeout();
9767 -1 }
9768 -1 function useMutationObserver() {
9769 -1 var iterations = 0;
9770 -1 var observer = new BrowserMutationObserver(flush);
9771 -1 var node = document.createTextNode('');
9772 -1 observer.observe(node, {
9773 -1 characterData: true
9774 -1 });
9775 -1 return function() {
9776 -1 node.data = iterations = ++iterations % 2;
9777 -1 };
9778 -1 }
9779 -1 function useMessageChannel() {
9780 -1 var channel = new MessageChannel();
9781 -1 channel.port1.onmessage = flush;
9782 -1 return function() {
9783 -1 return channel.port2.postMessage(0);
9784 -1 };
9785 -1 }
9786 -1 function useSetTimeout() {
9787 -1 var globalSetTimeout = setTimeout;
9788 -1 return function() {
9789 -1 return globalSetTimeout(flush, 1);
9790 -1 };
-1 9341 return result;
9791 9342 }
9792 -1 var queue2 = new Array(1e3);
9793 -1 function flush() {
9794 -1 for (var i = 0; i < len; i += 2) {
9795 -1 var callback = queue2[i];
9796 -1 var arg = queue2[i + 1];
9797 -1 callback(arg);
9798 -1 queue2[i] = void 0;
9799 -1 queue2[i + 1] = void 0;
-1 9343 function parse3() {
-1 9344 var res = parseSelector();
-1 9345 if (pos < l) {
-1 9346 throw Error('Rule expected but "' + str.charAt(pos) + '" found.');
9800 9347 }
9801 -1 len = 0;
-1 9348 return res;
9802 9349 }
9803 -1 function attemptVertx() {
9804 -1 try {
9805 -1 var vertx = Function('return this')().require('vertx');
9806 -1 vertxNext = vertx.runOnLoop || vertx.runOnContext;
9807 -1 return useVertxTimer();
9808 -1 } catch (e) {
9809 -1 return useSetTimeout();
-1 9350 function parseSelector() {
-1 9351 var selector = parseSingleSelector();
-1 9352 if (!selector) {
-1 9353 return null;
9810 9354 }
-1 9355 var res = selector;
-1 9356 chr = str.charAt(pos);
-1 9357 while (chr === ',') {
-1 9358 pos++;
-1 9359 skipWhitespace();
-1 9360 if (res.type !== 'selectors') {
-1 9361 res = {
-1 9362 type: 'selectors',
-1 9363 selectors: [ selector ]
-1 9364 };
-1 9365 }
-1 9366 selector = parseSingleSelector();
-1 9367 if (!selector) {
-1 9368 throw Error('Rule expected after ",".');
-1 9369 }
-1 9370 res.selectors.push(selector);
-1 9371 }
-1 9372 return res;
9811 9373 }
9812 -1 var scheduleFlush = void 0;
9813 -1 if (isNode2) {
9814 -1 scheduleFlush = useNextTick();
9815 -1 } else if (BrowserMutationObserver) {
9816 -1 scheduleFlush = useMutationObserver();
9817 -1 } else if (isWorker) {
9818 -1 scheduleFlush = useMessageChannel();
9819 -1 } else if (browserWindow === void 0 && true) {
9820 -1 scheduleFlush = attemptVertx();
9821 -1 } else {
9822 -1 scheduleFlush = useSetTimeout();
9823 -1 }
9824 -1 function then(onFulfillment, onRejection) {
9825 -1 var parent = this;
9826 -1 var child = new this.constructor(noop3);
9827 -1 if (child[PROMISE_ID] === void 0) {
9828 -1 makePromise(child);
-1 9374 function parseSingleSelector() {
-1 9375 skipWhitespace();
-1 9376 var selector = {
-1 9377 type: 'ruleSet'
-1 9378 };
-1 9379 var rule = parseRule();
-1 9380 if (!rule) {
-1 9381 return null;
9829 9382 }
9830 -1 var _state = parent._state;
9831 -1 if (_state) {
9832 -1 var callback = arguments[_state - 1];
9833 -1 asap(function() {
9834 -1 return invokeCallback(_state, child, callback, parent._result);
9835 -1 });
9836 -1 } else {
9837 -1 subscribe2(parent, child, onFulfillment, onRejection);
-1 9383 var currentRule = selector;
-1 9384 while (rule) {
-1 9385 rule.type = 'rule';
-1 9386 currentRule.rule = rule;
-1 9387 currentRule = rule;
-1 9388 skipWhitespace();
-1 9389 chr = str.charAt(pos);
-1 9390 if (pos >= l || chr === ',' || chr === ')') {
-1 9391 break;
-1 9392 }
-1 9393 if (ruleNestingOperators[chr]) {
-1 9394 var op = chr;
-1 9395 pos++;
-1 9396 skipWhitespace();
-1 9397 rule = parseRule();
-1 9398 if (!rule) {
-1 9399 throw Error('Rule expected after "' + op + '".');
-1 9400 }
-1 9401 rule.nestingOperator = op;
-1 9402 } else {
-1 9403 rule = parseRule();
-1 9404 if (rule) {
-1 9405 rule.nestingOperator = null;
-1 9406 }
-1 9407 }
9838 9408 }
9839 -1 return child;
-1 9409 return selector;
9840 9410 }
9841 -1 function resolve$1(object) {
9842 -1 var Constructor = this;
9843 -1 if (object && _typeof(object) === 'object' && object.constructor === Constructor) {
9844 -1 return object;
9845 -1 }
9846 -1 var promise = new Constructor(noop3);
9847 -1 resolve(promise, object);
9848 -1 return promise;
9849 -1 }
9850 -1 var PROMISE_ID = Math.random().toString(36).substring(2);
9851 -1 function noop3() {}
9852 -1 var PENDING = void 0;
9853 -1 var FULFILLED = 1;
9854 -1 var REJECTED = 2;
9855 -1 function selfFulfillment() {
9856 -1 return new TypeError('You cannot resolve a promise with itself');
9857 -1 }
9858 -1 function cannotReturnOwn() {
9859 -1 return new TypeError('A promises callback cannot return that same promise.');
9860 -1 }
9861 -1 function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {
9862 -1 try {
9863 -1 then$$1.call(value, fulfillmentHandler, rejectionHandler);
9864 -1 } catch (e) {
9865 -1 return e;
9866 -1 }
9867 -1 }
9868 -1 function handleForeignThenable(promise, thenable, then$$1) {
9869 -1 asap(function(promise2) {
9870 -1 var sealed = false;
9871 -1 var error = tryThen(then$$1, thenable, function(value) {
9872 -1 if (sealed) {
9873 -1 return;
9874 -1 }
9875 -1 sealed = true;
9876 -1 if (thenable !== value) {
9877 -1 resolve(promise2, value);
-1 9411 function parseRule() {
-1 9412 var rule = null;
-1 9413 while (pos < l) {
-1 9414 chr = str.charAt(pos);
-1 9415 if (chr === '*') {
-1 9416 pos++;
-1 9417 (rule = rule || {}).tagName = '*';
-1 9418 } else if (utils_1.isIdentStart(chr) || chr === '\\') {
-1 9419 (rule = rule || {}).tagName = getIdent();
-1 9420 } else if (chr === '.') {
-1 9421 pos++;
-1 9422 rule = rule || {};
-1 9423 (rule.classNames = rule.classNames || []).push(getIdent());
-1 9424 } else if (chr === '#') {
-1 9425 pos++;
-1 9426 (rule = rule || {}).id = getIdent();
-1 9427 } else if (chr === '[') {
-1 9428 pos++;
-1 9429 skipWhitespace();
-1 9430 var attr = {
-1 9431 name: getIdent()
-1 9432 };
-1 9433 skipWhitespace();
-1 9434 if (chr === ']') {
-1 9435 pos++;
9878 9436 } else {
9879 -1 fulfill(promise2, value);
-1 9437 var operator = '';
-1 9438 if (attrEqualityMods[chr]) {
-1 9439 operator = chr;
-1 9440 pos++;
-1 9441 chr = str.charAt(pos);
-1 9442 }
-1 9443 if (pos >= l) {
-1 9444 throw Error('Expected "=" but end of file reached.');
-1 9445 }
-1 9446 if (chr !== '=') {
-1 9447 throw Error('Expected "=" but "' + chr + '" found.');
-1 9448 }
-1 9449 attr.operator = operator + '=';
-1 9450 pos++;
-1 9451 skipWhitespace();
-1 9452 var attrValue = '';
-1 9453 attr.valueType = 'string';
-1 9454 if (chr === '"') {
-1 9455 attrValue = getStr('"', utils_1.doubleQuotesEscapeChars);
-1 9456 } else if (chr === '\'') {
-1 9457 attrValue = getStr('\'', utils_1.singleQuoteEscapeChars);
-1 9458 } else if (substitutesEnabled && chr === '$') {
-1 9459 pos++;
-1 9460 attrValue = getIdent();
-1 9461 attr.valueType = 'substitute';
-1 9462 } else {
-1 9463 while (pos < l) {
-1 9464 if (chr === ']') {
-1 9465 break;
-1 9466 }
-1 9467 attrValue += chr;
-1 9468 pos++;
-1 9469 chr = str.charAt(pos);
-1 9470 }
-1 9471 attrValue = attrValue.trim();
-1 9472 }
-1 9473 skipWhitespace();
-1 9474 if (pos >= l) {
-1 9475 throw Error('Expected "]" but end of file reached.');
-1 9476 }
-1 9477 if (chr !== ']') {
-1 9478 throw Error('Expected "]" but "' + chr + '" found.');
-1 9479 }
-1 9480 pos++;
-1 9481 attr.value = attrValue;
9880 9482 }
9881 -1 }, function(reason) {
9882 -1 if (sealed) {
9883 -1 return;
-1 9483 rule = rule || {};
-1 9484 (rule.attrs = rule.attrs || []).push(attr);
-1 9485 } else if (chr === ':') {
-1 9486 pos++;
-1 9487 var pseudoName = getIdent();
-1 9488 var pseudo = {
-1 9489 name: pseudoName
-1 9490 };
-1 9491 if (chr === '(') {
-1 9492 pos++;
-1 9493 var value = '';
-1 9494 skipWhitespace();
-1 9495 if (pseudos[pseudoName] === 'selector') {
-1 9496 pseudo.valueType = 'selector';
-1 9497 value = parseSelector();
-1 9498 } else {
-1 9499 pseudo.valueType = pseudos[pseudoName] || 'string';
-1 9500 if (chr === '"') {
-1 9501 value = getStr('"', utils_1.doubleQuotesEscapeChars);
-1 9502 } else if (chr === '\'') {
-1 9503 value = getStr('\'', utils_1.singleQuoteEscapeChars);
-1 9504 } else if (substitutesEnabled && chr === '$') {
-1 9505 pos++;
-1 9506 value = getIdent();
-1 9507 pseudo.valueType = 'substitute';
-1 9508 } else {
-1 9509 while (pos < l) {
-1 9510 if (chr === ')') {
-1 9511 break;
-1 9512 }
-1 9513 value += chr;
-1 9514 pos++;
-1 9515 chr = str.charAt(pos);
-1 9516 }
-1 9517 value = value.trim();
-1 9518 }
-1 9519 skipWhitespace();
-1 9520 }
-1 9521 if (pos >= l) {
-1 9522 throw Error('Expected ")" but end of file reached.');
-1 9523 }
-1 9524 if (chr !== ')') {
-1 9525 throw Error('Expected ")" but "' + chr + '" found.');
-1 9526 }
-1 9527 pos++;
-1 9528 pseudo.value = value;
9884 9529 }
9885 -1 sealed = true;
9886 -1 reject(promise2, reason);
9887 -1 }, 'Settle: ' + (promise2._label || ' unknown promise'));
9888 -1 if (!sealed && error) {
9889 -1 sealed = true;
9890 -1 reject(promise2, error);
9891 -1 }
9892 -1 }, promise);
9893 -1 }
9894 -1 function handleOwnThenable(promise, thenable) {
9895 -1 if (thenable._state === FULFILLED) {
9896 -1 fulfill(promise, thenable._result);
9897 -1 } else if (thenable._state === REJECTED) {
9898 -1 reject(promise, thenable._result);
9899 -1 } else {
9900 -1 subscribe2(thenable, void 0, function(value) {
9901 -1 return resolve(promise, value);
9902 -1 }, function(reason) {
9903 -1 return reject(promise, reason);
9904 -1 });
9905 -1 }
9906 -1 }
9907 -1 function handleMaybeThenable(promise, maybeThenable, then$$1) {
9908 -1 if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {
9909 -1 handleOwnThenable(promise, maybeThenable);
9910 -1 } else {
9911 -1 if (then$$1 === void 0) {
9912 -1 fulfill(promise, maybeThenable);
9913 -1 } else if (isFunction(then$$1)) {
9914 -1 handleForeignThenable(promise, maybeThenable, then$$1);
-1 9530 rule = rule || {};
-1 9531 (rule.pseudos = rule.pseudos || []).push(pseudo);
9915 9532 } else {
9916 -1 fulfill(promise, maybeThenable);
-1 9533 break;
9917 9534 }
9918 9535 }
-1 9536 return rule;
9919 9537 }
9920 -1 function resolve(promise, value) {
9921 -1 if (promise === value) {
9922 -1 reject(promise, selfFulfillment());
9923 -1 } else if (objectOrFunction(value)) {
9924 -1 var then$$1 = void 0;
9925 -1 try {
9926 -1 then$$1 = value.then;
9927 -1 } catch (error) {
9928 -1 reject(promise, error);
9929 -1 return;
-1 9538 return parse3();
-1 9539 }
-1 9540 exports.parseCssSelector = parseCssSelector;
-1 9541 });
-1 9542 var require_render = __commonJS(function(exports) {
-1 9543 'use strict';
-1 9544 Object.defineProperty(exports, '__esModule', {
-1 9545 value: true
-1 9546 });
-1 9547 var utils_1 = require_utils();
-1 9548 function renderEntity(entity) {
-1 9549 var res = '';
-1 9550 switch (entity.type) {
-1 9551 case 'ruleSet':
-1 9552 var currentEntity = entity.rule;
-1 9553 var parts = [];
-1 9554 while (currentEntity) {
-1 9555 if (currentEntity.nestingOperator) {
-1 9556 parts.push(currentEntity.nestingOperator);
9930 9557 }
9931 -1 handleMaybeThenable(promise, value, then$$1);
9932 -1 } else {
9933 -1 fulfill(promise, value);
9934 -1 }
9935 -1 }
9936 -1 function publishRejection(promise) {
9937 -1 if (promise._onerror) {
9938 -1 promise._onerror(promise._result);
-1 9558 parts.push(renderEntity(currentEntity));
-1 9559 currentEntity = currentEntity.rule;
9939 9560 }
9940 -1 publish(promise);
9941 -1 }
9942 -1 function fulfill(promise, value) {
9943 -1 if (promise._state !== PENDING) {
9944 -1 return;
-1 9561 res = parts.join(' ');
-1 9562 break;
-1 9563
-1 9564 case 'selectors':
-1 9565 res = entity.selectors.map(renderEntity).join(', ');
-1 9566 break;
-1 9567
-1 9568 case 'rule':
-1 9569 if (entity.tagName) {
-1 9570 if (entity.tagName === '*') {
-1 9571 res = '*';
-1 9572 } else {
-1 9573 res = utils_1.escapeIdentifier(entity.tagName);
-1 9574 }
9945 9575 }
9946 -1 promise._result = value;
9947 -1 promise._state = FULFILLED;
9948 -1 if (promise._subscribers.length !== 0) {
9949 -1 asap(publish, promise);
-1 9576 if (entity.id) {
-1 9577 res += '#' + utils_1.escapeIdentifier(entity.id);
9950 9578 }
9951 -1 }
9952 -1 function reject(promise, reason) {
9953 -1 if (promise._state !== PENDING) {
9954 -1 return;
-1 9579 if (entity.classNames) {
-1 9580 res += entity.classNames.map(function(cn) {
-1 9581 return '.' + utils_1.escapeIdentifier(cn);
-1 9582 }).join('');
9955 9583 }
9956 -1 promise._state = REJECTED;
9957 -1 promise._result = reason;
9958 -1 asap(publishRejection, promise);
9959 -1 }
9960 -1 function subscribe2(parent, child, onFulfillment, onRejection) {
9961 -1 var _subscribers = parent._subscribers;
9962 -1 var length = _subscribers.length;
9963 -1 parent._onerror = null;
9964 -1 _subscribers[length] = child;
9965 -1 _subscribers[length + FULFILLED] = onFulfillment;
9966 -1 _subscribers[length + REJECTED] = onRejection;
9967 -1 if (length === 0 && parent._state) {
9968 -1 asap(publish, parent);
9969 -1 }
9970 -1 }
9971 -1 function publish(promise) {
9972 -1 var subscribers = promise._subscribers;
9973 -1 var settled = promise._state;
9974 -1 if (subscribers.length === 0) {
9975 -1 return;
9976 -1 }
9977 -1 var child = void 0, callback = void 0, detail = promise._result;
9978 -1 for (var i = 0; i < subscribers.length; i += 3) {
9979 -1 child = subscribers[i];
9980 -1 callback = subscribers[i + settled];
9981 -1 if (child) {
9982 -1 invokeCallback(settled, child, callback, detail);
9983 -1 } else {
9984 -1 callback(detail);
9985 -1 }
9986 -1 }
9987 -1 promise._subscribers.length = 0;
9988 -1 }
9989 -1 function invokeCallback(settled, promise, callback, detail) {
9990 -1 var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true;
9991 -1 if (hasCallback) {
9992 -1 try {
9993 -1 value = callback(detail);
9994 -1 } catch (e) {
9995 -1 succeeded = false;
9996 -1 error = e;
9997 -1 }
9998 -1 if (promise === value) {
9999 -1 reject(promise, cannotReturnOwn());
10000 -1 return;
10001 -1 }
10002 -1 } else {
10003 -1 value = detail;
10004 -1 }
10005 -1 if (promise._state !== PENDING) {} else if (hasCallback && succeeded) {
10006 -1 resolve(promise, value);
10007 -1 } else if (succeeded === false) {
10008 -1 reject(promise, error);
10009 -1 } else if (settled === FULFILLED) {
10010 -1 fulfill(promise, value);
10011 -1 } else if (settled === REJECTED) {
10012 -1 reject(promise, value);
10013 -1 }
10014 -1 }
10015 -1 function initializePromise(promise, resolver) {
10016 -1 try {
10017 -1 resolver(function resolvePromise(value) {
10018 -1 resolve(promise, value);
10019 -1 }, function rejectPromise(reason) {
10020 -1 reject(promise, reason);
10021 -1 });
10022 -1 } catch (e) {
10023 -1 reject(promise, e);
10024 -1 }
10025 -1 }
10026 -1 var id = 0;
10027 -1 function nextId() {
10028 -1 return id++;
10029 -1 }
10030 -1 function makePromise(promise) {
10031 -1 promise[PROMISE_ID] = id++;
10032 -1 promise._state = void 0;
10033 -1 promise._result = void 0;
10034 -1 promise._subscribers = [];
10035 -1 }
10036 -1 function validationError() {
10037 -1 return new Error('Array Methods must be provided an Array');
10038 -1 }
10039 -1 var Enumerator = function() {
10040 -1 function Enumerator2(Constructor, input) {
10041 -1 this._instanceConstructor = Constructor;
10042 -1 this.promise = new Constructor(noop3);
10043 -1 if (!this.promise[PROMISE_ID]) {
10044 -1 makePromise(this.promise);
10045 -1 }
10046 -1 if (isArray(input)) {
10047 -1 this.length = input.length;
10048 -1 this._remaining = input.length;
10049 -1 this._result = new Array(this.length);
10050 -1 if (this.length === 0) {
10051 -1 fulfill(this.promise, this._result);
10052 -1 } else {
10053 -1 this.length = this.length || 0;
10054 -1 this._enumerate(input);
10055 -1 if (this._remaining === 0) {
10056 -1 fulfill(this.promise, this._result);
-1 9584 if (entity.attrs) {
-1 9585 res += entity.attrs.map(function(attr) {
-1 9586 if ('operator' in attr) {
-1 9587 if (attr.valueType === 'substitute') {
-1 9588 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + '$' + attr.value + ']';
-1 9589 } else {
-1 9590 return '[' + utils_1.escapeIdentifier(attr.name) + attr.operator + utils_1.escapeStr(attr.value) + ']';
10057 9591 }
-1 9592 } else {
-1 9593 return '[' + utils_1.escapeIdentifier(attr.name) + ']';
10058 9594 }
10059 -1 } else {
10060 -1 reject(this.promise, validationError());
10061 -1 }
-1 9595 }).join('');
10062 9596 }
10063 -1 Enumerator2.prototype._enumerate = function _enumerate(input) {
10064 -1 for (var i = 0; this._state === PENDING && i < input.length; i++) {
10065 -1 this._eachEntry(input[i], i);
10066 -1 }
10067 -1 };
10068 -1 Enumerator2.prototype._eachEntry = function _eachEntry(entry, i) {
10069 -1 var c = this._instanceConstructor;
10070 -1 var resolve$$1 = c.resolve;
10071 -1 if (resolve$$1 === resolve$1) {
10072 -1 var _then = void 0;
10073 -1 var error = void 0;
10074 -1 var didError = false;
10075 -1 try {
10076 -1 _then = entry.then;
10077 -1 } catch (e) {
10078 -1 didError = true;
10079 -1 error = e;
10080 -1 }
10081 -1 if (_then === then && entry._state !== PENDING) {
10082 -1 this._settledAt(entry._state, i, entry._result);
10083 -1 } else if (typeof _then !== 'function') {
10084 -1 this._remaining--;
10085 -1 this._result[i] = entry;
10086 -1 } else if (c === Promise$1) {
10087 -1 var promise = new c(noop3);
10088 -1 if (didError) {
10089 -1 reject(promise, error);
-1 9597 if (entity.pseudos) {
-1 9598 res += entity.pseudos.map(function(pseudo) {
-1 9599 if (pseudo.valueType) {
-1 9600 if (pseudo.valueType === 'selector') {
-1 9601 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + renderEntity(pseudo.value) + ')';
-1 9602 } else if (pseudo.valueType === 'substitute') {
-1 9603 return ':' + utils_1.escapeIdentifier(pseudo.name) + '($' + pseudo.value + ')';
-1 9604 } else if (pseudo.valueType === 'numeric') {
-1 9605 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + pseudo.value + ')';
10090 9606 } else {
10091 -1 handleMaybeThenable(promise, entry, _then);
-1 9607 return ':' + utils_1.escapeIdentifier(pseudo.name) + '(' + utils_1.escapeIdentifier(pseudo.value) + ')';
10092 9608 }
10093 -1 this._willSettleAt(promise, i);
10094 -1 } else {
10095 -1 this._willSettleAt(new c(function(resolve$$12) {
10096 -1 return resolve$$12(entry);
10097 -1 }), i);
10098 -1 }
10099 -1 } else {
10100 -1 this._willSettleAt(resolve$$1(entry), i);
10101 -1 }
10102 -1 };
10103 -1 Enumerator2.prototype._settledAt = function _settledAt(state, i, value) {
10104 -1 var promise = this.promise;
10105 -1 if (promise._state === PENDING) {
10106 -1 this._remaining--;
10107 -1 if (state === REJECTED) {
10108 -1 reject(promise, value);
10109 9609 } else {
10110 -1 this._result[i] = value;
10111 -1 }
10112 -1 }
10113 -1 if (this._remaining === 0) {
10114 -1 fulfill(promise, this._result);
10115 -1 }
10116 -1 };
10117 -1 Enumerator2.prototype._willSettleAt = function _willSettleAt(promise, i) {
10118 -1 var enumerator = this;
10119 -1 subscribe2(promise, void 0, function(value) {
10120 -1 return enumerator._settledAt(FULFILLED, i, value);
10121 -1 }, function(reason) {
10122 -1 return enumerator._settledAt(REJECTED, i, reason);
10123 -1 });
10124 -1 };
10125 -1 return Enumerator2;
10126 -1 }();
10127 -1 function all(entries) {
10128 -1 return new Enumerator(this, entries).promise;
10129 -1 }
10130 -1 function race(entries) {
10131 -1 var Constructor = this;
10132 -1 if (!isArray(entries)) {
10133 -1 return new Constructor(function(_, reject2) {
10134 -1 return reject2(new TypeError('You must pass an array to race.'));
10135 -1 });
10136 -1 } else {
10137 -1 return new Constructor(function(resolve2, reject2) {
10138 -1 var length = entries.length;
10139 -1 for (var i = 0; i < length; i++) {
10140 -1 Constructor.resolve(entries[i]).then(resolve2, reject2);
-1 9610 return ':' + utils_1.escapeIdentifier(pseudo.name);
10141 9611 }
10142 -1 });
-1 9612 }).join('');
10143 9613 }
-1 9614 break;
-1 9615
-1 9616 default:
-1 9617 throw Error('Unknown entity type: "' + entity.type + '".');
10144 9618 }
10145 -1 function reject$1(reason) {
10146 -1 var Constructor = this;
10147 -1 var promise = new Constructor(noop3);
10148 -1 reject(promise, reason);
10149 -1 return promise;
10150 -1 }
10151 -1 function needsResolver() {
10152 -1 throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
10153 -1 }
10154 -1 function needsNew() {
10155 -1 throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
-1 9619 return res;
-1 9620 }
-1 9621 exports.renderEntity = renderEntity;
-1 9622 });
-1 9623 var require_lib = __commonJS(function(exports) {
-1 9624 'use strict';
-1 9625 Object.defineProperty(exports, '__esModule', {
-1 9626 value: true
-1 9627 });
-1 9628 var parser_context_1 = require_parser_context();
-1 9629 var render_1 = require_render();
-1 9630 var CssSelectorParser3 = function() {
-1 9631 function CssSelectorParser4() {
-1 9632 this.pseudos = {};
-1 9633 this.attrEqualityMods = {};
-1 9634 this.ruleNestingOperators = {};
-1 9635 this.substitutesEnabled = false;
10156 9636 }
10157 -1 var Promise$1 = function() {
10158 -1 function Promise2(resolver) {
10159 -1 this[PROMISE_ID] = nextId();
10160 -1 this._result = this._state = void 0;
10161 -1 this._subscribers = [];
10162 -1 if (noop3 !== resolver) {
10163 -1 typeof resolver !== 'function' && needsResolver();
10164 -1 this instanceof Promise2 ? initializePromise(this, resolver) : needsNew();
10165 -1 }
-1 9637 CssSelectorParser4.prototype.registerSelectorPseudos = function() {
-1 9638 var pseudos = [];
-1 9639 for (var _i = 0; _i < arguments.length; _i++) {
-1 9640 pseudos[_i] = arguments[_i];
10166 9641 }
10167 -1 Promise2.prototype['catch'] = function _catch(onRejection) {
10168 -1 return this.then(null, onRejection);
10169 -1 };
10170 -1 Promise2.prototype['finally'] = function _finally(callback) {
10171 -1 var promise = this;
10172 -1 var constructor = promise.constructor;
10173 -1 if (isFunction(callback)) {
10174 -1 return promise.then(function(value) {
10175 -1 return constructor.resolve(callback()).then(function() {
10176 -1 return value;
10177 -1 });
10178 -1 }, function(reason) {
10179 -1 return constructor.resolve(callback()).then(function() {
10180 -1 throw reason;
10181 -1 });
10182 -1 });
10183 -1 }
10184 -1 return promise.then(callback, callback);
10185 -1 };
10186 -1 return Promise2;
10187 -1 }();
10188 -1 Promise$1.prototype.then = then;
10189 -1 Promise$1.all = all;
10190 -1 Promise$1.race = race;
10191 -1 Promise$1.resolve = resolve$1;
10192 -1 Promise$1.reject = reject$1;
10193 -1 Promise$1._setScheduler = setScheduler;
10194 -1 Promise$1._setAsap = setAsap;
10195 -1 Promise$1._asap = asap;
10196 -1 function polyfill() {
10197 -1 var local = void 0;
10198 -1 if (typeof global !== 'undefined') {
10199 -1 local = global;
10200 -1 } else if (typeof self !== 'undefined') {
10201 -1 local = self;
10202 -1 } else {
10203 -1 try {
10204 -1 local = Function('return this')();
10205 -1 } catch (e) {
10206 -1 throw new Error('polyfill failed because global object is unavailable in this environment');
10207 -1 }
-1 9642 for (var _a = 0, pseudos_1 = pseudos; _a < pseudos_1.length; _a++) {
-1 9643 var pseudo = pseudos_1[_a];
-1 9644 this.pseudos[pseudo] = 'selector';
10208 9645 }
10209 -1 var P = local.Promise;
10210 -1 if (P) {
10211 -1 var promiseToString = null;
10212 -1 try {
10213 -1 promiseToString = Object.prototype.toString.call(P.resolve());
10214 -1 } catch (e) {}
10215 -1 if (promiseToString === '[object Promise]' && !P.cast) {
10216 -1 return;
10217 -1 }
-1 9646 return this;
-1 9647 };
-1 9648 CssSelectorParser4.prototype.unregisterSelectorPseudos = function() {
-1 9649 var pseudos = [];
-1 9650 for (var _i = 0; _i < arguments.length; _i++) {
-1 9651 pseudos[_i] = arguments[_i];
10218 9652 }
10219 -1 local.Promise = Promise$1;
10220 -1 }
10221 -1 Promise$1.polyfill = polyfill;
10222 -1 Promise$1.Promise = Promise$1;
10223 -1 return Promise$1;
10224 -1 });
10225 -1 });
10226 -1 var require_typedarray = __commonJS(function(exports) {
10227 -1 var undefined2 = void 0;
10228 -1 var MAX_ARRAY_LENGTH = 1e5;
10229 -1 var ECMAScript = function() {
10230 -1 var opts = Object.prototype.toString, ophop = Object.prototype.hasOwnProperty;
10231 -1 return {
10232 -1 Class: function Class(v) {
10233 -1 return opts.call(v).replace(/^\[object *|\]$/g, '');
10234 -1 },
10235 -1 HasProperty: function HasProperty(o, p) {
10236 -1 return p in o;
10237 -1 },
10238 -1 HasOwnProperty: function HasOwnProperty(o, p) {
10239 -1 return ophop.call(o, p);
10240 -1 },
10241 -1 IsCallable: function IsCallable(o) {
10242 -1 return typeof o === 'function';
10243 -1 },
10244 -1 ToInt32: function ToInt32(v) {
10245 -1 return v >> 0;
10246 -1 },
10247 -1 ToUint32: function ToUint32(v) {
10248 -1 return v >>> 0;
-1 9653 for (var _a = 0, pseudos_2 = pseudos; _a < pseudos_2.length; _a++) {
-1 9654 var pseudo = pseudos_2[_a];
-1 9655 delete this.pseudos[pseudo];
10249 9656 }
-1 9657 return this;
10250 9658 };
10251 -1 }();
10252 -1 var LN2 = Math.LN2;
10253 -1 var abs = Math.abs;
10254 -1 var floor = Math.floor;
10255 -1 var log2 = Math.log;
10256 -1 var min = Math.min;
10257 -1 var pow = Math.pow;
10258 -1 var round = Math.round;
10259 -1 function configureProperties(obj) {
10260 -1 if (getOwnPropNames && defineProp) {
10261 -1 var props = getOwnPropNames(obj), i;
10262 -1 for (i = 0; i < props.length; i += 1) {
10263 -1 defineProp(obj, props[i], {
10264 -1 value: obj[props[i]],
10265 -1 writable: false,
10266 -1 enumerable: false,
10267 -1 configurable: false
10268 -1 });
-1 9659 CssSelectorParser4.prototype.registerNumericPseudos = function() {
-1 9660 var pseudos = [];
-1 9661 for (var _i = 0; _i < arguments.length; _i++) {
-1 9662 pseudos[_i] = arguments[_i];
10269 9663 }
10270 -1 }
10271 -1 }
10272 -1 var defineProp;
10273 -1 if (Object.defineProperty && function() {
10274 -1 try {
10275 -1 Object.defineProperty({}, 'x', {});
10276 -1 return true;
10277 -1 } catch (e) {
10278 -1 return false;
10279 -1 }
10280 -1 }()) {
10281 -1 defineProp = Object.defineProperty;
10282 -1 } else {
10283 -1 defineProp = function defineProp(o, p, desc) {
10284 -1 if (!o === Object(o)) {
10285 -1 throw new TypeError('Object.defineProperty called on non-object');
-1 9664 for (var _a = 0, pseudos_3 = pseudos; _a < pseudos_3.length; _a++) {
-1 9665 var pseudo = pseudos_3[_a];
-1 9666 this.pseudos[pseudo] = 'numeric';
10286 9667 }
10287 -1 if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) {
10288 -1 Object.prototype.__defineGetter__.call(o, p, desc.get);
-1 9668 return this;
-1 9669 };
-1 9670 CssSelectorParser4.prototype.unregisterNumericPseudos = function() {
-1 9671 var pseudos = [];
-1 9672 for (var _i = 0; _i < arguments.length; _i++) {
-1 9673 pseudos[_i] = arguments[_i];
10289 9674 }
10290 -1 if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) {
10291 -1 Object.prototype.__defineSetter__.call(o, p, desc.set);
-1 9675 for (var _a = 0, pseudos_4 = pseudos; _a < pseudos_4.length; _a++) {
-1 9676 var pseudo = pseudos_4[_a];
-1 9677 delete this.pseudos[pseudo];
10292 9678 }
10293 -1 if (ECMAScript.HasProperty(desc, 'value')) {
10294 -1 o[p] = desc.value;
-1 9679 return this;
-1 9680 };
-1 9681 CssSelectorParser4.prototype.registerNestingOperators = function() {
-1 9682 var operators = [];
-1 9683 for (var _i = 0; _i < arguments.length; _i++) {
-1 9684 operators[_i] = arguments[_i];
10295 9685 }
10296 -1 return o;
-1 9686 for (var _a = 0, operators_1 = operators; _a < operators_1.length; _a++) {
-1 9687 var operator = operators_1[_a];
-1 9688 this.ruleNestingOperators[operator] = true;
-1 9689 }
-1 9690 return this;
10297 9691 };
10298 -1 }
10299 -1 var getOwnPropNames = Object.getOwnPropertyNames || function(o) {
10300 -1 if (o !== Object(o)) {
10301 -1 throw new TypeError('Object.getOwnPropertyNames called on non-object');
10302 -1 }
10303 -1 var props = [], p;
10304 -1 for (p in o) {
10305 -1 if (ECMAScript.HasOwnProperty(o, p)) {
10306 -1 props.push(p);
-1 9692 CssSelectorParser4.prototype.unregisterNestingOperators = function() {
-1 9693 var operators = [];
-1 9694 for (var _i = 0; _i < arguments.length; _i++) {
-1 9695 operators[_i] = arguments[_i];
-1 9696 }
-1 9697 for (var _a = 0, operators_2 = operators; _a < operators_2.length; _a++) {
-1 9698 var operator = operators_2[_a];
-1 9699 delete this.ruleNestingOperators[operator];
-1 9700 }
-1 9701 return this;
-1 9702 };
-1 9703 CssSelectorParser4.prototype.registerAttrEqualityMods = function() {
-1 9704 var mods = [];
-1 9705 for (var _i = 0; _i < arguments.length; _i++) {
-1 9706 mods[_i] = arguments[_i];
-1 9707 }
-1 9708 for (var _a = 0, mods_1 = mods; _a < mods_1.length; _a++) {
-1 9709 var mod = mods_1[_a];
-1 9710 this.attrEqualityMods[mod] = true;
-1 9711 }
-1 9712 return this;
-1 9713 };
-1 9714 CssSelectorParser4.prototype.unregisterAttrEqualityMods = function() {
-1 9715 var mods = [];
-1 9716 for (var _i = 0; _i < arguments.length; _i++) {
-1 9717 mods[_i] = arguments[_i];
10307 9718 }
-1 9719 for (var _a = 0, mods_2 = mods; _a < mods_2.length; _a++) {
-1 9720 var mod = mods_2[_a];
-1 9721 delete this.attrEqualityMods[mod];
-1 9722 }
-1 9723 return this;
-1 9724 };
-1 9725 CssSelectorParser4.prototype.enableSubstitutes = function() {
-1 9726 this.substitutesEnabled = true;
-1 9727 return this;
-1 9728 };
-1 9729 CssSelectorParser4.prototype.disableSubstitutes = function() {
-1 9730 this.substitutesEnabled = false;
-1 9731 return this;
-1 9732 };
-1 9733 CssSelectorParser4.prototype.parse = function(str) {
-1 9734 return parser_context_1.parseCssSelector(str, 0, this.pseudos, this.attrEqualityMods, this.ruleNestingOperators, this.substitutesEnabled);
-1 9735 };
-1 9736 CssSelectorParser4.prototype.render = function(path) {
-1 9737 return render_1.renderEntity(path).trim();
-1 9738 };
-1 9739 return CssSelectorParser4;
-1 9740 }();
-1 9741 exports.CssSelectorParser = CssSelectorParser3;
-1 9742 });
-1 9743 var require_es6_promise = __commonJS(function(exports, module) {
-1 9744 (function(global2, factory) {
-1 9745 _typeof(exports) === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global2.ES6Promise = factory();
-1 9746 })(exports, function() {
-1 9747 'use strict';
-1 9748 function objectOrFunction(x) {
-1 9749 var type2 = _typeof(x);
-1 9750 return x !== null && (type2 === 'object' || type2 === 'function');
10308 9751 }
10309 -1 return props;
10310 -1 };
10311 -1 function makeArrayAccessors(obj) {
10312 -1 if (!defineProp) {
10313 -1 return;
-1 9752 function isFunction(x) {
-1 9753 return typeof x === 'function';
10314 9754 }
10315 -1 if (obj.length > MAX_ARRAY_LENGTH) {
10316 -1 throw new RangeError('Array too large for polyfill');
-1 9755 var _isArray = void 0;
-1 9756 if (Array.isArray) {
-1 9757 _isArray = Array.isArray;
-1 9758 } else {
-1 9759 _isArray = function _isArray(x) {
-1 9760 return Object.prototype.toString.call(x) === '[object Array]';
-1 9761 };
10317 9762 }
10318 -1 function makeArrayAccessor(index) {
10319 -1 defineProp(obj, index, {
10320 -1 get: function get() {
10321 -1 return obj._getter(index);
10322 -1 },
10323 -1 set: function set(v) {
10324 -1 obj._setter(index, v);
10325 -1 },
10326 -1 enumerable: true,
10327 -1 configurable: false
10328 -1 });
-1 9763 var isArray = _isArray;
-1 9764 var len = 0;
-1 9765 var vertxNext = void 0;
-1 9766 var customSchedulerFn = void 0;
-1 9767 var asap = function asap2(callback, arg) {
-1 9768 queue2[len] = callback;
-1 9769 queue2[len + 1] = arg;
-1 9770 len += 2;
-1 9771 if (len === 2) {
-1 9772 if (customSchedulerFn) {
-1 9773 customSchedulerFn(flush);
-1 9774 } else {
-1 9775 scheduleFlush();
-1 9776 }
-1 9777 }
-1 9778 };
-1 9779 function setScheduler(scheduleFn) {
-1 9780 customSchedulerFn = scheduleFn;
10329 9781 }
10330 -1 var i;
10331 -1 for (i = 0; i < obj.length; i += 1) {
10332 -1 makeArrayAccessor(i);
-1 9782 function setAsap(asapFn) {
-1 9783 asap = asapFn;
10333 9784 }
10334 -1 }
10335 -1 function as_signed(value, bits) {
10336 -1 var s = 32 - bits;
10337 -1 return value << s >> s;
10338 -1 }
10339 -1 function as_unsigned(value, bits) {
10340 -1 var s = 32 - bits;
10341 -1 return value << s >>> s;
10342 -1 }
10343 -1 function packI8(n) {
10344 -1 return [ n & 255 ];
10345 -1 }
10346 -1 function unpackI8(bytes) {
10347 -1 return as_signed(bytes[0], 8);
10348 -1 }
10349 -1 function packU8(n) {
10350 -1 return [ n & 255 ];
10351 -1 }
10352 -1 function unpackU8(bytes) {
10353 -1 return as_unsigned(bytes[0], 8);
10354 -1 }
10355 -1 function packU8Clamped(n) {
10356 -1 n = round(Number(n));
10357 -1 return [ n < 0 ? 0 : n > 255 ? 255 : n & 255 ];
10358 -1 }
10359 -1 function packI16(n) {
10360 -1 return [ n >> 8 & 255, n & 255 ];
10361 -1 }
10362 -1 function unpackI16(bytes) {
10363 -1 return as_signed(bytes[0] << 8 | bytes[1], 16);
10364 -1 }
10365 -1 function packU16(n) {
10366 -1 return [ n >> 8 & 255, n & 255 ];
10367 -1 }
10368 -1 function unpackU16(bytes) {
10369 -1 return as_unsigned(bytes[0] << 8 | bytes[1], 16);
10370 -1 }
10371 -1 function packI32(n) {
10372 -1 return [ n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255 ];
10373 -1 }
10374 -1 function unpackI32(bytes) {
10375 -1 return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);
10376 -1 }
10377 -1 function packU32(n) {
10378 -1 return [ n >> 24 & 255, n >> 16 & 255, n >> 8 & 255, n & 255 ];
10379 -1 }
10380 -1 function unpackU32(bytes) {
10381 -1 return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);
10382 -1 }
10383 -1 function packIEEE754(v, ebits, fbits) {
10384 -1 var bias = (1 << ebits - 1) - 1, s, e, f, ln, i, bits, str, bytes;
10385 -1 function roundToEven(n) {
10386 -1 var w = floor(n), f2 = n - w;
10387 -1 if (f2 < .5) {
10388 -1 return w;
10389 -1 }
10390 -1 if (f2 > .5) {
10391 -1 return w + 1;
10392 -1 }
10393 -1 return w % 2 ? w + 1 : w;
-1 9785 var browserWindow = typeof window !== 'undefined' ? window : void 0;
-1 9786 var browserGlobal = browserWindow || {};
-1 9787 var BrowserMutationObserver = browserGlobal.MutationObserver || browserGlobal.WebKitMutationObserver;
-1 9788 var isNode2 = typeof self === 'undefined' && typeof process !== 'undefined' && {}.toString.call(process) === '[object process]';
-1 9789 var isWorker = typeof Uint8ClampedArray !== 'undefined' && typeof importScripts !== 'undefined' && typeof MessageChannel !== 'undefined';
-1 9790 function useNextTick() {
-1 9791 return function() {
-1 9792 return process.nextTick(flush);
-1 9793 };
10394 9794 }
10395 -1 if (v !== v) {
10396 -1 e = (1 << ebits) - 1;
10397 -1 f = pow(2, fbits - 1);
10398 -1 s = 0;
10399 -1 } else if (v === Infinity || v === -Infinity) {
10400 -1 e = (1 << ebits) - 1;
10401 -1 f = 0;
10402 -1 s = v < 0 ? 1 : 0;
10403 -1 } else if (v === 0) {
10404 -1 e = 0;
10405 -1 f = 0;
10406 -1 s = 1 / v === -Infinity ? 1 : 0;
10407 -1 } else {
10408 -1 s = v < 0;
10409 -1 v = abs(v);
10410 -1 if (v >= pow(2, 1 - bias)) {
10411 -1 e = min(floor(log2(v) / LN2), 1023);
10412 -1 f = roundToEven(v / pow(2, e) * pow(2, fbits));
10413 -1 if (f / pow(2, fbits) >= 2) {
10414 -1 e = e + 1;
10415 -1 f = 1;
10416 -1 }
10417 -1 if (e > bias) {
10418 -1 e = (1 << ebits) - 1;
10419 -1 f = 0;
10420 -1 } else {
10421 -1 e = e + bias;
10422 -1 f = f - pow(2, fbits);
10423 -1 }
10424 -1 } else {
10425 -1 e = 0;
10426 -1 f = roundToEven(v / pow(2, 1 - bias - fbits));
-1 9795 function useVertxTimer() {
-1 9796 if (typeof vertxNext !== 'undefined') {
-1 9797 return function() {
-1 9798 vertxNext(flush);
-1 9799 };
10427 9800 }
-1 9801 return useSetTimeout();
10428 9802 }
10429 -1 bits = [];
10430 -1 for (i = fbits; i; i -= 1) {
10431 -1 bits.push(f % 2 ? 1 : 0);
10432 -1 f = floor(f / 2);
-1 9803 function useMutationObserver() {
-1 9804 var iterations = 0;
-1 9805 var observer = new BrowserMutationObserver(flush);
-1 9806 var node = document.createTextNode('');
-1 9807 observer.observe(node, {
-1 9808 characterData: true
-1 9809 });
-1 9810 return function() {
-1 9811 node.data = iterations = ++iterations % 2;
-1 9812 };
10433 9813 }
10434 -1 for (i = ebits; i; i -= 1) {
10435 -1 bits.push(e % 2 ? 1 : 0);
10436 -1 e = floor(e / 2);
-1 9814 function useMessageChannel() {
-1 9815 var channel = new MessageChannel();
-1 9816 channel.port1.onmessage = flush;
-1 9817 return function() {
-1 9818 return channel.port2.postMessage(0);
-1 9819 };
10437 9820 }
10438 -1 bits.push(s ? 1 : 0);
10439 -1 bits.reverse();
10440 -1 str = bits.join('');
10441 -1 bytes = [];
10442 -1 while (str.length) {
10443 -1 bytes.push(parseInt(str.substring(0, 8), 2));
10444 -1 str = str.substring(8);
-1 9821 function useSetTimeout() {
-1 9822 var globalSetTimeout = setTimeout;
-1 9823 return function() {
-1 9824 return globalSetTimeout(flush, 1);
-1 9825 };
10445 9826 }
10446 -1 return bytes;
10447 -1 }
10448 -1 function unpackIEEE754(bytes, ebits, fbits) {
10449 -1 var bits = [], i, j, b, str, bias, s, e, f;
10450 -1 for (i = bytes.length; i; i -= 1) {
10451 -1 b = bytes[i - 1];
10452 -1 for (j = 8; j; j -= 1) {
10453 -1 bits.push(b % 2 ? 1 : 0);
10454 -1 b = b >> 1;
-1 9827 var queue2 = new Array(1e3);
-1 9828 function flush() {
-1 9829 for (var i = 0; i < len; i += 2) {
-1 9830 var callback = queue2[i];
-1 9831 var arg = queue2[i + 1];
-1 9832 callback(arg);
-1 9833 queue2[i] = void 0;
-1 9834 queue2[i + 1] = void 0;
-1 9835 }
-1 9836 len = 0;
-1 9837 }
-1 9838 function attemptVertx() {
-1 9839 try {
-1 9840 var vertx = Function('return this')().require('vertx');
-1 9841 vertxNext = vertx.runOnLoop || vertx.runOnContext;
-1 9842 return useVertxTimer();
-1 9843 } catch (e) {
-1 9844 return useSetTimeout();
10455 9845 }
10456 9846 }
10457 -1 bits.reverse();
10458 -1 str = bits.join('');
10459 -1 bias = (1 << ebits - 1) - 1;
10460 -1 s = parseInt(str.substring(0, 1), 2) ? -1 : 1;
10461 -1 e = parseInt(str.substring(1, 1 + ebits), 2);
10462 -1 f = parseInt(str.substring(1 + ebits), 2);
10463 -1 if (e === (1 << ebits) - 1) {
10464 -1 return f !== 0 ? NaN : s * Infinity;
10465 -1 } else if (e > 0) {
10466 -1 return s * pow(2, e - bias) * (1 + f / pow(2, fbits));
10467 -1 } else if (f !== 0) {
10468 -1 return s * pow(2, -(bias - 1)) * (f / pow(2, fbits));
-1 9847 var scheduleFlush = void 0;
-1 9848 if (isNode2) {
-1 9849 scheduleFlush = useNextTick();
-1 9850 } else if (BrowserMutationObserver) {
-1 9851 scheduleFlush = useMutationObserver();
-1 9852 } else if (isWorker) {
-1 9853 scheduleFlush = useMessageChannel();
-1 9854 } else if (browserWindow === void 0 && true) {
-1 9855 scheduleFlush = attemptVertx();
10469 9856 } else {
10470 -1 return s < 0 ? -0 : 0;
-1 9857 scheduleFlush = useSetTimeout();
10471 9858 }
10472 -1 }
10473 -1 function unpackF64(b) {
10474 -1 return unpackIEEE754(b, 11, 52);
10475 -1 }
10476 -1 function packF64(v) {
10477 -1 return packIEEE754(v, 11, 52);
10478 -1 }
10479 -1 function unpackF32(b) {
10480 -1 return unpackIEEE754(b, 8, 23);
10481 -1 }
10482 -1 function packF32(v) {
10483 -1 return packIEEE754(v, 8, 23);
10484 -1 }
10485 -1 (function() {
10486 -1 var ArrayBuffer = function ArrayBuffer2(length) {
10487 -1 length = ECMAScript.ToInt32(length);
10488 -1 if (length < 0) {
10489 -1 throw new RangeError('ArrayBuffer size is not a small enough positive integer');
-1 9859 function then(onFulfillment, onRejection) {
-1 9860 var parent = this;
-1 9861 var child = new this.constructor(noop3);
-1 9862 if (child[PROMISE_ID] === void 0) {
-1 9863 makePromise(child);
10490 9864 }
10491 -1 this.byteLength = length;
10492 -1 this._bytes = [];
10493 -1 this._bytes.length = length;
10494 -1 var i;
10495 -1 for (i = 0; i < this.byteLength; i += 1) {
10496 -1 this._bytes[i] = 0;
-1 9865 var _state = parent._state;
-1 9866 if (_state) {
-1 9867 var callback = arguments[_state - 1];
-1 9868 asap(function() {
-1 9869 return invokeCallback(_state, child, callback, parent._result);
-1 9870 });
-1 9871 } else {
-1 9872 subscribe2(parent, child, onFulfillment, onRejection);
10497 9873 }
10498 -1 configureProperties(this);
10499 -1 };
10500 -1 exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer;
10501 -1 var ArrayBufferView = function ArrayBufferView2() {};
10502 -1 function makeConstructor(bytesPerElement, pack, unpack) {
10503 -1 var _ctor;
10504 -1 _ctor = function ctor(buffer, byteOffset, length) {
10505 -1 var array, sequence, i, s;
10506 -1 if (!arguments.length || typeof arguments[0] === 'number') {
10507 -1 this.length = ECMAScript.ToInt32(arguments[0]);
10508 -1 if (length < 0) {
10509 -1 throw new RangeError('ArrayBufferView size is not a small enough positive integer');
-1 9874 return child;
-1 9875 }
-1 9876 function resolve$1(object) {
-1 9877 var Constructor = this;
-1 9878 if (object && _typeof(object) === 'object' && object.constructor === Constructor) {
-1 9879 return object;
-1 9880 }
-1 9881 var promise = new Constructor(noop3);
-1 9882 resolve(promise, object);
-1 9883 return promise;
-1 9884 }
-1 9885 var PROMISE_ID = Math.random().toString(36).substring(2);
-1 9886 function noop3() {}
-1 9887 var PENDING = void 0;
-1 9888 var FULFILLED = 1;
-1 9889 var REJECTED = 2;
-1 9890 function selfFulfillment() {
-1 9891 return new TypeError('You cannot resolve a promise with itself');
-1 9892 }
-1 9893 function cannotReturnOwn() {
-1 9894 return new TypeError('A promises callback cannot return that same promise.');
-1 9895 }
-1 9896 function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) {
-1 9897 try {
-1 9898 then$$1.call(value, fulfillmentHandler, rejectionHandler);
-1 9899 } catch (e) {
-1 9900 return e;
-1 9901 }
-1 9902 }
-1 9903 function handleForeignThenable(promise, thenable, then$$1) {
-1 9904 asap(function(promise2) {
-1 9905 var sealed = false;
-1 9906 var error = tryThen(then$$1, thenable, function(value) {
-1 9907 if (sealed) {
-1 9908 return;
10510 9909 }
10511 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
10512 -1 this.buffer = new ArrayBuffer(this.byteLength);
10513 -1 this.byteOffset = 0;
10514 -1 } else if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === _ctor) {
10515 -1 array = arguments[0];
10516 -1 this.length = array.length;
10517 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
10518 -1 this.buffer = new ArrayBuffer(this.byteLength);
10519 -1 this.byteOffset = 0;
10520 -1 for (i = 0; i < this.length; i += 1) {
10521 -1 this._setter(i, array._getter(i));
-1 9910 sealed = true;
-1 9911 if (thenable !== value) {
-1 9912 resolve(promise2, value);
-1 9913 } else {
-1 9914 fulfill(promise2, value);
10522 9915 }
10523 -1 } else if (_typeof(arguments[0]) === 'object' && !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {
10524 -1 sequence = arguments[0];
10525 -1 this.length = ECMAScript.ToUint32(sequence.length);
10526 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
10527 -1 this.buffer = new ArrayBuffer(this.byteLength);
10528 -1 this.byteOffset = 0;
10529 -1 for (i = 0; i < this.length; i += 1) {
10530 -1 s = sequence[i];
10531 -1 this._setter(i, Number(s));
10532 -1 }
10533 -1 } else if (_typeof(arguments[0]) === 'object' && (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {
10534 -1 this.buffer = buffer;
10535 -1 this.byteOffset = ECMAScript.ToUint32(byteOffset);
10536 -1 if (this.byteOffset > this.buffer.byteLength) {
10537 -1 throw new RangeError('byteOffset out of range');
10538 -1 }
10539 -1 if (this.byteOffset % this.BYTES_PER_ELEMENT) {
10540 -1 throw new RangeError('ArrayBuffer length minus the byteOffset is not a multiple of the element size.');
10541 -1 }
10542 -1 if (arguments.length < 3) {
10543 -1 this.byteLength = this.buffer.byteLength - this.byteOffset;
10544 -1 if (this.byteLength % this.BYTES_PER_ELEMENT) {
10545 -1 throw new RangeError('length of buffer minus byteOffset not a multiple of the element size');
10546 -1 }
10547 -1 this.length = this.byteLength / this.BYTES_PER_ELEMENT;
10548 -1 } else {
10549 -1 this.length = ECMAScript.ToUint32(length);
10550 -1 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
10551 -1 }
10552 -1 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {
10553 -1 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');
-1 9916 }, function(reason) {
-1 9917 if (sealed) {
-1 9918 return;
10554 9919 }
10555 -1 } else {
10556 -1 throw new TypeError('Unexpected argument type(s)');
10557 -1 }
10558 -1 this.constructor = _ctor;
10559 -1 configureProperties(this);
10560 -1 makeArrayAccessors(this);
10561 -1 };
10562 -1 _ctor.prototype = new ArrayBufferView();
10563 -1 _ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement;
10564 -1 _ctor.prototype._pack = pack;
10565 -1 _ctor.prototype._unpack = unpack;
10566 -1 _ctor.BYTES_PER_ELEMENT = bytesPerElement;
10567 -1 _ctor.prototype._getter = function(index) {
10568 -1 if (arguments.length < 1) {
10569 -1 throw new SyntaxError('Not enough arguments');
-1 9920 sealed = true;
-1 9921 reject(promise2, reason);
-1 9922 }, 'Settle: ' + (promise2._label || ' unknown promise'));
-1 9923 if (!sealed && error) {
-1 9924 sealed = true;
-1 9925 reject(promise2, error);
10570 9926 }
10571 -1 index = ECMAScript.ToUint32(index);
10572 -1 if (index >= this.length) {
10573 -1 return undefined2;
-1 9927 }, promise);
-1 9928 }
-1 9929 function handleOwnThenable(promise, thenable) {
-1 9930 if (thenable._state === FULFILLED) {
-1 9931 fulfill(promise, thenable._result);
-1 9932 } else if (thenable._state === REJECTED) {
-1 9933 reject(promise, thenable._result);
-1 9934 } else {
-1 9935 subscribe2(thenable, void 0, function(value) {
-1 9936 return resolve(promise, value);
-1 9937 }, function(reason) {
-1 9938 return reject(promise, reason);
-1 9939 });
-1 9940 }
-1 9941 }
-1 9942 function handleMaybeThenable(promise, maybeThenable, then$$1) {
-1 9943 if (maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1) {
-1 9944 handleOwnThenable(promise, maybeThenable);
-1 9945 } else {
-1 9946 if (then$$1 === void 0) {
-1 9947 fulfill(promise, maybeThenable);
-1 9948 } else if (isFunction(then$$1)) {
-1 9949 handleForeignThenable(promise, maybeThenable, then$$1);
-1 9950 } else {
-1 9951 fulfill(promise, maybeThenable);
10574 9952 }
10575 -1 var bytes = [], i, o;
10576 -1 for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,
10577 -1 o += 1) {
10578 -1 bytes.push(this.buffer._bytes[o]);
-1 9953 }
-1 9954 }
-1 9955 function resolve(promise, value) {
-1 9956 if (promise === value) {
-1 9957 reject(promise, selfFulfillment());
-1 9958 } else if (objectOrFunction(value)) {
-1 9959 var then$$1 = void 0;
-1 9960 try {
-1 9961 then$$1 = value.then;
-1 9962 } catch (error) {
-1 9963 reject(promise, error);
-1 9964 return;
10579 9965 }
10580 -1 return this._unpack(bytes);
10581 -1 };
10582 -1 _ctor.prototype.get = _ctor.prototype._getter;
10583 -1 _ctor.prototype._setter = function(index, value) {
10584 -1 if (arguments.length < 2) {
10585 -1 throw new SyntaxError('Not enough arguments');
-1 9966 handleMaybeThenable(promise, value, then$$1);
-1 9967 } else {
-1 9968 fulfill(promise, value);
-1 9969 }
-1 9970 }
-1 9971 function publishRejection(promise) {
-1 9972 if (promise._onerror) {
-1 9973 promise._onerror(promise._result);
-1 9974 }
-1 9975 publish(promise);
-1 9976 }
-1 9977 function fulfill(promise, value) {
-1 9978 if (promise._state !== PENDING) {
-1 9979 return;
-1 9980 }
-1 9981 promise._result = value;
-1 9982 promise._state = FULFILLED;
-1 9983 if (promise._subscribers.length !== 0) {
-1 9984 asap(publish, promise);
-1 9985 }
-1 9986 }
-1 9987 function reject(promise, reason) {
-1 9988 if (promise._state !== PENDING) {
-1 9989 return;
-1 9990 }
-1 9991 promise._state = REJECTED;
-1 9992 promise._result = reason;
-1 9993 asap(publishRejection, promise);
-1 9994 }
-1 9995 function subscribe2(parent, child, onFulfillment, onRejection) {
-1 9996 var _subscribers = parent._subscribers;
-1 9997 var length = _subscribers.length;
-1 9998 parent._onerror = null;
-1 9999 _subscribers[length] = child;
-1 10000 _subscribers[length + FULFILLED] = onFulfillment;
-1 10001 _subscribers[length + REJECTED] = onRejection;
-1 10002 if (length === 0 && parent._state) {
-1 10003 asap(publish, parent);
-1 10004 }
-1 10005 }
-1 10006 function publish(promise) {
-1 10007 var subscribers = promise._subscribers;
-1 10008 var settled = promise._state;
-1 10009 if (subscribers.length === 0) {
-1 10010 return;
-1 10011 }
-1 10012 var child = void 0, callback = void 0, detail = promise._result;
-1 10013 for (var i = 0; i < subscribers.length; i += 3) {
-1 10014 child = subscribers[i];
-1 10015 callback = subscribers[i + settled];
-1 10016 if (child) {
-1 10017 invokeCallback(settled, child, callback, detail);
-1 10018 } else {
-1 10019 callback(detail);
10586 10020 }
10587 -1 index = ECMAScript.ToUint32(index);
10588 -1 if (index >= this.length) {
10589 -1 return undefined2;
-1 10021 }
-1 10022 promise._subscribers.length = 0;
-1 10023 }
-1 10024 function invokeCallback(settled, promise, callback, detail) {
-1 10025 var hasCallback = isFunction(callback), value = void 0, error = void 0, succeeded = true;
-1 10026 if (hasCallback) {
-1 10027 try {
-1 10028 value = callback(detail);
-1 10029 } catch (e) {
-1 10030 succeeded = false;
-1 10031 error = e;
10590 10032 }
10591 -1 var bytes = this._pack(value), i, o;
10592 -1 for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,
10593 -1 o += 1) {
10594 -1 this.buffer._bytes[o] = bytes[i];
-1 10033 if (promise === value) {
-1 10034 reject(promise, cannotReturnOwn());
-1 10035 return;
10595 10036 }
10596 -1 };
10597 -1 _ctor.prototype.set = function(index, value) {
10598 -1 if (arguments.length < 1) {
10599 -1 throw new SyntaxError('Not enough arguments');
-1 10037 } else {
-1 10038 value = detail;
-1 10039 }
-1 10040 if (promise._state !== PENDING) {} else if (hasCallback && succeeded) {
-1 10041 resolve(promise, value);
-1 10042 } else if (succeeded === false) {
-1 10043 reject(promise, error);
-1 10044 } else if (settled === FULFILLED) {
-1 10045 fulfill(promise, value);
-1 10046 } else if (settled === REJECTED) {
-1 10047 reject(promise, value);
-1 10048 }
-1 10049 }
-1 10050 function initializePromise(promise, resolver) {
-1 10051 try {
-1 10052 resolver(function resolvePromise(value) {
-1 10053 resolve(promise, value);
-1 10054 }, function rejectPromise(reason) {
-1 10055 reject(promise, reason);
-1 10056 });
-1 10057 } catch (e) {
-1 10058 reject(promise, e);
-1 10059 }
-1 10060 }
-1 10061 var id = 0;
-1 10062 function nextId() {
-1 10063 return id++;
-1 10064 }
-1 10065 function makePromise(promise) {
-1 10066 promise[PROMISE_ID] = id++;
-1 10067 promise._state = void 0;
-1 10068 promise._result = void 0;
-1 10069 promise._subscribers = [];
-1 10070 }
-1 10071 function validationError() {
-1 10072 return new Error('Array Methods must be provided an Array');
-1 10073 }
-1 10074 var Enumerator = function() {
-1 10075 function Enumerator2(Constructor, input) {
-1 10076 this._instanceConstructor = Constructor;
-1 10077 this.promise = new Constructor(noop3);
-1 10078 if (!this.promise[PROMISE_ID]) {
-1 10079 makePromise(this.promise);
10600 10080 }
10601 -1 var array, sequence, offset, len, i, s, d, byteOffset, byteLength, tmp;
10602 -1 if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === this.constructor) {
10603 -1 array = arguments[0];
10604 -1 offset = ECMAScript.ToUint32(arguments[1]);
10605 -1 if (offset + array.length > this.length) {
10606 -1 throw new RangeError('Offset plus length of array is out of range');
10607 -1 }
10608 -1 byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT;
10609 -1 byteLength = array.length * this.BYTES_PER_ELEMENT;
10610 -1 if (array.buffer === this.buffer) {
10611 -1 tmp = [];
10612 -1 for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) {
10613 -1 tmp[i] = array.buffer._bytes[s];
10614 -1 }
10615 -1 for (i = 0, d = byteOffset; i < byteLength; i += 1, d += 1) {
10616 -1 this.buffer._bytes[d] = tmp[i];
10617 -1 }
-1 10081 if (isArray(input)) {
-1 10082 this.length = input.length;
-1 10083 this._remaining = input.length;
-1 10084 this._result = new Array(this.length);
-1 10085 if (this.length === 0) {
-1 10086 fulfill(this.promise, this._result);
10618 10087 } else {
10619 -1 for (i = 0, s = array.byteOffset, d = byteOffset; i < byteLength; i += 1,
10620 -1 s += 1, d += 1) {
10621 -1 this.buffer._bytes[d] = array.buffer._bytes[s];
-1 10088 this.length = this.length || 0;
-1 10089 this._enumerate(input);
-1 10090 if (this._remaining === 0) {
-1 10091 fulfill(this.promise, this._result);
10622 10092 }
10623 10093 }
10624 -1 } else if (_typeof(arguments[0]) === 'object' && typeof arguments[0].length !== 'undefined') {
10625 -1 sequence = arguments[0];
10626 -1 len = ECMAScript.ToUint32(sequence.length);
10627 -1 offset = ECMAScript.ToUint32(arguments[1]);
10628 -1 if (offset + len > this.length) {
10629 -1 throw new RangeError('Offset plus length of array is out of range');
10630 -1 }
10631 -1 for (i = 0; i < len; i += 1) {
10632 -1 s = sequence[i];
10633 -1 this._setter(offset + i, Number(s));
10634 -1 }
10635 10094 } else {
10636 -1 throw new TypeError('Unexpected argument type(s)');
10637 -1 }
10638 -1 };
10639 -1 _ctor.prototype.subarray = function(start, end) {
10640 -1 function clamp2(v, min2, max) {
10641 -1 return v < min2 ? min2 : v > max ? max : v;
-1 10095 reject(this.promise, validationError());
10642 10096 }
10643 -1 start = ECMAScript.ToInt32(start);
10644 -1 end = ECMAScript.ToInt32(end);
10645 -1 if (arguments.length < 1) {
10646 -1 start = 0;
10647 -1 }
10648 -1 if (arguments.length < 2) {
10649 -1 end = this.length;
-1 10097 }
-1 10098 Enumerator2.prototype._enumerate = function _enumerate(input) {
-1 10099 for (var i = 0; this._state === PENDING && i < input.length; i++) {
-1 10100 this._eachEntry(input[i], i);
10650 10101 }
10651 -1 if (start < 0) {
10652 -1 start = this.length + start;
-1 10102 };
-1 10103 Enumerator2.prototype._eachEntry = function _eachEntry(entry, i) {
-1 10104 var c4 = this._instanceConstructor;
-1 10105 var resolve$$1 = c4.resolve;
-1 10106 if (resolve$$1 === resolve$1) {
-1 10107 var _then = void 0;
-1 10108 var error = void 0;
-1 10109 var didError = false;
-1 10110 try {
-1 10111 _then = entry.then;
-1 10112 } catch (e) {
-1 10113 didError = true;
-1 10114 error = e;
-1 10115 }
-1 10116 if (_then === then && entry._state !== PENDING) {
-1 10117 this._settledAt(entry._state, i, entry._result);
-1 10118 } else if (typeof _then !== 'function') {
-1 10119 this._remaining--;
-1 10120 this._result[i] = entry;
-1 10121 } else if (c4 === Promise$1) {
-1 10122 var promise = new c4(noop3);
-1 10123 if (didError) {
-1 10124 reject(promise, error);
-1 10125 } else {
-1 10126 handleMaybeThenable(promise, entry, _then);
-1 10127 }
-1 10128 this._willSettleAt(promise, i);
-1 10129 } else {
-1 10130 this._willSettleAt(new c4(function(resolve$$12) {
-1 10131 return resolve$$12(entry);
-1 10132 }), i);
-1 10133 }
-1 10134 } else {
-1 10135 this._willSettleAt(resolve$$1(entry), i);
10653 10136 }
10654 -1 if (end < 0) {
10655 -1 end = this.length + end;
-1 10137 };
-1 10138 Enumerator2.prototype._settledAt = function _settledAt(state, i, value) {
-1 10139 var promise = this.promise;
-1 10140 if (promise._state === PENDING) {
-1 10141 this._remaining--;
-1 10142 if (state === REJECTED) {
-1 10143 reject(promise, value);
-1 10144 } else {
-1 10145 this._result[i] = value;
-1 10146 }
10656 10147 }
10657 -1 start = clamp2(start, 0, this.length);
10658 -1 end = clamp2(end, 0, this.length);
10659 -1 var len = end - start;
10660 -1 if (len < 0) {
10661 -1 len = 0;
-1 10148 if (this._remaining === 0) {
-1 10149 fulfill(promise, this._result);
10662 10150 }
10663 -1 return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len);
10664 10151 };
10665 -1 return _ctor;
10666 -1 }
10667 -1 var Int8Array = makeConstructor(1, packI8, unpackI8);
10668 -1 var Uint8Array2 = makeConstructor(1, packU8, unpackU8);
10669 -1 var Uint8ClampedArray2 = makeConstructor(1, packU8Clamped, unpackU8);
10670 -1 var Int16Array = makeConstructor(2, packI16, unpackI16);
10671 -1 var Uint16Array = makeConstructor(2, packU16, unpackU16);
10672 -1 var Int32Array = makeConstructor(4, packI32, unpackI32);
10673 -1 var Uint32Array3 = makeConstructor(4, packU32, unpackU32);
10674 -1 var Float32Array = makeConstructor(4, packF32, unpackF32);
10675 -1 var Float64Array = makeConstructor(8, packF64, unpackF64);
10676 -1 exports.Int8Array = exports.Int8Array || Int8Array;
10677 -1 exports.Uint8Array = exports.Uint8Array || Uint8Array2;
10678 -1 exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray2;
10679 -1 exports.Int16Array = exports.Int16Array || Int16Array;
10680 -1 exports.Uint16Array = exports.Uint16Array || Uint16Array;
10681 -1 exports.Int32Array = exports.Int32Array || Int32Array;
10682 -1 exports.Uint32Array = exports.Uint32Array || Uint32Array3;
10683 -1 exports.Float32Array = exports.Float32Array || Float32Array;
10684 -1 exports.Float64Array = exports.Float64Array || Float64Array;
10685 -1 })();
10686 -1 (function() {
10687 -1 function r(array, index) {
10688 -1 return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index];
10689 -1 }
10690 -1 var IS_BIG_ENDIAN = function() {
10691 -1 var u16array = new exports.Uint16Array([ 4660 ]), u8array = new exports.Uint8Array(u16array.buffer);
10692 -1 return r(u8array, 0) === 18;
-1 10152 Enumerator2.prototype._willSettleAt = function _willSettleAt(promise, i) {
-1 10153 var enumerator = this;
-1 10154 subscribe2(promise, void 0, function(value) {
-1 10155 return enumerator._settledAt(FULFILLED, i, value);
-1 10156 }, function(reason) {
-1 10157 return enumerator._settledAt(REJECTED, i, reason);
-1 10158 });
-1 10159 };
-1 10160 return Enumerator2;
10693 10161 }();
10694 -1 var DataView = function DataView2(buffer, byteOffset, byteLength) {
10695 -1 if (arguments.length === 0) {
10696 -1 buffer = new exports.ArrayBuffer(0);
10697 -1 } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) {
10698 -1 throw new TypeError('TypeError');
10699 -1 }
10700 -1 this.buffer = buffer || new exports.ArrayBuffer(0);
10701 -1 this.byteOffset = ECMAScript.ToUint32(byteOffset);
10702 -1 if (this.byteOffset > this.buffer.byteLength) {
10703 -1 throw new RangeError('byteOffset out of range');
10704 -1 }
10705 -1 if (arguments.length < 3) {
10706 -1 this.byteLength = this.buffer.byteLength - this.byteOffset;
-1 10162 function all(entries) {
-1 10163 return new Enumerator(this, entries).promise;
-1 10164 }
-1 10165 function race(entries) {
-1 10166 var Constructor = this;
-1 10167 if (!isArray(entries)) {
-1 10168 return new Constructor(function(_, reject2) {
-1 10169 return reject2(new TypeError('You must pass an array to race.'));
-1 10170 });
10707 10171 } else {
10708 -1 this.byteLength = ECMAScript.ToUint32(byteLength);
10709 -1 }
10710 -1 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {
10711 -1 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');
-1 10172 return new Constructor(function(resolve2, reject2) {
-1 10173 var length = entries.length;
-1 10174 for (var i = 0; i < length; i++) {
-1 10175 Constructor.resolve(entries[i]).then(resolve2, reject2);
-1 10176 }
-1 10177 });
10712 10178 }
10713 -1 configureProperties(this);
10714 -1 };
10715 -1 function makeGetter(arrayType) {
10716 -1 return function(byteOffset, littleEndian) {
10717 -1 byteOffset = ECMAScript.ToUint32(byteOffset);
10718 -1 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {
10719 -1 throw new RangeError('Array index out of range');
10720 -1 }
10721 -1 byteOffset += this.byteOffset;
10722 -1 var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i;
10723 -1 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {
10724 -1 bytes.push(r(uint8Array, i));
10725 -1 }
10726 -1 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {
10727 -1 bytes.reverse();
-1 10179 }
-1 10180 function reject$1(reason) {
-1 10181 var Constructor = this;
-1 10182 var promise = new Constructor(noop3);
-1 10183 reject(promise, reason);
-1 10184 return promise;
-1 10185 }
-1 10186 function needsResolver() {
-1 10187 throw new TypeError('You must pass a resolver function as the first argument to the promise constructor');
-1 10188 }
-1 10189 function needsNew() {
-1 10190 throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.');
-1 10191 }
-1 10192 var Promise$1 = function() {
-1 10193 function Promise2(resolver) {
-1 10194 this[PROMISE_ID] = nextId();
-1 10195 this._result = this._state = void 0;
-1 10196 this._subscribers = [];
-1 10197 if (noop3 !== resolver) {
-1 10198 typeof resolver !== 'function' && needsResolver();
-1 10199 this instanceof Promise2 ? initializePromise(this, resolver) : needsNew();
10728 10200 }
10729 -1 return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0);
-1 10201 }
-1 10202 Promise2.prototype['catch'] = function _catch(onRejection) {
-1 10203 return this.then(null, onRejection);
10730 10204 };
10731 -1 }
10732 -1 DataView.prototype.getUint8 = makeGetter(exports.Uint8Array);
10733 -1 DataView.prototype.getInt8 = makeGetter(exports.Int8Array);
10734 -1 DataView.prototype.getUint16 = makeGetter(exports.Uint16Array);
10735 -1 DataView.prototype.getInt16 = makeGetter(exports.Int16Array);
10736 -1 DataView.prototype.getUint32 = makeGetter(exports.Uint32Array);
10737 -1 DataView.prototype.getInt32 = makeGetter(exports.Int32Array);
10738 -1 DataView.prototype.getFloat32 = makeGetter(exports.Float32Array);
10739 -1 DataView.prototype.getFloat64 = makeGetter(exports.Float64Array);
10740 -1 function makeSetter(arrayType) {
10741 -1 return function(byteOffset, value, littleEndian) {
10742 -1 byteOffset = ECMAScript.ToUint32(byteOffset);
10743 -1 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {
10744 -1 throw new RangeError('Array index out of range');
-1 10205 Promise2.prototype['finally'] = function _finally(callback) {
-1 10206 var promise = this;
-1 10207 var constructor = promise.constructor;
-1 10208 if (isFunction(callback)) {
-1 10209 return promise.then(function(value) {
-1 10210 return constructor.resolve(callback()).then(function() {
-1 10211 return value;
-1 10212 });
-1 10213 }, function(reason) {
-1 10214 return constructor.resolve(callback()).then(function() {
-1 10215 throw reason;
-1 10216 });
-1 10217 });
10745 10218 }
10746 -1 var typeArray = new arrayType([ value ]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView;
10747 -1 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {
10748 -1 bytes.push(r(byteArray, i));
-1 10219 return promise.then(callback, callback);
-1 10220 };
-1 10221 return Promise2;
-1 10222 }();
-1 10223 Promise$1.prototype.then = then;
-1 10224 Promise$1.all = all;
-1 10225 Promise$1.race = race;
-1 10226 Promise$1.resolve = resolve$1;
-1 10227 Promise$1.reject = reject$1;
-1 10228 Promise$1._setScheduler = setScheduler;
-1 10229 Promise$1._setAsap = setAsap;
-1 10230 Promise$1._asap = asap;
-1 10231 function polyfill() {
-1 10232 var local = void 0;
-1 10233 if (typeof global !== 'undefined') {
-1 10234 local = global;
-1 10235 } else if (typeof self !== 'undefined') {
-1 10236 local = self;
-1 10237 } else {
-1 10238 try {
-1 10239 local = Function('return this')();
-1 10240 } catch (e) {
-1 10241 throw new Error('polyfill failed because global object is unavailable in this environment');
10749 10242 }
10750 -1 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {
10751 -1 bytes.reverse();
-1 10243 }
-1 10244 var P = local.Promise;
-1 10245 if (P) {
-1 10246 var promiseToString = null;
-1 10247 try {
-1 10248 promiseToString = Object.prototype.toString.call(P.resolve());
-1 10249 } catch (e) {}
-1 10250 if (promiseToString === '[object Promise]' && !P.cast) {
-1 10251 return;
10752 10252 }
10753 -1 byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT);
10754 -1 byteView.set(bytes);
10755 -1 };
-1 10253 }
-1 10254 local.Promise = Promise$1;
10756 10255 }
10757 -1 DataView.prototype.setUint8 = makeSetter(exports.Uint8Array);
10758 -1 DataView.prototype.setInt8 = makeSetter(exports.Int8Array);
10759 -1 DataView.prototype.setUint16 = makeSetter(exports.Uint16Array);
10760 -1 DataView.prototype.setInt16 = makeSetter(exports.Int16Array);
10761 -1 DataView.prototype.setUint32 = makeSetter(exports.Uint32Array);
10762 -1 DataView.prototype.setInt32 = makeSetter(exports.Int32Array);
10763 -1 DataView.prototype.setFloat32 = makeSetter(exports.Float32Array);
10764 -1 DataView.prototype.setFloat64 = makeSetter(exports.Float64Array);
10765 -1 exports.DataView = exports.DataView || DataView;
10766 -1 })();
-1 10256 Promise$1.polyfill = polyfill;
-1 10257 Promise$1.Promise = Promise$1;
-1 10258 return Promise$1;
-1 10259 });
10767 10260 });
10768 -1 var require_weakmap_polyfill = __commonJS(function(exports) {
10769 -1 (function(self2) {
10770 -1 'use strict';
10771 -1 if (self2.WeakMap) {
10772 -1 return;
10773 -1 }
10774 -1 var hasOwnProperty2 = Object.prototype.hasOwnProperty;
10775 -1 var hasDefine = Object.defineProperty && function() {
10776 -1 try {
10777 -1 return Object.defineProperty({}, 'x', {
10778 -1 value: 1
10779 -1 }).x === 1;
10780 -1 } catch (e) {}
10781 -1 }();
10782 -1 var defineProperty = function defineProperty(object, name, value) {
10783 -1 if (hasDefine) {
10784 -1 Object.defineProperty(object, name, {
10785 -1 configurable: true,
10786 -1 writable: true,
10787 -1 value: value
10788 -1 });
10789 -1 } else {
10790 -1 object[name] = value;
-1 10261 var require_typedarray = __commonJS(function(exports) {
-1 10262 var MAX_ARRAY_LENGTH = 1e5;
-1 10263 var ECMAScript = function() {
-1 10264 var opts = Object.prototype.toString;
-1 10265 var ophop = Object.prototype.hasOwnProperty;
-1 10266 return {
-1 10267 Class: function Class(v) {
-1 10268 return opts.call(v).replace(/^\[object *|\]$/g, '');
-1 10269 },
-1 10270 HasProperty: function HasProperty(o, p2) {
-1 10271 return p2 in o;
-1 10272 },
-1 10273 HasOwnProperty: function HasOwnProperty(o, p2) {
-1 10274 return ophop.call(o, p2);
-1 10275 },
-1 10276 IsCallable: function IsCallable(o) {
-1 10277 return typeof o === 'function';
-1 10278 },
-1 10279 ToInt32: function ToInt32(v) {
-1 10280 return v >> 0;
-1 10281 },
-1 10282 ToUint32: function ToUint32(v) {
-1 10283 return v >>> 0;
10791 10284 }
10792 10285 };
10793 -1 self2.WeakMap = function() {
10794 -1 function WeakMap2() {
10795 -1 if (this === void 0) {
10796 -1 throw new TypeError('Constructor WeakMap requires \'new\'');
10797 -1 }
10798 -1 defineProperty(this, '_id', genId('_WeakMap'));
10799 -1 if (arguments.length > 0) {
10800 -1 throw new TypeError('WeakMap iterable is not supported');
10801 -1 }
-1 10286 }();
-1 10287 var LN2 = Math.LN2;
-1 10288 var abs = Math.abs;
-1 10289 var floor = Math.floor;
-1 10290 var log2 = Math.log;
-1 10291 var min = Math.min;
-1 10292 var pow = Math.pow;
-1 10293 var round = Math.round;
-1 10294 function clamp3(v, minimum, max2) {
-1 10295 return v < minimum ? minimum : v > max2 ? max2 : v;
-1 10296 }
-1 10297 var getOwnPropNames = Object.getOwnPropertyNames || function(o) {
-1 10298 if (o !== Object(o)) {
-1 10299 throw new TypeError('Object.getOwnPropertyNames called on non-object');
-1 10300 }
-1 10301 var props = [], p2;
-1 10302 for (p2 in o) {
-1 10303 if (ECMAScript.HasOwnProperty(o, p2)) {
-1 10304 props.push(p2);
10802 10305 }
10803 -1 defineProperty(WeakMap2.prototype, 'delete', function(key) {
10804 -1 checkInstance(this, 'delete');
10805 -1 if (!isObject(key)) {
10806 -1 return false;
10807 -1 }
10808 -1 var entry = key[this._id];
10809 -1 if (entry && entry[0] === key) {
10810 -1 delete key[this._id];
10811 -1 return true;
10812 -1 }
10813 -1 return false;
10814 -1 });
10815 -1 defineProperty(WeakMap2.prototype, 'get', function(key) {
10816 -1 checkInstance(this, 'get');
10817 -1 if (!isObject(key)) {
10818 -1 return void 0;
10819 -1 }
10820 -1 var entry = key[this._id];
10821 -1 if (entry && entry[0] === key) {
10822 -1 return entry[1];
10823 -1 }
10824 -1 return void 0;
10825 -1 });
10826 -1 defineProperty(WeakMap2.prototype, 'has', function(key) {
10827 -1 checkInstance(this, 'has');
10828 -1 if (!isObject(key)) {
10829 -1 return false;
10830 -1 }
10831 -1 var entry = key[this._id];
10832 -1 if (entry && entry[0] === key) {
10833 -1 return true;
10834 -1 }
10835 -1 return false;
10836 -1 });
10837 -1 defineProperty(WeakMap2.prototype, 'set', function(key, value) {
10838 -1 checkInstance(this, 'set');
10839 -1 if (!isObject(key)) {
10840 -1 throw new TypeError('Invalid value used as weak map key');
10841 -1 }
10842 -1 var entry = key[this._id];
10843 -1 if (entry && entry[0] === key) {
10844 -1 entry[1] = value;
10845 -1 return this;
10846 -1 }
10847 -1 defineProperty(key, this._id, [ key, value ]);
10848 -1 return this;
10849 -1 });
10850 -1 function checkInstance(x, methodName) {
10851 -1 if (!isObject(x) || !hasOwnProperty2.call(x, '_id')) {
10852 -1 throw new TypeError(methodName + ' method called on incompatible receiver ' + _typeof(x));
10853 -1 }
-1 10306 }
-1 10307 return props;
-1 10308 };
-1 10309 var defineProp;
-1 10310 if (Object.defineProperty && function() {
-1 10311 try {
-1 10312 Object.defineProperty({}, 'x', {});
-1 10313 return true;
-1 10314 } catch (e) {
-1 10315 return false;
-1 10316 }
-1 10317 }()) {
-1 10318 defineProp = Object.defineProperty;
-1 10319 } else {
-1 10320 defineProp = function defineProp(o, p2, desc) {
-1 10321 if (!o === Object(o)) {
-1 10322 throw new TypeError('Object.defineProperty called on non-object');
10854 10323 }
10855 -1 function genId(prefix) {
10856 -1 return prefix + '_' + rand() + '.' + rand();
-1 10324 if (ECMAScript.HasProperty(desc, 'get') && Object.prototype.__defineGetter__) {
-1 10325 Object.prototype.__defineGetter__.call(o, p2, desc.get);
10857 10326 }
10858 -1 function rand() {
10859 -1 return Math.random().toString().substring(2);
-1 10327 if (ECMAScript.HasProperty(desc, 'set') && Object.prototype.__defineSetter__) {
-1 10328 Object.prototype.__defineSetter__.call(o, p2, desc.set);
10860 10329 }
10861 -1 defineProperty(WeakMap2, '_polyfill', true);
10862 -1 return WeakMap2;
10863 -1 }();
10864 -1 function isObject(x) {
10865 -1 return Object(x) === x;
10866 -1 }
10867 -1 })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);
10868 -1 });
10869 -1 var definitions = [ {
10870 -1 name: 'NA',
10871 -1 value: 'inapplicable',
10872 -1 priority: 0,
10873 -1 group: 'inapplicable'
10874 -1 }, {
10875 -1 name: 'PASS',
10876 -1 value: 'passed',
10877 -1 priority: 1,
10878 -1 group: 'passes'
10879 -1 }, {
10880 -1 name: 'CANTTELL',
10881 -1 value: 'cantTell',
10882 -1 priority: 2,
10883 -1 group: 'incomplete'
10884 -1 }, {
10885 -1 name: 'FAIL',
10886 -1 value: 'failed',
10887 -1 priority: 3,
10888 -1 group: 'violations'
10889 -1 } ];
10890 -1 var constants = {
10891 -1 helpUrlBase: 'https://dequeuniversity.com/rules/',
10892 -1 gridSize: 200,
10893 -1 results: [],
10894 -1 resultGroups: [],
10895 -1 resultGroupMap: {},
10896 -1 impact: Object.freeze([ 'minor', 'moderate', 'serious', 'critical' ]),
10897 -1 preload: Object.freeze({
10898 -1 assets: [ 'cssom', 'media' ],
10899 -1 timeout: 1e4
10900 -1 }),
10901 -1 allOrigins: '<unsafe_all_origins>',
10902 -1 sameOrigin: '<same_origin>'
10903 -1 };
10904 -1 definitions.forEach(function(definition) {
10905 -1 var name = definition.name;
10906 -1 var value = definition.value;
10907 -1 var priority = definition.priority;
10908 -1 var group = definition.group;
10909 -1 constants[name] = value;
10910 -1 constants[name + '_PRIO'] = priority;
10911 -1 constants[name + '_GROUP'] = group;
10912 -1 constants.results[priority] = value;
10913 -1 constants.resultGroups[priority] = group;
10914 -1 constants.resultGroupMap[value] = group;
10915 -1 });
10916 -1 Object.freeze(constants.results);
10917 -1 Object.freeze(constants.resultGroups);
10918 -1 Object.freeze(constants.resultGroupMap);
10919 -1 Object.freeze(constants);
10920 -1 var constants_default = constants;
10921 -1 function log() {
10922 -1 if ((typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log) {
10923 -1 Function.prototype.apply.call(console.log, console, arguments);
-1 10330 if (ECMAScript.HasProperty(desc, 'value')) {
-1 10331 o[p2] = desc.value;
-1 10332 }
-1 10333 return o;
-1 10334 };
10924 10335 }
10925 -1 }
10926 -1 var log_default = log;
10927 -1 var whitespaceRegex = /[\t\r\n\f]/g;
10928 -1 var AbstractVirtualNode = function() {
10929 -1 function AbstractVirtualNode() {
10930 -1 _classCallCheck(this, AbstractVirtualNode);
10931 -1 this.parent = void 0;
-1 10336 function configureProperties(obj) {
-1 10337 if (getOwnPropNames && defineProp) {
-1 10338 var props = getOwnPropNames(obj), i;
-1 10339 for (i = 0; i < props.length; i += 1) {
-1 10340 defineProp(obj, props[i], {
-1 10341 value: obj[props[i]],
-1 10342 writable: false,
-1 10343 enumerable: false,
-1 10344 configurable: false
-1 10345 });
-1 10346 }
-1 10347 }
10932 10348 }
10933 -1 _createClass(AbstractVirtualNode, [ {
10934 -1 key: 'props',
10935 -1 get: function get() {
10936 -1 throw new Error('VirtualNode class must have a "props" object consisting of "nodeType" and "nodeName" properties');
-1 10349 function makeArrayAccessors(obj) {
-1 10350 if (!defineProp) {
-1 10351 return;
10937 10352 }
10938 -1 }, {
10939 -1 key: 'attrNames',
10940 -1 get: function get() {
10941 -1 throw new Error('VirtualNode class must have an "attrNames" property');
-1 10353 if (obj.length > MAX_ARRAY_LENGTH) {
-1 10354 throw new RangeError('Array too large for polyfill');
10942 10355 }
10943 -1 }, {
10944 -1 key: 'attr',
10945 -1 value: function attr() {
10946 -1 throw new Error('VirtualNode class must have an "attr" function');
-1 10356 function makeArrayAccessor(index) {
-1 10357 defineProp(obj, index, {
-1 10358 get: function get() {
-1 10359 return obj._getter(index);
-1 10360 },
-1 10361 set: function set(v) {
-1 10362 obj._setter(index, v);
-1 10363 },
-1 10364 enumerable: true,
-1 10365 configurable: false
-1 10366 });
10947 10367 }
10948 -1 }, {
10949 -1 key: 'hasAttr',
10950 -1 value: function hasAttr() {
10951 -1 throw new Error('VirtualNode class must have a "hasAttr" function');
-1 10368 var i;
-1 10369 for (i = 0; i < obj.length; i += 1) {
-1 10370 makeArrayAccessor(i);
10952 10371 }
10953 -1 }, {
10954 -1 key: 'hasClass',
10955 -1 value: function hasClass(className) {
10956 -1 var classAttr = this.attr('class');
10957 -1 if (!classAttr) {
10958 -1 return false;
10959 -1 }
10960 -1 var selector = ' ' + className + ' ';
10961 -1 return (' ' + classAttr + ' ').replace(whitespaceRegex, ' ').indexOf(selector) >= 0;
10962 -1 }
10963 -1 } ]);
10964 -1 return AbstractVirtualNode;
10965 -1 }();
10966 -1 var abstract_virtual_node_default = AbstractVirtualNode;
10967 -1 var utils_exports = {};
10968 -1 __export(utils_exports, {
10969 -1 DqElement: function DqElement() {
10970 -1 return dq_element_default;
10971 -1 },
10972 -1 aggregate: function aggregate() {
10973 -1 return aggregate_default;
10974 -1 },
10975 -1 aggregateChecks: function aggregateChecks() {
10976 -1 return aggregate_checks_default;
10977 -1 },
10978 -1 aggregateNodeResults: function aggregateNodeResults() {
10979 -1 return aggregate_node_results_default;
10980 -1 },
10981 -1 aggregateResult: function aggregateResult() {
10982 -1 return aggregate_result_default;
10983 -1 },
10984 -1 areStylesSet: function areStylesSet() {
10985 -1 return are_styles_set_default;
10986 -1 },
10987 -1 assert: function assert() {
10988 -1 return assert_default;
10989 -1 },
10990 -1 checkHelper: function checkHelper() {
10991 -1 return check_helper_default;
10992 -1 },
10993 -1 clone: function clone() {
10994 -1 return clone_default;
10995 -1 },
10996 -1 closest: function closest() {
10997 -1 return closest_default;
10998 -1 },
10999 -1 collectResultsFromFrames: function collectResultsFromFrames() {
11000 -1 return _collectResultsFromFrames;
11001 -1 },
11002 -1 contains: function contains() {
11003 -1 return _contains;
11004 -1 },
11005 -1 convertSelector: function convertSelector() {
11006 -1 return _convertSelector;
11007 -1 },
11008 -1 cssParser: function cssParser() {
11009 -1 return css_parser_default;
11010 -1 },
11011 -1 deepMerge: function deepMerge() {
11012 -1 return deep_merge_default;
11013 -1 },
11014 -1 escapeSelector: function escapeSelector() {
11015 -1 return escape_selector_default;
11016 -1 },
11017 -1 extendMetaData: function extendMetaData() {
11018 -1 return extend_meta_data_default;
11019 -1 },
11020 -1 filterHtmlAttrs: function filterHtmlAttrs() {
11021 -1 return _filterHtmlAttrs;
11022 -1 },
11023 -1 finalizeRuleResult: function finalizeRuleResult() {
11024 -1 return finalize_result_default;
11025 -1 },
11026 -1 findBy: function findBy() {
11027 -1 return find_by_default;
11028 -1 },
11029 -1 getAllChecks: function getAllChecks() {
11030 -1 return get_all_checks_default;
11031 -1 },
11032 -1 getAncestry: function getAncestry() {
11033 -1 return _getAncestry;
11034 -1 },
11035 -1 getBaseLang: function getBaseLang() {
11036 -1 return get_base_lang_default;
11037 -1 },
11038 -1 getCheckMessage: function getCheckMessage() {
11039 -1 return get_check_message_default;
11040 -1 },
11041 -1 getCheckOption: function getCheckOption() {
11042 -1 return get_check_option_default;
11043 -1 },
11044 -1 getEnvironmentData: function getEnvironmentData() {
11045 -1 return _getEnvironmentData;
11046 -1 },
11047 -1 getFlattenedTree: function getFlattenedTree() {
11048 -1 return get_flattened_tree_default;
11049 -1 },
11050 -1 getFrameContexts: function getFrameContexts() {
11051 -1 return _getFrameContexts;
11052 -1 },
11053 -1 getFriendlyUriEnd: function getFriendlyUriEnd() {
11054 -1 return get_friendly_uri_end_default;
11055 -1 },
11056 -1 getNodeAttributes: function getNodeAttributes() {
11057 -1 return get_node_attributes_default;
11058 -1 },
11059 -1 getNodeFromTree: function getNodeFromTree() {
11060 -1 return get_node_from_tree_default;
11061 -1 },
11062 -1 getPreloadConfig: function getPreloadConfig() {
11063 -1 return _getPreloadConfig;
11064 -1 },
11065 -1 getRootNode: function getRootNode() {
11066 -1 return get_root_node_default;
11067 -1 },
11068 -1 getRule: function getRule() {
11069 -1 return get_rule_default;
11070 -1 },
11071 -1 getScroll: function getScroll() {
11072 -1 return _getScroll;
11073 -1 },
11074 -1 getScrollState: function getScrollState() {
11075 -1 return get_scroll_state_default;
11076 -1 },
11077 -1 getSelector: function getSelector() {
11078 -1 return _getSelector;
11079 -1 },
11080 -1 getSelectorData: function getSelectorData() {
11081 -1 return _getSelectorData;
11082 -1 },
11083 -1 getShadowSelector: function getShadowSelector() {
11084 -1 return get_shadow_selector_default;
11085 -1 },
11086 -1 getStandards: function getStandards() {
11087 -1 return _getStandards;
11088 -1 },
11089 -1 getStyleSheetFactory: function getStyleSheetFactory() {
11090 -1 return get_stylesheet_factory_default;
11091 -1 },
11092 -1 getXpath: function getXpath() {
11093 -1 return get_xpath_default;
11094 -1 },
11095 -1 injectStyle: function injectStyle() {
11096 -1 return inject_style_default;
11097 -1 },
11098 -1 isHidden: function isHidden() {
11099 -1 return is_hidden_default;
11100 -1 },
11101 -1 isHtmlElement: function isHtmlElement() {
11102 -1 return is_html_element_default;
11103 -1 },
11104 -1 isNodeInContext: function isNodeInContext() {
11105 -1 return _isNodeInContext;
11106 -1 },
11107 -1 isShadowRoot: function isShadowRoot() {
11108 -1 return is_shadow_root_default;
11109 -1 },
11110 -1 isValidLang: function isValidLang() {
11111 -1 return valid_langs_default;
11112 -1 },
11113 -1 isXHTML: function isXHTML() {
11114 -1 return is_xhtml_default;
11115 -1 },
11116 -1 matchAncestry: function matchAncestry() {
11117 -1 return match_ancestry_default;
11118 -1 },
11119 -1 matches: function matches() {
11120 -1 return matches_default;
11121 -1 },
11122 -1 matchesExpression: function matchesExpression() {
11123 -1 return _matchesExpression;
11124 -1 },
11125 -1 matchesSelector: function matchesSelector() {
11126 -1 return element_matches_default;
11127 -1 },
11128 -1 memoize: function memoize() {
11129 -1 return memoize_default;
11130 -1 },
11131 -1 mergeResults: function mergeResults() {
11132 -1 return merge_results_default;
11133 -1 },
11134 -1 nodeSorter: function nodeSorter() {
11135 -1 return node_sorter_default;
11136 -1 },
11137 -1 parseCrossOriginStylesheet: function parseCrossOriginStylesheet() {
11138 -1 return parse_crossorigin_stylesheet_default;
11139 -1 },
11140 -1 parseSameOriginStylesheet: function parseSameOriginStylesheet() {
11141 -1 return parse_sameorigin_stylesheet_default;
11142 -1 },
11143 -1 parseStylesheet: function parseStylesheet() {
11144 -1 return parse_stylesheet_default;
11145 -1 },
11146 -1 performanceTimer: function performanceTimer() {
11147 -1 return performance_timer_default;
11148 -1 },
11149 -1 pollyfillElementsFromPoint: function pollyfillElementsFromPoint() {
11150 -1 return _pollyfillElementsFromPoint;
11151 -1 },
11152 -1 preload: function preload() {
11153 -1 return preload_default;
11154 -1 },
11155 -1 preloadCssom: function preloadCssom() {
11156 -1 return preload_cssom_default;
11157 -1 },
11158 -1 preloadMedia: function preloadMedia() {
11159 -1 return preload_media_default;
11160 -1 },
11161 -1 processMessage: function processMessage() {
11162 -1 return process_message_default;
11163 -1 },
11164 -1 publishMetaData: function publishMetaData() {
11165 -1 return publish_metadata_default;
11166 -1 },
11167 -1 querySelectorAll: function querySelectorAll() {
11168 -1 return query_selector_all_default;
11169 -1 },
11170 -1 querySelectorAllFilter: function querySelectorAllFilter() {
11171 -1 return query_selector_all_filter_default;
11172 -1 },
11173 -1 queue: function queue() {
11174 -1 return queue_default;
11175 -1 },
11176 -1 respondable: function respondable() {
11177 -1 return _respondable;
11178 -1 },
11179 -1 ruleShouldRun: function ruleShouldRun() {
11180 -1 return rule_should_run_default;
11181 -1 },
11182 -1 select: function select() {
11183 -1 return _select;
11184 -1 },
11185 -1 sendCommandToFrame: function sendCommandToFrame() {
11186 -1 return _sendCommandToFrame;
11187 -1 },
11188 -1 setScrollState: function setScrollState() {
11189 -1 return set_scroll_state_default;
11190 -1 },
11191 -1 shadowSelect: function shadowSelect() {
11192 -1 return _shadowSelect;
11193 -1 },
11194 -1 shadowSelectAll: function shadowSelectAll() {
11195 -1 return _shadowSelectAll;
11196 -1 },
11197 -1 shouldPreload: function shouldPreload() {
11198 -1 return _shouldPreload;
11199 -1 },
11200 -1 toArray: function toArray() {
11201 -1 return to_array_default;
11202 -1 },
11203 -1 tokenList: function tokenList() {
11204 -1 return token_list_default;
11205 -1 },
11206 -1 uniqueArray: function uniqueArray() {
11207 -1 return unique_array_default;
11208 -1 },
11209 -1 uuid: function uuid() {
11210 -1 return uuid_default;
11211 -1 },
11212 -1 validInputTypes: function validInputTypes() {
11213 -1 return valid_input_type_default;
11214 -1 },
11215 -1 validLangs: function validLangs() {
11216 -1 return _validLangs;
11217 10372 }
11218 -1 });
11219 -1 function aggregate(map, values, initial) {
11220 -1 values = values.slice();
11221 -1 if (initial) {
11222 -1 values.push(initial);
-1 10373 function as_signed(value, bits) {
-1 10374 var s = 32 - bits;
-1 10375 return value << s >> s;
11223 10376 }
11224 -1 var sorting = values.map(function(val) {
11225 -1 return map.indexOf(val);
11226 -1 }).sort();
11227 -1 return map[sorting.pop()];
11228 -1 }
11229 -1 var aggregate_default = aggregate;
11230 -1 var CANTTELL_PRIO = constants_default.CANTTELL_PRIO, FAIL_PRIO = constants_default.FAIL_PRIO;
11231 -1 var checkMap = [];
11232 -1 checkMap[constants_default.PASS_PRIO] = true;
11233 -1 checkMap[constants_default.CANTTELL_PRIO] = null;
11234 -1 checkMap[constants_default.FAIL_PRIO] = false;
11235 -1 var checkTypes = [ 'any', 'all', 'none' ];
11236 -1 function anyAllNone(obj, functor) {
11237 -1 return checkTypes.reduce(function(out, type) {
11238 -1 out[type] = (obj[type] || []).map(function(val) {
11239 -1 return functor(val, type);
11240 -1 });
11241 -1 return out;
11242 -1 }, {});
11243 -1 }
11244 -1 function aggregateChecks(nodeResOriginal) {
11245 -1 var nodeResult = Object.assign({}, nodeResOriginal);
11246 -1 anyAllNone(nodeResult, function(check, type) {
11247 -1 var i = typeof check.result === 'undefined' ? -1 : checkMap.indexOf(check.result);
11248 -1 check.priority = i !== -1 ? i : constants_default.CANTTELL_PRIO;
11249 -1 if (type === 'none') {
11250 -1 if (check.priority === constants_default.PASS_PRIO) {
11251 -1 check.priority = constants_default.FAIL_PRIO;
11252 -1 } else if (check.priority === constants_default.FAIL_PRIO) {
11253 -1 check.priority = constants_default.PASS_PRIO;
11254 -1 }
11255 -1 }
11256 -1 });
11257 -1 var priorities = {
11258 -1 all: nodeResult.all.reduce(function(a, b) {
11259 -1 return Math.max(a, b.priority);
11260 -1 }, 0),
11261 -1 none: nodeResult.none.reduce(function(a, b) {
11262 -1 return Math.max(a, b.priority);
11263 -1 }, 0),
11264 -1 any: nodeResult.any.reduce(function(a, b) {
11265 -1 return Math.min(a, b.priority);
11266 -1 }, 4) % 4
11267 -1 };
11268 -1 nodeResult.priority = Math.max(priorities.all, priorities.none, priorities.any);
11269 -1 var impacts = [];
11270 -1 checkTypes.forEach(function(type) {
11271 -1 nodeResult[type] = nodeResult[type].filter(function(check) {
11272 -1 return check.priority === nodeResult.priority && check.priority === priorities[type];
11273 -1 });
11274 -1 nodeResult[type].forEach(function(check) {
11275 -1 return impacts.push(check.impact);
11276 -1 });
11277 -1 });
11278 -1 if ([ CANTTELL_PRIO, FAIL_PRIO ].includes(nodeResult.priority)) {
11279 -1 nodeResult.impact = aggregate_default(constants_default.impact, impacts);
11280 -1 } else {
11281 -1 nodeResult.impact = null;
11282 -1 }
11283 -1 anyAllNone(nodeResult, function(c) {
11284 -1 delete c.result;
11285 -1 delete c.priority;
11286 -1 });
11287 -1 nodeResult.result = constants_default.results[nodeResult.priority];
11288 -1 delete nodeResult.priority;
11289 -1 return nodeResult;
11290 -1 }
11291 -1 var aggregate_checks_default = aggregateChecks;
11292 -1 function finalizeRuleResult(ruleResult) {
11293 -1 var rule = axe._audit.rules.find(function(rule2) {
11294 -1 return rule2.id === ruleResult.id;
11295 -1 });
11296 -1 if (rule && rule.impact) {
11297 -1 ruleResult.nodes.forEach(function(node) {
11298 -1 [ 'any', 'all', 'none' ].forEach(function(checkType) {
11299 -1 (node[checkType] || []).forEach(function(checkResult) {
11300 -1 checkResult.impact = rule.impact;
11301 -1 });
11302 -1 });
11303 -1 });
11304 -1 }
11305 -1 Object.assign(ruleResult, aggregate_node_results_default(ruleResult.nodes));
11306 -1 delete ruleResult.nodes;
11307 -1 return ruleResult;
11308 -1 }
11309 -1 var finalize_result_default = finalizeRuleResult;
11310 -1 function aggregateNodeResults(nodeResults) {
11311 -1 var ruleResult = {};
11312 -1 nodeResults = nodeResults.map(function(nodeResult) {
11313 -1 if (nodeResult.any && nodeResult.all && nodeResult.none) {
11314 -1 return aggregate_checks_default(nodeResult);
11315 -1 } else if (Array.isArray(nodeResult.node)) {
11316 -1 return finalize_result_default(nodeResult);
11317 -1 } else {
11318 -1 throw new TypeError('Invalid Result type');
11319 -1 }
11320 -1 });
11321 -1 if (nodeResults && nodeResults.length) {
11322 -1 var resultList = nodeResults.map(function(node) {
11323 -1 return node.result;
11324 -1 });
11325 -1 ruleResult.result = aggregate_default(constants_default.results, resultList, ruleResult.result);
11326 -1 } else {
11327 -1 ruleResult.result = 'inapplicable';
-1 10377 function as_unsigned(value, bits) {
-1 10378 var s = 32 - bits;
-1 10379 return value << s >>> s;
11328 10380 }
11329 -1 constants_default.resultGroups.forEach(function(group) {
11330 -1 return ruleResult[group] = [];
11331 -1 });
11332 -1 nodeResults.forEach(function(nodeResult) {
11333 -1 var groupName = constants_default.resultGroupMap[nodeResult.result];
11334 -1 ruleResult[groupName].push(nodeResult);
11335 -1 });
11336 -1 var impactGroup = constants_default.FAIL_GROUP;
11337 -1 if (ruleResult[impactGroup].length === 0) {
11338 -1 impactGroup = constants_default.CANTTELL_GROUP;
-1 10381 function packI8(n2) {
-1 10382 return [ n2 & 255 ];
11339 10383 }
11340 -1 if (ruleResult[impactGroup].length > 0) {
11341 -1 var impactList = ruleResult[impactGroup].map(function(failure) {
11342 -1 return failure.impact;
11343 -1 });
11344 -1 ruleResult.impact = aggregate_default(constants_default.impact, impactList) || null;
11345 -1 } else {
11346 -1 ruleResult.impact = null;
-1 10384 function unpackI8(bytes) {
-1 10385 return as_signed(bytes[0], 8);
11347 10386 }
11348 -1 return ruleResult;
11349 -1 }
11350 -1 var aggregate_node_results_default = aggregateNodeResults;
11351 -1 function copyToGroup(resultObject, subResult, group) {
11352 -1 var resultCopy = Object.assign({}, subResult);
11353 -1 resultCopy.nodes = (resultCopy[group] || []).concat();
11354 -1 constants_default.resultGroups.forEach(function(group2) {
11355 -1 delete resultCopy[group2];
11356 -1 });
11357 -1 resultObject[group].push(resultCopy);
11358 -1 }
11359 -1 function aggregateResult(results) {
11360 -1 var resultObject = {};
11361 -1 constants_default.resultGroups.forEach(function(groupName) {
11362 -1 return resultObject[groupName] = [];
11363 -1 });
11364 -1 results.forEach(function(subResult) {
11365 -1 if (subResult.error) {
11366 -1 copyToGroup(resultObject, subResult, constants_default.CANTTELL_GROUP);
11367 -1 } else if (subResult.result === constants_default.NA) {
11368 -1 copyToGroup(resultObject, subResult, constants_default.NA_GROUP);
11369 -1 } else {
11370 -1 constants_default.resultGroups.forEach(function(group) {
11371 -1 if (Array.isArray(subResult[group]) && subResult[group].length > 0) {
11372 -1 copyToGroup(resultObject, subResult, group);
11373 -1 }
11374 -1 });
11375 -1 }
11376 -1 });
11377 -1 return resultObject;
11378 -1 }
11379 -1 var aggregate_result_default = aggregateResult;
11380 -1 function areStylesSet(el, styles, stopAt) {
11381 -1 var styl = window.getComputedStyle(el, null);
11382 -1 if (!styl) {
11383 -1 return false;
-1 10387 function packU8(n2) {
-1 10388 return [ n2 & 255 ];
11384 10389 }
11385 -1 for (var i = 0; i < styles.length; ++i) {
11386 -1 var att = styles[i];
11387 -1 if (styl.getPropertyValue(att.property) === att.value) {
11388 -1 return true;
11389 -1 }
-1 10390 function unpackU8(bytes) {
-1 10391 return as_unsigned(bytes[0], 8);
11390 10392 }
11391 -1 if (!el.parentNode || el.nodeName.toUpperCase() === stopAt.toUpperCase()) {
11392 -1 return false;
-1 10393 function packU8Clamped(n2) {
-1 10394 n2 = round(Number(n2));
-1 10395 return [ n2 < 0 ? 0 : n2 > 255 ? 255 : n2 & 255 ];
11393 10396 }
11394 -1 return areStylesSet(el.parentNode, styles, stopAt);
11395 -1 }
11396 -1 var are_styles_set_default = areStylesSet;
11397 -1 function assert(bool, message) {
11398 -1 if (!bool) {
11399 -1 throw new Error(message);
-1 10397 function packI16(n2) {
-1 10398 return [ n2 >> 8 & 255, n2 & 255 ];
11400 10399 }
11401 -1 }
11402 -1 var assert_default = assert;
11403 -1 function toArray(thing) {
11404 -1 return Array.prototype.slice.call(thing);
11405 -1 }
11406 -1 var to_array_default = toArray;
11407 -1 function escapeSelector(value) {
11408 -1 var string = String(value);
11409 -1 var length = string.length;
11410 -1 var index = -1;
11411 -1 var codeUnit;
11412 -1 var result = '';
11413 -1 var firstCodeUnit = string.charCodeAt(0);
11414 -1 while (++index < length) {
11415 -1 codeUnit = string.charCodeAt(index);
11416 -1 if (codeUnit == 0) {
11417 -1 result += '\ufffd';
11418 -1 continue;
11419 -1 }
11420 -1 if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {
11421 -1 result += '\\' + codeUnit.toString(16) + ' ';
11422 -1 continue;
11423 -1 }
11424 -1 if (index == 0 && length == 1 && codeUnit == 45) {
11425 -1 result += '\\' + string.charAt(index);
11426 -1 continue;
11427 -1 }
11428 -1 if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
11429 -1 result += string.charAt(index);
11430 -1 continue;
11431 -1 }
11432 -1 result += '\\' + string.charAt(index);
-1 10400 function unpackI16(bytes) {
-1 10401 return as_signed(bytes[0] << 8 | bytes[1], 16);
11433 10402 }
11434 -1 return result;
11435 -1 }
11436 -1 var escape_selector_default = escapeSelector;
11437 -1 function isMostlyNumbers() {
11438 -1 var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
11439 -1 return str.length !== 0 && (str.match(/[0-9]/g) || '').length >= str.length / 2;
11440 -1 }
11441 -1 function splitString(str, splitIndex) {
11442 -1 return [ str.substring(0, splitIndex), str.substring(splitIndex) ];
11443 -1 }
11444 -1 function trimRight(str) {
11445 -1 return str.replace(/\s+$/, '');
11446 -1 }
11447 -1 function uriParser(url) {
11448 -1 var original = url;
11449 -1 var protocol = '', domain = '', port = '', path = '', query = '', hash = '';
11450 -1 if (url.includes('#')) {
11451 -1 var _splitString = splitString(url, url.indexOf('#'));
11452 -1 var _splitString2 = _slicedToArray(_splitString, 2);
11453 -1 url = _splitString2[0];
11454 -1 hash = _splitString2[1];
-1 10403 function packU16(n2) {
-1 10404 return [ n2 >> 8 & 255, n2 & 255 ];
11455 10405 }
11456 -1 if (url.includes('?')) {
11457 -1 var _splitString3 = splitString(url, url.indexOf('?'));
11458 -1 var _splitString4 = _slicedToArray(_splitString3, 2);
11459 -1 url = _splitString4[0];
11460 -1 query = _splitString4[1];
-1 10406 function unpackU16(bytes) {
-1 10407 return as_unsigned(bytes[0] << 8 | bytes[1], 16);
11461 10408 }
11462 -1 if (url.includes('://')) {
11463 -1 var _url$split = url.split('://');
11464 -1 var _url$split2 = _slicedToArray(_url$split, 2);
11465 -1 protocol = _url$split2[0];
11466 -1 url = _url$split2[1];
11467 -1 var _splitString5 = splitString(url, url.indexOf('/'));
11468 -1 var _splitString6 = _slicedToArray(_splitString5, 2);
11469 -1 domain = _splitString6[0];
11470 -1 url = _splitString6[1];
11471 -1 } else if (url.substr(0, 2) === '//') {
11472 -1 url = url.substr(2);
11473 -1 var _splitString7 = splitString(url, url.indexOf('/'));
11474 -1 var _splitString8 = _slicedToArray(_splitString7, 2);
11475 -1 domain = _splitString8[0];
11476 -1 url = _splitString8[1];
-1 10409 function packI32(n2) {
-1 10410 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ];
11477 10411 }
11478 -1 if (domain.substr(0, 4) === 'www.') {
11479 -1 domain = domain.substr(4);
-1 10412 function unpackI32(bytes) {
-1 10413 return as_signed(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);
11480 10414 }
11481 -1 if (domain && domain.includes(':')) {
11482 -1 var _splitString9 = splitString(domain, domain.indexOf(':'));
11483 -1 var _splitString10 = _slicedToArray(_splitString9, 2);
11484 -1 domain = _splitString10[0];
11485 -1 port = _splitString10[1];
-1 10415 function packU32(n2) {
-1 10416 return [ n2 >> 24 & 255, n2 >> 16 & 255, n2 >> 8 & 255, n2 & 255 ];
11486 10417 }
11487 -1 path = url;
11488 -1 return {
11489 -1 original: original,
11490 -1 protocol: protocol,
11491 -1 domain: domain,
11492 -1 port: port,
11493 -1 path: path,
11494 -1 query: query,
11495 -1 hash: hash
11496 -1 };
11497 -1 }
11498 -1 function getFriendlyUriEnd() {
11499 -1 var uri = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
11500 -1 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11501 -1 if (uri.length <= 1 || uri.substr(0, 5) === 'data:' || uri.substr(0, 11) === 'javascript:' || uri.includes('?')) {
11502 -1 return;
-1 10418 function unpackU32(bytes) {
-1 10419 return as_unsigned(bytes[0] << 24 | bytes[1] << 16 | bytes[2] << 8 | bytes[3], 32);
11503 10420 }
11504 -1 var currentDomain = options.currentDomain, _options$maxLength = options.maxLength, maxLength = _options$maxLength === void 0 ? 25 : _options$maxLength;
11505 -1 var _uriParser = uriParser(uri), path = _uriParser.path, domain = _uriParser.domain, hash = _uriParser.hash;
11506 -1 var pathEnd = path.substr(path.substr(0, path.length - 2).lastIndexOf('/') + 1);
11507 -1 if (hash) {
11508 -1 if (pathEnd && (pathEnd + hash).length <= maxLength) {
11509 -1 return trimRight(pathEnd + hash);
11510 -1 } else if (pathEnd.length < 2 && hash.length > 2 && hash.length <= maxLength) {
11511 -1 return trimRight(hash);
11512 -1 } else {
11513 -1 return;
11514 -1 }
11515 -1 } else if (domain && domain.length < maxLength && path.length <= 1) {
11516 -1 return trimRight(domain + path);
11517 -1 }
11518 -1 if (path === '/' + pathEnd && domain && currentDomain && domain !== currentDomain && (domain + path).length <= maxLength) {
11519 -1 return trimRight(domain + path);
11520 -1 }
11521 -1 var lastDotIndex = pathEnd.lastIndexOf('.');
11522 -1 if ((lastDotIndex === -1 || lastDotIndex > 1) && (lastDotIndex !== -1 || pathEnd.length > 2) && pathEnd.length <= maxLength && !pathEnd.match(/index(\.[a-zA-Z]{2-4})?/) && !isMostlyNumbers(pathEnd)) {
11523 -1 return trimRight(pathEnd);
11524 -1 }
11525 -1 }
11526 -1 var get_friendly_uri_end_default = getFriendlyUriEnd;
11527 -1 function getNodeAttributes(node) {
11528 -1 if (node.attributes instanceof window.NamedNodeMap) {
11529 -1 return node.attributes;
11530 -1 }
11531 -1 return node.cloneNode(false).attributes;
11532 -1 }
11533 -1 var get_node_attributes_default = getNodeAttributes;
11534 -1 var matchesSelector = function() {
11535 -1 var method;
11536 -1 function getMethod(node) {
11537 -1 var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;
11538 -1 for (index = 0; index < length; index++) {
11539 -1 candidate = candidates[index];
11540 -1 if (node[candidate]) {
11541 -1 return candidate;
-1 10421 function packIEEE754(v, ebits, fbits) {
-1 10422 var bias = (1 << ebits - 1) - 1;
-1 10423 var s, e, f, i, bits, str, bytes;
-1 10424 function roundToEven(n2) {
-1 10425 var w = floor(n2);
-1 10426 var fl = n2 - w;
-1 10427 if (fl < .5) {
-1 10428 return w;
11542 10429 }
-1 10430 if (fl > .5) {
-1 10431 return w + 1;
-1 10432 }
-1 10433 return w % 2 ? w + 1 : w;
11543 10434 }
11544 -1 }
11545 -1 return function(node, selector) {
11546 -1 if (!method || !node[method]) {
11547 -1 method = getMethod(node);
11548 -1 }
11549 -1 if (node[method]) {
11550 -1 return node[method](selector);
11551 -1 }
11552 -1 return false;
11553 -1 };
11554 -1 }();
11555 -1 var element_matches_default = matchesSelector;
11556 -1 function isXHTML(doc) {
11557 -1 if (!doc.createElement) {
11558 -1 return false;
11559 -1 }
11560 -1 return doc.createElement('A').localName === 'A';
11561 -1 }
11562 -1 var is_xhtml_default = isXHTML;
11563 -1 function getShadowSelector(generateSelector2, elm) {
11564 -1 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11565 -1 if (!elm) {
11566 -1 return '';
11567 -1 }
11568 -1 var doc = elm.getRootNode && elm.getRootNode() || document;
11569 -1 if (doc.nodeType !== 11) {
11570 -1 return generateSelector2(elm, options, doc);
11571 -1 }
11572 -1 var stack = [];
11573 -1 while (doc.nodeType === 11) {
11574 -1 if (!doc.host) {
11575 -1 return '';
11576 -1 }
11577 -1 stack.unshift({
11578 -1 elm: elm,
11579 -1 doc: doc
11580 -1 });
11581 -1 elm = doc.host;
11582 -1 doc = elm.getRootNode();
11583 -1 }
11584 -1 stack.unshift({
11585 -1 elm: elm,
11586 -1 doc: doc
11587 -1 });
11588 -1 return stack.map(function(_ref) {
11589 -1 var elm2 = _ref.elm, doc2 = _ref.doc;
11590 -1 return generateSelector2(elm2, options, doc2);
11591 -1 });
11592 -1 }
11593 -1 var get_shadow_selector_default = getShadowSelector;
11594 -1 var xhtml;
11595 -1 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];
11596 -1 var MAXATTRIBUTELENGTH = 31;
11597 -1 var attrCharsRegex = /([\\"])/g;
11598 -1 var newlineChars = /(\r\n|\r|\n)/g;
11599 -1 function escapeAttribute(str) {
11600 -1 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a ');
11601 -1 }
11602 -1 function getAttributeNameValue(node, at) {
11603 -1 var name = at.name;
11604 -1 var atnv;
11605 -1 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {
11606 -1 var friendly = get_friendly_uri_end_default(node.getAttribute(name));
11607 -1 if (friendly) {
11608 -1 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"';
-1 10435 if (v !== v) {
-1 10436 e = (1 << ebits) - 1;
-1 10437 f = pow(2, fbits - 1);
-1 10438 s = 0;
-1 10439 } else if (v === Infinity || v === -Infinity) {
-1 10440 e = (1 << ebits) - 1;
-1 10441 f = 0;
-1 10442 s = v < 0 ? 1 : 0;
-1 10443 } else if (v === 0) {
-1 10444 e = 0;
-1 10445 f = 0;
-1 10446 s = 1 / v === -Infinity ? 1 : 0;
11609 10447 } else {
11610 -1 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"';
11611 -1 }
11612 -1 } else {
11613 -1 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"';
11614 -1 }
11615 -1 return atnv;
11616 -1 }
11617 -1 function countSort(a, b) {
11618 -1 return a.count < b.count ? -1 : a.count === b.count ? 0 : 1;
11619 -1 }
11620 -1 function filterAttributes(at) {
11621 -1 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);
11622 -1 }
11623 -1 function _getSelectorData(domTree) {
11624 -1 var data2 = {
11625 -1 classes: {},
11626 -1 tags: {},
11627 -1 attributes: {}
11628 -1 };
11629 -1 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
11630 -1 var currentLevel = domTree.slice();
11631 -1 var stack = [];
11632 -1 var _loop2 = function _loop2() {
11633 -1 var current = currentLevel.pop();
11634 -1 var node = current.actualNode;
11635 -1 if (!!node.querySelectorAll) {
11636 -1 var tag = node.nodeName;
11637 -1 if (data2.tags[tag]) {
11638 -1 data2.tags[tag]++;
-1 10448 s = v < 0;
-1 10449 v = abs(v);
-1 10450 if (v >= pow(2, 1 - bias)) {
-1 10451 e = min(floor(log2(v) / LN2), 1023);
-1 10452 f = roundToEven(v / pow(2, e) * pow(2, fbits));
-1 10453 if (f / pow(2, fbits) >= 2) {
-1 10454 e = e + 1;
-1 10455 f = 1;
-1 10456 }
-1 10457 if (e > bias) {
-1 10458 e = (1 << ebits) - 1;
-1 10459 f = 0;
-1 10460 } else {
-1 10461 e = e + bias;
-1 10462 f = f - pow(2, fbits);
-1 10463 }
11639 10464 } else {
11640 -1 data2.tags[tag] = 1;
11641 -1 }
11642 -1 if (node.classList) {
11643 -1 Array.from(node.classList).forEach(function(cl) {
11644 -1 var ind = escape_selector_default(cl);
11645 -1 if (data2.classes[ind]) {
11646 -1 data2.classes[ind]++;
11647 -1 } else {
11648 -1 data2.classes[ind] = 1;
11649 -1 }
11650 -1 });
11651 -1 }
11652 -1 if (node.hasAttributes()) {
11653 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
11654 -1 var atnv = getAttributeNameValue(node, at);
11655 -1 if (atnv) {
11656 -1 if (data2.attributes[atnv]) {
11657 -1 data2.attributes[atnv]++;
11658 -1 } else {
11659 -1 data2.attributes[atnv] = 1;
11660 -1 }
11661 -1 }
11662 -1 });
-1 10465 e = 0;
-1 10466 f = roundToEven(v / pow(2, 1 - bias - fbits));
11663 10467 }
11664 10468 }
11665 -1 if (current.children.length) {
11666 -1 stack.push(currentLevel);
11667 -1 currentLevel = current.children.slice();
-1 10469 bits = [];
-1 10470 for (i = fbits; i; i -= 1) {
-1 10471 bits.push(f % 2 ? 1 : 0);
-1 10472 f = floor(f / 2);
11668 10473 }
11669 -1 while (!currentLevel.length && stack.length) {
11670 -1 currentLevel = stack.pop();
-1 10474 for (i = ebits; i; i -= 1) {
-1 10475 bits.push(e % 2 ? 1 : 0);
-1 10476 e = floor(e / 2);
11671 10477 }
11672 -1 };
11673 -1 while (currentLevel.length) {
11674 -1 _loop2();
-1 10478 bits.push(s ? 1 : 0);
-1 10479 bits.reverse();
-1 10480 str = bits.join('');
-1 10481 bytes = [];
-1 10482 while (str.length) {
-1 10483 bytes.push(parseInt(str.substring(0, 8), 2));
-1 10484 str = str.substring(8);
-1 10485 }
-1 10486 return bytes;
11675 10487 }
11676 -1 return data2;
11677 -1 }
11678 -1 function uncommonClasses(node, selectorData) {
11679 -1 var retVal = [];
11680 -1 var classData = selectorData.classes;
11681 -1 var tagData = selectorData.tags;
11682 -1 if (node.classList) {
11683 -1 Array.from(node.classList).forEach(function(cl) {
11684 -1 var ind = escape_selector_default(cl);
11685 -1 if (classData[ind] < tagData[node.nodeName]) {
11686 -1 retVal.push({
11687 -1 name: ind,
11688 -1 count: classData[ind],
11689 -1 species: 'class'
11690 -1 });
-1 10488 function unpackIEEE754(bytes, ebits, fbits) {
-1 10489 var bits = [], i, j, b2, str, bias, s, e, f;
-1 10490 for (i = bytes.length; i; i -= 1) {
-1 10491 b2 = bytes[i - 1];
-1 10492 for (j = 8; j; j -= 1) {
-1 10493 bits.push(b2 % 2 ? 1 : 0);
-1 10494 b2 = b2 >> 1;
11691 10495 }
11692 -1 });
-1 10496 }
-1 10497 bits.reverse();
-1 10498 str = bits.join('');
-1 10499 bias = (1 << ebits - 1) - 1;
-1 10500 s = parseInt(str.substring(0, 1), 2) ? -1 : 1;
-1 10501 e = parseInt(str.substring(1, 1 + ebits), 2);
-1 10502 f = parseInt(str.substring(1 + ebits), 2);
-1 10503 if (e === (1 << ebits) - 1) {
-1 10504 return f === 0 ? s * Infinity : NaN;
-1 10505 } else if (e > 0) {
-1 10506 return s * pow(2, e - bias) * (1 + f / pow(2, fbits));
-1 10507 } else if (f !== 0) {
-1 10508 return s * pow(2, -(bias - 1)) * (f / pow(2, fbits));
-1 10509 }
-1 10510 return s < 0 ? -0 : 0;
11693 10511 }
11694 -1 return retVal.sort(countSort);
11695 -1 }
11696 -1 function getNthChildString(elm, selector) {
11697 -1 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];
11698 -1 var hasMatchingSiblings = siblings.find(function(sibling) {
11699 -1 return sibling !== elm && element_matches_default(sibling, selector);
11700 -1 });
11701 -1 if (hasMatchingSiblings) {
11702 -1 var nthChild = 1 + siblings.indexOf(elm);
11703 -1 return ':nth-child(' + nthChild + ')';
11704 -1 } else {
11705 -1 return '';
-1 10512 function unpackF64(b2) {
-1 10513 return unpackIEEE754(b2, 11, 52);
11706 10514 }
11707 -1 }
11708 -1 function getElmId(elm) {
11709 -1 if (!elm.getAttribute('id')) {
11710 -1 return;
-1 10515 function packF64(v) {
-1 10516 return packIEEE754(v, 11, 52);
11711 10517 }
11712 -1 var doc = elm.getRootNode && elm.getRootNode() || document;
11713 -1 var id = '#' + escape_selector_default(elm.getAttribute('id') || '');
11714 -1 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {
11715 -1 return id;
-1 10518 function unpackF32(b2) {
-1 10519 return unpackIEEE754(b2, 8, 23);
11716 10520 }
11717 -1 }
11718 -1 function getBaseSelector(elm) {
11719 -1 if (typeof xhtml === 'undefined') {
11720 -1 xhtml = is_xhtml_default(document);
-1 10521 function packF32(v) {
-1 10522 return packIEEE754(v, 8, 23);
11721 10523 }
11722 -1 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());
11723 -1 }
11724 -1 function uncommonAttributes(node, selectorData) {
11725 -1 var retVal = [];
11726 -1 var attData = selectorData.attributes;
11727 -1 var tagData = selectorData.tags;
11728 -1 if (node.hasAttributes()) {
11729 -1 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
11730 -1 var atnv = getAttributeNameValue(node, at);
11731 -1 if (atnv && attData[atnv] < tagData[node.nodeName]) {
11732 -1 retVal.push({
11733 -1 name: atnv,
11734 -1 count: attData[atnv],
11735 -1 species: 'attribute'
11736 -1 });
-1 10524 (function() {
-1 10525 function ArrayBuffer(length) {
-1 10526 length = ECMAScript.ToInt32(length);
-1 10527 if (length < 0) {
-1 10528 throw new RangeError('ArrayBuffer size is not a small enough positive integer');
11737 10529 }
11738 -1 });
11739 -1 }
11740 -1 return retVal.sort(countSort);
11741 -1 }
11742 -1 function getThreeLeastCommonFeatures(elm, selectorData) {
11743 -1 var selector = '';
11744 -1 var features;
11745 -1 var clss = uncommonClasses(elm, selectorData);
11746 -1 var atts = uncommonAttributes(elm, selectorData);
11747 -1 if (clss.length && clss[0].count === 1) {
11748 -1 features = [ clss[0] ];
11749 -1 } else if (atts.length && atts[0].count === 1) {
11750 -1 features = [ atts[0] ];
11751 -1 selector = getBaseSelector(elm);
11752 -1 } else {
11753 -1 features = clss.concat(atts);
11754 -1 features.sort(countSort);
11755 -1 features = features.slice(0, 3);
11756 -1 if (!features.some(function(feat) {
11757 -1 return feat.species === 'class';
11758 -1 })) {
11759 -1 selector = getBaseSelector(elm);
11760 -1 } else {
11761 -1 features.sort(function(a, b) {
11762 -1 return a.species !== b.species && a.species === 'class' ? -1 : a.species === b.species ? 0 : 1;
11763 -1 });
11764 -1 }
11765 -1 }
11766 -1 return selector += features.reduce(function(val, feat) {
11767 -1 switch (feat.species) {
11768 -1 case 'class':
11769 -1 return val + '.' + feat.name;
11770 -1
11771 -1 case 'attribute':
11772 -1 return val + '[' + feat.name + ']';
11773 -1 }
11774 -1 return val;
11775 -1 }, '');
11776 -1 }
11777 -1 function generateSelector(elm, options, doc) {
11778 -1 if (!axe._selectorData) {
11779 -1 throw new Error('Expect axe._selectorData to be set up');
11780 -1 }
11781 -1 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;
11782 -1 var selector;
11783 -1 var similar;
11784 -1 do {
11785 -1 var features = getElmId(elm);
11786 -1 if (!features) {
11787 -1 features = getThreeLeastCommonFeatures(elm, axe._selectorData);
11788 -1 features += getNthChildString(elm, features);
-1 10530 this.byteLength = length;
-1 10531 this._bytes = [];
-1 10532 this._bytes.length = length;
-1 10533 var i;
-1 10534 for (i = 0; i < this.byteLength; i += 1) {
-1 10535 this._bytes[i] = 0;
-1 10536 }
-1 10537 configureProperties(this);
11789 10538 }
11790 -1 if (selector) {
11791 -1 selector = features + ' > ' + selector;
11792 -1 } else {
11793 -1 selector = features;
-1 10539 exports.ArrayBuffer = exports.ArrayBuffer || ArrayBuffer;
-1 10540 function ArrayBufferView() {}
-1 10541 function makeConstructor(bytesPerElement, pack, unpack) {
-1 10542 var _ctor;
-1 10543 _ctor = function ctor(buffer, byteOffset, length) {
-1 10544 var array, sequence, i, s;
-1 10545 if (!arguments.length || typeof arguments[0] === 'number') {
-1 10546 this.length = ECMAScript.ToInt32(arguments[0]);
-1 10547 if (length < 0) {
-1 10548 throw new RangeError('ArrayBufferView size is not a small enough positive integer');
-1 10549 }
-1 10550 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
-1 10551 this.buffer = new ArrayBuffer(this.byteLength);
-1 10552 this.byteOffset = 0;
-1 10553 } else if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === _ctor) {
-1 10554 array = arguments[0];
-1 10555 this.length = array.length;
-1 10556 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
-1 10557 this.buffer = new ArrayBuffer(this.byteLength);
-1 10558 this.byteOffset = 0;
-1 10559 for (i = 0; i < this.length; i += 1) {
-1 10560 this._setter(i, array._getter(i));
-1 10561 }
-1 10562 } else if (_typeof(arguments[0]) === 'object' && !(arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {
-1 10563 sequence = arguments[0];
-1 10564 this.length = ECMAScript.ToUint32(sequence.length);
-1 10565 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
-1 10566 this.buffer = new ArrayBuffer(this.byteLength);
-1 10567 this.byteOffset = 0;
-1 10568 for (i = 0; i < this.length; i += 1) {
-1 10569 s = sequence[i];
-1 10570 this._setter(i, Number(s));
-1 10571 }
-1 10572 } else if (_typeof(arguments[0]) === 'object' && (arguments[0] instanceof ArrayBuffer || ECMAScript.Class(arguments[0]) === 'ArrayBuffer')) {
-1 10573 this.buffer = buffer;
-1 10574 this.byteOffset = ECMAScript.ToUint32(byteOffset);
-1 10575 if (this.byteOffset > this.buffer.byteLength) {
-1 10576 throw new RangeError('byteOffset out of range');
-1 10577 }
-1 10578 if (this.byteOffset % this.BYTES_PER_ELEMENT) {
-1 10579 throw new RangeError('ArrayBuffer length minus the byteOffset is not a multiple of the element size.');
-1 10580 }
-1 10581 if (arguments.length < 3) {
-1 10582 this.byteLength = this.buffer.byteLength - this.byteOffset;
-1 10583 if (this.byteLength % this.BYTES_PER_ELEMENT) {
-1 10584 throw new RangeError('length of buffer minus byteOffset not a multiple of the element size');
-1 10585 }
-1 10586 this.length = this.byteLength / this.BYTES_PER_ELEMENT;
-1 10587 } else {
-1 10588 this.length = ECMAScript.ToUint32(length);
-1 10589 this.byteLength = this.length * this.BYTES_PER_ELEMENT;
-1 10590 }
-1 10591 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {
-1 10592 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');
-1 10593 }
-1 10594 } else {
-1 10595 throw new TypeError('Unexpected argument type(s)');
-1 10596 }
-1 10597 this.constructor = _ctor;
-1 10598 configureProperties(this);
-1 10599 makeArrayAccessors(this);
-1 10600 };
-1 10601 _ctor.prototype = new ArrayBufferView();
-1 10602 _ctor.prototype.BYTES_PER_ELEMENT = bytesPerElement;
-1 10603 _ctor.prototype._pack = pack;
-1 10604 _ctor.prototype._unpack = unpack;
-1 10605 _ctor.BYTES_PER_ELEMENT = bytesPerElement;
-1 10606 _ctor.prototype._getter = function(index) {
-1 10607 if (arguments.length < 1) {
-1 10608 throw new SyntaxError('Not enough arguments');
-1 10609 }
-1 10610 index = ECMAScript.ToUint32(index);
-1 10611 if (index >= this.length) {
-1 10612 return void 0;
-1 10613 }
-1 10614 var bytes = [];
-1 10615 for (var i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,
-1 10616 o += 1) {
-1 10617 bytes.push(this.buffer._bytes[o]);
-1 10618 }
-1 10619 return this._unpack(bytes);
-1 10620 };
-1 10621 _ctor.prototype.get = _ctor.prototype._getter;
-1 10622 _ctor.prototype._setter = function(index, value) {
-1 10623 if (arguments.length < 2) {
-1 10624 throw new SyntaxError('Not enough arguments');
-1 10625 }
-1 10626 index = ECMAScript.ToUint32(index);
-1 10627 if (index < this.length) {
-1 10628 var bytes = this._pack(value);
-1 10629 var i;
-1 10630 var o;
-1 10631 for (i = 0, o = this.byteOffset + index * this.BYTES_PER_ELEMENT; i < this.BYTES_PER_ELEMENT; i += 1,
-1 10632 o += 1) {
-1 10633 this.buffer._bytes[o] = bytes[i];
-1 10634 }
-1 10635 }
-1 10636 };
-1 10637 _ctor.prototype.set = function(index, value) {
-1 10638 if (arguments.length < 1) {
-1 10639 throw new SyntaxError('Not enough arguments');
-1 10640 }
-1 10641 var array, sequence, offset, len, i, s, d2, byteOffset, byteLength, tmp;
-1 10642 if (_typeof(arguments[0]) === 'object' && arguments[0].constructor === this.constructor) {
-1 10643 array = arguments[0];
-1 10644 offset = ECMAScript.ToUint32(arguments[1]);
-1 10645 if (offset + array.length > this.length) {
-1 10646 throw new RangeError('Offset plus length of array is out of range');
-1 10647 }
-1 10648 byteOffset = this.byteOffset + offset * this.BYTES_PER_ELEMENT;
-1 10649 byteLength = array.length * this.BYTES_PER_ELEMENT;
-1 10650 if (array.buffer === this.buffer) {
-1 10651 tmp = [];
-1 10652 for (i = 0, s = array.byteOffset; i < byteLength; i += 1, s += 1) {
-1 10653 tmp[i] = array.buffer._bytes[s];
-1 10654 }
-1 10655 for (i = 0, d2 = byteOffset; i < byteLength; i += 1, d2 += 1) {
-1 10656 this.buffer._bytes[d2] = tmp[i];
-1 10657 }
-1 10658 } else {
-1 10659 for (i = 0, s = array.byteOffset, d2 = byteOffset; i < byteLength; i += 1,
-1 10660 s += 1, d2 += 1) {
-1 10661 this.buffer._bytes[d2] = array.buffer._bytes[s];
-1 10662 }
-1 10663 }
-1 10664 } else if (_typeof(arguments[0]) === 'object' && typeof arguments[0].length !== 'undefined') {
-1 10665 sequence = arguments[0];
-1 10666 len = ECMAScript.ToUint32(sequence.length);
-1 10667 offset = ECMAScript.ToUint32(arguments[1]);
-1 10668 if (offset + len > this.length) {
-1 10669 throw new RangeError('Offset plus length of array is out of range');
-1 10670 }
-1 10671 for (i = 0; i < len; i += 1) {
-1 10672 s = sequence[i];
-1 10673 this._setter(offset + i, Number(s));
-1 10674 }
-1 10675 } else {
-1 10676 throw new TypeError('Unexpected argument type(s)');
-1 10677 }
-1 10678 };
-1 10679 _ctor.prototype.subarray = function(start, end) {
-1 10680 start = ECMAScript.ToInt32(start);
-1 10681 end = ECMAScript.ToInt32(end);
-1 10682 if (arguments.length < 1) {
-1 10683 start = 0;
-1 10684 }
-1 10685 if (arguments.length < 2) {
-1 10686 end = this.length;
-1 10687 }
-1 10688 if (start < 0) {
-1 10689 start = this.length + start;
-1 10690 }
-1 10691 if (end < 0) {
-1 10692 end = this.length + end;
-1 10693 }
-1 10694 start = clamp3(start, 0, this.length);
-1 10695 end = clamp3(end, 0, this.length);
-1 10696 var len = end - start;
-1 10697 if (len < 0) {
-1 10698 len = 0;
-1 10699 }
-1 10700 return new this.constructor(this.buffer, this.byteOffset + start * this.BYTES_PER_ELEMENT, len);
-1 10701 };
-1 10702 return _ctor;
11794 10703 }
11795 -1 if (!similar) {
11796 -1 similar = Array.from(doc.querySelectorAll(selector));
11797 -1 } else {
11798 -1 similar = similar.filter(function(item) {
11799 -1 return element_matches_default(item, selector);
11800 -1 });
-1 10704 var Int8Array = makeConstructor(1, packI8, unpackI8);
-1 10705 var Uint8Array2 = makeConstructor(1, packU8, unpackU8);
-1 10706 var Uint8ClampedArray2 = makeConstructor(1, packU8Clamped, unpackU8);
-1 10707 var Int16Array = makeConstructor(2, packI16, unpackI16);
-1 10708 var Uint16Array = makeConstructor(2, packU16, unpackU16);
-1 10709 var Int32Array = makeConstructor(4, packI32, unpackI32);
-1 10710 var Uint32Array3 = makeConstructor(4, packU32, unpackU32);
-1 10711 var Float32Array = makeConstructor(4, packF32, unpackF32);
-1 10712 var Float64Array = makeConstructor(8, packF64, unpackF64);
-1 10713 exports.Int8Array = exports.Int8Array || Int8Array;
-1 10714 exports.Uint8Array = exports.Uint8Array || Uint8Array2;
-1 10715 exports.Uint8ClampedArray = exports.Uint8ClampedArray || Uint8ClampedArray2;
-1 10716 exports.Int16Array = exports.Int16Array || Int16Array;
-1 10717 exports.Uint16Array = exports.Uint16Array || Uint16Array;
-1 10718 exports.Int32Array = exports.Int32Array || Int32Array;
-1 10719 exports.Uint32Array = exports.Uint32Array || Uint32Array3;
-1 10720 exports.Float32Array = exports.Float32Array || Float32Array;
-1 10721 exports.Float64Array = exports.Float64Array || Float64Array;
-1 10722 })();
-1 10723 (function() {
-1 10724 function r(array, index) {
-1 10725 return ECMAScript.IsCallable(array.get) ? array.get(index) : array[index];
11801 10726 }
11802 -1 elm = elm.parentElement;
11803 -1 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);
11804 -1 if (similar.length === 1) {
11805 -1 return selector;
11806 -1 } else if (selector.indexOf(' > ') !== -1) {
11807 -1 return ':root' + selector.substring(selector.indexOf(' > '));
11808 -1 }
11809 -1 return ':root';
11810 -1 }
11811 -1 function _getSelector(elm, options) {
11812 -1 return get_shadow_selector_default(generateSelector, elm, options);
11813 -1 }
11814 -1 function generateAncestry(node) {
11815 -1 var nodeName2 = node.nodeName.toLowerCase();
11816 -1 var parent = node.parentElement;
11817 -1 if (!parent) {
11818 -1 return nodeName2;
11819 -1 }
11820 -1 var nthChild = '';
11821 -1 if (nodeName2 !== 'head' && nodeName2 !== 'body' && parent.children.length > 1) {
11822 -1 var index = Array.prototype.indexOf.call(parent.children, node) + 1;
11823 -1 nthChild = ':nth-child('.concat(index, ')');
11824 -1 }
11825 -1 return generateAncestry(parent) + ' > ' + nodeName2 + nthChild;
11826 -1 }
11827 -1 function _getAncestry(elm, options) {
11828 -1 return get_shadow_selector_default(generateAncestry, elm, options);
11829 -1 }
11830 -1 function getXPathArray(node, path) {
11831 -1 var sibling, count;
11832 -1 if (!node) {
11833 -1 return [];
11834 -1 }
11835 -1 if (!path && node.nodeType === 9) {
11836 -1 path = [ {
11837 -1 str: 'html'
11838 -1 } ];
11839 -1 return path;
11840 -1 }
11841 -1 path = path || [];
11842 -1 if (node.parentNode && node.parentNode !== node) {
11843 -1 path = getXPathArray(node.parentNode, path);
11844 -1 }
11845 -1 if (node.previousSibling) {
11846 -1 count = 1;
11847 -1 sibling = node.previousSibling;
11848 -1 do {
11849 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
11850 -1 count++;
-1 10727 var IS_BIG_ENDIAN = function() {
-1 10728 var u16array = new exports.Uint16Array([ 4660 ]), u8array = new exports.Uint8Array(u16array.buffer);
-1 10729 return r(u8array, 0) === 18;
-1 10730 }();
-1 10731 function DataView(buffer, byteOffset, byteLength) {
-1 10732 if (arguments.length === 0) {
-1 10733 buffer = new exports.ArrayBuffer(0);
-1 10734 } else if (!(buffer instanceof exports.ArrayBuffer || ECMAScript.Class(buffer) === 'ArrayBuffer')) {
-1 10735 throw new TypeError('TypeError');
11851 10736 }
11852 -1 sibling = sibling.previousSibling;
11853 -1 } while (sibling);
11854 -1 if (count === 1) {
11855 -1 count = null;
11856 -1 }
11857 -1 } else if (node.nextSibling) {
11858 -1 sibling = node.nextSibling;
11859 -1 do {
11860 -1 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
11861 -1 count = 1;
11862 -1 sibling = null;
-1 10737 this.buffer = buffer || new exports.ArrayBuffer(0);
-1 10738 this.byteOffset = ECMAScript.ToUint32(byteOffset);
-1 10739 if (this.byteOffset > this.buffer.byteLength) {
-1 10740 throw new RangeError('byteOffset out of range');
-1 10741 }
-1 10742 if (arguments.length < 3) {
-1 10743 this.byteLength = this.buffer.byteLength - this.byteOffset;
11863 10744 } else {
11864 -1 count = null;
11865 -1 sibling = sibling.previousSibling;
-1 10745 this.byteLength = ECMAScript.ToUint32(byteLength);
11866 10746 }
11867 -1 } while (sibling);
11868 -1 }
11869 -1 if (node.nodeType === 1) {
11870 -1 var element = {};
11871 -1 element.str = node.nodeName.toLowerCase();
11872 -1 var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));
11873 -1 if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {
11874 -1 element.id = node.getAttribute('id');
11875 -1 }
11876 -1 if (count > 1) {
11877 -1 element.count = count;
-1 10747 if (this.byteOffset + this.byteLength > this.buffer.byteLength) {
-1 10748 throw new RangeError('byteOffset and length reference an area beyond the end of the buffer');
-1 10749 }
-1 10750 configureProperties(this);
11878 10751 }
11879 -1 path.push(element);
11880 -1 }
11881 -1 return path;
11882 -1 }
11883 -1 function xpathToString(xpathArray) {
11884 -1 return xpathArray.reduce(function(str, elm) {
11885 -1 if (elm.id) {
11886 -1 return '/'.concat(elm.str, '[@id=\'').concat(elm.id, '\']');
11887 -1 } else {
11888 -1 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');
-1 10752 function makeGetter(arrayType) {
-1 10753 return function(byteOffset, littleEndian) {
-1 10754 byteOffset = ECMAScript.ToUint32(byteOffset);
-1 10755 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {
-1 10756 throw new RangeError('Array index out of range');
-1 10757 }
-1 10758 byteOffset += this.byteOffset;
-1 10759 var uint8Array = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT), bytes = [], i;
-1 10760 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {
-1 10761 bytes.push(r(uint8Array, i));
-1 10762 }
-1 10763 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {
-1 10764 bytes.reverse();
-1 10765 }
-1 10766 return r(new arrayType(new exports.Uint8Array(bytes).buffer), 0);
-1 10767 };
11889 10768 }
11890 -1 }, '');
11891 -1 }
11892 -1 function getXpath(node) {
11893 -1 var xpathArray = getXPathArray(node);
11894 -1 return xpathToString(xpathArray);
11895 -1 }
11896 -1 var get_xpath_default = getXpath;
11897 -1 var _cache = {};
11898 -1 var cache = {
11899 -1 set: function set(key, value) {
11900 -1 validateKey(key);
11901 -1 _cache[key] = value;
11902 -1 },
11903 -1 get: function get(key, creator) {
11904 -1 validateCreator(creator);
11905 -1 if (key in _cache) {
11906 -1 return _cache[key];
-1 10769 DataView.prototype.getUint8 = makeGetter(exports.Uint8Array);
-1 10770 DataView.prototype.getInt8 = makeGetter(exports.Int8Array);
-1 10771 DataView.prototype.getUint16 = makeGetter(exports.Uint16Array);
-1 10772 DataView.prototype.getInt16 = makeGetter(exports.Int16Array);
-1 10773 DataView.prototype.getUint32 = makeGetter(exports.Uint32Array);
-1 10774 DataView.prototype.getInt32 = makeGetter(exports.Int32Array);
-1 10775 DataView.prototype.getFloat32 = makeGetter(exports.Float32Array);
-1 10776 DataView.prototype.getFloat64 = makeGetter(exports.Float64Array);
-1 10777 function makeSetter(arrayType) {
-1 10778 return function(byteOffset, value, littleEndian) {
-1 10779 byteOffset = ECMAScript.ToUint32(byteOffset);
-1 10780 if (byteOffset + arrayType.BYTES_PER_ELEMENT > this.byteLength) {
-1 10781 throw new RangeError('Array index out of range');
-1 10782 }
-1 10783 var typeArray = new arrayType([ value ]), byteArray = new exports.Uint8Array(typeArray.buffer), bytes = [], i, byteView;
-1 10784 for (i = 0; i < arrayType.BYTES_PER_ELEMENT; i += 1) {
-1 10785 bytes.push(r(byteArray, i));
-1 10786 }
-1 10787 if (Boolean(littleEndian) === Boolean(IS_BIG_ENDIAN)) {
-1 10788 bytes.reverse();
-1 10789 }
-1 10790 byteView = new exports.Uint8Array(this.buffer, byteOffset, arrayType.BYTES_PER_ELEMENT);
-1 10791 byteView.set(bytes);
-1 10792 };
11907 10793 }
11908 -1 if (typeof creator === 'function') {
11909 -1 var value = creator();
11910 -1 assert_default(value !== void 0, 'Cache creator function should not return undefined');
11911 -1 this.set(key, value);
11912 -1 return _cache[key];
-1 10794 DataView.prototype.setUint8 = makeSetter(exports.Uint8Array);
-1 10795 DataView.prototype.setInt8 = makeSetter(exports.Int8Array);
-1 10796 DataView.prototype.setUint16 = makeSetter(exports.Uint16Array);
-1 10797 DataView.prototype.setInt16 = makeSetter(exports.Int16Array);
-1 10798 DataView.prototype.setUint32 = makeSetter(exports.Uint32Array);
-1 10799 DataView.prototype.setInt32 = makeSetter(exports.Int32Array);
-1 10800 DataView.prototype.setFloat32 = makeSetter(exports.Float32Array);
-1 10801 DataView.prototype.setFloat64 = makeSetter(exports.Float64Array);
-1 10802 exports.DataView = exports.DataView || DataView;
-1 10803 })();
-1 10804 });
-1 10805 var require_weakmap_polyfill = __commonJS(function(exports) {
-1 10806 (function(self2) {
-1 10807 'use strict';
-1 10808 if (self2.WeakMap) {
-1 10809 return;
11913 10810 }
11914 -1 },
11915 -1 clear: function clear() {
11916 -1 _cache = {};
11917 -1 }
11918 -1 };
11919 -1 function validateKey(key) {
11920 -1 assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given');
11921 -1 assert_default(key !== '', 'key must not be empty');
11922 -1 }
11923 -1 function validateCreator(creator) {
11924 -1 assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given');
11925 -1 }
11926 -1 var cache_default = cache;
11927 -1 function getNodeFromTree(vNode, node) {
11928 -1 var el = node || vNode;
11929 -1 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;
11930 -1 }
11931 -1 var get_node_from_tree_default = getNodeFromTree;
11932 -1 function truncate(str, maxLength) {
11933 -1 maxLength = maxLength || 300;
11934 -1 if (str.length > maxLength) {
11935 -1 var index = str.indexOf('>');
11936 -1 str = str.substring(0, index + 1);
11937 -1 }
11938 -1 return str;
11939 -1 }
11940 -1 function getSource(element) {
11941 -1 if (!(element !== null && element !== void 0 && element.outerHTML)) {
11942 -1 return '';
11943 -1 }
11944 -1 var source = element.outerHTML;
11945 -1 if (!source && typeof window.XMLSerializer === 'function') {
11946 -1 source = new window.XMLSerializer().serializeToString(element);
11947 -1 }
11948 -1 return truncate(source || '');
11949 -1 }
11950 -1 function DqElement(elm) {
11951 -1 var _this$spec$selector, _this$_virtualNode;
11952 -1 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
11953 -1 var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
11954 -1 this.spec = spec;
11955 -1 if (elm instanceof abstract_virtual_node_default) {
11956 -1 this._virtualNode = elm;
11957 -1 this._element = elm.actualNode;
11958 -1 } else {
11959 -1 this._element = elm;
11960 -1 this._virtualNode = get_node_from_tree_default(elm);
11961 -1 }
11962 -1 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;
11963 -1 if (options.absolutePaths) {
11964 -1 this._options = {
11965 -1 toRoot: true
-1 10811 var hasOwnProperty2 = Object.prototype.hasOwnProperty;
-1 10812 var hasDefine = Object.defineProperty && function() {
-1 10813 try {
-1 10814 return Object.defineProperty({}, 'x', {
-1 10815 value: 1
-1 10816 }).x === 1;
-1 10817 } catch (e) {}
-1 10818 }();
-1 10819 var defineProperty = function defineProperty(object, name, value) {
-1 10820 if (hasDefine) {
-1 10821 Object.defineProperty(object, name, {
-1 10822 configurable: true,
-1 10823 writable: true,
-1 10824 value: value
-1 10825 });
-1 10826 } else {
-1 10827 object[name] = value;
-1 10828 }
11966 10829 };
11967 -1 }
11968 -1 this.nodeIndexes = [];
11969 -1 if (Array.isArray(this.spec.nodeIndexes)) {
11970 -1 this.nodeIndexes = this.spec.nodeIndexes;
11971 -1 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {
11972 -1 this.nodeIndexes = [ this._virtualNode.nodeIndex ];
11973 -1 }
11974 -1 this.source = null;
11975 -1 if (!axe._audit.noHtml) {
11976 -1 var _this$spec$source;
11977 -1 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);
11978 -1 }
11979 -1 }
11980 -1 DqElement.prototype = {
11981 -1 get selector() {
11982 -1 return this.spec.selector || [ _getSelector(this.element, this._options) ];
11983 -1 },
11984 -1 get ancestry() {
11985 -1 return this.spec.ancestry || [ _getAncestry(this.element) ];
11986 -1 },
11987 -1 get xpath() {
11988 -1 return this.spec.xpath || [ get_xpath_default(this.element) ];
11989 -1 },
11990 -1 get element() {
11991 -1 return this._element;
11992 -1 },
11993 -1 toJSON: function toJSON() {
11994 -1 return {
11995 -1 selector: this.selector,
11996 -1 source: this.source,
11997 -1 xpath: this.xpath,
11998 -1 ancestry: this.ancestry,
11999 -1 nodeIndexes: this.nodeIndexes
12000 -1 };
12001 -1 }
12002 -1 };
12003 -1 DqElement.fromFrame = function fromFrame(node, options, frame) {
12004 -1 var spec = DqElement.mergeSpecs(node, frame);
12005 -1 return new DqElement(frame.element, options, spec);
12006 -1 };
12007 -1 DqElement.mergeSpecs = function mergeSpec(node, frame) {
12008 -1 return _extends({}, node, {
12009 -1 selector: [].concat(_toConsumableArray(frame.selector), _toConsumableArray(node.selector)),
12010 -1 ancestry: [].concat(_toConsumableArray(frame.ancestry), _toConsumableArray(node.ancestry)),
12011 -1 xpath: [].concat(_toConsumableArray(frame.xpath), _toConsumableArray(node.xpath)),
12012 -1 nodeIndexes: [].concat(_toConsumableArray(frame.nodeIndexes), _toConsumableArray(node.nodeIndexes))
12013 -1 });
12014 -1 };
12015 -1 var dq_element_default = DqElement;
12016 -1 function checkHelper(checkResult, options, resolve, reject) {
12017 -1 return {
12018 -1 isAsync: false,
12019 -1 async: function async() {
12020 -1 this.isAsync = true;
12021 -1 return function(result) {
12022 -1 if (result instanceof Error === false) {
12023 -1 checkResult.result = result;
12024 -1 resolve(checkResult);
12025 -1 } else {
12026 -1 reject(result);
-1 10830 self2.WeakMap = function() {
-1 10831 function WeakMap2() {
-1 10832 if (this === void 0) {
-1 10833 throw new TypeError('Constructor WeakMap requires \'new\'');
-1 10834 }
-1 10835 defineProperty(this, '_id', genId('_WeakMap'));
-1 10836 if (arguments.length > 0) {
-1 10837 throw new TypeError('WeakMap iterable is not supported');
12027 10838 }
12028 -1 };
12029 -1 },
12030 -1 data: function data(data2) {
12031 -1 checkResult.data = data2;
12032 -1 },
12033 -1 relatedNodes: function relatedNodes(nodes) {
12034 -1 if (!window.Node) {
12035 -1 return;
12036 -1 }
12037 -1 nodes = nodes instanceof window.Node ? [ nodes ] : to_array_default(nodes);
12038 -1 if (!nodes.every(function(node) {
12039 -1 return node instanceof window.Node || node.actualNode;
12040 -1 })) {
12041 -1 return;
12042 10839 }
12043 -1 checkResult.relatedNodes = nodes.map(function(element) {
12044 -1 return new dq_element_default(element, options);
-1 10840 defineProperty(WeakMap2.prototype, 'delete', function(key) {
-1 10841 checkInstance(this, 'delete');
-1 10842 if (!isObject(key)) {
-1 10843 return false;
-1 10844 }
-1 10845 var entry = key[this._id];
-1 10846 if (entry && entry[0] === key) {
-1 10847 delete key[this._id];
-1 10848 return true;
-1 10849 }
-1 10850 return false;
12045 10851 });
12046 -1 }
12047 -1 };
12048 -1 }
12049 -1 var check_helper_default = checkHelper;
12050 -1 function clone(obj) {
12051 -1 var _window, _window2;
12052 -1 var index, length, out = obj;
12053 -1 if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection) {
12054 -1 return obj;
12055 -1 }
12056 -1 if (obj !== null && _typeof(obj) === 'object') {
12057 -1 if (Array.isArray(obj)) {
12058 -1 out = [];
12059 -1 for (index = 0, length = obj.length; index < length; index++) {
12060 -1 out[index] = clone(obj[index]);
-1 10852 defineProperty(WeakMap2.prototype, 'get', function(key) {
-1 10853 checkInstance(this, 'get');
-1 10854 if (!isObject(key)) {
-1 10855 return void 0;
-1 10856 }
-1 10857 var entry = key[this._id];
-1 10858 if (entry && entry[0] === key) {
-1 10859 return entry[1];
-1 10860 }
-1 10861 return void 0;
-1 10862 });
-1 10863 defineProperty(WeakMap2.prototype, 'has', function(key) {
-1 10864 checkInstance(this, 'has');
-1 10865 if (!isObject(key)) {
-1 10866 return false;
-1 10867 }
-1 10868 var entry = key[this._id];
-1 10869 if (entry && entry[0] === key) {
-1 10870 return true;
-1 10871 }
-1 10872 return false;
-1 10873 });
-1 10874 defineProperty(WeakMap2.prototype, 'set', function(key, value) {
-1 10875 checkInstance(this, 'set');
-1 10876 if (!isObject(key)) {
-1 10877 throw new TypeError('Invalid value used as weak map key');
-1 10878 }
-1 10879 var entry = key[this._id];
-1 10880 if (entry && entry[0] === key) {
-1 10881 entry[1] = value;
-1 10882 return this;
-1 10883 }
-1 10884 defineProperty(key, this._id, [ key, value ]);
-1 10885 return this;
-1 10886 });
-1 10887 function checkInstance(x, methodName) {
-1 10888 if (!isObject(x) || !hasOwnProperty2.call(x, '_id')) {
-1 10889 throw new TypeError(methodName + ' method called on incompatible receiver ' + _typeof(x));
-1 10890 }
12061 10891 }
12062 -1 } else {
12063 -1 out = {};
12064 -1 for (index in obj) {
12065 -1 out[index] = clone(obj[index]);
-1 10892 function genId(prefix) {
-1 10893 return prefix + '_' + rand() + '.' + rand();
12066 10894 }
-1 10895 function rand() {
-1 10896 return Math.random().toString().substring(2);
-1 10897 }
-1 10898 defineProperty(WeakMap2, '_polyfill', true);
-1 10899 return WeakMap2;
-1 10900 }();
-1 10901 function isObject(x) {
-1 10902 return Object(x) === x;
12067 10903 }
12068 -1 }
12069 -1 return out;
12070 -1 }
12071 -1 var clone_default = clone;
12072 -1 var import_css_selector_parser = __toModule(require_lib());
12073 -1 var parser = new import_css_selector_parser.CssSelectorParser();
12074 -1 parser.registerSelectorPseudos('not');
12075 -1 parser.registerSelectorPseudos('is');
12076 -1 parser.registerNestingOperators('>');
12077 -1 parser.registerAttrEqualityMods('^', '$', '*', '~');
12078 -1 var css_parser_default = parser;
12079 -1 function matchesTag(vNode, exp) {
12080 -1 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);
12081 -1 }
12082 -1 function matchesClasses(vNode, exp) {
12083 -1 return !exp.classes || exp.classes.every(function(cl) {
12084 -1 return vNode.hasClass(cl.value);
-1 10904 })(typeof globalThis !== 'undefined' ? globalThis : typeof self !== 'undefined' ? self : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : exports);
-1 10905 });
-1 10906 var require_global = __commonJS(function(exports, module) {
-1 10907 var check = function check(it) {
-1 10908 return it && it.Math == Math && it;
-1 10909 };
-1 10910 module.exports = check((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) == 'object' && globalThis) || check((typeof window === 'undefined' ? 'undefined' : _typeof(window)) == 'object' && window) || check((typeof self === 'undefined' ? 'undefined' : _typeof(self)) == 'object' && self) || check((typeof global === 'undefined' ? 'undefined' : _typeof(global)) == 'object' && global) || function() {
-1 10911 return this;
-1 10912 }() || Function('return this')();
-1 10913 });
-1 10914 var require_fails = __commonJS(function(exports, module) {
-1 10915 module.exports = function(exec) {
-1 10916 try {
-1 10917 return !!exec();
-1 10918 } catch (error) {
-1 10919 return true;
-1 10920 }
-1 10921 };
-1 10922 });
-1 10923 var require_function_bind_native = __commonJS(function(exports, module) {
-1 10924 var fails = require_fails();
-1 10925 module.exports = !fails(function() {
-1 10926 var test = function() {}.bind();
-1 10927 return typeof test != 'function' || test.hasOwnProperty('prototype');
12085 10928 });
12086 -1 }
12087 -1 function matchesAttributes(vNode, exp) {
12088 -1 return !exp.attributes || exp.attributes.every(function(att) {
12089 -1 var nodeAtt = vNode.attr(att.key);
12090 -1 return nodeAtt !== null && att.test(nodeAtt);
-1 10929 });
-1 10930 var require_function_apply = __commonJS(function(exports, module) {
-1 10931 var NATIVE_BIND = require_function_bind_native();
-1 10932 var FunctionPrototype = Function.prototype;
-1 10933 var apply = FunctionPrototype.apply;
-1 10934 var call = FunctionPrototype.call;
-1 10935 module.exports = (typeof Reflect === 'undefined' ? 'undefined' : _typeof(Reflect)) == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function() {
-1 10936 return call.apply(apply, arguments);
12091 10937 });
12092 -1 }
12093 -1 function matchesId(vNode, exp) {
12094 -1 return !exp.id || vNode.props.id === exp.id;
12095 -1 }
12096 -1 function matchesPseudos(target, exp) {
12097 -1 if (!exp.pseudos || exp.pseudos.every(function(pseudo) {
12098 -1 if (pseudo.name === 'not') {
12099 -1 return !pseudo.expressions.some(function(expression) {
12100 -1 return _matchesExpression(target, expression);
12101 -1 });
12102 -1 } else if (pseudo.name === 'is') {
12103 -1 return pseudo.expressions.some(function(expression) {
12104 -1 return _matchesExpression(target, expression);
-1 10938 });
-1 10939 var require_function_uncurry_this = __commonJS(function(exports, module) {
-1 10940 var NATIVE_BIND = require_function_bind_native();
-1 10941 var FunctionPrototype = Function.prototype;
-1 10942 var call = FunctionPrototype.call;
-1 10943 var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
-1 10944 module.exports = NATIVE_BIND ? uncurryThisWithBind : function(fn) {
-1 10945 return function() {
-1 10946 return call.apply(fn, arguments);
-1 10947 };
-1 10948 };
-1 10949 });
-1 10950 var require_classof_raw = __commonJS(function(exports, module) {
-1 10951 var uncurryThis = require_function_uncurry_this();
-1 10952 var toString = uncurryThis({}.toString);
-1 10953 var stringSlice = uncurryThis(''.slice);
-1 10954 module.exports = function(it) {
-1 10955 return stringSlice(toString(it), 8, -1);
-1 10956 };
-1 10957 });
-1 10958 var require_function_uncurry_this_clause = __commonJS(function(exports, module) {
-1 10959 var classofRaw = require_classof_raw();
-1 10960 var uncurryThis = require_function_uncurry_this();
-1 10961 module.exports = function(fn) {
-1 10962 if (classofRaw(fn) === 'Function') {
-1 10963 return uncurryThis(fn);
-1 10964 }
-1 10965 };
-1 10966 });
-1 10967 var require_document_all = __commonJS(function(exports, module) {
-1 10968 var documentAll = (typeof document === 'undefined' ? 'undefined' : _typeof(document)) == 'object' && document.all;
-1 10969 var IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== void 0;
-1 10970 module.exports = {
-1 10971 all: documentAll,
-1 10972 IS_HTMLDDA: IS_HTMLDDA
-1 10973 };
-1 10974 });
-1 10975 var require_is_callable2 = __commonJS(function(exports, module) {
-1 10976 var $documentAll = require_document_all();
-1 10977 var documentAll = $documentAll.all;
-1 10978 module.exports = $documentAll.IS_HTMLDDA ? function(argument) {
-1 10979 return typeof argument == 'function' || argument === documentAll;
-1 10980 } : function(argument) {
-1 10981 return typeof argument == 'function';
-1 10982 };
-1 10983 });
-1 10984 var require_descriptors = __commonJS(function(exports, module) {
-1 10985 var fails = require_fails();
-1 10986 module.exports = !fails(function() {
-1 10987 return Object.defineProperty({}, 1, {
-1 10988 get: function get() {
-1 10989 return 7;
-1 10990 }
-1 10991 })[1] != 7;
-1 10992 });
-1 10993 });
-1 10994 var require_function_call = __commonJS(function(exports, module) {
-1 10995 var NATIVE_BIND = require_function_bind_native();
-1 10996 var call = Function.prototype.call;
-1 10997 module.exports = NATIVE_BIND ? call.bind(call) : function() {
-1 10998 return call.apply(call, arguments);
-1 10999 };
-1 11000 });
-1 11001 var require_object_property_is_enumerable = __commonJS(function(exports) {
-1 11002 'use strict';
-1 11003 var $propertyIsEnumerable = {}.propertyIsEnumerable;
-1 11004 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-1 11005 var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({
-1 11006 1: 2
-1 11007 }, 1);
-1 11008 exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
-1 11009 var descriptor = getOwnPropertyDescriptor(this, V);
-1 11010 return !!descriptor && descriptor.enumerable;
-1 11011 } : $propertyIsEnumerable;
-1 11012 });
-1 11013 var require_create_property_descriptor = __commonJS(function(exports, module) {
-1 11014 module.exports = function(bitmap, value) {
-1 11015 return {
-1 11016 enumerable: !(bitmap & 1),
-1 11017 configurable: !(bitmap & 2),
-1 11018 writable: !(bitmap & 4),
-1 11019 value: value
-1 11020 };
-1 11021 };
-1 11022 });
-1 11023 var require_indexed_object = __commonJS(function(exports, module) {
-1 11024 var uncurryThis = require_function_uncurry_this();
-1 11025 var fails = require_fails();
-1 11026 var classof = require_classof_raw();
-1 11027 var $Object = Object;
-1 11028 var split = uncurryThis(''.split);
-1 11029 module.exports = fails(function() {
-1 11030 return !$Object('z').propertyIsEnumerable(0);
-1 11031 }) ? function(it) {
-1 11032 return classof(it) == 'String' ? split(it, '') : $Object(it);
-1 11033 } : $Object;
-1 11034 });
-1 11035 var require_is_null_or_undefined = __commonJS(function(exports, module) {
-1 11036 module.exports = function(it) {
-1 11037 return it === null || it === void 0;
-1 11038 };
-1 11039 });
-1 11040 var require_require_object_coercible = __commonJS(function(exports, module) {
-1 11041 var isNullOrUndefined = require_is_null_or_undefined();
-1 11042 var $TypeError = TypeError;
-1 11043 module.exports = function(it) {
-1 11044 if (isNullOrUndefined(it)) {
-1 11045 throw $TypeError('Can\'t call method on ' + it);
-1 11046 }
-1 11047 return it;
-1 11048 };
-1 11049 });
-1 11050 var require_to_indexed_object = __commonJS(function(exports, module) {
-1 11051 var IndexedObject = require_indexed_object();
-1 11052 var requireObjectCoercible = require_require_object_coercible();
-1 11053 module.exports = function(it) {
-1 11054 return IndexedObject(requireObjectCoercible(it));
-1 11055 };
-1 11056 });
-1 11057 var require_is_object2 = __commonJS(function(exports, module) {
-1 11058 var isCallable = require_is_callable2();
-1 11059 var $documentAll = require_document_all();
-1 11060 var documentAll = $documentAll.all;
-1 11061 module.exports = $documentAll.IS_HTMLDDA ? function(it) {
-1 11062 return _typeof(it) == 'object' ? it !== null : isCallable(it) || it === documentAll;
-1 11063 } : function(it) {
-1 11064 return _typeof(it) == 'object' ? it !== null : isCallable(it);
-1 11065 };
-1 11066 });
-1 11067 var require_path = __commonJS(function(exports, module) {
-1 11068 module.exports = {};
-1 11069 });
-1 11070 var require_get_built_in = __commonJS(function(exports, module) {
-1 11071 var path = require_path();
-1 11072 var global2 = require_global();
-1 11073 var isCallable = require_is_callable2();
-1 11074 var aFunction = function aFunction(variable) {
-1 11075 return isCallable(variable) ? variable : void 0;
-1 11076 };
-1 11077 module.exports = function(namespace, method) {
-1 11078 return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global2[namespace]) : path[namespace] && path[namespace][method] || global2[namespace] && global2[namespace][method];
-1 11079 };
-1 11080 });
-1 11081 var require_object_is_prototype_of = __commonJS(function(exports, module) {
-1 11082 var uncurryThis = require_function_uncurry_this();
-1 11083 module.exports = uncurryThis({}.isPrototypeOf);
-1 11084 });
-1 11085 var require_engine_user_agent = __commonJS(function(exports, module) {
-1 11086 var getBuiltIn = require_get_built_in();
-1 11087 module.exports = getBuiltIn('navigator', 'userAgent') || '';
-1 11088 });
-1 11089 var require_engine_v8_version = __commonJS(function(exports, module) {
-1 11090 var global2 = require_global();
-1 11091 var userAgent = require_engine_user_agent();
-1 11092 var process2 = global2.process;
-1 11093 var Deno = global2.Deno;
-1 11094 var versions = process2 && process2.versions || Deno && Deno.version;
-1 11095 var v8 = versions && versions.v8;
-1 11096 var match;
-1 11097 var version;
-1 11098 if (v8) {
-1 11099 match = v8.split('.');
-1 11100 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
-1 11101 }
-1 11102 if (!version && userAgent) {
-1 11103 match = userAgent.match(/Edge\/(\d+)/);
-1 11104 if (!match || match[1] >= 74) {
-1 11105 match = userAgent.match(/Chrome\/(\d+)/);
-1 11106 if (match) {
-1 11107 version = +match[1];
-1 11108 }
-1 11109 }
-1 11110 }
-1 11111 module.exports = version;
-1 11112 });
-1 11113 var require_symbol_constructor_detection = __commonJS(function(exports, module) {
-1 11114 var V8_VERSION = require_engine_v8_version();
-1 11115 var fails = require_fails();
-1 11116 module.exports = !!Object.getOwnPropertySymbols && !fails(function() {
-1 11117 var symbol = Symbol();
-1 11118 return !String(symbol) || !(Object(symbol) instanceof Symbol) || !Symbol.sham && V8_VERSION && V8_VERSION < 41;
-1 11119 });
-1 11120 });
-1 11121 var require_use_symbol_as_uid = __commonJS(function(exports, module) {
-1 11122 var NATIVE_SYMBOL = require_symbol_constructor_detection();
-1 11123 module.exports = NATIVE_SYMBOL && !Symbol.sham && _typeof(Symbol.iterator) == 'symbol';
-1 11124 });
-1 11125 var require_is_symbol2 = __commonJS(function(exports, module) {
-1 11126 var getBuiltIn = require_get_built_in();
-1 11127 var isCallable = require_is_callable2();
-1 11128 var isPrototypeOf = require_object_is_prototype_of();
-1 11129 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
-1 11130 var $Object = Object;
-1 11131 module.exports = USE_SYMBOL_AS_UID ? function(it) {
-1 11132 return _typeof(it) == 'symbol';
-1 11133 } : function(it) {
-1 11134 var $Symbol = getBuiltIn('Symbol');
-1 11135 return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
-1 11136 };
-1 11137 });
-1 11138 var require_try_to_string = __commonJS(function(exports, module) {
-1 11139 var $String = String;
-1 11140 module.exports = function(argument) {
-1 11141 try {
-1 11142 return $String(argument);
-1 11143 } catch (error) {
-1 11144 return 'Object';
-1 11145 }
-1 11146 };
-1 11147 });
-1 11148 var require_a_callable = __commonJS(function(exports, module) {
-1 11149 var isCallable = require_is_callable2();
-1 11150 var tryToString = require_try_to_string();
-1 11151 var $TypeError = TypeError;
-1 11152 module.exports = function(argument) {
-1 11153 if (isCallable(argument)) {
-1 11154 return argument;
-1 11155 }
-1 11156 throw $TypeError(tryToString(argument) + ' is not a function');
-1 11157 };
-1 11158 });
-1 11159 var require_get_method = __commonJS(function(exports, module) {
-1 11160 var aCallable = require_a_callable();
-1 11161 var isNullOrUndefined = require_is_null_or_undefined();
-1 11162 module.exports = function(V, P) {
-1 11163 var func = V[P];
-1 11164 return isNullOrUndefined(func) ? void 0 : aCallable(func);
-1 11165 };
-1 11166 });
-1 11167 var require_ordinary_to_primitive = __commonJS(function(exports, module) {
-1 11168 var call = require_function_call();
-1 11169 var isCallable = require_is_callable2();
-1 11170 var isObject = require_is_object2();
-1 11171 var $TypeError = TypeError;
-1 11172 module.exports = function(input, pref) {
-1 11173 var fn, val;
-1 11174 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) {
-1 11175 return val;
-1 11176 }
-1 11177 if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) {
-1 11178 return val;
-1 11179 }
-1 11180 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) {
-1 11181 return val;
-1 11182 }
-1 11183 throw $TypeError('Can\'t convert object to primitive value');
-1 11184 };
-1 11185 });
-1 11186 var require_is_pure = __commonJS(function(exports, module) {
-1 11187 module.exports = true;
-1 11188 });
-1 11189 var require_define_global_property = __commonJS(function(exports, module) {
-1 11190 var global2 = require_global();
-1 11191 var defineProperty = Object.defineProperty;
-1 11192 module.exports = function(key, value) {
-1 11193 try {
-1 11194 defineProperty(global2, key, {
-1 11195 value: value,
-1 11196 configurable: true,
-1 11197 writable: true
12105 11198 });
-1 11199 } catch (error) {
-1 11200 global2[key] = value;
12106 11201 }
12107 -1 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');
12108 -1 })) {
12109 -1 return true;
12110 -1 }
12111 -1 return false;
12112 -1 }
12113 -1 function matchExpression(vNode, expression) {
12114 -1 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
12115 -1 }
12116 -1 var escapeRegExp = function() {
12117 -1 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;
12118 -1 var to = '\\';
12119 -1 return function(string) {
12120 -1 return string.replace(from, to);
-1 11202 return value;
12121 11203 };
12122 -1 }();
12123 -1 var reUnescape = /\\/g;
12124 -1 function convertAttributes(atts) {
12125 -1 if (!atts) {
12126 -1 return;
12127 -1 }
12128 -1 return atts.map(function(att) {
12129 -1 var attributeKey = att.name.replace(reUnescape, '');
12130 -1 var attributeValue = (att.value || '').replace(reUnescape, '');
12131 -1 var test, regexp;
12132 -1 switch (att.operator) {
12133 -1 case '^=':
12134 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue));
12135 -1 break;
12136 -1
12137 -1 case '$=':
12138 -1 regexp = new RegExp(escapeRegExp(attributeValue) + '$');
12139 -1 break;
12140 -1
12141 -1 case '~=':
12142 -1 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)');
12143 -1 break;
12144 -1
12145 -1 case '|=':
12146 -1 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');
12147 -1 break;
12148 -1
12149 -1 case '=':
12150 -1 test = function test(value) {
12151 -1 return attributeValue === value;
12152 -1 };
12153 -1 break;
12154 -1
12155 -1 case '*=':
12156 -1 test = function test(value) {
12157 -1 return value && value.includes(attributeValue);
12158 -1 };
12159 -1 break;
12160 -1
12161 -1 case '!=':
12162 -1 test = function test(value) {
12163 -1 return attributeValue !== value;
12164 -1 };
12165 -1 break;
12166 -1
12167 -1 default:
12168 -1 test = function test(value) {
12169 -1 return value !== null;
12170 -1 };
-1 11204 });
-1 11205 var require_shared_store = __commonJS(function(exports, module) {
-1 11206 var global2 = require_global();
-1 11207 var defineGlobalProperty = require_define_global_property();
-1 11208 var SHARED = '__core-js_shared__';
-1 11209 var store = global2[SHARED] || defineGlobalProperty(SHARED, {});
-1 11210 module.exports = store;
-1 11211 });
-1 11212 var require_shared = __commonJS(function(exports, module) {
-1 11213 var IS_PURE = require_is_pure();
-1 11214 var store = require_shared_store();
-1 11215 (module.exports = function(key, value) {
-1 11216 return store[key] || (store[key] = value !== void 0 ? value : {});
-1 11217 })('versions', []).push({
-1 11218 version: '3.26.1',
-1 11219 mode: IS_PURE ? 'pure' : 'global',
-1 11220 copyright: '\xa9 2014-2022 Denis Pushkarev (zloirock.ru)',
-1 11221 license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
-1 11222 source: 'https://github.com/zloirock/core-js'
-1 11223 });
-1 11224 });
-1 11225 var require_to_object = __commonJS(function(exports, module) {
-1 11226 var requireObjectCoercible = require_require_object_coercible();
-1 11227 var $Object = Object;
-1 11228 module.exports = function(argument) {
-1 11229 return $Object(requireObjectCoercible(argument));
-1 11230 };
-1 11231 });
-1 11232 var require_has_own_property = __commonJS(function(exports, module) {
-1 11233 var uncurryThis = require_function_uncurry_this();
-1 11234 var toObject = require_to_object();
-1 11235 var hasOwnProperty2 = uncurryThis({}.hasOwnProperty);
-1 11236 module.exports = Object.hasOwn || function hasOwn2(it, key) {
-1 11237 return hasOwnProperty2(toObject(it), key);
-1 11238 };
-1 11239 });
-1 11240 var require_uid = __commonJS(function(exports, module) {
-1 11241 var uncurryThis = require_function_uncurry_this();
-1 11242 var id = 0;
-1 11243 var postfix = Math.random();
-1 11244 var toString = uncurryThis(1..toString);
-1 11245 module.exports = function(key) {
-1 11246 return 'Symbol(' + (key === void 0 ? '' : key) + ')_' + toString(++id + postfix, 36);
-1 11247 };
-1 11248 });
-1 11249 var require_well_known_symbol = __commonJS(function(exports, module) {
-1 11250 var global2 = require_global();
-1 11251 var shared = require_shared();
-1 11252 var hasOwn2 = require_has_own_property();
-1 11253 var uid = require_uid();
-1 11254 var NATIVE_SYMBOL = require_symbol_constructor_detection();
-1 11255 var USE_SYMBOL_AS_UID = require_use_symbol_as_uid();
-1 11256 var WellKnownSymbolsStore = shared('wks');
-1 11257 var Symbol2 = global2.Symbol;
-1 11258 var symbolFor = Symbol2 && Symbol2['for'];
-1 11259 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol2 : Symbol2 && Symbol2.withoutSetter || uid;
-1 11260 module.exports = function(name) {
-1 11261 if (!hasOwn2(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
-1 11262 var description = 'Symbol.' + name;
-1 11263 if (NATIVE_SYMBOL && hasOwn2(Symbol2, name)) {
-1 11264 WellKnownSymbolsStore[name] = Symbol2[name];
-1 11265 } else if (USE_SYMBOL_AS_UID && symbolFor) {
-1 11266 WellKnownSymbolsStore[name] = symbolFor(description);
-1 11267 } else {
-1 11268 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
-1 11269 }
12171 11270 }
12172 -1 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {
12173 -1 test = function test() {
12174 -1 return false;
12175 -1 };
-1 11271 return WellKnownSymbolsStore[name];
-1 11272 };
-1 11273 });
-1 11274 var require_to_primitive = __commonJS(function(exports, module) {
-1 11275 var call = require_function_call();
-1 11276 var isObject = require_is_object2();
-1 11277 var isSymbol = require_is_symbol2();
-1 11278 var getMethod = require_get_method();
-1 11279 var ordinaryToPrimitive = require_ordinary_to_primitive();
-1 11280 var wellKnownSymbol = require_well_known_symbol();
-1 11281 var $TypeError = TypeError;
-1 11282 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
-1 11283 module.exports = function(input, pref) {
-1 11284 if (!isObject(input) || isSymbol(input)) {
-1 11285 return input;
-1 11286 }
-1 11287 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
-1 11288 var result;
-1 11289 if (exoticToPrim) {
-1 11290 if (pref === void 0) {
-1 11291 pref = 'default';
-1 11292 }
-1 11293 result = call(exoticToPrim, input, pref);
-1 11294 if (!isObject(result) || isSymbol(result)) {
-1 11295 return result;
-1 11296 }
-1 11297 throw $TypeError('Can\'t convert object to primitive value');
12176 11298 }
12177 -1 if (!test) {
12178 -1 test = function test(value) {
12179 -1 return value && regexp.test(value);
12180 -1 };
-1 11299 if (pref === void 0) {
-1 11300 pref = 'number';
12181 11301 }
12182 -1 return {
12183 -1 key: attributeKey,
12184 -1 value: attributeValue,
12185 -1 type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue',
12186 -1 test: test
12187 -1 };
12188 -1 });
12189 -1 }
12190 -1 function convertClasses(classes) {
12191 -1 if (!classes) {
12192 -1 return;
12193 -1 }
12194 -1 return classes.map(function(className) {
12195 -1 className = className.replace(reUnescape, '');
12196 -1 return {
12197 -1 value: className,
12198 -1 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)')
12199 -1 };
-1 11302 return ordinaryToPrimitive(input, pref);
-1 11303 };
-1 11304 });
-1 11305 var require_to_property_key = __commonJS(function(exports, module) {
-1 11306 var toPrimitive = require_to_primitive();
-1 11307 var isSymbol = require_is_symbol2();
-1 11308 module.exports = function(argument) {
-1 11309 var key = toPrimitive(argument, 'string');
-1 11310 return isSymbol(key) ? key : key + '';
-1 11311 };
-1 11312 });
-1 11313 var require_document_create_element = __commonJS(function(exports, module) {
-1 11314 var global2 = require_global();
-1 11315 var isObject = require_is_object2();
-1 11316 var document2 = global2.document;
-1 11317 var EXISTS = isObject(document2) && isObject(document2.createElement);
-1 11318 module.exports = function(it) {
-1 11319 return EXISTS ? document2.createElement(it) : {};
-1 11320 };
-1 11321 });
-1 11322 var require_ie8_dom_define = __commonJS(function(exports, module) {
-1 11323 var DESCRIPTORS = require_descriptors();
-1 11324 var fails = require_fails();
-1 11325 var createElement = require_document_create_element();
-1 11326 module.exports = !DESCRIPTORS && !fails(function() {
-1 11327 return Object.defineProperty(createElement('div'), 'a', {
-1 11328 get: function get() {
-1 11329 return 7;
-1 11330 }
-1 11331 }).a != 7;
12200 11332 });
12201 -1 }
12202 -1 function convertPseudos(pseudos) {
12203 -1 if (!pseudos) {
12204 -1 return;
12205 -1 }
12206 -1 return pseudos.map(function(p) {
12207 -1 var expressions;
12208 -1 if ([ 'is', 'not' ].includes(p.name)) {
12209 -1 expressions = p.value;
12210 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
12211 -1 expressions = convertExpressions(expressions);
-1 11333 });
-1 11334 var require_object_get_own_property_descriptor = __commonJS(function(exports) {
-1 11335 var DESCRIPTORS = require_descriptors();
-1 11336 var call = require_function_call();
-1 11337 var propertyIsEnumerableModule = require_object_property_is_enumerable();
-1 11338 var createPropertyDescriptor = require_create_property_descriptor();
-1 11339 var toIndexedObject = require_to_indexed_object();
-1 11340 var toPropertyKey = require_to_property_key();
-1 11341 var hasOwn2 = require_has_own_property();
-1 11342 var IE8_DOM_DEFINE = require_ie8_dom_define();
-1 11343 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-1 11344 exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
-1 11345 O = toIndexedObject(O);
-1 11346 P = toPropertyKey(P);
-1 11347 if (IE8_DOM_DEFINE) {
-1 11348 try {
-1 11349 return $getOwnPropertyDescriptor(O, P);
-1 11350 } catch (error) {}
12212 11351 }
12213 -1 return {
12214 -1 name: p.name,
12215 -1 expressions: expressions,
12216 -1 value: p.value
-1 11352 if (hasOwn2(O, P)) {
-1 11353 return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
-1 11354 }
-1 11355 };
-1 11356 });
-1 11357 var require_is_forced = __commonJS(function(exports, module) {
-1 11358 var fails = require_fails();
-1 11359 var isCallable = require_is_callable2();
-1 11360 var replacement = /#|\.prototype\./;
-1 11361 var isForced = function isForced(feature, detection) {
-1 11362 var value = data[normalize(feature)];
-1 11363 return value == POLYFILL ? true : value == NATIVE ? false : isCallable(detection) ? fails(detection) : !!detection;
-1 11364 };
-1 11365 var normalize = isForced.normalize = function(string) {
-1 11366 return String(string).replace(replacement, '.').toLowerCase();
-1 11367 };
-1 11368 var data = isForced.data = {};
-1 11369 var NATIVE = isForced.NATIVE = 'N';
-1 11370 var POLYFILL = isForced.POLYFILL = 'P';
-1 11371 module.exports = isForced;
-1 11372 });
-1 11373 var require_function_bind_context = __commonJS(function(exports, module) {
-1 11374 var uncurryThis = require_function_uncurry_this_clause();
-1 11375 var aCallable = require_a_callable();
-1 11376 var NATIVE_BIND = require_function_bind_native();
-1 11377 var bind = uncurryThis(uncurryThis.bind);
-1 11378 module.exports = function(fn, that) {
-1 11379 aCallable(fn);
-1 11380 return that === void 0 ? fn : NATIVE_BIND ? bind(fn, that) : function() {
-1 11381 return fn.apply(that, arguments);
12217 11382 };
-1 11383 };
-1 11384 });
-1 11385 var require_v8_prototype_define_bug = __commonJS(function(exports, module) {
-1 11386 var DESCRIPTORS = require_descriptors();
-1 11387 var fails = require_fails();
-1 11388 module.exports = DESCRIPTORS && fails(function() {
-1 11389 return Object.defineProperty(function() {}, 'prototype', {
-1 11390 value: 42,
-1 11391 writable: false
-1 11392 }).prototype != 42;
12218 11393 });
12219 -1 }
12220 -1 function convertExpressions(expressions) {
12221 -1 return expressions.map(function(exp) {
12222 -1 var newExp = [];
12223 -1 var rule = exp.rule;
12224 -1 while (rule) {
12225 -1 newExp.push({
12226 -1 tag: rule.tagName ? rule.tagName.toLowerCase() : '*',
12227 -1 combinator: rule.nestingOperator ? rule.nestingOperator : ' ',
12228 -1 id: rule.id,
12229 -1 attributes: convertAttributes(rule.attrs),
12230 -1 classes: convertClasses(rule.classNames),
12231 -1 pseudos: convertPseudos(rule.pseudos)
12232 -1 });
12233 -1 rule = rule.rule;
-1 11394 });
-1 11395 var require_an_object = __commonJS(function(exports, module) {
-1 11396 var isObject = require_is_object2();
-1 11397 var $String = String;
-1 11398 var $TypeError = TypeError;
-1 11399 module.exports = function(argument) {
-1 11400 if (isObject(argument)) {
-1 11401 return argument;
-1 11402 }
-1 11403 throw $TypeError($String(argument) + ' is not an object');
-1 11404 };
-1 11405 });
-1 11406 var require_object_define_property = __commonJS(function(exports) {
-1 11407 var DESCRIPTORS = require_descriptors();
-1 11408 var IE8_DOM_DEFINE = require_ie8_dom_define();
-1 11409 var V8_PROTOTYPE_DEFINE_BUG = require_v8_prototype_define_bug();
-1 11410 var anObject = require_an_object();
-1 11411 var toPropertyKey = require_to_property_key();
-1 11412 var $TypeError = TypeError;
-1 11413 var $defineProperty = Object.defineProperty;
-1 11414 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
-1 11415 var ENUMERABLE = 'enumerable';
-1 11416 var CONFIGURABLE = 'configurable';
-1 11417 var WRITABLE = 'writable';
-1 11418 exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
-1 11419 anObject(O);
-1 11420 P = toPropertyKey(P);
-1 11421 anObject(Attributes);
-1 11422 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
-1 11423 var current = $getOwnPropertyDescriptor(O, P);
-1 11424 if (current && current[WRITABLE]) {
-1 11425 O[P] = Attributes.value;
-1 11426 Attributes = {
-1 11427 configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
-1 11428 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
-1 11429 writable: false
-1 11430 };
-1 11431 }
12234 11432 }
12235 -1 return newExp;
12236 -1 });
12237 -1 }
12238 -1 function _convertSelector(selector) {
12239 -1 var expressions = css_parser_default.parse(selector);
12240 -1 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
12241 -1 return convertExpressions(expressions);
12242 -1 }
12243 -1 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {
12244 -1 if (!vNode) {
12245 -1 return false;
12246 -1 }
12247 -1 var isArray = Array.isArray(expressions);
12248 -1 var expression = isArray ? expressions[index] : expressions;
12249 -1 var matches4 = matchExpression(vNode, expression);
12250 -1 while (!matches4 && matchAnyParent && vNode.parent) {
12251 -1 vNode = vNode.parent;
12252 -1 matches4 = matchExpression(vNode, expression);
12253 -1 }
12254 -1 if (index > 0) {
12255 -1 if ([ ' ', '>' ].includes(expression.combinator) === false) {
12256 -1 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);
-1 11433 return $defineProperty(O, P, Attributes);
-1 11434 } : $defineProperty : function defineProperty(O, P, Attributes) {
-1 11435 anObject(O);
-1 11436 P = toPropertyKey(P);
-1 11437 anObject(Attributes);
-1 11438 if (IE8_DOM_DEFINE) {
-1 11439 try {
-1 11440 return $defineProperty(O, P, Attributes);
-1 11441 } catch (error) {}
12257 11442 }
12258 -1 matches4 = matches4 && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');
12259 -1 }
12260 -1 return matches4;
12261 -1 }
12262 -1 function _matchesExpression(vNode, expressions, matchAnyParent) {
12263 -1 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);
12264 -1 }
12265 -1 function matches(vNode, selector) {
12266 -1 var expressions = _convertSelector(selector);
12267 -1 return expressions.some(function(expression) {
12268 -1 return _matchesExpression(vNode, expression);
12269 -1 });
12270 -1 }
12271 -1 var matches_default = matches;
12272 -1 function closest(vNode, selector) {
12273 -1 while (vNode) {
12274 -1 if (matches_default(vNode, selector)) {
12275 -1 return vNode;
-1 11443 if ('get' in Attributes || 'set' in Attributes) {
-1 11444 throw $TypeError('Accessors not supported');
12276 11445 }
12277 -1 if (typeof vNode.parent === 'undefined') {
12278 -1 throw new TypeError('Cannot resolve parent for non-DOM nodes');
-1 11446 if ('value' in Attributes) {
-1 11447 O[P] = Attributes.value;
12279 11448 }
12280 -1 vNode = vNode.parent;
12281 -1 }
12282 -1 return null;
12283 -1 }
12284 -1 var closest_default = closest;
12285 -1 function noop() {}
12286 -1 function funcGuard(f) {
12287 -1 if (typeof f !== 'function') {
12288 -1 throw new TypeError('Queue methods require functions as arguments');
12289 -1 }
12290 -1 }
12291 -1 function queue() {
12292 -1 var tasks = [];
12293 -1 var started = 0;
12294 -1 var remaining = 0;
12295 -1 var completeQueue = noop;
12296 -1 var complete = false;
12297 -1 var err2;
12298 -1 var defaultFail = function defaultFail(e) {
12299 -1 err2 = e;
12300 -1 setTimeout(function() {
12301 -1 if (err2 !== void 0 && err2 !== null) {
12302 -1 log_default('Uncaught error (of queue)', err2);
12303 -1 }
12304 -1 }, 1);
-1 11449 return O;
12305 11450 };
12306 -1 var failed = defaultFail;
12307 -1 function createResolve(i) {
12308 -1 return function(r) {
12309 -1 tasks[i] = r;
12310 -1 remaining -= 1;
12311 -1 if (!remaining && completeQueue !== noop) {
12312 -1 complete = true;
12313 -1 completeQueue(tasks);
12314 -1 }
-1 11451 });
-1 11452 var require_create_non_enumerable_property = __commonJS(function(exports, module) {
-1 11453 var DESCRIPTORS = require_descriptors();
-1 11454 var definePropertyModule = require_object_define_property();
-1 11455 var createPropertyDescriptor = require_create_property_descriptor();
-1 11456 module.exports = DESCRIPTORS ? function(object, key, value) {
-1 11457 return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
-1 11458 } : function(object, key, value) {
-1 11459 object[key] = value;
-1 11460 return object;
-1 11461 };
-1 11462 });
-1 11463 var require_export = __commonJS(function(exports, module) {
-1 11464 'use strict';
-1 11465 var global2 = require_global();
-1 11466 var apply = require_function_apply();
-1 11467 var uncurryThis = require_function_uncurry_this_clause();
-1 11468 var isCallable = require_is_callable2();
-1 11469 var getOwnPropertyDescriptor = require_object_get_own_property_descriptor().f;
-1 11470 var isForced = require_is_forced();
-1 11471 var path = require_path();
-1 11472 var bind = require_function_bind_context();
-1 11473 var createNonEnumerableProperty = require_create_non_enumerable_property();
-1 11474 var hasOwn2 = require_has_own_property();
-1 11475 var wrapConstructor = function wrapConstructor(NativeConstructor) {
-1 11476 var Wrapper = function Wrapper(a2, b2, c4) {
-1 11477 if (this instanceof Wrapper) {
-1 11478 switch (arguments.length) {
-1 11479 case 0:
-1 11480 return new NativeConstructor();
-1 11481
-1 11482 case 1:
-1 11483 return new NativeConstructor(a2);
-1 11484
-1 11485 case 2:
-1 11486 return new NativeConstructor(a2, b2);
-1 11487 }
-1 11488 return new NativeConstructor(a2, b2, c4);
-1 11489 }
-1 11490 return apply(NativeConstructor, this, arguments);
12315 11491 };
12316 -1 }
12317 -1 function abort(msg) {
12318 -1 completeQueue = noop;
12319 -1 failed(msg);
12320 -1 return tasks;
12321 -1 }
12322 -1 function pop() {
12323 -1 var length = tasks.length;
12324 -1 for (;started < length; started++) {
12325 -1 var task = tasks[started];
12326 -1 try {
12327 -1 task.call(null, createResolve(started), abort);
12328 -1 } catch (e) {
12329 -1 abort(e);
-1 11492 Wrapper.prototype = NativeConstructor.prototype;
-1 11493 return Wrapper;
-1 11494 };
-1 11495 module.exports = function(options, source) {
-1 11496 var TARGET = options.target;
-1 11497 var GLOBAL = options.global;
-1 11498 var STATIC = options.stat;
-1 11499 var PROTO = options.proto;
-1 11500 var nativeSource = GLOBAL ? global2 : STATIC ? global2[TARGET] : (global2[TARGET] || {}).prototype;
-1 11501 var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
-1 11502 var targetPrototype = target.prototype;
-1 11503 var FORCED, USE_NATIVE, VIRTUAL_PROTOTYPE;
-1 11504 var key, sourceProperty, targetProperty, nativeProperty, resultProperty, descriptor;
-1 11505 for (key in source) {
-1 11506 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
-1 11507 USE_NATIVE = !FORCED && nativeSource && hasOwn2(nativeSource, key);
-1 11508 targetProperty = target[key];
-1 11509 if (USE_NATIVE) {
-1 11510 if (options.dontCallGetSet) {
-1 11511 descriptor = getOwnPropertyDescriptor(nativeSource, key);
-1 11512 nativeProperty = descriptor && descriptor.value;
-1 11513 } else {
-1 11514 nativeProperty = nativeSource[key];
-1 11515 }
12330 11516 }
12331 -1 }
12332 -1 }
12333 -1 var q = {
12334 -1 defer: function defer(fn) {
12335 -1 if (_typeof(fn) === 'object' && fn.then && fn['catch']) {
12336 -1 var defer = fn;
12337 -1 fn = function fn(resolve, reject) {
12338 -1 defer.then(resolve)['catch'](reject);
12339 -1 };
-1 11517 sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
-1 11518 if (USE_NATIVE && _typeof(targetProperty) == _typeof(sourceProperty)) {
-1 11519 continue;
12340 11520 }
12341 -1 funcGuard(fn);
12342 -1 if (err2 !== void 0) {
12343 -1 return;
12344 -1 } else if (complete) {
12345 -1 throw new Error('Queue already completed');
-1 11521 if (options.bind && USE_NATIVE) {
-1 11522 resultProperty = bind(sourceProperty, global2);
-1 11523 } else if (options.wrap && USE_NATIVE) {
-1 11524 resultProperty = wrapConstructor(sourceProperty);
-1 11525 } else if (PROTO && isCallable(sourceProperty)) {
-1 11526 resultProperty = uncurryThis(sourceProperty);
-1 11527 } else {
-1 11528 resultProperty = sourceProperty;
12346 11529 }
12347 -1 tasks.push(fn);
12348 -1 ++remaining;
12349 -1 pop();
12350 -1 return q;
12351 -1 },
12352 -1 then: function then(fn) {
12353 -1 funcGuard(fn);
12354 -1 if (completeQueue !== noop) {
12355 -1 throw new Error('queue `then` already set');
-1 11530 if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
-1 11531 createNonEnumerableProperty(resultProperty, 'sham', true);
12356 11532 }
12357 -1 if (!err2) {
12358 -1 completeQueue = fn;
12359 -1 if (!remaining) {
12360 -1 complete = true;
12361 -1 completeQueue(tasks);
-1 11533 createNonEnumerableProperty(target, key, resultProperty);
-1 11534 if (PROTO) {
-1 11535 VIRTUAL_PROTOTYPE = TARGET + 'Prototype';
-1 11536 if (!hasOwn2(path, VIRTUAL_PROTOTYPE)) {
-1 11537 createNonEnumerableProperty(path, VIRTUAL_PROTOTYPE, {});
-1 11538 }
-1 11539 createNonEnumerableProperty(path[VIRTUAL_PROTOTYPE], key, sourceProperty);
-1 11540 if (options.real && targetPrototype && !targetPrototype[key]) {
-1 11541 createNonEnumerableProperty(targetPrototype, key, sourceProperty);
12362 11542 }
12363 11543 }
12364 -1 return q;
12365 -1 },
12366 -1 catch: function _catch(fn) {
12367 -1 funcGuard(fn);
12368 -1 if (failed !== defaultFail) {
12369 -1 throw new Error('queue `catch` already set');
12370 -1 }
12371 -1 if (!err2) {
12372 -1 failed = fn;
-1 11544 }
-1 11545 };
-1 11546 });
-1 11547 var require_es_object_has_own = __commonJS(function() {
-1 11548 var $ = require_export();
-1 11549 var hasOwn2 = require_has_own_property();
-1 11550 $({
-1 11551 target: 'Object',
-1 11552 stat: true
-1 11553 }, {
-1 11554 hasOwn: hasOwn2
-1 11555 });
-1 11556 });
-1 11557 var require_has_own = __commonJS(function(exports, module) {
-1 11558 require_es_object_has_own();
-1 11559 var path = require_path();
-1 11560 module.exports = path.Object.hasOwn;
-1 11561 });
-1 11562 var require_has_own2 = __commonJS(function(exports, module) {
-1 11563 var parent = require_has_own();
-1 11564 module.exports = parent;
-1 11565 });
-1 11566 var require_has_own3 = __commonJS(function(exports, module) {
-1 11567 var parent = require_has_own2();
-1 11568 module.exports = parent;
-1 11569 });
-1 11570 var require_math_trunc = __commonJS(function(exports, module) {
-1 11571 var ceil = Math.ceil;
-1 11572 var floor = Math.floor;
-1 11573 module.exports = Math.trunc || function trunc(x) {
-1 11574 var n2 = +x;
-1 11575 return (n2 > 0 ? floor : ceil)(n2);
-1 11576 };
-1 11577 });
-1 11578 var require_to_integer_or_infinity = __commonJS(function(exports, module) {
-1 11579 var trunc = require_math_trunc();
-1 11580 module.exports = function(argument) {
-1 11581 var number = +argument;
-1 11582 return number !== number || number === 0 ? 0 : trunc(number);
-1 11583 };
-1 11584 });
-1 11585 var require_to_absolute_index = __commonJS(function(exports, module) {
-1 11586 var toIntegerOrInfinity = require_to_integer_or_infinity();
-1 11587 var max2 = Math.max;
-1 11588 var min = Math.min;
-1 11589 module.exports = function(index, length) {
-1 11590 var integer = toIntegerOrInfinity(index);
-1 11591 return integer < 0 ? max2(integer + length, 0) : min(integer, length);
-1 11592 };
-1 11593 });
-1 11594 var require_to_length = __commonJS(function(exports, module) {
-1 11595 var toIntegerOrInfinity = require_to_integer_or_infinity();
-1 11596 var min = Math.min;
-1 11597 module.exports = function(argument) {
-1 11598 return argument > 0 ? min(toIntegerOrInfinity(argument), 9007199254740991) : 0;
-1 11599 };
-1 11600 });
-1 11601 var require_length_of_array_like = __commonJS(function(exports, module) {
-1 11602 var toLength = require_to_length();
-1 11603 module.exports = function(obj) {
-1 11604 return toLength(obj.length);
-1 11605 };
-1 11606 });
-1 11607 var require_array_includes = __commonJS(function(exports, module) {
-1 11608 var toIndexedObject = require_to_indexed_object();
-1 11609 var toAbsoluteIndex = require_to_absolute_index();
-1 11610 var lengthOfArrayLike = require_length_of_array_like();
-1 11611 var createMethod = function createMethod(IS_INCLUDES) {
-1 11612 return function($this, el, fromIndex) {
-1 11613 var O = toIndexedObject($this);
-1 11614 var length = lengthOfArrayLike(O);
-1 11615 var index = toAbsoluteIndex(fromIndex, length);
-1 11616 var value;
-1 11617 if (IS_INCLUDES && el != el) {
-1 11618 while (length > index) {
-1 11619 value = O[index++];
-1 11620 if (value != value) {
-1 11621 return true;
-1 11622 }
-1 11623 }
12373 11624 } else {
12374 -1 fn(err2);
12375 -1 err2 = null;
-1 11625 for (;length > index; index++) {
-1 11626 if ((IS_INCLUDES || index in O) && O[index] === el) {
-1 11627 return IS_INCLUDES || index || 0;
-1 11628 }
-1 11629 }
12376 11630 }
12377 -1 return q;
12378 -1 },
12379 -1 abort: abort
-1 11631 return !IS_INCLUDES && -1;
-1 11632 };
12380 11633 };
12381 -1 return q;
12382 -1 }
12383 -1 var queue_default = queue;
12384 -1 var uuid;
12385 -1 var _rng;
12386 -1 var _crypto = window.crypto || window.msCrypto;
12387 -1 if (!_rng && _crypto && _crypto.getRandomValues) {
12388 -1 _rnds8 = new Uint8Array(16);
12389 -1 _rng = function whatwgRNG() {
12390 -1 _crypto.getRandomValues(_rnds8);
12391 -1 return _rnds8;
-1 11634 module.exports = {
-1 11635 includes: createMethod(true),
-1 11636 indexOf: createMethod(false)
12392 11637 };
12393 -1 }
12394 -1 var _rnds8;
12395 -1 if (!_rng) {
12396 -1 _rnds = new Array(16);
12397 -1 _rng = function _rng() {
12398 -1 for (var i = 0, r; i < 16; i++) {
12399 -1 if ((i & 3) === 0) {
12400 -1 r = Math.random() * 4294967296;
-1 11638 });
-1 11639 var require_hidden_keys = __commonJS(function(exports, module) {
-1 11640 module.exports = {};
-1 11641 });
-1 11642 var require_object_keys_internal = __commonJS(function(exports, module) {
-1 11643 var uncurryThis = require_function_uncurry_this();
-1 11644 var hasOwn2 = require_has_own_property();
-1 11645 var toIndexedObject = require_to_indexed_object();
-1 11646 var indexOf = require_array_includes().indexOf;
-1 11647 var hiddenKeys = require_hidden_keys();
-1 11648 var push = uncurryThis([].push);
-1 11649 module.exports = function(object, names) {
-1 11650 var O = toIndexedObject(object);
-1 11651 var i = 0;
-1 11652 var result = [];
-1 11653 var key;
-1 11654 for (key in O) {
-1 11655 !hasOwn2(hiddenKeys, key) && hasOwn2(O, key) && push(result, key);
-1 11656 }
-1 11657 while (names.length > i) {
-1 11658 if (hasOwn2(O, key = names[i++])) {
-1 11659 ~indexOf(result, key) || push(result, key);
12401 11660 }
12402 -1 _rnds[i] = r >>> ((i & 3) << 3) & 255;
12403 11661 }
12404 -1 return _rnds;
-1 11662 return result;
12405 11663 };
12406 -1 }
12407 -1 var _rnds;
12408 -1 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;
12409 -1 var _byteToHex = [];
12410 -1 var _hexToByte = {};
12411 -1 for (var i = 0; i < 256; i++) {
12412 -1 _byteToHex[i] = (i + 256).toString(16).substr(1);
12413 -1 _hexToByte[_byteToHex[i]] = i;
12414 -1 }
12415 -1 function parse(s, buf, offset) {
12416 -1 var i = buf && offset || 0, ii = 0;
12417 -1 buf = buf || [];
12418 -1 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
12419 -1 if (ii < 16) {
12420 -1 buf[i + ii++] = _hexToByte[oct];
12421 -1 }
12422 -1 });
12423 -1 while (ii < 16) {
12424 -1 buf[i + ii++] = 0;
12425 -1 }
12426 -1 return buf;
12427 -1 }
12428 -1 function unparse(buf, offset) {
12429 -1 var i = offset || 0, bth = _byteToHex;
12430 -1 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];
12431 -1 }
12432 -1 var _seedBytes = _rng();
12433 -1 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];
12434 -1 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;
12435 -1 var _lastMSecs = 0;
12436 -1 var _lastNSecs = 0;
12437 -1 function v1(options, buf, offset) {
12438 -1 var i = buf && offset || 0;
12439 -1 var b = buf || [];
12440 -1 options = options || {};
12441 -1 var clockseq = options.clockseq != null ? options.clockseq : _clockseq;
12442 -1 var msecs = options.msecs != null ? options.msecs : new Date().getTime();
12443 -1 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;
12444 -1 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
12445 -1 if (dt < 0 && options.clockseq == null) {
12446 -1 clockseq = clockseq + 1 & 16383;
12447 -1 }
12448 -1 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {
12449 -1 nsecs = 0;
12450 -1 }
12451 -1 if (nsecs >= 1e4) {
12452 -1 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
12453 -1 }
12454 -1 _lastMSecs = msecs;
12455 -1 _lastNSecs = nsecs;
12456 -1 _clockseq = clockseq;
12457 -1 msecs += 122192928e5;
12458 -1 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
12459 -1 b[i++] = tl >>> 24 & 255;
12460 -1 b[i++] = tl >>> 16 & 255;
12461 -1 b[i++] = tl >>> 8 & 255;
12462 -1 b[i++] = tl & 255;
12463 -1 var tmh = msecs / 4294967296 * 1e4 & 268435455;
12464 -1 b[i++] = tmh >>> 8 & 255;
12465 -1 b[i++] = tmh & 255;
12466 -1 b[i++] = tmh >>> 24 & 15 | 16;
12467 -1 b[i++] = tmh >>> 16 & 255;
12468 -1 b[i++] = clockseq >>> 8 | 128;
12469 -1 b[i++] = clockseq & 255;
12470 -1 var node = options.node || _nodeId;
12471 -1 for (var n = 0; n < 6; n++) {
12472 -1 b[i + n] = node[n];
12473 -1 }
12474 -1 return buf ? buf : unparse(b);
12475 -1 }
12476 -1 function v4(options, buf, offset) {
12477 -1 var i = buf && offset || 0;
12478 -1 if (typeof options == 'string') {
12479 -1 buf = options == 'binary' ? new BufferClass(16) : null;
12480 -1 options = null;
12481 -1 }
12482 -1 options = options || {};
12483 -1 var rnds = options.random || (options.rng || _rng)();
12484 -1 rnds[6] = rnds[6] & 15 | 64;
12485 -1 rnds[8] = rnds[8] & 63 | 128;
12486 -1 if (buf) {
12487 -1 for (var ii = 0; ii < 16; ii++) {
12488 -1 buf[i + ii] = rnds[ii];
12489 -1 }
12490 -1 }
12491 -1 return buf || unparse(rnds);
12492 -1 }
12493 -1 uuid = v4;
12494 -1 uuid.v1 = v1;
12495 -1 uuid.v4 = v4;
12496 -1 uuid.parse = parse;
12497 -1 uuid.unparse = unparse;
12498 -1 uuid.BufferClass = BufferClass;
12499 -1 axe._uuid = v1();
12500 -1 var uuid_default = v4;
12501 -1 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);
12502 -1 function stringifyMessage(_ref2) {
12503 -1 var topic = _ref2.topic, channelId = _ref2.channelId, message = _ref2.message, messageId = _ref2.messageId, keepalive = _ref2.keepalive;
12504 -1 var data2 = {
12505 -1 channelId: channelId,
12506 -1 topic: topic,
12507 -1 messageId: messageId,
12508 -1 keepalive: !!keepalive,
12509 -1 source: getSource2()
-1 11664 });
-1 11665 var require_enum_bug_keys = __commonJS(function(exports, module) {
-1 11666 module.exports = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ];
-1 11667 });
-1 11668 var require_object_keys = __commonJS(function(exports, module) {
-1 11669 var internalObjectKeys = require_object_keys_internal();
-1 11670 var enumBugKeys = require_enum_bug_keys();
-1 11671 module.exports = Object.keys || function keys(O) {
-1 11672 return internalObjectKeys(O, enumBugKeys);
12510 11673 };
12511 -1 if (message instanceof Error) {
12512 -1 data2.error = {
12513 -1 name: message.name,
12514 -1 message: message.message,
12515 -1 stack: message.stack
-1 11674 });
-1 11675 var require_object_to_array = __commonJS(function(exports, module) {
-1 11676 var DESCRIPTORS = require_descriptors();
-1 11677 var uncurryThis = require_function_uncurry_this();
-1 11678 var objectKeys = require_object_keys();
-1 11679 var toIndexedObject = require_to_indexed_object();
-1 11680 var $propertyIsEnumerable = require_object_property_is_enumerable().f;
-1 11681 var propertyIsEnumerable = uncurryThis($propertyIsEnumerable);
-1 11682 var push = uncurryThis([].push);
-1 11683 var createMethod = function createMethod(TO_ENTRIES) {
-1 11684 return function(it) {
-1 11685 var O = toIndexedObject(it);
-1 11686 var keys = objectKeys(O);
-1 11687 var length = keys.length;
-1 11688 var i = 0;
-1 11689 var result = [];
-1 11690 var key;
-1 11691 while (length > i) {
-1 11692 key = keys[i++];
-1 11693 if (!DESCRIPTORS || propertyIsEnumerable(O, key)) {
-1 11694 push(result, TO_ENTRIES ? [ key, O[key] ] : O[key]);
-1 11695 }
-1 11696 }
-1 11697 return result;
12516 11698 };
12517 -1 } else {
12518 -1 data2.payload = message;
12519 -1 }
12520 -1 return JSON.stringify(data2);
12521 -1 }
12522 -1 function parseMessage(dataString) {
12523 -1 var data2;
12524 -1 try {
12525 -1 data2 = JSON.parse(dataString);
12526 -1 } catch (e) {
12527 -1 return;
12528 -1 }
12529 -1 if (!isRespondableMessage(data2)) {
12530 -1 return;
12531 -1 }
12532 -1 var _data = data2, topic = _data.topic, channelId = _data.channelId, messageId = _data.messageId, keepalive = _data.keepalive;
12533 -1 var message = _typeof(data2.error) === 'object' ? buildErrorObject(data2.error) : data2.payload;
12534 -1 return {
12535 -1 topic: topic,
12536 -1 message: message,
12537 -1 messageId: messageId,
12538 -1 channelId: channelId,
12539 -1 keepalive: !!keepalive
12540 11699 };
12541 -1 }
12542 -1 function isRespondableMessage(postedMessage) {
12543 -1 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2();
12544 -1 }
12545 -1 function buildErrorObject(error) {
12546 -1 var msg = error.message || 'Unknown error occurred';
12547 -1 var errorName = errorTypes.includes(error.name) ? error.name : 'Error';
12548 -1 var ErrConstructor = window[errorName] || Error;
12549 -1 if (error.stack) {
12550 -1 msg += '\n' + error.stack.replace(error.message, '');
12551 -1 }
12552 -1 return new ErrConstructor(msg);
12553 -1 }
12554 -1 function getSource2() {
12555 -1 var application = 'axeAPI';
12556 -1 var version = '';
12557 -1 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {
12558 -1 application = axe._audit.application;
12559 -1 }
12560 -1 if (typeof axe !== 'undefined') {
12561 -1 version = axe.version;
12562 -1 }
12563 -1 return application + '.' + version;
12564 -1 }
12565 -1 function assertIsParentWindow(win) {
12566 -1 assetNotGlobalWindow(win);
12567 -1 assert_default(window.parent === win, 'Source of the response must be the parent window.');
12568 -1 }
12569 -1 function assertIsFrameWindow(win) {
12570 -1 assetNotGlobalWindow(win);
12571 -1 assert_default(win.parent === window, 'Respondable target must be a frame in the current window');
12572 -1 }
12573 -1 function assetNotGlobalWindow(win) {
12574 -1 assert_default(window !== win, 'Messages can not be sent to the same window.');
12575 -1 }
12576 -1 var channels = {};
12577 -1 function storeReplyHandler(channelId, replyHandler) {
12578 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
12579 -1 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');
12580 -1 channels[channelId] = {
12581 -1 replyHandler: replyHandler,
12582 -1 sendToParent: sendToParent
-1 11700 module.exports = {
-1 11701 entries: createMethod(true),
-1 11702 values: createMethod(false)
12583 11703 };
12584 -1 }
12585 -1 function getReplyHandler(channelId) {
12586 -1 return channels[channelId];
12587 -1 }
12588 -1 function deleteReplyHandler(channelId) {
12589 -1 delete channels[channelId];
12590 -1 }
12591 -1 var messageIds = [];
12592 -1 function createMessageId() {
12593 -1 var uuid2 = ''.concat(v4(), ':').concat(v4());
12594 -1 if (messageIds.includes(uuid2)) {
12595 -1 return createMessageId();
12596 -1 }
12597 -1 messageIds.push(uuid2);
12598 -1 return uuid2;
12599 -1 }
12600 -1 function isNewMessage(uuid2) {
12601 -1 if (messageIds.includes(uuid2)) {
12602 -1 return false;
12603 -1 }
12604 -1 messageIds.push(uuid2);
12605 -1 return true;
12606 -1 }
12607 -1 function postMessage(win, data2, sendToParent, replyHandler) {
12608 -1 if (typeof replyHandler === 'function') {
12609 -1 storeReplyHandler(data2.channelId, replyHandler, sendToParent);
12610 -1 }
12611 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
12612 -1 if (data2.message instanceof Error && !sendToParent) {
12613 -1 axe.log(data2.message);
12614 -1 return false;
12615 -1 }
12616 -1 var dataString = stringifyMessage(_extends({
12617 -1 messageId: createMessageId()
12618 -1 }, data2));
12619 -1 var allowedOrigins = axe._audit.allowedOrigins;
12620 -1 if (!allowedOrigins || !allowedOrigins.length) {
12621 -1 return false;
12622 -1 }
12623 -1 allowedOrigins.forEach(function(origin) {
12624 -1 try {
12625 -1 win.postMessage(dataString, origin);
12626 -1 } catch (err2) {
12627 -1 if (err2 instanceof win.DOMException) {
12628 -1 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin'));
12629 -1 }
12630 -1 throw err2;
-1 11704 });
-1 11705 var require_es_object_values = __commonJS(function() {
-1 11706 var $ = require_export();
-1 11707 var $values = require_object_to_array().values;
-1 11708 $({
-1 11709 target: 'Object',
-1 11710 stat: true
-1 11711 }, {
-1 11712 values: function values2(O) {
-1 11713 return $values(O);
12631 11714 }
12632 11715 });
12633 -1 return true;
12634 -1 }
12635 -1 function processError(win, error, channelId) {
12636 -1 if (!win.parent !== window) {
12637 -1 return axe.log(error);
12638 -1 }
12639 -1 try {
12640 -1 postMessage(win, {
12641 -1 topic: null,
12642 -1 channelId: channelId,
12643 -1 message: error,
12644 -1 messageId: createMessageId(),
12645 -1 keepalive: true
12646 -1 }, true);
12647 -1 } catch (err2) {
12648 -1 return axe.log(err2);
12649 -1 }
12650 -1 }
12651 -1 function createResponder(win, channelId) {
12652 -1 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
12653 -1 return function respond(message, keepalive, replyHandler) {
12654 -1 var data2 = {
12655 -1 channelId: channelId,
12656 -1 message: message,
12657 -1 keepalive: keepalive
-1 11716 });
-1 11717 var require_values = __commonJS(function(exports, module) {
-1 11718 require_es_object_values();
-1 11719 var path = require_path();
-1 11720 module.exports = path.Object.values;
-1 11721 });
-1 11722 var require_values2 = __commonJS(function(exports, module) {
-1 11723 var parent = require_values();
-1 11724 module.exports = parent;
-1 11725 });
-1 11726 var require_values3 = __commonJS(function(exports, module) {
-1 11727 var parent = require_values2();
-1 11728 module.exports = parent;
-1 11729 });
-1 11730 var require_doT = __commonJS(function(exports, module) {
-1 11731 (function() {
-1 11732 'use strict';
-1 11733 var doT3 = {
-1 11734 name: 'doT',
-1 11735 version: '1.1.1',
-1 11736 templateSettings: {
-1 11737 evaluate: /\{\{([\s\S]+?(\}?)+)\}\}/g,
-1 11738 interpolate: /\{\{=([\s\S]+?)\}\}/g,
-1 11739 encode: /\{\{!([\s\S]+?)\}\}/g,
-1 11740 use: /\{\{#([\s\S]+?)\}\}/g,
-1 11741 useParams: /(^|[^\w$])def(?:\.|\[[\'\"])([\w$\.]+)(?:[\'\"]\])?\s*\:\s*([\w$\.]+|\"[^\"]+\"|\'[^\']+\'|\{[^\}]+\})/g,
-1 11742 define: /\{\{##\s*([\w\.$]+)\s*(\:|=)([\s\S]+?)#\}\}/g,
-1 11743 defineParams: /^\s*([\w$]+):([\s\S]+)/,
-1 11744 conditional: /\{\{\?(\?)?\s*([\s\S]*?)\s*\}\}/g,
-1 11745 iterate: /\{\{~\s*(?:\}\}|([\s\S]+?)\s*\:\s*([\w$]+)\s*(?:\:\s*([\w$]+))?\s*\}\})/g,
-1 11746 varname: 'it',
-1 11747 strip: true,
-1 11748 append: true,
-1 11749 selfcontained: false,
-1 11750 doNotSkipEncoded: false
-1 11751 },
-1 11752 template: void 0,
-1 11753 compile: void 0,
-1 11754 log: true
12658 11755 };
12659 -1 postMessage(win, data2, sendToParent, replyHandler);
12660 -1 };
12661 -1 }
12662 -1 function originIsAllowed(origin) {
12663 -1 var allowedOrigins = axe._audit.allowedOrigins;
12664 -1 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);
12665 -1 }
12666 -1 function messageHandler(_ref3, topicHandler) {
12667 -1 var origin = _ref3.origin, dataString = _ref3.data, win = _ref3.source;
12668 -1 try {
12669 -1 var data2 = parseMessage(dataString) || {};
12670 -1 var channelId = data2.channelId, message = data2.message, messageId = data2.messageId;
12671 -1 if (!originIsAllowed(origin) || !isNewMessage(messageId)) {
12672 -1 return;
12673 -1 }
12674 -1 if (message instanceof Error && win.parent !== window) {
12675 -1 axe.log(message);
12676 -1 return false;
-1 11756 (function() {
-1 11757 if ((typeof globalThis === 'undefined' ? 'undefined' : _typeof(globalThis)) === 'object') {
-1 11758 return;
-1 11759 }
-1 11760 try {
-1 11761 Object.defineProperty(Object.prototype, '__magic__', {
-1 11762 get: function get() {
-1 11763 return this;
-1 11764 },
-1 11765 configurable: true
-1 11766 });
-1 11767 __magic__.globalThis = __magic__;
-1 11768 delete Object.prototype.__magic__;
-1 11769 } catch (e) {
-1 11770 window.globalThis = function() {
-1 11771 if (typeof self !== 'undefined') {
-1 11772 return self;
-1 11773 }
-1 11774 if (typeof window !== 'undefined') {
-1 11775 return window;
-1 11776 }
-1 11777 if (typeof global !== 'undefined') {
-1 11778 return global;
-1 11779 }
-1 11780 if (typeof this !== 'undefined') {
-1 11781 return this;
-1 11782 }
-1 11783 throw new Error('Unable to locate global `this`');
-1 11784 }();
-1 11785 }
-1 11786 })();
-1 11787 doT3.encodeHTMLSource = function(doNotSkipEncoded) {
-1 11788 var encodeHTMLRules = {
-1 11789 '&': '&',
-1 11790 '<': '<',
-1 11791 '>': '>',
-1 11792 '"': '"',
-1 11793 '\'': ''',
-1 11794 '/': '/'
-1 11795 }, matchHTML = doNotSkipEncoded ? /[&<>"'\/]/g : /&(?!#?\w+;)|<|>|"|'|\//g;
-1 11796 return function(code) {
-1 11797 return code ? code.toString().replace(matchHTML, function(m3) {
-1 11798 return encodeHTMLRules[m3] || m3;
-1 11799 }) : '';
-1 11800 };
-1 11801 };
-1 11802 if (typeof module !== 'undefined' && module.exports) {
-1 11803 module.exports = doT3;
-1 11804 } else if (typeof define === 'function' && define.amd) {
-1 11805 define(function() {
-1 11806 return doT3;
-1 11807 });
-1 11808 } else {
-1 11809 globalThis.doT = doT3;
12677 11810 }
12678 -1 try {
12679 -1 if (data2.topic) {
12680 -1 var responder = createResponder(win, channelId);
12681 -1 assertIsParentWindow(win);
12682 -1 topicHandler(data2, responder);
12683 -1 } else {
12684 -1 callReplyHandler(win, data2);
-1 11811 var startend = {
-1 11812 append: {
-1 11813 start: '\'+(',
-1 11814 end: ')+\'',
-1 11815 startencode: '\'+encodeHTML('
-1 11816 },
-1 11817 split: {
-1 11818 start: '\';out+=(',
-1 11819 end: ');out+=\'',
-1 11820 startencode: '\';out+=encodeHTML('
12685 11821 }
12686 -1 } catch (error) {
12687 -1 processError(win, error, channelId);
-1 11822 }, skip = /$^/;
-1 11823 function resolveDefs(c4, block, def) {
-1 11824 return (typeof block === 'string' ? block : block.toString()).replace(c4.define || skip, function(m3, code, assign, value) {
-1 11825 if (code.indexOf('def.') === 0) {
-1 11826 code = code.substring(4);
-1 11827 }
-1 11828 if (!(code in def)) {
-1 11829 if (assign === ':') {
-1 11830 if (c4.defineParams) {
-1 11831 value.replace(c4.defineParams, function(m4, param, v) {
-1 11832 def[code] = {
-1 11833 arg: param,
-1 11834 text: v
-1 11835 };
-1 11836 });
-1 11837 }
-1 11838 if (!(code in def)) {
-1 11839 def[code] = value;
-1 11840 }
-1 11841 } else {
-1 11842 new Function('def', 'def[\'' + code + '\']=' + value)(def);
-1 11843 }
-1 11844 }
-1 11845 return '';
-1 11846 }).replace(c4.use || skip, function(m3, code) {
-1 11847 if (c4.useParams) {
-1 11848 code = code.replace(c4.useParams, function(m4, s, d2, param) {
-1 11849 if (def[d2] && def[d2].arg && param) {
-1 11850 var rw = (d2 + ':' + param).replace(/'|\\/g, '_');
-1 11851 def.__exp = def.__exp || {};
-1 11852 def.__exp[rw] = def[d2].text.replace(new RegExp('(^|[^\\w$])' + def[d2].arg + '([^\\w$])', 'g'), '$1' + param + '$2');
-1 11853 return s + 'def.__exp[\'' + rw + '\']';
-1 11854 }
-1 11855 });
-1 11856 }
-1 11857 var v = new Function('def', 'return ' + code)(def);
-1 11858 return v ? resolveDefs(c4, v, def) : v;
-1 11859 });
12688 11860 }
12689 -1 } catch (error) {
12690 -1 axe.log(error);
12691 -1 return false;
12692 -1 }
12693 -1 }
12694 -1 function callReplyHandler(win, data2) {
12695 -1 var channelId = data2.channelId, message = data2.message, keepalive = data2.keepalive;
12696 -1 var _ref4 = getReplyHandler(channelId) || {}, replyHandler = _ref4.replyHandler, sendToParent = _ref4.sendToParent;
12697 -1 if (!replyHandler) {
12698 -1 return;
12699 -1 }
12700 -1 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
12701 -1 var responder = createResponder(win, channelId, sendToParent);
12702 -1 if (!keepalive && channelId) {
12703 -1 deleteReplyHandler(channelId);
12704 -1 }
12705 -1 try {
12706 -1 replyHandler(message, keepalive, responder);
12707 -1 } catch (error) {
12708 -1 axe.log(error);
12709 -1 responder(error, keepalive);
12710 -1 }
12711 -1 }
12712 -1 var frameMessenger = {
12713 -1 open: function open(topicHandler) {
12714 -1 if (typeof window.addEventListener !== 'function') {
12715 -1 return;
-1 11861 function unescape(code) {
-1 11862 return code.replace(/\\('|\\)/g, '$1').replace(/[\r\t\n]/g, ' ');
12716 11863 }
12717 -1 var handler = function handler(messageEvent) {
12718 -1 messageHandler(messageEvent, topicHandler);
-1 11864 doT3.template = function(tmpl, c4, def) {
-1 11865 c4 = c4 || doT3.templateSettings;
-1 11866 var cse = c4.append ? startend.append : startend.split, needhtmlencode, sid = 0, indv, str = c4.use || c4.define ? resolveDefs(c4, tmpl, def || {}) : tmpl;
-1 11867 str = ('var out=\'' + (c4.strip ? str.replace(/(^|\r|\n)\t* +| +\t*(\r|\n|$)/g, ' ').replace(/\r|\n|\t|\/\*[\s\S]*?\*\//g, '') : str).replace(/'|\\/g, '\\$&').replace(c4.interpolate || skip, function(m3, code) {
-1 11868 return cse.start + unescape(code) + cse.end;
-1 11869 }).replace(c4.encode || skip, function(m3, code) {
-1 11870 needhtmlencode = true;
-1 11871 return cse.startencode + unescape(code) + cse.end;
-1 11872 }).replace(c4.conditional || skip, function(m3, elsecase, code) {
-1 11873 return elsecase ? code ? '\';}else if(' + unescape(code) + '){out+=\'' : '\';}else{out+=\'' : code ? '\';if(' + unescape(code) + '){out+=\'' : '\';}out+=\'';
-1 11874 }).replace(c4.iterate || skip, function(m3, iterate, vname, iname) {
-1 11875 if (!iterate) {
-1 11876 return '\';} } out+=\'';
-1 11877 }
-1 11878 sid += 1;
-1 11879 indv = iname || 'i' + sid;
-1 11880 iterate = unescape(iterate);
-1 11881 return '\';var arr' + sid + '=' + iterate + ';if(arr' + sid + '){var ' + vname + ',' + indv + '=-1,l' + sid + '=arr' + sid + '.length-1;while(' + indv + '<l' + sid + '){' + vname + '=arr' + sid + '[' + indv + '+=1];out+=\'';
-1 11882 }).replace(c4.evaluate || skip, function(m3, code) {
-1 11883 return '\';' + unescape(code) + 'out+=\'';
-1 11884 }) + '\';return out;').replace(/\n/g, '\\n').replace(/\t/g, '\\t').replace(/\r/g, '\\r').replace(/(\s|;|\}|^|\{)out\+='';/g, '$1').replace(/\+''/g, '');
-1 11885 if (needhtmlencode) {
-1 11886 if (!c4.selfcontained && globalThis && !globalThis._encodeHTML) {
-1 11887 globalThis._encodeHTML = doT3.encodeHTMLSource(c4.doNotSkipEncoded);
-1 11888 }
-1 11889 str = 'var encodeHTML = typeof _encodeHTML !== \'undefined\' ? _encodeHTML : (' + doT3.encodeHTMLSource.toString() + '(' + (c4.doNotSkipEncoded || '') + '));' + str;
-1 11890 }
-1 11891 try {
-1 11892 return new Function(c4.varname, str);
-1 11893 } catch (e) {
-1 11894 if (typeof console !== 'undefined') {
-1 11895 console.log('Could not create a template function: ' + str);
-1 11896 }
-1 11897 throw e;
-1 11898 }
12719 11899 };
12720 -1 window.addEventListener('message', handler, false);
12721 -1 return function() {
12722 -1 window.removeEventListener('message', handler, false);
-1 11900 doT3.compile = function(tmpl, def) {
-1 11901 return doT3.template(tmpl, null, def);
12723 11902 };
12724 -1 },
12725 -1 post: function post(win, data2, replyHandler) {
12726 -1 if (typeof window.addEventListener !== 'function') {
12727 -1 return false;
12728 -1 }
12729 -1 return postMessage(win, data2, false, replyHandler);
12730 -1 }
12731 -1 };
12732 -1 function setDefaultFrameMessenger(respondable2) {
12733 -1 respondable2.updateMessenger(frameMessenger);
12734 -1 }
12735 -1 var closeHandler;
12736 -1 var postMessage2;
12737 -1 var topicHandlers = {};
12738 -1 function _respondable(win, topic, message, keepalive, replyHandler) {
12739 -1 var data2 = {
12740 -1 topic: topic,
12741 -1 message: message,
12742 -1 channelId: ''.concat(v4(), ':').concat(v4()),
12743 -1 keepalive: keepalive
12744 -1 };
12745 -1 return postMessage2(win, data2, replyHandler);
12746 -1 }
12747 -1 function messageListener(data2, responder) {
12748 -1 var topic = data2.topic, message = data2.message, keepalive = data2.keepalive;
12749 -1 var topicHandler = topicHandlers[topic];
12750 -1 if (!topicHandler) {
12751 -1 return;
12752 -1 }
12753 -1 try {
12754 -1 topicHandler(message, keepalive, responder);
12755 -1 } catch (error) {
12756 -1 axe.log(error);
12757 -1 responder(error, keepalive);
12758 -1 }
12759 -1 }
12760 -1 _respondable.updateMessenger = function updateMessenger(_ref5) {
12761 -1 var open = _ref5.open, post = _ref5.post;
12762 -1 assert_default(typeof open === 'function', 'open callback must be a function');
12763 -1 assert_default(typeof post === 'function', 'post callback must be a function');
12764 -1 if (closeHandler) {
12765 -1 closeHandler();
12766 -1 }
12767 -1 var close = open(messageListener);
12768 -1 if (close) {
12769 -1 assert_default(typeof close === 'function', 'open callback must return a cleanup function');
12770 -1 closeHandler = close;
12771 -1 } else {
12772 -1 closeHandler = null;
12773 -1 }
12774 -1 postMessage2 = post;
12775 -1 };
12776 -1 _respondable.subscribe = function subscribe(topic, topicHandler) {
12777 -1 assert_default(typeof topicHandler === 'function', 'Subscriber callback must be a function');
12778 -1 assert_default(!topicHandlers[topic], 'Topic '.concat(topic, ' is already registered to.'));
12779 -1 topicHandlers[topic] = topicHandler;
12780 -1 };
12781 -1 _respondable.isInFrame = function isInFrame() {
12782 -1 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
12783 -1 return !!win.frameElement;
-1 11903 })();
-1 11904 });
-1 11905 var definitions = [ {
-1 11906 name: 'NA',
-1 11907 value: 'inapplicable',
-1 11908 priority: 0,
-1 11909 group: 'inapplicable'
-1 11910 }, {
-1 11911 name: 'PASS',
-1 11912 value: 'passed',
-1 11913 priority: 1,
-1 11914 group: 'passes'
-1 11915 }, {
-1 11916 name: 'CANTTELL',
-1 11917 value: 'cantTell',
-1 11918 priority: 2,
-1 11919 group: 'incomplete'
-1 11920 }, {
-1 11921 name: 'FAIL',
-1 11922 value: 'failed',
-1 11923 priority: 3,
-1 11924 group: 'violations'
-1 11925 } ];
-1 11926 var constants = {
-1 11927 helpUrlBase: 'https://dequeuniversity.com/rules/',
-1 11928 gridSize: 200,
-1 11929 results: [],
-1 11930 resultGroups: [],
-1 11931 resultGroupMap: {},
-1 11932 impact: Object.freeze([ 'minor', 'moderate', 'serious', 'critical' ]),
-1 11933 preload: Object.freeze({
-1 11934 assets: [ 'cssom', 'media' ],
-1 11935 timeout: 1e4
-1 11936 }),
-1 11937 allOrigins: '<unsafe_all_origins>',
-1 11938 sameOrigin: '<same_origin>'
12784 11939 };
12785 -1 setDefaultFrameMessenger(_respondable);
12786 -1 function _sendCommandToFrame(node, parameters, resolve, reject) {
12787 -1 var _parameters$options$p, _parameters$options;
12788 -1 var win = node.contentWindow;
12789 -1 var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500;
12790 -1 if (!win) {
12791 -1 log_default('Frame does not have a content window', node);
12792 -1 resolve(null);
12793 -1 return;
12794 -1 }
12795 -1 if (pingWaitTime === 0) {
12796 -1 callAxeStart(node, parameters, resolve, reject);
12797 -1 return;
12798 -1 }
12799 -1 var timeout = setTimeout(function() {
12800 -1 timeout = setTimeout(function() {
12801 -1 if (!parameters.debug) {
12802 -1 resolve(null);
12803 -1 } else {
12804 -1 reject(err('No response from frame', node));
12805 -1 }
12806 -1 }, 0);
12807 -1 }, pingWaitTime);
12808 -1 _respondable(win, 'axe.ping', null, void 0, function() {
12809 -1 clearTimeout(timeout);
12810 -1 callAxeStart(node, parameters, resolve, reject);
12811 -1 });
12812 -1 }
12813 -1 function callAxeStart(node, parameters, resolve, reject) {
12814 -1 var _parameters$options$f, _parameters$options2;
12815 -1 var frameWaitTime = (_parameters$options$f = (_parameters$options2 = parameters.options) === null || _parameters$options2 === void 0 ? void 0 : _parameters$options2.frameWaitTime) !== null && _parameters$options$f !== void 0 ? _parameters$options$f : 6e4;
12816 -1 var win = node.contentWindow;
12817 -1 var timeout = setTimeout(function collectResultFramesTimeout() {
12818 -1 reject(err('Axe in frame timed out', node));
12819 -1 }, frameWaitTime);
12820 -1 _respondable(win, 'axe.start', parameters, void 0, function(data2) {
12821 -1 clearTimeout(timeout);
12822 -1 if (data2 instanceof Error === false) {
12823 -1 resolve(data2);
12824 -1 } else {
12825 -1 reject(data2);
12826 -1 }
12827 -1 });
12828 -1 }
12829 -1 function err(message, node) {
12830 -1 var selector;
12831 -1 if (axe._tree) {
12832 -1 selector = _getSelector(node);
12833 -1 }
12834 -1 return new Error(message + ': ' + (selector || node));
12835 -1 }
12836 -1 function getAllChecks(object) {
12837 -1 var result = [];
12838 -1 return result.concat(object.any || []).concat(object.all || []).concat(object.none || []);
12839 -1 }
12840 -1 var get_all_checks_default = getAllChecks;
12841 -1 function findBy(array, key, value) {
12842 -1 if (Array.isArray(array)) {
12843 -1 return array.find(function(obj) {
12844 -1 return _typeof(obj) === 'object' && obj[key] === value;
12845 -1 });
12846 -1 }
12847 -1 }
12848 -1 var find_by_default = findBy;
12849 -1 function pushFrame(resultSet, options, frameSpec) {
12850 -1 resultSet.forEach(function(res) {
12851 -1 res.node = dq_element_default.fromFrame(res.node, options, frameSpec);
12852 -1 var checks = get_all_checks_default(res);
12853 -1 checks.forEach(function(check) {
12854 -1 check.relatedNodes = check.relatedNodes.map(function(node) {
12855 -1 return dq_element_default.fromFrame(node, options, frameSpec);
12856 -1 });
12857 -1 });
12858 -1 });
12859 -1 }
12860 -1 function spliceNodes(target, to) {
12861 -1 var firstFromFrame = to[0].node;
12862 -1 for (var _i2 = 0; _i2 < target.length; _i2++) {
12863 -1 var node = target[_i2].node;
12864 -1 var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes);
12865 -1 if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) {
12866 -1 target.splice.apply(target, [ _i2, 0 ].concat(_toConsumableArray(to)));
12867 -1 return;
12868 -1 }
-1 11940 definitions.forEach(function(definition) {
-1 11941 var name = definition.name;
-1 11942 var value = definition.value;
-1 11943 var priority = definition.priority;
-1 11944 var group = definition.group;
-1 11945 constants[name] = value;
-1 11946 constants[name + '_PRIO'] = priority;
-1 11947 constants[name + '_GROUP'] = group;
-1 11948 constants.results[priority] = value;
-1 11949 constants.resultGroups[priority] = group;
-1 11950 constants.resultGroupMap[value] = group;
-1 11951 });
-1 11952 Object.freeze(constants.results);
-1 11953 Object.freeze(constants.resultGroups);
-1 11954 Object.freeze(constants.resultGroupMap);
-1 11955 Object.freeze(constants);
-1 11956 var constants_default = constants;
-1 11957 function log() {
-1 11958 if ((typeof console === 'undefined' ? 'undefined' : _typeof(console)) === 'object' && console.log) {
-1 11959 Function.prototype.apply.call(console.log, console, arguments);
12869 11960 }
12870 -1 target.push.apply(target, _toConsumableArray(to));
12871 11961 }
12872 -1 function normalizeResult(result) {
12873 -1 if (!result || !result.results) {
12874 -1 return null;
12875 -1 }
12876 -1 if (!Array.isArray(result.results)) {
12877 -1 return [ result.results ];
12878 -1 }
12879 -1 if (!result.results.length) {
12880 -1 return null;
-1 11962 var log_default = log;
-1 11963 var whitespaceRegex = /[\t\r\n\f]/g;
-1 11964 var AbstractVirtualNode = function() {
-1 11965 function AbstractVirtualNode() {
-1 11966 _classCallCheck(this, AbstractVirtualNode);
-1 11967 this.parent = void 0;
12881 11968 }
12882 -1 return result.results;
12883 -1 }
12884 -1 function mergeResults(frameResults, options) {
12885 -1 var mergedResult = [];
12886 -1 frameResults.forEach(function(frameResult) {
12887 -1 var results = normalizeResult(frameResult);
12888 -1 if (!results || !results.length) {
12889 -1 return;
12890 -1 }
12891 -1 var frameSpec = getFrameSpec(frameResult, options);
12892 -1 results.forEach(function(ruleResult) {
12893 -1 if (ruleResult.nodes && frameSpec) {
12894 -1 pushFrame(ruleResult.nodes, options, frameSpec);
12895 -1 }
12896 -1 var res = find_by_default(mergedResult, 'id', ruleResult.id);
12897 -1 if (!res) {
12898 -1 mergedResult.push(ruleResult);
12899 -1 } else {
12900 -1 if (ruleResult.nodes.length) {
12901 -1 spliceNodes(res.nodes, ruleResult.nodes);
12902 -1 }
12903 -1 }
12904 -1 });
12905 -1 });
12906 -1 mergedResult.forEach(function(result) {
12907 -1 if (result.nodes) {
12908 -1 result.nodes.sort(function(nodeA, nodeB) {
12909 -1 return nodeIndexSort(nodeA.node.nodeIndexes, nodeB.node.nodeIndexes);
12910 -1 });
-1 11969 _createClass(AbstractVirtualNode, [ {
-1 11970 key: 'props',
-1 11971 get: function get() {
-1 11972 throw new Error('VirtualNode class must have a "props" object consisting of "nodeType" and "nodeName" properties');
12911 11973 }
12912 -1 });
12913 -1 return mergedResult;
12914 -1 }
12915 -1 function nodeIndexSort() {
12916 -1 var nodeIndexesA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
12917 -1 var nodeIndexesB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
12918 -1 var length = Math.max(nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA.length, nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB.length);
12919 -1 for (var _i3 = 0; _i3 < length; _i3++) {
12920 -1 var indexA = nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA[_i3];
12921 -1 var indexB = nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB[_i3];
12922 -1 if (typeof indexA !== 'number' || isNaN(indexA)) {
12923 -1 return _i3 === 0 ? 1 : -1;
-1 11974 }, {
-1 11975 key: 'attrNames',
-1 11976 get: function get() {
-1 11977 throw new Error('VirtualNode class must have an "attrNames" property');
12924 11978 }
12925 -1 if (typeof indexB !== 'number' || isNaN(indexB)) {
12926 -1 return _i3 === 0 ? -1 : 1;
-1 11979 }, {
-1 11980 key: 'attr',
-1 11981 value: function attr() {
-1 11982 throw new Error('VirtualNode class must have an "attr" function');
12927 11983 }
12928 -1 if (indexA !== indexB) {
12929 -1 return indexA - indexB;
-1 11984 }, {
-1 11985 key: 'hasAttr',
-1 11986 value: function hasAttr() {
-1 11987 throw new Error('VirtualNode class must have a "hasAttr" function');
12930 11988 }
12931 -1 }
12932 -1 return 0;
12933 -1 }
12934 -1 var merge_results_default = mergeResults;
12935 -1 function getFrameSpec(frameResult, options) {
12936 -1 if (frameResult.frameElement) {
12937 -1 return new dq_element_default(frameResult.frameElement, options);
12938 -1 } else if (frameResult.frameSpec) {
12939 -1 return frameResult.frameSpec;
12940 -1 }
12941 -1 return null;
12942 -1 }
12943 -1 function _collectResultsFromFrames(parentContent, options, command, parameter, resolve, reject) {
12944 -1 var q = queue_default();
12945 -1 var frames = parentContent.frames;
12946 -1 frames.forEach(function(_ref6) {
12947 -1 var frameElement = _ref6.node, context = _objectWithoutProperties(_ref6, _excluded);
12948 -1 q.defer(function(res, rej) {
12949 -1 var params = {
12950 -1 options: options,
12951 -1 command: command,
12952 -1 parameter: parameter,
12953 -1 context: context
12954 -1 };
12955 -1 function callback(results) {
12956 -1 if (!results) {
12957 -1 return res(null);
12958 -1 }
12959 -1 return res({
12960 -1 results: results,
12961 -1 frameElement: frameElement
12962 -1 });
-1 11989 }, {
-1 11990 key: 'hasClass',
-1 11991 value: function hasClass(className) {
-1 11992 var classAttr = this.attr('class');
-1 11993 if (!classAttr) {
-1 11994 return false;
12963 11995 }
12964 -1 _sendCommandToFrame(frameElement, params, callback, rej);
12965 -1 });
12966 -1 });
12967 -1 q.then(function(data2) {
12968 -1 resolve(merge_results_default(data2, options));
12969 -1 })['catch'](reject);
12970 -1 }
12971 -1 function _contains(vNode, otherVNode) {
12972 -1 if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') {
12973 -1 return vNode.actualNode.contains(otherVNode.actualNode);
12974 -1 }
12975 -1 do {
12976 -1 if (vNode === otherVNode) {
12977 -1 return true;
12978 -1 } else if (otherVNode.nodeIndex < vNode.nodeIndex) {
12979 -1 return false;
12980 -1 }
12981 -1 otherVNode = otherVNode.parent;
12982 -1 } while (otherVNode);
12983 -1 return false;
12984 -1 }
12985 -1 function deepMerge() {
12986 -1 var target = {};
12987 -1 for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
12988 -1 sources[_key] = arguments[_key];
12989 -1 }
12990 -1 sources.forEach(function(source) {
12991 -1 if (!source || _typeof(source) !== 'object' || Array.isArray(source)) {
12992 -1 return;
12993 -1 }
12994 -1 for (var _i4 = 0, _Object$keys = Object.keys(source); _i4 < _Object$keys.length; _i4++) {
12995 -1 var key = _Object$keys[_i4];
12996 -1 if (!target.hasOwnProperty(key) || _typeof(source[key]) !== 'object' || Array.isArray(target[key])) {
12997 -1 target[key] = source[key];
12998 -1 } else {
12999 -1 target[key] = deepMerge(target[key], source[key]);
13000 -1 }
13001 -1 }
13002 -1 });
13003 -1 return target;
13004 -1 }
13005 -1 var deep_merge_default = deepMerge;
13006 -1 function extendMetaData(to, from) {
13007 -1 Object.assign(to, from);
13008 -1 Object.keys(from).filter(function(prop) {
13009 -1 return typeof from[prop] === 'function';
13010 -1 }).forEach(function(prop) {
13011 -1 to[prop] = null;
13012 -1 try {
13013 -1 to[prop] = from[prop](to);
13014 -1 } catch (e) {}
13015 -1 });
13016 -1 }
13017 -1 var extend_meta_data_default = extendMetaData;
13018 -1 var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ];
13019 -1 function isShadowRoot(node) {
13020 -1 if (node.shadowRoot) {
13021 -1 var nodeName2 = node.nodeName.toLowerCase();
13022 -1 if (possibleShadowRoots.includes(nodeName2) || /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(nodeName2)) {
13023 -1 return true;
-1 11996 var selector = ' ' + className + ' ';
-1 11997 return (' ' + classAttr + ' ').replace(whitespaceRegex, ' ').indexOf(selector) >= 0;
13024 11998 }
13025 -1 }
13026 -1 return false;
13027 -1 }
13028 -1 var is_shadow_root_default = isShadowRoot;
13029 -1 var dom_exports = {};
13030 -1 __export(dom_exports, {
13031 -1 createGrid: function createGrid() {
13032 -1 return _createGrid;
-1 11999 } ]);
-1 12000 return AbstractVirtualNode;
-1 12001 }();
-1 12002 var abstract_virtual_node_default = AbstractVirtualNode;
-1 12003 var utils_exports = {};
-1 12004 __export(utils_exports, {
-1 12005 DqElement: function DqElement() {
-1 12006 return dq_element_default;
13033 12007 },
13034 -1 findElmsInContext: function findElmsInContext() {
13035 -1 return find_elms_in_context_default;
-1 12008 aggregate: function aggregate() {
-1 12009 return aggregate_default;
13036 12010 },
13037 -1 findNearbyElms: function findNearbyElms() {
13038 -1 return _findNearbyElms;
-1 12011 aggregateChecks: function aggregateChecks() {
-1 12012 return aggregate_checks_default;
13039 12013 },
13040 -1 findUp: function findUp() {
13041 -1 return find_up_default;
-1 12014 aggregateNodeResults: function aggregateNodeResults() {
-1 12015 return aggregate_node_results_default;
13042 12016 },
13043 -1 findUpVirtual: function findUpVirtual() {
13044 -1 return find_up_virtual_default;
-1 12017 aggregateResult: function aggregateResult() {
-1 12018 return aggregate_result_default;
13045 12019 },
13046 -1 getComposedParent: function getComposedParent() {
13047 -1 return get_composed_parent_default;
-1 12020 areStylesSet: function areStylesSet() {
-1 12021 return are_styles_set_default;
13048 12022 },
13049 -1 getElementByReference: function getElementByReference() {
13050 -1 return get_element_by_reference_default;
-1 12023 assert: function assert() {
-1 12024 return assert_default;
13051 12025 },
13052 -1 getElementCoordinates: function getElementCoordinates() {
13053 -1 return get_element_coordinates_default;
-1 12026 checkHelper: function checkHelper() {
-1 12027 return check_helper_default;
13054 12028 },
13055 -1 getElementStack: function getElementStack() {
13056 -1 return get_element_stack_default;
-1 12029 clone: function clone() {
-1 12030 return _clone;
13057 12031 },
13058 -1 getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {
13059 -1 return get_overflow_hidden_ancestors_default;
-1 12032 closest: function closest() {
-1 12033 return closest_default;
13060 12034 },
13061 -1 getRootNode: function getRootNode() {
13062 -1 return get_root_node_default2;
-1 12035 collectResultsFromFrames: function collectResultsFromFrames() {
-1 12036 return _collectResultsFromFrames;
13063 12037 },
13064 -1 getScrollOffset: function getScrollOffset() {
13065 -1 return get_scroll_offset_default;
-1 12038 contains: function contains() {
-1 12039 return _contains;
13066 12040 },
13067 -1 getTabbableElements: function getTabbableElements() {
13068 -1 return get_tabbable_elements_default;
-1 12041 convertSelector: function convertSelector() {
-1 12042 return _convertSelector;
13069 12043 },
13070 -1 getTextElementStack: function getTextElementStack() {
13071 -1 return get_text_element_stack_default;
-1 12044 cssParser: function cssParser() {
-1 12045 return css_parser_default;
13072 12046 },
13073 -1 getViewportSize: function getViewportSize() {
13074 -1 return get_viewport_size_default;
-1 12047 deepMerge: function deepMerge() {
-1 12048 return deep_merge_default;
13075 12049 },
13076 -1 getVisibleChildTextRects: function getVisibleChildTextRects() {
13077 -1 return get_visible_child_text_rects_default;
-1 12050 escapeSelector: function escapeSelector() {
-1 12051 return escape_selector_default;
13078 12052 },
13079 -1 hasContent: function hasContent() {
13080 -1 return has_content_default;
-1 12053 extendMetaData: function extendMetaData() {
-1 12054 return extend_meta_data_default;
13081 12055 },
13082 -1 hasContentVirtual: function hasContentVirtual() {
13083 -1 return has_content_virtual_default;
-1 12056 filterHtmlAttrs: function filterHtmlAttrs() {
-1 12057 return _filterHtmlAttrs;
13084 12058 },
13085 -1 hasLangText: function hasLangText() {
13086 -1 return _hasLangText;
-1 12059 finalizeRuleResult: function finalizeRuleResult() {
-1 12060 return _finalizeRuleResult;
13087 12061 },
13088 -1 idrefs: function idrefs() {
13089 -1 return idrefs_default;
-1 12062 findBy: function findBy() {
-1 12063 return find_by_default;
13090 12064 },
13091 -1 insertedIntoFocusOrder: function insertedIntoFocusOrder() {
13092 -1 return inserted_into_focus_order_default;
-1 12065 getAllChecks: function getAllChecks() {
-1 12066 return get_all_checks_default;
13093 12067 },
13094 -1 isCurrentPageLink: function isCurrentPageLink() {
13095 -1 return _isCurrentPageLink;
-1 12068 getAncestry: function getAncestry() {
-1 12069 return _getAncestry;
13096 12070 },
13097 -1 isFocusable: function isFocusable() {
13098 -1 return _isFocusable;
-1 12071 getBaseLang: function getBaseLang() {
-1 12072 return get_base_lang_default;
13099 12073 },
13100 -1 isHTML5: function isHTML5() {
13101 -1 return is_html5_default;
-1 12074 getCheckMessage: function getCheckMessage() {
-1 12075 return get_check_message_default;
13102 12076 },
13103 -1 isHiddenForEveryone: function isHiddenForEveryone() {
13104 -1 return _isHiddenForEveryone;
-1 12077 getCheckOption: function getCheckOption() {
-1 12078 return get_check_option_default;
13105 12079 },
13106 -1 isHiddenWithCSS: function isHiddenWithCSS() {
13107 -1 return is_hidden_with_css_default;
-1 12080 getEnvironmentData: function getEnvironmentData() {
-1 12081 return _getEnvironmentData;
13108 12082 },
13109 -1 isInTabOrder: function isInTabOrder() {
13110 -1 return _isInTabOrder;
-1 12083 getFlattenedTree: function getFlattenedTree() {
-1 12084 return _getFlattenedTree;
13111 12085 },
13112 -1 isInTextBlock: function isInTextBlock() {
13113 -1 return is_in_text_block_default;
-1 12086 getFrameContexts: function getFrameContexts() {
-1 12087 return _getFrameContexts;
13114 12088 },
13115 -1 isModalOpen: function isModalOpen() {
13116 -1 return is_modal_open_default;
-1 12089 getFriendlyUriEnd: function getFriendlyUriEnd() {
-1 12090 return get_friendly_uri_end_default;
13117 12091 },
13118 -1 isMultiline: function isMultiline() {
13119 -1 return _isMultiline;
-1 12092 getNodeAttributes: function getNodeAttributes() {
-1 12093 return get_node_attributes_default;
13120 12094 },
13121 -1 isNativelyFocusable: function isNativelyFocusable() {
13122 -1 return is_natively_focusable_default;
-1 12095 getNodeFromTree: function getNodeFromTree() {
-1 12096 return get_node_from_tree_default;
13123 12097 },
13124 -1 isNode: function isNode() {
13125 -1 return is_node_default;
-1 12098 getPreloadConfig: function getPreloadConfig() {
-1 12099 return _getPreloadConfig;
13126 12100 },
13127 -1 isOffscreen: function isOffscreen() {
13128 -1 return is_offscreen_default;
-1 12101 getRootNode: function getRootNode() {
-1 12102 return get_root_node_default;
13129 12103 },
13130 -1 isOpaque: function isOpaque() {
13131 -1 return is_opaque_default;
-1 12104 getRule: function getRule() {
-1 12105 return _getRule;
13132 12106 },
13133 -1 isSkipLink: function isSkipLink() {
13134 -1 return _isSkipLink;
-1 12107 getScroll: function getScroll() {
-1 12108 return get_scroll_default;
13135 12109 },
13136 -1 isVisible: function isVisible() {
13137 -1 return is_visible_default;
-1 12110 getScrollState: function getScrollState() {
-1 12111 return get_scroll_state_default;
13138 12112 },
13139 -1 isVisibleOnScreen: function isVisibleOnScreen() {
13140 -1 return _isVisibleOnScreen;
-1 12113 getSelector: function getSelector() {
-1 12114 return _getSelector;
13141 12115 },
13142 -1 isVisibleToScreenReaders: function isVisibleToScreenReaders() {
13143 -1 return _isVisibleToScreenReaders;
-1 12116 getSelectorData: function getSelectorData() {
-1 12117 return _getSelectorData;
13144 12118 },
13145 -1 isVisualContent: function isVisualContent() {
13146 -1 return is_visual_content_default;
-1 12119 getShadowSelector: function getShadowSelector() {
-1 12120 return _getShadowSelector;
13147 12121 },
13148 -1 reduceToElementsBelowFloating: function reduceToElementsBelowFloating() {
13149 -1 return reduce_to_elements_below_floating_default;
-1 12122 getStandards: function getStandards() {
-1 12123 return _getStandards;
13150 12124 },
13151 -1 shadowElementsFromPoint: function shadowElementsFromPoint() {
13152 -1 return shadow_elements_from_point_default;
-1 12125 getStyleSheetFactory: function getStyleSheetFactory() {
-1 12126 return get_stylesheet_factory_default;
13153 12127 },
13154 -1 urlPropsFromAttribute: function urlPropsFromAttribute() {
13155 -1 return url_props_from_attribute_default;
-1 12128 getXpath: function getXpath() {
-1 12129 return get_xpath_default;
13156 12130 },
13157 -1 visuallyContains: function visuallyContains() {
13158 -1 return _visuallyContains;
-1 12131 injectStyle: function injectStyle() {
-1 12132 return inject_style_default;
13159 12133 },
13160 -1 visuallyOverlaps: function visuallyOverlaps() {
13161 -1 return visually_overlaps_default;
-1 12134 isHidden: function isHidden() {
-1 12135 return is_hidden_default;
13162 12136 },
13163 -1 visuallySort: function visuallySort() {
13164 -1 return _visuallySort;
13165 -1 }
13166 -1 });
13167 -1 function getRootNode(node) {
13168 -1 var doc = node.getRootNode && node.getRootNode() || document;
13169 -1 if (doc === node) {
13170 -1 doc = document;
13171 -1 }
13172 -1 return doc;
13173 -1 }
13174 -1 var get_root_node_default = getRootNode;
13175 -1 var get_root_node_default2 = get_root_node_default;
13176 -1 function findElmsInContext(_ref7) {
13177 -1 var context = _ref7.context, value = _ref7.value, attr = _ref7.attr, _ref7$elm = _ref7.elm, elm = _ref7$elm === void 0 ? '' : _ref7$elm;
13178 -1 var root;
13179 -1 var escapedValue = escape_selector_default(value);
13180 -1 if (context.nodeType === 9 || context.nodeType === 11) {
13181 -1 root = context;
13182 -1 } else {
13183 -1 root = get_root_node_default2(context);
13184 -1 }
13185 -1 return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']'));
13186 -1 }
13187 -1 var find_elms_in_context_default = findElmsInContext;
13188 -1 function findUpVirtual(element, target) {
13189 -1 var parent;
13190 -1 parent = element.actualNode;
13191 -1 if (!element.shadowId && typeof element.actualNode.closest === 'function') {
13192 -1 var match = element.actualNode.closest(target);
13193 -1 if (match) {
13194 -1 return match;
13195 -1 }
13196 -1 return null;
13197 -1 }
13198 -1 do {
13199 -1 parent = parent.assignedSlot ? parent.assignedSlot : parent.parentNode;
13200 -1 if (parent && parent.nodeType === 11) {
13201 -1 parent = parent.host;
13202 -1 }
13203 -1 } while (parent && !element_matches_default(parent, target) && parent !== document.documentElement);
13204 -1 if (!parent) {
13205 -1 return null;
13206 -1 }
13207 -1 if (!element_matches_default(parent, target)) {
13208 -1 return null;
13209 -1 }
13210 -1 return parent;
13211 -1 }
13212 -1 var find_up_virtual_default = findUpVirtual;
13213 -1 function findUp(element, target) {
13214 -1 return find_up_virtual_default(get_node_from_tree_default(element), target);
13215 -1 }
13216 -1 var find_up_default = findUp;
13217 -1 var import_memoizee = __toModule(require_memoizee());
13218 -1 axe._memoizedFns = [];
13219 -1 function memoizeImplementation(fn) {
13220 -1 var memoized = (0, import_memoizee['default'])(fn);
13221 -1 axe._memoizedFns.push(memoized);
13222 -1 return memoized;
13223 -1 }
13224 -1 var memoize_default = memoizeImplementation;
13225 -1 function _rectsOverlap(rect1, rect2) {
13226 -1 return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);
13227 -1 }
13228 -1 var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) {
13229 -1 var ancestors = [];
13230 -1 if (!vNode) {
13231 -1 return ancestors;
13232 -1 }
13233 -1 var overflow = vNode.getComputedStylePropertyValue('overflow');
13234 -1 if (overflow === 'hidden') {
13235 -1 ancestors.push(vNode);
-1 12137 isHtmlElement: function isHtmlElement() {
-1 12138 return is_html_element_default;
-1 12139 },
-1 12140 isNodeInContext: function isNodeInContext() {
-1 12141 return _isNodeInContext;
-1 12142 },
-1 12143 isShadowRoot: function isShadowRoot() {
-1 12144 return is_shadow_root_default;
-1 12145 },
-1 12146 isValidLang: function isValidLang() {
-1 12147 return valid_langs_default;
-1 12148 },
-1 12149 isXHTML: function isXHTML() {
-1 12150 return is_xhtml_default;
-1 12151 },
-1 12152 matchAncestry: function matchAncestry() {
-1 12153 return _matchAncestry;
-1 12154 },
-1 12155 matches: function matches() {
-1 12156 return _matches;
-1 12157 },
-1 12158 matchesExpression: function matchesExpression() {
-1 12159 return _matchesExpression;
-1 12160 },
-1 12161 matchesSelector: function matchesSelector() {
-1 12162 return element_matches_default;
-1 12163 },
-1 12164 memoize: function memoize() {
-1 12165 return memoize_default;
-1 12166 },
-1 12167 mergeResults: function mergeResults() {
-1 12168 return merge_results_default;
-1 12169 },
-1 12170 nodeLookup: function nodeLookup() {
-1 12171 return _nodeLookup;
-1 12172 },
-1 12173 nodeSerializer: function nodeSerializer() {
-1 12174 return node_serializer_default;
-1 12175 },
-1 12176 nodeSorter: function nodeSorter() {
-1 12177 return node_sorter_default;
-1 12178 },
-1 12179 parseCrossOriginStylesheet: function parseCrossOriginStylesheet() {
-1 12180 return parse_crossorigin_stylesheet_default;
-1 12181 },
-1 12182 parseSameOriginStylesheet: function parseSameOriginStylesheet() {
-1 12183 return parse_sameorigin_stylesheet_default;
-1 12184 },
-1 12185 parseStylesheet: function parseStylesheet() {
-1 12186 return parse_stylesheet_default;
-1 12187 },
-1 12188 performanceTimer: function performanceTimer() {
-1 12189 return performance_timer_default;
-1 12190 },
-1 12191 pollyfillElementsFromPoint: function pollyfillElementsFromPoint() {
-1 12192 return _pollyfillElementsFromPoint;
-1 12193 },
-1 12194 preload: function preload() {
-1 12195 return _preload;
-1 12196 },
-1 12197 preloadCssom: function preloadCssom() {
-1 12198 return preload_cssom_default;
-1 12199 },
-1 12200 preloadMedia: function preloadMedia() {
-1 12201 return preload_media_default;
-1 12202 },
-1 12203 processMessage: function processMessage() {
-1 12204 return process_message_default;
-1 12205 },
-1 12206 publishMetaData: function publishMetaData() {
-1 12207 return _publishMetaData;
-1 12208 },
-1 12209 querySelectorAll: function querySelectorAll() {
-1 12210 return query_selector_all_default;
-1 12211 },
-1 12212 querySelectorAllFilter: function querySelectorAllFilter() {
-1 12213 return query_selector_all_filter_default;
-1 12214 },
-1 12215 queue: function queue() {
-1 12216 return queue_default;
-1 12217 },
-1 12218 respondable: function respondable() {
-1 12219 return _respondable;
-1 12220 },
-1 12221 ruleShouldRun: function ruleShouldRun() {
-1 12222 return rule_should_run_default;
-1 12223 },
-1 12224 select: function select() {
-1 12225 return _select;
-1 12226 },
-1 12227 sendCommandToFrame: function sendCommandToFrame() {
-1 12228 return _sendCommandToFrame;
-1 12229 },
-1 12230 setScrollState: function setScrollState() {
-1 12231 return set_scroll_state_default;
-1 12232 },
-1 12233 shadowSelect: function shadowSelect() {
-1 12234 return _shadowSelect;
-1 12235 },
-1 12236 shadowSelectAll: function shadowSelectAll() {
-1 12237 return _shadowSelectAll;
-1 12238 },
-1 12239 shouldPreload: function shouldPreload() {
-1 12240 return _shouldPreload;
-1 12241 },
-1 12242 toArray: function toArray() {
-1 12243 return to_array_default;
-1 12244 },
-1 12245 tokenList: function tokenList() {
-1 12246 return token_list_default;
-1 12247 },
-1 12248 uniqueArray: function uniqueArray() {
-1 12249 return unique_array_default;
-1 12250 },
-1 12251 uuid: function uuid() {
-1 12252 return uuid_default;
-1 12253 },
-1 12254 validInputTypes: function validInputTypes() {
-1 12255 return valid_input_type_default;
-1 12256 },
-1 12257 validLangs: function validLangs() {
-1 12258 return _validLangs;
13236 12259 }
13237 -1 return ancestors.concat(getOverflowHiddenAncestors(vNode.parent));
13238 12260 });
13239 -1 var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors;
13240 -1 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;
13241 -1 var clipPathRegex = /(\w+)\((\d+)/;
13242 -1 function nativelyHidden(vNode) {
13243 -1 return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName);
13244 -1 }
13245 -1 function displayHidden(vNode) {
13246 -1 if (vNode.props.nodeName === 'area') {
13247 -1 return false;
-1 12261 function aggregate(map, values2, initial) {
-1 12262 values2 = values2.slice();
-1 12263 if (initial) {
-1 12264 values2.push(initial);
13248 12265 }
13249 -1 return vNode.getComputedStylePropertyValue('display') === 'none';
13250 -1 }
13251 -1 function visibilityHidden(vNode) {
13252 -1 var _ref8 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref8.isAncestor;
13253 -1 return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility'));
13254 -1 }
13255 -1 function contentVisibiltyHidden(vNode) {
13256 -1 var _ref9 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref9.isAncestor;
13257 -1 return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden';
13258 -1 }
13259 -1 function ariaHidden(vNode) {
13260 -1 return vNode.attr('aria-hidden') === 'true';
13261 -1 }
13262 -1 function opacityHidden(vNode) {
13263 -1 return vNode.getComputedStylePropertyValue('opacity') === '0';
-1 12266 var sorting = values2.map(function(val) {
-1 12267 return map.indexOf(val);
-1 12268 }).sort();
-1 12269 return map[sorting.pop()];
13264 12270 }
13265 -1 function scrollHidden(vNode) {
13266 -1 var scroll = _getScroll(vNode.actualNode);
13267 -1 var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));
13268 -1 var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));
13269 -1 return !!scroll && (elHeight === 0 || elWidth === 0);
-1 12271 var aggregate_default = aggregate;
-1 12272 var CANTTELL_PRIO = constants_default.CANTTELL_PRIO, FAIL_PRIO = constants_default.FAIL_PRIO;
-1 12273 var checkMap = [];
-1 12274 checkMap[constants_default.PASS_PRIO] = true;
-1 12275 checkMap[constants_default.CANTTELL_PRIO] = null;
-1 12276 checkMap[constants_default.FAIL_PRIO] = false;
-1 12277 var checkTypes = [ 'any', 'all', 'none' ];
-1 12278 function anyAllNone(obj, functor) {
-1 12279 return checkTypes.reduce(function(out, type2) {
-1 12280 out[type2] = (obj[type2] || []).map(function(val) {
-1 12281 return functor(val, type2);
-1 12282 });
-1 12283 return out;
-1 12284 }, {});
13270 12285 }
13271 -1 function overflowHidden(vNode) {
13272 -1 var _ref10 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref10.isAncestor;
13273 -1 if (isAncestor) {
13274 -1 return false;
13275 -1 }
13276 -1 var rect = vNode.boundingClientRect;
13277 -1 var nodes = get_overflow_hidden_ancestors_default(vNode);
13278 -1 if (!nodes.length) {
13279 -1 return false;
13280 -1 }
13281 -1 return nodes.some(function(node) {
13282 -1 var nodeRect = node.boundingClientRect;
13283 -1 if (nodeRect.width < 2 || nodeRect.height < 2) {
13284 -1 return true;
-1 12286 function aggregateChecks(nodeResOriginal) {
-1 12287 var nodeResult = Object.assign({}, nodeResOriginal);
-1 12288 anyAllNone(nodeResult, function(check, type2) {
-1 12289 var i = typeof check.result === 'undefined' ? -1 : checkMap.indexOf(check.result);
-1 12290 check.priority = i !== -1 ? i : constants_default.CANTTELL_PRIO;
-1 12291 if (type2 === 'none') {
-1 12292 if (check.priority === constants_default.PASS_PRIO) {
-1 12293 check.priority = constants_default.FAIL_PRIO;
-1 12294 } else if (check.priority === constants_default.FAIL_PRIO) {
-1 12295 check.priority = constants_default.PASS_PRIO;
-1 12296 }
13285 12297 }
13286 -1 return !_rectsOverlap(rect, nodeRect);
13287 12298 });
13288 -1 }
13289 -1 function clipHidden(vNode) {
13290 -1 var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex);
13291 -1 var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex);
13292 -1 if (matchesClip && matchesClip.length === 5) {
13293 -1 var position = vNode.getComputedStylePropertyValue('position');
13294 -1 if ([ 'fixed', 'absolute' ].includes(position)) {
13295 -1 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;
13296 -1 }
-1 12299 var priorities = {
-1 12300 all: nodeResult.all.reduce(function(a2, b2) {
-1 12301 return Math.max(a2, b2.priority);
-1 12302 }, 0),
-1 12303 none: nodeResult.none.reduce(function(a2, b2) {
-1 12304 return Math.max(a2, b2.priority);
-1 12305 }, 0),
-1 12306 any: nodeResult.any.reduce(function(a2, b2) {
-1 12307 return Math.min(a2, b2.priority);
-1 12308 }, 4) % 4
-1 12309 };
-1 12310 nodeResult.priority = Math.max(priorities.all, priorities.none, priorities.any);
-1 12311 var impacts = [];
-1 12312 checkTypes.forEach(function(type2) {
-1 12313 nodeResult[type2] = nodeResult[type2].filter(function(check) {
-1 12314 return check.priority === nodeResult.priority && check.priority === priorities[type2];
-1 12315 });
-1 12316 nodeResult[type2].forEach(function(check) {
-1 12317 return impacts.push(check.impact);
-1 12318 });
-1 12319 });
-1 12320 if ([ CANTTELL_PRIO, FAIL_PRIO ].includes(nodeResult.priority)) {
-1 12321 nodeResult.impact = aggregate_default(constants_default.impact, impacts);
-1 12322 } else {
-1 12323 nodeResult.impact = null;
13297 12324 }
13298 -1 if (matchesClipPath) {
13299 -1 var type = matchesClipPath[1];
13300 -1 var value = parseInt(matchesClipPath[2], 10);
13301 -1 switch (type) {
13302 -1 case 'inset':
13303 -1 return value >= 50;
13304 -1
13305 -1 case 'circle':
13306 -1 return value === 0;
13307 -1
13308 -1 default:
13309 -1 }
13310 -1 }
13311 -1 return false;
-1 12325 anyAllNone(nodeResult, function(c4) {
-1 12326 delete c4.result;
-1 12327 delete c4.priority;
-1 12328 });
-1 12329 nodeResult.result = constants_default.results[nodeResult.priority];
-1 12330 delete nodeResult.priority;
-1 12331 return nodeResult;
13312 12332 }
13313 -1 function areaHidden(vNode, visibleFunction) {
13314 -1 var mapEl = closest_default(vNode, 'map');
13315 -1 if (!mapEl) {
13316 -1 return true;
-1 12333 var aggregate_checks_default = aggregateChecks;
-1 12334 function _finalizeRuleResult(ruleResult) {
-1 12335 var rule = axe._audit.rules.find(function(_ref) {
-1 12336 var id = _ref.id;
-1 12337 return id === ruleResult.id;
-1 12338 });
-1 12339 if (rule && rule.impact) {
-1 12340 ruleResult.nodes.forEach(function(node) {
-1 12341 [ 'any', 'all', 'none' ].forEach(function(checkType) {
-1 12342 (node[checkType] || []).forEach(function(checkResult) {
-1 12343 checkResult.impact = rule.impact;
-1 12344 });
-1 12345 });
-1 12346 });
13317 12347 }
13318 -1 var mapElName = mapEl.attr('name');
13319 -1 if (!mapElName) {
13320 -1 return true;
-1 12348 Object.assign(ruleResult, aggregate_node_results_default(ruleResult.nodes));
-1 12349 delete ruleResult.nodes;
-1 12350 return ruleResult;
-1 12351 }
-1 12352 function aggregateNodeResults(nodeResults) {
-1 12353 var ruleResult = {};
-1 12354 nodeResults = nodeResults.map(function(nodeResult) {
-1 12355 if (nodeResult.any && nodeResult.all && nodeResult.none) {
-1 12356 return aggregate_checks_default(nodeResult);
-1 12357 } else if (Array.isArray(nodeResult.node)) {
-1 12358 return _finalizeRuleResult(nodeResult);
-1 12359 } else {
-1 12360 throw new TypeError('Invalid Result type');
-1 12361 }
-1 12362 });
-1 12363 if (nodeResults && nodeResults.length) {
-1 12364 var resultList = nodeResults.map(function(node) {
-1 12365 return node.result;
-1 12366 });
-1 12367 ruleResult.result = aggregate_default(constants_default.results, resultList, ruleResult.result);
-1 12368 } else {
-1 12369 ruleResult.result = 'inapplicable';
13321 12370 }
13322 -1 var mapElRootNode = get_root_node_default(vNode.actualNode);
13323 -1 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {
13324 -1 return true;
-1 12371 constants_default.resultGroups.forEach(function(group) {
-1 12372 return ruleResult[group] = [];
-1 12373 });
-1 12374 nodeResults.forEach(function(nodeResult) {
-1 12375 var groupName = constants_default.resultGroupMap[nodeResult.result];
-1 12376 ruleResult[groupName].push(nodeResult);
-1 12377 });
-1 12378 var impactGroup = constants_default.FAIL_GROUP;
-1 12379 if (ruleResult[impactGroup].length === 0) {
-1 12380 impactGroup = constants_default.CANTTELL_GROUP;
13325 12381 }
13326 -1 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));
13327 -1 if (!refs || !refs.length) {
13328 -1 return true;
-1 12382 if (ruleResult[impactGroup].length > 0) {
-1 12383 var impactList = ruleResult[impactGroup].map(function(failure) {
-1 12384 return failure.impact;
-1 12385 });
-1 12386 ruleResult.impact = aggregate_default(constants_default.impact, impactList) || null;
-1 12387 } else {
-1 12388 ruleResult.impact = null;
13329 12389 }
13330 -1 return refs.some(function(ref) {
13331 -1 return !visibleFunction(ref);
-1 12390 return ruleResult;
-1 12391 }
-1 12392 var aggregate_node_results_default = aggregateNodeResults;
-1 12393 function copyToGroup(resultObject, subResult, group) {
-1 12394 var resultCopy = Object.assign({}, subResult);
-1 12395 resultCopy.nodes = (resultCopy[group] || []).concat();
-1 12396 constants_default.resultGroups.forEach(function(resultGroup) {
-1 12397 delete resultCopy[resultGroup];
13332 12398 });
-1 12399 resultObject[group].push(resultCopy);
13333 12400 }
13334 -1 function detailsHidden(vNode) {
13335 -1 var _vNode$parent;
13336 -1 if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') {
-1 12401 function aggregateResult(results) {
-1 12402 var resultObject = {};
-1 12403 constants_default.resultGroups.forEach(function(groupName) {
-1 12404 return resultObject[groupName] = [];
-1 12405 });
-1 12406 results.forEach(function(subResult) {
-1 12407 if (subResult.error) {
-1 12408 copyToGroup(resultObject, subResult, constants_default.CANTTELL_GROUP);
-1 12409 } else if (subResult.result === constants_default.NA) {
-1 12410 copyToGroup(resultObject, subResult, constants_default.NA_GROUP);
-1 12411 } else {
-1 12412 constants_default.resultGroups.forEach(function(group) {
-1 12413 if (Array.isArray(subResult[group]) && subResult[group].length > 0) {
-1 12414 copyToGroup(resultObject, subResult, group);
-1 12415 }
-1 12416 });
-1 12417 }
-1 12418 });
-1 12419 return resultObject;
-1 12420 }
-1 12421 var aggregate_result_default = aggregateResult;
-1 12422 function areStylesSet(el, styles, stopAt) {
-1 12423 var styl = window.getComputedStyle(el, null);
-1 12424 if (!styl) {
13337 12425 return false;
13338 12426 }
13339 -1 if (vNode.props.nodeName === 'summary') {
13340 -1 var firstSummary = vNode.parent.children.find(function(node) {
13341 -1 return node.props.nodeName === 'summary';
13342 -1 });
13343 -1 if (firstSummary === vNode) {
13344 -1 return false;
-1 12427 for (var i = 0; i < styles.length; ++i) {
-1 12428 var att = styles[i];
-1 12429 if (styl.getPropertyValue(att.property) === att.value) {
-1 12430 return true;
13345 12431 }
13346 12432 }
13347 -1 return !vNode.parent.hasAttr('open');
13348 -1 }
13349 -1 var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ];
13350 -1 function _isHiddenForEveryone(vNode) {
13351 -1 var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref11.skipAncestors, _ref11$isAncestor = _ref11.isAncestor, isAncestor = _ref11$isAncestor === void 0 ? false : _ref11$isAncestor;
13352 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
13353 -1 if (skipAncestors) {
13354 -1 return isHiddenSelf(vNode, isAncestor);
-1 12433 if (!el.parentNode || el.nodeName.toUpperCase() === stopAt.toUpperCase()) {
-1 12434 return false;
13355 12435 }
13356 -1 return isHiddenAncestors(vNode, isAncestor);
-1 12436 return areStylesSet(el.parentNode, styles, stopAt);
13357 12437 }
13358 -1 var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) {
13359 -1 if (nativelyHidden(vNode)) {
13360 -1 return true;
-1 12438 var are_styles_set_default = areStylesSet;
-1 12439 function assert(bool, message) {
-1 12440 if (!bool) {
-1 12441 throw new Error(message);
13361 12442 }
13362 -1 if (!vNode.actualNode) {
13363 -1 return false;
-1 12443 }
-1 12444 var assert_default = assert;
-1 12445 function toArray(thing) {
-1 12446 return Array.prototype.slice.call(thing);
-1 12447 }
-1 12448 var to_array_default = toArray;
-1 12449 function escapeSelector(value) {
-1 12450 var string = String(value);
-1 12451 var length = string.length;
-1 12452 var index = -1;
-1 12453 var codeUnit;
-1 12454 var result = '';
-1 12455 var firstCodeUnit = string.charCodeAt(0);
-1 12456 while (++index < length) {
-1 12457 codeUnit = string.charCodeAt(index);
-1 12458 if (codeUnit == 0) {
-1 12459 result += '\ufffd';
-1 12460 continue;
-1 12461 }
-1 12462 if (codeUnit >= 1 && codeUnit <= 31 || codeUnit == 127 || index == 0 && codeUnit >= 48 && codeUnit <= 57 || index == 1 && codeUnit >= 48 && codeUnit <= 57 && firstCodeUnit == 45) {
-1 12463 result += '\\' + codeUnit.toString(16) + ' ';
-1 12464 continue;
-1 12465 }
-1 12466 if (index == 0 && length == 1 && codeUnit == 45) {
-1 12467 result += '\\' + string.charAt(index);
-1 12468 continue;
-1 12469 }
-1 12470 if (codeUnit >= 128 || codeUnit == 45 || codeUnit == 95 || codeUnit >= 48 && codeUnit <= 57 || codeUnit >= 65 && codeUnit <= 90 || codeUnit >= 97 && codeUnit <= 122) {
-1 12471 result += string.charAt(index);
-1 12472 continue;
-1 12473 }
-1 12474 result += '\\' + string.charAt(index);
13364 12475 }
13365 -1 if (hiddenMethods.some(function(method) {
13366 -1 return method(vNode, {
13367 -1 isAncestor: isAncestor
13368 -1 });
13369 -1 })) {
13370 -1 return true;
-1 12476 return result;
-1 12477 }
-1 12478 var escape_selector_default = escapeSelector;
-1 12479 function isMostlyNumbers() {
-1 12480 var str = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-1 12481 return str.length !== 0 && (str.match(/[0-9]/g) || '').length >= str.length / 2;
-1 12482 }
-1 12483 function splitString(str, splitIndex) {
-1 12484 return [ str.substring(0, splitIndex), str.substring(splitIndex) ];
-1 12485 }
-1 12486 function trimRight(str) {
-1 12487 return str.replace(/\s+$/, '');
-1 12488 }
-1 12489 function uriParser(url) {
-1 12490 var original = url;
-1 12491 var protocol = '', domain = '', port = '', path = '', query = '', hash = '';
-1 12492 if (url.includes('#')) {
-1 12493 var _splitString = splitString(url, url.indexOf('#'));
-1 12494 var _splitString2 = _slicedToArray(_splitString, 2);
-1 12495 url = _splitString2[0];
-1 12496 hash = _splitString2[1];
13371 12497 }
13372 -1 if (!vNode.actualNode.isConnected) {
13373 -1 return true;
-1 12498 if (url.includes('?')) {
-1 12499 var _splitString3 = splitString(url, url.indexOf('?'));
-1 12500 var _splitString4 = _slicedToArray(_splitString3, 2);
-1 12501 url = _splitString4[0];
-1 12502 query = _splitString4[1];
13374 12503 }
13375 -1 return false;
13376 -1 });
13377 -1 var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) {
13378 -1 if (isHiddenSelf(vNode, isAncestor)) {
13379 -1 return true;
-1 12504 if (url.includes('://')) {
-1 12505 var _url$split = url.split('://');
-1 12506 var _url$split2 = _slicedToArray(_url$split, 2);
-1 12507 protocol = _url$split2[0];
-1 12508 url = _url$split2[1];
-1 12509 var _splitString5 = splitString(url, url.indexOf('/'));
-1 12510 var _splitString6 = _slicedToArray(_splitString5, 2);
-1 12511 domain = _splitString6[0];
-1 12512 url = _splitString6[1];
-1 12513 } else if (url.substr(0, 2) === '//') {
-1 12514 url = url.substr(2);
-1 12515 var _splitString7 = splitString(url, url.indexOf('/'));
-1 12516 var _splitString8 = _slicedToArray(_splitString7, 2);
-1 12517 domain = _splitString8[0];
-1 12518 url = _splitString8[1];
13380 12519 }
13381 -1 if (!vNode.parent) {
13382 -1 return false;
-1 12520 if (domain.substr(0, 4) === 'www.') {
-1 12521 domain = domain.substr(4);
13383 12522 }
13384 -1 return isHiddenAncestors(vNode.parent, true);
13385 -1 });
13386 -1 function getComposedParent(element) {
13387 -1 if (element.assignedSlot) {
13388 -1 return getComposedParent(element.assignedSlot);
13389 -1 } else if (element.parentNode) {
13390 -1 var parentNode = element.parentNode;
13391 -1 if (parentNode.nodeType === 1) {
13392 -1 return parentNode;
13393 -1 } else if (parentNode.host) {
13394 -1 return parentNode.host;
13395 -1 }
-1 12523 if (domain && domain.includes(':')) {
-1 12524 var _splitString9 = splitString(domain, domain.indexOf(':'));
-1 12525 var _splitString10 = _slicedToArray(_splitString9, 2);
-1 12526 domain = _splitString10[0];
-1 12527 port = _splitString10[1];
13396 12528 }
13397 -1 return null;
-1 12529 path = url;
-1 12530 return {
-1 12531 original: original,
-1 12532 protocol: protocol,
-1 12533 domain: domain,
-1 12534 port: port,
-1 12535 path: path,
-1 12536 query: query,
-1 12537 hash: hash
-1 12538 };
13398 12539 }
13399 -1 var get_composed_parent_default = getComposedParent;
13400 -1 function getScrollOffset(element) {
13401 -1 if (!element.nodeType && element.document) {
13402 -1 element = element.document;
-1 12540 function getFriendlyUriEnd() {
-1 12541 var uri = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
-1 12542 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 12543 if (uri.length <= 1 || uri.substr(0, 5) === 'data:' || uri.substr(0, 11) === 'javascript:' || uri.includes('?')) {
-1 12544 return;
13403 12545 }
13404 -1 if (element.nodeType === 9) {
13405 -1 var docElement = element.documentElement, body = element.body;
13406 -1 return {
13407 -1 left: docElement && docElement.scrollLeft || body && body.scrollLeft || 0,
13408 -1 top: docElement && docElement.scrollTop || body && body.scrollTop || 0
13409 -1 };
-1 12546 var currentDomain = options.currentDomain, _options$maxLength = options.maxLength, maxLength = _options$maxLength === void 0 ? 25 : _options$maxLength;
-1 12547 var _uriParser = uriParser(uri), path = _uriParser.path, domain = _uriParser.domain, hash = _uriParser.hash;
-1 12548 var pathEnd = path.substr(path.substr(0, path.length - 2).lastIndexOf('/') + 1);
-1 12549 if (hash) {
-1 12550 if (pathEnd && (pathEnd + hash).length <= maxLength) {
-1 12551 return trimRight(pathEnd + hash);
-1 12552 } else if (pathEnd.length < 2 && hash.length > 2 && hash.length <= maxLength) {
-1 12553 return trimRight(hash);
-1 12554 } else {
-1 12555 return;
-1 12556 }
-1 12557 } else if (domain && domain.length < maxLength && path.length <= 1) {
-1 12558 return trimRight(domain + path);
13410 12559 }
13411 -1 return {
13412 -1 left: element.scrollLeft,
13413 -1 top: element.scrollTop
13414 -1 };
13415 -1 }
13416 -1 var get_scroll_offset_default = getScrollOffset;
13417 -1 function getElementCoordinates(element) {
13418 -1 var scrollOffset = get_scroll_offset_default(document), xOffset = scrollOffset.left, yOffset = scrollOffset.top, coords = element.getBoundingClientRect();
13419 -1 return {
13420 -1 top: coords.top + yOffset,
13421 -1 right: coords.right + xOffset,
13422 -1 bottom: coords.bottom + yOffset,
13423 -1 left: coords.left + xOffset,
13424 -1 width: coords.right - coords.left,
13425 -1 height: coords.bottom - coords.top
13426 -1 };
13427 -1 }
13428 -1 var get_element_coordinates_default = getElementCoordinates;
13429 -1 function getViewportSize(win) {
13430 -1 var doc = win.document;
13431 -1 var docElement = doc.documentElement;
13432 -1 if (win.innerWidth) {
13433 -1 return {
13434 -1 width: win.innerWidth,
13435 -1 height: win.innerHeight
13436 -1 };
-1 12560 if (path === '/' + pathEnd && domain && currentDomain && domain !== currentDomain && (domain + path).length <= maxLength) {
-1 12561 return trimRight(domain + path);
13437 12562 }
13438 -1 if (docElement) {
13439 -1 return {
13440 -1 width: docElement.clientWidth,
13441 -1 height: docElement.clientHeight
13442 -1 };
-1 12563 var lastDotIndex = pathEnd.lastIndexOf('.');
-1 12564 if ((lastDotIndex === -1 || lastDotIndex > 1) && (lastDotIndex !== -1 || pathEnd.length > 2) && pathEnd.length <= maxLength && !pathEnd.match(/index(\.[a-zA-Z]{2-4})?/) && !isMostlyNumbers(pathEnd)) {
-1 12565 return trimRight(pathEnd);
13443 12566 }
13444 -1 var body = doc.body;
13445 -1 return {
13446 -1 width: body.clientWidth,
13447 -1 height: body.clientHeight
13448 -1 };
13449 12567 }
13450 -1 var get_viewport_size_default = getViewportSize;
13451 -1 function noParentScrolled(element, offset) {
13452 -1 element = get_composed_parent_default(element);
13453 -1 while (element && element.nodeName.toLowerCase() !== 'html') {
13454 -1 if (element.scrollTop) {
13455 -1 offset += element.scrollTop;
13456 -1 if (offset >= 0) {
13457 -1 return false;
-1 12568 var get_friendly_uri_end_default = getFriendlyUriEnd;
-1 12569 function getNodeAttributes(node) {
-1 12570 if (node.attributes instanceof window.NamedNodeMap) {
-1 12571 return node.attributes;
-1 12572 }
-1 12573 return node.cloneNode(false).attributes;
-1 12574 }
-1 12575 var get_node_attributes_default = getNodeAttributes;
-1 12576 var matchesSelector = function() {
-1 12577 var method;
-1 12578 function getMethod(node) {
-1 12579 var index, candidate, candidates = [ 'matches', 'matchesSelector', 'mozMatchesSelector', 'webkitMatchesSelector', 'msMatchesSelector' ], length = candidates.length;
-1 12580 for (index = 0; index < length; index++) {
-1 12581 candidate = candidates[index];
-1 12582 if (node[candidate]) {
-1 12583 return candidate;
13458 12584 }
13459 12585 }
13460 -1 element = get_composed_parent_default(element);
13461 12586 }
13462 -1 return true;
-1 12587 return function(node, selector) {
-1 12588 if (!method || !node[method]) {
-1 12589 method = getMethod(node);
-1 12590 }
-1 12591 if (node[method]) {
-1 12592 return node[method](selector);
-1 12593 }
-1 12594 return false;
-1 12595 };
-1 12596 }();
-1 12597 var element_matches_default = matchesSelector;
-1 12598 var import_memoizee = __toModule(require_memoizee());
-1 12599 axe._memoizedFns = [];
-1 12600 function memoizeImplementation(fn) {
-1 12601 var memoized = (0, import_memoizee['default'])(fn);
-1 12602 axe._memoizedFns.push(memoized);
-1 12603 return memoized;
13463 12604 }
13464 -1 function isOffscreen(element) {
13465 -1 var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref12.isAncestor;
13466 -1 if (isAncestor) {
-1 12605 var memoize_default = memoizeImplementation;
-1 12606 var isXHTML = memoize_default(function(doc) {
-1 12607 if (!(doc !== null && doc !== void 0 && doc.createElement)) {
13467 12608 return false;
13468 12609 }
13469 -1 element = element instanceof abstract_virtual_node_default ? element.actualNode : element;
13470 -1 if (!element) {
13471 -1 return void 0;
-1 12610 return doc.createElement('A').localName === 'A';
-1 12611 });
-1 12612 var is_xhtml_default = isXHTML;
-1 12613 function _getShadowSelector(generateSelector2, elm) {
-1 12614 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 12615 if (!elm) {
-1 12616 return '';
13472 12617 }
13473 -1 var leftBoundary;
13474 -1 var docElement = document.documentElement;
13475 -1 var styl = window.getComputedStyle(element);
13476 -1 var dir = window.getComputedStyle(document.body || docElement).getPropertyValue('direction');
13477 -1 var coords = get_element_coordinates_default(element);
13478 -1 if (coords.bottom < 0 && (noParentScrolled(element, coords.bottom) || styl.position === 'absolute')) {
13479 -1 return true;
-1 12618 var doc = elm.getRootNode && elm.getRootNode() || document;
-1 12619 if (doc.nodeType !== 11) {
-1 12620 return generateSelector2(elm, options, doc);
13480 12621 }
13481 -1 if (coords.left === 0 && coords.right === 0) {
13482 -1 return false;
-1 12622 var stack = [];
-1 12623 while (doc.nodeType === 11) {
-1 12624 if (!doc.host) {
-1 12625 return '';
-1 12626 }
-1 12627 stack.unshift({
-1 12628 elm: elm,
-1 12629 doc: doc
-1 12630 });
-1 12631 elm = doc.host;
-1 12632 doc = elm.getRootNode();
13483 12633 }
13484 -1 if (dir === 'ltr') {
13485 -1 if (coords.right <= 0) {
13486 -1 return true;
-1 12634 stack.unshift({
-1 12635 elm: elm,
-1 12636 doc: doc
-1 12637 });
-1 12638 return stack.map(function(item) {
-1 12639 return generateSelector2(item.elm, options, item.doc);
-1 12640 });
-1 12641 }
-1 12642 var ignoredAttributes = [ 'class', 'style', 'id', 'selected', 'checked', 'disabled', 'tabindex', 'aria-checked', 'aria-selected', 'aria-invalid', 'aria-activedescendant', 'aria-busy', 'aria-disabled', 'aria-expanded', 'aria-grabbed', 'aria-pressed', 'aria-valuenow' ];
-1 12643 var MAXATTRIBUTELENGTH = 31;
-1 12644 var attrCharsRegex = /([\\"])/g;
-1 12645 var newlineChars = /(\r\n|\r|\n)/g;
-1 12646 function escapeAttribute(str) {
-1 12647 return str.replace(attrCharsRegex, '\\$1').replace(newlineChars, '\\a ');
-1 12648 }
-1 12649 function getAttributeNameValue(node, at) {
-1 12650 var name = at.name;
-1 12651 var atnv;
-1 12652 if (name.indexOf('href') !== -1 || name.indexOf('src') !== -1) {
-1 12653 var friendly = get_friendly_uri_end_default(node.getAttribute(name));
-1 12654 if (friendly) {
-1 12655 atnv = escape_selector_default(at.name) + '$="' + escapeAttribute(friendly) + '"';
-1 12656 } else {
-1 12657 atnv = escape_selector_default(at.name) + '="' + escapeAttribute(node.getAttribute(name)) + '"';
13487 12658 }
13488 12659 } else {
13489 -1 leftBoundary = Math.max(docElement.scrollWidth, get_viewport_size_default(window).width);
13490 -1 if (coords.left >= leftBoundary) {
13491 -1 return true;
13492 -1 }
-1 12660 atnv = escape_selector_default(name) + '="' + escapeAttribute(at.value) + '"';
13493 12661 }
13494 -1 return false;
-1 12662 return atnv;
13495 12663 }
13496 -1 var is_offscreen_default = isOffscreen;
13497 -1 var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ];
13498 -1 function _isVisibleOnScreen(vNode) {
13499 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
13500 -1 return isVisibleOnScreenVirtual(vNode);
-1 12664 function countSort(a2, b2) {
-1 12665 return a2.count < b2.count ? -1 : a2.count === b2.count ? 0 : 1;
13501 12666 }
13502 -1 var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) {
13503 -1 if (vNode.actualNode && vNode.props.nodeName === 'area') {
13504 -1 return !areaHidden(vNode, isVisibleOnScreenVirtual);
13505 -1 }
13506 -1 if (_isHiddenForEveryone(vNode, {
13507 -1 skipAncestors: true,
13508 -1 isAncestor: isAncestor
13509 -1 })) {
13510 -1 return false;
-1 12667 function filterAttributes(at) {
-1 12668 return !ignoredAttributes.includes(at.name) && at.name.indexOf(':') === -1 && (!at.value || at.value.length < MAXATTRIBUTELENGTH);
-1 12669 }
-1 12670 function _getSelectorData(domTree) {
-1 12671 var data = {
-1 12672 classes: {},
-1 12673 tags: {},
-1 12674 attributes: {}
-1 12675 };
-1 12676 domTree = Array.isArray(domTree) ? domTree : [ domTree ];
-1 12677 var currentLevel = domTree.slice();
-1 12678 var stack = [];
-1 12679 var _loop2 = function _loop2() {
-1 12680 var current = currentLevel.pop();
-1 12681 var node = current.actualNode;
-1 12682 if (!!node.querySelectorAll) {
-1 12683 var tag = node.nodeName;
-1 12684 if (data.tags[tag]) {
-1 12685 data.tags[tag]++;
-1 12686 } else {
-1 12687 data.tags[tag] = 1;
-1 12688 }
-1 12689 if (node.classList) {
-1 12690 Array.from(node.classList).forEach(function(cl) {
-1 12691 var ind = escape_selector_default(cl);
-1 12692 if (data.classes[ind]) {
-1 12693 data.classes[ind]++;
-1 12694 } else {
-1 12695 data.classes[ind] = 1;
-1 12696 }
-1 12697 });
-1 12698 }
-1 12699 if (node.hasAttributes()) {
-1 12700 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
-1 12701 var atnv = getAttributeNameValue(node, at);
-1 12702 if (atnv) {
-1 12703 if (data.attributes[atnv]) {
-1 12704 data.attributes[atnv]++;
-1 12705 } else {
-1 12706 data.attributes[atnv] = 1;
-1 12707 }
-1 12708 }
-1 12709 });
-1 12710 }
-1 12711 }
-1 12712 if (current.children.length) {
-1 12713 stack.push(currentLevel);
-1 12714 currentLevel = current.children.slice();
-1 12715 }
-1 12716 while (!currentLevel.length && stack.length) {
-1 12717 currentLevel = stack.pop();
-1 12718 }
-1 12719 };
-1 12720 while (currentLevel.length) {
-1 12721 _loop2();
13511 12722 }
13512 -1 if (vNode.actualNode && hiddenMethods2.some(function(method) {
13513 -1 return method(vNode, {
13514 -1 isAncestor: isAncestor
-1 12723 return data;
-1 12724 }
-1 12725 function uncommonClasses(node, selectorData) {
-1 12726 var retVal = [];
-1 12727 var classData = selectorData.classes;
-1 12728 var tagData = selectorData.tags;
-1 12729 if (node.classList) {
-1 12730 Array.from(node.classList).forEach(function(cl) {
-1 12731 var ind = escape_selector_default(cl);
-1 12732 if (classData[ind] < tagData[node.nodeName]) {
-1 12733 retVal.push({
-1 12734 name: ind,
-1 12735 count: classData[ind],
-1 12736 species: 'class'
-1 12737 });
-1 12738 }
13515 12739 });
13516 -1 })) {
13517 -1 return false;
13518 12740 }
13519 -1 if (!vNode.parent) {
13520 -1 return true;
-1 12741 return retVal.sort(countSort);
-1 12742 }
-1 12743 function getNthChildString(elm, selector) {
-1 12744 var siblings = elm.parentNode && Array.from(elm.parentNode.children || '') || [];
-1 12745 var hasMatchingSiblings = siblings.find(function(sibling) {
-1 12746 return sibling !== elm && element_matches_default(sibling, selector);
-1 12747 });
-1 12748 if (hasMatchingSiblings) {
-1 12749 var nthChild = 1 + siblings.indexOf(elm);
-1 12750 return ':nth-child(' + nthChild + ')';
-1 12751 } else {
-1 12752 return '';
13521 12753 }
13522 -1 return isVisibleOnScreenVirtual(vNode.parent, true);
13523 -1 });
13524 -1 function _getBoundingRect(rectA, rectB) {
13525 -1 var top = Math.min(rectA.top, rectB.top);
13526 -1 var right = Math.max(rectA.right, rectB.right);
13527 -1 var bottom = Math.max(rectA.bottom, rectB.bottom);
13528 -1 var left = Math.min(rectA.left, rectB.left);
13529 -1 return new window.DOMRect(left, top, right - left, bottom - top);
13530 12754 }
13531 -1 function _isPointInRect(_ref13, _ref14) {
13532 -1 var x = _ref13.x, y = _ref13.y;
13533 -1 var top = _ref14.top, right = _ref14.right, bottom = _ref14.bottom, left = _ref14.left;
13534 -1 return y >= top && x <= right && y <= bottom && x >= left;
-1 12755 function getElmId(elm) {
-1 12756 if (!elm.getAttribute('id')) {
-1 12757 return;
-1 12758 }
-1 12759 var doc = elm.getRootNode && elm.getRootNode() || document;
-1 12760 var id = '#' + escape_selector_default(elm.getAttribute('id') || '');
-1 12761 if (!id.match(/player_uid_/) && doc.querySelectorAll(id).length === 1) {
-1 12762 return id;
-1 12763 }
13535 12764 }
13536 -1 function _createGrid() {
13537 -1 var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
13538 -1 var rootGrid = arguments.length > 1 ? arguments[1] : undefined;
13539 -1 var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
13540 -1 if (cache_default.get('gridCreated') && !parentVNode) {
13541 -1 return constants_default.gridSize;
-1 12765 function getBaseSelector(elm) {
-1 12766 var xhtml = is_xhtml_default(document);
-1 12767 return escape_selector_default(xhtml ? elm.localName : elm.nodeName.toLowerCase());
-1 12768 }
-1 12769 function uncommonAttributes(node, selectorData) {
-1 12770 var retVal = [];
-1 12771 var attData = selectorData.attributes;
-1 12772 var tagData = selectorData.tags;
-1 12773 if (node.hasAttributes()) {
-1 12774 Array.from(get_node_attributes_default(node)).filter(filterAttributes).forEach(function(at) {
-1 12775 var atnv = getAttributeNameValue(node, at);
-1 12776 if (atnv && attData[atnv] < tagData[node.nodeName]) {
-1 12777 retVal.push({
-1 12778 name: atnv,
-1 12779 count: attData[atnv],
-1 12780 species: 'attribute'
-1 12781 });
-1 12782 }
-1 12783 });
13542 12784 }
13543 -1 cache_default.set('gridCreated', true);
13544 -1 if (!parentVNode) {
13545 -1 var _rootGrid;
13546 -1 var vNode = get_node_from_tree_default(document.documentElement);
13547 -1 if (!vNode) {
13548 -1 vNode = new virtual_node_default(document.documentElement);
13549 -1 }
13550 -1 vNode._stackingOrder = [ 0 ];
13551 -1 (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();
13552 -1 addNodeToGrid(rootGrid, vNode);
13553 -1 if (_getScroll(vNode.actualNode)) {
13554 -1 var subGrid = new Grid(vNode);
13555 -1 vNode._subGrid = subGrid;
-1 12785 return retVal.sort(countSort);
-1 12786 }
-1 12787 function getThreeLeastCommonFeatures(elm, selectorData) {
-1 12788 var selector = '';
-1 12789 var features;
-1 12790 var clss = uncommonClasses(elm, selectorData);
-1 12791 var atts = uncommonAttributes(elm, selectorData);
-1 12792 if (clss.length && clss[0].count === 1) {
-1 12793 features = [ clss[0] ];
-1 12794 } else if (atts.length && atts[0].count === 1) {
-1 12795 features = [ atts[0] ];
-1 12796 selector = getBaseSelector(elm);
-1 12797 } else {
-1 12798 features = clss.concat(atts);
-1 12799 features.sort(countSort);
-1 12800 features = features.slice(0, 3);
-1 12801 if (!features.some(function(feat) {
-1 12802 return feat.species === 'class';
-1 12803 })) {
-1 12804 selector = getBaseSelector(elm);
-1 12805 } else {
-1 12806 features.sort(function(a2, b2) {
-1 12807 return a2.species !== b2.species && a2.species === 'class' ? -1 : a2.species === b2.species ? 0 : 1;
-1 12808 });
13556 12809 }
13557 12810 }
13558 -1 var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false);
13559 -1 var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode;
13560 -1 while (node) {
13561 -1 var _vNode = get_node_from_tree_default(node);
13562 -1 if (node.parentElement) {
13563 -1 parentVNode = get_node_from_tree_default(node.parentElement);
13564 -1 } else if (node.parentNode && get_node_from_tree_default(node.parentNode)) {
13565 -1 parentVNode = get_node_from_tree_default(node.parentNode);
13566 -1 }
13567 -1 if (!_vNode) {
13568 -1 _vNode = new axe.VirtualNode(node, parentVNode);
-1 12811 return selector += features.reduce(function(val, feat) {
-1 12812 switch (feat.species) {
-1 12813 case 'class':
-1 12814 return val + '.' + feat.name;
-1 12815
-1 12816 case 'attribute':
-1 12817 return val + '[' + feat.name + ']';
13569 12818 }
13570 -1 _vNode._stackingOrder = getStackingOrder(_vNode, parentVNode);
13571 -1 var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);
13572 -1 var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
13573 -1 if (_getScroll(_vNode.actualNode)) {
13574 -1 var _subGrid = new Grid(_vNode);
13575 -1 _vNode._subGrid = _subGrid;
-1 12819 return val;
-1 12820 }, '');
-1 12821 }
-1 12822 function generateSelector(elm, options, doc) {
-1 12823 if (!axe._selectorData) {
-1 12824 throw new Error('Expect axe._selectorData to be set up');
-1 12825 }
-1 12826 var _options$toRoot = options.toRoot, toRoot = _options$toRoot === void 0 ? false : _options$toRoot;
-1 12827 var selector;
-1 12828 var similar;
-1 12829 do {
-1 12830 var features = getElmId(elm);
-1 12831 if (!features) {
-1 12832 features = getThreeLeastCommonFeatures(elm, axe._selectorData);
-1 12833 features += getNthChildString(elm, features);
13576 12834 }
13577 -1 var rect = _vNode.boundingClientRect;
13578 -1 if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) {
13579 -1 addNodeToGrid(grid, _vNode);
-1 12835 if (selector) {
-1 12836 selector = features + ' > ' + selector;
-1 12837 } else {
-1 12838 selector = features;
13580 12839 }
13581 -1 if (is_shadow_root_default(node)) {
13582 -1 _createGrid(node.shadowRoot, grid, _vNode);
-1 12840 if (!similar) {
-1 12841 similar = Array.from(doc.querySelectorAll(selector));
-1 12842 } else {
-1 12843 similar = similar.filter(function(item) {
-1 12844 return element_matches_default(item, selector);
-1 12845 });
13583 12846 }
13584 -1 node = treeWalker.nextNode();
-1 12847 elm = elm.parentElement;
-1 12848 } while ((similar.length > 1 || toRoot) && elm && elm.nodeType !== 11);
-1 12849 if (similar.length === 1) {
-1 12850 return selector;
-1 12851 } else if (selector.indexOf(' > ') !== -1) {
-1 12852 return ':root' + selector.substring(selector.indexOf(' > '));
13585 12853 }
13586 -1 return constants_default.gridSize;
-1 12854 return ':root';
13587 12855 }
13588 -1 function isStackingContext(vNode, parentVNode) {
13589 -1 var position = vNode.getComputedStylePropertyValue('position');
13590 -1 var zIndex = vNode.getComputedStylePropertyValue('z-index');
13591 -1 if (position === 'fixed' || position === 'sticky') {
13592 -1 return true;
13593 -1 }
13594 -1 if (zIndex !== 'auto' && position !== 'static') {
13595 -1 return true;
13596 -1 }
13597 -1 if (vNode.getComputedStylePropertyValue('opacity') !== '1') {
13598 -1 return true;
13599 -1 }
13600 -1 var transform = vNode.getComputedStylePropertyValue('-webkit-transform') || vNode.getComputedStylePropertyValue('-ms-transform') || vNode.getComputedStylePropertyValue('transform') || 'none';
13601 -1 if (transform !== 'none') {
13602 -1 return true;
13603 -1 }
13604 -1 var mixBlendMode = vNode.getComputedStylePropertyValue('mix-blend-mode');
13605 -1 if (mixBlendMode && mixBlendMode !== 'normal') {
13606 -1 return true;
13607 -1 }
13608 -1 var filter = vNode.getComputedStylePropertyValue('filter');
13609 -1 if (filter && filter !== 'none') {
13610 -1 return true;
13611 -1 }
13612 -1 var perspective = vNode.getComputedStylePropertyValue('perspective');
13613 -1 if (perspective && perspective !== 'none') {
13614 -1 return true;
13615 -1 }
13616 -1 var clipPath = vNode.getComputedStylePropertyValue('clip-path');
13617 -1 if (clipPath && clipPath !== 'none') {
13618 -1 return true;
13619 -1 }
13620 -1 var mask = vNode.getComputedStylePropertyValue('-webkit-mask') || vNode.getComputedStylePropertyValue('mask') || 'none';
13621 -1 if (mask !== 'none') {
13622 -1 return true;
13623 -1 }
13624 -1 var maskImage = vNode.getComputedStylePropertyValue('-webkit-mask-image') || vNode.getComputedStylePropertyValue('mask-image') || 'none';
13625 -1 if (maskImage !== 'none') {
13626 -1 return true;
13627 -1 }
13628 -1 var maskBorder = vNode.getComputedStylePropertyValue('-webkit-mask-border') || vNode.getComputedStylePropertyValue('mask-border') || 'none';
13629 -1 if (maskBorder !== 'none') {
13630 -1 return true;
-1 12856 function _getSelector(elm, options) {
-1 12857 return _getShadowSelector(generateSelector, elm, options);
-1 12858 }
-1 12859 function generateAncestry(node) {
-1 12860 var nodeName2 = node.nodeName.toLowerCase();
-1 12861 var parent = node.parentElement;
-1 12862 if (!parent) {
-1 12863 return nodeName2;
13631 12864 }
13632 -1 if (vNode.getComputedStylePropertyValue('isolation') === 'isolate') {
13633 -1 return true;
-1 12865 var nthChild = '';
-1 12866 if (nodeName2 !== 'head' && nodeName2 !== 'body' && parent.children.length > 1) {
-1 12867 var index = Array.prototype.indexOf.call(parent.children, node) + 1;
-1 12868 nthChild = ':nth-child('.concat(index, ')');
13634 12869 }
13635 -1 var willChange = vNode.getComputedStylePropertyValue('will-change');
13636 -1 if (willChange === 'transform' || willChange === 'opacity') {
13637 -1 return true;
-1 12870 return generateAncestry(parent) + ' > ' + nodeName2 + nthChild;
-1 12871 }
-1 12872 function _getAncestry(elm, options) {
-1 12873 return _getShadowSelector(generateAncestry, elm, options);
-1 12874 }
-1 12875 function getXPathArray(node, path) {
-1 12876 var sibling, count;
-1 12877 if (!node) {
-1 12878 return [];
13638 12879 }
13639 -1 if (vNode.getComputedStylePropertyValue('-webkit-overflow-scrolling') === 'touch') {
13640 -1 return true;
-1 12880 if (!path && node.nodeType === 9) {
-1 12881 path = [ {
-1 12882 str: 'html'
-1 12883 } ];
-1 12884 return path;
13641 12885 }
13642 -1 var contain = vNode.getComputedStylePropertyValue('contain');
13643 -1 if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) {
13644 -1 return true;
-1 12886 path = path || [];
-1 12887 if (node.parentNode && node.parentNode !== node) {
-1 12888 path = getXPathArray(node.parentNode, path);
13645 12889 }
13646 -1 if (zIndex !== 'auto' && parentVNode) {
13647 -1 var parentDsiplay = parentVNode.getComputedStylePropertyValue('display');
13648 -1 if ([ 'flex', 'inline-flex', 'inline flex', 'grid', 'inline-grid', 'inline grid' ].includes(parentDsiplay)) {
13649 -1 return true;
-1 12890 if (node.previousSibling) {
-1 12891 count = 1;
-1 12892 sibling = node.previousSibling;
-1 12893 do {
-1 12894 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
-1 12895 count++;
-1 12896 }
-1 12897 sibling = sibling.previousSibling;
-1 12898 } while (sibling);
-1 12899 if (count === 1) {
-1 12900 count = null;
13650 12901 }
-1 12902 } else if (node.nextSibling) {
-1 12903 sibling = node.nextSibling;
-1 12904 do {
-1 12905 if (sibling.nodeType === 1 && sibling.nodeName === node.nodeName) {
-1 12906 count = 1;
-1 12907 sibling = null;
-1 12908 } else {
-1 12909 count = null;
-1 12910 sibling = sibling.previousSibling;
-1 12911 }
-1 12912 } while (sibling);
13651 12913 }
13652 -1 return false;
13653 -1 }
13654 -1 function getStackingOrder(vNode, parentVNode) {
13655 -1 var stackingOrder = parentVNode._stackingOrder.slice();
13656 -1 var zIndex = vNode.getComputedStylePropertyValue('z-index');
13657 -1 var positioned = vNode.getComputedStylePropertyValue('position') !== 'static';
13658 -1 var floated = vNode.getComputedStylePropertyValue('float') !== 'none';
13659 -1 if (positioned && ![ 'auto', '0' ].includes(zIndex)) {
13660 -1 while (stackingOrder.find(function(value) {
13661 -1 return value % 1 !== 0;
13662 -1 })) {
13663 -1 var index = stackingOrder.findIndex(function(value) {
13664 -1 return value % 1 !== 0;
13665 -1 });
13666 -1 stackingOrder.splice(index, 1);
-1 12914 if (node.nodeType === 1) {
-1 12915 var element = {};
-1 12916 element.str = node.nodeName.toLowerCase();
-1 12917 var id = node.getAttribute && escape_selector_default(node.getAttribute('id'));
-1 12918 if (id && node.ownerDocument.querySelectorAll('#' + id).length === 1) {
-1 12919 element.id = node.getAttribute('id');
13667 12920 }
13668 -1 stackingOrder[stackingOrder.length - 1] = parseInt(zIndex);
13669 -1 }
13670 -1 if (isStackingContext(vNode, parentVNode)) {
13671 -1 stackingOrder.push(0);
13672 -1 } else if (positioned) {
13673 -1 stackingOrder.push(.5);
13674 -1 } else if (floated) {
13675 -1 stackingOrder.push(.25);
-1 12921 if (count > 1) {
-1 12922 element.count = count;
-1 12923 }
-1 12924 path.push(element);
13676 12925 }
13677 -1 return stackingOrder;
-1 12926 return path;
13678 12927 }
13679 -1 function findScrollRegionParent(vNode, parentVNode) {
13680 -1 var scrollRegionParent = null;
13681 -1 var checkedNodes = [ vNode ];
13682 -1 while (parentVNode) {
13683 -1 if (_getScroll(parentVNode.actualNode)) {
13684 -1 scrollRegionParent = parentVNode;
13685 -1 break;
13686 -1 }
13687 -1 if (parentVNode._scrollRegionParent) {
13688 -1 scrollRegionParent = parentVNode._scrollRegionParent;
13689 -1 break;
-1 12928 function xpathToString(xpathArray) {
-1 12929 return xpathArray.reduce(function(str, elm) {
-1 12930 if (elm.id) {
-1 12931 return '/'.concat(elm.str, '[@id=\'').concat(elm.id, '\']');
-1 12932 } else {
-1 12933 return str + '/'.concat(elm.str) + (elm.count > 0 ? '['.concat(elm.count, ']') : '');
13690 12934 }
13691 -1 checkedNodes.push(parentVNode);
13692 -1 parentVNode = get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode);
13693 -1 }
13694 -1 checkedNodes.forEach(function(vNode2) {
13695 -1 return vNode2._scrollRegionParent = scrollRegionParent;
13696 -1 });
13697 -1 return scrollRegionParent;
-1 12935 }, '');
13698 12936 }
13699 -1 function addNodeToGrid(grid, vNode) {
13700 -1 vNode.clientRects.forEach(function(rect) {
13701 -1 var _vNode$_grid;
13702 -1 (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid;
13703 -1 var gridRect = grid.getGridPositionOfRect(rect);
13704 -1 grid.loopGridPosition(gridRect, function(gridCell) {
13705 -1 if (!gridCell.includes(vNode)) {
13706 -1 gridCell.push(vNode);
13707 -1 }
13708 -1 });
13709 -1 });
-1 12937 function getXpath(node) {
-1 12938 var xpathArray = getXPathArray(node);
-1 12939 return xpathToString(xpathArray);
13710 12940 }
13711 -1 var Grid = function() {
13712 -1 function Grid() {
13713 -1 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
13714 -1 _classCallCheck(this, Grid);
13715 -1 this.container = container;
13716 -1 this.cells = [];
13717 -1 }
13718 -1 _createClass(Grid, [ {
13719 -1 key: 'toGridIndex',
13720 -1 value: function toGridIndex(num) {
13721 -1 return Math.floor(num / constants_default.gridSize);
13722 -1 }
13723 -1 }, {
13724 -1 key: 'getCellFromPoint',
13725 -1 value: function getCellFromPoint(_ref15) {
13726 -1 var _this$cells, _row;
13727 -1 var x = _ref15.x, y = _ref15.y;
13728 -1 assert_default(this.boundaries, 'Grid does not have cells added');
13729 -1 var rowIndex = this.toGridIndex(y);
13730 -1 var colIndex = this.toGridIndex(x);
13731 -1 assert_default(_isPointInRect({
13732 -1 y: rowIndex,
13733 -1 x: colIndex
13734 -1 }, this.boundaries), 'Element midpoint exceeds the grid bounds');
13735 -1 var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : [];
13736 -1 return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : [];
13737 -1 }
13738 -1 }, {
13739 -1 key: 'loopGridPosition',
13740 -1 value: function loopGridPosition(gridPosition, callback) {
13741 -1 var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom;
13742 -1 if (this.boundaries) {
13743 -1 gridPosition = _getBoundingRect(this.boundaries, gridPosition);
13744 -1 }
13745 -1 this.boundaries = gridPosition;
13746 -1 loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) {
13747 -1 loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) {
13748 -1 callback(gridCell, {
13749 -1 row: row,
13750 -1 col: col
13751 -1 });
13752 -1 });
13753 -1 });
13754 -1 }
13755 -1 }, {
13756 -1 key: 'getGridPositionOfRect',
13757 -1 value: function getGridPositionOfRect(_ref16) {
13758 -1 var top = _ref16.top, right = _ref16.right, bottom = _ref16.bottom, left = _ref16.left;
13759 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
13760 -1 top = this.toGridIndex(top - margin);
13761 -1 right = this.toGridIndex(right + margin - 1);
13762 -1 bottom = this.toGridIndex(bottom + margin - 1);
13763 -1 left = this.toGridIndex(left - margin);
13764 -1 return new window.DOMRect(left, top, right - left, bottom - top);
-1 12941 var get_xpath_default = getXpath;
-1 12942 var _cache = {};
-1 12943 var cache = {
-1 12944 set: function set(key, value) {
-1 12945 validateKey(key);
-1 12946 _cache[key] = value;
-1 12947 },
-1 12948 get: function get(key, creator) {
-1 12949 validateCreator(creator);
-1 12950 if (key in _cache) {
-1 12951 return _cache[key];
13765 12952 }
13766 -1 } ]);
13767 -1 return Grid;
13768 -1 }();
13769 -1 function loopNegativeIndexMatrix(matrix, start, end, callback) {
13770 -1 var _matrix$_negativeInde;
13771 -1 (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0;
13772 -1 if (start < matrix._negativeIndex) {
13773 -1 for (var _i5 = 0; _i5 < matrix._negativeIndex - start; _i5++) {
13774 -1 matrix.splice(0, 0, []);
-1 12953 if (typeof creator === 'function') {
-1 12954 var value = creator();
-1 12955 assert_default(value !== void 0, 'Cache creator function should not return undefined');
-1 12956 this.set(key, value);
-1 12957 return _cache[key];
13775 12958 }
13776 -1 matrix._negativeIndex = start;
13777 -1 }
13778 -1 var startOffset = start - matrix._negativeIndex;
13779 -1 var endOffset = end - matrix._negativeIndex;
13780 -1 for (var index = startOffset; index <= endOffset; index++) {
13781 -1 var _index, _matrix$_index;
13782 -1 (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = [];
13783 -1 callback(matrix[index], index + matrix._negativeIndex);
-1 12959 },
-1 12960 clear: function clear() {
-1 12961 _cache = {};
13784 12962 }
-1 12963 };
-1 12964 function validateKey(key) {
-1 12965 assert_default(typeof key === 'string', 'key must be a string, ' + _typeof(key) + ' given');
-1 12966 assert_default(key !== '', 'key must not be empty');
13785 12967 }
13786 -1 function _findNearbyElms(vNode) {
13787 -1 var _vNode$_grid2, _vNode$_grid2$cells;
13788 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
13789 -1 _createGrid();
13790 -1 if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2$cells = _vNode$_grid2.cells) !== null && _vNode$_grid2$cells !== void 0 && _vNode$_grid2$cells.length)) {
13791 -1 return [];
13792 -1 }
13793 -1 var rect = vNode.boundingClientRect;
13794 -1 var grid = vNode._grid;
13795 -1 var selfIsFixed = hasFixedPosition(vNode);
13796 -1 var gridPosition = grid.getGridPositionOfRect(rect, margin);
13797 -1 var neighbors = [];
13798 -1 grid.loopGridPosition(gridPosition, function(vNeighbors) {
13799 -1 var _iterator2 = _createForOfIteratorHelper(vNeighbors), _step2;
13800 -1 try {
13801 -1 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
13802 -1 var vNeighbor = _step2.value;
13803 -1 if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) {
13804 -1 neighbors.push(vNeighbor);
13805 -1 }
13806 -1 }
13807 -1 } catch (err) {
13808 -1 _iterator2.e(err);
13809 -1 } finally {
13810 -1 _iterator2.f();
13811 -1 }
13812 -1 });
13813 -1 return neighbors;
-1 12968 function validateCreator(creator) {
-1 12969 assert_default(typeof creator === 'function' || typeof creator === 'undefined', 'creator must be a function or undefined, ' + _typeof(creator) + ' given');
13814 12970 }
13815 -1 var hasFixedPosition = memoize_default(function(vNode) {
13816 -1 if (!vNode) {
13817 -1 return false;
13818 -1 }
13819 -1 if (vNode.getComputedStylePropertyValue('position') === 'fixed') {
13820 -1 return true;
13821 -1 }
13822 -1 return hasFixedPosition(vNode.parent);
13823 -1 });
13824 -1 var angularSkipLinkRegex = /^\/\#/;
13825 -1 var angularRouterLinkRegex = /^#[!/]/;
13826 -1 function _isCurrentPageLink(anchor) {
13827 -1 var _window$location;
13828 -1 var href = anchor.getAttribute('href');
13829 -1 if (!href || href === '#') {
13830 -1 return false;
13831 -1 }
13832 -1 if (angularSkipLinkRegex.test(href)) {
13833 -1 return true;
13834 -1 }
13835 -1 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;
13836 -1 if (angularRouterLinkRegex.test(hash)) {
13837 -1 return false;
-1 12971 var cache_default = cache;
-1 12972 function getNodeFromTree(vNode, node) {
-1 12973 var el = node || vNode;
-1 12974 return cache_default.get('nodeMap') ? cache_default.get('nodeMap').get(el) : null;
-1 12975 }
-1 12976 var get_node_from_tree_default = getNodeFromTree;
-1 12977 var CACHE_KEY = 'DqElm.RunOptions';
-1 12978 function truncate(str, maxLength) {
-1 12979 maxLength = maxLength || 300;
-1 12980 if (str.length > maxLength) {
-1 12981 var index = str.indexOf('>');
-1 12982 str = str.substring(0, index + 1);
13838 12983 }
13839 -1 if (href.charAt(0) === '#') {
13840 -1 return true;
-1 12984 return str;
-1 12985 }
-1 12986 function getSource(element) {
-1 12987 if (!(element !== null && element !== void 0 && element.outerHTML)) {
-1 12988 return '';
13841 12989 }
13842 -1 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {
13843 -1 return null;
-1 12990 var source = element.outerHTML;
-1 12991 if (!source && typeof window.XMLSerializer === 'function') {
-1 12992 source = new window.XMLSerializer().serializeToString(element);
13844 12993 }
13845 -1 var currentPageUrl = window.location.origin + window.location.pathname;
13846 -1 var url;
13847 -1 if (!hostname) {
13848 -1 url = window.location.origin;
13849 -1 } else {
13850 -1 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');
-1 12994 return truncate(source || '');
-1 12995 }
-1 12996 function DqElement(elm) {
-1 12997 var _this$spec$selector, _this$_virtualNode;
-1 12998 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
-1 12999 var spec = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 13000 if (!options) {
-1 13001 var _cache_default$get;
-1 13002 options = (_cache_default$get = cache_default.get(CACHE_KEY)) !== null && _cache_default$get !== void 0 ? _cache_default$get : {};
13851 13003 }
13852 -1 if (!pathname) {
13853 -1 url += window.location.pathname;
-1 13004 this.spec = spec;
-1 13005 if (elm instanceof abstract_virtual_node_default) {
-1 13006 this._virtualNode = elm;
-1 13007 this._element = elm.actualNode;
13854 13008 } else {
13855 -1 url += (pathname[0] !== '/' ? '/' : '') + pathname;
13856 -1 }
13857 -1 return url === currentPageUrl;
13858 -1 }
13859 -1 function getElementByReference(node, attr) {
13860 -1 var fragment = node.getAttribute(attr);
13861 -1 if (!fragment) {
13862 -1 return null;
-1 13009 this._element = elm;
-1 13010 this._virtualNode = get_node_from_tree_default(elm);
13863 13011 }
13864 -1 if (attr === 'href' && !_isCurrentPageLink(node)) {
13865 -1 return null;
-1 13012 this.fromFrame = ((_this$spec$selector = this.spec.selector) === null || _this$spec$selector === void 0 ? void 0 : _this$spec$selector.length) > 1;
-1 13013 this._includeElementInJson = options.elementRef;
-1 13014 if (options.absolutePaths) {
-1 13015 this._options = {
-1 13016 toRoot: true
-1 13017 };
13866 13018 }
13867 -1 if (fragment.indexOf('#') !== -1) {
13868 -1 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));
-1 13019 this.nodeIndexes = [];
-1 13020 if (Array.isArray(this.spec.nodeIndexes)) {
-1 13021 this.nodeIndexes = this.spec.nodeIndexes;
-1 13022 } else if (typeof ((_this$_virtualNode = this._virtualNode) === null || _this$_virtualNode === void 0 ? void 0 : _this$_virtualNode.nodeIndex) === 'number') {
-1 13023 this.nodeIndexes = [ this._virtualNode.nodeIndex ];
13869 13024 }
13870 -1 var candidate = document.getElementById(fragment);
13871 -1 if (candidate) {
13872 -1 return candidate;
-1 13025 this.source = null;
-1 13026 if (!axe._audit.noHtml) {
-1 13027 var _this$spec$source;
-1 13028 this.source = (_this$spec$source = this.spec.source) !== null && _this$spec$source !== void 0 ? _this$spec$source : getSource(this._element);
13873 13029 }
13874 -1 candidate = document.getElementsByName(fragment);
13875 -1 if (candidate.length) {
13876 -1 return candidate[0];
13877 -1 }
13878 -1 return null;
13879 13030 }
13880 -1 var get_element_by_reference_default = getElementByReference;
13881 -1 function _visuallySort(a, b) {
13882 -1 _createGrid();
13883 -1 var length = Math.max(a._stackingOrder.length, b._stackingOrder.length);
13884 -1 for (var _i6 = 0; _i6 < length; _i6++) {
13885 -1 if (typeof b._stackingOrder[_i6] === 'undefined') {
13886 -1 return -1;
13887 -1 } else if (typeof a._stackingOrder[_i6] === 'undefined') {
13888 -1 return 1;
13889 -1 }
13890 -1 if (b._stackingOrder[_i6] > a._stackingOrder[_i6]) {
13891 -1 return 1;
13892 -1 }
13893 -1 if (b._stackingOrder[_i6] < a._stackingOrder[_i6]) {
13894 -1 return -1;
-1 13031 DqElement.prototype = {
-1 13032 get selector() {
-1 13033 return this.spec.selector || [ _getSelector(this.element, this._options) ];
-1 13034 },
-1 13035 get ancestry() {
-1 13036 return this.spec.ancestry || [ _getAncestry(this.element) ];
-1 13037 },
-1 13038 get xpath() {
-1 13039 return this.spec.xpath || [ get_xpath_default(this.element) ];
-1 13040 },
-1 13041 get element() {
-1 13042 return this._element;
-1 13043 },
-1 13044 toJSON: function toJSON() {
-1 13045 var spec = {
-1 13046 selector: this.selector,
-1 13047 source: this.source,
-1 13048 xpath: this.xpath,
-1 13049 ancestry: this.ancestry,
-1 13050 nodeIndexes: this.nodeIndexes,
-1 13051 fromFrame: this.fromFrame
-1 13052 };
-1 13053 if (this._includeElementInJson) {
-1 13054 spec.element = this._element;
13895 13055 }
-1 13056 return spec;
13896 13057 }
13897 -1 var aNode = a.actualNode;
13898 -1 var bNode = b.actualNode;
13899 -1 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {
13900 -1 var boundaries = [];
13901 -1 while (aNode) {
13902 -1 boundaries.push({
13903 -1 root: aNode.getRootNode(),
13904 -1 node: aNode
-1 13058 };
-1 13059 DqElement.fromFrame = function fromFrame(node, options, frame) {
-1 13060 var spec = DqElement.mergeSpecs(node, frame);
-1 13061 return new DqElement(frame.element, options, spec);
-1 13062 };
-1 13063 DqElement.mergeSpecs = function mergeSpecs(child, parentFrame) {
-1 13064 return _extends({}, child, {
-1 13065 selector: [].concat(_toConsumableArray(parentFrame.selector), _toConsumableArray(child.selector)),
-1 13066 ancestry: [].concat(_toConsumableArray(parentFrame.ancestry), _toConsumableArray(child.ancestry)),
-1 13067 xpath: [].concat(_toConsumableArray(parentFrame.xpath), _toConsumableArray(child.xpath)),
-1 13068 nodeIndexes: [].concat(_toConsumableArray(parentFrame.nodeIndexes), _toConsumableArray(child.nodeIndexes)),
-1 13069 fromFrame: true
-1 13070 });
-1 13071 };
-1 13072 DqElement.setRunOptions = function setRunOptions(_ref2) {
-1 13073 var elementRef = _ref2.elementRef, absolutePaths = _ref2.absolutePaths;
-1 13074 cache_default.set(CACHE_KEY, {
-1 13075 elementRef: elementRef,
-1 13076 absolutePaths: absolutePaths
-1 13077 });
-1 13078 };
-1 13079 var dq_element_default = DqElement;
-1 13080 function checkHelper(checkResult, options, resolve, reject) {
-1 13081 return {
-1 13082 isAsync: false,
-1 13083 async: function async() {
-1 13084 this.isAsync = true;
-1 13085 return function(result) {
-1 13086 if (result instanceof Error === false) {
-1 13087 checkResult.result = result;
-1 13088 resolve(checkResult);
-1 13089 } else {
-1 13090 reject(result);
-1 13091 }
-1 13092 };
-1 13093 },
-1 13094 data: function data(_data) {
-1 13095 checkResult.data = _data;
-1 13096 },
-1 13097 relatedNodes: function relatedNodes(nodes) {
-1 13098 if (!window.Node) {
-1 13099 return;
-1 13100 }
-1 13101 if (nodes instanceof window.Node || nodes instanceof abstract_virtual_node_default) {
-1 13102 nodes = [ nodes ];
-1 13103 } else {
-1 13104 nodes = to_array_default(nodes);
-1 13105 }
-1 13106 checkResult.relatedNodes = [];
-1 13107 nodes.forEach(function(node) {
-1 13108 if (node instanceof abstract_virtual_node_default) {
-1 13109 node = node.actualNode;
-1 13110 }
-1 13111 if (node instanceof window.Node) {
-1 13112 var dqElm = new dq_element_default(node);
-1 13113 checkResult.relatedNodes.push(dqElm);
-1 13114 }
13905 13115 });
13906 -1 aNode = aNode.getRootNode().host;
13907 -1 }
13908 -1 while (bNode && !boundaries.find(function(boundary) {
13909 -1 return boundary.root === bNode.getRootNode();
13910 -1 })) {
13911 -1 bNode = bNode.getRootNode().host;
13912 -1 }
13913 -1 aNode = boundaries.find(function(boundary) {
13914 -1 return boundary.root === bNode.getRootNode();
13915 -1 }).node;
13916 -1 if (aNode === bNode) {
13917 -1 return a.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;
13918 13116 }
13919 -1 }
13920 -1 var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY;
13921 -1 var docPosition = aNode.compareDocumentPosition(bNode);
13922 -1 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
13923 -1 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;
13924 -1 var aPosition = getPositionOrder(a);
13925 -1 var bPosition = getPositionOrder(b);
13926 -1 if (aPosition === bPosition || isDescendant) {
13927 -1 return DOMOrder;
13928 -1 }
13929 -1 return bPosition - aPosition;
-1 13117 };
13930 13118 }
13931 -1 function getPositionOrder(vNode) {
13932 -1 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {
13933 -1 return 2;
13934 -1 }
13935 -1 if (isFloated(vNode)) {
13936 -1 return 1;
13937 -1 }
13938 -1 return 0;
-1 13119 var check_helper_default = checkHelper;
-1 13120 function _clone(obj) {
-1 13121 return cloneRecused(obj, new Map());
13939 13122 }
13940 -1 function isFloated(vNode) {
13941 -1 if (!vNode) {
13942 -1 return false;
-1 13123 function cloneRecused(obj, seen) {
-1 13124 var _window, _window2;
-1 13125 if (obj === null || _typeof(obj) !== 'object') {
-1 13126 return obj;
13943 13127 }
13944 -1 if (vNode._isFloated !== void 0) {
13945 -1 return vNode._isFloated;
-1 13128 if ((_window = window) !== null && _window !== void 0 && _window.Node && obj instanceof window.Node || (_window2 = window) !== null && _window2 !== void 0 && _window2.HTMLCollection && obj instanceof window.HTMLCollection || 'nodeName' in obj && 'nodeType' in obj && 'ownerDocument' in obj) {
-1 13129 return obj;
13946 13130 }
13947 -1 var floatStyle = vNode.getComputedStylePropertyValue('float');
13948 -1 if (floatStyle !== 'none') {
13949 -1 vNode._isFloated = true;
13950 -1 return true;
-1 13131 if (seen.has(obj)) {
-1 13132 return seen.get(obj);
13951 13133 }
13952 -1 var floated = isFloated(vNode.parent);
13953 -1 vNode._isFloated = floated;
13954 -1 return floated;
13955 -1 }
13956 -1 var math_exports = {};
13957 -1 __export(math_exports, {
13958 -1 getBoundingRect: function getBoundingRect() {
13959 -1 return _getBoundingRect;
13960 -1 },
13961 -1 getIntersectionRect: function getIntersectionRect() {
13962 -1 return _getIntersectionRect;
13963 -1 },
13964 -1 getOffset: function getOffset() {
13965 -1 return _getOffset;
13966 -1 },
13967 -1 getRectCenter: function getRectCenter() {
13968 -1 return _getRectCenter;
13969 -1 },
13970 -1 hasVisualOverlap: function hasVisualOverlap() {
13971 -1 return _hasVisualOverlap;
13972 -1 },
13973 -1 isPointInRect: function isPointInRect() {
13974 -1 return _isPointInRect;
13975 -1 },
13976 -1 rectsOverlap: function rectsOverlap() {
13977 -1 return _rectsOverlap;
13978 -1 },
13979 -1 splitRects: function splitRects() {
13980 -1 return _splitRects;
-1 13134 if (Array.isArray(obj)) {
-1 13135 var out2 = [];
-1 13136 seen.set(obj, out2);
-1 13137 obj.forEach(function(value) {
-1 13138 out2.push(cloneRecused(value, seen));
-1 13139 });
-1 13140 return out2;
13981 13141 }
13982 -1 });
13983 -1 function _getIntersectionRect(rect1, rect2) {
13984 -1 var leftX = Math.max(rect1.left, rect2.left);
13985 -1 var rightX = Math.min(rect1.right, rect2.right);
13986 -1 var topY = Math.max(rect1.top, rect2.top);
13987 -1 var bottomY = Math.min(rect1.bottom, rect2.bottom);
13988 -1 if (leftX >= rightX || topY >= bottomY) {
13989 -1 return null;
-1 13142 var out = {};
-1 13143 seen.set(obj, out);
-1 13144 for (var key in obj) {
-1 13145 out[key] = cloneRecused(obj[key], seen);
13990 13146 }
13991 -1 return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
-1 13147 return out;
13992 13148 }
13993 -1 function _getOffset(vNodeA, vNodeB) {
13994 -1 var rectA = vNodeA.boundingClientRect;
13995 -1 var rectB = vNodeB.boundingClientRect;
13996 -1 var pointA = getFarthestPoint(rectA, rectB);
13997 -1 var pointB = getClosestPoint(pointA, rectA, rectB);
13998 -1 return pointDistance(pointA, pointB);
13999 -1 }
14000 -1 function getFarthestPoint(rectA, rectB) {
14001 -1 var dimensionProps = [ [ 'x', 'left', 'right', 'width' ], [ 'y', 'top', 'bottom', 'height' ] ];
14002 -1 var farthestPoint = {};
14003 -1 dimensionProps.forEach(function(_ref17) {
14004 -1 var _ref18 = _slicedToArray(_ref17, 4), axis = _ref18[0], start = _ref18[1], end = _ref18[2], diameter = _ref18[3];
14005 -1 if (rectB[start] < rectA[start] && rectB[end] > rectA[end]) {
14006 -1 farthestPoint[axis] = rectA[start] + rectA[diameter] / 2;
14007 -1 return;
14008 -1 }
14009 -1 var centerB = rectB[start] + rectB[diameter] / 2;
14010 -1 var startDistance = Math.abs(centerB - rectA[start]);
14011 -1 var endDistance = Math.abs(centerB - rectA[end]);
14012 -1 if (startDistance >= endDistance) {
14013 -1 farthestPoint[axis] = rectA[start];
14014 -1 } else {
14015 -1 farthestPoint[axis] = rectA[end];
14016 -1 }
-1 13149 var import_css_selector_parser = __toModule(require_lib());
-1 13150 var parser = new import_css_selector_parser.CssSelectorParser();
-1 13151 parser.registerSelectorPseudos('not');
-1 13152 parser.registerSelectorPseudos('is');
-1 13153 parser.registerNestingOperators('>');
-1 13154 parser.registerAttrEqualityMods('^', '$', '*', '~');
-1 13155 var css_parser_default = parser;
-1 13156 function _matches(vNode, selector) {
-1 13157 var expressions = _convertSelector(selector);
-1 13158 return expressions.some(function(expression) {
-1 13159 return _matchesExpression(vNode, expression);
14017 13160 });
14018 -1 return farthestPoint;
14019 13161 }
14020 -1 function getClosestPoint(_ref19, ownRect, adjacentRect) {
14021 -1 var x = _ref19.x, y = _ref19.y;
14022 -1 if (pointInRect({
14023 -1 x: x,
14024 -1 y: y
14025 -1 }, adjacentRect)) {
14026 -1 var closestPoint = getCornerInAdjacentRect({
14027 -1 x: x,
14028 -1 y: y
14029 -1 }, ownRect, adjacentRect);
14030 -1 if (closestPoint !== null) {
14031 -1 return closestPoint;
14032 -1 }
14033 -1 adjacentRect = ownRect;
14034 -1 }
14035 -1 var _adjacentRect = adjacentRect, top = _adjacentRect.top, right = _adjacentRect.right, bottom = _adjacentRect.bottom, left = _adjacentRect.left;
14036 -1 var xAligned = x >= left && x <= right;
14037 -1 var yAligned = y >= top && y <= bottom;
14038 -1 var closestX = Math.abs(left - x) < Math.abs(right - x) ? left : right;
14039 -1 var closestY = Math.abs(top - y) < Math.abs(bottom - y) ? top : bottom;
14040 -1 if (!xAligned && yAligned) {
14041 -1 return {
14042 -1 x: closestX,
14043 -1 y: y
14044 -1 };
14045 -1 } else if (xAligned && !yAligned) {
14046 -1 return {
14047 -1 x: x,
14048 -1 y: closestY
14049 -1 };
14050 -1 } else if (!xAligned && !yAligned) {
14051 -1 return {
14052 -1 x: closestX,
14053 -1 y: closestY
14054 -1 };
14055 -1 }
14056 -1 if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
14057 -1 return {
14058 -1 x: closestX,
14059 -1 y: y
14060 -1 };
14061 -1 } else {
14062 -1 return {
14063 -1 x: x,
14064 -1 y: closestY
14065 -1 };
14066 -1 }
-1 13162 function matchesTag(vNode, exp) {
-1 13163 return vNode.props.nodeType === 1 && (exp.tag === '*' || vNode.props.nodeName === exp.tag);
14067 13164 }
14068 -1 function pointDistance(pointA, pointB) {
14069 -1 var xDistance = Math.abs(pointA.x - pointB.x);
14070 -1 var yDistance = Math.abs(pointA.y - pointB.y);
14071 -1 if (!xDistance || !yDistance) {
14072 -1 return xDistance || yDistance;
14073 -1 }
14074 -1 return Math.sqrt(Math.pow(xDistance, 2) + Math.pow(yDistance, 2));
14075 -1 }
14076 -1 function pointInRect(_ref20, rect) {
14077 -1 var x = _ref20.x, y = _ref20.y;
14078 -1 return y >= rect.top && x <= rect.right && y <= rect.bottom && x >= rect.left;
14079 -1 }
14080 -1 function getCornerInAdjacentRect(_ref21, ownRect, adjacentRect) {
14081 -1 var x = _ref21.x, y = _ref21.y;
14082 -1 var closestX, closestY;
14083 -1 if (x === ownRect.left && ownRect.right < adjacentRect.right) {
14084 -1 closestX = ownRect.right;
14085 -1 } else if (x === ownRect.right && ownRect.left > adjacentRect.left) {
14086 -1 closestX = ownRect.left;
14087 -1 }
14088 -1 if (y === ownRect.top && ownRect.bottom < adjacentRect.bottom) {
14089 -1 closestY = ownRect.bottom;
14090 -1 } else if (y === ownRect.bottom && ownRect.top > adjacentRect.top) {
14091 -1 closestY = ownRect.top;
14092 -1 }
14093 -1 if (!closestX && !closestY) {
14094 -1 return null;
14095 -1 } else if (!closestY) {
14096 -1 return {
14097 -1 x: closestX,
14098 -1 y: y
14099 -1 };
14100 -1 } else if (!closestX) {
14101 -1 return {
14102 -1 x: x,
14103 -1 y: closestY
14104 -1 };
14105 -1 }
14106 -1 if (Math.abs(x - closestX) < Math.abs(y - closestY)) {
14107 -1 return {
14108 -1 x: closestX,
14109 -1 y: y
14110 -1 };
14111 -1 } else {
14112 -1 return {
14113 -1 x: x,
14114 -1 y: closestY
14115 -1 };
14116 -1 }
-1 13165 function matchesClasses(vNode, exp) {
-1 13166 return !exp.classes || exp.classes.every(function(cl) {
-1 13167 return vNode.hasClass(cl.value);
-1 13168 });
14117 13169 }
14118 -1 function _getRectCenter(_ref22) {
14119 -1 var left = _ref22.left, top = _ref22.top, width = _ref22.width, height = _ref22.height;
14120 -1 return new window.DOMPoint(left + width / 2, top + height / 2);
-1 13170 function matchesAttributes(vNode, exp) {
-1 13171 return !exp.attributes || exp.attributes.every(function(att) {
-1 13172 var nodeAtt = vNode.attr(att.key);
-1 13173 return nodeAtt !== null && att.test(nodeAtt);
-1 13174 });
14121 13175 }
14122 -1 function _hasVisualOverlap(vNodeA, vNodeB) {
14123 -1 var rectA = vNodeA.boundingClientRect;
14124 -1 var rectB = vNodeB.boundingClientRect;
14125 -1 if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) {
14126 -1 return false;
14127 -1 }
14128 -1 return _visuallySort(vNodeA, vNodeB) > 0;
-1 13176 function matchesId(vNode, exp) {
-1 13177 return !exp.id || vNode.props.id === exp.id;
14129 13178 }
14130 -1 function _splitRects(outerRect, overlapRects) {
14131 -1 var uniqueRects = [ outerRect ];
14132 -1 var _iterator3 = _createForOfIteratorHelper(overlapRects), _step3;
14133 -1 try {
14134 -1 var _loop3 = function _loop3() {
14135 -1 var overlapRect = _step3.value;
14136 -1 uniqueRects = uniqueRects.reduce(function(uniqueRects2, inputRect) {
14137 -1 return uniqueRects2.concat(splitRect(inputRect, overlapRect));
14138 -1 }, []);
14139 -1 };
14140 -1 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
14141 -1 _loop3();
-1 13179 function matchesPseudos(target, exp) {
-1 13180 if (!exp.pseudos || exp.pseudos.every(function(pseudo) {
-1 13181 if (pseudo.name === 'not') {
-1 13182 return !pseudo.expressions.some(function(expression) {
-1 13183 return _matchesExpression(target, expression);
-1 13184 });
-1 13185 } else if (pseudo.name === 'is') {
-1 13186 return pseudo.expressions.some(function(expression) {
-1 13187 return _matchesExpression(target, expression);
-1 13188 });
14142 13189 }
14143 -1 } catch (err) {
14144 -1 _iterator3.e(err);
14145 -1 } finally {
14146 -1 _iterator3.f();
-1 13190 throw new Error('the pseudo selector ' + pseudo.name + ' has not yet been implemented');
-1 13191 })) {
-1 13192 return true;
14147 13193 }
14148 -1 return uniqueRects;
-1 13194 return false;
14149 13195 }
14150 -1 function splitRect(inputRect, clipRect) {
14151 -1 var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right;
14152 -1 var yAligned = top < clipRect.bottom && bottom > clipRect.top;
14153 -1 var xAligned = left < clipRect.right && right > clipRect.left;
14154 -1 var rects = [];
14155 -1 if (between(clipRect.top, top, bottom) && xAligned) {
14156 -1 rects.push({
14157 -1 top: top,
14158 -1 left: left,
14159 -1 bottom: clipRect.top,
14160 -1 right: right
14161 -1 });
14162 -1 }
14163 -1 if (between(clipRect.right, left, right) && yAligned) {
14164 -1 rects.push({
14165 -1 top: top,
14166 -1 left: clipRect.right,
14167 -1 bottom: bottom,
14168 -1 right: right
14169 -1 });
14170 -1 }
14171 -1 if (between(clipRect.bottom, top, bottom) && xAligned) {
14172 -1 rects.push({
14173 -1 top: clipRect.bottom,
14174 -1 right: right,
14175 -1 bottom: bottom,
14176 -1 left: left
14177 -1 });
14178 -1 }
14179 -1 if (between(clipRect.left, left, right) && yAligned) {
14180 -1 rects.push({
14181 -1 top: top,
14182 -1 left: left,
14183 -1 bottom: bottom,
14184 -1 right: clipRect.left
14185 -1 });
-1 13196 function matchExpression(vNode, expression) {
-1 13197 return matchesTag(vNode, expression) && matchesClasses(vNode, expression) && matchesAttributes(vNode, expression) && matchesId(vNode, expression) && matchesPseudos(vNode, expression);
-1 13198 }
-1 13199 var escapeRegExp = function() {
-1 13200 var from = /(?=[\-\[\]{}()*+?.\\\^$|,#\s])/g;
-1 13201 var to2 = '\\';
-1 13202 return function(string) {
-1 13203 return string.replace(from, to2);
-1 13204 };
-1 13205 }();
-1 13206 var reUnescape = /\\/g;
-1 13207 function convertAttributes(atts) {
-1 13208 if (!atts) {
-1 13209 return;
14186 13210 }
14187 -1 if (rects.length === 0) {
14188 -1 rects.push(inputRect);
-1 13211 return atts.map(function(att) {
-1 13212 var attributeKey = att.name.replace(reUnescape, '');
-1 13213 var attributeValue = (att.value || '').replace(reUnescape, '');
-1 13214 var test, regexp;
-1 13215 switch (att.operator) {
-1 13216 case '^=':
-1 13217 regexp = new RegExp('^' + escapeRegExp(attributeValue));
-1 13218 break;
-1 13219
-1 13220 case '$=':
-1 13221 regexp = new RegExp(escapeRegExp(attributeValue) + '$');
-1 13222 break;
-1 13223
-1 13224 case '~=':
-1 13225 regexp = new RegExp('(^|\\s)' + escapeRegExp(attributeValue) + '(\\s|$)');
-1 13226 break;
-1 13227
-1 13228 case '|=':
-1 13229 regexp = new RegExp('^' + escapeRegExp(attributeValue) + '(-|$)');
-1 13230 break;
-1 13231
-1 13232 case '=':
-1 13233 test = function test(value) {
-1 13234 return attributeValue === value;
-1 13235 };
-1 13236 break;
-1 13237
-1 13238 case '*=':
-1 13239 test = function test(value) {
-1 13240 return value && value.includes(attributeValue);
-1 13241 };
-1 13242 break;
-1 13243
-1 13244 case '!=':
-1 13245 test = function test(value) {
-1 13246 return attributeValue !== value;
-1 13247 };
-1 13248 break;
-1 13249
-1 13250 default:
-1 13251 test = function test(value) {
-1 13252 return value !== null;
-1 13253 };
-1 13254 }
-1 13255 if (attributeValue === '' && /^[*$^]=$/.test(att.operator)) {
-1 13256 test = function test() {
-1 13257 return false;
-1 13258 };
-1 13259 }
-1 13260 if (!test) {
-1 13261 test = function test(value) {
-1 13262 return value && regexp.test(value);
-1 13263 };
-1 13264 }
-1 13265 return {
-1 13266 key: attributeKey,
-1 13267 value: attributeValue,
-1 13268 type: typeof att.value === 'undefined' ? 'attrExist' : 'attrValue',
-1 13269 test: test
-1 13270 };
-1 13271 });
-1 13272 }
-1 13273 function convertClasses(classes) {
-1 13274 if (!classes) {
-1 13275 return;
14189 13276 }
14190 -1 return rects.map(computeRect);
-1 13277 return classes.map(function(className) {
-1 13278 className = className.replace(reUnescape, '');
-1 13279 return {
-1 13280 value: className,
-1 13281 regexp: new RegExp('(^|\\s)' + escapeRegExp(className) + '(\\s|$)')
-1 13282 };
-1 13283 });
14191 13284 }
14192 -1 var between = function between(num, min, max) {
14193 -1 return num > min && num < max;
14194 -1 };
14195 -1 function computeRect(baseRect) {
14196 -1 return _extends({}, baseRect, {
14197 -1 x: baseRect.left,
14198 -1 y: baseRect.top,
14199 -1 height: baseRect.bottom - baseRect.top,
14200 -1 width: baseRect.right - baseRect.left
-1 13285 function convertPseudos(pseudos) {
-1 13286 if (!pseudos) {
-1 13287 return;
-1 13288 }
-1 13289 return pseudos.map(function(p2) {
-1 13290 var expressions;
-1 13291 if ([ 'is', 'not' ].includes(p2.name)) {
-1 13292 expressions = p2.value;
-1 13293 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
-1 13294 expressions = convertExpressions(expressions);
-1 13295 }
-1 13296 return {
-1 13297 name: p2.name,
-1 13298 expressions: expressions,
-1 13299 value: p2.value
-1 13300 };
14201 13301 });
14202 13302 }
14203 -1 function getRectStack(grid, rect) {
14204 -1 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
14205 -1 var center = _getRectCenter(rect);
14206 -1 var gridCell = grid.getCellFromPoint(center) || [];
14207 -1 var floorX = Math.floor(center.x);
14208 -1 var floorY = Math.floor(center.y);
14209 -1 var stack = gridCell.filter(function(gridCellNode) {
14210 -1 return gridCellNode.clientRects.some(function(clientRect) {
14211 -1 var rectX = clientRect.left;
14212 -1 var rectY = clientRect.top;
14213 -1 return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY);
14214 -1 });
-1 13303 function convertExpressions(expressions) {
-1 13304 return expressions.map(function(exp) {
-1 13305 var newExp = [];
-1 13306 var rule = exp.rule;
-1 13307 while (rule) {
-1 13308 newExp.push({
-1 13309 tag: rule.tagName ? rule.tagName.toLowerCase() : '*',
-1 13310 combinator: rule.nestingOperator ? rule.nestingOperator : ' ',
-1 13311 id: rule.id,
-1 13312 attributes: convertAttributes(rule.attrs),
-1 13313 classes: convertClasses(rule.classNames),
-1 13314 pseudos: convertPseudos(rule.pseudos)
-1 13315 });
-1 13316 rule = rule.rule;
-1 13317 }
-1 13318 return newExp;
14215 13319 });
14216 -1 var gridContainer = grid.container;
14217 -1 if (gridContainer) {
14218 -1 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);
-1 13320 }
-1 13321 function _convertSelector(selector) {
-1 13322 var expressions = css_parser_default.parse(selector);
-1 13323 expressions = expressions.selectors ? expressions.selectors : [ expressions ];
-1 13324 return convertExpressions(expressions);
-1 13325 }
-1 13326 function optimizedMatchesExpression(vNode, expressions, index, matchAnyParent) {
-1 13327 if (!vNode) {
-1 13328 return false;
14219 13329 }
14220 -1 if (!recursed) {
14221 -1 stack = stack.sort(_visuallySort).map(function(vNode) {
14222 -1 return vNode.actualNode;
14223 -1 }).concat(document.documentElement).filter(function(node, index, array) {
14224 -1 return array.indexOf(node) === index;
14225 -1 });
-1 13330 var isArray = Array.isArray(expressions);
-1 13331 var expression = isArray ? expressions[index] : expressions;
-1 13332 var machedExpression = matchExpression(vNode, expression);
-1 13333 while (!machedExpression && matchAnyParent && vNode.parent) {
-1 13334 vNode = vNode.parent;
-1 13335 machedExpression = matchExpression(vNode, expression);
14226 13336 }
14227 -1 return stack;
-1 13337 if (index > 0) {
-1 13338 if ([ ' ', '>' ].includes(expression.combinator) === false) {
-1 13339 throw new Error('axe.utils.matchesExpression does not support the combinator: ' + expression.combinator);
-1 13340 }
-1 13341 machedExpression = machedExpression && optimizedMatchesExpression(vNode.parent, expressions, index - 1, expression.combinator === ' ');
-1 13342 }
-1 13343 return machedExpression;
14228 13344 }
14229 -1 function getElementStack(node) {
14230 -1 _createGrid();
14231 -1 var vNode = get_node_from_tree_default(node);
14232 -1 var grid = vNode._grid;
14233 -1 if (!grid) {
14234 -1 return [];
-1 13345 function _matchesExpression(vNode, expressions, matchAnyParent) {
-1 13346 return optimizedMatchesExpression(vNode, expressions, expressions.length - 1, matchAnyParent);
-1 13347 }
-1 13348 function closest(vNode, selector) {
-1 13349 while (vNode) {
-1 13350 if (_matches(vNode, selector)) {
-1 13351 return vNode;
-1 13352 }
-1 13353 if (typeof vNode.parent === 'undefined') {
-1 13354 throw new TypeError('Cannot resolve parent for non-DOM nodes');
-1 13355 }
-1 13356 vNode = vNode.parent;
14235 13357 }
14236 -1 return getRectStack(grid, vNode.boundingClientRect);
-1 13358 return null;
14237 13359 }
14238 -1 var get_element_stack_default = getElementStack;
14239 -1 function getTabbableElements(virtualNode) {
14240 -1 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
14241 -1 var tabbableElements = nodeAndDescendents.filter(function(vNode) {
14242 -1 var isFocusable2 = vNode.isFocusable;
14243 -1 var tabIndex = vNode.actualNode.getAttribute('tabindex');
14244 -1 tabIndex = tabIndex && !isNaN(parseInt(tabIndex, 10)) ? parseInt(tabIndex) : null;
14245 -1 return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;
14246 -1 });
14247 -1 return tabbableElements;
-1 13360 var closest_default = closest;
-1 13361 function noop() {}
-1 13362 function funcGuard(f) {
-1 13363 if (typeof f !== 'function') {
-1 13364 throw new TypeError('Queue methods require functions as arguments');
-1 13365 }
14248 13366 }
14249 -1 var get_tabbable_elements_default = getTabbableElements;
14250 -1 var text_exports = {};
14251 -1 __export(text_exports, {
14252 -1 accessibleText: function accessibleText() {
14253 -1 return accessible_text_default;
14254 -1 },
14255 -1 accessibleTextVirtual: function accessibleTextVirtual() {
14256 -1 return accessible_text_virtual_default;
14257 -1 },
14258 -1 autocomplete: function autocomplete() {
14259 -1 return _autocomplete;
14260 -1 },
14261 -1 formControlValue: function formControlValue() {
14262 -1 return form_control_value_default;
14263 -1 },
14264 -1 formControlValueMethods: function formControlValueMethods() {
14265 -1 return _formControlValueMethods;
14266 -1 },
14267 -1 hasUnicode: function hasUnicode() {
14268 -1 return has_unicode_default;
14269 -1 },
14270 -1 isHumanInterpretable: function isHumanInterpretable() {
14271 -1 return is_human_interpretable_default;
14272 -1 },
14273 -1 isIconLigature: function isIconLigature() {
14274 -1 return is_icon_ligature_default;
14275 -1 },
14276 -1 isValidAutocomplete: function isValidAutocomplete() {
14277 -1 return is_valid_autocomplete_default;
14278 -1 },
14279 -1 label: function label() {
14280 -1 return label_default;
14281 -1 },
14282 -1 labelText: function labelText() {
14283 -1 return label_text_default;
14284 -1 },
14285 -1 labelVirtual: function labelVirtual() {
14286 -1 return label_virtual_default2;
14287 -1 },
14288 -1 nativeElementType: function nativeElementType() {
14289 -1 return native_element_type_default;
14290 -1 },
14291 -1 nativeTextAlternative: function nativeTextAlternative() {
14292 -1 return native_text_alternative_default;
14293 -1 },
14294 -1 nativeTextMethods: function nativeTextMethods() {
14295 -1 return native_text_methods_default;
14296 -1 },
14297 -1 removeUnicode: function removeUnicode() {
14298 -1 return remove_unicode_default;
14299 -1 },
14300 -1 sanitize: function sanitize() {
14301 -1 return sanitize_default;
14302 -1 },
14303 -1 subtreeText: function subtreeText() {
14304 -1 return subtree_text_default;
14305 -1 },
14306 -1 titleText: function titleText() {
14307 -1 return title_text_default;
14308 -1 },
14309 -1 unsupported: function unsupported() {
14310 -1 return unsupported_default;
14311 -1 },
14312 -1 visible: function visible() {
14313 -1 return visible_default;
14314 -1 },
14315 -1 visibleTextNodes: function visibleTextNodes() {
14316 -1 return visible_text_nodes_default;
14317 -1 },
14318 -1 visibleVirtual: function visibleVirtual() {
14319 -1 return visible_virtual_default;
-1 13367 function queue() {
-1 13368 var tasks = [];
-1 13369 var started = 0;
-1 13370 var remaining = 0;
-1 13371 var completeQueue = noop;
-1 13372 var complete = false;
-1 13373 var err2;
-1 13374 var defaultFail = function defaultFail(e) {
-1 13375 err2 = e;
-1 13376 setTimeout(function() {
-1 13377 if (err2 !== void 0 && err2 !== null) {
-1 13378 log_default('Uncaught error (of queue)', err2);
-1 13379 }
-1 13380 }, 1);
-1 13381 };
-1 13382 var failed = defaultFail;
-1 13383 function createResolve(i) {
-1 13384 return function(r) {
-1 13385 tasks[i] = r;
-1 13386 remaining -= 1;
-1 13387 if (!remaining && completeQueue !== noop) {
-1 13388 complete = true;
-1 13389 completeQueue(tasks);
-1 13390 }
-1 13391 };
14320 13392 }
14321 -1 });
14322 -1 function idrefs(node, attr) {
14323 -1 node = node.actualNode || node;
14324 -1 try {
14325 -1 var doc = get_root_node_default2(node);
14326 -1 var result = [];
14327 -1 var attrValue = node.getAttribute(attr);
14328 -1 if (attrValue) {
14329 -1 attrValue = token_list_default(attrValue);
14330 -1 for (var index = 0; index < attrValue.length; index++) {
14331 -1 result.push(doc.getElementById(attrValue[index]));
-1 13393 function abort(msg) {
-1 13394 completeQueue = noop;
-1 13395 failed(msg);
-1 13396 return tasks;
-1 13397 }
-1 13398 function pop() {
-1 13399 var length = tasks.length;
-1 13400 for (;started < length; started++) {
-1 13401 var task = tasks[started];
-1 13402 try {
-1 13403 task.call(null, createResolve(started), abort);
-1 13404 } catch (e) {
-1 13405 abort(e);
14332 13406 }
14333 13407 }
14334 -1 return result;
14335 -1 } catch (e) {
14336 -1 throw new TypeError('Cannot resolve id references for non-DOM nodes');
14337 13408 }
-1 13409 var q = {
-1 13410 defer: function defer(fn) {
-1 13411 if (_typeof(fn) === 'object' && fn.then && fn['catch']) {
-1 13412 var defer = fn;
-1 13413 fn = function fn(resolve, reject) {
-1 13414 defer.then(resolve)['catch'](reject);
-1 13415 };
-1 13416 }
-1 13417 funcGuard(fn);
-1 13418 if (err2 !== void 0) {
-1 13419 return;
-1 13420 } else if (complete) {
-1 13421 throw new Error('Queue already completed');
-1 13422 }
-1 13423 tasks.push(fn);
-1 13424 ++remaining;
-1 13425 pop();
-1 13426 return q;
-1 13427 },
-1 13428 then: function then(fn) {
-1 13429 funcGuard(fn);
-1 13430 if (completeQueue !== noop) {
-1 13431 throw new Error('queue `then` already set');
-1 13432 }
-1 13433 if (!err2) {
-1 13434 completeQueue = fn;
-1 13435 if (!remaining) {
-1 13436 complete = true;
-1 13437 completeQueue(tasks);
-1 13438 }
-1 13439 }
-1 13440 return q;
-1 13441 },
-1 13442 catch: function _catch(fn) {
-1 13443 funcGuard(fn);
-1 13444 if (failed !== defaultFail) {
-1 13445 throw new Error('queue `catch` already set');
-1 13446 }
-1 13447 if (!err2) {
-1 13448 failed = fn;
-1 13449 } else {
-1 13450 fn(err2);
-1 13451 err2 = null;
-1 13452 }
-1 13453 return q;
-1 13454 },
-1 13455 abort: abort
-1 13456 };
-1 13457 return q;
14338 13458 }
14339 -1 var idrefs_default = idrefs;
14340 -1 function accessibleText(element, context) {
14341 -1 var virtualNode = get_node_from_tree_default(element);
14342 -1 return accessible_text_virtual_default(virtualNode, context);
-1 13459 var queue_default = queue;
-1 13460 var uuid;
-1 13461 var _rng;
-1 13462 var _crypto = window.crypto || window.msCrypto;
-1 13463 if (!_rng && _crypto && _crypto.getRandomValues) {
-1 13464 _rnds8 = new Uint8Array(16);
-1 13465 _rng = function whatwgRNG() {
-1 13466 _crypto.getRandomValues(_rnds8);
-1 13467 return _rnds8;
-1 13468 };
14343 13469 }
14344 -1 var accessible_text_default = accessibleText;
14345 -1 function arialabelledbyText(vNode) {
14346 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
14347 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
14348 -1 if (vNode.nodeType !== 1) {
14349 -1 return '';
-1 13470 var _rnds8;
-1 13471 if (!_rng) {
-1 13472 _rnds = new Array(16);
-1 13473 _rng = function _rng() {
-1 13474 for (var i = 0, r; i < 16; i++) {
-1 13475 if ((i & 3) === 0) {
-1 13476 r = Math.random() * 4294967296;
-1 13477 }
-1 13478 _rnds[i] = r >>> ((i & 3) << 3) & 255;
-1 13479 }
-1 13480 return _rnds;
-1 13481 };
-1 13482 }
-1 13483 var _rnds;
-1 13484 var BufferClass = typeof window.Buffer == 'function' ? window.Buffer : Array;
-1 13485 var _byteToHex = [];
-1 13486 var _hexToByte = {};
-1 13487 for (var i = 0; i < 256; i++) {
-1 13488 _byteToHex[i] = (i + 256).toString(16).substr(1);
-1 13489 _hexToByte[_byteToHex[i]] = i;
-1 13490 }
-1 13491 function parse(s, buf, offset) {
-1 13492 var i = buf && offset || 0, ii = 0;
-1 13493 buf = buf || [];
-1 13494 s.toLowerCase().replace(/[0-9a-f]{2}/g, function(oct) {
-1 13495 if (ii < 16) {
-1 13496 buf[i + ii++] = _hexToByte[oct];
14350 13497 }
14351 -1 vNode = get_node_from_tree_default(vNode);
-1 13498 });
-1 13499 while (ii < 16) {
-1 13500 buf[i + ii++] = 0;
14352 13501 }
14353 -1 if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) {
14354 -1 return '';
-1 13502 return buf;
-1 13503 }
-1 13504 function unparse(buf, offset) {
-1 13505 var i = offset || 0, bth = _byteToHex;
-1 13506 return bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + '-' + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]] + bth[buf[i++]];
-1 13507 }
-1 13508 var _seedBytes = _rng();
-1 13509 var _nodeId = [ _seedBytes[0] | 1, _seedBytes[1], _seedBytes[2], _seedBytes[3], _seedBytes[4], _seedBytes[5] ];
-1 13510 var _clockseq = (_seedBytes[6] << 8 | _seedBytes[7]) & 16383;
-1 13511 var _lastMSecs = 0;
-1 13512 var _lastNSecs = 0;
-1 13513 function v1(options, buf, offset) {
-1 13514 var i = buf && offset || 0;
-1 13515 var b2 = buf || [];
-1 13516 options = options || {};
-1 13517 var clockseq = options.clockseq != null ? options.clockseq : _clockseq;
-1 13518 var msecs = options.msecs != null ? options.msecs : new Date().getTime();
-1 13519 var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;
-1 13520 var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 1e4;
-1 13521 if (dt < 0 && options.clockseq == null) {
-1 13522 clockseq = clockseq + 1 & 16383;
14355 13523 }
14356 -1 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {
14357 -1 return elm;
14358 -1 });
14359 -1 return refs.reduce(function(accessibleName, elm) {
14360 -1 var accessibleNameAdd = accessible_text_default(elm, _extends({
14361 -1 inLabelledByContext: true,
14362 -1 startNode: context.startNode || vNode
14363 -1 }, context));
14364 -1 if (!accessibleName) {
14365 -1 return accessibleNameAdd;
14366 -1 } else {
14367 -1 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);
14368 -1 }
14369 -1 }, '');
-1 13524 if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {
-1 13525 nsecs = 0;
-1 13526 }
-1 13527 if (nsecs >= 1e4) {
-1 13528 throw new Error('uuid.v1(): Can\'t create more than 10M uuids/sec');
-1 13529 }
-1 13530 _lastMSecs = msecs;
-1 13531 _lastNSecs = nsecs;
-1 13532 _clockseq = clockseq;
-1 13533 msecs += 122192928e5;
-1 13534 var tl = ((msecs & 268435455) * 1e4 + nsecs) % 4294967296;
-1 13535 b2[i++] = tl >>> 24 & 255;
-1 13536 b2[i++] = tl >>> 16 & 255;
-1 13537 b2[i++] = tl >>> 8 & 255;
-1 13538 b2[i++] = tl & 255;
-1 13539 var tmh = msecs / 4294967296 * 1e4 & 268435455;
-1 13540 b2[i++] = tmh >>> 8 & 255;
-1 13541 b2[i++] = tmh & 255;
-1 13542 b2[i++] = tmh >>> 24 & 15 | 16;
-1 13543 b2[i++] = tmh >>> 16 & 255;
-1 13544 b2[i++] = clockseq >>> 8 | 128;
-1 13545 b2[i++] = clockseq & 255;
-1 13546 var node = options.node || _nodeId;
-1 13547 for (var n2 = 0; n2 < 6; n2++) {
-1 13548 b2[i + n2] = node[n2];
-1 13549 }
-1 13550 return buf ? buf : unparse(b2);
14370 13551 }
14371 -1 var arialabelledby_text_default = arialabelledbyText;
14372 -1 function arialabelText(vNode) {
14373 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
14374 -1 if (vNode.nodeType !== 1) {
14375 -1 return '';
-1 13552 function v4(options, buf, offset) {
-1 13553 var i = buf && offset || 0;
-1 13554 if (typeof options == 'string') {
-1 13555 buf = options == 'binary' ? new BufferClass(16) : null;
-1 13556 options = null;
-1 13557 }
-1 13558 options = options || {};
-1 13559 var rnds = options.random || (options.rng || _rng)();
-1 13560 rnds[6] = rnds[6] & 15 | 64;
-1 13561 rnds[8] = rnds[8] & 63 | 128;
-1 13562 if (buf) {
-1 13563 for (var ii = 0; ii < 16; ii++) {
-1 13564 buf[i + ii] = rnds[ii];
14376 13565 }
14377 -1 vNode = get_node_from_tree_default(vNode);
14378 13566 }
14379 -1 return vNode.attr('aria-label') || '';
-1 13567 return buf || unparse(rnds);
14380 13568 }
14381 -1 var arialabel_text_default = arialabelText;
14382 -1 var ariaAttrs = {
14383 -1 'aria-activedescendant': {
14384 -1 type: 'idref',
14385 -1 allowEmpty: true
14386 -1 },
14387 -1 'aria-atomic': {
14388 -1 type: 'boolean',
14389 -1 global: true
14390 -1 },
14391 -1 'aria-autocomplete': {
14392 -1 type: 'nmtoken',
-1 13569 uuid = v4;
-1 13570 uuid.v1 = v1;
-1 13571 uuid.v4 = v4;
-1 13572 uuid.parse = parse;
-1 13573 uuid.unparse = unparse;
-1 13574 uuid.BufferClass = BufferClass;
-1 13575 axe._uuid = v1();
-1 13576 var uuid_default = v4;
-1 13577 var errorTypes = Object.freeze([ 'EvalError', 'RangeError', 'ReferenceError', 'SyntaxError', 'TypeError', 'URIError' ]);
-1 13578 function stringifyMessage(_ref3) {
-1 13579 var topic = _ref3.topic, channelId = _ref3.channelId, message = _ref3.message, messageId = _ref3.messageId, keepalive = _ref3.keepalive;
-1 13580 var data = {
-1 13581 channelId: channelId,
-1 13582 topic: topic,
-1 13583 messageId: messageId,
-1 13584 keepalive: !!keepalive,
-1 13585 source: getSource2()
-1 13586 };
-1 13587 if (message instanceof Error) {
-1 13588 data.error = {
-1 13589 name: message.name,
-1 13590 message: message.message,
-1 13591 stack: message.stack
-1 13592 };
-1 13593 } else {
-1 13594 data.payload = message;
-1 13595 }
-1 13596 return JSON.stringify(data);
-1 13597 }
-1 13598 function parseMessage(dataString) {
-1 13599 var data;
-1 13600 try {
-1 13601 data = JSON.parse(dataString);
-1 13602 } catch (e) {
-1 13603 return;
-1 13604 }
-1 13605 if (!isRespondableMessage(data)) {
-1 13606 return;
-1 13607 }
-1 13608 var _data2 = data, topic = _data2.topic, channelId = _data2.channelId, messageId = _data2.messageId, keepalive = _data2.keepalive;
-1 13609 var message = _typeof(data.error) === 'object' ? buildErrorObject(data.error) : data.payload;
-1 13610 return {
-1 13611 topic: topic,
-1 13612 message: message,
-1 13613 messageId: messageId,
-1 13614 channelId: channelId,
-1 13615 keepalive: !!keepalive
-1 13616 };
-1 13617 }
-1 13618 function isRespondableMessage(postedMessage) {
-1 13619 return postedMessage !== null && _typeof(postedMessage) === 'object' && typeof postedMessage.channelId === 'string' && postedMessage.source === getSource2();
-1 13620 }
-1 13621 function buildErrorObject(error) {
-1 13622 var msg = error.message || 'Unknown error occurred';
-1 13623 var errorName = errorTypes.includes(error.name) ? error.name : 'Error';
-1 13624 var ErrConstructor = window[errorName] || Error;
-1 13625 if (error.stack) {
-1 13626 msg += '\n' + error.stack.replace(error.message, '');
-1 13627 }
-1 13628 return new ErrConstructor(msg);
-1 13629 }
-1 13630 function getSource2() {
-1 13631 var application = 'axeAPI';
-1 13632 var version = '';
-1 13633 if (typeof axe !== 'undefined' && axe._audit && axe._audit.application) {
-1 13634 application = axe._audit.application;
-1 13635 }
-1 13636 if (typeof axe !== 'undefined') {
-1 13637 version = axe.version;
-1 13638 }
-1 13639 return application + '.' + version;
-1 13640 }
-1 13641 function assertIsParentWindow(win) {
-1 13642 assetNotGlobalWindow(win);
-1 13643 assert_default(window.parent === win, 'Source of the response must be the parent window.');
-1 13644 }
-1 13645 function assertIsFrameWindow(win) {
-1 13646 assetNotGlobalWindow(win);
-1 13647 assert_default(win.parent === window, 'Respondable target must be a frame in the current window');
-1 13648 }
-1 13649 function assetNotGlobalWindow(win) {
-1 13650 assert_default(window !== win, 'Messages can not be sent to the same window.');
-1 13651 }
-1 13652 var channels = {};
-1 13653 function storeReplyHandler(channelId, replyHandler) {
-1 13654 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
-1 13655 assert_default(!channels[channelId], 'A replyHandler already exists for this message channel.');
-1 13656 channels[channelId] = {
-1 13657 replyHandler: replyHandler,
-1 13658 sendToParent: sendToParent
-1 13659 };
-1 13660 }
-1 13661 function getReplyHandler(channelId) {
-1 13662 return channels[channelId];
-1 13663 }
-1 13664 function deleteReplyHandler(channelId) {
-1 13665 delete channels[channelId];
-1 13666 }
-1 13667 var messageIds = [];
-1 13668 function createMessageId() {
-1 13669 var uuid2 = ''.concat(v4(), ':').concat(v4());
-1 13670 if (messageIds.includes(uuid2)) {
-1 13671 return createMessageId();
-1 13672 }
-1 13673 messageIds.push(uuid2);
-1 13674 return uuid2;
-1 13675 }
-1 13676 function isNewMessage(uuid2) {
-1 13677 if (messageIds.includes(uuid2)) {
-1 13678 return false;
-1 13679 }
-1 13680 messageIds.push(uuid2);
-1 13681 return true;
-1 13682 }
-1 13683 function postMessage(win, data, sendToParent, replyHandler) {
-1 13684 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
-1 13685 if (data.message instanceof Error && !sendToParent) {
-1 13686 axe.log(data.message);
-1 13687 return false;
-1 13688 }
-1 13689 var dataString = stringifyMessage(_extends({
-1 13690 messageId: createMessageId()
-1 13691 }, data));
-1 13692 var allowedOrigins = axe._audit.allowedOrigins;
-1 13693 if (!allowedOrigins || !allowedOrigins.length) {
-1 13694 return false;
-1 13695 }
-1 13696 if (typeof replyHandler === 'function') {
-1 13697 storeReplyHandler(data.channelId, replyHandler, sendToParent);
-1 13698 }
-1 13699 allowedOrigins.forEach(function(origin) {
-1 13700 try {
-1 13701 win.postMessage(dataString, origin);
-1 13702 } catch (err2) {
-1 13703 if (err2 instanceof win.DOMException) {
-1 13704 throw new Error('allowedOrigins value "'.concat(origin, '" is not a valid origin'));
-1 13705 }
-1 13706 throw err2;
-1 13707 }
-1 13708 });
-1 13709 return true;
-1 13710 }
-1 13711 function processError(win, error, channelId) {
-1 13712 if (!win.parent !== window) {
-1 13713 return axe.log(error);
-1 13714 }
-1 13715 try {
-1 13716 postMessage(win, {
-1 13717 topic: null,
-1 13718 channelId: channelId,
-1 13719 message: error,
-1 13720 messageId: createMessageId(),
-1 13721 keepalive: true
-1 13722 }, true);
-1 13723 } catch (err2) {
-1 13724 return axe.log(err2);
-1 13725 }
-1 13726 }
-1 13727 function createResponder(win, channelId) {
-1 13728 var sendToParent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
-1 13729 return function respond(message, keepalive, replyHandler) {
-1 13730 var data = {
-1 13731 channelId: channelId,
-1 13732 message: message,
-1 13733 keepalive: keepalive
-1 13734 };
-1 13735 postMessage(win, data, sendToParent, replyHandler);
-1 13736 };
-1 13737 }
-1 13738 function originIsAllowed(origin) {
-1 13739 var allowedOrigins = axe._audit.allowedOrigins;
-1 13740 return allowedOrigins && allowedOrigins.includes('*') || allowedOrigins.includes(origin);
-1 13741 }
-1 13742 function messageHandler(_ref4, topicHandler) {
-1 13743 var origin = _ref4.origin, dataString = _ref4.data, win = _ref4.source;
-1 13744 try {
-1 13745 var data = parseMessage(dataString) || {};
-1 13746 var channelId = data.channelId, message = data.message, messageId = data.messageId;
-1 13747 if (!originIsAllowed(origin) || !isNewMessage(messageId)) {
-1 13748 return;
-1 13749 }
-1 13750 if (message instanceof Error && win.parent !== window) {
-1 13751 axe.log(message);
-1 13752 return false;
-1 13753 }
-1 13754 try {
-1 13755 if (data.topic) {
-1 13756 var responder = createResponder(win, channelId);
-1 13757 assertIsParentWindow(win);
-1 13758 topicHandler(data, responder);
-1 13759 } else {
-1 13760 callReplyHandler(win, data);
-1 13761 }
-1 13762 } catch (error) {
-1 13763 processError(win, error, channelId);
-1 13764 }
-1 13765 } catch (error) {
-1 13766 axe.log(error);
-1 13767 return false;
-1 13768 }
-1 13769 }
-1 13770 function callReplyHandler(win, data) {
-1 13771 var channelId = data.channelId, message = data.message, keepalive = data.keepalive;
-1 13772 var _ref5 = getReplyHandler(channelId) || {}, replyHandler = _ref5.replyHandler, sendToParent = _ref5.sendToParent;
-1 13773 if (!replyHandler) {
-1 13774 return;
-1 13775 }
-1 13776 sendToParent ? assertIsParentWindow(win) : assertIsFrameWindow(win);
-1 13777 var responder = createResponder(win, channelId, sendToParent);
-1 13778 if (!keepalive && channelId) {
-1 13779 deleteReplyHandler(channelId);
-1 13780 }
-1 13781 try {
-1 13782 replyHandler(message, keepalive, responder);
-1 13783 } catch (error) {
-1 13784 axe.log(error);
-1 13785 responder(error, keepalive);
-1 13786 }
-1 13787 }
-1 13788 var frameMessenger = {
-1 13789 open: function open(topicHandler) {
-1 13790 if (typeof window.addEventListener !== 'function') {
-1 13791 return;
-1 13792 }
-1 13793 var handler = function handler(messageEvent) {
-1 13794 messageHandler(messageEvent, topicHandler);
-1 13795 };
-1 13796 window.addEventListener('message', handler, false);
-1 13797 return function() {
-1 13798 window.removeEventListener('message', handler, false);
-1 13799 };
-1 13800 },
-1 13801 post: function post(win, data, replyHandler) {
-1 13802 if (typeof window.addEventListener !== 'function') {
-1 13803 return false;
-1 13804 }
-1 13805 return postMessage(win, data, false, replyHandler);
-1 13806 }
-1 13807 };
-1 13808 function setDefaultFrameMessenger(respondable2) {
-1 13809 respondable2.updateMessenger(frameMessenger);
-1 13810 }
-1 13811 var closeHandler;
-1 13812 var postMessage2;
-1 13813 var topicHandlers = {};
-1 13814 function _respondable(win, topic, message, keepalive, replyHandler) {
-1 13815 var data = {
-1 13816 topic: topic,
-1 13817 message: message,
-1 13818 channelId: ''.concat(v4(), ':').concat(v4()),
-1 13819 keepalive: keepalive
-1 13820 };
-1 13821 return postMessage2(win, data, replyHandler);
-1 13822 }
-1 13823 function messageListener(data, responder) {
-1 13824 var topic = data.topic, message = data.message, keepalive = data.keepalive;
-1 13825 var topicHandler = topicHandlers[topic];
-1 13826 if (!topicHandler) {
-1 13827 return;
-1 13828 }
-1 13829 try {
-1 13830 topicHandler(message, keepalive, responder);
-1 13831 } catch (error) {
-1 13832 axe.log(error);
-1 13833 responder(error, keepalive);
-1 13834 }
-1 13835 }
-1 13836 _respondable.updateMessenger = function updateMessenger(_ref6) {
-1 13837 var open = _ref6.open, post = _ref6.post;
-1 13838 assert_default(typeof open === 'function', 'open callback must be a function');
-1 13839 assert_default(typeof post === 'function', 'post callback must be a function');
-1 13840 if (closeHandler) {
-1 13841 closeHandler();
-1 13842 }
-1 13843 var close = open(messageListener);
-1 13844 if (close) {
-1 13845 assert_default(typeof close === 'function', 'open callback must return a cleanup function');
-1 13846 closeHandler = close;
-1 13847 } else {
-1 13848 closeHandler = null;
-1 13849 }
-1 13850 postMessage2 = post;
-1 13851 };
-1 13852 _respondable.subscribe = function subscribe(topic, topicHandler) {
-1 13853 assert_default(typeof topicHandler === 'function', 'Subscriber callback must be a function');
-1 13854 assert_default(!topicHandlers[topic], 'Topic '.concat(topic, ' is already registered to.'));
-1 13855 topicHandlers[topic] = topicHandler;
-1 13856 };
-1 13857 _respondable.isInFrame = function isInFrame() {
-1 13858 var win = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : window;
-1 13859 return !!win.frameElement;
-1 13860 };
-1 13861 setDefaultFrameMessenger(_respondable);
-1 13862 function _sendCommandToFrame(node, parameters, resolve, reject) {
-1 13863 var _parameters$options$p, _parameters$options;
-1 13864 var win = node.contentWindow;
-1 13865 var pingWaitTime = (_parameters$options$p = (_parameters$options = parameters.options) === null || _parameters$options === void 0 ? void 0 : _parameters$options.pingWaitTime) !== null && _parameters$options$p !== void 0 ? _parameters$options$p : 500;
-1 13866 if (!win) {
-1 13867 log_default('Frame does not have a content window', node);
-1 13868 resolve(null);
-1 13869 return;
-1 13870 }
-1 13871 if (pingWaitTime === 0) {
-1 13872 callAxeStart(node, parameters, resolve, reject);
-1 13873 return;
-1 13874 }
-1 13875 var timeout = setTimeout(function() {
-1 13876 timeout = setTimeout(function() {
-1 13877 if (!parameters.debug) {
-1 13878 resolve(null);
-1 13879 } else {
-1 13880 reject(err('No response from frame', node));
-1 13881 }
-1 13882 }, 0);
-1 13883 }, pingWaitTime);
-1 13884 _respondable(win, 'axe.ping', null, void 0, function() {
-1 13885 clearTimeout(timeout);
-1 13886 callAxeStart(node, parameters, resolve, reject);
-1 13887 });
-1 13888 }
-1 13889 function callAxeStart(node, parameters, resolve, reject) {
-1 13890 var _parameters$options$f, _parameters$options2;
-1 13891 var frameWaitTime = (_parameters$options$f = (_parameters$options2 = parameters.options) === null || _parameters$options2 === void 0 ? void 0 : _parameters$options2.frameWaitTime) !== null && _parameters$options$f !== void 0 ? _parameters$options$f : 6e4;
-1 13892 var win = node.contentWindow;
-1 13893 var timeout = setTimeout(function collectResultFramesTimeout() {
-1 13894 reject(err('Axe in frame timed out', node));
-1 13895 }, frameWaitTime);
-1 13896 _respondable(win, 'axe.start', parameters, void 0, function(data) {
-1 13897 clearTimeout(timeout);
-1 13898 if (data instanceof Error === false) {
-1 13899 resolve(data);
-1 13900 } else {
-1 13901 reject(data);
-1 13902 }
-1 13903 });
-1 13904 }
-1 13905 function err(message, node) {
-1 13906 var selector;
-1 13907 if (axe._tree) {
-1 13908 selector = _getSelector(node);
-1 13909 }
-1 13910 return new Error(message + ': ' + (selector || node));
-1 13911 }
-1 13912 var customSerializer = null;
-1 13913 var nodeSerializer = {
-1 13914 update: function update(serializer) {
-1 13915 assert_default(_typeof(serializer) === 'object', 'serializer must be an object');
-1 13916 customSerializer = serializer;
-1 13917 },
-1 13918 toSpec: function toSpec(node) {
-1 13919 return nodeSerializer.dqElmToSpec(new dq_element_default(node));
-1 13920 },
-1 13921 dqElmToSpec: function dqElmToSpec(dqElm, runOptions) {
-1 13922 var _customSerializer;
-1 13923 if (dqElm instanceof dq_element_default === false) {
-1 13924 return dqElm;
-1 13925 }
-1 13926 if (runOptions) {
-1 13927 dqElm = cloneLimitedDqElement(dqElm, runOptions);
-1 13928 }
-1 13929 if (typeof ((_customSerializer = customSerializer) === null || _customSerializer === void 0 ? void 0 : _customSerializer.toSpec) === 'function') {
-1 13930 return customSerializer.toSpec(dqElm);
-1 13931 }
-1 13932 return dqElm.toJSON();
-1 13933 },
-1 13934 mergeSpecs: function mergeSpecs(nodeSpec, parentFrameSpec) {
-1 13935 var _customSerializer2;
-1 13936 if (typeof ((_customSerializer2 = customSerializer) === null || _customSerializer2 === void 0 ? void 0 : _customSerializer2.mergeSpecs) === 'function') {
-1 13937 return customSerializer.mergeSpecs(nodeSpec, parentFrameSpec);
-1 13938 }
-1 13939 return dq_element_default.mergeSpecs(nodeSpec, parentFrameSpec);
-1 13940 },
-1 13941 mapRawResults: function mapRawResults(rawResults) {
-1 13942 return rawResults.map(function(rawResult) {
-1 13943 return _extends({}, rawResult, {
-1 13944 nodes: nodeSerializer.mapRawNodeResults(rawResult.nodes)
-1 13945 });
-1 13946 });
-1 13947 },
-1 13948 mapRawNodeResults: function mapRawNodeResults(nodeResults) {
-1 13949 return nodeResults === null || nodeResults === void 0 ? void 0 : nodeResults.map(function(_ref7) {
-1 13950 var node = _ref7.node, nodeResult = _objectWithoutProperties(_ref7, _excluded);
-1 13951 nodeResult.node = nodeSerializer.dqElmToSpec(node);
-1 13952 for (var _i2 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i2 < _arr2.length; _i2++) {
-1 13953 var type2 = _arr2[_i2];
-1 13954 nodeResult[type2] = nodeResult[type2].map(function(_ref8) {
-1 13955 var relatedNodes = _ref8.relatedNodes, checkResult = _objectWithoutProperties(_ref8, _excluded2);
-1 13956 checkResult.relatedNodes = relatedNodes.map(nodeSerializer.dqElmToSpec);
-1 13957 return checkResult;
-1 13958 });
-1 13959 }
-1 13960 return nodeResult;
-1 13961 });
-1 13962 }
-1 13963 };
-1 13964 var node_serializer_default = nodeSerializer;
-1 13965 function cloneLimitedDqElement(dqElm, runOptions) {
-1 13966 var fromFrame2 = dqElm.fromFrame;
-1 13967 var hasAncestry = runOptions.ancestry, hasXpath = runOptions.xpath;
-1 13968 var hasSelectors = runOptions.selectors !== false || fromFrame2;
-1 13969 dqElm = new dq_element_default(dqElm.element, runOptions, {
-1 13970 source: dqElm.source,
-1 13971 nodeIndexes: dqElm.nodeIndexes,
-1 13972 selector: hasSelectors ? dqElm.selector : [ ':root' ],
-1 13973 ancestry: hasAncestry ? dqElm.ancestry : [ ':root' ],
-1 13974 xpath: hasXpath ? dqElm.xpath : '/'
-1 13975 });
-1 13976 dqElm.fromFrame = fromFrame2;
-1 13977 return dqElm;
-1 13978 }
-1 13979 function getAllChecks(object) {
-1 13980 var result = [];
-1 13981 return result.concat(object.any || []).concat(object.all || []).concat(object.none || []);
-1 13982 }
-1 13983 var get_all_checks_default = getAllChecks;
-1 13984 function findBy(array, key, value) {
-1 13985 if (Array.isArray(array)) {
-1 13986 return array.find(function(obj) {
-1 13987 return obj !== null && _typeof(obj) === 'object' && Object.hasOwn(obj, key) && obj[key] === value;
-1 13988 });
-1 13989 }
-1 13990 }
-1 13991 var find_by_default = findBy;
-1 13992 function pushFrame(resultSet, options, frameSpec) {
-1 13993 resultSet.forEach(function(res) {
-1 13994 res.node = node_serializer_default.mergeSpecs(res.node, frameSpec);
-1 13995 var checks = get_all_checks_default(res);
-1 13996 checks.forEach(function(check) {
-1 13997 check.relatedNodes = check.relatedNodes.map(function(node) {
-1 13998 return node_serializer_default.mergeSpecs(node, frameSpec);
-1 13999 });
-1 14000 });
-1 14001 });
-1 14002 }
-1 14003 function spliceNodes(target, to2) {
-1 14004 var firstFromFrame = to2[0].node;
-1 14005 for (var _i3 = 0; _i3 < target.length; _i3++) {
-1 14006 var node = target[_i3].node;
-1 14007 var resultSort = nodeIndexSort(node.nodeIndexes, firstFromFrame.nodeIndexes);
-1 14008 if (resultSort > 0 || resultSort === 0 && firstFromFrame.selector.length < node.selector.length) {
-1 14009 target.splice.apply(target, [ _i3, 0 ].concat(_toConsumableArray(to2)));
-1 14010 return;
-1 14011 }
-1 14012 }
-1 14013 target.push.apply(target, _toConsumableArray(to2));
-1 14014 }
-1 14015 function normalizeResult(result) {
-1 14016 if (!result || !result.results) {
-1 14017 return null;
-1 14018 }
-1 14019 if (!Array.isArray(result.results)) {
-1 14020 return [ result.results ];
-1 14021 }
-1 14022 if (!result.results.length) {
-1 14023 return null;
-1 14024 }
-1 14025 return result.results;
-1 14026 }
-1 14027 function mergeResults(frameResults, options) {
-1 14028 var mergedResult = [];
-1 14029 frameResults.forEach(function(frameResult) {
-1 14030 var results = normalizeResult(frameResult);
-1 14031 if (!results || !results.length) {
-1 14032 return;
-1 14033 }
-1 14034 var frameSpec = getFrameSpec(frameResult);
-1 14035 results.forEach(function(ruleResult) {
-1 14036 if (ruleResult.nodes && frameSpec) {
-1 14037 pushFrame(ruleResult.nodes, options, frameSpec);
-1 14038 }
-1 14039 var res = find_by_default(mergedResult, 'id', ruleResult.id);
-1 14040 if (!res) {
-1 14041 mergedResult.push(ruleResult);
-1 14042 } else {
-1 14043 if (ruleResult.nodes.length) {
-1 14044 spliceNodes(res.nodes, ruleResult.nodes);
-1 14045 }
-1 14046 }
-1 14047 });
-1 14048 });
-1 14049 mergedResult.forEach(function(result) {
-1 14050 if (result.nodes) {
-1 14051 result.nodes.sort(function(nodeA, nodeB) {
-1 14052 return nodeIndexSort(nodeA.node.nodeIndexes, nodeB.node.nodeIndexes);
-1 14053 });
-1 14054 }
-1 14055 });
-1 14056 return mergedResult;
-1 14057 }
-1 14058 function nodeIndexSort() {
-1 14059 var nodeIndexesA = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
-1 14060 var nodeIndexesB = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
-1 14061 var length = Math.max(nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA.length, nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB.length);
-1 14062 for (var _i4 = 0; _i4 < length; _i4++) {
-1 14063 var indexA = nodeIndexesA === null || nodeIndexesA === void 0 ? void 0 : nodeIndexesA[_i4];
-1 14064 var indexB = nodeIndexesB === null || nodeIndexesB === void 0 ? void 0 : nodeIndexesB[_i4];
-1 14065 if (typeof indexA !== 'number' || isNaN(indexA)) {
-1 14066 return _i4 === 0 ? 1 : -1;
-1 14067 }
-1 14068 if (typeof indexB !== 'number' || isNaN(indexB)) {
-1 14069 return _i4 === 0 ? -1 : 1;
-1 14070 }
-1 14071 if (indexA !== indexB) {
-1 14072 return indexA - indexB;
-1 14073 }
-1 14074 }
-1 14075 return 0;
-1 14076 }
-1 14077 var merge_results_default = mergeResults;
-1 14078 function getFrameSpec(frameResult) {
-1 14079 if (frameResult.frameElement) {
-1 14080 return node_serializer_default.toSpec(frameResult.frameElement);
-1 14081 } else if (frameResult.frameSpec) {
-1 14082 return frameResult.frameSpec;
-1 14083 }
-1 14084 return null;
-1 14085 }
-1 14086 function _collectResultsFromFrames(parentContent, options, command, parameter, resolve, reject) {
-1 14087 options = _extends({}, options, {
-1 14088 elementRef: false
-1 14089 });
-1 14090 var q = queue_default();
-1 14091 var frames = parentContent.frames;
-1 14092 frames.forEach(function(_ref9) {
-1 14093 var frameElement = _ref9.node, context = _objectWithoutProperties(_ref9, _excluded3);
-1 14094 q.defer(function(res, rej) {
-1 14095 var params = {
-1 14096 options: options,
-1 14097 command: command,
-1 14098 parameter: parameter,
-1 14099 context: context
-1 14100 };
-1 14101 function callback(results) {
-1 14102 if (!results) {
-1 14103 return res(null);
-1 14104 }
-1 14105 return res({
-1 14106 results: results,
-1 14107 frameElement: frameElement
-1 14108 });
-1 14109 }
-1 14110 _sendCommandToFrame(frameElement, params, callback, rej);
-1 14111 });
-1 14112 });
-1 14113 q.then(function(data) {
-1 14114 resolve(merge_results_default(data, options));
-1 14115 })['catch'](reject);
-1 14116 }
-1 14117 function _contains(vNode, otherVNode) {
-1 14118 if (!vNode.shadowId && !otherVNode.shadowId && vNode.actualNode && typeof vNode.actualNode.contains === 'function') {
-1 14119 return vNode.actualNode.contains(otherVNode.actualNode);
-1 14120 }
-1 14121 do {
-1 14122 if (vNode === otherVNode) {
-1 14123 return true;
-1 14124 } else if (otherVNode.nodeIndex < vNode.nodeIndex) {
-1 14125 return false;
-1 14126 }
-1 14127 otherVNode = otherVNode.parent;
-1 14128 } while (otherVNode);
-1 14129 return false;
-1 14130 }
-1 14131 function deepMerge() {
-1 14132 var target = {};
-1 14133 for (var _len = arguments.length, sources = new Array(_len), _key = 0; _key < _len; _key++) {
-1 14134 sources[_key] = arguments[_key];
-1 14135 }
-1 14136 sources.forEach(function(source) {
-1 14137 if (!source || _typeof(source) !== 'object' || Array.isArray(source)) {
-1 14138 return;
-1 14139 }
-1 14140 for (var _i5 = 0, _Object$keys = Object.keys(source); _i5 < _Object$keys.length; _i5++) {
-1 14141 var key = _Object$keys[_i5];
-1 14142 if (!target.hasOwnProperty(key) || _typeof(source[key]) !== 'object' || Array.isArray(target[key])) {
-1 14143 target[key] = source[key];
-1 14144 } else {
-1 14145 target[key] = deepMerge(target[key], source[key]);
-1 14146 }
-1 14147 }
-1 14148 });
-1 14149 return target;
-1 14150 }
-1 14151 var deep_merge_default = deepMerge;
-1 14152 function extendMetaData(to2, from) {
-1 14153 Object.assign(to2, from);
-1 14154 Object.keys(from).filter(function(prop) {
-1 14155 return typeof from[prop] === 'function';
-1 14156 }).forEach(function(prop) {
-1 14157 to2[prop] = null;
-1 14158 try {
-1 14159 to2[prop] = from[prop](to2);
-1 14160 } catch (e) {}
-1 14161 });
-1 14162 }
-1 14163 var extend_meta_data_default = extendMetaData;
-1 14164 var possibleShadowRoots = [ 'article', 'aside', 'blockquote', 'body', 'div', 'footer', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'main', 'nav', 'p', 'section', 'span' ];
-1 14165 function isShadowRoot(node) {
-1 14166 if (node.shadowRoot) {
-1 14167 var nodeName2 = node.nodeName.toLowerCase();
-1 14168 if (possibleShadowRoots.includes(nodeName2) || /^[a-z][a-z0-9_.-]*-[a-z0-9_.-]*$/.test(nodeName2)) {
-1 14169 return true;
-1 14170 }
-1 14171 }
-1 14172 return false;
-1 14173 }
-1 14174 var is_shadow_root_default = isShadowRoot;
-1 14175 var dom_exports = {};
-1 14176 __export(dom_exports, {
-1 14177 createGrid: function createGrid() {
-1 14178 return _createGrid;
-1 14179 },
-1 14180 findElmsInContext: function findElmsInContext() {
-1 14181 return find_elms_in_context_default;
-1 14182 },
-1 14183 findNearbyElms: function findNearbyElms() {
-1 14184 return _findNearbyElms;
-1 14185 },
-1 14186 findUp: function findUp() {
-1 14187 return find_up_default;
-1 14188 },
-1 14189 findUpVirtual: function findUpVirtual() {
-1 14190 return find_up_virtual_default;
-1 14191 },
-1 14192 focusDisabled: function focusDisabled() {
-1 14193 return focus_disabled_default;
-1 14194 },
-1 14195 getComposedParent: function getComposedParent() {
-1 14196 return get_composed_parent_default;
-1 14197 },
-1 14198 getElementByReference: function getElementByReference() {
-1 14199 return get_element_by_reference_default;
-1 14200 },
-1 14201 getElementCoordinates: function getElementCoordinates() {
-1 14202 return get_element_coordinates_default;
-1 14203 },
-1 14204 getElementStack: function getElementStack() {
-1 14205 return get_element_stack_default;
-1 14206 },
-1 14207 getModalDialog: function getModalDialog() {
-1 14208 return get_modal_dialog_default;
-1 14209 },
-1 14210 getOverflowHiddenAncestors: function getOverflowHiddenAncestors() {
-1 14211 return get_overflow_hidden_ancestors_default;
-1 14212 },
-1 14213 getRootNode: function getRootNode() {
-1 14214 return get_root_node_default2;
-1 14215 },
-1 14216 getScrollOffset: function getScrollOffset() {
-1 14217 return get_scroll_offset_default;
-1 14218 },
-1 14219 getTabbableElements: function getTabbableElements() {
-1 14220 return get_tabbable_elements_default;
-1 14221 },
-1 14222 getTargetRects: function getTargetRects() {
-1 14223 return get_target_rects_default;
-1 14224 },
-1 14225 getTargetSize: function getTargetSize() {
-1 14226 return get_target_size_default;
-1 14227 },
-1 14228 getTextElementStack: function getTextElementStack() {
-1 14229 return get_text_element_stack_default;
-1 14230 },
-1 14231 getViewportSize: function getViewportSize() {
-1 14232 return get_viewport_size_default;
-1 14233 },
-1 14234 getVisibleChildTextRects: function getVisibleChildTextRects() {
-1 14235 return get_visible_child_text_rects_default;
-1 14236 },
-1 14237 hasContent: function hasContent() {
-1 14238 return has_content_default;
-1 14239 },
-1 14240 hasContentVirtual: function hasContentVirtual() {
-1 14241 return has_content_virtual_default;
-1 14242 },
-1 14243 hasLangText: function hasLangText() {
-1 14244 return _hasLangText;
-1 14245 },
-1 14246 idrefs: function idrefs() {
-1 14247 return idrefs_default;
-1 14248 },
-1 14249 insertedIntoFocusOrder: function insertedIntoFocusOrder() {
-1 14250 return inserted_into_focus_order_default;
-1 14251 },
-1 14252 isCurrentPageLink: function isCurrentPageLink() {
-1 14253 return _isCurrentPageLink;
-1 14254 },
-1 14255 isFocusable: function isFocusable() {
-1 14256 return _isFocusable;
-1 14257 },
-1 14258 isHTML5: function isHTML5() {
-1 14259 return is_html5_default;
-1 14260 },
-1 14261 isHiddenForEveryone: function isHiddenForEveryone() {
-1 14262 return _isHiddenForEveryone;
-1 14263 },
-1 14264 isHiddenWithCSS: function isHiddenWithCSS() {
-1 14265 return is_hidden_with_css_default;
-1 14266 },
-1 14267 isInTabOrder: function isInTabOrder() {
-1 14268 return _isInTabOrder;
-1 14269 },
-1 14270 isInTextBlock: function isInTextBlock() {
-1 14271 return is_in_text_block_default;
-1 14272 },
-1 14273 isInert: function isInert() {
-1 14274 return _isInert;
-1 14275 },
-1 14276 isModalOpen: function isModalOpen() {
-1 14277 return is_modal_open_default;
-1 14278 },
-1 14279 isMultiline: function isMultiline() {
-1 14280 return _isMultiline;
-1 14281 },
-1 14282 isNativelyFocusable: function isNativelyFocusable() {
-1 14283 return is_natively_focusable_default;
-1 14284 },
-1 14285 isNode: function isNode() {
-1 14286 return is_node_default;
-1 14287 },
-1 14288 isOffscreen: function isOffscreen() {
-1 14289 return is_offscreen_default;
-1 14290 },
-1 14291 isOpaque: function isOpaque() {
-1 14292 return is_opaque_default;
-1 14293 },
-1 14294 isSkipLink: function isSkipLink() {
-1 14295 return _isSkipLink;
-1 14296 },
-1 14297 isVisible: function isVisible() {
-1 14298 return is_visible_default;
-1 14299 },
-1 14300 isVisibleOnScreen: function isVisibleOnScreen() {
-1 14301 return _isVisibleOnScreen;
-1 14302 },
-1 14303 isVisibleToScreenReaders: function isVisibleToScreenReaders() {
-1 14304 return _isVisibleToScreenReaders;
-1 14305 },
-1 14306 isVisualContent: function isVisualContent() {
-1 14307 return is_visual_content_default;
-1 14308 },
-1 14309 reduceToElementsBelowFloating: function reduceToElementsBelowFloating() {
-1 14310 return reduce_to_elements_below_floating_default;
-1 14311 },
-1 14312 shadowElementsFromPoint: function shadowElementsFromPoint() {
-1 14313 return shadow_elements_from_point_default;
-1 14314 },
-1 14315 urlPropsFromAttribute: function urlPropsFromAttribute() {
-1 14316 return url_props_from_attribute_default;
-1 14317 },
-1 14318 visuallyContains: function visuallyContains() {
-1 14319 return _visuallyContains;
-1 14320 },
-1 14321 visuallyOverlaps: function visuallyOverlaps() {
-1 14322 return visually_overlaps_default;
-1 14323 },
-1 14324 visuallySort: function visuallySort() {
-1 14325 return _visuallySort;
-1 14326 }
-1 14327 });
-1 14328 function getRootNode(node) {
-1 14329 var doc = node.getRootNode && node.getRootNode() || document;
-1 14330 if (doc === node) {
-1 14331 doc = document;
-1 14332 }
-1 14333 return doc;
-1 14334 }
-1 14335 var get_root_node_default = getRootNode;
-1 14336 var get_root_node_default2 = get_root_node_default;
-1 14337 function findElmsInContext(_ref10) {
-1 14338 var context = _ref10.context, value = _ref10.value, attr = _ref10.attr, _ref10$elm = _ref10.elm, elm = _ref10$elm === void 0 ? '' : _ref10$elm;
-1 14339 var root;
-1 14340 var escapedValue = escape_selector_default(value);
-1 14341 if (context.nodeType === 9 || context.nodeType === 11) {
-1 14342 root = context;
-1 14343 } else {
-1 14344 root = get_root_node_default2(context);
-1 14345 }
-1 14346 return Array.from(root.querySelectorAll(elm + '[' + attr + '=' + escapedValue + ']'));
-1 14347 }
-1 14348 var find_elms_in_context_default = findElmsInContext;
-1 14349 function findUpVirtual(element, target) {
-1 14350 var parent;
-1 14351 parent = element.actualNode;
-1 14352 if (!element.shadowId && typeof element.actualNode.closest === 'function') {
-1 14353 var match = element.actualNode.closest(target);
-1 14354 if (match) {
-1 14355 return match;
-1 14356 }
-1 14357 return null;
-1 14358 }
-1 14359 do {
-1 14360 parent = parent.assignedSlot ? parent.assignedSlot : parent.parentNode;
-1 14361 if (parent && parent.nodeType === 11) {
-1 14362 parent = parent.host;
-1 14363 }
-1 14364 } while (parent && !element_matches_default(parent, target) && parent !== document.documentElement);
-1 14365 if (!parent) {
-1 14366 return null;
-1 14367 }
-1 14368 if (!element_matches_default(parent, target)) {
-1 14369 return null;
-1 14370 }
-1 14371 return parent;
-1 14372 }
-1 14373 var find_up_virtual_default = findUpVirtual;
-1 14374 function findUp(element, target) {
-1 14375 return find_up_virtual_default(get_node_from_tree_default(element), target);
-1 14376 }
-1 14377 var find_up_default = findUp;
-1 14378 function _rectsOverlap(rect1, rect2) {
-1 14379 return (rect1.left | 0) < (rect2.right | 0) && (rect1.right | 0) > (rect2.left | 0) && (rect1.top | 0) < (rect2.bottom | 0) && (rect1.bottom | 0) > (rect2.top | 0);
-1 14380 }
-1 14381 var getOverflowHiddenAncestors = memoize_default(function getOverflowHiddenAncestorsMemoized(vNode) {
-1 14382 var ancestors = [];
-1 14383 if (!vNode) {
-1 14384 return ancestors;
-1 14385 }
-1 14386 var overflow = vNode.getComputedStylePropertyValue('overflow');
-1 14387 if (overflow === 'hidden') {
-1 14388 ancestors.push(vNode);
-1 14389 }
-1 14390 return ancestors.concat(getOverflowHiddenAncestors(vNode.parent));
-1 14391 });
-1 14392 var get_overflow_hidden_ancestors_default = getOverflowHiddenAncestors;
-1 14393 var clipRegex = /rect\s*\(([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px,?\s*([0-9]+)px\s*\)/;
-1 14394 var clipPathRegex = /(\w+)\((\d+)/;
-1 14395 function nativelyHidden(vNode) {
-1 14396 return [ 'style', 'script', 'noscript', 'template' ].includes(vNode.props.nodeName);
-1 14397 }
-1 14398 function displayHidden(vNode) {
-1 14399 if (vNode.props.nodeName === 'area') {
-1 14400 return false;
-1 14401 }
-1 14402 return vNode.getComputedStylePropertyValue('display') === 'none';
-1 14403 }
-1 14404 function visibilityHidden(vNode) {
-1 14405 var _ref11 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref11.isAncestor;
-1 14406 return !isAncestor && [ 'hidden', 'collapse' ].includes(vNode.getComputedStylePropertyValue('visibility'));
-1 14407 }
-1 14408 function contentVisibiltyHidden(vNode) {
-1 14409 var _ref12 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref12.isAncestor;
-1 14410 return !!isAncestor && vNode.getComputedStylePropertyValue('content-visibility') === 'hidden';
-1 14411 }
-1 14412 function ariaHidden(vNode) {
-1 14413 return vNode.attr('aria-hidden') === 'true';
-1 14414 }
-1 14415 function opacityHidden(vNode) {
-1 14416 return vNode.getComputedStylePropertyValue('opacity') === '0';
-1 14417 }
-1 14418 function scrollHidden(vNode) {
-1 14419 var scroll = get_scroll_default(vNode.actualNode);
-1 14420 var elHeight = parseInt(vNode.getComputedStylePropertyValue('height'));
-1 14421 var elWidth = parseInt(vNode.getComputedStylePropertyValue('width'));
-1 14422 return !!scroll && (elHeight === 0 || elWidth === 0);
-1 14423 }
-1 14424 function overflowHidden(vNode) {
-1 14425 var _ref13 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref13.isAncestor;
-1 14426 if (isAncestor) {
-1 14427 return false;
-1 14428 }
-1 14429 var rect = vNode.boundingClientRect;
-1 14430 var nodes = get_overflow_hidden_ancestors_default(vNode);
-1 14431 if (!nodes.length) {
-1 14432 return false;
-1 14433 }
-1 14434 return nodes.some(function(node) {
-1 14435 var nodeRect = node.boundingClientRect;
-1 14436 if (nodeRect.width < 2 || nodeRect.height < 2) {
-1 14437 return true;
-1 14438 }
-1 14439 return !_rectsOverlap(rect, nodeRect);
-1 14440 });
-1 14441 }
-1 14442 function clipHidden(vNode) {
-1 14443 var matchesClip = vNode.getComputedStylePropertyValue('clip').match(clipRegex);
-1 14444 var matchesClipPath = vNode.getComputedStylePropertyValue('clip-path').match(clipPathRegex);
-1 14445 if (matchesClip && matchesClip.length === 5) {
-1 14446 var position = vNode.getComputedStylePropertyValue('position');
-1 14447 if ([ 'fixed', 'absolute' ].includes(position)) {
-1 14448 return matchesClip[3] - matchesClip[1] <= 0 && matchesClip[2] - matchesClip[4] <= 0;
-1 14449 }
-1 14450 }
-1 14451 if (matchesClipPath) {
-1 14452 var type2 = matchesClipPath[1];
-1 14453 var value = parseInt(matchesClipPath[2], 10);
-1 14454 switch (type2) {
-1 14455 case 'inset':
-1 14456 return value >= 50;
-1 14457
-1 14458 case 'circle':
-1 14459 return value === 0;
-1 14460
-1 14461 default:
-1 14462 }
-1 14463 }
-1 14464 return false;
-1 14465 }
-1 14466 function areaHidden(vNode, visibleFunction) {
-1 14467 var mapEl = closest_default(vNode, 'map');
-1 14468 if (!mapEl) {
-1 14469 return true;
-1 14470 }
-1 14471 var mapElName = mapEl.attr('name');
-1 14472 if (!mapElName) {
-1 14473 return true;
-1 14474 }
-1 14475 var mapElRootNode = get_root_node_default(vNode.actualNode);
-1 14476 if (!mapElRootNode || mapElRootNode.nodeType !== 9) {
-1 14477 return true;
-1 14478 }
-1 14479 var refs = query_selector_all_default(axe._tree, 'img[usemap="#'.concat(escape_selector_default(mapElName), '"]'));
-1 14480 if (!refs || !refs.length) {
-1 14481 return true;
-1 14482 }
-1 14483 return refs.some(function(ref) {
-1 14484 return !visibleFunction(ref);
-1 14485 });
-1 14486 }
-1 14487 function detailsHidden(vNode) {
-1 14488 var _vNode$parent;
-1 14489 if (((_vNode$parent = vNode.parent) === null || _vNode$parent === void 0 ? void 0 : _vNode$parent.props.nodeName) !== 'details') {
-1 14490 return false;
-1 14491 }
-1 14492 if (vNode.props.nodeName === 'summary') {
-1 14493 var firstSummary = vNode.parent.children.find(function(node) {
-1 14494 return node.props.nodeName === 'summary';
-1 14495 });
-1 14496 if (firstSummary === vNode) {
-1 14497 return false;
-1 14498 }
-1 14499 }
-1 14500 return !vNode.parent.hasAttr('open');
-1 14501 }
-1 14502 var hiddenMethods = [ displayHidden, visibilityHidden, contentVisibiltyHidden, detailsHidden ];
-1 14503 function _isHiddenForEveryone(vNode) {
-1 14504 var _ref14 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref14.skipAncestors, _ref14$isAncestor = _ref14.isAncestor, isAncestor = _ref14$isAncestor === void 0 ? false : _ref14$isAncestor;
-1 14505 vNode = _nodeLookup(vNode).vNode;
-1 14506 if (skipAncestors) {
-1 14507 return isHiddenSelf(vNode, isAncestor);
-1 14508 }
-1 14509 return isHiddenAncestors(vNode, isAncestor);
-1 14510 }
-1 14511 var isHiddenSelf = memoize_default(function isHiddenSelfMemoized(vNode, isAncestor) {
-1 14512 if (nativelyHidden(vNode)) {
-1 14513 return true;
-1 14514 }
-1 14515 if (!vNode.actualNode) {
-1 14516 return false;
-1 14517 }
-1 14518 if (hiddenMethods.some(function(method) {
-1 14519 return method(vNode, {
-1 14520 isAncestor: isAncestor
-1 14521 });
-1 14522 })) {
-1 14523 return true;
-1 14524 }
-1 14525 if (!vNode.actualNode.isConnected) {
-1 14526 return true;
-1 14527 }
-1 14528 return false;
-1 14529 });
-1 14530 var isHiddenAncestors = memoize_default(function isHiddenAncestorsMemoized(vNode, isAncestor) {
-1 14531 if (isHiddenSelf(vNode, isAncestor)) {
-1 14532 return true;
-1 14533 }
-1 14534 if (!vNode.parent) {
-1 14535 return false;
-1 14536 }
-1 14537 return isHiddenAncestors(vNode.parent, true);
-1 14538 });
-1 14539 function getComposedParent(element) {
-1 14540 if (element.assignedSlot) {
-1 14541 return getComposedParent(element.assignedSlot);
-1 14542 } else if (element.parentNode) {
-1 14543 var parentNode = element.parentNode;
-1 14544 if (parentNode.nodeType === 1) {
-1 14545 return parentNode;
-1 14546 } else if (parentNode.host) {
-1 14547 return parentNode.host;
-1 14548 }
-1 14549 }
-1 14550 return null;
-1 14551 }
-1 14552 var get_composed_parent_default = getComposedParent;
-1 14553 function getScrollOffset(element) {
-1 14554 if (!element.nodeType && element.document) {
-1 14555 element = element.document;
-1 14556 }
-1 14557 if (element.nodeType === 9) {
-1 14558 var docElement = element.documentElement, body = element.body;
-1 14559 return {
-1 14560 left: docElement && docElement.scrollLeft || body && body.scrollLeft || 0,
-1 14561 top: docElement && docElement.scrollTop || body && body.scrollTop || 0
-1 14562 };
-1 14563 }
-1 14564 return {
-1 14565 left: element.scrollLeft,
-1 14566 top: element.scrollTop
-1 14567 };
-1 14568 }
-1 14569 var get_scroll_offset_default = getScrollOffset;
-1 14570 function getElementCoordinates(element) {
-1 14571 var scrollOffset = get_scroll_offset_default(document), xOffset = scrollOffset.left, yOffset = scrollOffset.top, coords = element.getBoundingClientRect();
-1 14572 return {
-1 14573 top: coords.top + yOffset,
-1 14574 right: coords.right + xOffset,
-1 14575 bottom: coords.bottom + yOffset,
-1 14576 left: coords.left + xOffset,
-1 14577 width: coords.right - coords.left,
-1 14578 height: coords.bottom - coords.top
-1 14579 };
-1 14580 }
-1 14581 var get_element_coordinates_default = getElementCoordinates;
-1 14582 function getViewportSize(win) {
-1 14583 var doc = win.document;
-1 14584 var docElement = doc.documentElement;
-1 14585 if (win.innerWidth) {
-1 14586 return {
-1 14587 width: win.innerWidth,
-1 14588 height: win.innerHeight
-1 14589 };
-1 14590 }
-1 14591 if (docElement) {
-1 14592 return {
-1 14593 width: docElement.clientWidth,
-1 14594 height: docElement.clientHeight
-1 14595 };
-1 14596 }
-1 14597 var body = doc.body;
-1 14598 return {
-1 14599 width: body.clientWidth,
-1 14600 height: body.clientHeight
-1 14601 };
-1 14602 }
-1 14603 var get_viewport_size_default = getViewportSize;
-1 14604 function noParentScrolled(element, offset) {
-1 14605 element = get_composed_parent_default(element);
-1 14606 while (element && element.nodeName.toLowerCase() !== 'html') {
-1 14607 if (element.scrollTop) {
-1 14608 offset += element.scrollTop;
-1 14609 if (offset >= 0) {
-1 14610 return false;
-1 14611 }
-1 14612 }
-1 14613 element = get_composed_parent_default(element);
-1 14614 }
-1 14615 return true;
-1 14616 }
-1 14617 function isOffscreen(element) {
-1 14618 var _ref15 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, isAncestor = _ref15.isAncestor;
-1 14619 if (isAncestor) {
-1 14620 return false;
-1 14621 }
-1 14622 var _nodeLookup2 = _nodeLookup(element), domNode = _nodeLookup2.domNode;
-1 14623 if (!domNode) {
-1 14624 return void 0;
-1 14625 }
-1 14626 var leftBoundary;
-1 14627 var docElement = document.documentElement;
-1 14628 var styl = window.getComputedStyle(domNode);
-1 14629 var dir = window.getComputedStyle(document.body || docElement).getPropertyValue('direction');
-1 14630 var coords = get_element_coordinates_default(domNode);
-1 14631 if (coords.bottom < 0 && (noParentScrolled(domNode, coords.bottom) || styl.position === 'absolute')) {
-1 14632 return true;
-1 14633 }
-1 14634 if (coords.left === 0 && coords.right === 0) {
-1 14635 return false;
-1 14636 }
-1 14637 if (dir === 'ltr') {
-1 14638 if (coords.right <= 0) {
-1 14639 return true;
-1 14640 }
-1 14641 } else {
-1 14642 leftBoundary = Math.max(docElement.scrollWidth, get_viewport_size_default(window).width);
-1 14643 if (coords.left >= leftBoundary) {
-1 14644 return true;
-1 14645 }
-1 14646 }
-1 14647 return false;
-1 14648 }
-1 14649 var is_offscreen_default = isOffscreen;
-1 14650 var hiddenMethods2 = [ opacityHidden, scrollHidden, overflowHidden, clipHidden, is_offscreen_default ];
-1 14651 function _isVisibleOnScreen(vNode) {
-1 14652 vNode = _nodeLookup(vNode).vNode;
-1 14653 return isVisibleOnScreenVirtual(vNode);
-1 14654 }
-1 14655 var isVisibleOnScreenVirtual = memoize_default(function isVisibleOnScreenMemoized(vNode, isAncestor) {
-1 14656 if (vNode.actualNode && vNode.props.nodeName === 'area') {
-1 14657 return !areaHidden(vNode, isVisibleOnScreenVirtual);
-1 14658 }
-1 14659 if (_isHiddenForEveryone(vNode, {
-1 14660 skipAncestors: true,
-1 14661 isAncestor: isAncestor
-1 14662 })) {
-1 14663 return false;
-1 14664 }
-1 14665 if (vNode.actualNode && hiddenMethods2.some(function(method) {
-1 14666 return method(vNode, {
-1 14667 isAncestor: isAncestor
-1 14668 });
-1 14669 })) {
-1 14670 return false;
-1 14671 }
-1 14672 if (!vNode.parent) {
-1 14673 return true;
-1 14674 }
-1 14675 return isVisibleOnScreenVirtual(vNode.parent, true);
-1 14676 });
-1 14677 function _getBoundingRect(rectA, rectB) {
-1 14678 var top = Math.min(rectA.top, rectB.top);
-1 14679 var right = Math.max(rectA.right, rectB.right);
-1 14680 var bottom = Math.max(rectA.bottom, rectB.bottom);
-1 14681 var left = Math.min(rectA.left, rectB.left);
-1 14682 return new window.DOMRect(left, top, right - left, bottom - top);
-1 14683 }
-1 14684 function _isPointInRect(_ref16, _ref17) {
-1 14685 var x = _ref16.x, y = _ref16.y;
-1 14686 var top = _ref17.top, right = _ref17.right, bottom = _ref17.bottom, left = _ref17.left;
-1 14687 return y >= top && x <= right && y <= bottom && x >= left;
-1 14688 }
-1 14689 var math_exports = {};
-1 14690 __export(math_exports, {
-1 14691 getBoundingRect: function getBoundingRect() {
-1 14692 return _getBoundingRect;
-1 14693 },
-1 14694 getIntersectionRect: function getIntersectionRect() {
-1 14695 return _getIntersectionRect;
-1 14696 },
-1 14697 getOffset: function getOffset() {
-1 14698 return _getOffset;
-1 14699 },
-1 14700 getRectCenter: function getRectCenter() {
-1 14701 return _getRectCenter;
-1 14702 },
-1 14703 hasVisualOverlap: function hasVisualOverlap() {
-1 14704 return _hasVisualOverlap;
-1 14705 },
-1 14706 isPointInRect: function isPointInRect() {
-1 14707 return _isPointInRect;
-1 14708 },
-1 14709 rectHasMinimumSize: function rectHasMinimumSize() {
-1 14710 return _rectHasMinimumSize;
-1 14711 },
-1 14712 rectsOverlap: function rectsOverlap() {
-1 14713 return _rectsOverlap;
-1 14714 },
-1 14715 splitRects: function splitRects() {
-1 14716 return _splitRects;
-1 14717 }
-1 14718 });
-1 14719 function _getIntersectionRect(rect1, rect2) {
-1 14720 var leftX = Math.max(rect1.left, rect2.left);
-1 14721 var rightX = Math.min(rect1.right, rect2.right);
-1 14722 var topY = Math.max(rect1.top, rect2.top);
-1 14723 var bottomY = Math.min(rect1.bottom, rect2.bottom);
-1 14724 if (leftX >= rightX || topY >= bottomY) {
-1 14725 return null;
-1 14726 }
-1 14727 return new window.DOMRect(leftX, topY, rightX - leftX, bottomY - topY);
-1 14728 }
-1 14729 function _getRectCenter(_ref18) {
-1 14730 var left = _ref18.left, top = _ref18.top, width = _ref18.width, height = _ref18.height;
-1 14731 return new window.DOMPoint(left + width / 2, top + height / 2);
-1 14732 }
-1 14733 var roundingMargin = .05;
-1 14734 function _rectHasMinimumSize(minSize, _ref19) {
-1 14735 var width = _ref19.width, height = _ref19.height;
-1 14736 return width + roundingMargin >= minSize && height + roundingMargin >= minSize;
-1 14737 }
-1 14738 function _getOffset(vTarget, vNeighbor) {
-1 14739 var minRadiusNeighbour = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 12;
-1 14740 var targetRects = get_target_rects_default(vTarget);
-1 14741 var neighborRects = get_target_rects_default(vNeighbor);
-1 14742 if (!targetRects.length || !neighborRects.length) {
-1 14743 return 0;
-1 14744 }
-1 14745 var targetBoundingBox = targetRects.reduce(_getBoundingRect);
-1 14746 var targetCenter = _getRectCenter(targetBoundingBox);
-1 14747 var minDistance = Infinity;
-1 14748 var _iterator2 = _createForOfIteratorHelper(neighborRects), _step2;
-1 14749 try {
-1 14750 for (_iterator2.s(); !(_step2 = _iterator2.n()).done; ) {
-1 14751 var rect = _step2.value;
-1 14752 if (_isPointInRect(targetCenter, rect)) {
-1 14753 return 0;
-1 14754 }
-1 14755 var closestPoint = getClosestPoint(targetCenter, rect);
-1 14756 var distance2 = pointDistance(targetCenter, closestPoint);
-1 14757 minDistance = Math.min(minDistance, distance2);
-1 14758 }
-1 14759 } catch (err) {
-1 14760 _iterator2.e(err);
-1 14761 } finally {
-1 14762 _iterator2.f();
-1 14763 }
-1 14764 var neighborTargetSize = get_target_size_default(vNeighbor);
-1 14765 if (_rectHasMinimumSize(minRadiusNeighbour * 2, neighborTargetSize)) {
-1 14766 return minDistance;
-1 14767 }
-1 14768 var neighborBoundingBox = neighborRects.reduce(_getBoundingRect);
-1 14769 var neighborCenter = _getRectCenter(neighborBoundingBox);
-1 14770 var centerDistance = pointDistance(targetCenter, neighborCenter) - minRadiusNeighbour;
-1 14771 return Math.max(0, Math.min(minDistance, centerDistance));
-1 14772 }
-1 14773 function getClosestPoint(point, rect) {
-1 14774 var x;
-1 14775 var y;
-1 14776 if (point.x < rect.left) {
-1 14777 x = rect.left;
-1 14778 } else if (point.x > rect.right) {
-1 14779 x = rect.right;
-1 14780 } else {
-1 14781 x = point.x;
-1 14782 }
-1 14783 if (point.y < rect.top) {
-1 14784 y = rect.top;
-1 14785 } else if (point.y > rect.bottom) {
-1 14786 y = rect.bottom;
-1 14787 } else {
-1 14788 y = point.y;
-1 14789 }
-1 14790 return {
-1 14791 x: x,
-1 14792 y: y
-1 14793 };
-1 14794 }
-1 14795 function pointDistance(pointA, pointB) {
-1 14796 return Math.hypot(pointA.x - pointB.x, pointA.y - pointB.y);
-1 14797 }
-1 14798 function _hasVisualOverlap(vNodeA, vNodeB) {
-1 14799 var rectA = vNodeA.boundingClientRect;
-1 14800 var rectB = vNodeB.boundingClientRect;
-1 14801 if (rectA.left >= rectB.right || rectA.right <= rectB.left || rectA.top >= rectB.bottom || rectA.bottom <= rectB.top) {
-1 14802 return false;
-1 14803 }
-1 14804 return _visuallySort(vNodeA, vNodeB) > 0;
-1 14805 }
-1 14806 function _splitRects(outerRect, overlapRects) {
-1 14807 var uniqueRects = [ outerRect ];
-1 14808 var _iterator3 = _createForOfIteratorHelper(overlapRects), _step3;
-1 14809 try {
-1 14810 var _loop3 = function _loop3() {
-1 14811 var overlapRect = _step3.value;
-1 14812 uniqueRects = uniqueRects.reduce(function(rects, inputRect) {
-1 14813 return rects.concat(splitRect(inputRect, overlapRect));
-1 14814 }, []);
-1 14815 };
-1 14816 for (_iterator3.s(); !(_step3 = _iterator3.n()).done; ) {
-1 14817 _loop3();
-1 14818 }
-1 14819 } catch (err) {
-1 14820 _iterator3.e(err);
-1 14821 } finally {
-1 14822 _iterator3.f();
-1 14823 }
-1 14824 return uniqueRects;
-1 14825 }
-1 14826 function splitRect(inputRect, clipRect) {
-1 14827 var top = inputRect.top, left = inputRect.left, bottom = inputRect.bottom, right = inputRect.right;
-1 14828 var yAligned = top < clipRect.bottom && bottom > clipRect.top;
-1 14829 var xAligned = left < clipRect.right && right > clipRect.left;
-1 14830 var rects = [];
-1 14831 if (between(clipRect.top, top, bottom) && xAligned) {
-1 14832 rects.push({
-1 14833 top: top,
-1 14834 left: left,
-1 14835 bottom: clipRect.top,
-1 14836 right: right
-1 14837 });
-1 14838 }
-1 14839 if (between(clipRect.right, left, right) && yAligned) {
-1 14840 rects.push({
-1 14841 top: top,
-1 14842 left: clipRect.right,
-1 14843 bottom: bottom,
-1 14844 right: right
-1 14845 });
-1 14846 }
-1 14847 if (between(clipRect.bottom, top, bottom) && xAligned) {
-1 14848 rects.push({
-1 14849 top: clipRect.bottom,
-1 14850 right: right,
-1 14851 bottom: bottom,
-1 14852 left: left
-1 14853 });
-1 14854 }
-1 14855 if (between(clipRect.left, left, right) && yAligned) {
-1 14856 rects.push({
-1 14857 top: top,
-1 14858 left: left,
-1 14859 bottom: bottom,
-1 14860 right: clipRect.left
-1 14861 });
-1 14862 }
-1 14863 if (rects.length === 0) {
-1 14864 if (isEnclosedRect(inputRect, clipRect)) {
-1 14865 return [];
-1 14866 }
-1 14867 rects.push(inputRect);
-1 14868 }
-1 14869 return rects.map(computeRect);
-1 14870 }
-1 14871 var between = function between(num, min, max2) {
-1 14872 return num > min && num < max2;
-1 14873 };
-1 14874 function computeRect(baseRect) {
-1 14875 return new window.DOMRect(baseRect.left, baseRect.top, baseRect.right - baseRect.left, baseRect.bottom - baseRect.top);
-1 14876 }
-1 14877 function isEnclosedRect(rectA, rectB) {
-1 14878 return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;
-1 14879 }
-1 14880 var ROOT_LEVEL = 0;
-1 14881 var DEFAULT_LEVEL = .1;
-1 14882 var FLOAT_LEVEL = .2;
-1 14883 var POSITION_LEVEL = .3;
-1 14884 var nodeIndex = 0;
-1 14885 function _createGrid() {
-1 14886 var root = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.body;
-1 14887 var rootGrid = arguments.length > 1 ? arguments[1] : undefined;
-1 14888 var parentVNode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
-1 14889 if (cache_default.get('gridCreated') && !parentVNode) {
-1 14890 return constants_default.gridSize;
-1 14891 }
-1 14892 cache_default.set('gridCreated', true);
-1 14893 if (!parentVNode) {
-1 14894 var _rootGrid;
-1 14895 var vNode = get_node_from_tree_default(document.documentElement);
-1 14896 if (!vNode) {
-1 14897 vNode = new virtual_node_default(document.documentElement);
-1 14898 }
-1 14899 nodeIndex = 0;
-1 14900 vNode._stackingOrder = [ createStackingContext(ROOT_LEVEL, nodeIndex++, null) ];
-1 14901 (_rootGrid = rootGrid) !== null && _rootGrid !== void 0 ? _rootGrid : rootGrid = new Grid();
-1 14902 addNodeToGrid(rootGrid, vNode);
-1 14903 if (get_scroll_default(vNode.actualNode)) {
-1 14904 var subGrid = new Grid(vNode);
-1 14905 vNode._subGrid = subGrid;
-1 14906 }
-1 14907 }
-1 14908 var treeWalker = document.createTreeWalker(root, window.NodeFilter.SHOW_ELEMENT, null, false);
-1 14909 var node = parentVNode ? treeWalker.nextNode() : treeWalker.currentNode;
-1 14910 while (node) {
-1 14911 var _vNode = get_node_from_tree_default(node);
-1 14912 if (_vNode && _vNode.parent) {
-1 14913 parentVNode = _vNode.parent;
-1 14914 } else if (node.assignedSlot) {
-1 14915 parentVNode = get_node_from_tree_default(node.assignedSlot);
-1 14916 } else if (node.parentElement) {
-1 14917 parentVNode = get_node_from_tree_default(node.parentElement);
-1 14918 } else if (node.parentNode && get_node_from_tree_default(node.parentNode)) {
-1 14919 parentVNode = get_node_from_tree_default(node.parentNode);
-1 14920 }
-1 14921 if (!_vNode) {
-1 14922 _vNode = new axe.VirtualNode(node, parentVNode);
-1 14923 }
-1 14924 _vNode._stackingOrder = createStackingOrder(_vNode, parentVNode, nodeIndex++);
-1 14925 var scrollRegionParent = findScrollRegionParent(_vNode, parentVNode);
-1 14926 var grid = scrollRegionParent ? scrollRegionParent._subGrid : rootGrid;
-1 14927 if (get_scroll_default(_vNode.actualNode)) {
-1 14928 var _subGrid = new Grid(_vNode);
-1 14929 _vNode._subGrid = _subGrid;
-1 14930 }
-1 14931 var rect = _vNode.boundingClientRect;
-1 14932 if (rect.width !== 0 && rect.height !== 0 && _isVisibleOnScreen(node)) {
-1 14933 addNodeToGrid(grid, _vNode);
-1 14934 }
-1 14935 if (is_shadow_root_default(node)) {
-1 14936 _createGrid(node.shadowRoot, grid, _vNode);
-1 14937 }
-1 14938 node = treeWalker.nextNode();
-1 14939 }
-1 14940 return constants_default.gridSize;
-1 14941 }
-1 14942 function isStackingContext(vNode, parentVNode) {
-1 14943 var position = vNode.getComputedStylePropertyValue('position');
-1 14944 var zIndex = vNode.getComputedStylePropertyValue('z-index');
-1 14945 if (position === 'fixed' || position === 'sticky') {
-1 14946 return true;
-1 14947 }
-1 14948 if (zIndex !== 'auto' && position !== 'static') {
-1 14949 return true;
-1 14950 }
-1 14951 if (vNode.getComputedStylePropertyValue('opacity') !== '1') {
-1 14952 return true;
-1 14953 }
-1 14954 var transform = vNode.getComputedStylePropertyValue('-webkit-transform') || vNode.getComputedStylePropertyValue('-ms-transform') || vNode.getComputedStylePropertyValue('transform') || 'none';
-1 14955 if (transform !== 'none') {
-1 14956 return true;
-1 14957 }
-1 14958 var mixBlendMode = vNode.getComputedStylePropertyValue('mix-blend-mode');
-1 14959 if (mixBlendMode && mixBlendMode !== 'normal') {
-1 14960 return true;
-1 14961 }
-1 14962 var filter = vNode.getComputedStylePropertyValue('filter');
-1 14963 if (filter && filter !== 'none') {
-1 14964 return true;
-1 14965 }
-1 14966 var perspective = vNode.getComputedStylePropertyValue('perspective');
-1 14967 if (perspective && perspective !== 'none') {
-1 14968 return true;
-1 14969 }
-1 14970 var clipPath = vNode.getComputedStylePropertyValue('clip-path');
-1 14971 if (clipPath && clipPath !== 'none') {
-1 14972 return true;
-1 14973 }
-1 14974 var mask = vNode.getComputedStylePropertyValue('-webkit-mask') || vNode.getComputedStylePropertyValue('mask') || 'none';
-1 14975 if (mask !== 'none') {
-1 14976 return true;
-1 14977 }
-1 14978 var maskImage = vNode.getComputedStylePropertyValue('-webkit-mask-image') || vNode.getComputedStylePropertyValue('mask-image') || 'none';
-1 14979 if (maskImage !== 'none') {
-1 14980 return true;
-1 14981 }
-1 14982 var maskBorder = vNode.getComputedStylePropertyValue('-webkit-mask-border') || vNode.getComputedStylePropertyValue('mask-border') || 'none';
-1 14983 if (maskBorder !== 'none') {
-1 14984 return true;
-1 14985 }
-1 14986 if (vNode.getComputedStylePropertyValue('isolation') === 'isolate') {
-1 14987 return true;
-1 14988 }
-1 14989 var willChange = vNode.getComputedStylePropertyValue('will-change');
-1 14990 if (willChange === 'transform' || willChange === 'opacity') {
-1 14991 return true;
-1 14992 }
-1 14993 if (vNode.getComputedStylePropertyValue('-webkit-overflow-scrolling') === 'touch') {
-1 14994 return true;
-1 14995 }
-1 14996 var contain = vNode.getComputedStylePropertyValue('contain');
-1 14997 if ([ 'layout', 'paint', 'strict', 'content' ].includes(contain)) {
-1 14998 return true;
-1 14999 }
-1 15000 if (zIndex !== 'auto' && isFlexOrGridContainer(parentVNode)) {
-1 15001 return true;
-1 15002 }
-1 15003 return false;
-1 15004 }
-1 15005 function isFlexOrGridContainer(vNode) {
-1 15006 if (!vNode) {
-1 15007 return false;
-1 15008 }
-1 15009 var display2 = vNode.getComputedStylePropertyValue('display');
-1 15010 return [ 'flex', 'inline-flex', 'grid', 'inline-grid' ].includes(display2);
-1 15011 }
-1 15012 function createStackingOrder(vNode, parentVNode, treeOrder) {
-1 15013 var stackingOrder = parentVNode._stackingOrder.slice();
-1 15014 if (isStackingContext(vNode, parentVNode)) {
-1 15015 var index = stackingOrder.findIndex(function(_ref20) {
-1 15016 var stackLevel2 = _ref20.stackLevel;
-1 15017 return [ ROOT_LEVEL, FLOAT_LEVEL, POSITION_LEVEL ].includes(stackLevel2);
-1 15018 });
-1 15019 if (index !== -1) {
-1 15020 stackingOrder.splice(index, stackingOrder.length - index);
-1 15021 }
-1 15022 }
-1 15023 var stackLevel = getStackLevel(vNode, parentVNode);
-1 15024 if (stackLevel !== null) {
-1 15025 stackingOrder.push(createStackingContext(stackLevel, treeOrder, vNode));
-1 15026 }
-1 15027 return stackingOrder;
-1 15028 }
-1 15029 function createStackingContext(stackLevel, treeOrder, vNode) {
-1 15030 return {
-1 15031 stackLevel: stackLevel,
-1 15032 treeOrder: treeOrder,
-1 15033 vNode: vNode
-1 15034 };
-1 15035 }
-1 15036 function getStackLevel(vNode, parentVNode) {
-1 15037 var zIndex = getRealZIndex(vNode, parentVNode);
-1 15038 if (![ 'auto', '0' ].includes(zIndex)) {
-1 15039 return parseInt(zIndex);
-1 15040 }
-1 15041 if (vNode.getComputedStylePropertyValue('position') !== 'static') {
-1 15042 return POSITION_LEVEL;
-1 15043 }
-1 15044 if (vNode.getComputedStylePropertyValue('float') !== 'none') {
-1 15045 return FLOAT_LEVEL;
-1 15046 }
-1 15047 if (isStackingContext(vNode, parentVNode)) {
-1 15048 return DEFAULT_LEVEL;
-1 15049 }
-1 15050 return null;
-1 15051 }
-1 15052 function getRealZIndex(vNode, parentVNode) {
-1 15053 var position = vNode.getComputedStylePropertyValue('position');
-1 15054 if (position === 'static' && !isFlexOrGridContainer(parentVNode)) {
-1 15055 return 'auto';
-1 15056 }
-1 15057 return vNode.getComputedStylePropertyValue('z-index');
-1 15058 }
-1 15059 function findScrollRegionParent(vNode, parentVNode) {
-1 15060 var scrollRegionParent = null;
-1 15061 var checkedNodes = [ vNode ];
-1 15062 while (parentVNode) {
-1 15063 if (get_scroll_default(parentVNode.actualNode)) {
-1 15064 scrollRegionParent = parentVNode;
-1 15065 break;
-1 15066 }
-1 15067 if (parentVNode._scrollRegionParent) {
-1 15068 scrollRegionParent = parentVNode._scrollRegionParent;
-1 15069 break;
-1 15070 }
-1 15071 checkedNodes.push(parentVNode);
-1 15072 parentVNode = get_node_from_tree_default(parentVNode.actualNode.parentElement || parentVNode.actualNode.parentNode);
-1 15073 }
-1 15074 checkedNodes.forEach(function(virtualNode) {
-1 15075 return virtualNode._scrollRegionParent = scrollRegionParent;
-1 15076 });
-1 15077 return scrollRegionParent;
-1 15078 }
-1 15079 function addNodeToGrid(grid, vNode) {
-1 15080 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);
-1 15081 vNode.clientRects.forEach(function(clientRect) {
-1 15082 var _vNode$_grid;
-1 15083 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {
-1 15084 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);
-1 15085 }, clientRect);
-1 15086 if (!visibleRect) {
-1 15087 return;
-1 15088 }
-1 15089 (_vNode$_grid = vNode._grid) !== null && _vNode$_grid !== void 0 ? _vNode$_grid : vNode._grid = grid;
-1 15090 var gridRect = grid.getGridPositionOfRect(visibleRect);
-1 15091 grid.loopGridPosition(gridRect, function(gridCell) {
-1 15092 if (!gridCell.includes(vNode)) {
-1 15093 gridCell.push(vNode);
-1 15094 }
-1 15095 });
-1 15096 });
-1 15097 }
-1 15098 var Grid = function() {
-1 15099 function Grid() {
-1 15100 var container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
-1 15101 _classCallCheck(this, Grid);
-1 15102 this.container = container;
-1 15103 this.cells = [];
-1 15104 }
-1 15105 _createClass(Grid, [ {
-1 15106 key: 'toGridIndex',
-1 15107 value: function toGridIndex(num) {
-1 15108 return Math.floor(num / constants_default.gridSize);
-1 15109 }
-1 15110 }, {
-1 15111 key: 'getCellFromPoint',
-1 15112 value: function getCellFromPoint(_ref21) {
-1 15113 var _this$cells, _row;
-1 15114 var x = _ref21.x, y = _ref21.y;
-1 15115 assert_default(this.boundaries, 'Grid does not have cells added');
-1 15116 var rowIndex = this.toGridIndex(y);
-1 15117 var colIndex = this.toGridIndex(x);
-1 15118 assert_default(_isPointInRect({
-1 15119 y: rowIndex,
-1 15120 x: colIndex
-1 15121 }, this.boundaries), 'Element midpoint exceeds the grid bounds');
-1 15122 var row = (_this$cells = this.cells[rowIndex - this.cells._negativeIndex]) !== null && _this$cells !== void 0 ? _this$cells : [];
-1 15123 return (_row = row[colIndex - row._negativeIndex]) !== null && _row !== void 0 ? _row : [];
-1 15124 }
-1 15125 }, {
-1 15126 key: 'loopGridPosition',
-1 15127 value: function loopGridPosition(gridPosition, callback) {
-1 15128 var _gridPosition = gridPosition, left = _gridPosition.left, right = _gridPosition.right, top = _gridPosition.top, bottom = _gridPosition.bottom;
-1 15129 if (this.boundaries) {
-1 15130 gridPosition = _getBoundingRect(this.boundaries, gridPosition);
-1 15131 }
-1 15132 this.boundaries = gridPosition;
-1 15133 loopNegativeIndexMatrix(this.cells, top, bottom, function(gridRow, row) {
-1 15134 loopNegativeIndexMatrix(gridRow, left, right, function(gridCell, col) {
-1 15135 callback(gridCell, {
-1 15136 row: row,
-1 15137 col: col
-1 15138 });
-1 15139 });
-1 15140 });
-1 15141 }
-1 15142 }, {
-1 15143 key: 'getGridPositionOfRect',
-1 15144 value: function getGridPositionOfRect(_ref22) {
-1 15145 var top = _ref22.top, right = _ref22.right, bottom = _ref22.bottom, left = _ref22.left;
-1 15146 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-1 15147 top = this.toGridIndex(top - margin);
-1 15148 right = this.toGridIndex(right + margin - 1);
-1 15149 bottom = this.toGridIndex(bottom + margin - 1);
-1 15150 left = this.toGridIndex(left - margin);
-1 15151 return new window.DOMRect(left, top, right - left, bottom - top);
-1 15152 }
-1 15153 } ]);
-1 15154 return Grid;
-1 15155 }();
-1 15156 function loopNegativeIndexMatrix(matrix, start, end, callback) {
-1 15157 var _matrix$_negativeInde;
-1 15158 (_matrix$_negativeInde = matrix._negativeIndex) !== null && _matrix$_negativeInde !== void 0 ? _matrix$_negativeInde : matrix._negativeIndex = 0;
-1 15159 if (start < matrix._negativeIndex) {
-1 15160 for (var _i6 = 0; _i6 < matrix._negativeIndex - start; _i6++) {
-1 15161 matrix.splice(0, 0, []);
-1 15162 }
-1 15163 matrix._negativeIndex = start;
-1 15164 }
-1 15165 var startOffset = start - matrix._negativeIndex;
-1 15166 var endOffset = end - matrix._negativeIndex;
-1 15167 for (var index = startOffset; index <= endOffset; index++) {
-1 15168 var _index, _matrix$_index;
-1 15169 (_matrix$_index = matrix[_index = index]) !== null && _matrix$_index !== void 0 ? _matrix$_index : matrix[_index] = [];
-1 15170 callback(matrix[index], index + matrix._negativeIndex);
-1 15171 }
-1 15172 }
-1 15173 function _findNearbyElms(vNode) {
-1 15174 var _vNode$_grid2, _vNode$_grid2$cells;
-1 15175 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
-1 15176 _createGrid();
-1 15177 if (!((_vNode$_grid2 = vNode._grid) !== null && _vNode$_grid2 !== void 0 && (_vNode$_grid2$cells = _vNode$_grid2.cells) !== null && _vNode$_grid2$cells !== void 0 && _vNode$_grid2$cells.length)) {
-1 15178 return [];
-1 15179 }
-1 15180 var rect = vNode.boundingClientRect;
-1 15181 var grid = vNode._grid;
-1 15182 var selfIsFixed = hasFixedPosition(vNode);
-1 15183 var gridPosition = grid.getGridPositionOfRect(rect, margin);
-1 15184 var neighbors = [];
-1 15185 grid.loopGridPosition(gridPosition, function(vNeighbors) {
-1 15186 var _iterator4 = _createForOfIteratorHelper(vNeighbors), _step4;
-1 15187 try {
-1 15188 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
-1 15189 var vNeighbor = _step4.value;
-1 15190 if (vNeighbor && vNeighbor !== vNode && !neighbors.includes(vNeighbor) && selfIsFixed === hasFixedPosition(vNeighbor)) {
-1 15191 neighbors.push(vNeighbor);
-1 15192 }
-1 15193 }
-1 15194 } catch (err) {
-1 15195 _iterator4.e(err);
-1 15196 } finally {
-1 15197 _iterator4.f();
-1 15198 }
-1 15199 });
-1 15200 return neighbors;
-1 15201 }
-1 15202 var hasFixedPosition = memoize_default(function(vNode) {
-1 15203 if (!vNode) {
-1 15204 return false;
-1 15205 }
-1 15206 if (vNode.getComputedStylePropertyValue('position') === 'fixed') {
-1 15207 return true;
-1 15208 }
-1 15209 return hasFixedPosition(vNode.parent);
-1 15210 });
-1 15211 var getModalDialog = memoize_default(function getModalDialogMemoized() {
-1 15212 var _dialogs$find;
-1 15213 if (!axe._tree) {
-1 15214 return null;
-1 15215 }
-1 15216 var dialogs = query_selector_all_filter_default(axe._tree[0], 'dialog[open]', function(vNode) {
-1 15217 var rect = vNode.boundingClientRect;
-1 15218 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);
-1 15219 return stack.includes(vNode.actualNode) && _isVisibleOnScreen(vNode);
-1 15220 });
-1 15221 if (!dialogs.length) {
-1 15222 return null;
-1 15223 }
-1 15224 var modalDialog = dialogs.find(function(dialog) {
-1 15225 var rect = dialog.boundingClientRect;
-1 15226 var stack = document.elementsFromPoint(rect.left - 10, rect.top - 10);
-1 15227 return stack.includes(dialog.actualNode);
-1 15228 });
-1 15229 if (modalDialog) {
-1 15230 return modalDialog;
-1 15231 }
-1 15232 return (_dialogs$find = dialogs.find(function(dialog) {
-1 15233 var _getNodeFromGrid;
-1 15234 var _ref23 = (_getNodeFromGrid = getNodeFromGrid(dialog)) !== null && _getNodeFromGrid !== void 0 ? _getNodeFromGrid : {}, vNode = _ref23.vNode, rect = _ref23.rect;
-1 15235 if (!vNode) {
-1 15236 return false;
-1 15237 }
-1 15238 var stack = document.elementsFromPoint(rect.left + 1, rect.top + 1);
-1 15239 return !stack.includes(vNode.actualNode);
-1 15240 })) !== null && _dialogs$find !== void 0 ? _dialogs$find : null;
-1 15241 });
-1 15242 var get_modal_dialog_default = getModalDialog;
-1 15243 function getNodeFromGrid(dialog) {
-1 15244 _createGrid();
-1 15245 var grid = axe._tree[0]._grid;
-1 15246 var viewRect = new window.DOMRect(0, 0, window.innerWidth, window.innerHeight);
-1 15247 if (!grid) {
-1 15248 return;
-1 15249 }
-1 15250 for (var row = 0; row < grid.cells.length; row++) {
-1 15251 var cols = grid.cells[row];
-1 15252 if (!cols) {
-1 15253 continue;
-1 15254 }
-1 15255 for (var col = 0; col < cols.length; col++) {
-1 15256 var cells = cols[col];
-1 15257 if (!cells) {
-1 15258 continue;
-1 15259 }
-1 15260 for (var _i7 = 0; _i7 < cells.length; _i7++) {
-1 15261 var vNode = cells[_i7];
-1 15262 var rect = vNode.boundingClientRect;
-1 15263 var intersection = _getIntersectionRect(rect, viewRect);
-1 15264 if (vNode.props.nodeName !== 'html' && vNode !== dialog && vNode.getComputedStylePropertyValue('pointer-events') !== 'none' && intersection) {
-1 15265 return {
-1 15266 vNode: vNode,
-1 15267 rect: intersection
-1 15268 };
-1 15269 }
-1 15270 }
-1 15271 }
-1 15272 }
-1 15273 }
-1 15274 function _isInert(vNode) {
-1 15275 var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, skipAncestors = _ref24.skipAncestors, isAncestor = _ref24.isAncestor;
-1 15276 if (skipAncestors) {
-1 15277 return isInertSelf(vNode, isAncestor);
-1 15278 }
-1 15279 return isInertAncestors(vNode, isAncestor);
-1 15280 }
-1 15281 var isInertSelf = memoize_default(function isInertSelfMemoized(vNode, isAncestor) {
-1 15282 if (vNode.hasAttr('inert')) {
-1 15283 return true;
-1 15284 }
-1 15285 if (!isAncestor && vNode.actualNode) {
-1 15286 var modalDialog = get_modal_dialog_default();
-1 15287 if (modalDialog && !_contains(modalDialog, vNode)) {
-1 15288 return true;
-1 15289 }
-1 15290 }
-1 15291 return false;
-1 15292 });
-1 15293 var isInertAncestors = memoize_default(function isInertAncestorsMemoized(vNode, isAncestor) {
-1 15294 if (isInertSelf(vNode, isAncestor)) {
-1 15295 return true;
-1 15296 }
-1 15297 if (!vNode.parent) {
-1 15298 return false;
-1 15299 }
-1 15300 return isInertAncestors(vNode.parent, true);
-1 15301 });
-1 15302 var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];
-1 15303 function isDisabledAttrAllowed(nodeName2) {
-1 15304 return allowedDisabledNodeNames.includes(nodeName2);
-1 15305 }
-1 15306 function focusDisabled(el) {
-1 15307 var _nodeLookup3 = _nodeLookup(el), vNode = _nodeLookup3.vNode;
-1 15308 if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled') || _isInert(vNode)) {
-1 15309 return true;
-1 15310 }
-1 15311 var parentNode = vNode.parent;
-1 15312 var ancestors = [];
-1 15313 var fieldsetDisabled = false;
-1 15314 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {
-1 15315 ancestors.push(parentNode);
-1 15316 if (parentNode.props.nodeName === 'legend') {
-1 15317 break;
-1 15318 }
-1 15319 if (parentNode._inDisabledFieldset !== void 0) {
-1 15320 fieldsetDisabled = parentNode._inDisabledFieldset;
-1 15321 break;
-1 15322 }
-1 15323 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {
-1 15324 fieldsetDisabled = true;
-1 15325 }
-1 15326 parentNode = parentNode.parent;
-1 15327 }
-1 15328 ancestors.forEach(function(ancestor) {
-1 15329 return ancestor._inDisabledFieldset = fieldsetDisabled;
-1 15330 });
-1 15331 if (fieldsetDisabled) {
-1 15332 return true;
-1 15333 }
-1 15334 if (vNode.props.nodeName !== 'area') {
-1 15335 if (!vNode.actualNode) {
-1 15336 return false;
-1 15337 }
-1 15338 return _isHiddenForEveryone(vNode);
-1 15339 }
-1 15340 return false;
-1 15341 }
-1 15342 var focus_disabled_default = focusDisabled;
-1 15343 var angularSkipLinkRegex = /^\/\#/;
-1 15344 var angularRouterLinkRegex = /^#[!/]/;
-1 15345 function _isCurrentPageLink(anchor) {
-1 15346 var _window$location;
-1 15347 var href = anchor.getAttribute('href');
-1 15348 if (!href || href === '#') {
-1 15349 return false;
-1 15350 }
-1 15351 if (angularSkipLinkRegex.test(href)) {
-1 15352 return true;
-1 15353 }
-1 15354 var hash = anchor.hash, protocol = anchor.protocol, hostname = anchor.hostname, port = anchor.port, pathname = anchor.pathname;
-1 15355 if (angularRouterLinkRegex.test(hash)) {
-1 15356 return false;
-1 15357 }
-1 15358 if (href.charAt(0) === '#') {
-1 15359 return true;
-1 15360 }
-1 15361 if (typeof ((_window$location = window.location) === null || _window$location === void 0 ? void 0 : _window$location.origin) !== 'string' || window.location.origin.indexOf('://') === -1) {
-1 15362 return null;
-1 15363 }
-1 15364 var currentPageUrl = window.location.origin + window.location.pathname;
-1 15365 var url;
-1 15366 if (!hostname) {
-1 15367 url = window.location.origin;
-1 15368 } else {
-1 15369 url = ''.concat(protocol, '//').concat(hostname).concat(port ? ':'.concat(port) : '');
-1 15370 }
-1 15371 if (!pathname) {
-1 15372 url += window.location.pathname;
-1 15373 } else {
-1 15374 url += (pathname[0] !== '/' ? '/' : '') + pathname;
-1 15375 }
-1 15376 return url === currentPageUrl;
-1 15377 }
-1 15378 function getElementByReference(node, attr) {
-1 15379 var fragment = node.getAttribute(attr);
-1 15380 if (!fragment) {
-1 15381 return null;
-1 15382 }
-1 15383 if (attr === 'href' && !_isCurrentPageLink(node)) {
-1 15384 return null;
-1 15385 }
-1 15386 if (fragment.indexOf('#') !== -1) {
-1 15387 fragment = decodeURIComponent(fragment.substr(fragment.indexOf('#') + 1));
-1 15388 }
-1 15389 var candidate = document.getElementById(fragment);
-1 15390 if (candidate) {
-1 15391 return candidate;
-1 15392 }
-1 15393 candidate = document.getElementsByName(fragment);
-1 15394 if (candidate.length) {
-1 15395 return candidate[0];
-1 15396 }
-1 15397 return null;
-1 15398 }
-1 15399 var get_element_by_reference_default = getElementByReference;
-1 15400 function _visuallySort(a2, b2) {
-1 15401 _createGrid();
-1 15402 var length = Math.max(a2._stackingOrder.length, b2._stackingOrder.length);
-1 15403 for (var _i8 = 0; _i8 < length; _i8++) {
-1 15404 if (typeof b2._stackingOrder[_i8] === 'undefined') {
-1 15405 return -1;
-1 15406 } else if (typeof a2._stackingOrder[_i8] === 'undefined') {
-1 15407 return 1;
-1 15408 }
-1 15409 if (b2._stackingOrder[_i8].stackLevel > a2._stackingOrder[_i8].stackLevel) {
-1 15410 return 1;
-1 15411 }
-1 15412 if (b2._stackingOrder[_i8].stackLevel < a2._stackingOrder[_i8].stackLevel) {
-1 15413 return -1;
-1 15414 }
-1 15415 if (b2._stackingOrder[_i8].treeOrder !== a2._stackingOrder[_i8].treeOrder) {
-1 15416 return b2._stackingOrder[_i8].treeOrder - a2._stackingOrder[_i8].treeOrder;
-1 15417 }
-1 15418 }
-1 15419 var aNode = a2.actualNode;
-1 15420 var bNode = b2.actualNode;
-1 15421 if (aNode.getRootNode && aNode.getRootNode() !== bNode.getRootNode()) {
-1 15422 var boundaries = [];
-1 15423 while (aNode) {
-1 15424 boundaries.push({
-1 15425 root: aNode.getRootNode(),
-1 15426 node: aNode
-1 15427 });
-1 15428 aNode = aNode.getRootNode().host;
-1 15429 }
-1 15430 while (bNode && !boundaries.find(function(boundary) {
-1 15431 return boundary.root === bNode.getRootNode();
-1 15432 })) {
-1 15433 bNode = bNode.getRootNode().host;
-1 15434 }
-1 15435 aNode = boundaries.find(function(boundary) {
-1 15436 return boundary.root === bNode.getRootNode();
-1 15437 }).node;
-1 15438 if (aNode === bNode) {
-1 15439 return a2.actualNode.getRootNode() !== aNode.getRootNode() ? -1 : 1;
-1 15440 }
-1 15441 }
-1 15442 var _window$Node = window.Node, DOCUMENT_POSITION_FOLLOWING = _window$Node.DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_CONTAINS = _window$Node.DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_CONTAINED_BY = _window$Node.DOCUMENT_POSITION_CONTAINED_BY;
-1 15443 var docPosition = aNode.compareDocumentPosition(bNode);
-1 15444 var DOMOrder = docPosition & DOCUMENT_POSITION_FOLLOWING ? 1 : -1;
-1 15445 var isDescendant = docPosition & DOCUMENT_POSITION_CONTAINS || docPosition & DOCUMENT_POSITION_CONTAINED_BY;
-1 15446 var aPosition = getPositionOrder(a2);
-1 15447 var bPosition = getPositionOrder(b2);
-1 15448 if (aPosition === bPosition || isDescendant) {
-1 15449 return DOMOrder;
-1 15450 }
-1 15451 return bPosition - aPosition;
-1 15452 }
-1 15453 function getPositionOrder(vNode) {
-1 15454 if (vNode.getComputedStylePropertyValue('display').indexOf('inline') !== -1) {
-1 15455 return 2;
-1 15456 }
-1 15457 if (isFloated(vNode)) {
-1 15458 return 1;
-1 15459 }
-1 15460 return 0;
-1 15461 }
-1 15462 function isFloated(vNode) {
-1 15463 if (!vNode) {
-1 15464 return false;
-1 15465 }
-1 15466 if (vNode._isFloated !== void 0) {
-1 15467 return vNode._isFloated;
-1 15468 }
-1 15469 var floatStyle = vNode.getComputedStylePropertyValue('float');
-1 15470 if (floatStyle !== 'none') {
-1 15471 vNode._isFloated = true;
-1 15472 return true;
-1 15473 }
-1 15474 var floated = isFloated(vNode.parent);
-1 15475 vNode._isFloated = floated;
-1 15476 return floated;
-1 15477 }
-1 15478 function getRectStack(grid, rect) {
-1 15479 var recursed = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
-1 15480 var center = _getRectCenter(rect);
-1 15481 var gridCell = grid.getCellFromPoint(center) || [];
-1 15482 var floorX = Math.floor(center.x);
-1 15483 var floorY = Math.floor(center.y);
-1 15484 var stack = gridCell.filter(function(gridCellNode) {
-1 15485 return gridCellNode.clientRects.some(function(clientRect) {
-1 15486 var rectX = clientRect.left;
-1 15487 var rectY = clientRect.top;
-1 15488 return floorX < Math.floor(rectX + clientRect.width) && floorX >= Math.floor(rectX) && floorY < Math.floor(rectY + clientRect.height) && floorY >= Math.floor(rectY);
-1 15489 });
-1 15490 });
-1 15491 var gridContainer = grid.container;
-1 15492 if (gridContainer) {
-1 15493 stack = getRectStack(gridContainer._grid, gridContainer.boundingClientRect, true).concat(stack);
-1 15494 }
-1 15495 if (!recursed) {
-1 15496 stack = stack.sort(_visuallySort).map(function(vNode) {
-1 15497 return vNode.actualNode;
-1 15498 }).concat(document.documentElement).filter(function(node, index, array) {
-1 15499 return array.indexOf(node) === index;
-1 15500 });
-1 15501 }
-1 15502 return stack;
-1 15503 }
-1 15504 function getElementStack(node) {
-1 15505 _createGrid();
-1 15506 var vNode = get_node_from_tree_default(node);
-1 15507 var grid = vNode._grid;
-1 15508 if (!grid) {
-1 15509 return [];
-1 15510 }
-1 15511 return getRectStack(grid, vNode.boundingClientRect);
-1 15512 }
-1 15513 var get_element_stack_default = getElementStack;
-1 15514 function getTabbableElements(virtualNode) {
-1 15515 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
-1 15516 var tabbableElements = nodeAndDescendents.filter(function(vNode) {
-1 15517 var isFocusable2 = vNode.isFocusable;
-1 15518 var tabIndex = vNode.actualNode.getAttribute('tabindex');
-1 15519 tabIndex = tabIndex && !isNaN(parseInt(tabIndex, 10)) ? parseInt(tabIndex) : null;
-1 15520 return tabIndex ? isFocusable2 && tabIndex >= 0 : isFocusable2;
-1 15521 });
-1 15522 return tabbableElements;
-1 15523 }
-1 15524 var get_tabbable_elements_default = getTabbableElements;
-1 15525 function isNativelyFocusable(el) {
-1 15526 var _nodeLookup4 = _nodeLookup(el), vNode = _nodeLookup4.vNode;
-1 15527 if (!vNode || focus_disabled_default(vNode)) {
-1 15528 return false;
-1 15529 }
-1 15530 switch (vNode.props.nodeName) {
-1 15531 case 'a':
-1 15532 case 'area':
-1 15533 if (vNode.hasAttr('href')) {
-1 15534 return true;
-1 15535 }
-1 15536 break;
-1 15537
-1 15538 case 'input':
-1 15539 return vNode.props.type !== 'hidden';
-1 15540
-1 15541 case 'textarea':
-1 15542 case 'select':
-1 15543 case 'summary':
-1 15544 case 'button':
-1 15545 return true;
-1 15546
-1 15547 case 'details':
-1 15548 return !query_selector_all_default(vNode, 'summary').length;
-1 15549 }
-1 15550 return false;
-1 15551 }
-1 15552 var is_natively_focusable_default = isNativelyFocusable;
-1 15553 function _isFocusable(el) {
-1 15554 var _nodeLookup5 = _nodeLookup(el), vNode = _nodeLookup5.vNode;
-1 15555 if (vNode.props.nodeType !== 1) {
-1 15556 return false;
-1 15557 }
-1 15558 if (focus_disabled_default(vNode)) {
-1 15559 return false;
-1 15560 } else if (is_natively_focusable_default(vNode)) {
-1 15561 return true;
-1 15562 }
-1 15563 var tabindex = vNode.attr('tabindex');
-1 15564 if (tabindex && !isNaN(parseInt(tabindex, 10))) {
-1 15565 return true;
-1 15566 }
-1 15567 return false;
-1 15568 }
-1 15569 function _isInTabOrder(el) {
-1 15570 var _nodeLookup6 = _nodeLookup(el), vNode = _nodeLookup6.vNode;
-1 15571 if (vNode.props.nodeType !== 1) {
-1 15572 return false;
-1 15573 }
-1 15574 var tabindex = parseInt(vNode.attr('tabindex', 10));
-1 15575 if (tabindex <= -1) {
-1 15576 return false;
-1 15577 }
-1 15578 return _isFocusable(vNode);
-1 15579 }
-1 15580 var get_target_rects_default = memoize_default(getTargetRects);
-1 15581 function getTargetRects(vNode) {
-1 15582 var nodeRect = vNode.boundingClientRect;
-1 15583 var overlappingVNodes = _findNearbyElms(vNode).filter(function(vNeighbor) {
-1 15584 return _hasVisualOverlap(vNode, vNeighbor) && vNeighbor.getComputedStylePropertyValue('pointer-events') !== 'none' && !isDescendantNotInTabOrder(vNode, vNeighbor);
-1 15585 });
-1 15586 if (!overlappingVNodes.length) {
-1 15587 return [ nodeRect ];
-1 15588 }
-1 15589 var obscuringRects = overlappingVNodes.map(function(_ref25) {
-1 15590 var rect = _ref25.boundingClientRect;
-1 15591 return rect;
-1 15592 });
-1 15593 return _splitRects(nodeRect, obscuringRects);
-1 15594 }
-1 15595 function isDescendantNotInTabOrder(vAncestor, vNode) {
-1 15596 return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
-1 15597 }
-1 15598 var get_target_size_default = memoize_default(getTargetSize);
-1 15599 function getTargetSize(vNode, minSize) {
-1 15600 var rects = get_target_rects_default(vNode);
-1 15601 return getLargestRect(rects, minSize);
-1 15602 }
-1 15603 function getLargestRect(rects, minSize) {
-1 15604 return rects.reduce(function(rectA, rectB) {
-1 15605 var rectAisMinimum = _rectHasMinimumSize(minSize, rectA);
-1 15606 var rectBisMinimum = _rectHasMinimumSize(minSize, rectB);
-1 15607 if (rectAisMinimum !== rectBisMinimum) {
-1 15608 return rectAisMinimum ? rectA : rectB;
-1 15609 }
-1 15610 var areaA = rectA.width * rectA.height;
-1 15611 var areaB = rectB.width * rectB.height;
-1 15612 return areaA > areaB ? rectA : rectB;
-1 15613 });
-1 15614 }
-1 15615 var text_exports = {};
-1 15616 __export(text_exports, {
-1 15617 accessibleText: function accessibleText() {
-1 15618 return accessible_text_default;
-1 15619 },
-1 15620 accessibleTextVirtual: function accessibleTextVirtual() {
-1 15621 return _accessibleTextVirtual;
-1 15622 },
-1 15623 autocomplete: function autocomplete() {
-1 15624 return _autocomplete;
-1 15625 },
-1 15626 formControlValue: function formControlValue() {
-1 15627 return form_control_value_default;
-1 15628 },
-1 15629 formControlValueMethods: function formControlValueMethods() {
-1 15630 return _formControlValueMethods;
-1 15631 },
-1 15632 hasUnicode: function hasUnicode() {
-1 15633 return has_unicode_default;
-1 15634 },
-1 15635 isHumanInterpretable: function isHumanInterpretable() {
-1 15636 return is_human_interpretable_default;
-1 15637 },
-1 15638 isIconLigature: function isIconLigature() {
-1 15639 return _isIconLigature;
-1 15640 },
-1 15641 isValidAutocomplete: function isValidAutocomplete() {
-1 15642 return is_valid_autocomplete_default;
-1 15643 },
-1 15644 label: function label() {
-1 15645 return label_default;
-1 15646 },
-1 15647 labelText: function labelText() {
-1 15648 return label_text_default;
-1 15649 },
-1 15650 labelVirtual: function labelVirtual() {
-1 15651 return label_virtual_default2;
-1 15652 },
-1 15653 nativeElementType: function nativeElementType() {
-1 15654 return native_element_type_default;
-1 15655 },
-1 15656 nativeTextAlternative: function nativeTextAlternative() {
-1 15657 return _nativeTextAlternative;
-1 15658 },
-1 15659 nativeTextMethods: function nativeTextMethods() {
-1 15660 return native_text_methods_default;
-1 15661 },
-1 15662 removeUnicode: function removeUnicode() {
-1 15663 return remove_unicode_default;
-1 15664 },
-1 15665 sanitize: function sanitize() {
-1 15666 return sanitize_default;
-1 15667 },
-1 15668 subtreeText: function subtreeText() {
-1 15669 return subtree_text_default;
-1 15670 },
-1 15671 titleText: function titleText() {
-1 15672 return title_text_default;
-1 15673 },
-1 15674 unsupported: function unsupported() {
-1 15675 return unsupported_default;
-1 15676 },
-1 15677 visible: function visible() {
-1 15678 return visible_default;
-1 15679 },
-1 15680 visibleTextNodes: function visibleTextNodes() {
-1 15681 return visible_text_nodes_default;
-1 15682 },
-1 15683 visibleVirtual: function visibleVirtual() {
-1 15684 return visible_virtual_default;
-1 15685 }
-1 15686 });
-1 15687 function idrefs(node, attr) {
-1 15688 node = node.actualNode || node;
-1 15689 try {
-1 15690 var doc = get_root_node_default2(node);
-1 15691 var result = [];
-1 15692 var attrValue = node.getAttribute(attr);
-1 15693 if (attrValue) {
-1 15694 attrValue = token_list_default(attrValue);
-1 15695 for (var index = 0; index < attrValue.length; index++) {
-1 15696 result.push(doc.getElementById(attrValue[index]));
-1 15697 }
-1 15698 }
-1 15699 return result;
-1 15700 } catch (e) {
-1 15701 throw new TypeError('Cannot resolve id references for non-DOM nodes');
-1 15702 }
-1 15703 }
-1 15704 var idrefs_default = idrefs;
-1 15705 function accessibleText(element, context) {
-1 15706 var virtualNode = get_node_from_tree_default(element);
-1 15707 return _accessibleTextVirtual(virtualNode, context);
-1 15708 }
-1 15709 var accessible_text_default = accessibleText;
-1 15710 function arialabelledbyText(element) {
-1 15711 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 15712 var _nodeLookup7 = _nodeLookup(element), vNode = _nodeLookup7.vNode;
-1 15713 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) {
-1 15714 return '';
-1 15715 }
-1 15716 if (vNode.props.nodeType !== 1 || context.inLabelledByContext || context.inControlContext || !vNode.attr('aria-labelledby')) {
-1 15717 return '';
-1 15718 }
-1 15719 var refs = idrefs_default(vNode, 'aria-labelledby').filter(function(elm) {
-1 15720 return elm;
-1 15721 });
-1 15722 return refs.reduce(function(accessibleName, elm) {
-1 15723 var accessibleNameAdd = accessible_text_default(elm, _extends({
-1 15724 inLabelledByContext: true,
-1 15725 startNode: context.startNode || vNode
-1 15726 }, context));
-1 15727 if (!accessibleName) {
-1 15728 return accessibleNameAdd;
-1 15729 } else {
-1 15730 return ''.concat(accessibleName, ' ').concat(accessibleNameAdd);
-1 15731 }
-1 15732 }, '');
-1 15733 }
-1 15734 var arialabelledby_text_default = arialabelledbyText;
-1 15735 function _arialabelText(element) {
-1 15736 var _nodeLookup8 = _nodeLookup(element), vNode = _nodeLookup8.vNode;
-1 15737 if ((vNode === null || vNode === void 0 ? void 0 : vNode.props.nodeType) !== 1) {
-1 15738 return '';
-1 15739 }
-1 15740 return vNode.attr('aria-label') || '';
-1 15741 }
-1 15742 var ariaAttrs = {
-1 15743 'aria-activedescendant': {
-1 15744 type: 'idref',
-1 15745 allowEmpty: true
-1 15746 },
-1 15747 'aria-atomic': {
-1 15748 type: 'boolean',
-1 15749 global: true
-1 15750 },
-1 15751 'aria-autocomplete': {
-1 15752 type: 'nmtoken',
14393 15753 values: [ 'inline', 'list', 'both', 'none' ]
14394 15754 },
-1 15755 'aria-braillelabel': {
-1 15756 type: 'string',
-1 15757 allowEmpty: true,
-1 15758 global: true
-1 15759 },
-1 15760 'aria-brailleroledescription': {
-1 15761 type: 'string',
-1 15762 allowEmpty: true,
-1 15763 global: true
-1 15764 },
14395 15765 'aria-busy': {
14396 15766 type: 'boolean',
14397 15767 global: true
@@ -14423,8 +15793,13 @@ module.exports = {
14423 15793 values: [ 'page', 'step', 'location', 'date', 'time', 'true', 'false' ],
14424 15794 global: true
14425 15795 },
14426 -1 'aria-describedby': {
14427 -1 type: 'idrefs',
-1 15796 'aria-describedby': {
-1 15797 type: 'idrefs',
-1 15798 allowEmpty: true,
-1 15799 global: true
-1 15800 },
-1 15801 'aria-description': {
-1 15802 type: 'string',
14428 15803 allowEmpty: true,
14429 15804 global: true
14430 15805 },
@@ -14581,7 +15956,8 @@ module.exports = {
14581 15956 type: 'decimal'
14582 15957 },
14583 15958 'aria-valuetext': {
14584 -1 type: 'string'
-1 15959 type: 'string',
-1 15960 allowEmpty: true
14585 15961 }
14586 15962 };
14587 15963 var aria_attrs_default = ariaAttrs;
@@ -14641,7 +16017,7 @@ module.exports = {
14641 16017 checkbox: {
14642 16018 type: 'widget',
14643 16019 requiredAttrs: [ 'aria-checked' ],
14644 -1 allowedAttrs: [ 'aria-readonly', 'aria-required' ],
-1 16020 allowedAttrs: [ 'aria-readonly', 'aria-expanded', 'aria-required' ],
14645 16021 superclassRole: [ 'input' ],
14646 16022 accessibleNameRequired: true,
14647 16023 nameFromContent: true,
@@ -14708,6 +16084,7 @@ module.exports = {
14708 16084 },
14709 16085 directory: {
14710 16086 type: 'structure',
-1 16087 deprecated: true,
14711 16088 allowedAttrs: [ 'aria-expanded' ],
14712 16089 superclassRole: [ 'list' ],
14713 16090 nameFromContent: true
@@ -14836,13 +16213,13 @@ module.exports = {
14836 16213 },
14837 16214 menu: {
14838 16215 type: 'composite',
14839 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
-1 16216 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],
14840 16217 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14841 16218 superclassRole: [ 'select' ]
14842 16219 },
14843 16220 menubar: {
14844 16221 type: 'composite',
14845 -1 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu' ],
-1 16222 requiredOwned: [ 'group', 'menuitemradio', 'menuitem', 'menuitemcheckbox', 'menu', 'separator' ],
14846 16223 allowedAttrs: [ 'aria-activedescendant', 'aria-expanded', 'aria-orientation' ],
14847 16224 superclassRole: [ 'menu' ]
14848 16225 },
@@ -14858,7 +16235,7 @@ module.exports = {
14858 16235 type: 'widget',
14859 16236 requiredContext: [ 'menu', 'menubar', 'group' ],
14860 16237 requiredAttrs: [ 'aria-checked' ],
14861 -1 allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
-1 16238 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
14862 16239 superclassRole: [ 'checkbox', 'menuitem' ],
14863 16240 accessibleNameRequired: true,
14864 16241 nameFromContent: true,
@@ -14868,7 +16245,7 @@ module.exports = {
14868 16245 type: 'widget',
14869 16246 requiredContext: [ 'menu', 'menubar', 'group' ],
14870 16247 requiredAttrs: [ 'aria-checked' ],
14871 -1 allowedAttrs: [ 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
-1 16248 allowedAttrs: [ 'aria-expanded', 'aria-posinset', 'aria-readonly', 'aria-setsize' ],
14872 16249 superclassRole: [ 'menuitemcheckbox', 'radio' ],
14873 16250 accessibleNameRequired: true,
14874 16251 nameFromContent: true,
@@ -15022,7 +16399,7 @@ module.exports = {
15022 16399 slider: {
15023 16400 type: 'widget',
15024 16401 requiredAttrs: [ 'aria-valuenow' ],
15025 -1 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-valuetext' ],
-1 16402 allowedAttrs: [ 'aria-valuemax', 'aria-valuemin', 'aria-orientation', 'aria-readonly', 'aria-required', 'aria-valuetext' ],
15026 16403 superclassRole: [ 'input', 'range' ],
15027 16404 accessibleNameRequired: true,
15028 16405 childrenPresentational: true
@@ -15060,7 +16437,7 @@ module.exports = {
15060 16437 switch: {
15061 16438 type: 'widget',
15062 16439 requiredAttrs: [ 'aria-checked' ],
15063 -1 allowedAttrs: [ 'aria-readonly' ],
-1 16440 allowedAttrs: [ 'aria-expanded', 'aria-readonly', 'aria-required' ],
15064 16441 superclassRole: [ 'checkbox' ],
15065 16442 accessibleNameRequired: true,
15066 16443 nameFromContent: true,
@@ -15436,7 +16813,7 @@ module.exports = {
15436 16813 },
15437 16814 aside: {
15438 16815 contentTypes: [ 'sectioning', 'flow' ],
15439 -1 allowedRoles: [ 'feed', 'note', 'presentation', 'none', 'region', 'search', 'doc-dedication', 'doc-example', 'doc-footnote', 'doc-pullquote', 'doc-tip' ]
-1 16816 allowedRoles: [ 'feed', 'note', 'presentation', 'none', 'region', 'search', 'doc-dedication', 'doc-example', 'doc-footnote', 'doc-glossary', 'doc-pullquote', 'doc-tip' ]
15440 16817 },
15441 16818 audio: {
15442 16819 variant: {
@@ -15517,6 +16894,7 @@ module.exports = {
15517 16894 datalist: {
15518 16895 contentTypes: [ 'phrasing', 'flow' ],
15519 16896 allowedRoles: false,
-1 16897 noAriaAttrs: true,
15520 16898 implicitAttrs: {
15521 16899 'aria-multiselectable': 'false'
15522 16900 }
@@ -15673,7 +17051,7 @@ module.exports = {
15673 17051 }, {
15674 17052 hasAccessibleName: true
15675 17053 } ],
15676 -1 allowedRoles: [ 'button', 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]
-1 17054 allowedRoles: [ 'button', 'checkbox', 'link', 'menuitem', 'menuitemcheckbox', 'menuitemradio', 'meter', 'option', 'progressbar', 'radio', 'scrollbar', 'separator', 'slider', 'switch', 'tab', 'treeitem', 'doc-cover' ]
15677 17055 },
15678 17056 usemap: {
15679 17057 matches: '[usemap]',
@@ -15951,6 +17329,10 @@ module.exports = {
15951 17329 allowedRoles: false,
15952 17330 noAriaAttrs: true
15953 17331 },
-1 17332 search: {
-1 17333 contentTypes: [ 'flow' ],
-1 17334 allowedRoles: [ 'form', 'group', 'none', 'presentation', 'region', 'search' ]
-1 17335 },
15954 17336 section: {
15955 17337 contentTypes: [ 'sectioning', 'flow' ],
15956 17338 allowedRoles: [ 'alert', 'alertdialog', 'application', 'banner', 'complementary', 'contentinfo', 'dialog', 'document', 'feed', 'group', 'log', 'main', 'marquee', 'navigation', 'none', 'note', 'presentation', 'search', 'status', 'tabpanel', 'doc-abstract', 'doc-acknowledgments', 'doc-afterword', 'doc-appendix', 'doc-bibliography', 'doc-chapter', 'doc-colophon', 'doc-conclusion', 'doc-credit', 'doc-credits', 'doc-dedication', 'doc-endnotes', 'doc-epigraph', 'doc-epilogue', 'doc-errata', 'doc-example', 'doc-foreword', 'doc-glossary', 'doc-index', 'doc-introduction', 'doc-notice', 'doc-pagelist', 'doc-part', 'doc-preface', 'doc-prologue', 'doc-pullquote', 'doc-qna', 'doc-toc' ],
@@ -16049,2159 +17431,5383 @@ module.exports = {
16049 17431 thead: {
16050 17432 allowedRoles: true
16051 17433 },
16052 -1 time: {
16053 -1 contentTypes: [ 'phrasing', 'flow' ],
16054 -1 allowedRoles: true
-1 17434 time: {
-1 17435 contentTypes: [ 'phrasing', 'flow' ],
-1 17436 allowedRoles: true
-1 17437 },
-1 17438 title: {
-1 17439 allowedRoles: false,
-1 17440 noAriaAttrs: true
-1 17441 },
-1 17442 td: {
-1 17443 allowedRoles: true
-1 17444 },
-1 17445 th: {
-1 17446 allowedRoles: true
-1 17447 },
-1 17448 tr: {
-1 17449 allowedRoles: true
-1 17450 },
-1 17451 track: {
-1 17452 allowedRoles: false,
-1 17453 noAriaAttrs: true
-1 17454 },
-1 17455 u: {
-1 17456 contentTypes: [ 'phrasing', 'flow' ],
-1 17457 allowedRoles: true
-1 17458 },
-1 17459 ul: {
-1 17460 contentTypes: [ 'flow' ],
-1 17461 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]
-1 17462 },
-1 17463 var: {
-1 17464 contentTypes: [ 'phrasing', 'flow' ],
-1 17465 allowedRoles: true
-1 17466 },
-1 17467 video: {
-1 17468 variant: {
-1 17469 controls: {
-1 17470 matches: '[controls]',
-1 17471 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]
-1 17472 },
-1 17473 default: {
-1 17474 contentTypes: [ 'embedded', 'phrasing', 'flow' ]
-1 17475 }
-1 17476 },
-1 17477 allowedRoles: [ 'application' ],
-1 17478 chromiumRole: 'video'
-1 17479 },
-1 17480 wbr: {
-1 17481 contentTypes: [ 'phrasing', 'flow' ],
-1 17482 allowedRoles: [ 'presentation', 'none' ]
-1 17483 }
-1 17484 };
-1 17485 var html_elms_default = htmlElms;
-1 17486 var cssColors = {
-1 17487 aliceblue: [ 240, 248, 255 ],
-1 17488 antiquewhite: [ 250, 235, 215 ],
-1 17489 aqua: [ 0, 255, 255 ],
-1 17490 aquamarine: [ 127, 255, 212 ],
-1 17491 azure: [ 240, 255, 255 ],
-1 17492 beige: [ 245, 245, 220 ],
-1 17493 bisque: [ 255, 228, 196 ],
-1 17494 black: [ 0, 0, 0 ],
-1 17495 blanchedalmond: [ 255, 235, 205 ],
-1 17496 blue: [ 0, 0, 255 ],
-1 17497 blueviolet: [ 138, 43, 226 ],
-1 17498 brown: [ 165, 42, 42 ],
-1 17499 burlywood: [ 222, 184, 135 ],
-1 17500 cadetblue: [ 95, 158, 160 ],
-1 17501 chartreuse: [ 127, 255, 0 ],
-1 17502 chocolate: [ 210, 105, 30 ],
-1 17503 coral: [ 255, 127, 80 ],
-1 17504 cornflowerblue: [ 100, 149, 237 ],
-1 17505 cornsilk: [ 255, 248, 220 ],
-1 17506 crimson: [ 220, 20, 60 ],
-1 17507 cyan: [ 0, 255, 255 ],
-1 17508 darkblue: [ 0, 0, 139 ],
-1 17509 darkcyan: [ 0, 139, 139 ],
-1 17510 darkgoldenrod: [ 184, 134, 11 ],
-1 17511 darkgray: [ 169, 169, 169 ],
-1 17512 darkgreen: [ 0, 100, 0 ],
-1 17513 darkgrey: [ 169, 169, 169 ],
-1 17514 darkkhaki: [ 189, 183, 107 ],
-1 17515 darkmagenta: [ 139, 0, 139 ],
-1 17516 darkolivegreen: [ 85, 107, 47 ],
-1 17517 darkorange: [ 255, 140, 0 ],
-1 17518 darkorchid: [ 153, 50, 204 ],
-1 17519 darkred: [ 139, 0, 0 ],
-1 17520 darksalmon: [ 233, 150, 122 ],
-1 17521 darkseagreen: [ 143, 188, 143 ],
-1 17522 darkslateblue: [ 72, 61, 139 ],
-1 17523 darkslategray: [ 47, 79, 79 ],
-1 17524 darkslategrey: [ 47, 79, 79 ],
-1 17525 darkturquoise: [ 0, 206, 209 ],
-1 17526 darkviolet: [ 148, 0, 211 ],
-1 17527 deeppink: [ 255, 20, 147 ],
-1 17528 deepskyblue: [ 0, 191, 255 ],
-1 17529 dimgray: [ 105, 105, 105 ],
-1 17530 dimgrey: [ 105, 105, 105 ],
-1 17531 dodgerblue: [ 30, 144, 255 ],
-1 17532 firebrick: [ 178, 34, 34 ],
-1 17533 floralwhite: [ 255, 250, 240 ],
-1 17534 forestgreen: [ 34, 139, 34 ],
-1 17535 fuchsia: [ 255, 0, 255 ],
-1 17536 gainsboro: [ 220, 220, 220 ],
-1 17537 ghostwhite: [ 248, 248, 255 ],
-1 17538 gold: [ 255, 215, 0 ],
-1 17539 goldenrod: [ 218, 165, 32 ],
-1 17540 gray: [ 128, 128, 128 ],
-1 17541 green: [ 0, 128, 0 ],
-1 17542 greenyellow: [ 173, 255, 47 ],
-1 17543 grey: [ 128, 128, 128 ],
-1 17544 honeydew: [ 240, 255, 240 ],
-1 17545 hotpink: [ 255, 105, 180 ],
-1 17546 indianred: [ 205, 92, 92 ],
-1 17547 indigo: [ 75, 0, 130 ],
-1 17548 ivory: [ 255, 255, 240 ],
-1 17549 khaki: [ 240, 230, 140 ],
-1 17550 lavender: [ 230, 230, 250 ],
-1 17551 lavenderblush: [ 255, 240, 245 ],
-1 17552 lawngreen: [ 124, 252, 0 ],
-1 17553 lemonchiffon: [ 255, 250, 205 ],
-1 17554 lightblue: [ 173, 216, 230 ],
-1 17555 lightcoral: [ 240, 128, 128 ],
-1 17556 lightcyan: [ 224, 255, 255 ],
-1 17557 lightgoldenrodyellow: [ 250, 250, 210 ],
-1 17558 lightgray: [ 211, 211, 211 ],
-1 17559 lightgreen: [ 144, 238, 144 ],
-1 17560 lightgrey: [ 211, 211, 211 ],
-1 17561 lightpink: [ 255, 182, 193 ],
-1 17562 lightsalmon: [ 255, 160, 122 ],
-1 17563 lightseagreen: [ 32, 178, 170 ],
-1 17564 lightskyblue: [ 135, 206, 250 ],
-1 17565 lightslategray: [ 119, 136, 153 ],
-1 17566 lightslategrey: [ 119, 136, 153 ],
-1 17567 lightsteelblue: [ 176, 196, 222 ],
-1 17568 lightyellow: [ 255, 255, 224 ],
-1 17569 lime: [ 0, 255, 0 ],
-1 17570 limegreen: [ 50, 205, 50 ],
-1 17571 linen: [ 250, 240, 230 ],
-1 17572 magenta: [ 255, 0, 255 ],
-1 17573 maroon: [ 128, 0, 0 ],
-1 17574 mediumaquamarine: [ 102, 205, 170 ],
-1 17575 mediumblue: [ 0, 0, 205 ],
-1 17576 mediumorchid: [ 186, 85, 211 ],
-1 17577 mediumpurple: [ 147, 112, 219 ],
-1 17578 mediumseagreen: [ 60, 179, 113 ],
-1 17579 mediumslateblue: [ 123, 104, 238 ],
-1 17580 mediumspringgreen: [ 0, 250, 154 ],
-1 17581 mediumturquoise: [ 72, 209, 204 ],
-1 17582 mediumvioletred: [ 199, 21, 133 ],
-1 17583 midnightblue: [ 25, 25, 112 ],
-1 17584 mintcream: [ 245, 255, 250 ],
-1 17585 mistyrose: [ 255, 228, 225 ],
-1 17586 moccasin: [ 255, 228, 181 ],
-1 17587 navajowhite: [ 255, 222, 173 ],
-1 17588 navy: [ 0, 0, 128 ],
-1 17589 oldlace: [ 253, 245, 230 ],
-1 17590 olive: [ 128, 128, 0 ],
-1 17591 olivedrab: [ 107, 142, 35 ],
-1 17592 orange: [ 255, 165, 0 ],
-1 17593 orangered: [ 255, 69, 0 ],
-1 17594 orchid: [ 218, 112, 214 ],
-1 17595 palegoldenrod: [ 238, 232, 170 ],
-1 17596 palegreen: [ 152, 251, 152 ],
-1 17597 paleturquoise: [ 175, 238, 238 ],
-1 17598 palevioletred: [ 219, 112, 147 ],
-1 17599 papayawhip: [ 255, 239, 213 ],
-1 17600 peachpuff: [ 255, 218, 185 ],
-1 17601 peru: [ 205, 133, 63 ],
-1 17602 pink: [ 255, 192, 203 ],
-1 17603 plum: [ 221, 160, 221 ],
-1 17604 powderblue: [ 176, 224, 230 ],
-1 17605 purple: [ 128, 0, 128 ],
-1 17606 rebeccapurple: [ 102, 51, 153 ],
-1 17607 red: [ 255, 0, 0 ],
-1 17608 rosybrown: [ 188, 143, 143 ],
-1 17609 royalblue: [ 65, 105, 225 ],
-1 17610 saddlebrown: [ 139, 69, 19 ],
-1 17611 salmon: [ 250, 128, 114 ],
-1 17612 sandybrown: [ 244, 164, 96 ],
-1 17613 seagreen: [ 46, 139, 87 ],
-1 17614 seashell: [ 255, 245, 238 ],
-1 17615 sienna: [ 160, 82, 45 ],
-1 17616 silver: [ 192, 192, 192 ],
-1 17617 skyblue: [ 135, 206, 235 ],
-1 17618 slateblue: [ 106, 90, 205 ],
-1 17619 slategray: [ 112, 128, 144 ],
-1 17620 slategrey: [ 112, 128, 144 ],
-1 17621 snow: [ 255, 250, 250 ],
-1 17622 springgreen: [ 0, 255, 127 ],
-1 17623 steelblue: [ 70, 130, 180 ],
-1 17624 tan: [ 210, 180, 140 ],
-1 17625 teal: [ 0, 128, 128 ],
-1 17626 thistle: [ 216, 191, 216 ],
-1 17627 tomato: [ 255, 99, 71 ],
-1 17628 turquoise: [ 64, 224, 208 ],
-1 17629 violet: [ 238, 130, 238 ],
-1 17630 wheat: [ 245, 222, 179 ],
-1 17631 white: [ 255, 255, 255 ],
-1 17632 whitesmoke: [ 245, 245, 245 ],
-1 17633 yellow: [ 255, 255, 0 ],
-1 17634 yellowgreen: [ 154, 205, 50 ]
-1 17635 };
-1 17636 var css_colors_default = cssColors;
-1 17637 var originals = {
-1 17638 ariaAttrs: aria_attrs_default,
-1 17639 ariaRoles: _extends({}, aria_roles_default, dpub_roles_default, graphics_roles_default),
-1 17640 htmlElms: html_elms_default,
-1 17641 cssColors: css_colors_default
-1 17642 };
-1 17643 var standards = _extends({}, originals);
-1 17644 function configureStandards(config) {
-1 17645 Object.keys(standards).forEach(function(propName) {
-1 17646 if (config[propName]) {
-1 17647 standards[propName] = deep_merge_default(standards[propName], config[propName]);
-1 17648 }
-1 17649 });
-1 17650 }
-1 17651 function resetStandards() {
-1 17652 Object.keys(standards).forEach(function(propName) {
-1 17653 standards[propName] = originals[propName];
-1 17654 });
-1 17655 }
-1 17656 var standards_default = standards;
-1 17657 function isUnsupportedRole(role) {
-1 17658 var roleDefinition = standards_default.ariaRoles[role];
-1 17659 return roleDefinition ? !!roleDefinition.unsupported : false;
-1 17660 }
-1 17661 var is_unsupported_role_default = isUnsupportedRole;
-1 17662 function isValidRole(role) {
-1 17663 var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref26.allowAbstract, _ref26$flagUnsupporte = _ref26.flagUnsupported, flagUnsupported = _ref26$flagUnsupporte === void 0 ? false : _ref26$flagUnsupporte;
-1 17664 var roleDefinition = standards_default.ariaRoles[role];
-1 17665 var isRoleUnsupported = is_unsupported_role_default(role);
-1 17666 if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
-1 17667 return false;
-1 17668 }
-1 17669 return allowAbstract ? true : roleDefinition.type !== 'abstract';
-1 17670 }
-1 17671 var is_valid_role_default = isValidRole;
-1 17672 function getExplicitRole(vNode) {
-1 17673 var _ref27 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref27.fallback, abstracts = _ref27.abstracts, dpub = _ref27.dpub;
-1 17674 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 17675 if (vNode.props.nodeType !== 1) {
-1 17676 return null;
-1 17677 }
-1 17678 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();
-1 17679 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];
-1 17680 var firstValidRole = roleList.find(function(role) {
-1 17681 if (!dpub && role.substr(0, 4) === 'doc-') {
-1 17682 return false;
-1 17683 }
-1 17684 return is_valid_role_default(role, {
-1 17685 allowAbstract: abstracts
-1 17686 });
-1 17687 });
-1 17688 return firstValidRole || null;
-1 17689 }
-1 17690 var get_explicit_role_default = getExplicitRole;
-1 17691 function getElementsByContentType(type2) {
-1 17692 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {
-1 17693 var elm = standards_default.htmlElms[nodeName2];
-1 17694 if (elm.contentTypes) {
-1 17695 return elm.contentTypes.includes(type2);
-1 17696 }
-1 17697 if (!elm.variant) {
-1 17698 return false;
-1 17699 }
-1 17700 if (elm.variant['default'] && elm.variant['default'].contentTypes) {
-1 17701 return elm.variant['default'].contentTypes.includes(type2);
-1 17702 }
-1 17703 return false;
-1 17704 });
-1 17705 }
-1 17706 var get_elements_by_content_type_default = getElementsByContentType;
-1 17707 function getGlobalAriaAttrs() {
-1 17708 return cache_default.get('globalAriaAttrs', function() {
-1 17709 return Object.keys(standards_default.ariaAttrs).filter(function(attrName) {
-1 17710 return standards_default.ariaAttrs[attrName].global;
-1 17711 });
-1 17712 });
-1 17713 }
-1 17714 var get_global_aria_attrs_default = getGlobalAriaAttrs;
-1 17715 function toGrid(node) {
-1 17716 var table = [];
-1 17717 var rows = node.rows;
-1 17718 for (var i = 0, rowLength = rows.length; i < rowLength; i++) {
-1 17719 var cells = rows[i].cells;
-1 17720 table[i] = table[i] || [];
-1 17721 var columnIndex = 0;
-1 17722 for (var j = 0, cellLength = cells.length; j < cellLength; j++) {
-1 17723 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {
-1 17724 var rowspanAttr = cells[j].getAttribute('rowspan');
-1 17725 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;
-1 17726 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {
-1 17727 table[i + rowSpan] = table[i + rowSpan] || [];
-1 17728 while (table[i + rowSpan][columnIndex]) {
-1 17729 columnIndex++;
-1 17730 }
-1 17731 table[i + rowSpan][columnIndex] = cells[j];
-1 17732 }
-1 17733 columnIndex++;
-1 17734 }
-1 17735 }
-1 17736 }
-1 17737 return table;
-1 17738 }
-1 17739 var to_grid_default = memoize_default(toGrid);
-1 17740 function getCellPosition(cell, tableGrid) {
-1 17741 var rowIndex, index;
-1 17742 if (!tableGrid) {
-1 17743 tableGrid = to_grid_default(find_up_default(cell, 'table'));
-1 17744 }
-1 17745 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {
-1 17746 if (tableGrid[rowIndex]) {
-1 17747 index = tableGrid[rowIndex].indexOf(cell);
-1 17748 if (index !== -1) {
-1 17749 return {
-1 17750 x: index,
-1 17751 y: rowIndex
-1 17752 };
-1 17753 }
-1 17754 }
-1 17755 }
-1 17756 }
-1 17757 var get_cell_position_default = memoize_default(getCellPosition);
-1 17758 function _getScope(el) {
-1 17759 var _nodeLookup9 = _nodeLookup(el), vNode = _nodeLookup9.vNode, cell = _nodeLookup9.domNode;
-1 17760 var scope = vNode.attr('scope');
-1 17761 var role = vNode.attr('role');
-1 17762 if (![ 'td', 'th' ].includes(vNode.props.nodeName)) {
-1 17763 throw new TypeError('Expected TD or TH element');
-1 17764 }
-1 17765 if (role === 'columnheader') {
-1 17766 return 'col';
-1 17767 } else if (role === 'rowheader') {
-1 17768 return 'row';
-1 17769 } else if (scope === 'col' || scope === 'row') {
-1 17770 return scope;
-1 17771 } else if (vNode.props.nodeName !== 'th') {
-1 17772 return false;
-1 17773 } else if (!vNode.actualNode) {
-1 17774 return 'auto';
-1 17775 }
-1 17776 var tableGrid = to_grid_default(find_up_default(cell, 'table'));
-1 17777 var pos = get_cell_position_default(cell, tableGrid);
-1 17778 var headerRow = tableGrid[pos.y].every(function(node) {
-1 17779 return node.nodeName.toUpperCase() === 'TH';
-1 17780 });
-1 17781 if (headerRow) {
-1 17782 return 'col';
-1 17783 }
-1 17784 var headerCol = tableGrid.map(function(col) {
-1 17785 return col[pos.x];
-1 17786 }).every(function(node) {
-1 17787 return node && node.nodeName.toUpperCase() === 'TH';
-1 17788 });
-1 17789 if (headerCol) {
-1 17790 return 'row';
-1 17791 }
-1 17792 return 'auto';
-1 17793 }
-1 17794 function isColumnHeader(element) {
-1 17795 return [ 'col', 'auto' ].indexOf(_getScope(element)) !== -1;
-1 17796 }
-1 17797 var is_column_header_default = isColumnHeader;
-1 17798 function isRowHeader(cell) {
-1 17799 return [ 'row', 'auto' ].includes(_getScope(cell));
-1 17800 }
-1 17801 var is_row_header_default = isRowHeader;
-1 17802 function sanitize(str) {
-1 17803 if (!str) {
-1 17804 return '';
-1 17805 }
-1 17806 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();
-1 17807 }
-1 17808 var sanitize_default = sanitize;
-1 17809 var getSectioningElementSelector = function getSectioningElementSelector() {
-1 17810 return cache_default.get('sectioningElementSelector', function() {
-1 17811 return get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
-1 17812 return ''.concat(nodeName2, ':not([role])');
-1 17813 }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
-1 17814 });
-1 17815 };
-1 17816 function hasAccessibleName(vNode) {
-1 17817 var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
-1 17818 var ariaLabel = sanitize_default(_arialabelText(vNode));
-1 17819 return !!(ariaLabelledby || ariaLabel);
-1 17820 }
-1 17821 var implicitHtmlRoles = {
-1 17822 a: function a(vNode) {
-1 17823 return vNode.hasAttr('href') ? 'link' : null;
-1 17824 },
-1 17825 area: function area(vNode) {
-1 17826 return vNode.hasAttr('href') ? 'link' : null;
16055 17827 },
16056 -1 title: {
16057 -1 allowedRoles: false,
16058 -1 noAriaAttrs: true
-1 17828 article: 'article',
-1 17829 aside: 'complementary',
-1 17830 body: 'document',
-1 17831 button: 'button',
-1 17832 datalist: 'listbox',
-1 17833 dd: 'definition',
-1 17834 dfn: 'term',
-1 17835 details: 'group',
-1 17836 dialog: 'dialog',
-1 17837 dt: 'term',
-1 17838 fieldset: 'group',
-1 17839 figure: 'figure',
-1 17840 footer: function footer(vNode) {
-1 17841 var sectioningElement = closest_default(vNode, getSectioningElementSelector());
-1 17842 return !sectioningElement ? 'contentinfo' : null;
16059 17843 },
16060 -1 td: {
16061 -1 allowedRoles: true
-1 17844 form: function form(vNode) {
-1 17845 return hasAccessibleName(vNode) ? 'form' : null;
16062 17846 },
16063 -1 th: {
16064 -1 allowedRoles: true
-1 17847 h1: 'heading',
-1 17848 h2: 'heading',
-1 17849 h3: 'heading',
-1 17850 h4: 'heading',
-1 17851 h5: 'heading',
-1 17852 h6: 'heading',
-1 17853 header: function header(vNode) {
-1 17854 var sectioningElement = closest_default(vNode, getSectioningElementSelector());
-1 17855 return !sectioningElement ? 'banner' : null;
16065 17856 },
16066 -1 tr: {
16067 -1 allowedRoles: true
-1 17857 hr: 'separator',
-1 17858 img: function img(vNode) {
-1 17859 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');
-1 17860 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {
-1 17861 return vNode.hasAttr(attr);
-1 17862 });
-1 17863 return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img';
16068 17864 },
16069 -1 track: {
16070 -1 allowedRoles: false,
16071 -1 noAriaAttrs: true
-1 17865 input: function input(vNode) {
-1 17866 var suggestionsSourceElement;
-1 17867 if (vNode.hasAttr('list')) {
-1 17868 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {
-1 17869 return !!node;
-1 17870 })[0];
-1 17871 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';
-1 17872 }
-1 17873 switch (vNode.props.type) {
-1 17874 case 'checkbox':
-1 17875 return 'checkbox';
-1 17876
-1 17877 case 'number':
-1 17878 return 'spinbutton';
-1 17879
-1 17880 case 'radio':
-1 17881 return 'radio';
-1 17882
-1 17883 case 'range':
-1 17884 return 'slider';
-1 17885
-1 17886 case 'search':
-1 17887 return !suggestionsSourceElement ? 'searchbox' : 'combobox';
-1 17888
-1 17889 case 'button':
-1 17890 case 'image':
-1 17891 case 'reset':
-1 17892 case 'submit':
-1 17893 return 'button';
-1 17894
-1 17895 case 'text':
-1 17896 case 'tel':
-1 17897 case 'url':
-1 17898 case 'email':
-1 17899 case '':
-1 17900 return !suggestionsSourceElement ? 'textbox' : 'combobox';
-1 17901
-1 17902 default:
-1 17903 return 'textbox';
-1 17904 }
16072 17905 },
16073 -1 u: {
16074 -1 contentTypes: [ 'phrasing', 'flow' ],
16075 -1 allowedRoles: true
-1 17906 li: 'listitem',
-1 17907 main: 'main',
-1 17908 math: 'math',
-1 17909 menu: 'list',
-1 17910 nav: 'navigation',
-1 17911 ol: 'list',
-1 17912 optgroup: 'group',
-1 17913 option: 'option',
-1 17914 output: 'status',
-1 17915 progress: 'progressbar',
-1 17916 search: 'search',
-1 17917 section: function section(vNode) {
-1 17918 return hasAccessibleName(vNode) ? 'region' : null;
16076 17919 },
16077 -1 ul: {
16078 -1 contentTypes: [ 'flow' ],
16079 -1 allowedRoles: [ 'directory', 'group', 'listbox', 'menu', 'menubar', 'none', 'presentation', 'radiogroup', 'tablist', 'toolbar', 'tree' ]
-1 17920 select: function select(vNode) {
-1 17921 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';
16080 17922 },
16081 -1 var: {
16082 -1 contentTypes: [ 'phrasing', 'flow' ],
16083 -1 allowedRoles: true
-1 17923 summary: 'button',
-1 17924 table: 'table',
-1 17925 tbody: 'rowgroup',
-1 17926 td: function td(vNode) {
-1 17927 var table = closest_default(vNode, 'table');
-1 17928 var role = get_explicit_role_default(table);
-1 17929 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';
16084 17930 },
16085 -1 video: {
16086 -1 variant: {
16087 -1 controls: {
16088 -1 matches: '[controls]',
16089 -1 contentTypes: [ 'interactive', 'embedded', 'phrasing', 'flow' ]
16090 -1 },
16091 -1 default: {
16092 -1 contentTypes: [ 'embedded', 'phrasing', 'flow' ]
16093 -1 }
16094 -1 },
16095 -1 allowedRoles: [ 'application' ],
16096 -1 chromiumRole: 'video'
-1 17931 textarea: 'textbox',
-1 17932 tfoot: 'rowgroup',
-1 17933 th: function th(vNode) {
-1 17934 if (is_column_header_default(vNode)) {
-1 17935 return 'columnheader';
-1 17936 }
-1 17937 if (is_row_header_default(vNode)) {
-1 17938 return 'rowheader';
-1 17939 }
16097 17940 },
16098 -1 wbr: {
16099 -1 contentTypes: [ 'phrasing', 'flow' ],
16100 -1 allowedRoles: [ 'presentation', 'none' ]
-1 17941 thead: 'rowgroup',
-1 17942 tr: 'row',
-1 17943 ul: 'list'
-1 17944 };
-1 17945 var implicit_html_roles_default = implicitHtmlRoles;
-1 17946 function fromPrimative(someString, matcher) {
-1 17947 var matcherType = _typeof(matcher);
-1 17948 if (Array.isArray(matcher) && typeof someString !== 'undefined') {
-1 17949 return matcher.includes(someString);
-1 17950 }
-1 17951 if (matcherType === 'function') {
-1 17952 return !!matcher(someString);
-1 17953 }
-1 17954 if (someString !== null && someString !== void 0) {
-1 17955 if (matcher instanceof RegExp) {
-1 17956 return matcher.test(someString);
-1 17957 }
-1 17958 if (/^\/.*\/$/.test(matcher)) {
-1 17959 var pattern = matcher.substring(1, matcher.length - 1);
-1 17960 return new RegExp(pattern).test(someString);
-1 17961 }
-1 17962 }
-1 17963 return matcher === someString;
-1 17964 }
-1 17965 var from_primative_default = fromPrimative;
-1 17966 function hasAccessibleName2(vNode, matcher) {
-1 17967 return from_primative_default(!!_accessibleTextVirtual(vNode), matcher);
-1 17968 }
-1 17969 var has_accessible_name_default = hasAccessibleName2;
-1 17970 function fromFunction(getValue, matcher) {
-1 17971 var matcherType = _typeof(matcher);
-1 17972 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {
-1 17973 throw new Error('Expect matcher to be an object');
-1 17974 }
-1 17975 return Object.keys(matcher).every(function(propName) {
-1 17976 return from_primative_default(getValue(propName), matcher[propName]);
-1 17977 });
-1 17978 }
-1 17979 var from_function_default = fromFunction;
-1 17980 function attributes(vNode, matcher) {
-1 17981 vNode = _nodeLookup(vNode).vNode;
-1 17982 return from_function_default(function(attrName) {
-1 17983 return vNode.attr(attrName);
-1 17984 }, matcher);
-1 17985 }
-1 17986 var attributes_default = attributes;
-1 17987 function condition(arg, matcher) {
-1 17988 return !!matcher(arg);
-1 17989 }
-1 17990 function explicitRole(vNode, matcher) {
-1 17991 return from_primative_default(get_explicit_role_default(vNode), matcher);
-1 17992 }
-1 17993 var explicit_role_default = explicitRole;
-1 17994 function implicitRole(vNode, matcher) {
-1 17995 return from_primative_default(implicit_role_default(vNode), matcher);
-1 17996 }
-1 17997 var implicit_role_default2 = implicitRole;
-1 17998 function nodeName(vNode, matcher) {
-1 17999 vNode = _nodeLookup(vNode).vNode;
-1 18000 return from_primative_default(vNode.props.nodeName, matcher);
-1 18001 }
-1 18002 var node_name_default = nodeName;
-1 18003 function properties(vNode, matcher) {
-1 18004 vNode = _nodeLookup(vNode).vNode;
-1 18005 return from_function_default(function(propName) {
-1 18006 return vNode.props[propName];
-1 18007 }, matcher);
-1 18008 }
-1 18009 var properties_default = properties;
-1 18010 function semanticRole(vNode, matcher) {
-1 18011 return from_primative_default(get_role_default(vNode), matcher);
-1 18012 }
-1 18013 var semantic_role_default = semanticRole;
-1 18014 var matchers = {
-1 18015 hasAccessibleName: has_accessible_name_default,
-1 18016 attributes: attributes_default,
-1 18017 condition: condition,
-1 18018 explicitRole: explicit_role_default,
-1 18019 implicitRole: implicit_role_default2,
-1 18020 nodeName: node_name_default,
-1 18021 properties: properties_default,
-1 18022 semanticRole: semantic_role_default
-1 18023 };
-1 18024 function fromDefinition(vNode, definition) {
-1 18025 vNode = _nodeLookup(vNode).vNode;
-1 18026 if (Array.isArray(definition)) {
-1 18027 return definition.some(function(definitionItem) {
-1 18028 return fromDefinition(vNode, definitionItem);
-1 18029 });
-1 18030 }
-1 18031 if (typeof definition === 'string') {
-1 18032 return _matches(vNode, definition);
-1 18033 }
-1 18034 return Object.keys(definition).every(function(matcherName) {
-1 18035 if (!matchers[matcherName]) {
-1 18036 throw new Error('Unknown matcher type "'.concat(matcherName, '"'));
-1 18037 }
-1 18038 var matchMethod = matchers[matcherName];
-1 18039 var matcher = definition[matcherName];
-1 18040 return matchMethod(vNode, matcher);
-1 18041 });
-1 18042 }
-1 18043 var from_definition_default = fromDefinition;
-1 18044 function matches2(vNode, definition) {
-1 18045 return from_definition_default(vNode, definition);
-1 18046 }
-1 18047 var matches_default = matches2;
-1 18048 matches_default.hasAccessibleName = has_accessible_name_default;
-1 18049 matches_default.attributes = attributes_default;
-1 18050 matches_default.condition = condition;
-1 18051 matches_default.explicitRole = explicit_role_default;
-1 18052 matches_default.fromDefinition = from_definition_default;
-1 18053 matches_default.fromFunction = from_function_default;
-1 18054 matches_default.fromPrimative = from_primative_default;
-1 18055 matches_default.implicitRole = implicit_role_default2;
-1 18056 matches_default.nodeName = node_name_default;
-1 18057 matches_default.properties = properties_default;
-1 18058 matches_default.semanticRole = semantic_role_default;
-1 18059 var matches_default2 = matches_default;
-1 18060 function getElementSpec(vNode) {
-1 18061 var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref28$noMatchAccessi = _ref28.noMatchAccessibleName, noMatchAccessibleName = _ref28$noMatchAccessi === void 0 ? false : _ref28$noMatchAccessi;
-1 18062 var standard = standards_default.htmlElms[vNode.props.nodeName];
-1 18063 if (!standard) {
-1 18064 return {};
-1 18065 }
-1 18066 if (!standard.variant) {
-1 18067 return standard;
-1 18068 }
-1 18069 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded4);
-1 18070 for (var variantName in variant) {
-1 18071 if (!variant.hasOwnProperty(variantName) || variantName === 'default') {
-1 18072 continue;
-1 18073 }
-1 18074 var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded5);
-1 18075 var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
-1 18076 for (var _i9 = 0; _i9 < matchProperties.length && noMatchAccessibleName; _i9++) {
-1 18077 if (matchProperties[_i9].hasOwnProperty('hasAccessibleName')) {
-1 18078 return standard;
-1 18079 }
-1 18080 }
-1 18081 if (matches_default2(vNode, matches4)) {
-1 18082 for (var propName in props) {
-1 18083 if (props.hasOwnProperty(propName)) {
-1 18084 spec[propName] = props[propName];
-1 18085 }
-1 18086 }
-1 18087 }
-1 18088 }
-1 18089 for (var _propName in variant['default']) {
-1 18090 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {
-1 18091 spec[_propName] = variant['default'][_propName];
-1 18092 }
-1 18093 }
-1 18094 return spec;
-1 18095 }
-1 18096 var get_element_spec_default = getElementSpec;
-1 18097 function implicitRole2(node) {
-1 18098 var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref29.chromium;
-1 18099 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 18100 node = vNode.actualNode;
-1 18101 if (!vNode) {
-1 18102 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
-1 18103 }
-1 18104 var nodeName2 = vNode.props.nodeName;
-1 18105 var role = implicit_html_roles_default[nodeName2];
-1 18106 if (!role && chromium) {
-1 18107 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;
-1 18108 return chromiumRole || null;
-1 18109 }
-1 18110 if (typeof role === 'function') {
-1 18111 return role(vNode);
-1 18112 }
-1 18113 return role || null;
-1 18114 }
-1 18115 var implicit_role_default = implicitRole2;
-1 18116 var inheritsPresentationChain = {
-1 18117 td: [ 'tr' ],
-1 18118 th: [ 'tr' ],
-1 18119 tr: [ 'thead', 'tbody', 'tfoot', 'table' ],
-1 18120 thead: [ 'table' ],
-1 18121 tbody: [ 'table' ],
-1 18122 tfoot: [ 'table' ],
-1 18123 li: [ 'ol', 'ul' ],
-1 18124 dt: [ 'dl', 'div' ],
-1 18125 dd: [ 'dl', 'div' ],
-1 18126 div: [ 'dl' ]
-1 18127 };
-1 18128 function getInheritedRole(vNode, explicitRoleOptions) {
-1 18129 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];
-1 18130 if (!parentNodeNames) {
-1 18131 return null;
-1 18132 }
-1 18133 if (!vNode.parent) {
-1 18134 if (!vNode.actualNode) {
-1 18135 return null;
-1 18136 }
-1 18137 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');
-1 18138 }
-1 18139 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {
-1 18140 return null;
-1 18141 }
-1 18142 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);
-1 18143 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {
-1 18144 return parentRole;
-1 18145 }
-1 18146 if (parentRole) {
-1 18147 return null;
-1 18148 }
-1 18149 return getInheritedRole(vNode.parent, explicitRoleOptions);
-1 18150 }
-1 18151 function resolveImplicitRole(vNode, _ref30) {
-1 18152 var chromium = _ref30.chromium, explicitRoleOptions = _objectWithoutProperties(_ref30, _excluded6);
-1 18153 var implicitRole3 = implicit_role_default(vNode, {
-1 18154 chromium: chromium
-1 18155 });
-1 18156 if (!implicitRole3) {
-1 18157 return null;
-1 18158 }
-1 18159 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);
-1 18160 if (presentationalRole) {
-1 18161 return presentationalRole;
-1 18162 }
-1 18163 return implicitRole3;
-1 18164 }
-1 18165 function hasConflictResolution(vNode) {
-1 18166 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
-1 18167 return vNode.hasAttr(attr);
-1 18168 });
-1 18169 return hasGlobalAria || _isFocusable(vNode);
-1 18170 }
-1 18171 function resolveRole(node) {
-1 18172 var _ref31 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18173 var noImplicit = _ref31.noImplicit, roleOptions = _objectWithoutProperties(_ref31, _excluded7);
-1 18174 var _nodeLookup10 = _nodeLookup(node), vNode = _nodeLookup10.vNode;
-1 18175 if (vNode.props.nodeType !== 1) {
-1 18176 return null;
-1 18177 }
-1 18178 var explicitRole2 = get_explicit_role_default(vNode, roleOptions);
-1 18179 if (!explicitRole2) {
-1 18180 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 18181 }
-1 18182 if (![ 'presentation', 'none' ].includes(explicitRole2)) {
-1 18183 return explicitRole2;
-1 18184 }
-1 18185 if (hasConflictResolution(vNode)) {
-1 18186 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 18187 }
-1 18188 return explicitRole2;
-1 18189 }
-1 18190 function getRole(node) {
-1 18191 var _ref32 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18192 var noPresentational = _ref32.noPresentational, options = _objectWithoutProperties(_ref32, _excluded8);
-1 18193 var role = resolveRole(node, options);
-1 18194 if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
-1 18195 return null;
-1 18196 }
-1 18197 return role;
-1 18198 }
-1 18199 var get_role_default = getRole;
-1 18200 var alwaysTitleElements = [ 'iframe' ];
-1 18201 function titleText(node) {
-1 18202 var _nodeLookup11 = _nodeLookup(node), vNode = _nodeLookup11.vNode;
-1 18203 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {
-1 18204 return '';
-1 18205 }
-1 18206 if (!matches_default(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {
-1 18207 return '';
-1 18208 }
-1 18209 return vNode.attr('title');
-1 18210 }
-1 18211 var title_text_default = titleText;
-1 18212 function namedFromContents(vNode) {
-1 18213 var _ref33 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref33.strict;
-1 18214 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
-1 18215 if (vNode.props.nodeType !== 1) {
-1 18216 return false;
-1 18217 }
-1 18218 var role = get_role_default(vNode);
-1 18219 var roleDef = standards_default.ariaRoles[role];
-1 18220 if (roleDef && roleDef.nameFromContent) {
-1 18221 return true;
-1 18222 }
-1 18223 if (strict) {
-1 18224 return false;
-1 18225 }
-1 18226 return !roleDef || [ 'presentation', 'none' ].includes(role);
-1 18227 }
-1 18228 var named_from_contents_default = namedFromContents;
-1 18229 function getOwnedVirtual(virtualNode) {
-1 18230 var actualNode = virtualNode.actualNode, children = virtualNode.children;
-1 18231 if (!children) {
-1 18232 throw new Error('getOwnedVirtual requires a virtual node');
16101 18233 }
-1 18234 if (virtualNode.hasAttr('aria-owns')) {
-1 18235 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {
-1 18236 return !!element;
-1 18237 }).map(function(element) {
-1 18238 return axe.utils.getNodeFromTree(element);
-1 18239 });
-1 18240 return [].concat(_toConsumableArray(children), _toConsumableArray(owns));
-1 18241 }
-1 18242 return _toConsumableArray(children);
-1 18243 }
-1 18244 var get_owned_virtual_default = getOwnedVirtual;
-1 18245 var unsupported_default = {
-1 18246 accessibleNameFromFieldValue: [ 'progressbar' ]
16102 18247 };
16103 -1 var html_elms_default = htmlElms;
16104 -1 var cssColors = {
16105 -1 aliceblue: [ 240, 248, 255 ],
16106 -1 antiquewhite: [ 250, 235, 215 ],
16107 -1 aqua: [ 0, 255, 255 ],
16108 -1 aquamarine: [ 127, 255, 212 ],
16109 -1 azure: [ 240, 255, 255 ],
16110 -1 beige: [ 245, 245, 220 ],
16111 -1 bisque: [ 255, 228, 196 ],
16112 -1 black: [ 0, 0, 0 ],
16113 -1 blanchedalmond: [ 255, 235, 205 ],
16114 -1 blue: [ 0, 0, 255 ],
16115 -1 blueviolet: [ 138, 43, 226 ],
16116 -1 brown: [ 165, 42, 42 ],
16117 -1 burlywood: [ 222, 184, 135 ],
16118 -1 cadetblue: [ 95, 158, 160 ],
16119 -1 chartreuse: [ 127, 255, 0 ],
16120 -1 chocolate: [ 210, 105, 30 ],
16121 -1 coral: [ 255, 127, 80 ],
16122 -1 cornflowerblue: [ 100, 149, 237 ],
16123 -1 cornsilk: [ 255, 248, 220 ],
16124 -1 crimson: [ 220, 20, 60 ],
16125 -1 cyan: [ 0, 255, 255 ],
16126 -1 darkblue: [ 0, 0, 139 ],
16127 -1 darkcyan: [ 0, 139, 139 ],
16128 -1 darkgoldenrod: [ 184, 134, 11 ],
16129 -1 darkgray: [ 169, 169, 169 ],
16130 -1 darkgreen: [ 0, 100, 0 ],
16131 -1 darkgrey: [ 169, 169, 169 ],
16132 -1 darkkhaki: [ 189, 183, 107 ],
16133 -1 darkmagenta: [ 139, 0, 139 ],
16134 -1 darkolivegreen: [ 85, 107, 47 ],
16135 -1 darkorange: [ 255, 140, 0 ],
16136 -1 darkorchid: [ 153, 50, 204 ],
16137 -1 darkred: [ 139, 0, 0 ],
16138 -1 darksalmon: [ 233, 150, 122 ],
16139 -1 darkseagreen: [ 143, 188, 143 ],
16140 -1 darkslateblue: [ 72, 61, 139 ],
16141 -1 darkslategray: [ 47, 79, 79 ],
16142 -1 darkslategrey: [ 47, 79, 79 ],
16143 -1 darkturquoise: [ 0, 206, 209 ],
16144 -1 darkviolet: [ 148, 0, 211 ],
16145 -1 deeppink: [ 255, 20, 147 ],
16146 -1 deepskyblue: [ 0, 191, 255 ],
16147 -1 dimgray: [ 105, 105, 105 ],
16148 -1 dimgrey: [ 105, 105, 105 ],
16149 -1 dodgerblue: [ 30, 144, 255 ],
16150 -1 firebrick: [ 178, 34, 34 ],
16151 -1 floralwhite: [ 255, 250, 240 ],
16152 -1 forestgreen: [ 34, 139, 34 ],
16153 -1 fuchsia: [ 255, 0, 255 ],
16154 -1 gainsboro: [ 220, 220, 220 ],
16155 -1 ghostwhite: [ 248, 248, 255 ],
16156 -1 gold: [ 255, 215, 0 ],
16157 -1 goldenrod: [ 218, 165, 32 ],
16158 -1 gray: [ 128, 128, 128 ],
16159 -1 green: [ 0, 128, 0 ],
16160 -1 greenyellow: [ 173, 255, 47 ],
16161 -1 grey: [ 128, 128, 128 ],
16162 -1 honeydew: [ 240, 255, 240 ],
16163 -1 hotpink: [ 255, 105, 180 ],
16164 -1 indianred: [ 205, 92, 92 ],
16165 -1 indigo: [ 75, 0, 130 ],
16166 -1 ivory: [ 255, 255, 240 ],
16167 -1 khaki: [ 240, 230, 140 ],
16168 -1 lavender: [ 230, 230, 250 ],
16169 -1 lavenderblush: [ 255, 240, 245 ],
16170 -1 lawngreen: [ 124, 252, 0 ],
16171 -1 lemonchiffon: [ 255, 250, 205 ],
16172 -1 lightblue: [ 173, 216, 230 ],
16173 -1 lightcoral: [ 240, 128, 128 ],
16174 -1 lightcyan: [ 224, 255, 255 ],
16175 -1 lightgoldenrodyellow: [ 250, 250, 210 ],
16176 -1 lightgray: [ 211, 211, 211 ],
16177 -1 lightgreen: [ 144, 238, 144 ],
16178 -1 lightgrey: [ 211, 211, 211 ],
16179 -1 lightpink: [ 255, 182, 193 ],
16180 -1 lightsalmon: [ 255, 160, 122 ],
16181 -1 lightseagreen: [ 32, 178, 170 ],
16182 -1 lightskyblue: [ 135, 206, 250 ],
16183 -1 lightslategray: [ 119, 136, 153 ],
16184 -1 lightslategrey: [ 119, 136, 153 ],
16185 -1 lightsteelblue: [ 176, 196, 222 ],
16186 -1 lightyellow: [ 255, 255, 224 ],
16187 -1 lime: [ 0, 255, 0 ],
16188 -1 limegreen: [ 50, 205, 50 ],
16189 -1 linen: [ 250, 240, 230 ],
16190 -1 magenta: [ 255, 0, 255 ],
16191 -1 maroon: [ 128, 0, 0 ],
16192 -1 mediumaquamarine: [ 102, 205, 170 ],
16193 -1 mediumblue: [ 0, 0, 205 ],
16194 -1 mediumorchid: [ 186, 85, 211 ],
16195 -1 mediumpurple: [ 147, 112, 219 ],
16196 -1 mediumseagreen: [ 60, 179, 113 ],
16197 -1 mediumslateblue: [ 123, 104, 238 ],
16198 -1 mediumspringgreen: [ 0, 250, 154 ],
16199 -1 mediumturquoise: [ 72, 209, 204 ],
16200 -1 mediumvioletred: [ 199, 21, 133 ],
16201 -1 midnightblue: [ 25, 25, 112 ],
16202 -1 mintcream: [ 245, 255, 250 ],
16203 -1 mistyrose: [ 255, 228, 225 ],
16204 -1 moccasin: [ 255, 228, 181 ],
16205 -1 navajowhite: [ 255, 222, 173 ],
16206 -1 navy: [ 0, 0, 128 ],
16207 -1 oldlace: [ 253, 245, 230 ],
16208 -1 olive: [ 128, 128, 0 ],
16209 -1 olivedrab: [ 107, 142, 35 ],
16210 -1 orange: [ 255, 165, 0 ],
16211 -1 orangered: [ 255, 69, 0 ],
16212 -1 orchid: [ 218, 112, 214 ],
16213 -1 palegoldenrod: [ 238, 232, 170 ],
16214 -1 palegreen: [ 152, 251, 152 ],
16215 -1 paleturquoise: [ 175, 238, 238 ],
16216 -1 palevioletred: [ 219, 112, 147 ],
16217 -1 papayawhip: [ 255, 239, 213 ],
16218 -1 peachpuff: [ 255, 218, 185 ],
16219 -1 peru: [ 205, 133, 63 ],
16220 -1 pink: [ 255, 192, 203 ],
16221 -1 plum: [ 221, 160, 221 ],
16222 -1 powderblue: [ 176, 224, 230 ],
16223 -1 purple: [ 128, 0, 128 ],
16224 -1 rebeccapurple: [ 102, 51, 153 ],
16225 -1 red: [ 255, 0, 0 ],
16226 -1 rosybrown: [ 188, 143, 143 ],
16227 -1 royalblue: [ 65, 105, 225 ],
16228 -1 saddlebrown: [ 139, 69, 19 ],
16229 -1 salmon: [ 250, 128, 114 ],
16230 -1 sandybrown: [ 244, 164, 96 ],
16231 -1 seagreen: [ 46, 139, 87 ],
16232 -1 seashell: [ 255, 245, 238 ],
16233 -1 sienna: [ 160, 82, 45 ],
16234 -1 silver: [ 192, 192, 192 ],
16235 -1 skyblue: [ 135, 206, 235 ],
16236 -1 slateblue: [ 106, 90, 205 ],
16237 -1 slategray: [ 112, 128, 144 ],
16238 -1 slategrey: [ 112, 128, 144 ],
16239 -1 snow: [ 255, 250, 250 ],
16240 -1 springgreen: [ 0, 255, 127 ],
16241 -1 steelblue: [ 70, 130, 180 ],
16242 -1 tan: [ 210, 180, 140 ],
16243 -1 teal: [ 0, 128, 128 ],
16244 -1 thistle: [ 216, 191, 216 ],
16245 -1 tomato: [ 255, 99, 71 ],
16246 -1 turquoise: [ 64, 224, 208 ],
16247 -1 violet: [ 238, 130, 238 ],
16248 -1 wheat: [ 245, 222, 179 ],
16249 -1 white: [ 255, 255, 255 ],
16250 -1 whitesmoke: [ 245, 245, 245 ],
16251 -1 yellow: [ 255, 255, 0 ],
16252 -1 yellowgreen: [ 154, 205, 50 ]
16253 -1 };
16254 -1 var css_colors_default = cssColors;
16255 -1 var originals = {
16256 -1 ariaAttrs: aria_attrs_default,
16257 -1 ariaRoles: _extends({}, aria_roles_default, dpub_roles_default, graphics_roles_default),
16258 -1 htmlElms: html_elms_default,
16259 -1 cssColors: css_colors_default
-1 18248 function _isVisibleToScreenReaders(vNode) {
-1 18249 vNode = _nodeLookup(vNode).vNode;
-1 18250 return isVisibleToScreenReadersVirtual(vNode);
-1 18251 }
-1 18252 var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {
-1 18253 if (ariaHidden(vNode) || _isInert(vNode, {
-1 18254 skipAncestors: true,
-1 18255 isAncestor: isAncestor
-1 18256 })) {
-1 18257 return false;
-1 18258 }
-1 18259 if (vNode.actualNode && vNode.props.nodeName === 'area') {
-1 18260 return !areaHidden(vNode, isVisibleToScreenReadersVirtual);
-1 18261 }
-1 18262 if (_isHiddenForEveryone(vNode, {
-1 18263 skipAncestors: true,
-1 18264 isAncestor: isAncestor
-1 18265 })) {
-1 18266 return false;
-1 18267 }
-1 18268 if (!vNode.parent) {
-1 18269 return true;
-1 18270 }
-1 18271 return isVisibleToScreenReadersVirtual(vNode.parent, true);
-1 18272 });
-1 18273 function visibleVirtual(element, screenReader, noRecursing) {
-1 18274 var _nodeLookup12 = _nodeLookup(element), vNode = _nodeLookup12.vNode;
-1 18275 var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;
-1 18276 var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);
-1 18277 var result = vNode.children.map(function(child) {
-1 18278 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;
-1 18279 if (nodeType === 3) {
-1 18280 if (nodeValue && visible2) {
-1 18281 return nodeValue;
-1 18282 }
-1 18283 } else if (!noRecursing) {
-1 18284 return visibleVirtual(child, screenReader);
-1 18285 }
-1 18286 }).join('');
-1 18287 return sanitize_default(result);
-1 18288 }
-1 18289 var visible_virtual_default = visibleVirtual;
-1 18290 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];
-1 18291 function isNativeTextbox(node) {
-1 18292 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 18293 var nodeName2 = node.props.nodeName;
-1 18294 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());
-1 18295 }
-1 18296 var is_native_textbox_default = isNativeTextbox;
-1 18297 function isNativeSelect(node) {
-1 18298 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 18299 var nodeName2 = node.props.nodeName;
-1 18300 return nodeName2 === 'select';
-1 18301 }
-1 18302 var is_native_select_default = isNativeSelect;
-1 18303 function isAriaTextbox(node) {
-1 18304 var role = get_explicit_role_default(node);
-1 18305 return role === 'textbox';
-1 18306 }
-1 18307 var is_aria_textbox_default = isAriaTextbox;
-1 18308 function isAriaListbox(node) {
-1 18309 var role = get_explicit_role_default(node);
-1 18310 return role === 'listbox';
-1 18311 }
-1 18312 var is_aria_listbox_default = isAriaListbox;
-1 18313 function isAriaCombobox(node) {
-1 18314 var role = get_explicit_role_default(node);
-1 18315 return role === 'combobox';
-1 18316 }
-1 18317 var is_aria_combobox_default = isAriaCombobox;
-1 18318 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];
-1 18319 function isAriaRange(node) {
-1 18320 var role = get_explicit_role_default(node);
-1 18321 return rangeRoles.includes(role);
-1 18322 }
-1 18323 var is_aria_range_default = isAriaRange;
-1 18324 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];
-1 18325 var _formControlValueMethods = {
-1 18326 nativeTextboxValue: nativeTextboxValue,
-1 18327 nativeSelectValue: nativeSelectValue,
-1 18328 ariaTextboxValue: ariaTextboxValue,
-1 18329 ariaListboxValue: ariaListboxValue,
-1 18330 ariaComboboxValue: ariaComboboxValue,
-1 18331 ariaRangeValue: ariaRangeValue
16260 18332 };
16261 -1 var standards = _extends({}, originals);
16262 -1 function configureStandards(config) {
16263 -1 Object.keys(standards).forEach(function(propName) {
16264 -1 if (config[propName]) {
16265 -1 standards[propName] = deep_merge_default(standards[propName], config[propName]);
16266 -1 }
-1 18333 function formControlValue(virtualNode) {
-1 18334 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18335 var actualNode = virtualNode.actualNode;
-1 18336 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];
-1 18337 var role = get_role_default(virtualNode);
-1 18338 if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {
-1 18339 return '';
-1 18340 }
-1 18341 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {
-1 18342 return _formControlValueMethods[name];
16267 18343 });
-1 18344 var valueString = valueMethods.reduce(function(accName, step) {
-1 18345 return accName || step(virtualNode, context);
-1 18346 }, '');
-1 18347 if (context.debug) {
-1 18348 log_default(valueString || '{empty-value}', actualNode, context);
-1 18349 }
-1 18350 return valueString;
16268 18351 }
16269 -1 function resetStandards() {
16270 -1 Object.keys(standards).forEach(function(propName) {
16271 -1 standards[propName] = originals[propName];
16272 -1 });
-1 18352 function nativeTextboxValue(node) {
-1 18353 var _nodeLookup13 = _nodeLookup(node), vNode = _nodeLookup13.vNode;
-1 18354 if (is_native_textbox_default(vNode)) {
-1 18355 return vNode.props.value || '';
-1 18356 }
-1 18357 return '';
16273 18358 }
16274 -1 var standards_default = standards;
16275 -1 function isUnsupportedRole(role) {
16276 -1 var roleDefinition = standards_default.ariaRoles[role];
16277 -1 return roleDefinition ? !!roleDefinition.unsupported : false;
-1 18359 function nativeSelectValue(node) {
-1 18360 var _nodeLookup14 = _nodeLookup(node), vNode = _nodeLookup14.vNode;
-1 18361 if (!is_native_select_default(vNode)) {
-1 18362 return '';
-1 18363 }
-1 18364 var options = query_selector_all_default(vNode, 'option');
-1 18365 var selectedOptions = options.filter(function(option) {
-1 18366 return option.props.selected;
-1 18367 });
-1 18368 if (!selectedOptions.length) {
-1 18369 selectedOptions.push(options[0]);
-1 18370 }
-1 18371 return selectedOptions.map(function(option) {
-1 18372 return visible_virtual_default(option);
-1 18373 }).join(' ') || '';
16278 18374 }
16279 -1 var is_unsupported_role_default = isUnsupportedRole;
16280 -1 function isValidRole(role) {
16281 -1 var _ref23 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, allowAbstract = _ref23.allowAbstract, _ref23$flagUnsupporte = _ref23.flagUnsupported, flagUnsupported = _ref23$flagUnsupporte === void 0 ? false : _ref23$flagUnsupporte;
16282 -1 var roleDefinition = standards_default.ariaRoles[role];
16283 -1 var isRoleUnsupported = is_unsupported_role_default(role);
16284 -1 if (!roleDefinition || flagUnsupported && isRoleUnsupported) {
16285 -1 return false;
-1 18375 function ariaTextboxValue(node) {
-1 18376 var _nodeLookup15 = _nodeLookup(node), vNode = _nodeLookup15.vNode, domNode = _nodeLookup15.domNode;
-1 18377 if (!is_aria_textbox_default(vNode)) {
-1 18378 return '';
-1 18379 }
-1 18380 if (!domNode || domNode && !_isHiddenForEveryone(domNode)) {
-1 18381 return visible_virtual_default(vNode, true);
-1 18382 } else {
-1 18383 return domNode.textContent;
16286 18384 }
16287 -1 return allowAbstract ? true : roleDefinition.type !== 'abstract';
16288 18385 }
16289 -1 var is_valid_role_default = isValidRole;
16290 -1 function getExplicitRole(vNode) {
16291 -1 var _ref24 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, fallback = _ref24.fallback, abstracts = _ref24.abstracts, dpub = _ref24.dpub;
16292 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
16293 -1 if (vNode.props.nodeType !== 1) {
16294 -1 return null;
-1 18386 function ariaListboxValue(node, context) {
-1 18387 var _nodeLookup16 = _nodeLookup(node), vNode = _nodeLookup16.vNode;
-1 18388 if (!is_aria_listbox_default(vNode)) {
-1 18389 return '';
16295 18390 }
16296 -1 var roleAttr = (vNode.attr('role') || '').trim().toLowerCase();
16297 -1 var roleList = fallback ? token_list_default(roleAttr) : [ roleAttr ];
16298 -1 var firstValidRole = roleList.find(function(role) {
16299 -1 if (!dpub && role.substr(0, 4) === 'doc-') {
16300 -1 return false;
16301 -1 }
16302 -1 return is_valid_role_default(role, {
16303 -1 allowAbstract: abstracts
16304 -1 });
-1 18391 var selected = get_owned_virtual_default(vNode).filter(function(owned) {
-1 18392 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';
16305 18393 });
16306 -1 return firstValidRole || null;
-1 18394 if (selected.length === 0) {
-1 18395 return '';
-1 18396 }
-1 18397 return _accessibleTextVirtual(selected[0], context);
16307 18398 }
16308 -1 var get_explicit_role_default = getExplicitRole;
16309 -1 function getElementsByContentType(type) {
16310 -1 return Object.keys(standards_default.htmlElms).filter(function(nodeName2) {
16311 -1 var elm = standards_default.htmlElms[nodeName2];
16312 -1 if (elm.contentTypes) {
16313 -1 return elm.contentTypes.includes(type);
16314 -1 }
16315 -1 if (!elm.variant) {
16316 -1 return false;
16317 -1 }
16318 -1 if (elm.variant['default'] && elm.variant['default'].contentTypes) {
16319 -1 return elm.variant['default'].contentTypes.includes(type);
16320 -1 }
16321 -1 return false;
16322 -1 });
-1 18399 function ariaComboboxValue(node, context) {
-1 18400 var _nodeLookup17 = _nodeLookup(node), vNode = _nodeLookup17.vNode;
-1 18401 if (!is_aria_combobox_default(vNode)) {
-1 18402 return '';
-1 18403 }
-1 18404 var listbox = get_owned_virtual_default(vNode).filter(function(elm) {
-1 18405 return get_role_default(elm) === 'listbox';
-1 18406 })[0];
-1 18407 return listbox ? ariaListboxValue(listbox, context) : '';
16323 18408 }
16324 -1 var get_elements_by_content_type_default = getElementsByContentType;
16325 -1 function getGlobalAriaAttrs() {
16326 -1 return cache_default.get('globalAriaAttrs', function() {
16327 -1 return Object.keys(standards_default.ariaAttrs).filter(function(attrName) {
16328 -1 return standards_default.ariaAttrs[attrName].global;
16329 -1 });
16330 -1 });
-1 18409 function ariaRangeValue(node) {
-1 18410 var _nodeLookup18 = _nodeLookup(node), vNode = _nodeLookup18.vNode;
-1 18411 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {
-1 18412 return '';
-1 18413 }
-1 18414 var valueNow = +vNode.attr('aria-valuenow');
-1 18415 return !isNaN(valueNow) ? String(valueNow) : '0';
16331 18416 }
16332 -1 var get_global_aria_attrs_default = getGlobalAriaAttrs;
16333 -1 function toGrid(node) {
16334 -1 var table = [];
16335 -1 var rows = node.rows;
16336 -1 for (var i = 0, rowLength = rows.length; i < rowLength; i++) {
16337 -1 var cells = rows[i].cells;
16338 -1 table[i] = table[i] || [];
16339 -1 var columnIndex = 0;
16340 -1 for (var j = 0, cellLength = cells.length; j < cellLength; j++) {
16341 -1 for (var colSpan = 0; colSpan < cells[j].colSpan; colSpan++) {
16342 -1 var rowspanAttr = cells[j].getAttribute('rowspan');
16343 -1 var rowspanValue = parseInt(rowspanAttr) === 0 || cells[j].rowspan === 0 ? rows.length : cells[j].rowSpan;
16344 -1 for (var rowSpan = 0; rowSpan < rowspanValue; rowSpan++) {
16345 -1 table[i + rowSpan] = table[i + rowSpan] || [];
16346 -1 while (table[i + rowSpan][columnIndex]) {
16347 -1 columnIndex++;
16348 -1 }
16349 -1 table[i + rowSpan][columnIndex] = cells[j];
16350 -1 }
16351 -1 columnIndex++;
16352 -1 }
16353 -1 }
-1 18417 var form_control_value_default = formControlValue;
-1 18418 function subtreeText(virtualNode) {
-1 18419 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18420 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed;
-1 18421 context.startNode = context.startNode || virtualNode;
-1 18422 var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;
-1 18423 var role = get_role_default(virtualNode);
-1 18424 var _get_element_spec_def2 = get_element_spec_default(virtualNode, {
-1 18425 noMatchAccessibleName: true
-1 18426 }), contentTypes = _get_element_spec_def2.contentTypes;
-1 18427 if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded') || controlValueRoles.includes(role)) {
-1 18428 return '';
16354 18429 }
16355 -1 return table;
-1 18430 if (!context.subtreeDescendant && !context.inLabelledByContext && !named_from_contents_default(virtualNode, {
-1 18431 strict: strict
-1 18432 })) {
-1 18433 return '';
-1 18434 }
-1 18435 if (!strict) {
-1 18436 var subtreeDescendant = !inControlContext && !inLabelledByContext;
-1 18437 context = _extends({
-1 18438 subtreeDescendant: subtreeDescendant
-1 18439 }, context);
-1 18440 }
-1 18441 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {
-1 18442 return appendAccessibleText(contentText, child, context);
-1 18443 }, '');
16356 18444 }
16357 -1 var to_grid_default = memoize_default(toGrid);
16358 -1 function getCellPosition(cell, tableGrid) {
16359 -1 var rowIndex, index;
16360 -1 if (!tableGrid) {
16361 -1 tableGrid = to_grid_default(find_up_default(cell, 'table'));
-1 18445 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);
-1 18446 function appendAccessibleText(contentText, virtualNode, context) {
-1 18447 var nodeName2 = virtualNode.props.nodeName;
-1 18448 var contentTextAdd = _accessibleTextVirtual(virtualNode, context);
-1 18449 if (!contentTextAdd) {
-1 18450 return contentText;
16362 18451 }
16363 -1 for (rowIndex = 0; rowIndex < tableGrid.length; rowIndex++) {
16364 -1 if (tableGrid[rowIndex]) {
16365 -1 index = tableGrid[rowIndex].indexOf(cell);
16366 -1 if (index !== -1) {
16367 -1 return {
16368 -1 x: index,
16369 -1 y: rowIndex
16370 -1 };
16371 -1 }
-1 18452 if (!phrasingElements.includes(nodeName2)) {
-1 18453 if (contentTextAdd[0] !== ' ') {
-1 18454 contentTextAdd += ' ';
-1 18455 }
-1 18456 if (contentText && contentText[contentText.length - 1] !== ' ') {
-1 18457 contentTextAdd = ' ' + contentTextAdd;
16372 18458 }
16373 18459 }
-1 18460 return contentText + contentTextAdd;
-1 18461 }
-1 18462 var subtree_text_default = subtreeText;
-1 18463 function labelText(virtualNode) {
-1 18464 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18465 var alreadyProcessed2 = _accessibleTextVirtual.alreadyProcessed;
-1 18466 if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) {
-1 18467 return '';
-1 18468 }
-1 18469 if (!context.startNode) {
-1 18470 context.startNode = virtualNode;
-1 18471 }
-1 18472 var labelContext = _extends({
-1 18473 inControlContext: true
-1 18474 }, context);
-1 18475 var explicitLabels = getExplicitLabels(virtualNode);
-1 18476 var implicitLabel = closest_default(virtualNode, 'label');
-1 18477 var labels;
-1 18478 if (implicitLabel) {
-1 18479 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);
-1 18480 labels.sort(node_sorter_default);
-1 18481 } else {
-1 18482 labels = explicitLabels;
-1 18483 }
-1 18484 return labels.map(function(label3) {
-1 18485 return accessible_text_default(label3, labelContext);
-1 18486 }).filter(function(text) {
-1 18487 return text !== '';
-1 18488 }).join(' ');
-1 18489 }
-1 18490 function getExplicitLabels(virtualNode) {
-1 18491 if (!virtualNode.attr('id')) {
-1 18492 return [];
-1 18493 }
-1 18494 if (!virtualNode.actualNode) {
-1 18495 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 18496 }
-1 18497 return find_elms_in_context_default({
-1 18498 elm: 'label',
-1 18499 attr: 'for',
-1 18500 value: virtualNode.attr('id'),
-1 18501 context: virtualNode.actualNode
-1 18502 });
-1 18503 }
-1 18504 var label_text_default = labelText;
-1 18505 var defaultButtonValues = {
-1 18506 submit: 'Submit',
-1 18507 image: 'Submit',
-1 18508 reset: 'Reset',
-1 18509 button: ''
-1 18510 };
-1 18511 var nativeTextMethods = {
-1 18512 valueText: function valueText(_ref34) {
-1 18513 var actualNode = _ref34.actualNode;
-1 18514 return actualNode.value || '';
-1 18515 },
-1 18516 buttonDefaultText: function buttonDefaultText(_ref35) {
-1 18517 var actualNode = _ref35.actualNode;
-1 18518 return defaultButtonValues[actualNode.type] || '';
-1 18519 },
-1 18520 tableCaptionText: descendantText.bind(null, 'caption'),
-1 18521 figureText: descendantText.bind(null, 'figcaption'),
-1 18522 svgTitleText: descendantText.bind(null, 'title'),
-1 18523 fieldsetLegendText: descendantText.bind(null, 'legend'),
-1 18524 altText: attrText.bind(null, 'alt'),
-1 18525 tableSummaryText: attrText.bind(null, 'summary'),
-1 18526 titleText: title_text_default,
-1 18527 subtreeText: subtree_text_default,
-1 18528 labelText: label_text_default,
-1 18529 singleSpace: function singleSpace() {
-1 18530 return ' ';
-1 18531 },
-1 18532 placeholderText: attrText.bind(null, 'placeholder')
-1 18533 };
-1 18534 function attrText(attr, vNode) {
-1 18535 return vNode.attr(attr) || '';
16374 18536 }
16375 -1 var get_cell_position_default = memoize_default(getCellPosition);
16376 -1 function getScope(cell) {
16377 -1 var vNode = cell instanceof abstract_virtual_node_default ? cell : get_node_from_tree_default(cell);
16378 -1 cell = vNode.actualNode;
16379 -1 var scope = vNode.attr('scope');
16380 -1 var role = vNode.attr('role');
16381 -1 if (![ 'td', 'th' ].includes(vNode.props.nodeName)) {
16382 -1 throw new TypeError('Expected TD or TH element');
16383 -1 }
16384 -1 if (role === 'columnheader') {
16385 -1 return 'col';
16386 -1 } else if (role === 'rowheader') {
16387 -1 return 'row';
16388 -1 } else if (scope === 'col' || scope === 'row') {
16389 -1 return scope;
16390 -1 } else if (vNode.props.nodeName !== 'th') {
16391 -1 return false;
16392 -1 } else if (!vNode.actualNode) {
16393 -1 return 'auto';
-1 18537 function descendantText(nodeName2, _ref36, context) {
-1 18538 var actualNode = _ref36.actualNode;
-1 18539 nodeName2 = nodeName2.toLowerCase();
-1 18540 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
-1 18541 var candidate = actualNode.querySelector(nodeNames2);
-1 18542 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {
-1 18543 return '';
16394 18544 }
16395 -1 var tableGrid = to_grid_default(find_up_default(cell, 'table'));
16396 -1 var pos = get_cell_position_default(cell, tableGrid);
16397 -1 var headerRow = tableGrid[pos.y].reduce(function(headerRow2, cell2) {
16398 -1 return headerRow2 && cell2.nodeName.toUpperCase() === 'TH';
16399 -1 }, true);
16400 -1 if (headerRow) {
16401 -1 return 'col';
-1 18545 return accessible_text_default(candidate, context);
-1 18546 }
-1 18547 var native_text_methods_default = nativeTextMethods;
-1 18548 function _nativeTextAlternative(virtualNode) {
-1 18549 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18550 var actualNode = virtualNode.actualNode;
-1 18551 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {
-1 18552 return '';
16402 18553 }
16403 -1 var headerCol = tableGrid.map(function(col) {
16404 -1 return col[pos.x];
16405 -1 }).reduce(function(headerCol2, cell2) {
16406 -1 return headerCol2 && cell2 && cell2.nodeName.toUpperCase() === 'TH';
16407 -1 }, true);
16408 -1 if (headerCol) {
16409 -1 return 'row';
-1 18554 var textMethods = findTextMethods(virtualNode);
-1 18555 var accessibleName = textMethods.reduce(function(accName, step) {
-1 18556 return accName || step(virtualNode, context);
-1 18557 }, '');
-1 18558 if (context.debug) {
-1 18559 axe.log(accessibleName || '{empty-value}', actualNode, context);
16410 18560 }
16411 -1 return 'auto';
-1 18561 return accessibleName;
16412 18562 }
16413 -1 var get_scope_default = getScope;
16414 -1 function isColumnHeader(element) {
16415 -1 return [ 'col', 'auto' ].indexOf(get_scope_default(element)) !== -1;
-1 18563 function findTextMethods(virtualNode) {
-1 18564 var elmSpec = get_element_spec_default(virtualNode, {
-1 18565 noMatchAccessibleName: true
-1 18566 });
-1 18567 var methods = elmSpec.namingMethods || [];
-1 18568 return methods.map(function(methodName) {
-1 18569 return native_text_methods_default[methodName];
-1 18570 });
16416 18571 }
16417 -1 var is_column_header_default = isColumnHeader;
16418 -1 function isRowHeader(cell) {
16419 -1 return [ 'row', 'auto' ].includes(get_scope_default(cell));
-1 18572 function getUnicodeNonBmpRegExp() {
-1 18573 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
16420 18574 }
16421 -1 var is_row_header_default = isRowHeader;
16422 -1 function sanitize(str) {
16423 -1 if (!str) {
16424 -1 return '';
16425 -1 }
16426 -1 return str.replace(/\r\n/g, '\n').replace(/\u00A0/g, ' ').replace(/[\s]{2,}/g, ' ').trim();
-1 18575 function getPunctuationRegExp() {
-1 18576 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
16427 18577 }
16428 -1 var sanitize_default = sanitize;
16429 -1 var allowedDisabledNodeNames = [ 'button', 'command', 'fieldset', 'keygen', 'optgroup', 'option', 'select', 'textarea', 'input' ];
16430 -1 function isDisabledAttrAllowed(nodeName2) {
16431 -1 return allowedDisabledNodeNames.includes(nodeName2);
-1 18578 function getSupplementaryPrivateUseRegExp() {
-1 18579 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
16432 18580 }
16433 -1 function focusDisabled(el) {
16434 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
16435 -1 if (isDisabledAttrAllowed(vNode.props.nodeName) && vNode.hasAttr('disabled')) {
16436 -1 return true;
16437 -1 }
16438 -1 var parentNode = vNode.parent;
16439 -1 var ancestors = [];
16440 -1 var fieldsetDisabled = false;
16441 -1 while (parentNode && parentNode.shadowId === vNode.shadowId && !fieldsetDisabled) {
16442 -1 ancestors.push(parentNode);
16443 -1 if (parentNode.props.nodeName === 'legend') {
16444 -1 break;
16445 -1 }
16446 -1 if (parentNode._inDisabledFieldset !== void 0) {
16447 -1 fieldsetDisabled = parentNode._inDisabledFieldset;
16448 -1 break;
16449 -1 }
16450 -1 if (parentNode.props.nodeName === 'fieldset' && parentNode.hasAttr('disabled')) {
16451 -1 fieldsetDisabled = true;
16452 -1 }
16453 -1 parentNode = parentNode.parent;
16454 -1 }
16455 -1 ancestors.forEach(function(ancestor) {
16456 -1 return ancestor._inDisabledFieldset = fieldsetDisabled;
16457 -1 });
16458 -1 if (fieldsetDisabled) {
16459 -1 return true;
16460 -1 }
16461 -1 if (vNode.props.nodeName !== 'area') {
16462 -1 if (!vNode.actualNode) {
16463 -1 return false;
16464 -1 }
16465 -1 return _isHiddenForEveryone(vNode);
16466 -1 }
16467 -1 return false;
-1 18581 function getCategoryFormatRegExp() {
-1 18582 return /[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC38]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/g;
16468 18583 }
16469 -1 var focus_disabled_default = focusDisabled;
16470 -1 function isNativelyFocusable(el) {
16471 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
16472 -1 if (!vNode || focus_disabled_default(vNode)) {
16473 -1 return false;
-1 18584 var emoji_regex_default = function emoji_regex_default() {
-1 18585 return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
-1 18586 };
-1 18587 function hasUnicode(str, options) {
-1 18588 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
-1 18589 var value = false;
-1 18590 if (emoji) {
-1 18591 value || (value = emoji_regex_default().test(str));
16474 18592 }
16475 -1 switch (vNode.props.nodeName) {
16476 -1 case 'a':
16477 -1 case 'area':
16478 -1 if (vNode.hasAttr('href')) {
16479 -1 return true;
16480 -1 }
16481 -1 break;
16482 -1
16483 -1 case 'input':
16484 -1 return vNode.props.type !== 'hidden';
16485 -1
16486 -1 case 'textarea':
16487 -1 case 'select':
16488 -1 case 'summary':
16489 -1 case 'button':
16490 -1 return true;
16491 -1
16492 -1 case 'details':
16493 -1 return !query_selector_all_default(vNode, 'summary').length;
-1 18593 if (nonBmp) {
-1 18594 value || (value = getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str) || getCategoryFormatRegExp().test(str));
16494 18595 }
16495 -1 return false;
16496 -1 }
16497 -1 var is_natively_focusable_default = isNativelyFocusable;
16498 -1 function _isFocusable(el) {
16499 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
16500 -1 if (vNode.props.nodeType !== 1) {
16501 -1 return false;
-1 18596 if (punctuations) {
-1 18597 value || (value = getPunctuationRegExp().test(str));
16502 18598 }
16503 -1 if (focus_disabled_default(vNode)) {
-1 18599 return value;
-1 18600 }
-1 18601 var has_unicode_default = hasUnicode;
-1 18602 function _isIconLigature(textVNode) {
-1 18603 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
-1 18604 var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
-1 18605 var nodeValue = textVNode.actualNode.nodeValue.trim();
-1 18606 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
-1 18607 emoji: true,
-1 18608 nonBmp: true
-1 18609 })) {
16504 18610 return false;
16505 -1 } else if (is_natively_focusable_default(vNode)) {
16506 -1 return true;
16507 -1 }
16508 -1 var tabindex = vNode.attr('tabindex');
16509 -1 if (tabindex && !isNaN(parseInt(tabindex, 10))) {
16510 -1 return true;
16511 18611 }
16512 -1 return false;
16513 -1 }
16514 -1 var sectioningElementSelector = get_elements_by_content_type_default('sectioning').map(function(nodeName2) {
16515 -1 return ''.concat(nodeName2, ':not([role])');
16516 -1 }).join(', ') + ' , main:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]';
16517 -1 function hasAccessibleName(vNode) {
16518 -1 var ariaLabelledby = sanitize_default(arialabelledby_text_default(vNode));
16519 -1 var ariaLabel = sanitize_default(arialabel_text_default(vNode));
16520 -1 return !!(ariaLabelledby || ariaLabel);
16521 -1 }
16522 -1 var implicitHtmlRoles = {
16523 -1 a: function a(vNode) {
16524 -1 return vNode.hasAttr('href') ? 'link' : null;
16525 -1 },
16526 -1 area: function area(vNode) {
16527 -1 return vNode.hasAttr('href') ? 'link' : null;
16528 -1 },
16529 -1 article: 'article',
16530 -1 aside: 'complementary',
16531 -1 body: 'document',
16532 -1 button: 'button',
16533 -1 datalist: 'listbox',
16534 -1 dd: 'definition',
16535 -1 dfn: 'term',
16536 -1 details: 'group',
16537 -1 dialog: 'dialog',
16538 -1 dt: 'term',
16539 -1 fieldset: 'group',
16540 -1 figure: 'figure',
16541 -1 footer: function footer(vNode) {
16542 -1 var sectioningElement = closest_default(vNode, sectioningElementSelector);
16543 -1 return !sectioningElement ? 'contentinfo' : null;
16544 -1 },
16545 -1 form: function form(vNode) {
16546 -1 return hasAccessibleName(vNode) ? 'form' : null;
16547 -1 },
16548 -1 h1: 'heading',
16549 -1 h2: 'heading',
16550 -1 h3: 'heading',
16551 -1 h4: 'heading',
16552 -1 h5: 'heading',
16553 -1 h6: 'heading',
16554 -1 header: function header(vNode) {
16555 -1 var sectioningElement = closest_default(vNode, sectioningElementSelector);
16556 -1 return !sectioningElement ? 'banner' : null;
16557 -1 },
16558 -1 hr: 'separator',
16559 -1 img: function img(vNode) {
16560 -1 var emptyAlt = vNode.hasAttr('alt') && !vNode.attr('alt');
16561 -1 var hasGlobalAria = get_global_aria_attrs_default().find(function(attr) {
16562 -1 return vNode.hasAttr(attr);
-1 18612 var canvasContext = cache_default.get('canvasContext', function() {
-1 18613 return document.createElement('canvas').getContext('2d', {
-1 18614 willReadFrequently: true
16563 18615 });
16564 -1 return emptyAlt && !hasGlobalAria && !_isFocusable(vNode) ? 'presentation' : 'img';
16565 -1 },
16566 -1 input: function input(vNode) {
16567 -1 var suggestionsSourceElement;
16568 -1 if (vNode.hasAttr('list')) {
16569 -1 var listElement = idrefs_default(vNode.actualNode, 'list').filter(function(node) {
16570 -1 return !!node;
16571 -1 })[0];
16572 -1 suggestionsSourceElement = listElement && listElement.nodeName.toLowerCase() === 'datalist';
16573 -1 }
16574 -1 switch (vNode.props.type) {
16575 -1 case 'checkbox':
16576 -1 return 'checkbox';
16577 -1
16578 -1 case 'number':
16579 -1 return 'spinbutton';
16580 -1
16581 -1 case 'radio':
16582 -1 return 'radio';
16583 -1
16584 -1 case 'range':
16585 -1 return 'slider';
16586 -1
16587 -1 case 'search':
16588 -1 return !suggestionsSourceElement ? 'searchbox' : 'combobox';
16589 -1
16590 -1 case 'button':
16591 -1 case 'image':
16592 -1 case 'reset':
16593 -1 case 'submit':
16594 -1 return 'button';
16595 -1
16596 -1 case 'text':
16597 -1 case 'tel':
16598 -1 case 'url':
16599 -1 case 'email':
16600 -1 case '':
16601 -1 return !suggestionsSourceElement ? 'textbox' : 'combobox';
16602 -1
16603 -1 default:
16604 -1 return 'textbox';
-1 18616 });
-1 18617 var canvas = canvasContext.canvas;
-1 18618 var fonts = cache_default.get('fonts', function() {
-1 18619 return {};
-1 18620 });
-1 18621 var style = window.getComputedStyle(textVNode.parent.actualNode);
-1 18622 var fontFamily = style.getPropertyValue('font-family');
-1 18623 if (!fonts[fontFamily]) {
-1 18624 fonts[fontFamily] = {
-1 18625 occurrences: 0,
-1 18626 numLigatures: 0
-1 18627 };
-1 18628 }
-1 18629 var font = fonts[fontFamily];
-1 18630 if (font.occurrences >= occurrenceThreshold) {
-1 18631 if (font.numLigatures / font.occurrences === 1) {
-1 18632 return true;
-1 18633 } else if (font.numLigatures === 0) {
-1 18634 return false;
16605 18635 }
16606 -1 },
16607 -1 li: 'listitem',
16608 -1 main: 'main',
16609 -1 math: 'math',
16610 -1 menu: 'list',
16611 -1 nav: 'navigation',
16612 -1 ol: 'list',
16613 -1 optgroup: 'group',
16614 -1 option: 'option',
16615 -1 output: 'status',
16616 -1 progress: 'progressbar',
16617 -1 section: function section(vNode) {
16618 -1 return hasAccessibleName(vNode) ? 'region' : null;
16619 -1 },
16620 -1 select: function select(vNode) {
16621 -1 return vNode.hasAttr('multiple') || parseInt(vNode.attr('size')) > 1 ? 'listbox' : 'combobox';
16622 -1 },
16623 -1 summary: 'button',
16624 -1 table: 'table',
16625 -1 tbody: 'rowgroup',
16626 -1 td: function td(vNode) {
16627 -1 var table = closest_default(vNode, 'table');
16628 -1 var role = get_explicit_role_default(table);
16629 -1 return [ 'grid', 'treegrid' ].includes(role) ? 'gridcell' : 'cell';
16630 -1 },
16631 -1 textarea: 'textbox',
16632 -1 tfoot: 'rowgroup',
16633 -1 th: function th(vNode) {
16634 -1 if (is_column_header_default(vNode)) {
16635 -1 return 'columnheader';
-1 18636 }
-1 18637 font.occurrences++;
-1 18638 var fontSize = 30;
-1 18639 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
-1 18640 canvasContext.font = fontStyle;
-1 18641 var firstChar = nodeValue.charAt(0);
-1 18642 var width = canvasContext.measureText(firstChar).width;
-1 18643 if (width === 0) {
-1 18644 font.numLigatures++;
-1 18645 return true;
-1 18646 }
-1 18647 if (width < 30) {
-1 18648 var diff = 30 / width;
-1 18649 width *= diff;
-1 18650 fontSize *= diff;
-1 18651 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
-1 18652 }
-1 18653 canvas.width = width;
-1 18654 canvas.height = fontSize;
-1 18655 canvasContext.font = fontStyle;
-1 18656 canvasContext.textAlign = 'left';
-1 18657 canvasContext.textBaseline = 'top';
-1 18658 canvasContext.fillText(firstChar, 0, 0);
-1 18659 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
-1 18660 if (!compareData.some(function(pixel) {
-1 18661 return pixel;
-1 18662 })) {
-1 18663 font.numLigatures++;
-1 18664 return true;
-1 18665 }
-1 18666 canvasContext.clearRect(0, 0, width, fontSize);
-1 18667 canvasContext.fillText(nodeValue, 0, 0);
-1 18668 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
-1 18669 var differences = compareData.reduce(function(diff, pixel, i) {
-1 18670 if (pixel === 0 && compareWith[i] === 0) {
-1 18671 return diff;
16636 18672 }
16637 -1 if (is_row_header_default(vNode)) {
16638 -1 return 'rowheader';
-1 18673 if (pixel !== 0 && compareWith[i] !== 0) {
-1 18674 return diff;
16639 18675 }
16640 -1 },
16641 -1 thead: 'rowgroup',
16642 -1 tr: 'row',
16643 -1 ul: 'list'
16644 -1 };
16645 -1 var implicit_html_roles_default = implicitHtmlRoles;
16646 -1 function fromPrimative(someString, matcher) {
16647 -1 var matcherType = _typeof(matcher);
16648 -1 if (Array.isArray(matcher) && typeof someString !== 'undefined') {
16649 -1 return matcher.includes(someString);
-1 18676 return ++diff;
-1 18677 }, 0);
-1 18678 var expectedWidth = nodeValue.split('').reduce(function(totalWidth, _char2) {
-1 18679 return totalWidth + canvasContext.measureText(_char2).width;
-1 18680 }, 0);
-1 18681 var actualWidth = canvasContext.measureText(nodeValue).width;
-1 18682 var pixelDifference = differences / compareData.length;
-1 18683 var sizeDifference = 1 - actualWidth / expectedWidth;
-1 18684 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
-1 18685 font.numLigatures++;
-1 18686 return true;
16650 18687 }
16651 -1 if (matcherType === 'function') {
16652 -1 return !!matcher(someString);
-1 18688 return false;
-1 18689 }
-1 18690 function _accessibleTextVirtual(virtualNode) {
-1 18691 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 18692 context = prepareContext(virtualNode, context);
-1 18693 if (shouldIgnoreHidden(virtualNode, context)) {
-1 18694 return '';
16653 18695 }
16654 -1 if (someString !== null && someString !== void 0) {
16655 -1 if (matcher instanceof RegExp) {
16656 -1 return matcher.test(someString);
-1 18696 if (shouldIgnoreIconLigature(virtualNode, context)) {
-1 18697 return '';
-1 18698 }
-1 18699 var computationSteps = [ arialabelledby_text_default, _arialabelText, _nativeTextAlternative, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];
-1 18700 var accessibleName = computationSteps.reduce(function(accName, step) {
-1 18701 if (context.startNode === virtualNode) {
-1 18702 accName = sanitize_default(accName);
16657 18703 }
16658 -1 if (/^\/.*\/$/.test(matcher)) {
16659 -1 var pattern = matcher.substring(1, matcher.length - 1);
16660 -1 return new RegExp(pattern).test(someString);
-1 18704 if (accName !== '') {
-1 18705 return accName;
16661 18706 }
-1 18707 return step(virtualNode, context);
-1 18708 }, '');
-1 18709 if (context.debug) {
-1 18710 axe.log(accessibleName || '{empty-value}', virtualNode.actualNode, context);
16662 18711 }
16663 -1 return matcher === someString;
-1 18712 return accessibleName;
16664 18713 }
16665 -1 var from_primative_default = fromPrimative;
16666 -1 function hasAccessibleName2(vNode, matcher) {
16667 -1 return from_primative_default(!!accessible_text_virtual_default(vNode), matcher);
-1 18714 function textNodeValue(virtualNode) {
-1 18715 if (virtualNode.props.nodeType !== 3) {
-1 18716 return '';
-1 18717 }
-1 18718 return virtualNode.props.nodeValue;
16668 18719 }
16669 -1 var has_accessible_name_default = hasAccessibleName2;
16670 -1 function fromFunction(getValue, matcher) {
16671 -1 var matcherType = _typeof(matcher);
16672 -1 if (matcherType !== 'object' || Array.isArray(matcher) || matcher instanceof RegExp) {
16673 -1 throw new Error('Expect matcher to be an object');
-1 18720 function shouldIgnoreHidden(virtualNode, context) {
-1 18721 if (!virtualNode) {
-1 18722 return false;
16674 18723 }
16675 -1 return Object.keys(matcher).every(function(propName) {
16676 -1 return from_primative_default(getValue(propName), matcher[propName]);
16677 -1 });
-1 18724 if (virtualNode.props.nodeType !== 1 || context.includeHidden) {
-1 18725 return false;
-1 18726 }
-1 18727 return !_isVisibleToScreenReaders(virtualNode);
16678 18728 }
16679 -1 var from_function_default = fromFunction;
16680 -1 function attributes(vNode, matcher) {
16681 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
16682 -1 vNode = get_node_from_tree_default(vNode);
-1 18729 function shouldIgnoreIconLigature(virtualNode, context) {
-1 18730 var _context$occurrenceTh;
-1 18731 var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold;
-1 18732 var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold;
-1 18733 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {
-1 18734 return false;
16683 18735 }
16684 -1 return from_function_default(function(attrName) {
16685 -1 return vNode.attr(attrName);
16686 -1 }, matcher);
-1 18736 return _isIconLigature(virtualNode, pixelThreshold, occurrenceThreshold);
16687 18737 }
16688 -1 var attributes_default = attributes;
16689 -1 function condition(arg, condition2) {
16690 -1 return !!condition2(arg);
-1 18738 function prepareContext(virtualNode, context) {
-1 18739 if (!context.startNode) {
-1 18740 context = _extends({
-1 18741 startNode: virtualNode
-1 18742 }, context);
-1 18743 }
-1 18744 if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) {
-1 18745 context = _extends({
-1 18746 includeHidden: !_isVisibleToScreenReaders(virtualNode)
-1 18747 }, context);
-1 18748 }
-1 18749 return context;
16691 18750 }
16692 -1 var condition_default = condition;
16693 -1 function explicitRole(vNode, matcher) {
16694 -1 return from_primative_default(get_explicit_role_default(vNode), matcher);
-1 18751 _accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) {
-1 18752 context.processed = context.processed || [];
-1 18753 if (context.processed.includes(virtualnode)) {
-1 18754 return true;
-1 18755 }
-1 18756 context.processed.push(virtualnode);
-1 18757 return false;
-1 18758 };
-1 18759 function removeUnicode(str, options) {
-1 18760 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
-1 18761 if (emoji) {
-1 18762 str = str.replace(emoji_regex_default(), '');
-1 18763 }
-1 18764 if (nonBmp) {
-1 18765 str = str.replace(getUnicodeNonBmpRegExp(), '').replace(getSupplementaryPrivateUseRegExp(), '').replace(getCategoryFormatRegExp(), '');
-1 18766 }
-1 18767 if (punctuations) {
-1 18768 str = str.replace(getPunctuationRegExp(), '');
-1 18769 }
-1 18770 return str;
16695 18771 }
16696 -1 var explicit_role_default = explicitRole;
16697 -1 function implicitRole(vNode, matcher) {
16698 -1 return from_primative_default(implicit_role_default(vNode), matcher);
-1 18772 var remove_unicode_default = removeUnicode;
-1 18773 function isHumanInterpretable(str) {
-1 18774 if (!str.length) {
-1 18775 return 0;
-1 18776 }
-1 18777 var alphaNumericIconMap = [ 'x', 'i' ];
-1 18778 if (alphaNumericIconMap.includes(str)) {
-1 18779 return 0;
-1 18780 }
-1 18781 var noUnicodeStr = remove_unicode_default(str, {
-1 18782 emoji: true,
-1 18783 nonBmp: true,
-1 18784 punctuations: true
-1 18785 });
-1 18786 if (!sanitize_default(noUnicodeStr)) {
-1 18787 return 0;
-1 18788 }
-1 18789 return 1;
16699 18790 }
16700 -1 var implicit_role_default2 = implicitRole;
16701 -1 function nodeName(vNode, matcher) {
16702 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
16703 -1 vNode = get_node_from_tree_default(vNode);
-1 18791 var is_human_interpretable_default = isHumanInterpretable;
-1 18792 var _autocomplete = {
-1 18793 stateTerms: [ 'on', 'off' ],
-1 18794 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],
-1 18795 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],
-1 18796 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],
-1 18797 locations: [ 'billing', 'shipping' ]
-1 18798 };
-1 18799 function isValidAutocomplete(autocompleteValue) {
-1 18800 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;
-1 18801 autocompleteValue = autocompleteValue.toLowerCase().trim();
-1 18802 stateTerms = stateTerms.concat(_autocomplete.stateTerms);
-1 18803 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
-1 18804 return true;
-1 18805 }
-1 18806 qualifiers = qualifiers.concat(_autocomplete.qualifiers);
-1 18807 locations = locations.concat(_autocomplete.locations);
-1 18808 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);
-1 18809 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);
-1 18810 var autocompleteTerms = autocompleteValue.split(/\s+/g);
-1 18811 if (autocompleteTerms[autocompleteTerms.length - 1] === 'webauthn') {
-1 18812 autocompleteTerms.pop();
-1 18813 if (autocompleteTerms.length === 0) {
-1 18814 return false;
-1 18815 }
-1 18816 }
-1 18817 if (!looseTyped) {
-1 18818 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {
-1 18819 autocompleteTerms.shift();
-1 18820 }
-1 18821 if (locations.includes(autocompleteTerms[0])) {
-1 18822 autocompleteTerms.shift();
-1 18823 }
-1 18824 if (qualifiers.includes(autocompleteTerms[0])) {
-1 18825 autocompleteTerms.shift();
-1 18826 standaloneTerms = [];
-1 18827 }
-1 18828 if (autocompleteTerms.length !== 1) {
-1 18829 return false;
-1 18830 }
-1 18831 }
-1 18832 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];
-1 18833 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);
-1 18834 }
-1 18835 var is_valid_autocomplete_default = isValidAutocomplete;
-1 18836 function labelVirtual(virtualNode) {
-1 18837 var ref, candidate;
-1 18838 if (virtualNode.attr('aria-labelledby')) {
-1 18839 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');
-1 18840 candidate = ref.map(function(thing) {
-1 18841 var vNode = get_node_from_tree_default(thing);
-1 18842 return vNode ? visible_virtual_default(vNode) : '';
-1 18843 }).join(' ').trim();
-1 18844 if (candidate) {
-1 18845 return candidate;
-1 18846 }
16704 18847 }
16705 -1 return from_primative_default(vNode.props.nodeName, matcher);
16706 -1 }
16707 -1 var node_name_default = nodeName;
16708 -1 function properties(vNode, matcher) {
16709 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
16710 -1 vNode = get_node_from_tree_default(vNode);
-1 18848 candidate = virtualNode.attr('aria-label');
-1 18849 if (candidate) {
-1 18850 candidate = sanitize_default(candidate);
-1 18851 if (candidate) {
-1 18852 return candidate;
-1 18853 }
16711 18854 }
16712 -1 return from_function_default(function(propName) {
16713 -1 return vNode.props[propName];
16714 -1 }, matcher);
-1 18855 return null;
16715 18856 }
16716 -1 var properties_default = properties;
16717 -1 function semanticRole(vNode, matcher) {
16718 -1 return from_primative_default(get_role_default(vNode), matcher);
-1 18857 var label_virtual_default = labelVirtual;
-1 18858 function visible(element, screenReader, noRecursing) {
-1 18859 element = get_node_from_tree_default(element);
-1 18860 return visible_virtual_default(element, screenReader, noRecursing);
16719 18861 }
16720 -1 var semantic_role_default = semanticRole;
16721 -1 var matchers = {
16722 -1 hasAccessibleName: has_accessible_name_default,
16723 -1 attributes: attributes_default,
16724 -1 condition: condition_default,
16725 -1 explicitRole: explicit_role_default,
16726 -1 implicitRole: implicit_role_default2,
16727 -1 nodeName: node_name_default,
16728 -1 properties: properties_default,
16729 -1 semanticRole: semantic_role_default
16730 -1 };
16731 -1 function fromDefinition(vNode, definition) {
16732 -1 if (!(vNode instanceof abstract_virtual_node_default)) {
16733 -1 vNode = get_node_from_tree_default(vNode);
-1 18862 var visible_default = visible;
-1 18863 function labelVirtual2(virtualNode) {
-1 18864 var ref, candidate, doc;
-1 18865 candidate = label_virtual_default(virtualNode);
-1 18866 if (candidate) {
-1 18867 return candidate;
16734 18868 }
16735 -1 if (Array.isArray(definition)) {
16736 -1 return definition.some(function(definitionItem) {
16737 -1 return fromDefinition(vNode, definitionItem);
16738 -1 });
-1 18869 if (virtualNode.attr('id')) {
-1 18870 if (!virtualNode.actualNode) {
-1 18871 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 18872 }
-1 18873 var id = escape_selector_default(virtualNode.attr('id'));
-1 18874 doc = get_root_node_default2(virtualNode.actualNode);
-1 18875 ref = doc.querySelector('label[for="' + id + '"]');
-1 18876 candidate = ref && visible_default(ref, true);
-1 18877 if (candidate) {
-1 18878 return candidate;
-1 18879 }
16739 18880 }
16740 -1 if (typeof definition === 'string') {
16741 -1 return matches_default(vNode, definition);
-1 18881 ref = closest_default(virtualNode, 'label');
-1 18882 candidate = ref && visible_virtual_default(ref, true);
-1 18883 if (candidate) {
-1 18884 return candidate;
16742 18885 }
16743 -1 return Object.keys(definition).every(function(matcherName) {
16744 -1 if (!matchers[matcherName]) {
16745 -1 throw new Error('Unknown matcher type "'.concat(matcherName, '"'));
16746 -1 }
16747 -1 var matchMethod = matchers[matcherName];
16748 -1 var matcher = definition[matcherName];
16749 -1 return matchMethod(vNode, matcher);
16750 -1 });
-1 18886 return null;
16751 18887 }
16752 -1 var from_definition_default = fromDefinition;
16753 -1 function matches2(vNode, definition) {
16754 -1 return from_definition_default(vNode, definition);
-1 18888 var label_virtual_default2 = labelVirtual2;
-1 18889 function label(node) {
-1 18890 node = get_node_from_tree_default(node);
-1 18891 return label_virtual_default2(node);
16755 18892 }
16756 -1 var matches_default2 = matches2;
16757 -1 matches_default2.hasAccessibleName = has_accessible_name_default;
16758 -1 matches_default2.attributes = attributes_default;
16759 -1 matches_default2.condition = condition_default;
16760 -1 matches_default2.explicitRole = explicit_role_default;
16761 -1 matches_default2.fromDefinition = from_definition_default;
16762 -1 matches_default2.fromFunction = from_function_default;
16763 -1 matches_default2.fromPrimative = from_primative_default;
16764 -1 matches_default2.implicitRole = implicit_role_default2;
16765 -1 matches_default2.nodeName = node_name_default;
16766 -1 matches_default2.properties = properties_default;
16767 -1 matches_default2.semanticRole = semantic_role_default;
16768 -1 var matches_default3 = matches_default2;
16769 -1 function getElementSpec(vNode) {
16770 -1 var _ref25 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref25$noMatchAccessi = _ref25.noMatchAccessibleName, noMatchAccessibleName = _ref25$noMatchAccessi === void 0 ? false : _ref25$noMatchAccessi;
16771 -1 var standard = standards_default.htmlElms[vNode.props.nodeName];
16772 -1 if (!standard) {
16773 -1 return {};
16774 -1 }
16775 -1 if (!standard.variant) {
16776 -1 return standard;
16777 -1 }
16778 -1 var variant = standard.variant, spec = _objectWithoutProperties(standard, _excluded2);
16779 -1 for (var variantName in variant) {
16780 -1 if (!variant.hasOwnProperty(variantName) || variantName === 'default') {
16781 -1 continue;
-1 18893 var label_default = label;
-1 18894 var nativeElementType = [ {
-1 18895 matches: [ {
-1 18896 nodeName: 'textarea'
-1 18897 }, {
-1 18898 nodeName: 'input',
-1 18899 properties: {
-1 18900 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]
16782 18901 }
16783 -1 var _variant$variantName = variant[variantName], matches4 = _variant$variantName.matches, props = _objectWithoutProperties(_variant$variantName, _excluded3);
16784 -1 var matchProperties = Array.isArray(matches4) ? matches4 : [ matches4 ];
16785 -1 for (var _i7 = 0; _i7 < matchProperties.length && noMatchAccessibleName; _i7++) {
16786 -1 if (matchProperties[_i7].hasOwnProperty('hasAccessibleName')) {
16787 -1 return standard;
16788 -1 }
-1 18902 } ],
-1 18903 namingMethods: 'labelText'
-1 18904 }, {
-1 18905 matches: {
-1 18906 nodeName: 'input',
-1 18907 properties: {
-1 18908 type: [ 'button', 'submit', 'reset' ]
16789 18909 }
16790 -1 if (matches_default3(vNode, matches4)) {
16791 -1 for (var propName in props) {
16792 -1 if (props.hasOwnProperty(propName)) {
16793 -1 spec[propName] = props[propName];
16794 -1 }
-1 18910 },
-1 18911 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]
-1 18912 }, {
-1 18913 matches: {
-1 18914 nodeName: 'input',
-1 18915 properties: {
-1 18916 type: 'image'
-1 18917 }
-1 18918 },
-1 18919 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]
-1 18920 }, {
-1 18921 matches: 'button',
-1 18922 namingMethods: 'subtreeText'
-1 18923 }, {
-1 18924 matches: 'fieldset',
-1 18925 namingMethods: 'fieldsetLegendText'
-1 18926 }, {
-1 18927 matches: 'OUTPUT',
-1 18928 namingMethods: 'subtreeText'
-1 18929 }, {
-1 18930 matches: [ {
-1 18931 nodeName: 'select'
-1 18932 }, {
-1 18933 nodeName: 'input',
-1 18934 properties: {
-1 18935 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/
-1 18936 }
-1 18937 } ],
-1 18938 namingMethods: 'labelText'
-1 18939 }, {
-1 18940 matches: 'summary',
-1 18941 namingMethods: 'subtreeText'
-1 18942 }, {
-1 18943 matches: 'figure',
-1 18944 namingMethods: [ 'figureText', 'titleText' ]
-1 18945 }, {
-1 18946 matches: 'img',
-1 18947 namingMethods: 'altText'
-1 18948 }, {
-1 18949 matches: 'table',
-1 18950 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]
-1 18951 }, {
-1 18952 matches: [ 'hr', 'br' ],
-1 18953 namingMethods: [ 'titleText', 'singleSpace' ]
-1 18954 } ];
-1 18955 var native_element_type_default = nativeElementType;
-1 18956 function visibleTextNodes(vNode) {
-1 18957 var parentVisible = _isVisibleOnScreen(vNode);
-1 18958 var nodes = [];
-1 18959 vNode.children.forEach(function(child) {
-1 18960 if (child.actualNode.nodeType === 3) {
-1 18961 if (parentVisible) {
-1 18962 nodes.push(child);
16795 18963 }
-1 18964 } else {
-1 18965 nodes = nodes.concat(visibleTextNodes(child));
16796 18966 }
16797 -1 }
16798 -1 for (var _propName in variant['default']) {
16799 -1 if (variant['default'].hasOwnProperty(_propName) && typeof spec[_propName] === 'undefined') {
16800 -1 spec[_propName] = variant['default'][_propName];
-1 18967 });
-1 18968 return nodes;
-1 18969 }
-1 18970 var visible_text_nodes_default = visibleTextNodes;
-1 18971 var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) {
-1 18972 var vNode = get_node_from_tree_default(node);
-1 18973 var nodeRect = vNode.boundingClientRect;
-1 18974 var clientRects = [];
-1 18975 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);
-1 18976 node.childNodes.forEach(function(textNode) {
-1 18977 if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') {
-1 18978 return;
16801 18979 }
16802 -1 }
16803 -1 return spec;
-1 18980 var contentRects = getContentRects(textNode);
-1 18981 if (isOutsideNodeBounds(contentRects, nodeRect)) {
-1 18982 return;
-1 18983 }
-1 18984 clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes)));
-1 18985 });
-1 18986 return clientRects.length ? clientRects : [ nodeRect ];
-1 18987 });
-1 18988 var get_visible_child_text_rects_default = getVisibleChildTextRects;
-1 18989 function getContentRects(node) {
-1 18990 var range2 = document.createRange();
-1 18991 range2.selectNodeContents(node);
-1 18992 return Array.from(range2.getClientRects());
16804 18993 }
16805 -1 var get_element_spec_default = getElementSpec;
16806 -1 function implicitRole2(node) {
16807 -1 var _ref26 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, chromium = _ref26.chromium;
16808 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
16809 -1 node = vNode.actualNode;
16810 -1 if (!vNode) {
16811 -1 throw new ReferenceError('Cannot get implicit role of a node outside the current scope.');
16812 -1 }
16813 -1 var nodeName2 = vNode.props.nodeName;
16814 -1 var role = implicit_html_roles_default[nodeName2];
16815 -1 if (!role && chromium) {
16816 -1 var _get_element_spec_def = get_element_spec_default(vNode), chromiumRole = _get_element_spec_def.chromiumRole;
16817 -1 return chromiumRole || null;
16818 -1 }
16819 -1 if (typeof role === 'function') {
16820 -1 return role(vNode);
16821 -1 }
16822 -1 return role || null;
-1 18994 function isOutsideNodeBounds(rects, nodeRect) {
-1 18995 return rects.some(function(rect) {
-1 18996 var centerPoint = _getRectCenter(rect);
-1 18997 return !_isPointInRect(centerPoint, nodeRect);
-1 18998 });
16823 18999 }
16824 -1 var implicit_role_default = implicitRole2;
16825 -1 var inheritsPresentationChain = {
16826 -1 td: [ 'tr' ],
16827 -1 th: [ 'tr' ],
16828 -1 tr: [ 'thead', 'tbody', 'tfoot', 'table' ],
16829 -1 thead: [ 'table' ],
16830 -1 tbody: [ 'table' ],
16831 -1 tfoot: [ 'table' ],
16832 -1 li: [ 'ol', 'ul' ],
16833 -1 dt: [ 'dl', 'div' ],
16834 -1 dd: [ 'dl', 'div' ],
16835 -1 div: [ 'dl' ]
16836 -1 };
16837 -1 function getInheritedRole(vNode, explicitRoleOptions) {
16838 -1 var parentNodeNames = inheritsPresentationChain[vNode.props.nodeName];
16839 -1 if (!parentNodeNames) {
16840 -1 return null;
16841 -1 }
16842 -1 if (!vNode.parent) {
16843 -1 if (!vNode.actualNode) {
16844 -1 return null;
-1 19000 function filterHiddenRects(contentRects, overflowHiddenNodes) {
-1 19001 var visibleRects = [];
-1 19002 contentRects.forEach(function(contentRect) {
-1 19003 if (contentRect.width < 1 || contentRect.height < 1) {
-1 19004 return;
16845 19005 }
16846 -1 throw new ReferenceError('Cannot determine role presentational inheritance of a required parent outside the current scope.');
-1 19006 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {
-1 19007 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);
-1 19008 }, contentRect);
-1 19009 if (visibleRect) {
-1 19010 visibleRects.push(visibleRect);
-1 19011 }
-1 19012 });
-1 19013 return visibleRects;
-1 19014 }
-1 19015 function getTextElementStack(node) {
-1 19016 _createGrid();
-1 19017 var vNode = get_node_from_tree_default(node);
-1 19018 var grid = vNode._grid;
-1 19019 if (!grid) {
-1 19020 return [];
16847 19021 }
16848 -1 if (!parentNodeNames.includes(vNode.parent.props.nodeName)) {
16849 -1 return null;
-1 19022 var clientRects = get_visible_child_text_rects_default(node);
-1 19023 return clientRects.map(function(rect) {
-1 19024 return getRectStack(grid, rect);
-1 19025 });
-1 19026 }
-1 19027 var get_text_element_stack_default = getTextElementStack;
-1 19028 var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];
-1 19029 function isVisualContent(el) {
-1 19030 var _nodeLookup19 = _nodeLookup(el), vNode = _nodeLookup19.vNode;
-1 19031 var role = axe.commons.aria.getExplicitRole(vNode);
-1 19032 if (role) {
-1 19033 return visualRoles.indexOf(role) !== -1;
16850 19034 }
16851 -1 var parentRole = get_explicit_role_default(vNode.parent, explicitRoleOptions);
16852 -1 if ([ 'none', 'presentation' ].includes(parentRole) && !hasConflictResolution(vNode.parent)) {
16853 -1 return parentRole;
-1 19035 switch (vNode.props.nodeName) {
-1 19036 case 'img':
-1 19037 case 'iframe':
-1 19038 case 'object':
-1 19039 case 'video':
-1 19040 case 'audio':
-1 19041 case 'canvas':
-1 19042 case 'svg':
-1 19043 case 'math':
-1 19044 case 'button':
-1 19045 case 'select':
-1 19046 case 'textarea':
-1 19047 case 'keygen':
-1 19048 case 'progress':
-1 19049 case 'meter':
-1 19050 return true;
-1 19051
-1 19052 case 'input':
-1 19053 return vNode.props.type !== 'hidden';
-1 19054
-1 19055 default:
-1 19056 return false;
16854 19057 }
16855 -1 if (parentRole) {
16856 -1 return null;
-1 19058 }
-1 19059 var is_visual_content_default = isVisualContent;
-1 19060 var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ];
-1 19061 function hasChildTextNodes(elm) {
-1 19062 if (hiddenTextElms.includes(elm.props.nodeName)) {
-1 19063 return false;
16857 19064 }
16858 -1 return getInheritedRole(vNode.parent, explicitRoleOptions);
-1 19065 return elm.children.some(function(_ref38) {
-1 19066 var props = _ref38.props;
-1 19067 return props.nodeType === 3 && props.nodeValue.trim();
-1 19068 });
16859 19069 }
16860 -1 function resolveImplicitRole(vNode, _ref27) {
16861 -1 var chromium = _ref27.chromium, explicitRoleOptions = _objectWithoutProperties(_ref27, _excluded4);
16862 -1 var implicitRole3 = implicit_role_default(vNode, {
16863 -1 chromium: chromium
-1 19070 function hasContentVirtual(elm, noRecursion, ignoreAria) {
-1 19071 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {
-1 19072 return child.actualNode.nodeType === 1 && hasContentVirtual(child);
16864 19073 });
16865 -1 if (!implicitRole3) {
16866 -1 return null;
-1 19074 }
-1 19075 var has_content_virtual_default = hasContentVirtual;
-1 19076 function hasContent(elm, noRecursion, ignoreAria) {
-1 19077 elm = get_node_from_tree_default(elm);
-1 19078 return has_content_virtual_default(elm, noRecursion, ignoreAria);
-1 19079 }
-1 19080 var has_content_default = hasContent;
-1 19081 function _hasLangText(virtualNode) {
-1 19082 if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) {
-1 19083 return true;
16867 19084 }
16868 -1 var presentationalRole = getInheritedRole(vNode, explicitRoleOptions);
16869 -1 if (presentationalRole) {
16870 -1 return presentationalRole;
-1 19085 if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) {
-1 19086 return !!axe.commons.text.accessibleTextVirtual(virtualNode);
16871 19087 }
16872 -1 return implicitRole3;
16873 -1 }
16874 -1 function hasConflictResolution(vNode) {
16875 -1 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
16876 -1 return vNode.hasAttr(attr);
-1 19088 return virtualNode.children.some(function(child) {
-1 19089 return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child);
16877 19090 });
16878 -1 return hasGlobalAria || _isFocusable(vNode);
16879 19091 }
16880 -1 function resolveRole(node) {
16881 -1 var _ref28 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16882 -1 var noImplicit = _ref28.noImplicit, roleOptions = _objectWithoutProperties(_ref28, _excluded5);
16883 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
16884 -1 if (vNode.props.nodeType !== 1) {
16885 -1 return null;
-1 19092 function insertedIntoFocusOrder(el) {
-1 19093 var tabIndex = parseInt(el.getAttribute('tabindex'), 10);
-1 19094 return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el);
-1 19095 }
-1 19096 var inserted_into_focus_order_default = insertedIntoFocusOrder;
-1 19097 function isHiddenWithCSS(el, descendentVisibilityValue) {
-1 19098 var _nodeLookup20 = _nodeLookup(el), vNode = _nodeLookup20.vNode, domNode = _nodeLookup20.domNode;
-1 19099 if (!vNode) {
-1 19100 return _isHiddenWithCSS(domNode, descendentVisibilityValue);
16886 19101 }
16887 -1 var explicitRole2 = get_explicit_role_default(vNode, roleOptions);
16888 -1 if (!explicitRole2) {
16889 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 19102 if (vNode._isHiddenWithCSS === void 0) {
-1 19103 vNode._isHiddenWithCSS = _isHiddenWithCSS(domNode, descendentVisibilityValue);
16890 19104 }
16891 -1 if (![ 'presentation', 'none' ].includes(explicitRole2)) {
16892 -1 return explicitRole2;
-1 19105 return vNode._isHiddenWithCSS;
-1 19106 }
-1 19107 function _isHiddenWithCSS(el, descendentVisibilityValue) {
-1 19108 if (el.nodeType === 9) {
-1 19109 return false;
16893 19110 }
16894 -1 if (hasConflictResolution(vNode)) {
16895 -1 return noImplicit ? null : resolveImplicitRole(vNode, roleOptions);
-1 19111 if (el.nodeType === 11) {
-1 19112 el = el.host;
16896 19113 }
16897 -1 return explicitRole2;
16898 -1 }
16899 -1 function getRole(node) {
16900 -1 var _ref29 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16901 -1 var noPresentational = _ref29.noPresentational, options = _objectWithoutProperties(_ref29, _excluded6);
16902 -1 var role = resolveRole(node, options);
16903 -1 if (noPresentational && [ 'presentation', 'none' ].includes(role)) {
16904 -1 return null;
-1 19114 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {
-1 19115 return false;
16905 19116 }
16906 -1 return role;
16907 -1 }
16908 -1 var get_role_default = getRole;
16909 -1 var alwaysTitleElements = [ 'iframe' ];
16910 -1 function titleText(node) {
16911 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
16912 -1 if (vNode.props.nodeType !== 1 || !node.hasAttr('title')) {
16913 -1 return '';
-1 19117 var style = window.getComputedStyle(el, null);
-1 19118 if (!style) {
-1 19119 throw new Error('Style does not exist for the given element.');
16914 19120 }
16915 -1 if (!matches_default2(vNode, alwaysTitleElements) && [ 'none', 'presentation' ].includes(get_role_default(vNode))) {
16916 -1 return '';
-1 19121 var displayValue = style.getPropertyValue('display');
-1 19122 if (displayValue === 'none') {
-1 19123 return true;
16917 19124 }
16918 -1 return vNode.attr('title');
16919 -1 }
16920 -1 var title_text_default = titleText;
16921 -1 function namedFromContents(vNode) {
16922 -1 var _ref30 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, strict = _ref30.strict;
16923 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
16924 -1 if (vNode.props.nodeType !== 1) {
16925 -1 return false;
-1 19125 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];
-1 19126 var visibilityValue = style.getPropertyValue('visibility');
-1 19127 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {
-1 19128 return true;
16926 19129 }
16927 -1 var role = get_role_default(vNode);
16928 -1 var roleDef = standards_default.ariaRoles[role];
16929 -1 if (roleDef && roleDef.nameFromContent) {
-1 19130 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {
16930 19131 return true;
16931 19132 }
16932 -1 if (strict) {
-1 19133 var parent = get_composed_parent_default(el);
-1 19134 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {
-1 19135 return isHiddenWithCSS(parent, visibilityValue);
-1 19136 }
-1 19137 return false;
-1 19138 }
-1 19139 var is_hidden_with_css_default = isHiddenWithCSS;
-1 19140 function isHTML5(doc) {
-1 19141 var node = doc.doctype;
-1 19142 if (node === null) {
16933 19143 return false;
16934 19144 }
16935 -1 return !roleDef || [ 'presentation', 'none' ].includes(role);
-1 19145 return node.name === 'html' && !node.publicId && !node.systemId;
16936 19146 }
16937 -1 var named_from_contents_default = namedFromContents;
16938 -1 function getOwnedVirtual(virtualNode) {
16939 -1 var actualNode = virtualNode.actualNode, children = virtualNode.children;
16940 -1 if (!children) {
16941 -1 throw new Error('getOwnedVirtual requires a virtual node');
-1 19147 var is_html5_default = isHTML5;
-1 19148 function getRoleType(role) {
-1 19149 var _window3;
-1 19150 if (role instanceof abstract_virtual_node_default || (_window3 = window) !== null && _window3 !== void 0 && _window3.Node && role instanceof window.Node) {
-1 19151 role = axe.commons.aria.getRole(role);
16942 19152 }
16943 -1 if (virtualNode.hasAttr('aria-owns')) {
16944 -1 var owns = idrefs_default(actualNode, 'aria-owns').filter(function(element) {
16945 -1 return !!element;
16946 -1 }).map(function(element) {
16947 -1 return axe.utils.getNodeFromTree(element);
-1 19153 var roleDef = standards_default.ariaRoles[role];
-1 19154 return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null;
-1 19155 }
-1 19156 var get_role_type_default = getRoleType;
-1 19157 function walkDomNode(node, functor) {
-1 19158 if (functor(node.actualNode) !== false) {
-1 19159 node.children.forEach(function(child) {
-1 19160 return walkDomNode(child, functor);
16948 19161 });
16949 -1 return [].concat(_toConsumableArray(children), _toConsumableArray(owns));
16950 19162 }
16951 -1 return _toConsumableArray(children);
16952 19163 }
16953 -1 var get_owned_virtual_default = getOwnedVirtual;
16954 -1 function subtreeText(virtualNode) {
16955 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
16956 -1 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
16957 -1 context.startNode = context.startNode || virtualNode;
16958 -1 var _context = context, strict = _context.strict, inControlContext = _context.inControlContext, inLabelledByContext = _context.inLabelledByContext;
16959 -1 var _get_element_spec_def2 = get_element_spec_default(virtualNode, {
16960 -1 noMatchAccessibleName: true
16961 -1 }), contentTypes = _get_element_spec_def2.contentTypes;
16962 -1 if (alreadyProcessed2(virtualNode, context) || virtualNode.props.nodeType !== 1 || contentTypes !== null && contentTypes !== void 0 && contentTypes.includes('embedded')) {
16963 -1 return '';
-1 19164 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
-1 19165 function isBlock(elm) {
-1 19166 var display2 = window.getComputedStyle(elm).getPropertyValue('display');
-1 19167 return blockLike.includes(display2) || display2.substr(0, 6) === 'table-';
-1 19168 }
-1 19169 function getBlockParent(node) {
-1 19170 var parentBlock = get_composed_parent_default(node);
-1 19171 while (parentBlock && !isBlock(parentBlock)) {
-1 19172 parentBlock = get_composed_parent_default(parentBlock);
16964 19173 }
16965 -1 if (!named_from_contents_default(virtualNode, {
16966 -1 strict: strict
16967 -1 }) && !context.subtreeDescendant) {
16968 -1 return '';
-1 19174 return get_node_from_tree_default(parentBlock);
-1 19175 }
-1 19176 function isInTextBlock(node, options) {
-1 19177 if (isBlock(node)) {
-1 19178 return false;
16969 19179 }
16970 -1 if (!strict) {
16971 -1 var subtreeDescendant = !inControlContext && !inLabelledByContext;
16972 -1 context = _extends({
16973 -1 subtreeDescendant: subtreeDescendant
16974 -1 }, context);
-1 19180 var virtualParent = getBlockParent(node);
-1 19181 var parentText = '';
-1 19182 var widgetText = '';
-1 19183 var inBrBlock = 0;
-1 19184 walkDomNode(virtualParent, function(currNode) {
-1 19185 if (inBrBlock === 2) {
-1 19186 return false;
-1 19187 }
-1 19188 if (currNode.nodeType === 3) {
-1 19189 parentText += currNode.nodeValue;
-1 19190 }
-1 19191 if (currNode.nodeType !== 1) {
-1 19192 return;
-1 19193 }
-1 19194 var nodeName2 = (currNode.nodeName || '').toUpperCase();
-1 19195 if (currNode === node) {
-1 19196 inBrBlock = 1;
-1 19197 }
-1 19198 if ([ 'BR', 'HR' ].includes(nodeName2)) {
-1 19199 if (inBrBlock === 0) {
-1 19200 parentText = '';
-1 19201 widgetText = '';
-1 19202 } else {
-1 19203 inBrBlock = 2;
-1 19204 }
-1 19205 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {
-1 19206 return false;
-1 19207 } else if (get_role_type_default(currNode) === 'widget') {
-1 19208 widgetText += currNode.textContent;
-1 19209 return false;
-1 19210 }
-1 19211 });
-1 19212 parentText = sanitize_default(parentText);
-1 19213 if (options !== null && options !== void 0 && options.noLengthCompare) {
-1 19214 return parentText.length !== 0;
16975 19215 }
16976 -1 return get_owned_virtual_default(virtualNode).reduce(function(contentText, child) {
16977 -1 return appendAccessibleText(contentText, child, context);
16978 -1 }, '');
-1 19216 widgetText = sanitize_default(widgetText);
-1 19217 return parentText.length > widgetText.length;
16979 19218 }
16980 -1 var phrasingElements = get_elements_by_content_type_default('phrasing').concat([ '#text' ]);
16981 -1 function appendAccessibleText(contentText, virtualNode, context) {
16982 -1 var nodeName2 = virtualNode.props.nodeName;
16983 -1 var contentTextAdd = accessible_text_virtual_default(virtualNode, context);
16984 -1 if (!contentTextAdd) {
16985 -1 return contentText;
-1 19219 var is_in_text_block_default = isInTextBlock;
-1 19220 function isModalOpen(options) {
-1 19221 options = options || {};
-1 19222 var modalPercent = options.modalPercent || .75;
-1 19223 if (cache_default.get('isModalOpen')) {
-1 19224 return cache_default.get('isModalOpen');
16986 19225 }
16987 -1 if (!phrasingElements.includes(nodeName2)) {
16988 -1 if (contentTextAdd[0] !== ' ') {
16989 -1 contentTextAdd += ' ';
-1 19226 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen);
-1 19227 if (definiteModals.length) {
-1 19228 cache_default.set('isModalOpen', true);
-1 19229 return true;
-1 19230 }
-1 19231 var viewport = get_viewport_size_default(window);
-1 19232 var percentWidth = viewport.width * modalPercent;
-1 19233 var percentHeight = viewport.height * modalPercent;
-1 19234 var x = (viewport.width - percentWidth) / 2;
-1 19235 var y = (viewport.height - percentHeight) / 2;
-1 19236 var points = [ {
-1 19237 x: x,
-1 19238 y: y
-1 19239 }, {
-1 19240 x: viewport.width - x,
-1 19241 y: y
-1 19242 }, {
-1 19243 x: viewport.width / 2,
-1 19244 y: viewport.height / 2
-1 19245 }, {
-1 19246 x: x,
-1 19247 y: viewport.height - y
-1 19248 }, {
-1 19249 x: viewport.width - x,
-1 19250 y: viewport.height - y
-1 19251 } ];
-1 19252 var stacks = points.map(function(point) {
-1 19253 return Array.from(document.elementsFromPoint(point.x, point.y));
-1 19254 });
-1 19255 var _loop4 = function _loop4(_i10) {
-1 19256 var modalElement = stacks[_i10].find(function(elm) {
-1 19257 var style = window.getComputedStyle(elm);
-1 19258 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
-1 19259 });
-1 19260 if (modalElement && stacks.every(function(stack) {
-1 19261 return stack.includes(modalElement);
-1 19262 })) {
-1 19263 cache_default.set('isModalOpen', true);
-1 19264 return {
-1 19265 v: true
-1 19266 };
16990 19267 }
16991 -1 if (contentText && contentText[contentText.length - 1] !== ' ') {
16992 -1 contentTextAdd = ' ' + contentTextAdd;
-1 19268 };
-1 19269 for (var _i10 = 0; _i10 < stacks.length; _i10++) {
-1 19270 var _ret = _loop4(_i10);
-1 19271 if (_typeof(_ret) === 'object') {
-1 19272 return _ret.v;
16993 19273 }
16994 19274 }
16995 -1 return contentText + contentTextAdd;
-1 19275 cache_default.set('isModalOpen', void 0);
-1 19276 return void 0;
16996 19277 }
16997 -1 var subtree_text_default = subtreeText;
16998 -1 function labelText(virtualNode) {
16999 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17000 -1 var alreadyProcessed2 = accessible_text_virtual_default.alreadyProcessed;
17001 -1 if (context.inControlContext || context.inLabelledByContext || alreadyProcessed2(virtualNode, context)) {
17002 -1 return '';
17003 -1 }
17004 -1 if (!context.startNode) {
17005 -1 context.startNode = virtualNode;
17006 -1 }
17007 -1 var labelContext = _extends({
17008 -1 inControlContext: true
17009 -1 }, context);
17010 -1 var explicitLabels = getExplicitLabels(virtualNode);
17011 -1 var implicitLabel = closest_default(virtualNode, 'label');
17012 -1 var labels;
17013 -1 if (implicitLabel) {
17014 -1 labels = [].concat(_toConsumableArray(explicitLabels), [ implicitLabel.actualNode ]);
17015 -1 labels.sort(node_sorter_default);
17016 -1 } else {
17017 -1 labels = explicitLabels;
-1 19278 var is_modal_open_default = isModalOpen;
-1 19279 function _isMultiline(domNode) {
-1 19280 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
-1 19281 var range2 = domNode.ownerDocument.createRange();
-1 19282 range2.setStart(domNode, 0);
-1 19283 range2.setEnd(domNode, domNode.childNodes.length);
-1 19284 var lastLineEnd = 0;
-1 19285 var lineCount = 0;
-1 19286 var _iterator5 = _createForOfIteratorHelper(range2.getClientRects()), _step5;
-1 19287 try {
-1 19288 for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
-1 19289 var rect = _step5.value;
-1 19290 if (rect.height <= margin) {
-1 19291 continue;
-1 19292 }
-1 19293 if (lastLineEnd > rect.top + margin) {
-1 19294 lastLineEnd = Math.max(lastLineEnd, rect.bottom);
-1 19295 } else if (lineCount === 0) {
-1 19296 lastLineEnd = rect.bottom;
-1 19297 lineCount++;
-1 19298 } else {
-1 19299 return true;
-1 19300 }
-1 19301 }
-1 19302 } catch (err) {
-1 19303 _iterator5.e(err);
-1 19304 } finally {
-1 19305 _iterator5.f();
17018 19306 }
17019 -1 return labels.map(function(label3) {
17020 -1 return accessible_text_default(label3, labelContext);
17021 -1 }).filter(function(text) {
17022 -1 return text !== '';
17023 -1 }).join(' ');
-1 19307 return false;
17024 19308 }
17025 -1 function getExplicitLabels(virtualNode) {
17026 -1 if (!virtualNode.attr('id')) {
17027 -1 return [];
-1 19309 function isNode(element) {
-1 19310 return element instanceof window.Node;
-1 19311 }
-1 19312 var is_node_default = isNode;
-1 19313 var cacheKey = 'color.incompleteData';
-1 19314 var incompleteData = {
-1 19315 set: function set(key, reason) {
-1 19316 if (typeof key !== 'string') {
-1 19317 throw new Error('Incomplete data: key must be a string');
-1 19318 }
-1 19319 var data = cache_default.get(cacheKey, function() {
-1 19320 return {};
-1 19321 });
-1 19322 if (reason) {
-1 19323 data[key] = reason;
-1 19324 }
-1 19325 return data[key];
-1 19326 },
-1 19327 get: function get(key) {
-1 19328 var data = cache_default.get(cacheKey);
-1 19329 return data === null || data === void 0 ? void 0 : data[key];
-1 19330 },
-1 19331 clear: function clear() {
-1 19332 cache_default.set(cacheKey, {});
17028 19333 }
17029 -1 if (!virtualNode.actualNode) {
17030 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 19334 };
-1 19335 var incomplete_data_default = incompleteData;
-1 19336 function elementHasImage(elm, style) {
-1 19337 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];
-1 19338 var nodeName2 = elm.nodeName.toUpperCase();
-1 19339 if (graphicNodes.includes(nodeName2)) {
-1 19340 incomplete_data_default.set('bgColor', 'imgNode');
-1 19341 return true;
17031 19342 }
17032 -1 return find_elms_in_context_default({
17033 -1 elm: 'label',
17034 -1 attr: 'for',
17035 -1 value: virtualNode.attr('id'),
17036 -1 context: virtualNode.actualNode
17037 -1 });
-1 19343 style = style || window.getComputedStyle(elm);
-1 19344 var bgImageStyle = style.getPropertyValue('background-image');
-1 19345 var hasBgImage = bgImageStyle !== 'none';
-1 19346 if (hasBgImage) {
-1 19347 var hasGradient = /gradient/.test(bgImageStyle);
-1 19348 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');
-1 19349 }
-1 19350 return hasBgImage;
17038 19351 }
17039 -1 var label_text_default = labelText;
17040 -1 var defaultButtonValues = {
17041 -1 submit: 'Submit',
17042 -1 image: 'Submit',
17043 -1 reset: 'Reset',
17044 -1 button: ''
17045 -1 };
17046 -1 var nativeTextMethods = {
17047 -1 valueText: function valueText(_ref31) {
17048 -1 var actualNode = _ref31.actualNode;
17049 -1 return actualNode.value || '';
-1 19352 var element_has_image_default = elementHasImage;
-1 19353 var imports_exports = {};
-1 19354 __export(imports_exports, {
-1 19355 Colorjs: function Colorjs() {
-1 19356 return Color;
17050 19357 },
17051 -1 buttonDefaultText: function buttonDefaultText(_ref32) {
17052 -1 var actualNode = _ref32.actualNode;
17053 -1 return defaultButtonValues[actualNode.type] || '';
-1 19358 CssSelectorParser: function CssSelectorParser() {
-1 19359 return import_css_selector_parser2.CssSelectorParser;
17054 19360 },
17055 -1 tableCaptionText: descendantText.bind(null, 'caption'),
17056 -1 figureText: descendantText.bind(null, 'figcaption'),
17057 -1 svgTitleText: descendantText.bind(null, 'title'),
17058 -1 fieldsetLegendText: descendantText.bind(null, 'legend'),
17059 -1 altText: attrText.bind(null, 'alt'),
17060 -1 tableSummaryText: attrText.bind(null, 'summary'),
17061 -1 titleText: title_text_default,
17062 -1 subtreeText: subtree_text_default,
17063 -1 labelText: label_text_default,
17064 -1 singleSpace: function singleSpace() {
17065 -1 return ' ';
-1 19361 doT: function doT() {
-1 19362 return import_dot['default'];
17066 19363 },
17067 -1 placeholderText: attrText.bind(null, 'placeholder')
17068 -1 };
17069 -1 function attrText(attr, vNode) {
17070 -1 return vNode.attr(attr) || '';
17071 -1 }
17072 -1 function descendantText(nodeName2, _ref33, context) {
17073 -1 var actualNode = _ref33.actualNode;
17074 -1 nodeName2 = nodeName2.toLowerCase();
17075 -1 var nodeNames2 = [ nodeName2, actualNode.nodeName.toLowerCase() ].join(',');
17076 -1 var candidate = actualNode.querySelector(nodeNames2);
17077 -1 if (!candidate || candidate.nodeName.toLowerCase() !== nodeName2) {
17078 -1 return '';
-1 19364 emojiRegexText: function emojiRegexText() {
-1 19365 return emoji_regex_default;
-1 19366 },
-1 19367 memoize: function memoize() {
-1 19368 return import_memoizee2['default'];
17079 19369 }
17080 -1 return accessible_text_default(candidate, context);
-1 19370 });
-1 19371 var import_es6_promise = __toModule(require_es6_promise());
-1 19372 var import_typedarray = __toModule(require_typedarray());
-1 19373 var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());
-1 19374 var import_has_own = __toModule(require_has_own3());
-1 19375 var import_values = __toModule(require_values3());
-1 19376 if (!('hasOwn' in Object)) {
-1 19377 Object.hasOwn = import_has_own['default'];
17081 19378 }
17082 -1 var native_text_methods_default = nativeTextMethods;
17083 -1 function nativeTextAlternative(virtualNode) {
17084 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17085 -1 var actualNode = virtualNode.actualNode;
17086 -1 if (virtualNode.props.nodeType !== 1 || [ 'presentation', 'none' ].includes(get_role_default(virtualNode))) {
17087 -1 return '';
-1 19379 if (!('values' in Object)) {
-1 19380 Object.values = import_values['default'];
-1 19381 }
-1 19382 if (!('Promise' in window)) {
-1 19383 import_es6_promise['default'].polyfill();
-1 19384 }
-1 19385 if (!('Uint32Array' in window)) {
-1 19386 window.Uint32Array = import_typedarray.Uint32Array;
-1 19387 }
-1 19388 if (window.Uint32Array) {
-1 19389 if (!('some' in window.Uint32Array.prototype)) {
-1 19390 Object.defineProperty(window.Uint32Array.prototype, 'some', {
-1 19391 value: Array.prototype.some
-1 19392 });
17088 19393 }
17089 -1 var textMethods = findTextMethods(virtualNode);
17090 -1 var accName = textMethods.reduce(function(accName2, step) {
17091 -1 return accName2 || step(virtualNode, context);
17092 -1 }, '');
17093 -1 if (context.debug) {
17094 -1 axe.log(accName || '{empty-value}', actualNode, context);
-1 19394 if (!('reduce' in window.Uint32Array.prototype)) {
-1 19395 Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
-1 19396 value: Array.prototype.reduce
-1 19397 });
17095 19398 }
17096 -1 return accName;
17097 -1 }
17098 -1 function findTextMethods(virtualNode) {
17099 -1 var elmSpec = get_element_spec_default(virtualNode, {
17100 -1 noMatchAccessibleName: true
17101 -1 });
17102 -1 var methods = elmSpec.namingMethods || [];
17103 -1 return methods.map(function(methodName) {
17104 -1 return native_text_methods_default[methodName];
17105 -1 });
17106 19399 }
17107 -1 var native_text_alternative_default = nativeTextAlternative;
17108 -1 var unsupported = {
17109 -1 accessibleNameFromFieldValue: [ 'combobox', 'listbox', 'progressbar' ]
17110 -1 };
17111 -1 var unsupported_default = unsupported;
17112 -1 function _isVisibleToScreenReaders(vNode) {
17113 -1 vNode = vNode instanceof abstract_virtual_node_default ? vNode : get_node_from_tree_default(vNode);
17114 -1 return isVisibleToScreenReadersVirtual(vNode);
-1 19400 if (typeof Object.assign !== 'function') {
-1 19401 (function() {
-1 19402 Object.assign = function(target) {
-1 19403 if (target === void 0 || target === null) {
-1 19404 throw new TypeError('Cannot convert undefined or null to object');
-1 19405 }
-1 19406 var output = Object(target);
-1 19407 for (var index = 1; index < arguments.length; index++) {
-1 19408 var source = arguments[index];
-1 19409 if (source !== void 0 && source !== null) {
-1 19410 for (var nextKey in source) {
-1 19411 if (source.hasOwnProperty(nextKey)) {
-1 19412 output[nextKey] = source[nextKey];
-1 19413 }
-1 19414 }
-1 19415 }
-1 19416 }
-1 19417 return output;
-1 19418 };
-1 19419 })();
17115 19420 }
17116 -1 var isVisibleToScreenReadersVirtual = memoize_default(function isVisibleToScreenReadersMemoized(vNode, isAncestor) {
17117 -1 if (ariaHidden(vNode)) {
17118 -1 return false;
17119 -1 }
17120 -1 if (vNode.actualNode && vNode.props.nodeName === 'area') {
17121 -1 return !areaHidden(vNode, isVisibleToScreenReadersVirtual);
17122 -1 }
17123 -1 if (_isHiddenForEveryone(vNode, {
17124 -1 skipAncestors: true,
17125 -1 isAncestor: isAncestor
17126 -1 })) {
17127 -1 return false;
17128 -1 }
17129 -1 if (!vNode.parent) {
17130 -1 return true;
17131 -1 }
17132 -1 return isVisibleToScreenReadersVirtual(vNode.parent, true);
17133 -1 });
17134 -1 function visibleVirtual(element, screenReader, noRecursing) {
17135 -1 var vNode = element instanceof abstract_virtual_node_default ? element : get_node_from_tree_default(element);
17136 -1 var visibleMethod = screenReader ? _isVisibleToScreenReaders : _isVisibleOnScreen;
17137 -1 var visible2 = !element.actualNode || element.actualNode && visibleMethod(element);
17138 -1 var result = vNode.children.map(function(child) {
17139 -1 var _child$props = child.props, nodeType = _child$props.nodeType, nodeValue = _child$props.nodeValue;
17140 -1 if (nodeType === 3) {
17141 -1 if (nodeValue && visible2) {
17142 -1 return nodeValue;
-1 19421 if (!Array.prototype.find) {
-1 19422 Object.defineProperty(Array.prototype, 'find', {
-1 19423 value: function value(predicate) {
-1 19424 if (this === null) {
-1 19425 throw new TypeError('Array.prototype.find called on null or undefined');
17143 19426 }
17144 -1 } else if (!noRecursing) {
17145 -1 return visibleVirtual(child, screenReader);
-1 19427 if (typeof predicate !== 'function') {
-1 19428 throw new TypeError('predicate must be a function');
-1 19429 }
-1 19430 var list = Object(this);
-1 19431 var length = list.length >>> 0;
-1 19432 var thisArg = arguments[1];
-1 19433 var value;
-1 19434 for (var i = 0; i < length; i++) {
-1 19435 value = list[i];
-1 19436 if (predicate.call(thisArg, value, i, list)) {
-1 19437 return value;
-1 19438 }
-1 19439 }
-1 19440 return void 0;
17146 19441 }
17147 -1 }).join('');
17148 -1 return sanitize_default(result);
17149 -1 }
17150 -1 var visible_virtual_default = visibleVirtual;
17151 -1 var nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ];
17152 -1 function isNativeTextbox(node) {
17153 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17154 -1 var nodeName2 = node.props.nodeName;
17155 -1 return nodeName2 === 'textarea' || nodeName2 === 'input' && !nonTextInputTypes.includes((node.attr('type') || '').toLowerCase());
-1 19442 });
17156 19443 }
17157 -1 var is_native_textbox_default = isNativeTextbox;
17158 -1 function isNativeSelect(node) {
17159 -1 node = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17160 -1 var nodeName2 = node.props.nodeName;
17161 -1 return nodeName2 === 'select';
-1 19444 if (!Array.prototype.findIndex) {
-1 19445 Object.defineProperty(Array.prototype, 'findIndex', {
-1 19446 value: function value(predicate, thisArg) {
-1 19447 if (this === null) {
-1 19448 throw new TypeError('Array.prototype.find called on null or undefined');
-1 19449 }
-1 19450 if (typeof predicate !== 'function') {
-1 19451 throw new TypeError('predicate must be a function');
-1 19452 }
-1 19453 var list = Object(this);
-1 19454 var length = list.length >>> 0;
-1 19455 var value;
-1 19456 for (var i = 0; i < length; i++) {
-1 19457 value = list[i];
-1 19458 if (predicate.call(thisArg, value, i, list)) {
-1 19459 return i;
-1 19460 }
-1 19461 }
-1 19462 return -1;
-1 19463 }
-1 19464 });
17162 19465 }
17163 -1 var is_native_select_default = isNativeSelect;
17164 -1 function isAriaTextbox(node) {
17165 -1 var role = get_explicit_role_default(node);
17166 -1 return role === 'textbox';
-1 19466 if (!Array.prototype.includes) {
-1 19467 Object.defineProperty(Array.prototype, 'includes', {
-1 19468 value: function value(searchElement) {
-1 19469 var O = Object(this);
-1 19470 var len = parseInt(O.length, 10) || 0;
-1 19471 if (len === 0) {
-1 19472 return false;
-1 19473 }
-1 19474 var n2 = parseInt(arguments[1], 10) || 0;
-1 19475 var k;
-1 19476 if (n2 >= 0) {
-1 19477 k = n2;
-1 19478 } else {
-1 19479 k = len + n2;
-1 19480 if (k < 0) {
-1 19481 k = 0;
-1 19482 }
-1 19483 }
-1 19484 var currentElement;
-1 19485 while (k < len) {
-1 19486 currentElement = O[k];
-1 19487 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
-1 19488 return true;
-1 19489 }
-1 19490 k++;
-1 19491 }
-1 19492 return false;
-1 19493 }
-1 19494 });
17167 19495 }
17168 -1 var is_aria_textbox_default = isAriaTextbox;
17169 -1 function isAriaListbox(node) {
17170 -1 var role = get_explicit_role_default(node);
17171 -1 return role === 'listbox';
-1 19496 if (!Array.prototype.some) {
-1 19497 Object.defineProperty(Array.prototype, 'some', {
-1 19498 value: function value(fun) {
-1 19499 if (this == null) {
-1 19500 throw new TypeError('Array.prototype.some called on null or undefined');
-1 19501 }
-1 19502 if (typeof fun !== 'function') {
-1 19503 throw new TypeError();
-1 19504 }
-1 19505 var t = Object(this);
-1 19506 var len = t.length >>> 0;
-1 19507 var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
-1 19508 for (var i = 0; i < len; i++) {
-1 19509 if (i in t && fun.call(thisArg, t[i], i, t)) {
-1 19510 return true;
-1 19511 }
-1 19512 }
-1 19513 return false;
-1 19514 }
-1 19515 });
17172 19516 }
17173 -1 var is_aria_listbox_default = isAriaListbox;
17174 -1 function isAriaCombobox(node) {
17175 -1 var role = get_explicit_role_default(node);
17176 -1 return role === 'combobox';
-1 19517 if (!Array.from) {
-1 19518 Object.defineProperty(Array, 'from', {
-1 19519 value: function() {
-1 19520 var toStr = Object.prototype.toString;
-1 19521 var isCallable = function isCallable(fn) {
-1 19522 return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
-1 19523 };
-1 19524 var toInteger = function toInteger(value) {
-1 19525 var number = Number(value);
-1 19526 if (isNaN(number)) {
-1 19527 return 0;
-1 19528 }
-1 19529 if (number === 0 || !isFinite(number)) {
-1 19530 return number;
-1 19531 }
-1 19532 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
-1 19533 };
-1 19534 var maxSafeInteger = Math.pow(2, 53) - 1;
-1 19535 var toLength = function toLength(value) {
-1 19536 var len = toInteger(value);
-1 19537 return Math.min(Math.max(len, 0), maxSafeInteger);
-1 19538 };
-1 19539 return function from(arrayLike) {
-1 19540 var C = this;
-1 19541 var items = Object(arrayLike);
-1 19542 if (arrayLike == null) {
-1 19543 throw new TypeError('Array.from requires an array-like object - not null or undefined');
-1 19544 }
-1 19545 var mapFn = arguments.length > 1 ? arguments[1] : void 0;
-1 19546 var T;
-1 19547 if (typeof mapFn !== 'undefined') {
-1 19548 if (!isCallable(mapFn)) {
-1 19549 throw new TypeError('Array.from: when provided, the second argument must be a function');
-1 19550 }
-1 19551 if (arguments.length > 2) {
-1 19552 T = arguments[2];
-1 19553 }
-1 19554 }
-1 19555 var len = toLength(items.length);
-1 19556 var A = isCallable(C) ? Object(new C(len)) : new Array(len);
-1 19557 var k = 0;
-1 19558 var kValue;
-1 19559 while (k < len) {
-1 19560 kValue = items[k];
-1 19561 if (mapFn) {
-1 19562 A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
-1 19563 } else {
-1 19564 A[k] = kValue;
-1 19565 }
-1 19566 k += 1;
-1 19567 }
-1 19568 A.length = len;
-1 19569 return A;
-1 19570 };
-1 19571 }()
-1 19572 });
17177 19573 }
17178 -1 var is_aria_combobox_default = isAriaCombobox;
17179 -1 var rangeRoles = [ 'progressbar', 'scrollbar', 'slider', 'spinbutton' ];
17180 -1 function isAriaRange(node) {
17181 -1 var role = get_explicit_role_default(node);
17182 -1 return rangeRoles.includes(role);
-1 19574 if (!String.prototype.includes) {
-1 19575 String.prototype.includes = function(search, start) {
-1 19576 if (typeof start !== 'number') {
-1 19577 start = 0;
-1 19578 }
-1 19579 if (start + search.length > this.length) {
-1 19580 return false;
-1 19581 } else {
-1 19582 return this.indexOf(search, start) !== -1;
-1 19583 }
-1 19584 };
17183 19585 }
17184 -1 var is_aria_range_default = isAriaRange;
17185 -1 var controlValueRoles = [ 'textbox', 'progressbar', 'scrollbar', 'slider', 'spinbutton', 'combobox', 'listbox' ];
17186 -1 var _formControlValueMethods = {
17187 -1 nativeTextboxValue: nativeTextboxValue,
17188 -1 nativeSelectValue: nativeSelectValue,
17189 -1 ariaTextboxValue: ariaTextboxValue,
17190 -1 ariaListboxValue: ariaListboxValue,
17191 -1 ariaComboboxValue: ariaComboboxValue,
17192 -1 ariaRangeValue: ariaRangeValue
17193 -1 };
17194 -1 function formControlValue(virtualNode) {
17195 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17196 -1 var actualNode = virtualNode.actualNode;
17197 -1 var unsupportedRoles = unsupported_default.accessibleNameFromFieldValue || [];
17198 -1 var role = get_role_default(virtualNode);
17199 -1 if (context.startNode === virtualNode || !controlValueRoles.includes(role) || unsupportedRoles.includes(role)) {
17200 -1 return '';
17201 -1 }
17202 -1 var valueMethods = Object.keys(_formControlValueMethods).map(function(name) {
17203 -1 return _formControlValueMethods[name];
17204 -1 });
17205 -1 var valueString = valueMethods.reduce(function(accName, step) {
17206 -1 return accName || step(virtualNode, context);
17207 -1 }, '');
17208 -1 if (context.debug) {
17209 -1 log_default(valueString || '{empty-value}', actualNode, context);
17210 -1 }
17211 -1 return valueString;
-1 19586 if (!Array.prototype.flat) {
-1 19587 Object.defineProperty(Array.prototype, 'flat', {
-1 19588 configurable: true,
-1 19589 value: function flat() {
-1 19590 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
-1 19591 return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
-1 19592 if (Array.isArray(cur)) {
-1 19593 acc.push.apply(acc, flat.call(cur, depth - 1));
-1 19594 } else {
-1 19595 acc.push(cur);
-1 19596 }
-1 19597 return acc;
-1 19598 }, []) : Array.prototype.slice.call(this);
-1 19599 },
-1 19600 writable: true
-1 19601 });
17212 19602 }
17213 -1 function nativeTextboxValue(node) {
17214 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17215 -1 if (is_native_textbox_default(vNode)) {
17216 -1 return vNode.props.value || '';
17217 -1 }
17218 -1 return '';
-1 19603 if (window.Node && !('isConnected' in window.Node.prototype)) {
-1 19604 Object.defineProperty(window.Node.prototype, 'isConnected', {
-1 19605 get: function get() {
-1 19606 return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
-1 19607 }
-1 19608 });
17219 19609 }
17220 -1 function nativeSelectValue(node) {
17221 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17222 -1 if (!is_native_select_default(vNode)) {
17223 -1 return '';
-1 19610 var import_css_selector_parser2 = __toModule(require_lib());
-1 19611 var import_dot = __toModule(require_doT());
-1 19612 var import_memoizee2 = __toModule(require_memoizee());
-1 19613 function multiplyMatrices(A, B) {
-1 19614 var m3 = A.length;
-1 19615 if (!Array.isArray(A[0])) {
-1 19616 A = [ A ];
-1 19617 }
-1 19618 if (!Array.isArray(B[0])) {
-1 19619 B = B.map(function(x) {
-1 19620 return [ x ];
-1 19621 });
17224 19622 }
17225 -1 var options = query_selector_all_default(vNode, 'option');
17226 -1 var selectedOptions = options.filter(function(option) {
17227 -1 return option.props.selected;
-1 19623 var p2 = B[0].length;
-1 19624 var B_cols = B[0].map(function(_, i) {
-1 19625 return B.map(function(x) {
-1 19626 return x[i];
-1 19627 });
17228 19628 });
17229 -1 if (!selectedOptions.length) {
17230 -1 selectedOptions.push(options[0]);
-1 19629 var product = A.map(function(row) {
-1 19630 return B_cols.map(function(col) {
-1 19631 var ret = 0;
-1 19632 if (!Array.isArray(row)) {
-1 19633 var _iterator6 = _createForOfIteratorHelper(col), _step6;
-1 19634 try {
-1 19635 for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
-1 19636 var c4 = _step6.value;
-1 19637 ret += row * c4;
-1 19638 }
-1 19639 } catch (err) {
-1 19640 _iterator6.e(err);
-1 19641 } finally {
-1 19642 _iterator6.f();
-1 19643 }
-1 19644 return ret;
-1 19645 }
-1 19646 for (var _i11 = 0; _i11 < row.length; _i11++) {
-1 19647 ret += row[_i11] * (col[_i11] || 0);
-1 19648 }
-1 19649 return ret;
-1 19650 });
-1 19651 });
-1 19652 if (m3 === 1) {
-1 19653 product = product[0];
17231 19654 }
17232 -1 return selectedOptions.map(function(option) {
17233 -1 return visible_virtual_default(option);
17234 -1 }).join(' ') || '';
17235 -1 }
17236 -1 function ariaTextboxValue(node) {
17237 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17238 -1 var actualNode = vNode.actualNode;
17239 -1 if (!is_aria_textbox_default(vNode)) {
17240 -1 return '';
-1 19655 if (p2 === 1) {
-1 19656 return product.map(function(x) {
-1 19657 return x[0];
-1 19658 });
17241 19659 }
17242 -1 if (!actualNode || actualNode && !_isHiddenForEveryone(actualNode)) {
17243 -1 return visible_virtual_default(vNode, true);
-1 19660 return product;
-1 19661 }
-1 19662 function isString(str) {
-1 19663 return type(str) === 'string';
-1 19664 }
-1 19665 function type(o) {
-1 19666 var str = Object.prototype.toString.call(o);
-1 19667 return (str.match(/^\[object\s+(.*?)\]$/)[1] || '').toLowerCase();
-1 19668 }
-1 19669 function toPrecision(n2, precision) {
-1 19670 n2 = +n2;
-1 19671 precision = +precision;
-1 19672 var integerLength = (Math.floor(n2) + '').length;
-1 19673 if (precision > integerLength) {
-1 19674 return +n2.toFixed(precision - integerLength);
17244 19675 } else {
17245 -1 return actualNode.textContent;
-1 19676 var p10 = Math.pow(10, integerLength - precision);
-1 19677 return Math.round(n2 / p10) * p10;
17246 19678 }
17247 19679 }
17248 -1 function ariaListboxValue(node, context) {
17249 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17250 -1 if (!is_aria_listbox_default(vNode)) {
17251 -1 return '';
-1 19680 function parseFunction(str) {
-1 19681 if (!str) {
-1 19682 return;
17252 19683 }
17253 -1 var selected = get_owned_virtual_default(vNode).filter(function(owned) {
17254 -1 return get_role_default(owned) === 'option' && owned.attr('aria-selected') === 'true';
17255 -1 });
17256 -1 if (selected.length === 0) {
17257 -1 return '';
-1 19684 str = str.trim();
-1 19685 var isFunctionRegex = /^([a-z]+)\((.+?)\)$/i;
-1 19686 var isNumberRegex = /^-?[\d.]+$/;
-1 19687 var parts = str.match(isFunctionRegex);
-1 19688 if (parts) {
-1 19689 var args = [];
-1 19690 parts[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g, function($0, arg) {
-1 19691 if (/%$/.test(arg)) {
-1 19692 arg = new Number(arg.slice(0, -1) / 100);
-1 19693 arg.type = '<percentage>';
-1 19694 } else if (/deg$/.test(arg)) {
-1 19695 arg = new Number(+arg.slice(0, -3));
-1 19696 arg.type = '<angle>';
-1 19697 arg.unit = 'deg';
-1 19698 } else if (isNumberRegex.test(arg)) {
-1 19699 arg = new Number(arg);
-1 19700 arg.type = '<number>';
-1 19701 }
-1 19702 if ($0.startsWith('/')) {
-1 19703 arg = arg instanceof Number ? arg : new Number(arg);
-1 19704 arg.alpha = true;
-1 19705 }
-1 19706 args.push(arg);
-1 19707 });
-1 19708 return {
-1 19709 name: parts[1].toLowerCase(),
-1 19710 rawName: parts[1],
-1 19711 rawArgs: parts[2],
-1 19712 args: args
-1 19713 };
17258 19714 }
17259 -1 return accessible_text_virtual_default(selected[0], context);
17260 19715 }
17261 -1 function ariaComboboxValue(node, context) {
17262 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17263 -1 if (!is_aria_combobox_default(vNode)) {
17264 -1 return '';
17265 -1 }
17266 -1 var listbox = get_owned_virtual_default(vNode).filter(function(elm) {
17267 -1 return get_role_default(elm) === 'listbox';
17268 -1 })[0];
17269 -1 return listbox ? ariaListboxValue(listbox, context) : '';
-1 19716 function last(arr) {
-1 19717 return arr[arr.length - 1];
17270 19718 }
17271 -1 function ariaRangeValue(node) {
17272 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17273 -1 if (!is_aria_range_default(vNode) || !vNode.hasAttr('aria-valuenow')) {
17274 -1 return '';
-1 19719 function interpolate(start, end, p2) {
-1 19720 if (isNaN(start)) {
-1 19721 return end;
17275 19722 }
17276 -1 var valueNow = +vNode.attr('aria-valuenow');
17277 -1 return !isNaN(valueNow) ? String(valueNow) : '0';
-1 19723 if (isNaN(end)) {
-1 19724 return start;
-1 19725 }
-1 19726 return start + (end - start) * p2;
17278 19727 }
17279 -1 var form_control_value_default = formControlValue;
17280 -1 function getUnicodeNonBmpRegExp() {
17281 -1 return /[\u1D00-\u1D7F\u1D80-\u1DBF\u1DC0-\u1DFF\u20A0-\u20CF\u20D0-\u20FF\u2100-\u214F\u2150-\u218F\u2190-\u21FF\u2200-\u22FF\u2300-\u23FF\u2400-\u243F\u2440-\u245F\u2460-\u24FF\u2500-\u257F\u2580-\u259F\u25A0-\u25FF\u2600-\u26FF\u2700-\u27BF\uE000-\uF8FF]/g;
-1 19728 function interpolateInv(start, end, value) {
-1 19729 return (value - start) / (end - start);
17282 19730 }
17283 -1 function getPunctuationRegExp() {
17284 -1 return /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&\xa3\xa2\xa5\xa7\u20ac()*+,\-.\/:;<=>?@\[\]^_`{|}~\xb1]/g;
-1 19731 function mapRange(from, to2, value) {
-1 19732 return interpolate(to2[0], to2[1], interpolateInv(from[0], from[1], value));
17285 19733 }
17286 -1 function getSupplementaryPrivateUseRegExp() {
17287 -1 return /[\uDB80-\uDBBF][\uDC00-\uDFFF]/g;
-1 19734 function parseCoordGrammar(coordGrammars) {
-1 19735 return coordGrammars.map(function(coordGrammar2) {
-1 19736 return coordGrammar2.split('|').map(function(type2) {
-1 19737 type2 = type2.trim();
-1 19738 var range2 = type2.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);
-1 19739 if (range2) {
-1 19740 var ret = new String(range2[1]);
-1 19741 ret.range = [ +range2[2], +range2[3] ];
-1 19742 return ret;
-1 19743 }
-1 19744 return type2;
-1 19745 });
-1 19746 });
17288 19747 }
17289 -1 var emoji_regex_default = function emoji_regex_default() {
17290 -1 return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
17291 -1 };
17292 -1 function hasUnicode(str, options) {
17293 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
17294 -1 if (emoji) {
17295 -1 return emoji_regex_default().test(str);
17296 -1 }
17297 -1 if (nonBmp) {
17298 -1 return getUnicodeNonBmpRegExp().test(str) || getSupplementaryPrivateUseRegExp().test(str);
-1 19748 var util = Object.freeze({
-1 19749 __proto__: null,
-1 19750 isString: isString,
-1 19751 type: type,
-1 19752 toPrecision: toPrecision,
-1 19753 parseFunction: parseFunction,
-1 19754 last: last,
-1 19755 interpolate: interpolate,
-1 19756 interpolateInv: interpolateInv,
-1 19757 mapRange: mapRange,
-1 19758 parseCoordGrammar: parseCoordGrammar,
-1 19759 multiplyMatrices: multiplyMatrices
-1 19760 });
-1 19761 var Hooks = function() {
-1 19762 function Hooks() {
-1 19763 _classCallCheck(this, Hooks);
17299 19764 }
17300 -1 if (punctuations) {
17301 -1 return getPunctuationRegExp().test(str);
-1 19765 _createClass(Hooks, [ {
-1 19766 key: 'add',
-1 19767 value: function add(name, callback, first) {
-1 19768 if (typeof arguments[0] != 'string') {
-1 19769 for (var name in arguments[0]) {
-1 19770 this.add(name, arguments[0][name], arguments[1]);
-1 19771 }
-1 19772 return;
-1 19773 }
-1 19774 (Array.isArray(name) ? name : [ name ]).forEach(function(name2) {
-1 19775 this[name2] = this[name2] || [];
-1 19776 if (callback) {
-1 19777 this[name2][first ? 'unshift' : 'push'](callback);
-1 19778 }
-1 19779 }, this);
-1 19780 }
-1 19781 }, {
-1 19782 key: 'run',
-1 19783 value: function run(name, env) {
-1 19784 this[name] = this[name] || [];
-1 19785 this[name].forEach(function(callback) {
-1 19786 callback.call(env && env.context ? env.context : env, env);
-1 19787 });
-1 19788 }
-1 19789 } ]);
-1 19790 return Hooks;
-1 19791 }();
-1 19792 var hooks = new Hooks();
-1 19793 var defaults = {
-1 19794 gamut_mapping: 'lch.c',
-1 19795 precision: 5,
-1 19796 deltaE: '76'
-1 19797 };
-1 19798 var WHITES = {
-1 19799 D50: [ .3457 / .3585, 1, (1 - .3457 - .3585) / .3585 ],
-1 19800 D65: [ .3127 / .329, 1, (1 - .3127 - .329) / .329 ]
-1 19801 };
-1 19802 function getWhite(name) {
-1 19803 if (Array.isArray(name)) {
-1 19804 return name;
17302 19805 }
17303 -1 return false;
-1 19806 return WHITES[name];
17304 19807 }
17305 -1 var has_unicode_default = hasUnicode;
17306 -1 function isIconLigature(textVNode) {
17307 -1 var differenceThreshold = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .15;
17308 -1 var occurrenceThreshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 3;
17309 -1 var nodeValue = textVNode.actualNode.nodeValue.trim();
17310 -1 if (!sanitize_default(nodeValue) || has_unicode_default(nodeValue, {
17311 -1 emoji: true,
17312 -1 nonBmp: true
17313 -1 })) {
17314 -1 return false;
17315 -1 }
17316 -1 var canvasContext = cache_default.get('canvasContext', function() {
17317 -1 return document.createElement('canvas').getContext('2d');
17318 -1 });
17319 -1 var canvas = canvasContext.canvas;
17320 -1 if (!cache_default.get('fonts')) {
17321 -1 cache_default.set('fonts', {});
17322 -1 }
17323 -1 var fonts = cache_default.get('fonts');
17324 -1 var style = window.getComputedStyle(textVNode.parent.actualNode);
17325 -1 var fontFamily = style.getPropertyValue('font-family');
17326 -1 if (!fonts[fontFamily]) {
17327 -1 fonts[fontFamily] = {
17328 -1 occurrences: 0,
17329 -1 numLigatures: 0
17330 -1 };
-1 19808 function adapt$1(W1, W2, XYZ) {
-1 19809 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-1 19810 W1 = getWhite(W1);
-1 19811 W2 = getWhite(W2);
-1 19812 if (!W1 || !W2) {
-1 19813 throw new TypeError('Missing white point to convert '.concat(!W1 ? 'from' : '').concat(!W1 && !W2 ? '/' : '').concat(!W2 ? 'to' : ''));
-1 19814 }
-1 19815 if (W1 === W2) {
-1 19816 return XYZ;
-1 19817 }
-1 19818 var env = {
-1 19819 W1: W1,
-1 19820 W2: W2,
-1 19821 XYZ: XYZ,
-1 19822 options: options
-1 19823 };
-1 19824 hooks.run('chromatic-adaptation-start', env);
-1 19825 if (!env.M) {
-1 19826 if (env.W1 === WHITES.D65 && env.W2 === WHITES.D50) {
-1 19827 env.M = [ [ 1.0479298208405488, .022946793341019088, -.05019222954313557 ], [ .029627815688159344, .990434484573249, -.01707382502938514 ], [ -.009243058152591178, .015055144896577895, .7518742899580008 ] ];
-1 19828 } else if (env.W1 === WHITES.D50 && env.W2 === WHITES.D65) {
-1 19829 env.M = [ [ .9554734527042182, -.023098536874261423, .0632593086610217 ], [ -.028369706963208136, 1.0099954580058226, .021041398966943008 ], [ .012314001688319899, -.020507696433477912, 1.3303659366080753 ] ];
-1 19830 }
17331 19831 }
17332 -1 var font = fonts[fontFamily];
17333 -1 if (font.occurrences >= occurrenceThreshold) {
17334 -1 if (font.numLigatures / font.occurrences === 1) {
17335 -1 return true;
17336 -1 } else if (font.numLigatures === 0) {
-1 19832 hooks.run('chromatic-adaptation-end', env);
-1 19833 if (env.M) {
-1 19834 return multiplyMatrices(env.M, env.XYZ);
-1 19835 } else {
-1 19836 throw new TypeError('Only Bradford CAT with white points D50 and D65 supported for now.');
-1 19837 }
-1 19838 }
-1 19839 var \u03b5$4 = 75e-6;
-1 19840 var _ColorSpace = (_processFormat = new WeakSet(), _path = new WeakMap(), _getPath = new WeakSet(),
-1 19841 function() {
-1 19842 function _ColorSpace(options) {
-1 19843 var _options$coords, _ref39, _options$white, _options$formats, _this$formats$functio, _this$formats, _this$formats2;
-1 19844 _classCallCheck(this, _ColorSpace);
-1 19845 _classPrivateMethodInitSpec(this, _getPath);
-1 19846 _classPrivateMethodInitSpec(this, _processFormat);
-1 19847 _classPrivateFieldInitSpec(this, _path, {
-1 19848 writable: true,
-1 19849 value: void 0
-1 19850 });
-1 19851 this.id = options.id;
-1 19852 this.name = options.name;
-1 19853 this.base = options.base ? _ColorSpace.get(options.base) : null;
-1 19854 this.aliases = options.aliases;
-1 19855 if (this.base) {
-1 19856 this.fromBase = options.fromBase;
-1 19857 this.toBase = options.toBase;
-1 19858 }
-1 19859 var _coords = (_options$coords = options.coords) !== null && _options$coords !== void 0 ? _options$coords : this.base.coords;
-1 19860 this.coords = _coords;
-1 19861 var white2 = (_ref39 = (_options$white = options.white) !== null && _options$white !== void 0 ? _options$white : this.base.white) !== null && _ref39 !== void 0 ? _ref39 : 'D65';
-1 19862 this.white = getWhite(white2);
-1 19863 this.formats = (_options$formats = options.formats) !== null && _options$formats !== void 0 ? _options$formats : {};
-1 19864 for (var name in this.formats) {
-1 19865 var format = this.formats[name];
-1 19866 format.type || (format.type = 'function');
-1 19867 format.name || (format.name = name);
-1 19868 }
-1 19869 if (options.cssId && !((_this$formats$functio = this.formats.functions) !== null && _this$formats$functio !== void 0 && _this$formats$functio.color)) {
-1 19870 this.formats.color = {
-1 19871 id: options.cssId
-1 19872 };
-1 19873 Object.defineProperty(this, 'cssId', {
-1 19874 value: options.cssId
-1 19875 });
-1 19876 } else if ((_this$formats = this.formats) !== null && _this$formats !== void 0 && _this$formats.color && !((_this$formats2 = this.formats) !== null && _this$formats2 !== void 0 && _this$formats2.color.id)) {
-1 19877 this.formats.color.id = this.id;
-1 19878 }
-1 19879 this.referred = options.referred;
-1 19880 _classPrivateFieldSet(this, _path, _classPrivateMethodGet(this, _getPath, _getPath2).call(this).reverse());
-1 19881 hooks.run('colorspace-init-end', this);
-1 19882 }
-1 19883 _createClass(_ColorSpace, [ {
-1 19884 key: 'inGamut',
-1 19885 value: function inGamut(coords) {
-1 19886 var _ref40 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref40$epsilon = _ref40.epsilon, epsilon = _ref40$epsilon === void 0 ? \u03b5$4 : _ref40$epsilon;
-1 19887 if (this.isPolar) {
-1 19888 coords = this.toBase(coords);
-1 19889 return this.base.inGamut(coords, {
-1 19890 epsilon: epsilon
-1 19891 });
-1 19892 }
-1 19893 var coordMeta = Object.values(this.coords);
-1 19894 return coords.every(function(c4, i) {
-1 19895 var meta = coordMeta[i];
-1 19896 if (meta.type !== 'angle' && meta.range) {
-1 19897 if (Number.isNaN(c4)) {
-1 19898 return true;
-1 19899 }
-1 19900 var _meta$range = _slicedToArray(meta.range, 2), min = _meta$range[0], max2 = _meta$range[1];
-1 19901 return (min === void 0 || c4 >= min - epsilon) && (max2 === void 0 || c4 <= max2 + epsilon);
-1 19902 }
-1 19903 return true;
-1 19904 });
-1 19905 }
-1 19906 }, {
-1 19907 key: 'cssId',
-1 19908 get: function get() {
-1 19909 var _this$formats$functio2, _this$formats$functio3;
-1 19910 return ((_this$formats$functio2 = this.formats.functions) === null || _this$formats$functio2 === void 0 ? void 0 : (_this$formats$functio3 = _this$formats$functio2.color) === null || _this$formats$functio3 === void 0 ? void 0 : _this$formats$functio3.id) || this.id;
-1 19911 }
-1 19912 }, {
-1 19913 key: 'isPolar',
-1 19914 get: function get() {
-1 19915 for (var id in this.coords) {
-1 19916 if (this.coords[id].type === 'angle') {
-1 19917 return true;
-1 19918 }
-1 19919 }
17337 19920 return false;
17338 19921 }
17339 -1 }
17340 -1 font.occurrences++;
17341 -1 var fontSize = 30;
17342 -1 var fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
17343 -1 canvasContext.font = fontStyle;
17344 -1 var firstChar = nodeValue.charAt(0);
17345 -1 var width = canvasContext.measureText(firstChar).width;
17346 -1 if (width < 30) {
17347 -1 var diff = 30 / width;
17348 -1 width *= diff;
17349 -1 fontSize *= diff;
17350 -1 fontStyle = ''.concat(fontSize, 'px ').concat(fontFamily);
17351 -1 }
17352 -1 canvas.width = width;
17353 -1 canvas.height = fontSize;
17354 -1 canvasContext.font = fontStyle;
17355 -1 canvasContext.textAlign = 'left';
17356 -1 canvasContext.textBaseline = 'top';
17357 -1 canvasContext.fillText(firstChar, 0, 0);
17358 -1 var compareData = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
17359 -1 if (!compareData.some(function(pixel) {
17360 -1 return pixel;
17361 -1 })) {
17362 -1 font.numLigatures++;
17363 -1 return true;
17364 -1 }
17365 -1 canvasContext.clearRect(0, 0, width, fontSize);
17366 -1 canvasContext.fillText(nodeValue, 0, 0);
17367 -1 var compareWith = new Uint32Array(canvasContext.getImageData(0, 0, width, fontSize).data.buffer);
17368 -1 var differences = compareData.reduce(function(diff, pixel, i) {
17369 -1 if (pixel === 0 && compareWith[i] === 0) {
17370 -1 return diff;
-1 19922 }, {
-1 19923 key: 'getFormat',
-1 19924 value: function getFormat(format) {
-1 19925 if (_typeof(format) === 'object') {
-1 19926 format = _classPrivateMethodGet(this, _processFormat, _processFormat2).call(this, format);
-1 19927 return format;
-1 19928 }
-1 19929 var ret;
-1 19930 if (format === 'default') {
-1 19931 ret = Object.values(this.formats)[0];
-1 19932 } else {
-1 19933 ret = this.formats[format];
-1 19934 }
-1 19935 if (ret) {
-1 19936 ret = _classPrivateMethodGet(this, _processFormat, _processFormat2).call(this, ret);
-1 19937 return ret;
-1 19938 }
-1 19939 return null;
17371 19940 }
17372 -1 if (pixel !== 0 && compareWith[i] !== 0) {
17373 -1 return diff;
-1 19941 }, {
-1 19942 key: 'to',
-1 19943 value: function to(space, coords) {
-1 19944 if (arguments.length === 1) {
-1 19945 var _ref41 = [ space.space, space.coords ];
-1 19946 space = _ref41[0];
-1 19947 coords = _ref41[1];
-1 19948 }
-1 19949 space = _ColorSpace.get(space);
-1 19950 if (this === space) {
-1 19951 return coords;
-1 19952 }
-1 19953 coords = coords.map(function(c4) {
-1 19954 return Number.isNaN(c4) ? 0 : c4;
-1 19955 });
-1 19956 var myPath = _classPrivateFieldGet(this, _path);
-1 19957 var otherPath = _classPrivateFieldGet(space, _path);
-1 19958 var connectionSpace, connectionSpaceIndex;
-1 19959 for (var _i12 = 0; _i12 < myPath.length; _i12++) {
-1 19960 if (myPath[_i12] === otherPath[_i12]) {
-1 19961 connectionSpace = myPath[_i12];
-1 19962 connectionSpaceIndex = _i12;
-1 19963 } else {
-1 19964 break;
-1 19965 }
-1 19966 }
-1 19967 if (!connectionSpace) {
-1 19968 throw new Error('Cannot convert between color spaces '.concat(this, ' and ').concat(space, ': no connection space was found'));
-1 19969 }
-1 19970 for (var _i13 = myPath.length - 1; _i13 > connectionSpaceIndex; _i13--) {
-1 19971 coords = myPath[_i13].toBase(coords);
-1 19972 }
-1 19973 for (var _i14 = connectionSpaceIndex + 1; _i14 < otherPath.length; _i14++) {
-1 19974 coords = otherPath[_i14].fromBase(coords);
-1 19975 }
-1 19976 return coords;
17374 19977 }
17375 -1 return ++diff;
17376 -1 }, 0);
17377 -1 var expectedWidth = nodeValue.split('').reduce(function(width2, _char2) {
17378 -1 return width2 + canvasContext.measureText(_char2).width;
17379 -1 }, 0);
17380 -1 var actualWidth = canvasContext.measureText(nodeValue).width;
17381 -1 var pixelDifference = differences / compareData.length;
17382 -1 var sizeDifference = 1 - actualWidth / expectedWidth;
17383 -1 if (pixelDifference >= differenceThreshold && sizeDifference >= differenceThreshold) {
17384 -1 font.numLigatures++;
17385 -1 return true;
-1 19978 }, {
-1 19979 key: 'from',
-1 19980 value: function from(space, coords) {
-1 19981 if (arguments.length === 1) {
-1 19982 var _ref42 = [ space.space, space.coords ];
-1 19983 space = _ref42[0];
-1 19984 coords = _ref42[1];
-1 19985 }
-1 19986 space = _ColorSpace.get(space);
-1 19987 return space.to(this, coords);
-1 19988 }
-1 19989 }, {
-1 19990 key: 'toString',
-1 19991 value: function toString() {
-1 19992 return ''.concat(this.name, ' (').concat(this.id, ')');
-1 19993 }
-1 19994 }, {
-1 19995 key: 'getMinCoords',
-1 19996 value: function getMinCoords() {
-1 19997 var ret = [];
-1 19998 for (var id in this.coords) {
-1 19999 var _range2$min;
-1 20000 var meta = this.coords[id];
-1 20001 var range2 = meta.range || meta.refRange;
-1 20002 ret.push((_range2$min = range2 === null || range2 === void 0 ? void 0 : range2.min) !== null && _range2$min !== void 0 ? _range2$min : 0);
-1 20003 }
-1 20004 return ret;
-1 20005 }
-1 20006 } ], [ {
-1 20007 key: 'all',
-1 20008 get: function get() {
-1 20009 return _toConsumableArray(new Set(Object.values(_ColorSpace.registry)));
-1 20010 }
-1 20011 }, {
-1 20012 key: 'register',
-1 20013 value: function register(id, space) {
-1 20014 if (arguments.length === 1) {
-1 20015 space = arguments[0];
-1 20016 id = space.id;
-1 20017 }
-1 20018 space = this.get(space);
-1 20019 if (this.registry[id] && this.registry[id] !== space) {
-1 20020 throw new Error('Duplicate color space registration: \''.concat(id, '\''));
-1 20021 }
-1 20022 this.registry[id] = space;
-1 20023 if (arguments.length === 1 && space.aliases) {
-1 20024 var _iterator7 = _createForOfIteratorHelper(space.aliases), _step7;
-1 20025 try {
-1 20026 for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
-1 20027 var alias = _step7.value;
-1 20028 this.register(alias, space);
-1 20029 }
-1 20030 } catch (err) {
-1 20031 _iterator7.e(err);
-1 20032 } finally {
-1 20033 _iterator7.f();
-1 20034 }
-1 20035 }
-1 20036 return space;
-1 20037 }
-1 20038 }, {
-1 20039 key: 'get',
-1 20040 value: function get(space) {
-1 20041 if (!space || space instanceof _ColorSpace) {
-1 20042 return space;
-1 20043 }
-1 20044 var argType = type(space);
-1 20045 if (argType === 'string') {
-1 20046 var ret = _ColorSpace.registry[space.toLowerCase()];
-1 20047 if (!ret) {
-1 20048 throw new TypeError('No color space found with id = "'.concat(space, '"'));
-1 20049 }
-1 20050 return ret;
-1 20051 }
-1 20052 for (var _len2 = arguments.length, alternatives = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
-1 20053 alternatives[_key2 - 1] = arguments[_key2];
-1 20054 }
-1 20055 if (alternatives.length) {
-1 20056 return _ColorSpace.get.apply(_ColorSpace, alternatives);
-1 20057 }
-1 20058 throw new TypeError(''.concat(space, ' is not a valid color space'));
-1 20059 }
-1 20060 }, {
-1 20061 key: 'resolveCoord',
-1 20062 value: function resolveCoord(ref, workingSpace) {
-1 20063 var coordType = type(ref);
-1 20064 var space, coord;
-1 20065 if (coordType === 'string') {
-1 20066 if (ref.includes('.')) {
-1 20067 var _ref$split = ref.split('.');
-1 20068 var _ref$split2 = _slicedToArray(_ref$split, 2);
-1 20069 space = _ref$split2[0];
-1 20070 coord = _ref$split2[1];
-1 20071 } else {
-1 20072 space = void 0;
-1 20073 coord = ref;
-1 20074 }
-1 20075 } else if (Array.isArray(ref)) {
-1 20076 var _ref43 = _slicedToArray(ref, 2);
-1 20077 space = _ref43[0];
-1 20078 coord = _ref43[1];
-1 20079 } else {
-1 20080 space = ref.space;
-1 20081 coord = ref.coordId;
-1 20082 }
-1 20083 space = _ColorSpace.get(space);
-1 20084 if (!space) {
-1 20085 space = workingSpace;
-1 20086 }
-1 20087 if (!space) {
-1 20088 throw new TypeError('Cannot resolve coordinate reference '.concat(ref, ': No color space specified and relative references are not allowed here'));
-1 20089 }
-1 20090 coordType = type(coord);
-1 20091 if (coordType === 'number' || coordType === 'string' && coord >= 0) {
-1 20092 var meta = Object.entries(space.coords)[coord];
-1 20093 if (meta) {
-1 20094 return _extends({
-1 20095 space: space,
-1 20096 id: meta[0],
-1 20097 index: coord
-1 20098 }, meta[1]);
-1 20099 }
-1 20100 }
-1 20101 space = _ColorSpace.get(space);
-1 20102 var normalizedCoord = coord.toLowerCase();
-1 20103 var i = 0;
-1 20104 for (var id in space.coords) {
-1 20105 var _meta$name;
-1 20106 var _meta = space.coords[id];
-1 20107 if (id.toLowerCase() === normalizedCoord || ((_meta$name = _meta.name) === null || _meta$name === void 0 ? void 0 : _meta$name.toLowerCase()) === normalizedCoord) {
-1 20108 return _extends({
-1 20109 space: space,
-1 20110 id: id,
-1 20111 index: i
-1 20112 }, _meta);
-1 20113 }
-1 20114 i++;
-1 20115 }
-1 20116 throw new TypeError('No "'.concat(coord, '" coordinate found in ').concat(space.name, '. Its coordinates are: ').concat(Object.keys(space.coords).join(', ')));
-1 20117 }
-1 20118 } ]);
-1 20119 return _ColorSpace;
-1 20120 }());
-1 20121 function _processFormat2(format) {
-1 20122 if (format.coords && !format.coordGrammar) {
-1 20123 format.type || (format.type = 'function');
-1 20124 format.name || (format.name = 'color');
-1 20125 format.coordGrammar = parseCoordGrammar(format.coords);
-1 20126 var coordFormats = Object.entries(this.coords).map(function(_ref151, i) {
-1 20127 var _ref152 = _slicedToArray(_ref151, 2), id = _ref152[0], coordMeta = _ref152[1];
-1 20128 var outputType = format.coordGrammar[i][0];
-1 20129 var fromRange = coordMeta.range || coordMeta.refRange;
-1 20130 var toRange = outputType.range, suffix = '';
-1 20131 if (outputType == '<percentage>') {
-1 20132 toRange = [ 0, 100 ];
-1 20133 suffix = '%';
-1 20134 } else if (outputType == '<angle>') {
-1 20135 suffix = 'deg';
-1 20136 }
-1 20137 return {
-1 20138 fromRange: fromRange,
-1 20139 toRange: toRange,
-1 20140 suffix: suffix
-1 20141 };
-1 20142 });
-1 20143 format.serializeCoords = function(coords, precision) {
-1 20144 return coords.map(function(c4, i) {
-1 20145 var _coordFormats$i = coordFormats[i], fromRange = _coordFormats$i.fromRange, toRange = _coordFormats$i.toRange, suffix = _coordFormats$i.suffix;
-1 20146 if (fromRange && toRange) {
-1 20147 c4 = mapRange(fromRange, toRange, c4);
-1 20148 }
-1 20149 c4 = toPrecision(c4, precision);
-1 20150 if (suffix) {
-1 20151 c4 += suffix;
-1 20152 }
-1 20153 return c4;
-1 20154 });
-1 20155 };
17386 20156 }
17387 -1 return false;
-1 20157 return format;
17388 20158 }
17389 -1 var is_icon_ligature_default = isIconLigature;
17390 -1 function accessibleTextVirtual(virtualNode) {
17391 -1 var context = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
17392 -1 context = prepareContext(virtualNode, context);
17393 -1 if (shouldIgnoreHidden(virtualNode, context)) {
17394 -1 return '';
-1 20159 function _getPath2() {
-1 20160 var ret = [ this ];
-1 20161 for (var _space2 = this; _space2 = _space2.base; ) {
-1 20162 ret.push(_space2);
17395 20163 }
17396 -1 if (shouldIgnoreIconLigature(virtualNode, context)) {
17397 -1 return '';
-1 20164 return ret;
-1 20165 }
-1 20166 var ColorSpace = _ColorSpace;
-1 20167 __publicField(ColorSpace, 'registry', {});
-1 20168 __publicField(ColorSpace, 'DEFAULT_FORMAT', {
-1 20169 type: 'functions',
-1 20170 name: 'color'
-1 20171 });
-1 20172 var XYZ_D65 = new ColorSpace({
-1 20173 id: 'xyz-d65',
-1 20174 name: 'XYZ D65',
-1 20175 coords: {
-1 20176 x: {
-1 20177 name: 'X'
-1 20178 },
-1 20179 y: {
-1 20180 name: 'Y'
-1 20181 },
-1 20182 z: {
-1 20183 name: 'Z'
-1 20184 }
-1 20185 },
-1 20186 white: 'D65',
-1 20187 formats: {
-1 20188 color: {
-1 20189 ids: [ 'xyz-d65', 'xyz' ]
-1 20190 }
-1 20191 },
-1 20192 aliases: [ 'xyz' ]
-1 20193 });
-1 20194 var RGBColorSpace = function(_ColorSpace2) {
-1 20195 _inherits(RGBColorSpace, _ColorSpace2);
-1 20196 var _super = _createSuper(RGBColorSpace);
-1 20197 function RGBColorSpace(options) {
-1 20198 var _options$referred;
-1 20199 var _this;
-1 20200 _classCallCheck(this, RGBColorSpace);
-1 20201 if (!options.coords) {
-1 20202 options.coords = {
-1 20203 r: {
-1 20204 range: [ 0, 1 ],
-1 20205 name: 'Red'
-1 20206 },
-1 20207 g: {
-1 20208 range: [ 0, 1 ],
-1 20209 name: 'Green'
-1 20210 },
-1 20211 b: {
-1 20212 range: [ 0, 1 ],
-1 20213 name: 'Blue'
-1 20214 }
-1 20215 };
-1 20216 }
-1 20217 if (!options.base) {
-1 20218 options.base = XYZ_D65;
-1 20219 }
-1 20220 if (options.toXYZ_M && options.fromXYZ_M) {
-1 20221 var _options$toBase, _options$fromBase;
-1 20222 (_options$toBase = options.toBase) !== null && _options$toBase !== void 0 ? _options$toBase : options.toBase = function(rgb) {
-1 20223 var xyz = multiplyMatrices(options.toXYZ_M, rgb);
-1 20224 if (_this.white !== _this.base.white) {
-1 20225 xyz = adapt$1(_this.white, _this.base.white, xyz);
-1 20226 }
-1 20227 return xyz;
-1 20228 };
-1 20229 (_options$fromBase = options.fromBase) !== null && _options$fromBase !== void 0 ? _options$fromBase : options.fromBase = function(xyz) {
-1 20230 xyz = adapt$1(_this.base.white, _this.white, xyz);
-1 20231 return multiplyMatrices(options.fromXYZ_M, xyz);
-1 20232 };
-1 20233 }
-1 20234 (_options$referred = options.referred) !== null && _options$referred !== void 0 ? _options$referred : options.referred = 'display';
-1 20235 return _this = _super.call(this, options);
17398 20236 }
17399 -1 var computationSteps = [ arialabelledby_text_default, arialabel_text_default, native_text_alternative_default, form_control_value_default, subtree_text_default, textNodeValue, title_text_default ];
17400 -1 var accName = computationSteps.reduce(function(accName2, step) {
17401 -1 if (context.startNode === virtualNode) {
17402 -1 accName2 = sanitize_default(accName2);
-1 20237 return _createClass(RGBColorSpace);
-1 20238 }(ColorSpace);
-1 20239 function parse2(str) {
-1 20240 var _String;
-1 20241 var env = {
-1 20242 str: (_String = String(str)) === null || _String === void 0 ? void 0 : _String.trim()
-1 20243 };
-1 20244 hooks.run('parse-start', env);
-1 20245 if (env.color) {
-1 20246 return env.color;
-1 20247 }
-1 20248 env.parsed = parseFunction(env.str);
-1 20249 if (env.parsed) {
-1 20250 var _ret2 = function() {
-1 20251 var name = env.parsed.name;
-1 20252 if (name === 'color') {
-1 20253 var id = env.parsed.args.shift();
-1 20254 var alpha = env.parsed.rawArgs.indexOf('/') > 0 ? env.parsed.args.pop() : 1;
-1 20255 var _iterator8 = _createForOfIteratorHelper(ColorSpace.all), _step8;
-1 20256 try {
-1 20257 for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
-1 20258 var space = _step8.value;
-1 20259 var colorSpec = space.getFormat('color');
-1 20260 if (colorSpec) {
-1 20261 var _colorSpec$ids;
-1 20262 if (id === colorSpec.id || (_colorSpec$ids = colorSpec.ids) !== null && _colorSpec$ids !== void 0 && _colorSpec$ids.includes(id)) {
-1 20263 var _ret3 = function() {
-1 20264 var argCount = Object.keys(space.coords).length;
-1 20265 var coords = Array(argCount).fill(0);
-1 20266 coords.forEach(function(_, i) {
-1 20267 return coords[i] = env.parsed.args[i] || 0;
-1 20268 });
-1 20269 return {
-1 20270 v: {
-1 20271 v: {
-1 20272 spaceId: space.id,
-1 20273 coords: coords,
-1 20274 alpha: alpha
-1 20275 }
-1 20276 }
-1 20277 };
-1 20278 }();
-1 20279 if (_typeof(_ret3) === 'object') {
-1 20280 return _ret3.v;
-1 20281 }
-1 20282 }
-1 20283 }
-1 20284 }
-1 20285 } catch (err) {
-1 20286 _iterator8.e(err);
-1 20287 } finally {
-1 20288 _iterator8.f();
-1 20289 }
-1 20290 var didYouMean = '';
-1 20291 if (id in ColorSpace.registry) {
-1 20292 var _ColorSpace$registry$, _ColorSpace$registry$2, _ColorSpace$registry$3;
-1 20293 var cssId = (_ColorSpace$registry$ = ColorSpace.registry[id].formats) === null || _ColorSpace$registry$ === void 0 ? void 0 : (_ColorSpace$registry$2 = _ColorSpace$registry$.functions) === null || _ColorSpace$registry$2 === void 0 ? void 0 : (_ColorSpace$registry$3 = _ColorSpace$registry$2.color) === null || _ColorSpace$registry$3 === void 0 ? void 0 : _ColorSpace$registry$3.id;
-1 20294 if (cssId) {
-1 20295 didYouMean = 'Did you mean color('.concat(cssId, ')?');
-1 20296 }
-1 20297 }
-1 20298 throw new TypeError('Cannot parse color('.concat(id, '). ') + (didYouMean || 'Missing a plugin?'));
-1 20299 } else {
-1 20300 var _iterator9 = _createForOfIteratorHelper(ColorSpace.all), _step9;
-1 20301 try {
-1 20302 var _loop5 = function _loop5() {
-1 20303 var space = _step9.value;
-1 20304 var format = space.getFormat(name);
-1 20305 if (format && format.type === 'function') {
-1 20306 var _alpha = 1;
-1 20307 if (format.lastAlpha || last(env.parsed.args).alpha) {
-1 20308 _alpha = env.parsed.args.pop();
-1 20309 }
-1 20310 var coords = env.parsed.args;
-1 20311 if (format.coordGrammar) {
-1 20312 Object.entries(space.coords).forEach(function(_ref44, i) {
-1 20313 var _coords$i;
-1 20314 var _ref45 = _slicedToArray(_ref44, 2), id = _ref45[0], coordMeta = _ref45[1];
-1 20315 var coordGrammar2 = format.coordGrammar[i];
-1 20316 var providedType = (_coords$i = coords[i]) === null || _coords$i === void 0 ? void 0 : _coords$i.type;
-1 20317 coordGrammar2 = coordGrammar2.find(function(c4) {
-1 20318 return c4 == providedType;
-1 20319 });
-1 20320 if (!coordGrammar2) {
-1 20321 var coordName = coordMeta.name || id;
-1 20322 throw new TypeError(''.concat(providedType, ' not allowed for ').concat(coordName, ' in ').concat(name, '()'));
-1 20323 }
-1 20324 var fromRange = coordGrammar2.range;
-1 20325 if (providedType === '<percentage>') {
-1 20326 fromRange || (fromRange = [ 0, 1 ]);
-1 20327 }
-1 20328 var toRange = coordMeta.range || coordMeta.refRange;
-1 20329 if (fromRange && toRange) {
-1 20330 coords[i] = mapRange(fromRange, toRange, coords[i]);
-1 20331 }
-1 20332 });
-1 20333 }
-1 20334 return {
-1 20335 v: {
-1 20336 v: {
-1 20337 spaceId: space.id,
-1 20338 coords: coords,
-1 20339 alpha: _alpha
-1 20340 }
-1 20341 }
-1 20342 };
-1 20343 }
-1 20344 };
-1 20345 for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
-1 20346 var _ret4 = _loop5();
-1 20347 if (_typeof(_ret4) === 'object') {
-1 20348 return _ret4.v;
-1 20349 }
-1 20350 }
-1 20351 } catch (err) {
-1 20352 _iterator9.e(err);
-1 20353 } finally {
-1 20354 _iterator9.f();
-1 20355 }
-1 20356 }
-1 20357 }();
-1 20358 if (_typeof(_ret2) === 'object') {
-1 20359 return _ret2.v;
17403 20360 }
17404 -1 if (accName2 !== '') {
17405 -1 return accName2;
-1 20361 } else {
-1 20362 var _iterator10 = _createForOfIteratorHelper(ColorSpace.all), _step10;
-1 20363 try {
-1 20364 for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
-1 20365 var space = _step10.value;
-1 20366 for (var formatId in space.formats) {
-1 20367 var format = space.formats[formatId];
-1 20368 if (format.type !== 'custom') {
-1 20369 continue;
-1 20370 }
-1 20371 if (format.test && !format.test(env.str)) {
-1 20372 continue;
-1 20373 }
-1 20374 var color = format.parse(env.str);
-1 20375 if (color) {
-1 20376 var _color$alpha;
-1 20377 (_color$alpha = color.alpha) !== null && _color$alpha !== void 0 ? _color$alpha : color.alpha = 1;
-1 20378 return color;
-1 20379 }
-1 20380 }
-1 20381 }
-1 20382 } catch (err) {
-1 20383 _iterator10.e(err);
-1 20384 } finally {
-1 20385 _iterator10.f();
17406 20386 }
17407 -1 return step(virtualNode, context);
17408 -1 }, '');
17409 -1 if (context.debug) {
17410 -1 axe.log(accName || '{empty-value}', virtualNode.actualNode, context);
17411 20387 }
17412 -1 return accName;
-1 20388 throw new TypeError('Could not parse '.concat(str, ' as a color. Missing a plugin?'));
17413 20389 }
17414 -1 function textNodeValue(virtualNode) {
17415 -1 if (virtualNode.props.nodeType !== 3) {
17416 -1 return '';
-1 20390 function getColor(color) {
-1 20391 if (!color) {
-1 20392 throw new TypeError('Empty color reference');
17417 20393 }
17418 -1 return virtualNode.props.nodeValue;
17419 -1 }
17420 -1 function shouldIgnoreHidden(virtualNode, context) {
17421 -1 if (!virtualNode) {
17422 -1 return false;
-1 20394 if (isString(color)) {
-1 20395 color = parse2(color);
17423 20396 }
17424 -1 if (virtualNode.props.nodeType !== 1 || context.includeHidden) {
17425 -1 return false;
-1 20397 var space = color.space || color.spaceId;
-1 20398 if (!(space instanceof ColorSpace)) {
-1 20399 color.space = ColorSpace.get(space);
17426 20400 }
17427 -1 return !_isVisibleToScreenReaders(virtualNode);
17428 -1 }
17429 -1 function shouldIgnoreIconLigature(virtualNode, context) {
17430 -1 var _context$occurrenceTh;
17431 -1 var ignoreIconLigature = context.ignoreIconLigature, pixelThreshold = context.pixelThreshold;
17432 -1 var occurrenceThreshold = (_context$occurrenceTh = context.occurrenceThreshold) !== null && _context$occurrenceTh !== void 0 ? _context$occurrenceTh : context.occuranceThreshold;
17433 -1 if (virtualNode.props.nodeType !== 3 || !ignoreIconLigature) {
17434 -1 return false;
-1 20401 if (color.alpha === void 0) {
-1 20402 color.alpha = 1;
17435 20403 }
17436 -1 return is_icon_ligature_default(virtualNode, pixelThreshold, occurrenceThreshold);
-1 20404 return color;
17437 20405 }
17438 -1 function prepareContext(virtualNode, context) {
17439 -1 if (!context.startNode) {
17440 -1 context = _extends({
17441 -1 startNode: virtualNode
17442 -1 }, context);
17443 -1 }
17444 -1 if (virtualNode.props.nodeType === 1 && context.inLabelledByContext && context.includeHidden === void 0) {
17445 -1 context = _extends({
17446 -1 includeHidden: !_isVisibleToScreenReaders(virtualNode)
17447 -1 }, context);
17448 -1 }
17449 -1 return context;
-1 20406 function getAll(color, space) {
-1 20407 space = ColorSpace.get(space);
-1 20408 return space.from(color);
17450 20409 }
17451 -1 accessibleTextVirtual.alreadyProcessed = function alreadyProcessed(virtualnode, context) {
17452 -1 context.processed = context.processed || [];
17453 -1 if (context.processed.includes(virtualnode)) {
17454 -1 return true;
17455 -1 }
17456 -1 context.processed.push(virtualnode);
17457 -1 return false;
17458 -1 };
17459 -1 var accessible_text_virtual_default = accessibleTextVirtual;
17460 -1 function removeUnicode(str, options) {
17461 -1 var emoji = options.emoji, nonBmp = options.nonBmp, punctuations = options.punctuations;
17462 -1 if (emoji) {
17463 -1 str = str.replace(emoji_regex_default(), '');
17464 -1 }
17465 -1 if (nonBmp) {
17466 -1 str = str.replace(getUnicodeNonBmpRegExp(), '');
17467 -1 str = str.replace(getSupplementaryPrivateUseRegExp(), '');
17468 -1 }
17469 -1 if (punctuations) {
17470 -1 str = str.replace(getPunctuationRegExp(), '');
17471 -1 }
17472 -1 return str;
-1 20410 function get(color, prop) {
-1 20411 var _ColorSpace$resolveCo = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo.space, index = _ColorSpace$resolveCo.index;
-1 20412 var coords = getAll(color, space);
-1 20413 return coords[index];
17473 20414 }
17474 -1 var remove_unicode_default = removeUnicode;
17475 -1 function isHumanInterpretable(str) {
17476 -1 if (!str.length) {
17477 -1 return 0;
17478 -1 }
17479 -1 var alphaNumericIconMap = [ 'x', 'i' ];
17480 -1 if (alphaNumericIconMap.includes(str)) {
17481 -1 return 0;
17482 -1 }
17483 -1 var noUnicodeStr = remove_unicode_default(str, {
17484 -1 emoji: true,
17485 -1 nonBmp: true,
17486 -1 punctuations: true
17487 -1 });
17488 -1 if (!sanitize_default(noUnicodeStr)) {
17489 -1 return 0;
17490 -1 }
17491 -1 return 1;
-1 20415 function setAll(color, space, coords) {
-1 20416 space = ColorSpace.get(space);
-1 20417 color.coords = space.to(color.space, coords);
-1 20418 return color;
17492 20419 }
17493 -1 var is_human_interpretable_default = isHumanInterpretable;
17494 -1 var _autocomplete = {
17495 -1 stateTerms: [ 'on', 'off' ],
17496 -1 standaloneTerms: [ 'name', 'honorific-prefix', 'given-name', 'additional-name', 'family-name', 'honorific-suffix', 'nickname', 'username', 'new-password', 'current-password', 'organization-title', 'organization', 'street-address', 'address-line1', 'address-line2', 'address-line3', 'address-level4', 'address-level3', 'address-level2', 'address-level1', 'country', 'country-name', 'postal-code', 'cc-name', 'cc-given-name', 'cc-additional-name', 'cc-family-name', 'cc-number', 'cc-exp', 'cc-exp-month', 'cc-exp-year', 'cc-csc', 'cc-type', 'transaction-currency', 'transaction-amount', 'language', 'bday', 'bday-day', 'bday-month', 'bday-year', 'sex', 'url', 'photo', 'one-time-code' ],
17497 -1 qualifiers: [ 'home', 'work', 'mobile', 'fax', 'pager' ],
17498 -1 qualifiedTerms: [ 'tel', 'tel-country-code', 'tel-national', 'tel-area-code', 'tel-local', 'tel-local-prefix', 'tel-local-suffix', 'tel-extension', 'email', 'impp' ],
17499 -1 locations: [ 'billing', 'shipping' ]
17500 -1 };
17501 -1 function isValidAutocomplete(autocompleteValue) {
17502 -1 var _ref34 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref34$looseTyped = _ref34.looseTyped, looseTyped = _ref34$looseTyped === void 0 ? false : _ref34$looseTyped, _ref34$stateTerms = _ref34.stateTerms, stateTerms = _ref34$stateTerms === void 0 ? [] : _ref34$stateTerms, _ref34$locations = _ref34.locations, locations = _ref34$locations === void 0 ? [] : _ref34$locations, _ref34$qualifiers = _ref34.qualifiers, qualifiers = _ref34$qualifiers === void 0 ? [] : _ref34$qualifiers, _ref34$standaloneTerm = _ref34.standaloneTerms, standaloneTerms = _ref34$standaloneTerm === void 0 ? [] : _ref34$standaloneTerm, _ref34$qualifiedTerms = _ref34.qualifiedTerms, qualifiedTerms = _ref34$qualifiedTerms === void 0 ? [] : _ref34$qualifiedTerms;
17503 -1 autocompleteValue = autocompleteValue.toLowerCase().trim();
17504 -1 stateTerms = stateTerms.concat(_autocomplete.stateTerms);
17505 -1 if (stateTerms.includes(autocompleteValue) || autocompleteValue === '') {
17506 -1 return true;
17507 -1 }
17508 -1 qualifiers = qualifiers.concat(_autocomplete.qualifiers);
17509 -1 locations = locations.concat(_autocomplete.locations);
17510 -1 standaloneTerms = standaloneTerms.concat(_autocomplete.standaloneTerms);
17511 -1 qualifiedTerms = qualifiedTerms.concat(_autocomplete.qualifiedTerms);
17512 -1 var autocompleteTerms = autocompleteValue.split(/\s+/g);
17513 -1 if (!looseTyped) {
17514 -1 if (autocompleteTerms[0].length > 8 && autocompleteTerms[0].substr(0, 8) === 'section-') {
17515 -1 autocompleteTerms.shift();
17516 -1 }
17517 -1 if (locations.includes(autocompleteTerms[0])) {
17518 -1 autocompleteTerms.shift();
17519 -1 }
17520 -1 if (qualifiers.includes(autocompleteTerms[0])) {
17521 -1 autocompleteTerms.shift();
17522 -1 standaloneTerms = [];
-1 20420 function set(color, prop, value) {
-1 20421 color = getColor(color);
-1 20422 if (arguments.length === 2 && type(arguments[1]) === 'object') {
-1 20423 var object = arguments[1];
-1 20424 for (var p2 in object) {
-1 20425 set(color, p2, object[p2]);
17523 20426 }
17524 -1 if (autocompleteTerms.length !== 1) {
17525 -1 return false;
-1 20427 } else {
-1 20428 if (typeof value === 'function') {
-1 20429 value = value(get(color, prop));
17526 20430 }
-1 20431 var _ColorSpace$resolveCo2 = ColorSpace.resolveCoord(prop, color.space), space = _ColorSpace$resolveCo2.space, index = _ColorSpace$resolveCo2.index;
-1 20432 var coords = getAll(color, space);
-1 20433 coords[index] = value;
-1 20434 setAll(color, space, coords);
17527 20435 }
17528 -1 var purposeTerm = autocompleteTerms[autocompleteTerms.length - 1];
17529 -1 return standaloneTerms.includes(purposeTerm) || qualifiedTerms.includes(purposeTerm);
-1 20436 return color;
17530 20437 }
17531 -1 var is_valid_autocomplete_default = isValidAutocomplete;
17532 -1 function labelVirtual(virtualNode) {
17533 -1 var ref, candidate;
17534 -1 if (virtualNode.attr('aria-labelledby')) {
17535 -1 ref = idrefs_default(virtualNode.actualNode, 'aria-labelledby');
17536 -1 candidate = ref.map(function(thing) {
17537 -1 var vNode = get_node_from_tree_default(thing);
17538 -1 return vNode ? visible_virtual_default(vNode) : '';
17539 -1 }).join(' ').trim();
17540 -1 if (candidate) {
17541 -1 return candidate;
17542 -1 }
-1 20438 var XYZ_D50 = new ColorSpace({
-1 20439 id: 'xyz-d50',
-1 20440 name: 'XYZ D50',
-1 20441 white: 'D50',
-1 20442 base: XYZ_D65,
-1 20443 fromBase: function fromBase(coords) {
-1 20444 return adapt$1(XYZ_D65.white, 'D50', coords);
-1 20445 },
-1 20446 toBase: function toBase(coords) {
-1 20447 return adapt$1('D50', XYZ_D65.white, coords);
-1 20448 },
-1 20449 formats: {
-1 20450 color: {}
17543 20451 }
17544 -1 candidate = virtualNode.attr('aria-label');
17545 -1 if (candidate) {
17546 -1 candidate = sanitize_default(candidate);
17547 -1 if (candidate) {
17548 -1 return candidate;
-1 20452 });
-1 20453 var \u03b5$3 = 216 / 24389;
-1 20454 var \u03b53$1 = 24 / 116;
-1 20455 var \u03ba$1 = 24389 / 27;
-1 20456 var white$1 = WHITES.D50;
-1 20457 var lab = new ColorSpace({
-1 20458 id: 'lab',
-1 20459 name: 'Lab',
-1 20460 coords: {
-1 20461 l: {
-1 20462 refRange: [ 0, 100 ],
-1 20463 name: 'L'
-1 20464 },
-1 20465 a: {
-1 20466 refRange: [ -125, 125 ]
-1 20467 },
-1 20468 b: {
-1 20469 refRange: [ -125, 125 ]
-1 20470 }
-1 20471 },
-1 20472 white: white$1,
-1 20473 base: XYZ_D50,
-1 20474 fromBase: function fromBase(XYZ) {
-1 20475 var xyz = XYZ.map(function(value, i) {
-1 20476 return value / white$1[i];
-1 20477 });
-1 20478 var f = xyz.map(function(value) {
-1 20479 return value > \u03b5$3 ? Math.cbrt(value) : (\u03ba$1 * value + 16) / 116;
-1 20480 });
-1 20481 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ];
-1 20482 },
-1 20483 toBase: function toBase(Lab) {
-1 20484 var f = [];
-1 20485 f[1] = (Lab[0] + 16) / 116;
-1 20486 f[0] = Lab[1] / 500 + f[1];
-1 20487 f[2] = f[1] - Lab[2] / 200;
-1 20488 var xyz = [ f[0] > \u03b53$1 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba$1, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba$1, f[2] > \u03b53$1 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba$1 ];
-1 20489 return xyz.map(function(value, i) {
-1 20490 return value * white$1[i];
-1 20491 });
-1 20492 },
-1 20493 formats: {
-1 20494 lab: {
-1 20495 coords: [ '<number> | <percentage>', '<number>', '<number>' ]
17549 20496 }
17550 20497 }
17551 -1 return null;
17552 -1 }
17553 -1 var label_virtual_default = labelVirtual;
17554 -1 function visible(element, screenReader, noRecursing) {
17555 -1 element = get_node_from_tree_default(element);
17556 -1 return visible_virtual_default(element, screenReader, noRecursing);
17557 -1 }
17558 -1 var visible_default = visible;
17559 -1 function labelVirtual2(virtualNode) {
17560 -1 var ref, candidate, doc;
17561 -1 candidate = label_virtual_default(virtualNode);
17562 -1 if (candidate) {
17563 -1 return candidate;
17564 -1 }
17565 -1 if (virtualNode.attr('id')) {
17566 -1 if (!virtualNode.actualNode) {
17567 -1 throw new TypeError('Cannot resolve explicit label reference for non-DOM nodes');
-1 20498 });
-1 20499 function constrain(angle) {
-1 20500 return (angle % 360 + 360) % 360;
-1 20501 }
-1 20502 function adjust(arc, angles) {
-1 20503 if (arc === 'raw') {
-1 20504 return angles;
-1 20505 }
-1 20506 var _angles$map = angles.map(constrain), _angles$map2 = _slicedToArray(_angles$map, 2), a1 = _angles$map2[0], a2 = _angles$map2[1];
-1 20507 var angleDiff = a2 - a1;
-1 20508 if (arc === 'increasing') {
-1 20509 if (angleDiff < 0) {
-1 20510 a2 += 360;
-1 20511 }
-1 20512 } else if (arc === 'decreasing') {
-1 20513 if (angleDiff > 0) {
-1 20514 a1 += 360;
-1 20515 }
-1 20516 } else if (arc === 'longer') {
-1 20517 if (-180 < angleDiff && angleDiff < 180) {
-1 20518 if (angleDiff > 0) {
-1 20519 a2 += 360;
-1 20520 } else {
-1 20521 a1 += 360;
-1 20522 }
17568 20523 }
17569 -1 var id = escape_selector_default(virtualNode.attr('id'));
17570 -1 doc = get_root_node_default2(virtualNode.actualNode);
17571 -1 ref = doc.querySelector('label[for="' + id + '"]');
17572 -1 candidate = ref && visible_default(ref, true);
17573 -1 if (candidate) {
17574 -1 return candidate;
-1 20524 } else if (arc === 'shorter') {
-1 20525 if (angleDiff > 180) {
-1 20526 a1 += 360;
-1 20527 } else if (angleDiff < -180) {
-1 20528 a2 += 360;
17575 20529 }
17576 20530 }
17577 -1 ref = closest_default(virtualNode, 'label');
17578 -1 candidate = ref && visible_virtual_default(ref, true);
17579 -1 if (candidate) {
17580 -1 return candidate;
17581 -1 }
17582 -1 return null;
17583 -1 }
17584 -1 var label_virtual_default2 = labelVirtual2;
17585 -1 function label(node) {
17586 -1 node = get_node_from_tree_default(node);
17587 -1 return label_virtual_default2(node);
-1 20531 return [ a1, a2 ];
17588 20532 }
17589 -1 var label_default = label;
17590 -1 var nativeElementType = [ {
17591 -1 matches: [ {
17592 -1 nodeName: 'textarea'
17593 -1 }, {
17594 -1 nodeName: 'input',
17595 -1 properties: {
17596 -1 type: [ 'text', 'password', 'search', 'tel', 'email', 'url' ]
17597 -1 }
17598 -1 } ],
17599 -1 namingMethods: 'labelText'
17600 -1 }, {
17601 -1 matches: {
17602 -1 nodeName: 'input',
17603 -1 properties: {
17604 -1 type: [ 'button', 'submit', 'reset' ]
-1 20533 var lch = new ColorSpace({
-1 20534 id: 'lch',
-1 20535 name: 'LCH',
-1 20536 coords: {
-1 20537 l: {
-1 20538 refRange: [ 0, 100 ],
-1 20539 name: 'Lightness'
-1 20540 },
-1 20541 c: {
-1 20542 refRange: [ 0, 150 ],
-1 20543 name: 'Chroma'
-1 20544 },
-1 20545 h: {
-1 20546 refRange: [ 0, 360 ],
-1 20547 type: 'angle',
-1 20548 name: 'Hue'
17605 20549 }
17606 20550 },
17607 -1 namingMethods: [ 'valueText', 'titleText', 'buttonDefaultText' ]
17608 -1 }, {
17609 -1 matches: {
17610 -1 nodeName: 'input',
17611 -1 properties: {
17612 -1 type: 'image'
-1 20551 base: lab,
-1 20552 fromBase: function fromBase(Lab) {
-1 20553 var _Lab = _slicedToArray(Lab, 3), L = _Lab[0], a2 = _Lab[1], b2 = _Lab[2];
-1 20554 var hue;
-1 20555 var \u03b52 = .02;
-1 20556 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) {
-1 20557 hue = NaN;
-1 20558 } else {
-1 20559 hue = Math.atan2(b2, a2) * 180 / Math.PI;
17613 20560 }
-1 20561 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(hue) ];
17614 20562 },
17615 -1 namingMethods: [ 'altText', 'valueText', 'labelText', 'titleText', 'buttonDefaultText' ]
17616 -1 }, {
17617 -1 matches: 'button',
17618 -1 namingMethods: 'subtreeText'
17619 -1 }, {
17620 -1 matches: 'fieldset',
17621 -1 namingMethods: 'fieldsetLegendText'
17622 -1 }, {
17623 -1 matches: 'OUTPUT',
17624 -1 namingMethods: 'subtreeText'
17625 -1 }, {
17626 -1 matches: [ {
17627 -1 nodeName: 'select'
17628 -1 }, {
17629 -1 nodeName: 'input',
17630 -1 properties: {
17631 -1 type: /^(?!text|password|search|tel|email|url|button|submit|reset)/
-1 20563 toBase: function toBase(LCH) {
-1 20564 var _LCH = _slicedToArray(LCH, 3), Lightness = _LCH[0], Chroma = _LCH[1], Hue = _LCH[2];
-1 20565 if (Chroma < 0) {
-1 20566 Chroma = 0;
17632 20567 }
17633 -1 } ],
17634 -1 namingMethods: 'labelText'
17635 -1 }, {
17636 -1 matches: 'summary',
17637 -1 namingMethods: 'subtreeText'
17638 -1 }, {
17639 -1 matches: 'figure',
17640 -1 namingMethods: [ 'figureText', 'titleText' ]
17641 -1 }, {
17642 -1 matches: 'img',
17643 -1 namingMethods: 'altText'
17644 -1 }, {
17645 -1 matches: 'table',
17646 -1 namingMethods: [ 'tableCaptionText', 'tableSummaryText' ]
17647 -1 }, {
17648 -1 matches: [ 'hr', 'br' ],
17649 -1 namingMethods: [ 'titleText', 'singleSpace' ]
17650 -1 } ];
17651 -1 var native_element_type_default = nativeElementType;
17652 -1 function visibleTextNodes(vNode) {
17653 -1 var parentVisible = _isVisibleOnScreen(vNode);
17654 -1 var nodes = [];
17655 -1 vNode.children.forEach(function(child) {
17656 -1 if (child.actualNode.nodeType === 3) {
17657 -1 if (parentVisible) {
17658 -1 nodes.push(child);
-1 20568 if (isNaN(Hue)) {
-1 20569 Hue = 0;
-1 20570 }
-1 20571 return [ Lightness, Chroma * Math.cos(Hue * Math.PI / 180), Chroma * Math.sin(Hue * Math.PI / 180) ];
-1 20572 },
-1 20573 formats: {
-1 20574 lch: {
-1 20575 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]
-1 20576 }
-1 20577 }
-1 20578 });
-1 20579 var Gfactor = Math.pow(25, 7);
-1 20580 var \u03c0$1 = Math.PI;
-1 20581 var r2d = 180 / \u03c0$1;
-1 20582 var d2r$1 = \u03c0$1 / 180;
-1 20583 function deltaE2000(color, sample) {
-1 20584 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;
-1 20585 var _lab$from = lab.from(color), _lab$from2 = _slicedToArray(_lab$from, 3), L1 = _lab$from2[0], a1 = _lab$from2[1], b1 = _lab$from2[2];
-1 20586 var C1 = lch.from(lab, [ L1, a1, b1 ])[1];
-1 20587 var _lab$from3 = lab.from(sample), _lab$from4 = _slicedToArray(_lab$from3, 3), L2 = _lab$from4[0], a2 = _lab$from4[1], b2 = _lab$from4[2];
-1 20588 var C2 = lch.from(lab, [ L2, a2, b2 ])[1];
-1 20589 if (C1 < 0) {
-1 20590 C1 = 0;
-1 20591 }
-1 20592 if (C2 < 0) {
-1 20593 C2 = 0;
-1 20594 }
-1 20595 var Cbar = (C1 + C2) / 2;
-1 20596 var C7 = Math.pow(Cbar, 7);
-1 20597 var G = .5 * (1 - Math.sqrt(C7 / (C7 + Gfactor)));
-1 20598 var adash1 = (1 + G) * a1;
-1 20599 var adash2 = (1 + G) * a2;
-1 20600 var Cdash1 = Math.sqrt(Math.pow(adash1, 2) + Math.pow(b1, 2));
-1 20601 var Cdash2 = Math.sqrt(Math.pow(adash2, 2) + Math.pow(b2, 2));
-1 20602 var h1 = adash1 === 0 && b1 === 0 ? 0 : Math.atan2(b1, adash1);
-1 20603 var h2 = adash2 === 0 && b2 === 0 ? 0 : Math.atan2(b2, adash2);
-1 20604 if (h1 < 0) {
-1 20605 h1 += 2 * \u03c0$1;
-1 20606 }
-1 20607 if (h2 < 0) {
-1 20608 h2 += 2 * \u03c0$1;
-1 20609 }
-1 20610 h1 *= r2d;
-1 20611 h2 *= r2d;
-1 20612 var \u0394L = L2 - L1;
-1 20613 var \u0394C = Cdash2 - Cdash1;
-1 20614 var hdiff = h2 - h1;
-1 20615 var hsum = h1 + h2;
-1 20616 var habs = Math.abs(hdiff);
-1 20617 var \u0394h;
-1 20618 if (Cdash1 * Cdash2 === 0) {
-1 20619 \u0394h = 0;
-1 20620 } else if (habs <= 180) {
-1 20621 \u0394h = hdiff;
-1 20622 } else if (hdiff > 180) {
-1 20623 \u0394h = hdiff - 360;
-1 20624 } else if (hdiff < -180) {
-1 20625 \u0394h = hdiff + 360;
-1 20626 } else {
-1 20627 console.log('the unthinkable has happened');
-1 20628 }
-1 20629 var \u0394H = 2 * Math.sqrt(Cdash2 * Cdash1) * Math.sin(\u0394h * d2r$1 / 2);
-1 20630 var Ldash = (L1 + L2) / 2;
-1 20631 var Cdash = (Cdash1 + Cdash2) / 2;
-1 20632 var Cdash7 = Math.pow(Cdash, 7);
-1 20633 var hdash;
-1 20634 if (Cdash1 * Cdash2 === 0) {
-1 20635 hdash = hsum;
-1 20636 } else if (habs <= 180) {
-1 20637 hdash = hsum / 2;
-1 20638 } else if (hsum < 360) {
-1 20639 hdash = (hsum + 360) / 2;
-1 20640 } else {
-1 20641 hdash = (hsum - 360) / 2;
-1 20642 }
-1 20643 var lsq = Math.pow(Ldash - 50, 2);
-1 20644 var SL = 1 + .015 * lsq / Math.sqrt(20 + lsq);
-1 20645 var SC = 1 + .045 * Cdash;
-1 20646 var T = 1;
-1 20647 T -= .17 * Math.cos((hdash - 30) * d2r$1);
-1 20648 T += .24 * Math.cos(2 * hdash * d2r$1);
-1 20649 T += .32 * Math.cos((3 * hdash + 6) * d2r$1);
-1 20650 T -= .2 * Math.cos((4 * hdash - 63) * d2r$1);
-1 20651 var SH = 1 + .015 * Cdash * T;
-1 20652 var \u0394\u03b8 = 30 * Math.exp(-1 * Math.pow((hdash - 275) / 25, 2));
-1 20653 var RC = 2 * Math.sqrt(Cdash7 / (Cdash7 + Gfactor));
-1 20654 var RT = -1 * Math.sin(2 * \u0394\u03b8 * d2r$1) * RC;
-1 20655 var dE = Math.pow(\u0394L / (kL * SL), 2);
-1 20656 dE += Math.pow(\u0394C / (kC * SC), 2);
-1 20657 dE += Math.pow(\u0394H / (kH * SH), 2);
-1 20658 dE += RT * (\u0394C / (kC * SC)) * (\u0394H / (kH * SH));
-1 20659 return Math.sqrt(dE);
-1 20660 }
-1 20661 var \u03b5$2 = 75e-6;
-1 20662 function inGamut(color) {
-1 20663 var space = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : color.space;
-1 20664 var _ref47 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref47$epsilon = _ref47.epsilon, epsilon = _ref47$epsilon === void 0 ? \u03b5$2 : _ref47$epsilon;
-1 20665 color = getColor(color);
-1 20666 space = ColorSpace.get(space);
-1 20667 var coords = color.coords;
-1 20668 if (space !== color.space) {
-1 20669 coords = space.from(color);
-1 20670 }
-1 20671 return space.inGamut(coords, {
-1 20672 epsilon: epsilon
-1 20673 });
-1 20674 }
-1 20675 function clone2(color) {
-1 20676 return {
-1 20677 space: color.space,
-1 20678 coords: color.coords.slice(),
-1 20679 alpha: color.alpha
-1 20680 };
-1 20681 }
-1 20682 function toGamut(color) {
-1 20683 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;
-1 20684 if (isString(arguments[1])) {
-1 20685 space = arguments[1];
-1 20686 }
-1 20687 space = ColorSpace.get(space);
-1 20688 if (inGamut(color, space, {
-1 20689 epsilon: 0
-1 20690 })) {
-1 20691 return color;
-1 20692 }
-1 20693 var spaceColor = to(color, space);
-1 20694 if (method !== 'clip' && !inGamut(color, space)) {
-1 20695 var clipped = toGamut(clone2(spaceColor), {
-1 20696 method: 'clip',
-1 20697 space: space
-1 20698 });
-1 20699 if (deltaE2000(color, clipped) > 2) {
-1 20700 var coordMeta = ColorSpace.resolveCoord(method);
-1 20701 var mapSpace = coordMeta.space;
-1 20702 var coordId = coordMeta.id;
-1 20703 var mappedColor = to(spaceColor, mapSpace);
-1 20704 var bounds = coordMeta.range || coordMeta.refRange;
-1 20705 var min = bounds[0];
-1 20706 var \u03b52 = .01;
-1 20707 var low = min;
-1 20708 var high = get(mappedColor, coordId);
-1 20709 while (high - low > \u03b52) {
-1 20710 var clipped2 = clone2(mappedColor);
-1 20711 clipped2 = toGamut(clipped2, {
-1 20712 space: space,
-1 20713 method: 'clip'
-1 20714 });
-1 20715 var deltaE2 = deltaE2000(mappedColor, clipped2);
-1 20716 if (deltaE2 - 2 < \u03b52) {
-1 20717 low = get(mappedColor, coordId);
-1 20718 } else {
-1 20719 high = get(mappedColor, coordId);
-1 20720 }
-1 20721 set(mappedColor, coordId, (low + high) / 2);
17659 20722 }
-1 20723 spaceColor = to(mappedColor, space);
17660 20724 } else {
17661 -1 nodes = nodes.concat(visibleTextNodes(child));
-1 20725 spaceColor = clipped;
17662 20726 }
17663 -1 });
17664 -1 return nodes;
17665 -1 }
17666 -1 var visible_text_nodes_default = visibleTextNodes;
17667 -1 var getVisibleChildTextRects = memoize_default(function getVisibleChildTextRectsMemoized(node) {
17668 -1 var vNode = get_node_from_tree_default(node);
17669 -1 var nodeRect = vNode.boundingClientRect;
17670 -1 var clientRects = [];
17671 -1 var overflowHiddenNodes = get_overflow_hidden_ancestors_default(vNode);
17672 -1 node.childNodes.forEach(function(textNode) {
17673 -1 if (textNode.nodeType !== 3 || sanitize_default(textNode.nodeValue) === '') {
17674 -1 return;
-1 20727 }
-1 20728 if (method === 'clip' || !inGamut(spaceColor, space, {
-1 20729 epsilon: 0
-1 20730 })) {
-1 20731 var _bounds = Object.values(space.coords).map(function(c4) {
-1 20732 return c4.range || [];
-1 20733 });
-1 20734 spaceColor.coords = spaceColor.coords.map(function(c4, i) {
-1 20735 var _bounds$i = _slicedToArray(_bounds[i], 2), min = _bounds$i[0], max2 = _bounds$i[1];
-1 20736 if (min !== void 0) {
-1 20737 c4 = Math.max(min, c4);
-1 20738 }
-1 20739 if (max2 !== void 0) {
-1 20740 c4 = Math.min(c4, max2);
-1 20741 }
-1 20742 return c4;
-1 20743 });
-1 20744 }
-1 20745 if (space !== color.space) {
-1 20746 spaceColor = to(spaceColor, color.space);
-1 20747 }
-1 20748 color.coords = spaceColor.coords;
-1 20749 return color;
-1 20750 }
-1 20751 toGamut.returns = 'color';
-1 20752 function to(color, space) {
-1 20753 var _ref49 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, inGamut2 = _ref49.inGamut;
-1 20754 color = getColor(color);
-1 20755 space = ColorSpace.get(space);
-1 20756 var coords = space.from(color);
-1 20757 var ret = {
-1 20758 space: space,
-1 20759 coords: coords,
-1 20760 alpha: color.alpha
-1 20761 };
-1 20762 if (inGamut2) {
-1 20763 ret = toGamut(ret);
-1 20764 }
-1 20765 return ret;
-1 20766 }
-1 20767 to.returns = 'color';
-1 20768 function serialize(color) {
-1 20769 var _ref51, _color$space$getForma;
-1 20770 var _ref50 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 20771 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);
-1 20772 var ret;
-1 20773 color = getColor(color);
-1 20774 var formatId = format;
-1 20775 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;
-1 20776 inGamut$1 || (inGamut$1 = format.toGamut);
-1 20777 var coords = color.coords;
-1 20778 coords = coords.map(function(c4) {
-1 20779 return c4 ? c4 : 0;
-1 20780 });
-1 20781 if (inGamut$1 && !inGamut(color)) {
-1 20782 coords = toGamut(clone2(color), inGamut$1 === true ? void 0 : inGamut$1).coords;
-1 20783 }
-1 20784 if (format.type === 'custom') {
-1 20785 customOptions.precision = precision;
-1 20786 if (format.serialize) {
-1 20787 ret = format.serialize(coords, color.alpha, customOptions);
-1 20788 } else {
-1 20789 throw new TypeError('format '.concat(formatId, ' can only be used to parse colors, not for serialization'));
17675 20790 }
17676 -1 var contentRects = getContentRects(textNode);
17677 -1 if (isOutsideNodeBounds(contentRects, nodeRect)) {
17678 -1 return;
-1 20791 } else {
-1 20792 var name = format.name || 'color';
-1 20793 if (format.serializeCoords) {
-1 20794 coords = format.serializeCoords(coords, precision);
-1 20795 } else {
-1 20796 if (precision !== null) {
-1 20797 coords = coords.map(function(c4) {
-1 20798 return toPrecision(c4, precision);
-1 20799 });
-1 20800 }
17679 20801 }
17680 -1 clientRects.push.apply(clientRects, _toConsumableArray(filterHiddenRects(contentRects, overflowHiddenNodes)));
17681 -1 });
17682 -1 return clientRects.length ? clientRects : [ nodeRect ];
17683 -1 });
17684 -1 var get_visible_child_text_rects_default = getVisibleChildTextRects;
17685 -1 function getContentRects(node) {
17686 -1 var range = document.createRange();
17687 -1 range.selectNodeContents(node);
17688 -1 return Array.from(range.getClientRects());
17689 -1 }
17690 -1 function isOutsideNodeBounds(rects, nodeRect) {
17691 -1 return rects.some(function(rect) {
17692 -1 var centerPoint = _getRectCenter(rect);
17693 -1 return !_isPointInRect(centerPoint, nodeRect);
17694 -1 });
17695 -1 }
17696 -1 function filterHiddenRects(contentRects, overflowHiddenNodes) {
17697 -1 var visibleRects = [];
17698 -1 contentRects.forEach(function(contentRect) {
17699 -1 if (contentRect.width < 1 || contentRect.height < 1) {
17700 -1 return;
-1 20802 var args = _toConsumableArray(coords);
-1 20803 if (name === 'color') {
-1 20804 var _format$ids;
-1 20805 var cssId = format.id || ((_format$ids = format.ids) === null || _format$ids === void 0 ? void 0 : _format$ids[0]) || color.space.id;
-1 20806 args.unshift(cssId);
17701 20807 }
17702 -1 var visibleRect = overflowHiddenNodes.reduce(function(rect, overflowNode) {
17703 -1 return rect && _getIntersectionRect(rect, overflowNode.boundingClientRect);
17704 -1 }, contentRect);
17705 -1 if (visibleRect) {
17706 -1 visibleRects.push(visibleRect);
-1 20808 var alpha = color.alpha;
-1 20809 if (precision !== null) {
-1 20810 alpha = toPrecision(alpha, precision);
17707 20811 }
17708 -1 });
17709 -1 return visibleRects;
17710 -1 }
17711 -1 function getTextElementStack(node) {
17712 -1 _createGrid();
17713 -1 var vNode = get_node_from_tree_default(node);
17714 -1 var grid = vNode._grid;
17715 -1 if (!grid) {
17716 -1 return [];
-1 20812 var strAlpha = color.alpha < 1 && !format.noAlpha ? ''.concat(format.commas ? ',' : ' /', ' ').concat(alpha) : '';
-1 20813 ret = ''.concat(name, '(').concat(args.join(format.commas ? ', ' : ' ')).concat(strAlpha, ')');
17717 20814 }
17718 -1 var clientRects = get_visible_child_text_rects_default(node);
17719 -1 return clientRects.map(function(rect) {
17720 -1 return getRectStack(grid, rect);
17721 -1 });
-1 20815 return ret;
17722 20816 }
17723 -1 var get_text_element_stack_default = getTextElementStack;
17724 -1 var visualRoles = [ 'checkbox', 'img', 'meter', 'progressbar', 'scrollbar', 'radio', 'slider', 'spinbutton', 'textbox' ];
17725 -1 function isVisualContent(el) {
17726 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
17727 -1 var role = axe.commons.aria.getExplicitRole(vNode);
17728 -1 if (role) {
17729 -1 return visualRoles.indexOf(role) !== -1;
-1 20817 var toXYZ_M$5 = [ [ .6369580483012914, .14461690358620832, .1688809751641721 ], [ .2627002120112671, .6779980715188708, .05930171646986196 ], [ 0, .028072693049087428, 1.060985057710791 ] ];
-1 20818 var fromXYZ_M$5 = [ [ 1.716651187971268, -.355670783776392, -.25336628137366 ], [ -.666684351832489, 1.616481236634939, .0157685458139111 ], [ .017639857445311, -.042770613257809, .942103121235474 ] ];
-1 20819 var REC2020Linear = new RGBColorSpace({
-1 20820 id: 'rec2020-linear',
-1 20821 name: 'Linear REC.2020',
-1 20822 white: 'D65',
-1 20823 toXYZ_M: toXYZ_M$5,
-1 20824 fromXYZ_M: fromXYZ_M$5,
-1 20825 formats: {
-1 20826 color: {}
17730 20827 }
17731 -1 switch (vNode.props.nodeName) {
17732 -1 case 'img':
17733 -1 case 'iframe':
17734 -1 case 'object':
17735 -1 case 'video':
17736 -1 case 'audio':
17737 -1 case 'canvas':
17738 -1 case 'svg':
17739 -1 case 'math':
17740 -1 case 'button':
17741 -1 case 'select':
17742 -1 case 'textarea':
17743 -1 case 'keygen':
17744 -1 case 'progress':
17745 -1 case 'meter':
17746 -1 return true;
17747 -1
17748 -1 case 'input':
17749 -1 return vNode.props.type !== 'hidden';
17750 -1
17751 -1 default:
17752 -1 return false;
-1 20828 });
-1 20829 var \u03b1 = 1.09929682680944;
-1 20830 var \u03b2 = .018053968510807;
-1 20831 var REC2020 = new RGBColorSpace({
-1 20832 id: 'rec2020',
-1 20833 name: 'REC.2020',
-1 20834 base: REC2020Linear,
-1 20835 toBase: function toBase(RGB) {
-1 20836 return RGB.map(function(val) {
-1 20837 if (val < \u03b2 * 4.5) {
-1 20838 return val / 4.5;
-1 20839 }
-1 20840 return Math.pow((val + \u03b1 - 1) / \u03b1, 1 / .45);
-1 20841 });
-1 20842 },
-1 20843 fromBase: function fromBase(RGB) {
-1 20844 return RGB.map(function(val) {
-1 20845 if (val >= \u03b2) {
-1 20846 return \u03b1 * Math.pow(val, .45) - (\u03b1 - 1);
-1 20847 }
-1 20848 return 4.5 * val;
-1 20849 });
-1 20850 },
-1 20851 formats: {
-1 20852 color: {}
-1 20853 }
-1 20854 });
-1 20855 var toXYZ_M$4 = [ [ .4865709486482162, .26566769316909306, .1982172852343625 ], [ .2289745640697488, .6917385218365064, .079286914093745 ], [ 0, .04511338185890264, 1.043944368900976 ] ];
-1 20856 var fromXYZ_M$4 = [ [ 2.493496911941425, -.9313836179191239, -.40271078445071684 ], [ -.8294889695615747, 1.7626640603183463, .023624685841943577 ], [ .03584583024378447, -.07617238926804182, .9568845240076872 ] ];
-1 20857 var P3Linear = new RGBColorSpace({
-1 20858 id: 'p3-linear',
-1 20859 name: 'Linear P3',
-1 20860 white: 'D65',
-1 20861 toXYZ_M: toXYZ_M$4,
-1 20862 fromXYZ_M: fromXYZ_M$4
-1 20863 });
-1 20864 var toXYZ_M$3 = [ [ .41239079926595934, .357584339383878, .1804807884018343 ], [ .21263900587151027, .715168678767756, .07219231536073371 ], [ .01933081871559182, .11919477979462598, .9505321522496607 ] ];
-1 20865 var fromXYZ_M$3 = [ [ 3.2409699419045226, -1.537383177570094, -.4986107602930034 ], [ -.9692436362808796, 1.8759675015077202, .04155505740717559 ], [ .05563007969699366, -.20397695888897652, 1.0569715142428786 ] ];
-1 20866 var sRGBLinear = new RGBColorSpace({
-1 20867 id: 'srgb-linear',
-1 20868 name: 'Linear sRGB',
-1 20869 white: 'D65',
-1 20870 toXYZ_M: toXYZ_M$3,
-1 20871 fromXYZ_M: fromXYZ_M$3,
-1 20872 formats: {
-1 20873 color: {}
-1 20874 }
-1 20875 });
-1 20876 var KEYWORDS = {
-1 20877 aliceblue: [ 240 / 255, 248 / 255, 1 ],
-1 20878 antiquewhite: [ 250 / 255, 235 / 255, 215 / 255 ],
-1 20879 aqua: [ 0, 1, 1 ],
-1 20880 aquamarine: [ 127 / 255, 1, 212 / 255 ],
-1 20881 azure: [ 240 / 255, 1, 1 ],
-1 20882 beige: [ 245 / 255, 245 / 255, 220 / 255 ],
-1 20883 bisque: [ 1, 228 / 255, 196 / 255 ],
-1 20884 black: [ 0, 0, 0 ],
-1 20885 blanchedalmond: [ 1, 235 / 255, 205 / 255 ],
-1 20886 blue: [ 0, 0, 1 ],
-1 20887 blueviolet: [ 138 / 255, 43 / 255, 226 / 255 ],
-1 20888 brown: [ 165 / 255, 42 / 255, 42 / 255 ],
-1 20889 burlywood: [ 222 / 255, 184 / 255, 135 / 255 ],
-1 20890 cadetblue: [ 95 / 255, 158 / 255, 160 / 255 ],
-1 20891 chartreuse: [ 127 / 255, 1, 0 ],
-1 20892 chocolate: [ 210 / 255, 105 / 255, 30 / 255 ],
-1 20893 coral: [ 1, 127 / 255, 80 / 255 ],
-1 20894 cornflowerblue: [ 100 / 255, 149 / 255, 237 / 255 ],
-1 20895 cornsilk: [ 1, 248 / 255, 220 / 255 ],
-1 20896 crimson: [ 220 / 255, 20 / 255, 60 / 255 ],
-1 20897 cyan: [ 0, 1, 1 ],
-1 20898 darkblue: [ 0, 0, 139 / 255 ],
-1 20899 darkcyan: [ 0, 139 / 255, 139 / 255 ],
-1 20900 darkgoldenrod: [ 184 / 255, 134 / 255, 11 / 255 ],
-1 20901 darkgray: [ 169 / 255, 169 / 255, 169 / 255 ],
-1 20902 darkgreen: [ 0, 100 / 255, 0 ],
-1 20903 darkgrey: [ 169 / 255, 169 / 255, 169 / 255 ],
-1 20904 darkkhaki: [ 189 / 255, 183 / 255, 107 / 255 ],
-1 20905 darkmagenta: [ 139 / 255, 0, 139 / 255 ],
-1 20906 darkolivegreen: [ 85 / 255, 107 / 255, 47 / 255 ],
-1 20907 darkorange: [ 1, 140 / 255, 0 ],
-1 20908 darkorchid: [ 153 / 255, 50 / 255, 204 / 255 ],
-1 20909 darkred: [ 139 / 255, 0, 0 ],
-1 20910 darksalmon: [ 233 / 255, 150 / 255, 122 / 255 ],
-1 20911 darkseagreen: [ 143 / 255, 188 / 255, 143 / 255 ],
-1 20912 darkslateblue: [ 72 / 255, 61 / 255, 139 / 255 ],
-1 20913 darkslategray: [ 47 / 255, 79 / 255, 79 / 255 ],
-1 20914 darkslategrey: [ 47 / 255, 79 / 255, 79 / 255 ],
-1 20915 darkturquoise: [ 0, 206 / 255, 209 / 255 ],
-1 20916 darkviolet: [ 148 / 255, 0, 211 / 255 ],
-1 20917 deeppink: [ 1, 20 / 255, 147 / 255 ],
-1 20918 deepskyblue: [ 0, 191 / 255, 1 ],
-1 20919 dimgray: [ 105 / 255, 105 / 255, 105 / 255 ],
-1 20920 dimgrey: [ 105 / 255, 105 / 255, 105 / 255 ],
-1 20921 dodgerblue: [ 30 / 255, 144 / 255, 1 ],
-1 20922 firebrick: [ 178 / 255, 34 / 255, 34 / 255 ],
-1 20923 floralwhite: [ 1, 250 / 255, 240 / 255 ],
-1 20924 forestgreen: [ 34 / 255, 139 / 255, 34 / 255 ],
-1 20925 fuchsia: [ 1, 0, 1 ],
-1 20926 gainsboro: [ 220 / 255, 220 / 255, 220 / 255 ],
-1 20927 ghostwhite: [ 248 / 255, 248 / 255, 1 ],
-1 20928 gold: [ 1, 215 / 255, 0 ],
-1 20929 goldenrod: [ 218 / 255, 165 / 255, 32 / 255 ],
-1 20930 gray: [ 128 / 255, 128 / 255, 128 / 255 ],
-1 20931 green: [ 0, 128 / 255, 0 ],
-1 20932 greenyellow: [ 173 / 255, 1, 47 / 255 ],
-1 20933 grey: [ 128 / 255, 128 / 255, 128 / 255 ],
-1 20934 honeydew: [ 240 / 255, 1, 240 / 255 ],
-1 20935 hotpink: [ 1, 105 / 255, 180 / 255 ],
-1 20936 indianred: [ 205 / 255, 92 / 255, 92 / 255 ],
-1 20937 indigo: [ 75 / 255, 0, 130 / 255 ],
-1 20938 ivory: [ 1, 1, 240 / 255 ],
-1 20939 khaki: [ 240 / 255, 230 / 255, 140 / 255 ],
-1 20940 lavender: [ 230 / 255, 230 / 255, 250 / 255 ],
-1 20941 lavenderblush: [ 1, 240 / 255, 245 / 255 ],
-1 20942 lawngreen: [ 124 / 255, 252 / 255, 0 ],
-1 20943 lemonchiffon: [ 1, 250 / 255, 205 / 255 ],
-1 20944 lightblue: [ 173 / 255, 216 / 255, 230 / 255 ],
-1 20945 lightcoral: [ 240 / 255, 128 / 255, 128 / 255 ],
-1 20946 lightcyan: [ 224 / 255, 1, 1 ],
-1 20947 lightgoldenrodyellow: [ 250 / 255, 250 / 255, 210 / 255 ],
-1 20948 lightgray: [ 211 / 255, 211 / 255, 211 / 255 ],
-1 20949 lightgreen: [ 144 / 255, 238 / 255, 144 / 255 ],
-1 20950 lightgrey: [ 211 / 255, 211 / 255, 211 / 255 ],
-1 20951 lightpink: [ 1, 182 / 255, 193 / 255 ],
-1 20952 lightsalmon: [ 1, 160 / 255, 122 / 255 ],
-1 20953 lightseagreen: [ 32 / 255, 178 / 255, 170 / 255 ],
-1 20954 lightskyblue: [ 135 / 255, 206 / 255, 250 / 255 ],
-1 20955 lightslategray: [ 119 / 255, 136 / 255, 153 / 255 ],
-1 20956 lightslategrey: [ 119 / 255, 136 / 255, 153 / 255 ],
-1 20957 lightsteelblue: [ 176 / 255, 196 / 255, 222 / 255 ],
-1 20958 lightyellow: [ 1, 1, 224 / 255 ],
-1 20959 lime: [ 0, 1, 0 ],
-1 20960 limegreen: [ 50 / 255, 205 / 255, 50 / 255 ],
-1 20961 linen: [ 250 / 255, 240 / 255, 230 / 255 ],
-1 20962 magenta: [ 1, 0, 1 ],
-1 20963 maroon: [ 128 / 255, 0, 0 ],
-1 20964 mediumaquamarine: [ 102 / 255, 205 / 255, 170 / 255 ],
-1 20965 mediumblue: [ 0, 0, 205 / 255 ],
-1 20966 mediumorchid: [ 186 / 255, 85 / 255, 211 / 255 ],
-1 20967 mediumpurple: [ 147 / 255, 112 / 255, 219 / 255 ],
-1 20968 mediumseagreen: [ 60 / 255, 179 / 255, 113 / 255 ],
-1 20969 mediumslateblue: [ 123 / 255, 104 / 255, 238 / 255 ],
-1 20970 mediumspringgreen: [ 0, 250 / 255, 154 / 255 ],
-1 20971 mediumturquoise: [ 72 / 255, 209 / 255, 204 / 255 ],
-1 20972 mediumvioletred: [ 199 / 255, 21 / 255, 133 / 255 ],
-1 20973 midnightblue: [ 25 / 255, 25 / 255, 112 / 255 ],
-1 20974 mintcream: [ 245 / 255, 1, 250 / 255 ],
-1 20975 mistyrose: [ 1, 228 / 255, 225 / 255 ],
-1 20976 moccasin: [ 1, 228 / 255, 181 / 255 ],
-1 20977 navajowhite: [ 1, 222 / 255, 173 / 255 ],
-1 20978 navy: [ 0, 0, 128 / 255 ],
-1 20979 oldlace: [ 253 / 255, 245 / 255, 230 / 255 ],
-1 20980 olive: [ 128 / 255, 128 / 255, 0 ],
-1 20981 olivedrab: [ 107 / 255, 142 / 255, 35 / 255 ],
-1 20982 orange: [ 1, 165 / 255, 0 ],
-1 20983 orangered: [ 1, 69 / 255, 0 ],
-1 20984 orchid: [ 218 / 255, 112 / 255, 214 / 255 ],
-1 20985 palegoldenrod: [ 238 / 255, 232 / 255, 170 / 255 ],
-1 20986 palegreen: [ 152 / 255, 251 / 255, 152 / 255 ],
-1 20987 paleturquoise: [ 175 / 255, 238 / 255, 238 / 255 ],
-1 20988 palevioletred: [ 219 / 255, 112 / 255, 147 / 255 ],
-1 20989 papayawhip: [ 1, 239 / 255, 213 / 255 ],
-1 20990 peachpuff: [ 1, 218 / 255, 185 / 255 ],
-1 20991 peru: [ 205 / 255, 133 / 255, 63 / 255 ],
-1 20992 pink: [ 1, 192 / 255, 203 / 255 ],
-1 20993 plum: [ 221 / 255, 160 / 255, 221 / 255 ],
-1 20994 powderblue: [ 176 / 255, 224 / 255, 230 / 255 ],
-1 20995 purple: [ 128 / 255, 0, 128 / 255 ],
-1 20996 rebeccapurple: [ 102 / 255, 51 / 255, 153 / 255 ],
-1 20997 red: [ 1, 0, 0 ],
-1 20998 rosybrown: [ 188 / 255, 143 / 255, 143 / 255 ],
-1 20999 royalblue: [ 65 / 255, 105 / 255, 225 / 255 ],
-1 21000 saddlebrown: [ 139 / 255, 69 / 255, 19 / 255 ],
-1 21001 salmon: [ 250 / 255, 128 / 255, 114 / 255 ],
-1 21002 sandybrown: [ 244 / 255, 164 / 255, 96 / 255 ],
-1 21003 seagreen: [ 46 / 255, 139 / 255, 87 / 255 ],
-1 21004 seashell: [ 1, 245 / 255, 238 / 255 ],
-1 21005 sienna: [ 160 / 255, 82 / 255, 45 / 255 ],
-1 21006 silver: [ 192 / 255, 192 / 255, 192 / 255 ],
-1 21007 skyblue: [ 135 / 255, 206 / 255, 235 / 255 ],
-1 21008 slateblue: [ 106 / 255, 90 / 255, 205 / 255 ],
-1 21009 slategray: [ 112 / 255, 128 / 255, 144 / 255 ],
-1 21010 slategrey: [ 112 / 255, 128 / 255, 144 / 255 ],
-1 21011 snow: [ 1, 250 / 255, 250 / 255 ],
-1 21012 springgreen: [ 0, 1, 127 / 255 ],
-1 21013 steelblue: [ 70 / 255, 130 / 255, 180 / 255 ],
-1 21014 tan: [ 210 / 255, 180 / 255, 140 / 255 ],
-1 21015 teal: [ 0, 128 / 255, 128 / 255 ],
-1 21016 thistle: [ 216 / 255, 191 / 255, 216 / 255 ],
-1 21017 tomato: [ 1, 99 / 255, 71 / 255 ],
-1 21018 turquoise: [ 64 / 255, 224 / 255, 208 / 255 ],
-1 21019 violet: [ 238 / 255, 130 / 255, 238 / 255 ],
-1 21020 wheat: [ 245 / 255, 222 / 255, 179 / 255 ],
-1 21021 white: [ 1, 1, 1 ],
-1 21022 whitesmoke: [ 245 / 255, 245 / 255, 245 / 255 ],
-1 21023 yellow: [ 1, 1, 0 ],
-1 21024 yellowgreen: [ 154 / 255, 205 / 255, 50 / 255 ]
-1 21025 };
-1 21026 var coordGrammar = Array(3).fill('<percentage> | <number>[0, 255]');
-1 21027 var coordGrammarNumber = Array(3).fill('<number>[0, 255]');
-1 21028 var sRGB = new RGBColorSpace({
-1 21029 id: 'srgb',
-1 21030 name: 'sRGB',
-1 21031 base: sRGBLinear,
-1 21032 fromBase: function fromBase(rgb) {
-1 21033 return rgb.map(function(val) {
-1 21034 var sign = val < 0 ? -1 : 1;
-1 21035 var abs = val * sign;
-1 21036 if (abs > .0031308) {
-1 21037 return sign * (1.055 * Math.pow(abs, 1 / 2.4) - .055);
-1 21038 }
-1 21039 return 12.92 * val;
-1 21040 });
-1 21041 },
-1 21042 toBase: function toBase(rgb) {
-1 21043 return rgb.map(function(val) {
-1 21044 var sign = val < 0 ? -1 : 1;
-1 21045 var abs = val * sign;
-1 21046 if (abs < .04045) {
-1 21047 return val / 12.92;
-1 21048 }
-1 21049 return sign * Math.pow((abs + .055) / 1.055, 2.4);
-1 21050 });
-1 21051 },
-1 21052 formats: {
-1 21053 rgb: {
-1 21054 coords: coordGrammar
-1 21055 },
-1 21056 rgb_number: {
-1 21057 name: 'rgb',
-1 21058 commas: true,
-1 21059 coords: coordGrammarNumber,
-1 21060 noAlpha: true
-1 21061 },
-1 21062 color: {},
-1 21063 rgba: {
-1 21064 coords: coordGrammar,
-1 21065 commas: true,
-1 21066 lastAlpha: true
-1 21067 },
-1 21068 rgba_number: {
-1 21069 name: 'rgba',
-1 21070 commas: true,
-1 21071 coords: coordGrammarNumber
-1 21072 },
-1 21073 hex: {
-1 21074 type: 'custom',
-1 21075 toGamut: true,
-1 21076 test: function test(str) {
-1 21077 return /^#([a-f0-9]{3,4}){1,2}$/i.test(str);
-1 21078 },
-1 21079 parse: function parse(str) {
-1 21080 if (str.length <= 5) {
-1 21081 str = str.replace(/[a-f0-9]/gi, '$&$&');
-1 21082 }
-1 21083 var rgba = [];
-1 21084 str.replace(/[a-f0-9]{2}/gi, function(component) {
-1 21085 rgba.push(parseInt(component, 16) / 255);
-1 21086 });
-1 21087 return {
-1 21088 spaceId: 'srgb',
-1 21089 coords: rgba.slice(0, 3),
-1 21090 alpha: rgba.slice(3)[0]
-1 21091 };
-1 21092 },
-1 21093 serialize: function serialize(coords, alpha) {
-1 21094 var _ref52 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}, _ref52$collapse = _ref52.collapse, collapse = _ref52$collapse === void 0 ? true : _ref52$collapse;
-1 21095 if (alpha < 1) {
-1 21096 coords.push(alpha);
-1 21097 }
-1 21098 coords = coords.map(function(c4) {
-1 21099 return Math.round(c4 * 255);
-1 21100 });
-1 21101 var collapsible = collapse && coords.every(function(c4) {
-1 21102 return c4 % 17 === 0;
-1 21103 });
-1 21104 var hex = coords.map(function(c4) {
-1 21105 if (collapsible) {
-1 21106 return (c4 / 17).toString(16);
-1 21107 }
-1 21108 return c4.toString(16).padStart(2, '0');
-1 21109 }).join('');
-1 21110 return '#' + hex;
-1 21111 }
-1 21112 },
-1 21113 keyword: {
-1 21114 type: 'custom',
-1 21115 test: function test(str) {
-1 21116 return /^[a-z]+$/i.test(str);
-1 21117 },
-1 21118 parse: function parse(str) {
-1 21119 str = str.toLowerCase();
-1 21120 var ret = {
-1 21121 spaceId: 'srgb',
-1 21122 coords: null,
-1 21123 alpha: 1
-1 21124 };
-1 21125 if (str === 'transparent') {
-1 21126 ret.coords = KEYWORDS.black;
-1 21127 ret.alpha = 0;
-1 21128 } else {
-1 21129 ret.coords = KEYWORDS[str];
-1 21130 }
-1 21131 if (ret.coords) {
-1 21132 return ret;
-1 21133 }
-1 21134 }
-1 21135 }
-1 21136 }
-1 21137 });
-1 21138 var P3 = new RGBColorSpace({
-1 21139 id: 'p3',
-1 21140 name: 'P3',
-1 21141 base: P3Linear,
-1 21142 fromBase: sRGB.fromBase,
-1 21143 toBase: sRGB.toBase,
-1 21144 formats: {
-1 21145 color: {
-1 21146 id: 'display-p3'
-1 21147 }
-1 21148 }
-1 21149 });
-1 21150 defaults.display_space = sRGB;
-1 21151 if (typeof CSS !== 'undefined' && CSS.supports) {
-1 21152 for (var _i15 = 0, _arr3 = [ lab, REC2020, P3 ]; _i15 < _arr3.length; _i15++) {
-1 21153 var space = _arr3[_i15];
-1 21154 var coords = space.getMinCoords();
-1 21155 var color = {
-1 21156 space: space,
-1 21157 coords: coords,
-1 21158 alpha: 1
-1 21159 };
-1 21160 var str = serialize(color);
-1 21161 if (CSS.supports('color', str)) {
-1 21162 defaults.display_space = space;
-1 21163 break;
-1 21164 }
17753 21165 }
17754 21166 }
17755 -1 var is_visual_content_default = isVisualContent;
17756 -1 var hiddenTextElms = [ 'head', 'title', 'template', 'script', 'style', 'iframe', 'object', 'video', 'audio', 'noscript' ];
17757 -1 function hasChildTextNodes(elm) {
17758 -1 if (hiddenTextElms.includes(elm.props.nodeName)) {
17759 -1 return false;
-1 21167 function _display(color) {
-1 21168 var _ref53 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
-1 21169 var _ref53$space = _ref53.space, space = _ref53$space === void 0 ? defaults.display_space : _ref53$space, options = _objectWithoutProperties(_ref53, _excluded10);
-1 21170 var ret = serialize(color, options);
-1 21171 if (typeof CSS === 'undefined' || CSS.supports('color', ret) || !defaults.display_space) {
-1 21172 ret = new String(ret);
-1 21173 ret.color = color;
-1 21174 } else {
-1 21175 var fallbackColor = to(color, space);
-1 21176 ret = new String(serialize(fallbackColor, options));
-1 21177 ret.color = fallbackColor;
17760 21178 }
17761 -1 return elm.children.some(function(_ref35) {
17762 -1 var props = _ref35.props;
17763 -1 return props.nodeType === 3 && props.nodeValue.trim();
17764 -1 });
-1 21179 return ret;
17765 21180 }
17766 -1 function hasContentVirtual(elm, noRecursion, ignoreAria) {
17767 -1 return hasChildTextNodes(elm) || is_visual_content_default(elm.actualNode) || !ignoreAria && !!label_virtual_default(elm) || !noRecursion && elm.children.some(function(child) {
17768 -1 return child.actualNode.nodeType === 1 && hasContentVirtual(child);
-1 21181 function distance(color1, color2) {
-1 21182 var space = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'lab';
-1 21183 space = ColorSpace.get(space);
-1 21184 var coords1 = space.from(color1);
-1 21185 var coords2 = space.from(color2);
-1 21186 return Math.sqrt(coords1.reduce(function(acc, c12, i) {
-1 21187 var c22 = coords2[i];
-1 21188 if (isNaN(c12) || isNaN(c22)) {
-1 21189 return acc;
-1 21190 }
-1 21191 return acc + Math.pow(c22 - c12, 2);
-1 21192 }, 0));
-1 21193 }
-1 21194 function equals(color1, color2) {
-1 21195 color1 = getColor(color1);
-1 21196 color2 = getColor(color2);
-1 21197 return color1.space === color2.space && color1.alpha === color2.alpha && color1.coords.every(function(c4, i) {
-1 21198 return c4 === color2.coords[i];
17769 21199 });
17770 21200 }
17771 -1 var has_content_virtual_default = hasContentVirtual;
17772 -1 function hasContent(elm, noRecursion, ignoreAria) {
17773 -1 elm = get_node_from_tree_default(elm);
17774 -1 return has_content_virtual_default(elm, noRecursion, ignoreAria);
-1 21201 function getLuminance(color) {
-1 21202 return get(color, [ XYZ_D65, 'y' ]);
17775 21203 }
17776 -1 var has_content_default = hasContent;
17777 -1 function _hasLangText(virtualNode) {
17778 -1 if (typeof virtualNode.children === 'undefined' || hasChildTextNodes(virtualNode)) {
17779 -1 return true;
17780 -1 }
17781 -1 if (virtualNode.props.nodeType === 1 && is_visual_content_default(virtualNode)) {
17782 -1 return !!axe.commons.text.accessibleTextVirtual(virtualNode);
17783 -1 }
17784 -1 return virtualNode.children.some(function(child) {
17785 -1 return !child.attr('lang') && _hasLangText(child) && !_isHiddenForEveryone(child);
17786 -1 });
-1 21204 function setLuminance(color, value) {
-1 21205 set(color, [ XYZ_D65, 'y' ], value);
17787 21206 }
17788 -1 function insertedIntoFocusOrder(el) {
17789 -1 var tabIndex = parseInt(el.getAttribute('tabindex'), 10);
17790 -1 return tabIndex > -1 && _isFocusable(el) && !is_natively_focusable_default(el);
-1 21207 function register$2(Color3) {
-1 21208 Object.defineProperty(Color3.prototype, 'luminance', {
-1 21209 get: function get() {
-1 21210 return getLuminance(this);
-1 21211 },
-1 21212 set: function set(value) {
-1 21213 setLuminance(this, value);
-1 21214 }
-1 21215 });
17791 21216 }
17792 -1 var inserted_into_focus_order_default = insertedIntoFocusOrder;
17793 -1 function isHiddenWithCSS(node, descendentVisibilityValue) {
17794 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
17795 -1 var el = node instanceof window.Node ? node : vNode === null || vNode === void 0 ? void 0 : vNode.actualNode;
17796 -1 if (!vNode) {
17797 -1 return _isHiddenWithCSS(el, descendentVisibilityValue);
-1 21217 var luminance = Object.freeze({
-1 21218 __proto__: null,
-1 21219 getLuminance: getLuminance,
-1 21220 setLuminance: setLuminance,
-1 21221 register: register$2
-1 21222 });
-1 21223 function contrastWCAG21(color1, color2) {
-1 21224 color1 = getColor(color1);
-1 21225 color2 = getColor(color2);
-1 21226 var Y1 = Math.max(getLuminance(color1), 0);
-1 21227 var Y2 = Math.max(getLuminance(color2), 0);
-1 21228 if (Y2 > Y1) {
-1 21229 var _ref54 = [ Y2, Y1 ];
-1 21230 Y1 = _ref54[0];
-1 21231 Y2 = _ref54[1];
-1 21232 }
-1 21233 return (Y1 + .05) / (Y2 + .05);
-1 21234 }
-1 21235 var normBG = .56;
-1 21236 var normTXT = .57;
-1 21237 var revTXT = .62;
-1 21238 var revBG = .65;
-1 21239 var blkThrs = .022;
-1 21240 var blkClmp = 1.414;
-1 21241 var loClip = .1;
-1 21242 var deltaYmin = 5e-4;
-1 21243 var scaleBoW = 1.14;
-1 21244 var loBoWoffset = .027;
-1 21245 var scaleWoB = 1.14;
-1 21246 function fclamp(Y) {
-1 21247 if (Y >= blkThrs) {
-1 21248 return Y;
-1 21249 }
-1 21250 return Y + Math.pow(blkThrs - Y, blkClmp);
-1 21251 }
-1 21252 function linearize(val) {
-1 21253 var sign = val < 0 ? -1 : 1;
-1 21254 var abs = Math.abs(val);
-1 21255 return sign * Math.pow(abs, 2.4);
-1 21256 }
-1 21257 function contrastAPCA(background, foreground) {
-1 21258 foreground = getColor(foreground);
-1 21259 background = getColor(background);
-1 21260 var S;
-1 21261 var C;
-1 21262 var Sapc;
-1 21263 var R, G, B;
-1 21264 foreground = to(foreground, 'srgb');
-1 21265 var _foreground$coords = _slicedToArray(foreground.coords, 3);
-1 21266 R = _foreground$coords[0];
-1 21267 G = _foreground$coords[1];
-1 21268 B = _foreground$coords[2];
-1 21269 var lumTxt = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175;
-1 21270 background = to(background, 'srgb');
-1 21271 var _background$coords = _slicedToArray(background.coords, 3);
-1 21272 R = _background$coords[0];
-1 21273 G = _background$coords[1];
-1 21274 B = _background$coords[2];
-1 21275 var lumBg = linearize(R) * .2126729 + linearize(G) * .7151522 + linearize(B) * .072175;
-1 21276 var Ytxt = fclamp(lumTxt);
-1 21277 var Ybg = fclamp(lumBg);
-1 21278 var BoW = Ybg > Ytxt;
-1 21279 if (Math.abs(Ybg - Ytxt) < deltaYmin) {
-1 21280 C = 0;
-1 21281 } else {
-1 21282 if (BoW) {
-1 21283 S = Math.pow(Ybg, normBG) - Math.pow(Ytxt, normTXT);
-1 21284 C = S * scaleBoW;
-1 21285 } else {
-1 21286 S = Math.pow(Ybg, revBG) - Math.pow(Ytxt, revTXT);
-1 21287 C = S * scaleWoB;
-1 21288 }
-1 21289 }
-1 21290 if (Math.abs(C) < loClip) {
-1 21291 Sapc = 0;
-1 21292 } else if (C > 0) {
-1 21293 Sapc = C - loBoWoffset;
-1 21294 } else {
-1 21295 Sapc = C + loBoWoffset;
-1 21296 }
-1 21297 return Sapc * 100;
-1 21298 }
-1 21299 function contrastMichelson(color1, color2) {
-1 21300 color1 = getColor(color1);
-1 21301 color2 = getColor(color2);
-1 21302 var Y1 = Math.max(getLuminance(color1), 0);
-1 21303 var Y2 = Math.max(getLuminance(color2), 0);
-1 21304 if (Y2 > Y1) {
-1 21305 var _ref55 = [ Y2, Y1 ];
-1 21306 Y1 = _ref55[0];
-1 21307 Y2 = _ref55[1];
-1 21308 }
-1 21309 var denom = Y1 + Y2;
-1 21310 return denom === 0 ? 0 : (Y1 - Y2) / denom;
-1 21311 }
-1 21312 var max = 5e4;
-1 21313 function contrastWeber(color1, color2) {
-1 21314 color1 = getColor(color1);
-1 21315 color2 = getColor(color2);
-1 21316 var Y1 = Math.max(getLuminance(color1), 0);
-1 21317 var Y2 = Math.max(getLuminance(color2), 0);
-1 21318 if (Y2 > Y1) {
-1 21319 var _ref56 = [ Y2, Y1 ];
-1 21320 Y1 = _ref56[0];
-1 21321 Y2 = _ref56[1];
-1 21322 }
-1 21323 return Y2 === 0 ? max : (Y1 - Y2) / Y2;
-1 21324 }
-1 21325 function contrastLstar(color1, color2) {
-1 21326 color1 = getColor(color1);
-1 21327 color2 = getColor(color2);
-1 21328 var L1 = get(color1, [ lab, 'l' ]);
-1 21329 var L2 = get(color2, [ lab, 'l' ]);
-1 21330 return Math.abs(L1 - L2);
-1 21331 }
-1 21332 var \u03b5$1 = 216 / 24389;
-1 21333 var \u03b53 = 24 / 116;
-1 21334 var \u03ba = 24389 / 27;
-1 21335 var white = WHITES.D65;
-1 21336 var lab_d65 = new ColorSpace({
-1 21337 id: 'lab-d65',
-1 21338 name: 'Lab D65',
-1 21339 coords: {
-1 21340 l: {
-1 21341 refRange: [ 0, 100 ],
-1 21342 name: 'L'
-1 21343 },
-1 21344 a: {
-1 21345 refRange: [ -125, 125 ]
-1 21346 },
-1 21347 b: {
-1 21348 refRange: [ -125, 125 ]
-1 21349 }
-1 21350 },
-1 21351 white: white,
-1 21352 base: XYZ_D65,
-1 21353 fromBase: function fromBase(XYZ) {
-1 21354 var xyz = XYZ.map(function(value, i) {
-1 21355 return value / white[i];
-1 21356 });
-1 21357 var f = xyz.map(function(value) {
-1 21358 return value > \u03b5$1 ? Math.cbrt(value) : (\u03ba * value + 16) / 116;
-1 21359 });
-1 21360 return [ 116 * f[1] - 16, 500 * (f[0] - f[1]), 200 * (f[1] - f[2]) ];
-1 21361 },
-1 21362 toBase: function toBase(Lab) {
-1 21363 var f = [];
-1 21364 f[1] = (Lab[0] + 16) / 116;
-1 21365 f[0] = Lab[1] / 500 + f[1];
-1 21366 f[2] = f[1] - Lab[2] / 200;
-1 21367 var xyz = [ f[0] > \u03b53 ? Math.pow(f[0], 3) : (116 * f[0] - 16) / \u03ba, Lab[0] > 8 ? Math.pow((Lab[0] + 16) / 116, 3) : Lab[0] / \u03ba, f[2] > \u03b53 ? Math.pow(f[2], 3) : (116 * f[2] - 16) / \u03ba ];
-1 21368 return xyz.map(function(value, i) {
-1 21369 return value * white[i];
-1 21370 });
-1 21371 },
-1 21372 formats: {
-1 21373 'lab-d65': {
-1 21374 coords: [ '<number> | <percentage>', '<number>', '<number>' ]
-1 21375 }
17798 21376 }
17799 -1 if (vNode._isHiddenWithCSS === void 0) {
17800 -1 vNode._isHiddenWithCSS = _isHiddenWithCSS(el, descendentVisibilityValue);
-1 21377 });
-1 21378 var phi = Math.pow(5, .5) * .5 + .5;
-1 21379 function contrastDeltaPhi(color1, color2) {
-1 21380 color1 = getColor(color1);
-1 21381 color2 = getColor(color2);
-1 21382 var Lstr1 = get(color1, [ lab_d65, 'l' ]);
-1 21383 var Lstr2 = get(color2, [ lab_d65, 'l' ]);
-1 21384 var deltaPhiStar = Math.abs(Math.pow(Lstr1, phi) - Math.pow(Lstr2, phi));
-1 21385 var contrast2 = Math.pow(deltaPhiStar, 1 / phi) * Math.SQRT2 - 40;
-1 21386 return contrast2 < 7.5 ? 0 : contrast2;
-1 21387 }
-1 21388 var contrastMethods = Object.freeze({
-1 21389 __proto__: null,
-1 21390 contrastWCAG21: contrastWCAG21,
-1 21391 contrastAPCA: contrastAPCA,
-1 21392 contrastMichelson: contrastMichelson,
-1 21393 contrastWeber: contrastWeber,
-1 21394 contrastLstar: contrastLstar,
-1 21395 contrastDeltaPhi: contrastDeltaPhi
-1 21396 });
-1 21397 function contrast(background, foreground) {
-1 21398 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 21399 if (isString(o)) {
-1 21400 o = {
-1 21401 algorithm: o
-1 21402 };
17801 21403 }
17802 -1 return vNode._isHiddenWithCSS;
17803 -1 }
17804 -1 function _isHiddenWithCSS(el, descendentVisibilityValue) {
17805 -1 if (el.nodeType === 9) {
17806 -1 return false;
-1 21404 var _o = o, algorithm = _o.algorithm, rest = _objectWithoutProperties(_o, _excluded11);
-1 21405 if (!algorithm) {
-1 21406 var algorithms = Object.keys(contrastMethods).map(function(a2) {
-1 21407 return a2.replace(/^contrast/, '');
-1 21408 }).join(', ');
-1 21409 throw new TypeError('contrast() function needs a contrast algorithm. Please specify one of: '.concat(algorithms));
17807 21410 }
17808 -1 if (el.nodeType === 11) {
17809 -1 el = el.host;
-1 21411 background = getColor(background);
-1 21412 foreground = getColor(foreground);
-1 21413 for (var a2 in contrastMethods) {
-1 21414 if ('contrast' + algorithm.toLowerCase() === a2.toLowerCase()) {
-1 21415 return contrastMethods[a2](background, foreground, rest);
-1 21416 }
17810 21417 }
17811 -1 if ([ 'STYLE', 'SCRIPT' ].includes(el.nodeName.toUpperCase())) {
17812 -1 return false;
-1 21418 throw new TypeError('Unknown contrast algorithm: '.concat(algorithm));
-1 21419 }
-1 21420 function uv(color) {
-1 21421 var _getAll = getAll(color, XYZ_D65), _getAll2 = _slicedToArray(_getAll, 3), X = _getAll2[0], Y = _getAll2[1], Z = _getAll2[2];
-1 21422 var denom = X + 15 * Y + 3 * Z;
-1 21423 return [ 4 * X / denom, 9 * Y / denom ];
-1 21424 }
-1 21425 function xy(color) {
-1 21426 var _getAll3 = getAll(color, XYZ_D65), _getAll4 = _slicedToArray(_getAll3, 3), X = _getAll4[0], Y = _getAll4[1], Z = _getAll4[2];
-1 21427 var sum = X + Y + Z;
-1 21428 return [ X / sum, Y / sum ];
-1 21429 }
-1 21430 function register$1(Color3) {
-1 21431 Object.defineProperty(Color3.prototype, 'uv', {
-1 21432 get: function get() {
-1 21433 return uv(this);
-1 21434 }
-1 21435 });
-1 21436 Object.defineProperty(Color3.prototype, 'xy', {
-1 21437 get: function get() {
-1 21438 return xy(this);
-1 21439 }
-1 21440 });
-1 21441 }
-1 21442 var chromaticity = Object.freeze({
-1 21443 __proto__: null,
-1 21444 uv: uv,
-1 21445 xy: xy,
-1 21446 register: register$1
-1 21447 });
-1 21448 function deltaE76(color, sample) {
-1 21449 return distance(color, sample, 'lab');
-1 21450 }
-1 21451 var \u03c0 = Math.PI;
-1 21452 var d2r = \u03c0 / 180;
-1 21453 function deltaECMC(color, sample) {
-1 21454 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;
-1 21455 var _lab$from5 = lab.from(color), _lab$from6 = _slicedToArray(_lab$from5, 3), L1 = _lab$from6[0], a1 = _lab$from6[1], b1 = _lab$from6[2];
-1 21456 var _lch$from = lch.from(lab, [ L1, a1, b1 ]), _lch$from2 = _slicedToArray(_lch$from, 3), C1 = _lch$from2[1], H1 = _lch$from2[2];
-1 21457 var _lab$from7 = lab.from(sample), _lab$from8 = _slicedToArray(_lab$from7, 3), L2 = _lab$from8[0], a2 = _lab$from8[1], b2 = _lab$from8[2];
-1 21458 var C2 = lch.from(lab, [ L2, a2, b2 ])[1];
-1 21459 if (C1 < 0) {
-1 21460 C1 = 0;
-1 21461 }
-1 21462 if (C2 < 0) {
-1 21463 C2 = 0;
-1 21464 }
-1 21465 var \u0394L = L1 - L2;
-1 21466 var \u0394C = C1 - C2;
-1 21467 var \u0394a = a1 - a2;
-1 21468 var \u0394b = b1 - b2;
-1 21469 var H2 = Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2) - Math.pow(\u0394C, 2);
-1 21470 var SL = .511;
-1 21471 if (L1 >= 16) {
-1 21472 SL = .040975 * L1 / (1 + .01765 * L1);
-1 21473 }
-1 21474 var SC = .0638 * C1 / (1 + .0131 * C1) + .638;
-1 21475 var T;
-1 21476 if (Number.isNaN(H1)) {
-1 21477 H1 = 0;
-1 21478 }
-1 21479 if (H1 >= 164 && H1 <= 345) {
-1 21480 T = .56 + Math.abs(.2 * Math.cos((H1 + 168) * d2r));
-1 21481 } else {
-1 21482 T = .36 + Math.abs(.4 * Math.cos((H1 + 35) * d2r));
-1 21483 }
-1 21484 var C4 = Math.pow(C1, 4);
-1 21485 var F = Math.sqrt(C4 / (C4 + 1900));
-1 21486 var SH = SC * (F * T + 1 - F);
-1 21487 var dE = Math.pow(\u0394L / (l * SL), 2);
-1 21488 dE += Math.pow(\u0394C / (c4 * SC), 2);
-1 21489 dE += H2 / Math.pow(SH, 2);
-1 21490 return Math.sqrt(dE);
-1 21491 }
-1 21492 var Yw$1 = 203;
-1 21493 var XYZ_Abs_D65 = new ColorSpace({
-1 21494 id: 'xyz-abs-d65',
-1 21495 name: 'Absolute XYZ D65',
-1 21496 coords: {
-1 21497 x: {
-1 21498 refRange: [ 0, 9504.7 ],
-1 21499 name: 'Xa'
-1 21500 },
-1 21501 y: {
-1 21502 refRange: [ 0, 1e4 ],
-1 21503 name: 'Ya'
-1 21504 },
-1 21505 z: {
-1 21506 refRange: [ 0, 10888.3 ],
-1 21507 name: 'Za'
-1 21508 }
-1 21509 },
-1 21510 base: XYZ_D65,
-1 21511 fromBase: function fromBase(XYZ) {
-1 21512 return XYZ.map(function(v) {
-1 21513 return Math.max(v * Yw$1, 0);
-1 21514 });
-1 21515 },
-1 21516 toBase: function toBase(AbsXYZ) {
-1 21517 return AbsXYZ.map(function(v) {
-1 21518 return Math.max(v / Yw$1, 0);
-1 21519 });
17813 21520 }
17814 -1 var style = window.getComputedStyle(el, null);
17815 -1 if (!style) {
17816 -1 throw new Error('Style does not exist for the given element.');
-1 21521 });
-1 21522 var b$1 = 1.15;
-1 21523 var g = .66;
-1 21524 var n$1 = 2610 / Math.pow(2, 14);
-1 21525 var ninv$1 = Math.pow(2, 14) / 2610;
-1 21526 var c1$2 = 3424 / Math.pow(2, 12);
-1 21527 var c2$2 = 2413 / Math.pow(2, 7);
-1 21528 var c3$2 = 2392 / Math.pow(2, 7);
-1 21529 var p = 1.7 * 2523 / Math.pow(2, 5);
-1 21530 var pinv = Math.pow(2, 5) / (1.7 * 2523);
-1 21531 var d = -.56;
-1 21532 var d0 = 16295499532821565e-27;
-1 21533 var XYZtoCone_M = [ [ .41478972, .579999, .014648 ], [ -.20151, 1.120649, .0531008 ], [ -.0166008, .2648, .6684799 ] ];
-1 21534 var ConetoXYZ_M = [ [ 1.9242264357876067, -1.0047923125953657, .037651404030618 ], [ .35031676209499907, .7264811939316552, -.06538442294808501 ], [ -.09098281098284752, -.3127282905230739, 1.5227665613052603 ] ];
-1 21535 var ConetoIab_M = [ [ .5, .5, 0 ], [ 3.524, -4.066708, .542708 ], [ .199076, 1.096799, -1.295875 ] ];
-1 21536 var IabtoCone_M = [ [ 1, .1386050432715393, .05804731615611886 ], [ .9999999999999999, -.1386050432715393, -.05804731615611886 ], [ .9999999999999998, -.09601924202631895, -.8118918960560388 ] ];
-1 21537 var Jzazbz = new ColorSpace({
-1 21538 id: 'jzazbz',
-1 21539 name: 'Jzazbz',
-1 21540 coords: {
-1 21541 jz: {
-1 21542 refRange: [ 0, 1 ],
-1 21543 name: 'Jz'
-1 21544 },
-1 21545 az: {
-1 21546 refRange: [ -.5, .5 ]
-1 21547 },
-1 21548 bz: {
-1 21549 refRange: [ -.5, .5 ]
-1 21550 }
-1 21551 },
-1 21552 base: XYZ_Abs_D65,
-1 21553 fromBase: function fromBase(XYZ) {
-1 21554 var _XYZ = _slicedToArray(XYZ, 3), Xa = _XYZ[0], Ya = _XYZ[1], Za = _XYZ[2];
-1 21555 var Xm = b$1 * Xa - (b$1 - 1) * Za;
-1 21556 var Ym = g * Ya - (g - 1) * Xa;
-1 21557 var LMS = multiplyMatrices(XYZtoCone_M, [ Xm, Ym, Za ]);
-1 21558 var PQLMS = LMS.map(function(val) {
-1 21559 var num = c1$2 + c2$2 * Math.pow(val / 1e4, n$1);
-1 21560 var denom = 1 + c3$2 * Math.pow(val / 1e4, n$1);
-1 21561 return Math.pow(num / denom, p);
-1 21562 });
-1 21563 var _multiplyMatrices = multiplyMatrices(ConetoIab_M, PQLMS), _multiplyMatrices2 = _slicedToArray(_multiplyMatrices, 3), Iz = _multiplyMatrices2[0], az = _multiplyMatrices2[1], bz = _multiplyMatrices2[2];
-1 21564 var Jz = (1 + d) * Iz / (1 + d * Iz) - d0;
-1 21565 return [ Jz, az, bz ];
-1 21566 },
-1 21567 toBase: function toBase(Jzazbz2) {
-1 21568 var _Jzazbz = _slicedToArray(Jzazbz2, 3), Jz = _Jzazbz[0], az = _Jzazbz[1], bz = _Jzazbz[2];
-1 21569 var Iz = (Jz + d0) / (1 + d - d * (Jz + d0));
-1 21570 var PQLMS = multiplyMatrices(IabtoCone_M, [ Iz, az, bz ]);
-1 21571 var LMS = PQLMS.map(function(val) {
-1 21572 var num = c1$2 - Math.pow(val, pinv);
-1 21573 var denom = c3$2 * Math.pow(val, pinv) - c2$2;
-1 21574 var x = 1e4 * Math.pow(num / denom, ninv$1);
-1 21575 return x;
-1 21576 });
-1 21577 var _multiplyMatrices3 = multiplyMatrices(ConetoXYZ_M, LMS), _multiplyMatrices4 = _slicedToArray(_multiplyMatrices3, 3), Xm = _multiplyMatrices4[0], Ym = _multiplyMatrices4[1], Za = _multiplyMatrices4[2];
-1 21578 var Xa = (Xm + (b$1 - 1) * Za) / b$1;
-1 21579 var Ya = (Ym + (g - 1) * Xa) / g;
-1 21580 return [ Xa, Ya, Za ];
-1 21581 },
-1 21582 formats: {
-1 21583 color: {}
17817 21584 }
17818 -1 var displayValue = style.getPropertyValue('display');
17819 -1 if (displayValue === 'none') {
17820 -1 return true;
-1 21585 });
-1 21586 var jzczhz = new ColorSpace({
-1 21587 id: 'jzczhz',
-1 21588 name: 'JzCzHz',
-1 21589 coords: {
-1 21590 jz: {
-1 21591 refRange: [ 0, 1 ],
-1 21592 name: 'Jz'
-1 21593 },
-1 21594 cz: {
-1 21595 refRange: [ 0, 1 ],
-1 21596 name: 'Chroma'
-1 21597 },
-1 21598 hz: {
-1 21599 refRange: [ 0, 360 ],
-1 21600 type: 'angle',
-1 21601 name: 'Hue'
-1 21602 }
-1 21603 },
-1 21604 base: Jzazbz,
-1 21605 fromBase: function fromBase(jzazbz) {
-1 21606 var _jzazbz = _slicedToArray(jzazbz, 3), Jz = _jzazbz[0], az = _jzazbz[1], bz = _jzazbz[2];
-1 21607 var hue;
-1 21608 var \u03b52 = 2e-4;
-1 21609 if (Math.abs(az) < \u03b52 && Math.abs(bz) < \u03b52) {
-1 21610 hue = NaN;
-1 21611 } else {
-1 21612 hue = Math.atan2(bz, az) * 180 / Math.PI;
-1 21613 }
-1 21614 return [ Jz, Math.sqrt(Math.pow(az, 2) + Math.pow(bz, 2)), constrain(hue) ];
-1 21615 },
-1 21616 toBase: function toBase(jzczhz2) {
-1 21617 return [ jzczhz2[0], jzczhz2[1] * Math.cos(jzczhz2[2] * Math.PI / 180), jzczhz2[1] * Math.sin(jzczhz2[2] * Math.PI / 180) ];
-1 21618 },
-1 21619 formats: {
-1 21620 color: {}
17821 21621 }
17822 -1 var HIDDEN_VISIBILITY_VALUES = [ 'hidden', 'collapse' ];
17823 -1 var visibilityValue = style.getPropertyValue('visibility');
17824 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && !descendentVisibilityValue) {
17825 -1 return true;
-1 21622 });
-1 21623 function deltaEJz(color, sample) {
-1 21624 var _jzczhz$from = jzczhz.from(color), _jzczhz$from2 = _slicedToArray(_jzczhz$from, 3), Jz1 = _jzczhz$from2[0], Cz1 = _jzczhz$from2[1], Hz1 = _jzczhz$from2[2];
-1 21625 var _jzczhz$from3 = jzczhz.from(sample), _jzczhz$from4 = _slicedToArray(_jzczhz$from3, 3), Jz2 = _jzczhz$from4[0], Cz2 = _jzczhz$from4[1], Hz2 = _jzczhz$from4[2];
-1 21626 var \u0394J = Jz1 - Jz2;
-1 21627 var \u0394C = Cz1 - Cz2;
-1 21628 if (Number.isNaN(Hz1) && Number.isNaN(Hz2)) {
-1 21629 Hz1 = 0;
-1 21630 Hz2 = 0;
-1 21631 } else if (Number.isNaN(Hz1)) {
-1 21632 Hz1 = Hz2;
-1 21633 } else if (Number.isNaN(Hz2)) {
-1 21634 Hz2 = Hz1;
-1 21635 }
-1 21636 var \u0394h = Hz1 - Hz2;
-1 21637 var \u0394H = 2 * Math.sqrt(Cz1 * Cz2) * Math.sin(\u0394h / 2 * (Math.PI / 180));
-1 21638 return Math.sqrt(Math.pow(\u0394J, 2) + Math.pow(\u0394C, 2) + Math.pow(\u0394H, 2));
-1 21639 }
-1 21640 var c1$1 = 3424 / 4096;
-1 21641 var c2$1 = 2413 / 128;
-1 21642 var c3$1 = 2392 / 128;
-1 21643 var m1 = 2610 / 16384;
-1 21644 var m2 = 2523 / 32;
-1 21645 var im1 = 16384 / 2610;
-1 21646 var im2 = 32 / 2523;
-1 21647 var XYZtoLMS_M$1 = [ [ .3592, .6976, -.0358 ], [ -.1922, 1.1004, .0755 ], [ .007, .0749, .8434 ] ];
-1 21648 var LMStoIPT_M = [ [ 2048 / 4096, 2048 / 4096, 0 ], [ 6610 / 4096, -13613 / 4096, 7003 / 4096 ], [ 17933 / 4096, -17390 / 4096, -543 / 4096 ] ];
-1 21649 var IPTtoLMS_M = [ [ .9999888965628402, .008605050147287059, .11103437159861648 ], [ 1.00001110343716, -.008605050147287059, -.11103437159861648 ], [ 1.0000320633910054, .56004913547279, -.3206339100541203 ] ];
-1 21650 var LMStoXYZ_M$1 = [ [ 2.0701800566956137, -1.326456876103021, .20661600684785517 ], [ .3649882500326575, .6804673628522352, -.04542175307585323 ], [ -.04959554223893211, -.04942116118675749, 1.1879959417328034 ] ];
-1 21651 var ictcp = new ColorSpace({
-1 21652 id: 'ictcp',
-1 21653 name: 'ICTCP',
-1 21654 coords: {
-1 21655 i: {
-1 21656 refRange: [ 0, 1 ],
-1 21657 name: 'I'
-1 21658 },
-1 21659 ct: {
-1 21660 refRange: [ -.5, .5 ],
-1 21661 name: 'CT'
-1 21662 },
-1 21663 cp: {
-1 21664 refRange: [ -.5, .5 ],
-1 21665 name: 'CP'
-1 21666 }
-1 21667 },
-1 21668 base: XYZ_Abs_D65,
-1 21669 fromBase: function fromBase(XYZ) {
-1 21670 var LMS = multiplyMatrices(XYZtoLMS_M$1, XYZ);
-1 21671 return LMStoICtCp(LMS);
-1 21672 },
-1 21673 toBase: function toBase(ICtCp) {
-1 21674 var LMS = ICtCptoLMS(ICtCp);
-1 21675 return multiplyMatrices(LMStoXYZ_M$1, LMS);
-1 21676 },
-1 21677 formats: {
-1 21678 color: {}
17826 21679 }
17827 -1 if (HIDDEN_VISIBILITY_VALUES.includes(visibilityValue) && descendentVisibilityValue && HIDDEN_VISIBILITY_VALUES.includes(descendentVisibilityValue)) {
17828 -1 return true;
-1 21680 });
-1 21681 function LMStoICtCp(LMS) {
-1 21682 var PQLMS = LMS.map(function(val) {
-1 21683 var num = c1$1 + c2$1 * Math.pow(val / 1e4, m1);
-1 21684 var denom = 1 + c3$1 * Math.pow(val / 1e4, m1);
-1 21685 return Math.pow(num / denom, m2);
-1 21686 });
-1 21687 return multiplyMatrices(LMStoIPT_M, PQLMS);
-1 21688 }
-1 21689 function ICtCptoLMS(ICtCp) {
-1 21690 var PQLMS = multiplyMatrices(IPTtoLMS_M, ICtCp);
-1 21691 var LMS = PQLMS.map(function(val) {
-1 21692 var num = Math.max(Math.pow(val, im2) - c1$1, 0);
-1 21693 var denom = c2$1 - c3$1 * Math.pow(val, im2);
-1 21694 return 1e4 * Math.pow(num / denom, im1);
-1 21695 });
-1 21696 return LMS;
-1 21697 }
-1 21698 function deltaEITP(color, sample) {
-1 21699 var _ictcp$from = ictcp.from(color), _ictcp$from2 = _slicedToArray(_ictcp$from, 3), I1 = _ictcp$from2[0], T1 = _ictcp$from2[1], P1 = _ictcp$from2[2];
-1 21700 var _ictcp$from3 = ictcp.from(sample), _ictcp$from4 = _slicedToArray(_ictcp$from3, 3), I2 = _ictcp$from4[0], T2 = _ictcp$from4[1], P2 = _ictcp$from4[2];
-1 21701 return 720 * Math.sqrt(Math.pow(I1 - I2, 2) + .25 * Math.pow(T1 - T2, 2) + Math.pow(P1 - P2, 2));
-1 21702 }
-1 21703 var XYZtoLMS_M = [ [ .8190224432164319, .3619062562801221, -.12887378261216414 ], [ .0329836671980271, .9292868468965546, .03614466816999844 ], [ .048177199566046255, .26423952494422764, .6335478258136937 ] ];
-1 21704 var LMStoXYZ_M = [ [ 1.2268798733741557, -.5578149965554813, .28139105017721583 ], [ -.04057576262431372, 1.1122868293970594, -.07171106666151701 ], [ -.07637294974672142, -.4214933239627914, 1.5869240244272418 ] ];
-1 21705 var LMStoLab_M = [ [ .2104542553, .793617785, -.0040720468 ], [ 1.9779984951, -2.428592205, .4505937099 ], [ .0259040371, .7827717662, -.808675766 ] ];
-1 21706 var LabtoLMS_M = [ [ .9999999984505198, .39633779217376786, .2158037580607588 ], [ 1.0000000088817609, -.10556134232365635, -.06385417477170591 ], [ 1.0000000546724108, -.08948418209496575, -1.2914855378640917 ] ];
-1 21707 var OKLab = new ColorSpace({
-1 21708 id: 'oklab',
-1 21709 name: 'OKLab',
-1 21710 coords: {
-1 21711 l: {
-1 21712 refRange: [ 0, 1 ],
-1 21713 name: 'L'
-1 21714 },
-1 21715 a: {
-1 21716 refRange: [ -.4, .4 ]
-1 21717 },
-1 21718 b: {
-1 21719 refRange: [ -.4, .4 ]
-1 21720 }
-1 21721 },
-1 21722 white: 'D65',
-1 21723 base: XYZ_D65,
-1 21724 fromBase: function fromBase(XYZ) {
-1 21725 var LMS = multiplyMatrices(XYZtoLMS_M, XYZ);
-1 21726 var LMSg = LMS.map(function(val) {
-1 21727 return Math.cbrt(val);
-1 21728 });
-1 21729 return multiplyMatrices(LMStoLab_M, LMSg);
-1 21730 },
-1 21731 toBase: function toBase(OKLab2) {
-1 21732 var LMSg = multiplyMatrices(LabtoLMS_M, OKLab2);
-1 21733 var LMS = LMSg.map(function(val) {
-1 21734 return Math.pow(val, 3);
-1 21735 });
-1 21736 return multiplyMatrices(LMStoXYZ_M, LMS);
-1 21737 },
-1 21738 formats: {
-1 21739 oklab: {
-1 21740 coords: [ '<number> | <percentage>', '<number>', '<number>' ]
-1 21741 }
17829 21742 }
17830 -1 var parent = get_composed_parent_default(el);
17831 -1 if (parent && !HIDDEN_VISIBILITY_VALUES.includes(visibilityValue)) {
17832 -1 return isHiddenWithCSS(parent, visibilityValue);
-1 21743 });
-1 21744 function deltaEOK(color, sample) {
-1 21745 var _OKLab$from = OKLab.from(color), _OKLab$from2 = _slicedToArray(_OKLab$from, 3), L1 = _OKLab$from2[0], a1 = _OKLab$from2[1], b1 = _OKLab$from2[2];
-1 21746 var _OKLab$from3 = OKLab.from(sample), _OKLab$from4 = _slicedToArray(_OKLab$from3, 3), L2 = _OKLab$from4[0], a2 = _OKLab$from4[1], b2 = _OKLab$from4[2];
-1 21747 var \u0394L = L1 - L2;
-1 21748 var \u0394a = a1 - a2;
-1 21749 var \u0394b = b1 - b2;
-1 21750 return Math.sqrt(Math.pow(\u0394L, 2) + Math.pow(\u0394a, 2) + Math.pow(\u0394b, 2));
-1 21751 }
-1 21752 var deltaEMethods = Object.freeze({
-1 21753 __proto__: null,
-1 21754 deltaE76: deltaE76,
-1 21755 deltaECMC: deltaECMC,
-1 21756 deltaE2000: deltaE2000,
-1 21757 deltaEJz: deltaEJz,
-1 21758 deltaEITP: deltaEITP,
-1 21759 deltaEOK: deltaEOK
-1 21760 });
-1 21761 function deltaE(c12, c22) {
-1 21762 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 21763 if (isString(o)) {
-1 21764 o = {
-1 21765 method: o
-1 21766 };
17833 21767 }
17834 -1 return false;
17835 -1 }
17836 -1 var is_hidden_with_css_default = isHiddenWithCSS;
17837 -1 function isHTML5(doc) {
17838 -1 var node = doc.doctype;
17839 -1 if (node === null) {
17840 -1 return false;
-1 21768 var _o2 = o, _o2$method = _o2.method, method = _o2$method === void 0 ? defaults.deltaE : _o2$method, rest = _objectWithoutProperties(_o2, _excluded12);
-1 21769 c12 = getColor(c12);
-1 21770 c22 = getColor(c22);
-1 21771 for (var m3 in deltaEMethods) {
-1 21772 if ('deltae' + method.toLowerCase() === m3.toLowerCase()) {
-1 21773 return deltaEMethods[m3](c12, c22, rest);
-1 21774 }
17841 21775 }
17842 -1 return node.name === 'html' && !node.publicId && !node.systemId;
-1 21776 throw new TypeError('Unknown deltaE method: '.concat(method));
17843 21777 }
17844 -1 var is_html5_default = isHTML5;
17845 -1 function _isInTabOrder(el) {
17846 -1 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
17847 -1 if (vNode.props.nodeType !== 1) {
17848 -1 return false;
17849 -1 }
17850 -1 var tabindex = parseInt(vNode.attr('tabindex', 10));
17851 -1 if (tabindex <= -1) {
17852 -1 return false;
17853 -1 }
17854 -1 return _isFocusable(vNode);
-1 21778 function lighten(color) {
-1 21779 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25;
-1 21780 var space = ColorSpace.get('oklch', 'lch');
-1 21781 var lightness = [ space, 'l' ];
-1 21782 return set(color, lightness, function(l) {
-1 21783 return l * (1 + amount);
-1 21784 });
17855 21785 }
17856 -1 function getRoleType(role) {
17857 -1 var _window3;
17858 -1 if (role instanceof abstract_virtual_node_default || (_window3 = window) !== null && _window3 !== void 0 && _window3.Node && role instanceof window.Node) {
17859 -1 role = axe.commons.aria.getRole(role);
-1 21786 function darken(color) {
-1 21787 var amount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : .25;
-1 21788 var space = ColorSpace.get('oklch', 'lch');
-1 21789 var lightness = [ space, 'l' ];
-1 21790 return set(color, lightness, function(l) {
-1 21791 return l * (1 - amount);
-1 21792 });
-1 21793 }
-1 21794 var variations = Object.freeze({
-1 21795 __proto__: null,
-1 21796 lighten: lighten,
-1 21797 darken: darken
-1 21798 });
-1 21799 function mix(c12, c22) {
-1 21800 var p2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .5;
-1 21801 var o = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
-1 21802 var _ref58 = [ getColor(c12), getColor(c22) ];
-1 21803 c12 = _ref58[0];
-1 21804 c22 = _ref58[1];
-1 21805 if (type(p2) === 'object') {
-1 21806 var _ref59 = [ .5, p2 ];
-1 21807 p2 = _ref59[0];
-1 21808 o = _ref59[1];
-1 21809 }
-1 21810 var _o3 = o, space = _o3.space, outputSpace = _o3.outputSpace, premultiplied = _o3.premultiplied;
-1 21811 var r = range(c12, c22, {
-1 21812 space: space,
-1 21813 outputSpace: outputSpace,
-1 21814 premultiplied: premultiplied
-1 21815 });
-1 21816 return r(p2);
-1 21817 }
-1 21818 function steps(c12, c22) {
-1 21819 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 21820 var colorRange;
-1 21821 if (isRange(c12)) {
-1 21822 colorRange = c12;
-1 21823 options = c22;
-1 21824 var _colorRange$rangeArgs = _slicedToArray(colorRange.rangeArgs.colors, 2);
-1 21825 c12 = _colorRange$rangeArgs[0];
-1 21826 c22 = _colorRange$rangeArgs[1];
-1 21827 }
-1 21828 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);
-1 21829 if (!colorRange) {
-1 21830 var _ref60 = [ getColor(c12), getColor(c22) ];
-1 21831 c12 = _ref60[0];
-1 21832 c22 = _ref60[1];
-1 21833 colorRange = range(c12, c22, rangeOptions);
-1 21834 }
-1 21835 var totalDelta = deltaE(c12, c22);
-1 21836 var actualSteps = maxDeltaE > 0 ? Math.max(steps2, Math.ceil(totalDelta / maxDeltaE) + 1) : steps2;
-1 21837 var ret = [];
-1 21838 if (maxSteps !== void 0) {
-1 21839 actualSteps = Math.min(actualSteps, maxSteps);
-1 21840 }
-1 21841 if (actualSteps === 1) {
-1 21842 ret = [ {
-1 21843 p: .5,
-1 21844 color: colorRange(.5)
-1 21845 } ];
-1 21846 } else {
-1 21847 var step = 1 / (actualSteps - 1);
-1 21848 ret = Array.from({
-1 21849 length: actualSteps
-1 21850 }, function(_, i) {
-1 21851 var p2 = i * step;
-1 21852 return {
-1 21853 p: p2,
-1 21854 color: colorRange(p2)
-1 21855 };
-1 21856 });
17860 21857 }
17861 -1 var roleDef = standards_default.ariaRoles[role];
17862 -1 return (roleDef === null || roleDef === void 0 ? void 0 : roleDef.type) || null;
-1 21858 if (maxDeltaE > 0) {
-1 21859 var maxDelta = ret.reduce(function(acc, cur, i) {
-1 21860 if (i === 0) {
-1 21861 return 0;
-1 21862 }
-1 21863 var \u0394\u0395 = deltaE(cur.color, ret[i - 1].color, deltaEMethod);
-1 21864 return Math.max(acc, \u0394\u0395);
-1 21865 }, 0);
-1 21866 while (maxDelta > maxDeltaE) {
-1 21867 maxDelta = 0;
-1 21868 for (var _i16 = 1; _i16 < ret.length && ret.length < maxSteps; _i16++) {
-1 21869 var prev = ret[_i16 - 1];
-1 21870 var cur = ret[_i16];
-1 21871 var p2 = (cur.p + prev.p) / 2;
-1 21872 var _color = colorRange(p2);
-1 21873 maxDelta = Math.max(maxDelta, deltaE(_color, prev.color), deltaE(_color, cur.color));
-1 21874 ret.splice(_i16, 0, {
-1 21875 p: p2,
-1 21876 color: colorRange(p2)
-1 21877 });
-1 21878 _i16++;
-1 21879 }
-1 21880 }
-1 21881 }
-1 21882 ret = ret.map(function(a2) {
-1 21883 return a2.color;
-1 21884 });
-1 21885 return ret;
17863 21886 }
17864 -1 var get_role_type_default = getRoleType;
17865 -1 function walkDomNode(node, functor) {
17866 -1 if (functor(node.actualNode) !== false) {
17867 -1 node.children.forEach(function(child) {
17868 -1 return walkDomNode(child, functor);
-1 21887 function range(color1, color2) {
-1 21888 var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
-1 21889 if (isRange(color1)) {
-1 21890 var r = color1, options2 = color2;
-1 21891 return range.apply(void 0, _toConsumableArray(r.rangeArgs.colors).concat([ _extends({}, r.rangeArgs.options, options2) ]));
-1 21892 }
-1 21893 var space = options.space, outputSpace = options.outputSpace, progression = options.progression, premultiplied = options.premultiplied;
-1 21894 color1 = getColor(color1);
-1 21895 color2 = getColor(color2);
-1 21896 color1 = clone2(color1);
-1 21897 color2 = clone2(color2);
-1 21898 var rangeArgs = {
-1 21899 colors: [ color1, color2 ],
-1 21900 options: options
-1 21901 };
-1 21902 if (space) {
-1 21903 space = ColorSpace.get(space);
-1 21904 } else {
-1 21905 space = ColorSpace.registry[defaults.interpolationSpace] || color1.space;
-1 21906 }
-1 21907 outputSpace = outputSpace ? ColorSpace.get(outputSpace) : space;
-1 21908 color1 = to(color1, space);
-1 21909 color2 = to(color2, space);
-1 21910 color1 = toGamut(color1);
-1 21911 color2 = toGamut(color2);
-1 21912 if (space.coords.h && space.coords.h.type === 'angle') {
-1 21913 var arc = options.hue = options.hue || 'shorter';
-1 21914 var hue = [ space, 'h' ];
-1 21915 var _ref61 = [ get(color1, hue), get(color2, hue) ], \u03b81 = _ref61[0], \u03b82 = _ref61[1];
-1 21916 var _adjust = adjust(arc, [ \u03b81, \u03b82 ]);
-1 21917 var _adjust2 = _slicedToArray(_adjust, 2);
-1 21918 \u03b81 = _adjust2[0];
-1 21919 \u03b82 = _adjust2[1];
-1 21920 set(color1, hue, \u03b81);
-1 21921 set(color2, hue, \u03b82);
-1 21922 }
-1 21923 if (premultiplied) {
-1 21924 color1.coords = color1.coords.map(function(c4) {
-1 21925 return c4 * color1.alpha;
-1 21926 });
-1 21927 color2.coords = color2.coords.map(function(c4) {
-1 21928 return c4 * color2.alpha;
17869 21929 });
17870 21930 }
-1 21931 return Object.assign(function(p2) {
-1 21932 p2 = progression ? progression(p2) : p2;
-1 21933 var coords = color1.coords.map(function(start, i) {
-1 21934 var end = color2.coords[i];
-1 21935 return interpolate(start, end, p2);
-1 21936 });
-1 21937 var alpha = interpolate(color1.alpha, color2.alpha, p2);
-1 21938 var ret = {
-1 21939 space: space,
-1 21940 coords: coords,
-1 21941 alpha: alpha
-1 21942 };
-1 21943 if (premultiplied) {
-1 21944 ret.coords = ret.coords.map(function(c4) {
-1 21945 return c4 / alpha;
-1 21946 });
-1 21947 }
-1 21948 if (outputSpace !== space) {
-1 21949 ret = to(ret, outputSpace);
-1 21950 }
-1 21951 return ret;
-1 21952 }, {
-1 21953 rangeArgs: rangeArgs
-1 21954 });
17871 21955 }
17872 -1 var blockLike = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
17873 -1 function isBlock(elm) {
17874 -1 var display = window.getComputedStyle(elm).getPropertyValue('display');
17875 -1 return blockLike.includes(display) || display.substr(0, 6) === 'table-';
-1 21956 function isRange(val) {
-1 21957 return type(val) === 'function' && !!val.rangeArgs;
17876 21958 }
17877 -1 function getBlockParent(node) {
17878 -1 var parentBlock = get_composed_parent_default(node);
17879 -1 while (parentBlock && !isBlock(parentBlock)) {
17880 -1 parentBlock = get_composed_parent_default(parentBlock);
17881 -1 }
17882 -1 return get_node_from_tree_default(parentBlock);
-1 21959 defaults.interpolationSpace = 'lab';
-1 21960 function register(Color3) {
-1 21961 Color3.defineFunction('mix', mix, {
-1 21962 returns: 'color'
-1 21963 });
-1 21964 Color3.defineFunction('range', range, {
-1 21965 returns: 'function<color>'
-1 21966 });
-1 21967 Color3.defineFunction('steps', steps, {
-1 21968 returns: 'array<color>'
-1 21969 });
17883 21970 }
17884 -1 function isInTextBlock(node, options) {
17885 -1 if (isBlock(node)) {
17886 -1 return false;
-1 21971 var interpolation = Object.freeze({
-1 21972 __proto__: null,
-1 21973 mix: mix,
-1 21974 steps: steps,
-1 21975 range: range,
-1 21976 isRange: isRange,
-1 21977 register: register
-1 21978 });
-1 21979 var HSL = new ColorSpace({
-1 21980 id: 'hsl',
-1 21981 name: 'HSL',
-1 21982 coords: {
-1 21983 h: {
-1 21984 refRange: [ 0, 360 ],
-1 21985 type: 'angle',
-1 21986 name: 'Hue'
-1 21987 },
-1 21988 s: {
-1 21989 range: [ 0, 100 ],
-1 21990 name: 'Saturation'
-1 21991 },
-1 21992 l: {
-1 21993 range: [ 0, 100 ],
-1 21994 name: 'Lightness'
-1 21995 }
-1 21996 },
-1 21997 base: sRGB,
-1 21998 fromBase: function fromBase(rgb) {
-1 21999 var max2 = Math.max.apply(Math, _toConsumableArray(rgb));
-1 22000 var min = Math.min.apply(Math, _toConsumableArray(rgb));
-1 22001 var _rgb = _slicedToArray(rgb, 3), r = _rgb[0], g2 = _rgb[1], b2 = _rgb[2];
-1 22002 var h = NaN, s = 0, l = (min + max2) / 2;
-1 22003 var d2 = max2 - min;
-1 22004 if (d2 !== 0) {
-1 22005 s = l === 0 || l === 1 ? 0 : (max2 - l) / Math.min(l, 1 - l);
-1 22006 switch (max2) {
-1 22007 case r:
-1 22008 h = (g2 - b2) / d2 + (g2 < b2 ? 6 : 0);
-1 22009 break;
-1 22010
-1 22011 case g2:
-1 22012 h = (b2 - r) / d2 + 2;
-1 22013 break;
-1 22014
-1 22015 case b2:
-1 22016 h = (r - g2) / d2 + 4;
-1 22017 }
-1 22018 h = h * 60;
-1 22019 }
-1 22020 return [ h, s * 100, l * 100 ];
-1 22021 },
-1 22022 toBase: function toBase(hsl) {
-1 22023 var _hsl = _slicedToArray(hsl, 3), h = _hsl[0], s = _hsl[1], l = _hsl[2];
-1 22024 h = h % 360;
-1 22025 if (h < 0) {
-1 22026 h += 360;
-1 22027 }
-1 22028 s /= 100;
-1 22029 l /= 100;
-1 22030 function f(n2) {
-1 22031 var k = (n2 + h / 30) % 12;
-1 22032 var a2 = s * Math.min(l, 1 - l);
-1 22033 return l - a2 * Math.max(-1, Math.min(k - 3, 9 - k, 1));
-1 22034 }
-1 22035 return [ f(0), f(8), f(4) ];
-1 22036 },
-1 22037 formats: {
-1 22038 hsl: {
-1 22039 toGamut: true,
-1 22040 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ]
-1 22041 },
-1 22042 hsla: {
-1 22043 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ],
-1 22044 commas: true,
-1 22045 lastAlpha: true
-1 22046 }
17887 22047 }
17888 -1 var virtualParent = getBlockParent(node);
17889 -1 var parentText = '';
17890 -1 var widgetText = '';
17891 -1 var inBrBlock = 0;
17892 -1 walkDomNode(virtualParent, function(currNode) {
17893 -1 if (inBrBlock === 2) {
17894 -1 return false;
-1 22048 });
-1 22049 var HSV = new ColorSpace({
-1 22050 id: 'hsv',
-1 22051 name: 'HSV',
-1 22052 coords: {
-1 22053 h: {
-1 22054 refRange: [ 0, 360 ],
-1 22055 type: 'angle',
-1 22056 name: 'Hue'
-1 22057 },
-1 22058 s: {
-1 22059 range: [ 0, 100 ],
-1 22060 name: 'Saturation'
-1 22061 },
-1 22062 v: {
-1 22063 range: [ 0, 100 ],
-1 22064 name: 'Value'
-1 22065 }
-1 22066 },
-1 22067 base: HSL,
-1 22068 fromBase: function fromBase(hsl) {
-1 22069 var _hsl2 = _slicedToArray(hsl, 3), h = _hsl2[0], s = _hsl2[1], l = _hsl2[2];
-1 22070 s /= 100;
-1 22071 l /= 100;
-1 22072 var v = l + s * Math.min(l, 1 - l);
-1 22073 return [ h, v === 0 ? 0 : 200 * (1 - l / v), 100 * v ];
-1 22074 },
-1 22075 toBase: function toBase(hsv) {
-1 22076 var _hsv = _slicedToArray(hsv, 3), h = _hsv[0], s = _hsv[1], v = _hsv[2];
-1 22077 s /= 100;
-1 22078 v /= 100;
-1 22079 var l = v * (1 - s / 2);
-1 22080 return [ h, l === 0 || l === 1 ? 0 : (v - l) / Math.min(l, 1 - l) * 100, l * 100 ];
-1 22081 },
-1 22082 formats: {
-1 22083 color: {
-1 22084 toGamut: true
17895 22085 }
17896 -1 if (currNode.nodeType === 3) {
17897 -1 parentText += currNode.nodeValue;
-1 22086 }
-1 22087 });
-1 22088 var hwb = new ColorSpace({
-1 22089 id: 'hwb',
-1 22090 name: 'HWB',
-1 22091 coords: {
-1 22092 h: {
-1 22093 refRange: [ 0, 360 ],
-1 22094 type: 'angle',
-1 22095 name: 'Hue'
-1 22096 },
-1 22097 w: {
-1 22098 range: [ 0, 100 ],
-1 22099 name: 'Whiteness'
-1 22100 },
-1 22101 b: {
-1 22102 range: [ 0, 100 ],
-1 22103 name: 'Blackness'
-1 22104 }
-1 22105 },
-1 22106 base: HSV,
-1 22107 fromBase: function fromBase(hsv) {
-1 22108 var _hsv2 = _slicedToArray(hsv, 3), h = _hsv2[0], s = _hsv2[1], v = _hsv2[2];
-1 22109 return [ h, v * (100 - s) / 100, 100 - v ];
-1 22110 },
-1 22111 toBase: function toBase(hwb2) {
-1 22112 var _hwb = _slicedToArray(hwb2, 3), h = _hwb[0], w = _hwb[1], b2 = _hwb[2];
-1 22113 w /= 100;
-1 22114 b2 /= 100;
-1 22115 var sum = w + b2;
-1 22116 if (sum >= 1) {
-1 22117 var gray = w / sum;
-1 22118 return [ h, 0, gray * 100 ];
-1 22119 }
-1 22120 var v = 1 - b2;
-1 22121 var s = v === 0 ? 0 : 1 - w / v;
-1 22122 return [ h, s * 100, v * 100 ];
-1 22123 },
-1 22124 formats: {
-1 22125 hwb: {
-1 22126 toGamut: true,
-1 22127 coords: [ '<number> | <angle>', '<percentage>', '<percentage>' ]
17898 22128 }
17899 -1 if (currNode.nodeType !== 1) {
17900 -1 return;
-1 22129 }
-1 22130 });
-1 22131 var toXYZ_M$2 = [ [ .5766690429101305, .1855582379065463, .1882286462349947 ], [ .29734497525053605, .6273635662554661, .07529145849399788 ], [ .02703136138641234, .07068885253582723, .9913375368376388 ] ];
-1 22132 var fromXYZ_M$2 = [ [ 2.0415879038107465, -.5650069742788596, -.34473135077832956 ], [ -.9692436362808795, 1.8759675015077202, .04155505740717557 ], [ .013444280632031142, -.11836239223101838, 1.0151749943912054 ] ];
-1 22133 var A98Linear = new RGBColorSpace({
-1 22134 id: 'a98rgb-linear',
-1 22135 name: 'Linear Adobe\xae 98 RGB compatible',
-1 22136 white: 'D65',
-1 22137 toXYZ_M: toXYZ_M$2,
-1 22138 fromXYZ_M: fromXYZ_M$2
-1 22139 });
-1 22140 var a98rgb = new RGBColorSpace({
-1 22141 id: 'a98rgb',
-1 22142 name: 'Adobe\xae 98 RGB compatible',
-1 22143 base: A98Linear,
-1 22144 toBase: function toBase(RGB) {
-1 22145 return RGB.map(function(val) {
-1 22146 return Math.pow(Math.abs(val), 563 / 256) * Math.sign(val);
-1 22147 });
-1 22148 },
-1 22149 fromBase: function fromBase(RGB) {
-1 22150 return RGB.map(function(val) {
-1 22151 return Math.pow(Math.abs(val), 256 / 563) * Math.sign(val);
-1 22152 });
-1 22153 },
-1 22154 formats: {
-1 22155 color: {
-1 22156 id: 'a98-rgb'
17901 22157 }
17902 -1 var nodeName2 = (currNode.nodeName || '').toUpperCase();
17903 -1 if (currNode === node) {
17904 -1 inBrBlock = 1;
-1 22158 }
-1 22159 });
-1 22160 var toXYZ_M$1 = [ [ .7977604896723027, .13518583717574031, .0313493495815248 ], [ .2880711282292934, .7118432178101014, 8565396060525902e-20 ], [ 0, 0, .8251046025104601 ] ];
-1 22161 var fromXYZ_M$1 = [ [ 1.3457989731028281, -.25558010007997534, -.05110628506753401 ], [ -.5446224939028347, 1.5082327413132781, .02053603239147973 ], [ 0, 0, 1.2119675456389454 ] ];
-1 22162 var ProPhotoLinear = new RGBColorSpace({
-1 22163 id: 'prophoto-linear',
-1 22164 name: 'Linear ProPhoto',
-1 22165 white: 'D50',
-1 22166 base: XYZ_D50,
-1 22167 toXYZ_M: toXYZ_M$1,
-1 22168 fromXYZ_M: fromXYZ_M$1
-1 22169 });
-1 22170 var Et = 1 / 512;
-1 22171 var Et2 = 16 / 512;
-1 22172 var prophoto = new RGBColorSpace({
-1 22173 id: 'prophoto',
-1 22174 name: 'ProPhoto',
-1 22175 base: ProPhotoLinear,
-1 22176 toBase: function toBase(RGB) {
-1 22177 return RGB.map(function(v) {
-1 22178 return v < Et2 ? v / 16 : Math.pow(v, 1.8);
-1 22179 });
-1 22180 },
-1 22181 fromBase: function fromBase(RGB) {
-1 22182 return RGB.map(function(v) {
-1 22183 return v >= Et ? Math.pow(v, 1 / 1.8) : 16 * v;
-1 22184 });
-1 22185 },
-1 22186 formats: {
-1 22187 color: {
-1 22188 id: 'prophoto-rgb'
17905 22189 }
17906 -1 if ([ 'BR', 'HR' ].includes(nodeName2)) {
17907 -1 if (inBrBlock === 0) {
17908 -1 parentText = '';
17909 -1 widgetText = '';
17910 -1 } else {
17911 -1 inBrBlock = 2;
-1 22190 }
-1 22191 });
-1 22192 var oklch = new ColorSpace({
-1 22193 id: 'oklch',
-1 22194 name: 'OKLCh',
-1 22195 coords: {
-1 22196 l: {
-1 22197 refRange: [ 0, 1 ],
-1 22198 name: 'Lightness'
-1 22199 },
-1 22200 c: {
-1 22201 refRange: [ 0, .4 ],
-1 22202 name: 'Chroma'
-1 22203 },
-1 22204 h: {
-1 22205 refRange: [ 0, 360 ],
-1 22206 type: 'angle',
-1 22207 name: 'Hue'
-1 22208 }
-1 22209 },
-1 22210 white: 'D65',
-1 22211 base: OKLab,
-1 22212 fromBase: function fromBase(oklab) {
-1 22213 var _oklab = _slicedToArray(oklab, 3), L = _oklab[0], a2 = _oklab[1], b2 = _oklab[2];
-1 22214 var h;
-1 22215 var \u03b52 = 2e-4;
-1 22216 if (Math.abs(a2) < \u03b52 && Math.abs(b2) < \u03b52) {
-1 22217 h = NaN;
-1 22218 } else {
-1 22219 h = Math.atan2(b2, a2) * 180 / Math.PI;
-1 22220 }
-1 22221 return [ L, Math.sqrt(Math.pow(a2, 2) + Math.pow(b2, 2)), constrain(h) ];
-1 22222 },
-1 22223 toBase: function toBase(oklch2) {
-1 22224 var _oklch = _slicedToArray(oklch2, 3), L = _oklch[0], C = _oklch[1], h = _oklch[2];
-1 22225 var a2, b2;
-1 22226 if (isNaN(h)) {
-1 22227 a2 = 0;
-1 22228 b2 = 0;
-1 22229 } else {
-1 22230 a2 = C * Math.cos(h * Math.PI / 180);
-1 22231 b2 = C * Math.sin(h * Math.PI / 180);
-1 22232 }
-1 22233 return [ L, a2, b2 ];
-1 22234 },
-1 22235 formats: {
-1 22236 oklch: {
-1 22237 coords: [ '<number> | <percentage>', '<number>', '<number> | <angle>' ]
-1 22238 }
-1 22239 }
-1 22240 });
-1 22241 var Yw = 203;
-1 22242 var n = 2610 / Math.pow(2, 14);
-1 22243 var ninv = Math.pow(2, 14) / 2610;
-1 22244 var m = 2523 / Math.pow(2, 5);
-1 22245 var minv = Math.pow(2, 5) / 2523;
-1 22246 var c1 = 3424 / Math.pow(2, 12);
-1 22247 var c2 = 2413 / Math.pow(2, 7);
-1 22248 var c3 = 2392 / Math.pow(2, 7);
-1 22249 var rec2100Pq = new RGBColorSpace({
-1 22250 id: 'rec2100pq',
-1 22251 name: 'REC.2100-PQ',
-1 22252 base: REC2020Linear,
-1 22253 toBase: function toBase(RGB) {
-1 22254 return RGB.map(function(val) {
-1 22255 var x = Math.pow(Math.max(Math.pow(val, minv) - c1, 0) / (c2 - c3 * Math.pow(val, minv)), ninv);
-1 22256 return x * 1e4 / Yw;
-1 22257 });
-1 22258 },
-1 22259 fromBase: function fromBase(RGB) {
-1 22260 return RGB.map(function(val) {
-1 22261 var x = Math.max(val * Yw / 1e4, 0);
-1 22262 var num = c1 + c2 * Math.pow(x, n);
-1 22263 var denom = 1 + c3 * Math.pow(x, n);
-1 22264 return Math.pow(num / denom, m);
-1 22265 });
-1 22266 },
-1 22267 formats: {
-1 22268 color: {
-1 22269 id: 'rec2100-pq'
-1 22270 }
-1 22271 }
-1 22272 });
-1 22273 var a = .17883277;
-1 22274 var b = .28466892;
-1 22275 var c = .55991073;
-1 22276 var scale = 3.7743;
-1 22277 var rec2100Hlg = new RGBColorSpace({
-1 22278 id: 'rec2100hlg',
-1 22279 cssid: 'rec2100-hlg',
-1 22280 name: 'REC.2100-HLG',
-1 22281 referred: 'scene',
-1 22282 base: REC2020Linear,
-1 22283 toBase: function toBase(RGB) {
-1 22284 return RGB.map(function(val) {
-1 22285 if (val <= .5) {
-1 22286 return Math.pow(val, 2) / 3 * scale;
-1 22287 }
-1 22288 return Math.exp((val - c) / a + b) / 12 * scale;
-1 22289 });
-1 22290 },
-1 22291 fromBase: function fromBase(RGB) {
-1 22292 return RGB.map(function(val) {
-1 22293 val /= scale;
-1 22294 if (val <= 1 / 12) {
-1 22295 return Math.sqrt(3 * val);
17912 22296 }
17913 -1 } else if (currNode.style.display === 'none' || currNode.style.overflow === 'hidden' || ![ '', null, 'none' ].includes(currNode.style['float']) || ![ '', null, 'relative' ].includes(currNode.style.position)) {
17914 -1 return false;
17915 -1 } else if (get_role_type_default(currNode) === 'widget') {
17916 -1 widgetText += currNode.textContent;
17917 -1 return false;
-1 22297 return a * Math.log(12 * val - b) + c;
-1 22298 });
-1 22299 },
-1 22300 formats: {
-1 22301 color: {
-1 22302 id: 'rec2100-hlg'
17918 22303 }
17919 -1 });
17920 -1 parentText = sanitize_default(parentText);
17921 -1 if (options !== null && options !== void 0 && options.noLengthCompare) {
17922 -1 return parentText.length !== 0;
17923 22304 }
17924 -1 widgetText = sanitize_default(widgetText);
17925 -1 return parentText.length > widgetText.length;
17926 -1 }
17927 -1 var is_in_text_block_default = isInTextBlock;
17928 -1 function isModalOpen(options) {
17929 -1 options = options || {};
17930 -1 var modalPercent = options.modalPercent || .75;
17931 -1 if (cache_default.get('isModalOpen')) {
17932 -1 return cache_default.get('isModalOpen');
-1 22305 });
-1 22306 var CATs = {};
-1 22307 hooks.add('chromatic-adaptation-start', function(env) {
-1 22308 if (env.options.method) {
-1 22309 env.M = adapt(env.W1, env.W2, env.options.method);
17933 22310 }
17934 -1 var definiteModals = query_selector_all_filter_default(axe._tree[0], 'dialog, [role=dialog], [aria-modal=true]', _isVisibleOnScreen);
17935 -1 if (definiteModals.length) {
17936 -1 cache_default.set('isModalOpen', true);
17937 -1 return true;
-1 22311 });
-1 22312 hooks.add('chromatic-adaptation-end', function(env) {
-1 22313 if (!env.M) {
-1 22314 env.M = adapt(env.W1, env.W2, env.options.method);
-1 22315 }
-1 22316 });
-1 22317 function defineCAT(_ref62) {
-1 22318 var id = _ref62.id, toCone_M = _ref62.toCone_M, fromCone_M = _ref62.fromCone_M;
-1 22319 CATs[id] = arguments[0];
-1 22320 }
-1 22321 function adapt(W1, W2) {
-1 22322 var id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Bradford';
-1 22323 var method = CATs[id];
-1 22324 var _multiplyMatrices5 = multiplyMatrices(method.toCone_M, W1), _multiplyMatrices6 = _slicedToArray(_multiplyMatrices5, 3), \u03c1s = _multiplyMatrices6[0], \u03b3s = _multiplyMatrices6[1], \u03b2s = _multiplyMatrices6[2];
-1 22325 var _multiplyMatrices7 = multiplyMatrices(method.toCone_M, W2), _multiplyMatrices8 = _slicedToArray(_multiplyMatrices7, 3), \u03c1d = _multiplyMatrices8[0], \u03b3d = _multiplyMatrices8[1], \u03b2d = _multiplyMatrices8[2];
-1 22326 var scale2 = [ [ \u03c1d / \u03c1s, 0, 0 ], [ 0, \u03b3d / \u03b3s, 0 ], [ 0, 0, \u03b2d / \u03b2s ] ];
-1 22327 var scaled_cone_M = multiplyMatrices(scale2, method.toCone_M);
-1 22328 var adapt_M = multiplyMatrices(method.fromCone_M, scaled_cone_M);
-1 22329 return adapt_M;
-1 22330 }
-1 22331 defineCAT({
-1 22332 id: 'von Kries',
-1 22333 toCone_M: [ [ .40024, .7076, -.08081 ], [ -.2263, 1.16532, .0457 ], [ 0, 0, .91822 ] ],
-1 22334 fromCone_M: [ [ 1.8599364, -1.1293816, .2198974 ], [ .3611914, .6388125, -64e-7 ], [ 0, 0, 1.0890636 ] ]
-1 22335 });
-1 22336 defineCAT({
-1 22337 id: 'Bradford',
-1 22338 toCone_M: [ [ .8951, .2664, -.1614 ], [ -.7502, 1.7135, .0367 ], [ .0389, -.0685, 1.0296 ] ],
-1 22339 fromCone_M: [ [ .9869929, -.1470543, .1599627 ], [ .4323053, .5183603, .0492912 ], [ -.0085287, .0400428, .9684867 ] ]
-1 22340 });
-1 22341 defineCAT({
-1 22342 id: 'CAT02',
-1 22343 toCone_M: [ [ .7328, .4296, -.1624 ], [ -.7036, 1.6975, .0061 ], [ .003, .0136, .9834 ] ],
-1 22344 fromCone_M: [ [ 1.0961238, -.278869, .1827452 ], [ .454369, .4735332, .0720978 ], [ -.0096276, -.005698, 1.0153256 ] ]
-1 22345 });
-1 22346 defineCAT({
-1 22347 id: 'CAT16',
-1 22348 toCone_M: [ [ .401288, .650173, -.051461 ], [ -.250268, 1.204414, .045854 ], [ -.002079, .048952, .953127 ] ],
-1 22349 fromCone_M: [ [ 1.862067855087233, -1.011254630531685, .1491867754444518 ], [ .3875265432361372, .6214474419314753, -.008973985167612518 ], [ -.01584149884933386, -.03412293802851557, 1.04996443687785 ] ]
-1 22350 });
-1 22351 Object.assign(WHITES, {
-1 22352 A: [ 1.0985, 1, .35585 ],
-1 22353 C: [ .98074, 1, 1.18232 ],
-1 22354 D55: [ .95682, 1, .92149 ],
-1 22355 D75: [ .94972, 1, 1.22638 ],
-1 22356 E: [ 1, 1, 1 ],
-1 22357 F2: [ .99186, 1, .67393 ],
-1 22358 F7: [ .95041, 1, 1.08747 ],
-1 22359 F11: [ 1.00962, 1, .6435 ]
-1 22360 });
-1 22361 WHITES.ACES = [ .32168 / .33767, 1, (1 - .32168 - .33767) / .33767 ];
-1 22362 var toXYZ_M = [ [ .6624541811085053, .13400420645643313, .1561876870049078 ], [ .27222871678091454, .6740817658111484, .05368951740793705 ], [ -.005574649490394108, .004060733528982826, 1.0103391003129971 ] ];
-1 22363 var fromXYZ_M = [ [ 1.6410233796943257, -.32480329418479, -.23642469523761225 ], [ -.6636628587229829, 1.6153315916573379, .016756347685530137 ], [ .011721894328375376, -.008284441996237409, .9883948585390215 ] ];
-1 22364 var ACEScg = new RGBColorSpace({
-1 22365 id: 'acescg',
-1 22366 name: 'ACEScg',
-1 22367 coords: {
-1 22368 r: {
-1 22369 range: [ 0, 65504 ],
-1 22370 name: 'Red'
-1 22371 },
-1 22372 g: {
-1 22373 range: [ 0, 65504 ],
-1 22374 name: 'Green'
-1 22375 },
-1 22376 b: {
-1 22377 range: [ 0, 65504 ],
-1 22378 name: 'Blue'
-1 22379 }
-1 22380 },
-1 22381 referred: 'scene',
-1 22382 white: WHITES.ACES,
-1 22383 toXYZ_M: toXYZ_M,
-1 22384 fromXYZ_M: fromXYZ_M,
-1 22385 formats: {
-1 22386 color: {}
-1 22387 }
-1 22388 });
-1 22389 var \u03b5 = Math.pow(2, -16);
-1 22390 var ACES_min_nonzero = -.35828683;
-1 22391 var ACES_cc_max = (Math.log2(65504) + 9.72) / 17.52;
-1 22392 var acescc = new RGBColorSpace({
-1 22393 id: 'acescc',
-1 22394 name: 'ACEScc',
-1 22395 coords: {
-1 22396 r: {
-1 22397 range: [ ACES_min_nonzero, ACES_cc_max ],
-1 22398 name: 'Red'
-1 22399 },
-1 22400 g: {
-1 22401 range: [ ACES_min_nonzero, ACES_cc_max ],
-1 22402 name: 'Green'
-1 22403 },
-1 22404 b: {
-1 22405 range: [ ACES_min_nonzero, ACES_cc_max ],
-1 22406 name: 'Blue'
-1 22407 }
-1 22408 },
-1 22409 referred: 'scene',
-1 22410 base: ACEScg,
-1 22411 toBase: function toBase(RGB) {
-1 22412 var low = (9.72 - 15) / 17.52;
-1 22413 return RGB.map(function(val) {
-1 22414 if (val <= low) {
-1 22415 return (Math.pow(2, val * 17.52 - 9.72) - \u03b5) * 2;
-1 22416 } else if (val < ACES_cc_max) {
-1 22417 return Math.pow(2, val * 17.52 - 9.72);
-1 22418 } else {
-1 22419 return 65504;
-1 22420 }
-1 22421 });
-1 22422 },
-1 22423 fromBase: function fromBase(RGB) {
-1 22424 return RGB.map(function(val) {
-1 22425 if (val <= 0) {
-1 22426 return (Math.log2(\u03b5) + 9.72) / 17.52;
-1 22427 } else if (val < \u03b5) {
-1 22428 return (Math.log2(\u03b5 + val * .5) + 9.72) / 17.52;
-1 22429 } else {
-1 22430 return (Math.log2(val) + 9.72) / 17.52;
-1 22431 }
-1 22432 });
-1 22433 },
-1 22434 formats: {
-1 22435 color: {}
-1 22436 }
-1 22437 });
-1 22438 var spaces = Object.freeze({
-1 22439 __proto__: null,
-1 22440 XYZ_D65: XYZ_D65,
-1 22441 XYZ_D50: XYZ_D50,
-1 22442 XYZ_ABS_D65: XYZ_Abs_D65,
-1 22443 Lab_D65: lab_d65,
-1 22444 Lab: lab,
-1 22445 LCH: lch,
-1 22446 sRGB_Linear: sRGBLinear,
-1 22447 sRGB: sRGB,
-1 22448 HSL: HSL,
-1 22449 HWB: hwb,
-1 22450 HSV: HSV,
-1 22451 P3_Linear: P3Linear,
-1 22452 P3: P3,
-1 22453 A98RGB_Linear: A98Linear,
-1 22454 A98RGB: a98rgb,
-1 22455 ProPhoto_Linear: ProPhotoLinear,
-1 22456 ProPhoto: prophoto,
-1 22457 REC_2020_Linear: REC2020Linear,
-1 22458 REC_2020: REC2020,
-1 22459 OKLab: OKLab,
-1 22460 OKLCH: oklch,
-1 22461 Jzazbz: Jzazbz,
-1 22462 JzCzHz: jzczhz,
-1 22463 ICTCP: ictcp,
-1 22464 REC_2100_PQ: rec2100Pq,
-1 22465 REC_2100_HLG: rec2100Hlg,
-1 22466 ACEScg: ACEScg,
-1 22467 ACEScc: acescc
-1 22468 });
-1 22469 var Color = (_space = new WeakMap(), function() {
-1 22470 function Color() {
-1 22471 var _this2 = this;
-1 22472 _classCallCheck(this, Color);
-1 22473 _classPrivateFieldInitSpec(this, _space, {
-1 22474 writable: true,
-1 22475 value: void 0
-1 22476 });
-1 22477 var color;
-1 22478 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
-1 22479 args[_key3] = arguments[_key3];
-1 22480 }
-1 22481 if (args.length === 1) {
-1 22482 color = getColor(args[0]);
-1 22483 }
-1 22484 var space, coords, alpha;
-1 22485 if (color) {
-1 22486 space = color.space || color.spaceId;
-1 22487 coords = color.coords;
-1 22488 alpha = color.alpha;
-1 22489 } else {
-1 22490 space = args[0];
-1 22491 coords = args[1];
-1 22492 alpha = args[2];
-1 22493 }
-1 22494 _classPrivateFieldSet(this, _space, ColorSpace.get(space));
-1 22495 this.coords = coords ? coords.slice() : [ 0, 0, 0 ];
-1 22496 this.alpha = alpha < 1 ? alpha : 1;
-1 22497 for (var _i17 = 0; _i17 < this.coords.length; _i17++) {
-1 22498 if (this.coords[_i17] === 'NaN') {
-1 22499 this.coords[_i17] = NaN;
-1 22500 }
-1 22501 }
-1 22502 var _loop6 = function _loop6(id) {
-1 22503 Object.defineProperty(_this2, id, {
-1 22504 get: function get() {
-1 22505 return _this2.get(id);
-1 22506 },
-1 22507 set: function set(value) {
-1 22508 return _this2.set(id, value);
-1 22509 }
-1 22510 });
-1 22511 };
-1 22512 for (var id in _classPrivateFieldGet(this, _space).coords) {
-1 22513 _loop6(id);
-1 22514 }
17938 22515 }
17939 -1 var viewport = get_viewport_size_default(window);
17940 -1 var percentWidth = viewport.width * modalPercent;
17941 -1 var percentHeight = viewport.height * modalPercent;
17942 -1 var x = (viewport.width - percentWidth) / 2;
17943 -1 var y = (viewport.height - percentHeight) / 2;
17944 -1 var points = [ {
17945 -1 x: x,
17946 -1 y: y
17947 -1 }, {
17948 -1 x: viewport.width - x,
17949 -1 y: y
-1 22516 _createClass(Color, [ {
-1 22517 key: 'space',
-1 22518 get: function get() {
-1 22519 return _classPrivateFieldGet(this, _space);
-1 22520 }
17950 22521 }, {
17951 -1 x: viewport.width / 2,
17952 -1 y: viewport.height / 2
-1 22522 key: 'spaceId',
-1 22523 get: function get() {
-1 22524 return _classPrivateFieldGet(this, _space).id;
-1 22525 }
17953 22526 }, {
17954 -1 x: x,
17955 -1 y: viewport.height - y
-1 22527 key: 'clone',
-1 22528 value: function clone() {
-1 22529 return new Color(this.space, this.coords, this.alpha);
-1 22530 }
17956 22531 }, {
17957 -1 x: viewport.width - x,
17958 -1 y: viewport.height - y
17959 -1 } ];
17960 -1 var stacks = points.map(function(point) {
17961 -1 return Array.from(document.elementsFromPoint(point.x, point.y));
17962 -1 });
17963 -1 var _loop4 = function _loop4(_i8) {
17964 -1 var modalElement = stacks[_i8].find(function(elm) {
17965 -1 var style = window.getComputedStyle(elm);
17966 -1 return parseInt(style.width, 10) >= percentWidth && parseInt(style.height, 10) >= percentHeight && style.getPropertyValue('pointer-events') !== 'none' && (style.position === 'absolute' || style.position === 'fixed');
17967 -1 });
17968 -1 if (modalElement && stacks.every(function(stack) {
17969 -1 return stack.includes(modalElement);
17970 -1 })) {
17971 -1 cache_default.set('isModalOpen', true);
-1 22532 key: 'toJSON',
-1 22533 value: function toJSON() {
17972 22534 return {
17973 -1 v: true
-1 22535 spaceId: this.spaceId,
-1 22536 coords: this.coords,
-1 22537 alpha: this.alpha
17974 22538 };
17975 22539 }
17976 -1 };
17977 -1 for (var _i8 = 0; _i8 < stacks.length; _i8++) {
17978 -1 var _ret = _loop4(_i8);
17979 -1 if (_typeof(_ret) === 'object') {
17980 -1 return _ret.v;
-1 22540 }, {
-1 22541 key: 'display',
-1 22542 value: function display() {
-1 22543 for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
-1 22544 args[_key4] = arguments[_key4];
-1 22545 }
-1 22546 var ret = _display.apply(void 0, [ this ].concat(args));
-1 22547 ret.color = new Color(ret.color);
-1 22548 return ret;
17981 22549 }
17982 -1 }
17983 -1 cache_default.set('isModalOpen', void 0);
17984 -1 return void 0;
17985 -1 }
17986 -1 var is_modal_open_default = isModalOpen;
17987 -1 function _isMultiline(domNode) {
17988 -1 var margin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
17989 -1 var range = domNode.ownerDocument.createRange();
17990 -1 range.setStart(domNode, 0);
17991 -1 range.setEnd(domNode, domNode.childNodes.length);
17992 -1 var lastLineEnd = 0;
17993 -1 var lineCount = 0;
17994 -1 var _iterator4 = _createForOfIteratorHelper(range.getClientRects()), _step4;
17995 -1 try {
17996 -1 for (_iterator4.s(); !(_step4 = _iterator4.n()).done; ) {
17997 -1 var rect = _step4.value;
17998 -1 if (rect.height <= margin) {
17999 -1 continue;
-1 22550 } ], [ {
-1 22551 key: 'get',
-1 22552 value: function get(color) {
-1 22553 if (color instanceof Color) {
-1 22554 return color;
18000 22555 }
18001 -1 if (lastLineEnd > rect.top + margin) {
18002 -1 lastLineEnd = Math.max(lastLineEnd, rect.bottom);
18003 -1 } else if (lineCount === 0) {
18004 -1 lastLineEnd = rect.bottom;
18005 -1 lineCount++;
-1 22556 for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {
-1 22557 args[_key5 - 1] = arguments[_key5];
-1 22558 }
-1 22559 return _construct(Color, [ color ].concat(args));
-1 22560 }
-1 22561 }, {
-1 22562 key: 'defineFunction',
-1 22563 value: function defineFunction(name, code) {
-1 22564 var o = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : code;
-1 22565 var _o$instance = o.instance, instance = _o$instance === void 0 ? true : _o$instance, returns = o.returns;
-1 22566 var func = function func() {
-1 22567 var ret = code.apply(void 0, arguments);
-1 22568 if (returns === 'color') {
-1 22569 ret = Color.get(ret);
-1 22570 } else if (returns === 'function<color>') {
-1 22571 var f = ret;
-1 22572 ret = function ret() {
-1 22573 var ret2 = f.apply(void 0, arguments);
-1 22574 return Color.get(ret2);
-1 22575 };
-1 22576 Object.assign(ret, f);
-1 22577 } else if (returns === 'array<color>') {
-1 22578 ret = ret.map(function(c4) {
-1 22579 return Color.get(c4);
-1 22580 });
-1 22581 }
-1 22582 return ret;
-1 22583 };
-1 22584 if (!(name in Color)) {
-1 22585 Color[name] = func;
-1 22586 }
-1 22587 if (instance) {
-1 22588 Color.prototype[name] = function() {
-1 22589 for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
-1 22590 args[_key6] = arguments[_key6];
-1 22591 }
-1 22592 return func.apply(void 0, [ this ].concat(args));
-1 22593 };
-1 22594 }
-1 22595 }
-1 22596 }, {
-1 22597 key: 'defineFunctions',
-1 22598 value: function defineFunctions(o) {
-1 22599 for (var name in o) {
-1 22600 Color.defineFunction(name, o[name], o[name]);
-1 22601 }
-1 22602 }
-1 22603 }, {
-1 22604 key: 'extend',
-1 22605 value: function extend(exports) {
-1 22606 if (exports.register) {
-1 22607 exports.register(Color);
18006 22608 } else {
18007 -1 return true;
-1 22609 for (var name in exports) {
-1 22610 Color.defineFunction(name, exports[name]);
-1 22611 }
18008 22612 }
18009 22613 }
18010 -1 } catch (err) {
18011 -1 _iterator4.e(err);
18012 -1 } finally {
18013 -1 _iterator4.f();
18014 -1 }
18015 -1 return false;
-1 22614 } ]);
-1 22615 return Color;
-1 22616 }());
-1 22617 Color.defineFunctions({
-1 22618 get: get,
-1 22619 getAll: getAll,
-1 22620 set: set,
-1 22621 setAll: setAll,
-1 22622 to: to,
-1 22623 equals: equals,
-1 22624 inGamut: inGamut,
-1 22625 toGamut: toGamut,
-1 22626 distance: distance,
-1 22627 toString: serialize
-1 22628 });
-1 22629 Object.assign(Color, {
-1 22630 util: util,
-1 22631 hooks: hooks,
-1 22632 WHITES: WHITES,
-1 22633 Space: ColorSpace,
-1 22634 spaces: ColorSpace.registry,
-1 22635 parse: parse2,
-1 22636 defaults: defaults
-1 22637 });
-1 22638 for (var _i18 = 0, _Object$keys2 = Object.keys(spaces); _i18 < _Object$keys2.length; _i18++) {
-1 22639 var key = _Object$keys2[_i18];
-1 22640 ColorSpace.register(spaces[key]);
18016 22641 }
18017 -1 function isNode(element) {
18018 -1 return element instanceof window.Node;
-1 22642 for (var id in ColorSpace.registry) {
-1 22643 addSpaceAccessors(id, ColorSpace.registry[id]);
18019 22644 }
18020 -1 var is_node_default = isNode;
18021 -1 var data = {};
18022 -1 var incompleteData = {
18023 -1 set: function set(key, reason) {
18024 -1 if (typeof key !== 'string') {
18025 -1 throw new Error('Incomplete data: key must be a string');
18026 -1 }
18027 -1 if (reason) {
18028 -1 data[key] = reason;
18029 -1 }
18030 -1 return data[key];
18031 -1 },
18032 -1 get: function get(key) {
18033 -1 return data[key];
18034 -1 },
18035 -1 clear: function clear() {
18036 -1 data = {};
18037 -1 }
18038 -1 };
18039 -1 var incomplete_data_default = incompleteData;
18040 -1 function elementHasImage(elm, style) {
18041 -1 var graphicNodes = [ 'IMG', 'CANVAS', 'OBJECT', 'IFRAME', 'VIDEO', 'SVG' ];
18042 -1 var nodeName2 = elm.nodeName.toUpperCase();
18043 -1 if (graphicNodes.includes(nodeName2)) {
18044 -1 incomplete_data_default.set('bgColor', 'imgNode');
18045 -1 return true;
18046 -1 }
18047 -1 style = style || window.getComputedStyle(elm);
18048 -1 var bgImageStyle = style.getPropertyValue('background-image');
18049 -1 var hasBgImage = bgImageStyle !== 'none';
18050 -1 if (hasBgImage) {
18051 -1 var hasGradient = /gradient/.test(bgImageStyle);
18052 -1 incomplete_data_default.set('bgColor', hasGradient ? 'bgGradient' : 'bgImage');
18053 -1 }
18054 -1 return hasBgImage;
-1 22645 hooks.add('colorspace-init-end', function(space) {
-1 22646 var _space$aliases;
-1 22647 addSpaceAccessors(space.id, space);
-1 22648 (_space$aliases = space.aliases) === null || _space$aliases === void 0 ? void 0 : _space$aliases.forEach(function(alias) {
-1 22649 addSpaceAccessors(alias, space);
-1 22650 });
-1 22651 });
-1 22652 function addSpaceAccessors(id, space) {
-1 22653 Object.keys(space.coords);
-1 22654 Object.values(space.coords).map(function(c4) {
-1 22655 return c4.name;
-1 22656 });
-1 22657 var propId = id.replace(/-/g, '_');
-1 22658 Object.defineProperty(Color.prototype, propId, {
-1 22659 get: function get() {
-1 22660 var _this3 = this;
-1 22661 var ret = this.getAll(id);
-1 22662 if (typeof Proxy === 'undefined') {
-1 22663 return ret;
-1 22664 }
-1 22665 return new Proxy(ret, {
-1 22666 has: function has(obj, property) {
-1 22667 try {
-1 22668 ColorSpace.resolveCoord([ space, property ]);
-1 22669 return true;
-1 22670 } catch (e) {}
-1 22671 return Reflect.has(obj, property);
-1 22672 },
-1 22673 get: function get(obj, property, receiver) {
-1 22674 if (property && _typeof(property) !== 'symbol' && !(property in obj)) {
-1 22675 var _ColorSpace$resolveCo3 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo3.index;
-1 22676 if (index >= 0) {
-1 22677 return obj[index];
-1 22678 }
-1 22679 }
-1 22680 return Reflect.get(obj, property, receiver);
-1 22681 },
-1 22682 set: function set(obj, property, value, receiver) {
-1 22683 if (property && _typeof(property) !== 'symbol' && !(property in obj) || property >= 0) {
-1 22684 var _ColorSpace$resolveCo4 = ColorSpace.resolveCoord([ space, property ]), index = _ColorSpace$resolveCo4.index;
-1 22685 if (index >= 0) {
-1 22686 obj[index] = value;
-1 22687 _this3.setAll(id, obj);
-1 22688 return true;
-1 22689 }
-1 22690 }
-1 22691 return Reflect.set(obj, property, value, receiver);
-1 22692 }
-1 22693 });
-1 22694 },
-1 22695 set: function set(coords) {
-1 22696 this.setAll(id, coords);
-1 22697 },
-1 22698 configurable: true,
-1 22699 enumerable: true
-1 22700 });
18055 22701 }
18056 -1 var element_has_image_default = elementHasImage;
18057 -1 function convertColorVal(colorFunc, value, index) {
18058 -1 if (/%$/.test(value)) {
18059 -1 if (index === 3) {
18060 -1 return parseFloat(value) / 100;
18061 -1 }
18062 -1 return parseFloat(value) * 255 / 100;
18063 -1 }
18064 -1 if (colorFunc[index] === 'h') {
18065 -1 if (/turn$/.test(value)) {
18066 -1 return parseFloat(value) * 360;
18067 -1 }
18068 -1 if (/rad$/.test(value)) {
18069 -1 return parseFloat(value) * 57.3;
18070 -1 }
18071 -1 }
18072 -1 return parseFloat(value);
18073 -1 }
18074 -1 function hslToRgb(_ref36) {
18075 -1 var _ref37 = _slicedToArray(_ref36, 4), hue = _ref37[0], saturation = _ref37[1], lightness = _ref37[2], alpha = _ref37[3];
18076 -1 saturation /= 255;
18077 -1 lightness /= 255;
18078 -1 var high = (1 - Math.abs(2 * lightness - 1)) * saturation;
18079 -1 var low = high * (1 - Math.abs(hue / 60 % 2 - 1));
18080 -1 var base = lightness - high / 2;
18081 -1 var colors;
18082 -1 if (hue < 60) {
18083 -1 colors = [ high, low, 0 ];
18084 -1 } else if (hue < 120) {
18085 -1 colors = [ low, high, 0 ];
18086 -1 } else if (hue < 180) {
18087 -1 colors = [ 0, high, low ];
18088 -1 } else if (hue < 240) {
18089 -1 colors = [ 0, low, high ];
18090 -1 } else if (hue < 300) {
18091 -1 colors = [ low, 0, high ];
18092 -1 } else {
18093 -1 colors = [ high, 0, low ];
18094 -1 }
18095 -1 return colors.map(function(color) {
18096 -1 return Math.round((color + base) * 255);
18097 -1 }).concat(alpha);
18098 -1 }
18099 -1 function Color(red, green, blue) {
18100 -1 var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
18101 -1 this.red = red;
18102 -1 this.green = green;
18103 -1 this.blue = blue;
18104 -1 this.alpha = alpha;
18105 -1 this.toHexString = function toHexString() {
18106 -1 var redString = Math.round(this.red).toString(16);
18107 -1 var greenString = Math.round(this.green).toString(16);
18108 -1 var blueString = Math.round(this.blue).toString(16);
18109 -1 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
18110 -1 };
18111 -1 this.toJSON = function toJSON() {
18112 -1 var red2 = this.red, green2 = this.green, blue2 = this.blue, alpha2 = this.alpha;
18113 -1 return {
18114 -1 red: red2,
18115 -1 green: green2,
18116 -1 blue: blue2,
18117 -1 alpha: alpha2
18118 -1 };
18119 -1 };
18120 -1 var hexRegex = /^#[0-9a-f]{3,8}$/i;
18121 -1 var colorFnRegex = /^((?:rgb|hsl)a?)\s*\(([^\)]*)\)/i;
18122 -1 this.parseString = function parseString(colorString) {
18123 -1 if (standards_default.cssColors[colorString] || colorString === 'transparent') {
18124 -1 var _ref38 = standards_default.cssColors[colorString] || [ 0, 0, 0 ], _ref39 = _slicedToArray(_ref38, 3), red2 = _ref39[0], green2 = _ref39[1], blue2 = _ref39[2];
18125 -1 this.red = red2;
18126 -1 this.green = green2;
18127 -1 this.blue = blue2;
18128 -1 this.alpha = colorString === 'transparent' ? 0 : 1;
18129 -1 return this;
-1 22702 Color.extend(deltaEMethods);
-1 22703 Color.extend({
-1 22704 deltaE: deltaE
-1 22705 });
-1 22706 Color.extend(variations);
-1 22707 Color.extend({
-1 22708 contrast: contrast
-1 22709 });
-1 22710 Color.extend(chromaticity);
-1 22711 Color.extend(luminance);
-1 22712 Color.extend(interpolation);
-1 22713 Color.extend(contrastMethods);
-1 22714 import_dot['default'].templateSettings.strip = false;
-1 22715 var hexRegex = /^#[0-9a-f]{3,8}$/i;
-1 22716 var hslRegex = /hsl\(\s*([\d.]+)(rad|turn)/;
-1 22717 var Color2 = function() {
-1 22718 function Color2(red, green, blue) {
-1 22719 var alpha = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
-1 22720 _classCallCheck(this, Color2);
-1 22721 this.red = red;
-1 22722 this.green = green;
-1 22723 this.blue = blue;
-1 22724 this.alpha = alpha;
-1 22725 }
-1 22726 _createClass(Color2, [ {
-1 22727 key: 'toHexString',
-1 22728 value: function toHexString() {
-1 22729 var redString = Math.round(this.red).toString(16);
-1 22730 var greenString = Math.round(this.green).toString(16);
-1 22731 var blueString = Math.round(this.blue).toString(16);
-1 22732 return '#' + (this.red > 15.5 ? redString : '0' + redString) + (this.green > 15.5 ? greenString : '0' + greenString) + (this.blue > 15.5 ? blueString : '0' + blueString);
18130 22733 }
18131 -1 if (colorString.match(colorFnRegex)) {
18132 -1 this.parseColorFnString(colorString);
18133 -1 return this;
-1 22734 }, {
-1 22735 key: 'toJSON',
-1 22736 value: function toJSON() {
-1 22737 var red = this.red, green = this.green, blue = this.blue, alpha = this.alpha;
-1 22738 return {
-1 22739 red: red,
-1 22740 green: green,
-1 22741 blue: blue,
-1 22742 alpha: alpha
-1 22743 };
18134 22744 }
18135 -1 if (colorString.match(hexRegex)) {
18136 -1 this.parseHexString(colorString);
-1 22745 }, {
-1 22746 key: 'parseString',
-1 22747 value: function parseString(colorString) {
-1 22748 colorString = colorString.replace(hslRegex, function(match, angle, unit) {
-1 22749 var value = angle + unit;
-1 22750 switch (unit) {
-1 22751 case 'rad':
-1 22752 return match.replace(value, radToDeg(angle));
-1 22753
-1 22754 case 'turn':
-1 22755 return match.replace(value, turnToDeg(angle));
-1 22756 }
-1 22757 });
-1 22758 try {
-1 22759 var _color2 = new Color(colorString).to('srgb');
-1 22760 this.red = Math.round(clamp(_color2.r, 0, 1) * 255);
-1 22761 this.green = Math.round(clamp(_color2.g, 0, 1) * 255);
-1 22762 this.blue = Math.round(clamp(_color2.b, 0, 1) * 255);
-1 22763 this.alpha = +_color2.alpha;
-1 22764 } catch (err2) {
-1 22765 throw new Error('Unable to parse color "'.concat(colorString, '"'));
-1 22766 }
18137 22767 return this;
18138 22768 }
18139 -1 throw new Error('Unable to parse color "'.concat(colorString, '"'));
18140 -1 };
18141 -1 this.parseRgbString = function parseRgbString(colorString) {
18142 -1 if (colorString === 'transparent') {
18143 -1 this.red = 0;
18144 -1 this.green = 0;
18145 -1 this.blue = 0;
18146 -1 this.alpha = 0;
18147 -1 return;
18148 -1 }
18149 -1 this.parseColorFnString(colorString);
18150 -1 };
18151 -1 this.parseHexString = function parseHexString(colorString) {
18152 -1 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
18153 -1 return;
-1 22769 }, {
-1 22770 key: 'parseRgbString',
-1 22771 value: function parseRgbString(colorString) {
-1 22772 this.parseString(colorString);
18154 22773 }
18155 -1 colorString = colorString.replace('#', '');
18156 -1 if (colorString.length < 6) {
18157 -1 var _colorString = colorString, _colorString2 = _slicedToArray(_colorString, 4), r = _colorString2[0], g = _colorString2[1], b = _colorString2[2], a = _colorString2[3];
18158 -1 colorString = r + r + g + g + b + b;
18159 -1 if (a) {
18160 -1 colorString += a + a;
-1 22774 }, {
-1 22775 key: 'parseHexString',
-1 22776 value: function parseHexString(colorString) {
-1 22777 if (!colorString.match(hexRegex) || [ 6, 8 ].includes(colorString.length)) {
-1 22778 return;
18161 22779 }
-1 22780 this.parseString(colorString);
18162 22781 }
18163 -1 var aRgbHex = colorString.match(/.{1,2}/g);
18164 -1 this.red = parseInt(aRgbHex[0], 16);
18165 -1 this.green = parseInt(aRgbHex[1], 16);
18166 -1 this.blue = parseInt(aRgbHex[2], 16);
18167 -1 if (aRgbHex[3]) {
18168 -1 this.alpha = parseInt(aRgbHex[3], 16) / 255;
18169 -1 } else {
18170 -1 this.alpha = 1;
18171 -1 }
18172 -1 };
18173 -1 this.parseColorFnString = function parseColorFnString(colorString) {
18174 -1 var _ref40 = colorString.match(colorFnRegex) || [], _ref41 = _slicedToArray(_ref40, 3), colorFunc = _ref41[1], colorValStr = _ref41[2];
18175 -1 if (!colorFunc || !colorValStr) {
18176 -1 return;
-1 22782 }, {
-1 22783 key: 'parseColorFnString',
-1 22784 value: function parseColorFnString(colorString) {
-1 22785 this.parseString(colorString);
18177 22786 }
18178 -1 var colorVals = colorValStr.split(/\s*[,\/\s]\s*/).map(function(str) {
18179 -1 return str.replace(',', '').trim();
18180 -1 }).filter(function(str) {
18181 -1 return str !== '';
18182 -1 });
18183 -1 var colorNums = colorVals.map(function(val, index) {
18184 -1 return convertColorVal(colorFunc, val, index);
18185 -1 });
18186 -1 if (colorFunc.substr(0, 3) === 'hsl') {
18187 -1 colorNums = hslToRgb(colorNums);
-1 22787 }, {
-1 22788 key: 'getRelativeLuminance',
-1 22789 value: function getRelativeLuminance() {
-1 22790 var rSRGB = this.red / 255;
-1 22791 var gSRGB = this.green / 255;
-1 22792 var bSRGB = this.blue / 255;
-1 22793 var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
-1 22794 var g2 = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
-1 22795 var b2 = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
-1 22796 return .2126 * r + .7152 * g2 + .0722 * b2;
18188 22797 }
18189 -1 this.red = colorNums[0];
18190 -1 this.green = colorNums[1];
18191 -1 this.blue = colorNums[2];
18192 -1 this.alpha = typeof colorNums[3] === 'number' ? colorNums[3] : 1;
18193 -1 };
18194 -1 this.getRelativeLuminance = function getRelativeLuminance() {
18195 -1 var rSRGB = this.red / 255;
18196 -1 var gSRGB = this.green / 255;
18197 -1 var bSRGB = this.blue / 255;
18198 -1 var r = rSRGB <= .03928 ? rSRGB / 12.92 : Math.pow((rSRGB + .055) / 1.055, 2.4);
18199 -1 var g = gSRGB <= .03928 ? gSRGB / 12.92 : Math.pow((gSRGB + .055) / 1.055, 2.4);
18200 -1 var b = bSRGB <= .03928 ? bSRGB / 12.92 : Math.pow((bSRGB + .055) / 1.055, 2.4);
18201 -1 return .2126 * r + .7152 * g + .0722 * b;
18202 -1 };
-1 22798 } ]);
-1 22799 return Color2;
-1 22800 }();
-1 22801 var color_default = Color2;
-1 22802 function clamp(value, min, max2) {
-1 22803 return Math.min(Math.max(min, value), max2);
-1 22804 }
-1 22805 function radToDeg(rad) {
-1 22806 return rad * 180 / Math.PI;
-1 22807 }
-1 22808 function turnToDeg(turn) {
-1 22809 return turn * 360;
18203 22810 }
18204 -1 var color_default = Color;
18205 22811 function getOwnBackgroundColor(elmStyle) {
18206 22812 var bgColor = new color_default();
18207 22813 bgColor.parseString(elmStyle.getPropertyValue('background-color'));
@@ -18250,9 +22856,9 @@ module.exports = {
18250 22856 }
18251 22857 }
18252 22858 if (matchesClipPath) {
18253 -1 var type = matchesClipPath[1];
-1 22859 var type2 = matchesClipPath[1];
18254 22860 var value = parseInt(matchesClipPath[2], 10);
18255 -1 switch (type) {
-1 22861 switch (type2) {
18256 22862 case 'inset':
18257 22863 return value >= 50;
18258 22864
@@ -18281,8 +22887,8 @@ module.exports = {
18281 22887 if (!refs || !refs.length) {
18282 22888 return false;
18283 22889 }
18284 -1 return refs.some(function(_ref42) {
18285 -1 var actualNode = _ref42.actualNode;
-1 22890 return refs.some(function(_ref63) {
-1 22891 var actualNode = _ref63.actualNode;
18286 22892 return isVisible(actualNode, screenReader, recursed);
18287 22893 });
18288 22894 }
@@ -18294,7 +22900,7 @@ module.exports = {
18294 22900 var vNode = el instanceof abstract_virtual_node_default ? el : get_node_from_tree_default(el);
18295 22901 el = vNode ? vNode.actualNode : el;
18296 22902 var cacheName = '_isVisible' + (screenReader ? 'ScreenReader' : '');
18297 -1 var _ref43 = (_window$Node2 = window.Node) !== null && _window$Node2 !== void 0 ? _window$Node2 : {}, DOCUMENT_NODE = _ref43.DOCUMENT_NODE, DOCUMENT_FRAGMENT_NODE = _ref43.DOCUMENT_FRAGMENT_NODE;
-1 22903 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;
18298 22904 var nodeType = vNode ? vNode.props.nodeType : el.nodeType;
18299 22905 var nodeName2 = vNode ? vNode.props.nodeName : el.nodeName.toLowerCase();
18300 22906 if (vNode && typeof vNode[cacheName] !== 'undefined') {
@@ -18338,7 +22944,7 @@ module.exports = {
18338 22944 }
18339 22945 var elHeight = parseInt(style.getPropertyValue('height'));
18340 22946 var elWidth = parseInt(style.getPropertyValue('width'));
18341 -1 var scroll = _getScroll(el);
-1 22947 var scroll = get_scroll_default(el);
18342 22948 var scrollableWithZeroHeight = scroll && elHeight === 0;
18343 22949 var scrollableWithZeroWidth = scroll && elWidth === 0;
18344 22950 var posAbsoluteOverflowHiddenAndSmall = style.getPropertyValue('position') === 'absolute' && (elHeight < 2 || elWidth < 2) && style.getPropertyValue('overflow') === 'hidden';
@@ -18393,7 +22999,7 @@ module.exports = {
18393 22999 var vNode = get_node_from_tree_default(node);
18394 23000 var ancestor = vNode.parent;
18395 23001 while (ancestor) {
18396 -1 if (_getScroll(ancestor.actualNode)) {
-1 23002 if (get_scroll_default(ancestor.actualNode)) {
18397 23003 return ancestor.actualNode;
18398 23004 }
18399 23005 ancestor = ancestor.parent;
@@ -18497,8 +23103,8 @@ module.exports = {
18497 23103 }
18498 23104 for (var index = 0; index < pairs.length; index++) {
18499 23105 var pair = pairs[index];
18500 -1 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), key = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;
18501 -1 query[decodeURIComponent(key)] = decodeURIComponent(value);
-1 23106 var _pair$split = pair.split('='), _pair$split2 = _slicedToArray(_pair$split, 2), _key7 = _pair$split2[0], _pair$split2$ = _pair$split2[1], value = _pair$split2$ === void 0 ? '' : _pair$split2$;
-1 23107 query[decodeURIComponent(_key7)] = decodeURIComponent(value);
18502 23108 }
18503 23109 return query;
18504 23110 }
@@ -18538,56 +23144,54 @@ module.exports = {
18538 23144 return true;
18539 23145 }
18540 23146 var visually_overlaps_default = visuallyOverlaps;
18541 -1 var isXHTMLGlobal;
18542 -1 var nodeIndex = 0;
-1 23147 var nodeIndex2 = 0;
18543 23148 var VirtualNode = function(_abstract_virtual_nod) {
18544 23149 _inherits(VirtualNode, _abstract_virtual_nod);
18545 -1 var _super = _createSuper(VirtualNode);
-1 23150 var _super2 = _createSuper(VirtualNode);
18546 23151 function VirtualNode(node, parent, shadowId) {
18547 -1 var _this;
-1 23152 var _this4;
18548 23153 _classCallCheck(this, VirtualNode);
18549 -1 _this = _super.call(this);
18550 -1 _this.shadowId = shadowId;
18551 -1 _this.children = [];
18552 -1 _this.actualNode = node;
18553 -1 _this.parent = parent;
-1 23154 _this4 = _super2.call(this);
-1 23155 _this4.shadowId = shadowId;
-1 23156 _this4.children = [];
-1 23157 _this4.actualNode = node;
-1 23158 _this4.parent = parent;
18554 23159 if (!parent) {
18555 -1 nodeIndex = 0;
-1 23160 nodeIndex2 = 0;
18556 23161 }
18557 -1 _this.nodeIndex = nodeIndex++;
18558 -1 _this._isHidden = null;
18559 -1 _this._cache = {};
18560 -1 if (typeof isXHTMLGlobal === 'undefined') {
18561 -1 isXHTMLGlobal = is_xhtml_default(node.ownerDocument);
18562 -1 }
18563 -1 _this._isXHTML = isXHTMLGlobal;
-1 23162 _this4.nodeIndex = nodeIndex2++;
-1 23163 _this4._isHidden = null;
-1 23164 _this4._cache = {};
-1 23165 _this4._isXHTML = is_xhtml_default(node.ownerDocument);
18564 23166 if (node.nodeName.toLowerCase() === 'input') {
18565 -1 var type = node.getAttribute('type');
18566 -1 type = _this._isXHTML ? type : (type || '').toLowerCase();
18567 -1 if (!valid_input_type_default().includes(type)) {
18568 -1 type = 'text';
-1 23167 var type2 = node.getAttribute('type');
-1 23168 type2 = _this4._isXHTML ? type2 : (type2 || '').toLowerCase();
-1 23169 if (!valid_input_type_default().includes(type2)) {
-1 23170 type2 = 'text';
18569 23171 }
18570 -1 _this._type = type;
-1 23172 _this4._type = type2;
18571 23173 }
18572 23174 if (cache_default.get('nodeMap')) {
18573 -1 cache_default.get('nodeMap').set(node, _assertThisInitialized(_this));
-1 23175 cache_default.get('nodeMap').set(node, _assertThisInitialized(_this4));
18574 23176 }
18575 -1 return _this;
-1 23177 return _this4;
18576 23178 }
18577 23179 _createClass(VirtualNode, [ {
18578 23180 key: 'props',
18579 23181 get: function get() {
18580 23182 if (!this._cache.hasOwnProperty('props')) {
18581 -1 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected;
-1 23183 var _this$actualNode = this.actualNode, nodeType = _this$actualNode.nodeType, nodeName2 = _this$actualNode.nodeName, _id = _this$actualNode.id, multiple = _this$actualNode.multiple, nodeValue = _this$actualNode.nodeValue, value = _this$actualNode.value, selected = _this$actualNode.selected, checked = _this$actualNode.checked, indeterminate = _this$actualNode.indeterminate;
18582 23184 this._cache.props = {
18583 23185 nodeType: nodeType,
18584 23186 nodeName: this._isXHTML ? nodeName2 : nodeName2.toLowerCase(),
18585 -1 id: id,
-1 23187 id: _id,
18586 23188 type: this._type,
18587 23189 multiple: multiple,
18588 23190 nodeValue: nodeValue,
18589 23191 value: value,
18590 -1 selected: selected
-1 23192 selected: selected,
-1 23193 checked: checked,
-1 23194 indeterminate: indeterminate
18591 23195 };
18592 23196 }
18593 23197 return this._cache.props;
@@ -18685,8 +23289,8 @@ module.exports = {
18685 23289 return;
18686 23290 }
18687 23291 var shadowId = domTree[0].shadowId;
18688 -1 for (var _i9 = 0; _i9 < expressions.length; _i9++) {
18689 -1 if (expressions[_i9].length > 1 && expressions[_i9].some(function(expression) {
-1 23292 for (var _i19 = 0; _i19 < expressions.length; _i19++) {
-1 23293 if (expressions[_i19].length > 1 && expressions[_i19].some(function(expression) {
18690 23294 return isGlobalSelector(expression);
18691 23295 })) {
18692 23296 return;
@@ -18710,8 +23314,8 @@ module.exports = {
18710 23314 if (filter) {
18711 23315 matchedNodes = matchedNodes.filter(filter);
18712 23316 }
18713 -1 return matchedNodes.sort(function(a, b) {
18714 -1 return a.nodeIndex - b.nodeIndex;
-1 23317 return matchedNodes.sort(function(a2, b2) {
-1 23318 return a2.nodeIndex - b2.nodeIndex;
18715 23319 });
18716 23320 }
18717 23321 function findMatchingNodes(expression, selectorMap, shadowId) {
@@ -18723,7 +23327,7 @@ module.exports = {
18723 23327 } else {
18724 23328 if (exp.id) {
18725 23329 var _selectorMap$idsKey$e;
18726 -1 if (!selectorMap[idsKey] || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {
-1 23330 if (!selectorMap[idsKey] || !Object.hasOwn(selectorMap[idsKey], exp.id) || !((_selectorMap$idsKey$e = selectorMap[idsKey][exp.id]) !== null && _selectorMap$idsKey$e !== void 0 && _selectorMap$idsKey$e.length)) {
18727 23331 return;
18728 23332 }
18729 23333 nodes = selectorMap[idsKey][exp.id].filter(function(node) {
@@ -18747,9 +23351,9 @@ module.exports = {
18747 23351 nodes = nodes ? getSharedValues(_cachedNodes, nodes) : _cachedNodes;
18748 23352 }
18749 23353 if (exp.attributes) {
18750 -1 for (var _i10 = 0; _i10 < exp.attributes.length; _i10++) {
-1 23354 for (var _i20 = 0; _i20 < exp.attributes.length; _i20++) {
18751 23355 var _selectorMap;
18752 -1 var attr = exp.attributes[_i10];
-1 23356 var attr = exp.attributes[_i20];
18753 23357 if (attr.type === 'attrValue') {
18754 23358 isComplexSelector = true;
18755 23359 }
@@ -18769,13 +23373,15 @@ module.exports = {
18769 23373 function isGlobalSelector(expression) {
18770 23374 return expression.tag === '*' && !expression.attributes && !expression.id && !expression.classes;
18771 23375 }
18772 -1 function getSharedValues(a, b) {
18773 -1 return a.filter(function(node) {
18774 -1 return b.includes(node);
-1 23376 function getSharedValues(a2, b2) {
-1 23377 return a2.filter(function(node) {
-1 23378 return b2.includes(node);
18775 23379 });
18776 23380 }
18777 23381 function cacheSelector(key, vNode, map) {
18778 -1 map[key] = map[key] || [];
-1 23382 if (!Object.hasOwn(map, key)) {
-1 23383 map[key] = [];
-1 23384 }
18779 23385 map[key].push(vNode);
18780 23386 }
18781 23387 function cacheNodeSelectors(vNode, selectorMap) {
@@ -18795,6 +23401,18 @@ module.exports = {
18795 23401 });
18796 23402 }
18797 23403 var hasShadowRoot;
-1 23404 function _getFlattenedTree() {
-1 23405 var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;
-1 23406 var shadowId = arguments.length > 1 ? arguments[1] : undefined;
-1 23407 hasShadowRoot = false;
-1 23408 var selectorMap = {};
-1 23409 cache_default.set('nodeMap', new WeakMap());
-1 23410 cache_default.set('selectorMap', selectorMap);
-1 23411 var tree = flattenTree(node, shadowId, null);
-1 23412 tree[0]._selectorMap = selectorMap;
-1 23413 tree[0]._hasShadowRoot = hasShadowRoot;
-1 23414 return tree;
-1 23415 }
18798 23416 function getSlotChildren(node) {
18799 23417 var retVal = [];
18800 23418 node = node.firstChild;
@@ -18811,8 +23429,8 @@ module.exports = {
18811 23429 }
18812 23430 function flattenTree(node, shadowId, parent) {
18813 23431 var retVal, realArray, nodeName2;
18814 -1 function reduceShadowDOM(res, child, parent2) {
18815 -1 var replacements = flattenTree(child, shadowId, parent2);
-1 23432 function reduceShadowDOM(res, child, parentVNode) {
-1 23433 var replacements = flattenTree(child, shadowId, parentVNode);
18816 23434 if (replacements) {
18817 23435 res = res.concat(replacements);
18818 23436 }
@@ -18869,19 +23487,6 @@ module.exports = {
18869 23487 }
18870 23488 }
18871 23489 }
18872 -1 function getFlattenedTree() {
18873 -1 var node = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document.documentElement;
18874 -1 var shadowId = arguments.length > 1 ? arguments[1] : undefined;
18875 -1 hasShadowRoot = false;
18876 -1 var selectorMap = {};
18877 -1 cache_default.set('nodeMap', new WeakMap());
18878 -1 cache_default.set('selectorMap', selectorMap);
18879 -1 var tree = flattenTree(node, shadowId, null);
18880 -1 tree[0]._selectorMap = selectorMap;
18881 -1 tree[0]._hasShadowRoot = hasShadowRoot;
18882 -1 return tree;
18883 -1 }
18884 -1 var get_flattened_tree_default = getFlattenedTree;
18885 23490 function getBaseLang(lang) {
18886 23491 if (!lang) {
18887 23492 return '';
@@ -18909,48 +23514,14 @@ module.exports = {
18909 23514 }
18910 23515 var failure_summary_default = failureSummary;
18911 23516 function incompleteFallbackMessage() {
18912 -1 var incompleteFallbackMessage2 = axe._audit.data.incompleteFallbackMessage;
18913 -1 if (typeof incompleteFallbackMessage2 === 'function') {
18914 -1 incompleteFallbackMessage2 = incompleteFallbackMessage2();
-1 23517 var message = axe._audit.data.incompleteFallbackMessage;
-1 23518 if (typeof message === 'function') {
-1 23519 message = message();
18915 23520 }
18916 -1 if (typeof incompleteFallbackMessage2 !== 'string') {
-1 23521 if (typeof message !== 'string') {
18917 23522 return '';
18918 23523 }
18919 -1 return incompleteFallbackMessage2;
18920 -1 }
18921 -1 function normalizeRelatedNodes(node, options) {
18922 -1 [ 'any', 'all', 'none' ].forEach(function(type) {
18923 -1 if (!Array.isArray(node[type])) {
18924 -1 return;
18925 -1 }
18926 -1 node[type].filter(function(checkRes) {
18927 -1 return Array.isArray(checkRes.relatedNodes);
18928 -1 }).forEach(function(checkRes) {
18929 -1 checkRes.relatedNodes = checkRes.relatedNodes.map(function(relatedNode) {
18930 -1 var _relatedNode$source;
18931 -1 var res = {
18932 -1 html: (_relatedNode$source = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.source) !== null && _relatedNode$source !== void 0 ? _relatedNode$source : 'Undefined'
18933 -1 };
18934 -1 if (options.elementRef && !(relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame)) {
18935 -1 var _relatedNode$element;
18936 -1 res.element = (_relatedNode$element = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.element) !== null && _relatedNode$element !== void 0 ? _relatedNode$element : null;
18937 -1 }
18938 -1 if (options.selectors !== false || relatedNode !== null && relatedNode !== void 0 && relatedNode.fromFrame) {
18939 -1 var _relatedNode$selector;
18940 -1 res.target = (_relatedNode$selector = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.selector) !== null && _relatedNode$selector !== void 0 ? _relatedNode$selector : [ ':root' ];
18941 -1 }
18942 -1 if (options.ancestry) {
18943 -1 var _relatedNode$ancestry;
18944 -1 res.ancestry = (_relatedNode$ancestry = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.ancestry) !== null && _relatedNode$ancestry !== void 0 ? _relatedNode$ancestry : [ ':root' ];
18945 -1 }
18946 -1 if (options.xpath) {
18947 -1 var _relatedNode$xpath;
18948 -1 res.xpath = (_relatedNode$xpath = relatedNode === null || relatedNode === void 0 ? void 0 : relatedNode.xpath) !== null && _relatedNode$xpath !== void 0 ? _relatedNode$xpath : [ '/' ];
18949 -1 }
18950 -1 return res;
18951 -1 });
18952 -1 });
18953 -1 });
-1 23524 return message;
18954 23525 }
18955 23526 var resultKeys = constants_default.resultGroups;
18956 23527 function processAggregate(results, options) {
@@ -18968,19 +23539,8 @@ module.exports = {
18968 23539 if (Array.isArray(ruleResult.nodes) && ruleResult.nodes.length > 0) {
18969 23540 ruleResult.nodes = ruleResult.nodes.map(function(subResult) {
18970 23541 if (_typeof(subResult.node) === 'object') {
18971 -1 subResult.html = subResult.node.source;
18972 -1 if (options.elementRef && !subResult.node.fromFrame) {
18973 -1 subResult.element = subResult.node.element;
18974 -1 }
18975 -1 if (options.selectors !== false || subResult.node.fromFrame) {
18976 -1 subResult.target = subResult.node.selector;
18977 -1 }
18978 -1 if (options.ancestry) {
18979 -1 subResult.ancestry = subResult.node.ancestry;
18980 -1 }
18981 -1 if (options.xpath) {
18982 -1 subResult.xpath = subResult.node.xpath;
18983 -1 }
-1 23542 var serialElm = trimElementSpec(subResult.node, options);
-1 23543 Object.assign(subResult, serialElm);
18984 23544 }
18985 23545 delete subResult.result;
18986 23546 delete subResult.node;
@@ -18988,8 +23548,8 @@ module.exports = {
18988 23548 return subResult;
18989 23549 });
18990 23550 }
18991 -1 resultKeys.forEach(function(key2) {
18992 -1 return delete ruleResult[key2];
-1 23551 resultKeys.forEach(function(resultKey) {
-1 23552 return delete ruleResult[resultKey];
18993 23553 });
18994 23554 delete ruleResult.pageLevel;
18995 23555 delete ruleResult.result;
@@ -18998,56 +23558,98 @@ module.exports = {
18998 23558 });
18999 23559 return resultObject;
19000 23560 }
19001 -1 var process_aggregate_default = processAggregate;
-1 23561 function normalizeRelatedNodes(node, options) {
-1 23562 [ 'any', 'all', 'none' ].forEach(function(type2) {
-1 23563 if (!Array.isArray(node[type2])) {
-1 23564 return;
-1 23565 }
-1 23566 node[type2].filter(function(checkRes) {
-1 23567 return Array.isArray(checkRes.relatedNodes);
-1 23568 }).forEach(function(checkRes) {
-1 23569 checkRes.relatedNodes = checkRes.relatedNodes.map(function(relatedNode) {
-1 23570 return trimElementSpec(relatedNode, options);
-1 23571 });
-1 23572 });
-1 23573 });
-1 23574 }
-1 23575 function trimElementSpec() {
-1 23576 var elmSpec = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
-1 23577 var runOptions = arguments.length > 1 ? arguments[1] : undefined;
-1 23578 elmSpec = node_serializer_default.dqElmToSpec(elmSpec, runOptions);
-1 23579 var serialElm = {};
-1 23580 if (axe._audit.noHtml) {
-1 23581 serialElm.html = null;
-1 23582 } else {
-1 23583 var _elmSpec$source;
-1 23584 serialElm.html = (_elmSpec$source = elmSpec.source) !== null && _elmSpec$source !== void 0 ? _elmSpec$source : 'Undefined';
-1 23585 }
-1 23586 if (runOptions.elementRef && !elmSpec.fromFrame) {
-1 23587 var _elmSpec$element;
-1 23588 serialElm.element = (_elmSpec$element = elmSpec.element) !== null && _elmSpec$element !== void 0 ? _elmSpec$element : null;
-1 23589 }
-1 23590 if (runOptions.selectors !== false || elmSpec.fromFrame) {
-1 23591 var _elmSpec$selector;
-1 23592 serialElm.target = (_elmSpec$selector = elmSpec.selector) !== null && _elmSpec$selector !== void 0 ? _elmSpec$selector : [ ':root' ];
-1 23593 }
-1 23594 if (runOptions.ancestry) {
-1 23595 var _elmSpec$ancestry;
-1 23596 serialElm.ancestry = (_elmSpec$ancestry = elmSpec.ancestry) !== null && _elmSpec$ancestry !== void 0 ? _elmSpec$ancestry : [ ':root' ];
-1 23597 }
-1 23598 if (runOptions.xpath) {
-1 23599 var _elmSpec$xpath;
-1 23600 serialElm.xpath = (_elmSpec$xpath = elmSpec.xpath) !== null && _elmSpec$xpath !== void 0 ? _elmSpec$xpath : [ '/' ];
-1 23601 }
-1 23602 return serialElm;
-1 23603 }
19002 23604 var dataRegex = /\$\{\s?data\s?\}/g;
19003 -1 function substitute(str, data2) {
19004 -1 if (typeof data2 === 'string') {
19005 -1 return str.replace(dataRegex, data2);
-1 23605 function substitute(str, data) {
-1 23606 if (typeof data === 'string') {
-1 23607 return str.replace(dataRegex, data);
19006 23608 }
19007 -1 for (var prop in data2) {
19008 -1 if (data2.hasOwnProperty(prop)) {
-1 23609 for (var prop in data) {
-1 23610 if (data.hasOwnProperty(prop)) {
19009 23611 var regex = new RegExp('\\${\\s?data\\.' + prop + '\\s?}', 'g');
19010 -1 var replace = typeof data2[prop] === 'undefined' ? '' : String(data2[prop]);
-1 23612 var replace = typeof data[prop] === 'undefined' ? '' : String(data[prop]);
19011 23613 str = str.replace(regex, replace);
19012 23614 }
19013 23615 }
19014 23616 return str;
19015 23617 }
19016 -1 function processMessage(message, data2) {
-1 23618 function processMessage(message, data) {
19017 23619 if (!message) {
19018 23620 return;
19019 23621 }
19020 -1 if (Array.isArray(data2)) {
19021 -1 data2.values = data2.join(', ');
-1 23622 if (Array.isArray(data)) {
-1 23623 data.values = data.join(', ');
19022 23624 if (typeof message.singular === 'string' && typeof message.plural === 'string') {
19023 -1 var str2 = data2.length === 1 ? message.singular : message.plural;
19024 -1 return substitute(str2, data2);
-1 23625 var str2 = data.length === 1 ? message.singular : message.plural;
-1 23626 return substitute(str2, data);
19025 23627 }
19026 -1 return substitute(message, data2);
-1 23628 return substitute(message, data);
19027 23629 }
19028 23630 if (typeof message === 'string') {
19029 -1 return substitute(message, data2);
-1 23631 return substitute(message, data);
19030 23632 }
19031 -1 if (typeof data2 === 'string') {
19032 -1 var _str = message[data2];
19033 -1 return substitute(_str, data2);
-1 23633 if (typeof data === 'string') {
-1 23634 var _str = message[data];
-1 23635 return substitute(_str, data);
19034 23636 }
19035 23637 var str = message['default'] || incompleteFallbackMessage();
19036 -1 if (data2 && data2.messageKey && message[data2.messageKey]) {
19037 -1 str = message[data2.messageKey];
-1 23638 if (data && data.messageKey && message[data.messageKey]) {
-1 23639 str = message[data.messageKey];
19038 23640 }
19039 -1 return processMessage(str, data2);
-1 23641 return processMessage(str, data);
19040 23642 }
19041 23643 var process_message_default = processMessage;
19042 -1 function getCheckMessage(checkId, type, data2) {
-1 23644 function getCheckMessage(checkId, type2, data) {
19043 23645 var check = axe._audit.data.checks[checkId];
19044 23646 if (!check) {
19045 23647 throw new Error('Cannot get message for unknown check: '.concat(checkId, '.'));
19046 23648 }
19047 -1 if (!check.messages[type]) {
19048 -1 throw new Error('Check "'.concat(checkId, '"" does not have a "').concat(type, '" message.'));
-1 23649 if (!check.messages[type2]) {
-1 23650 throw new Error('Check "'.concat(checkId, '"" does not have a "').concat(type2, '" message.'));
19049 23651 }
19050 -1 return process_message_default(check.messages[type], data2);
-1 23652 return process_message_default(check.messages[type2], data);
19051 23653 }
19052 23654 var get_check_message_default = getCheckMessage;
19053 23655 function getCheckOption(check, ruleID, options) {
@@ -19105,21 +23707,21 @@ module.exports = {
19105 23707 return {};
19106 23708 }
19107 23709 var navigator = win.navigator, innerHeight = win.innerHeight, innerWidth = win.innerWidth;
19108 -1 var _ref44 = getOrientation(win) || {}, angle = _ref44.angle, type = _ref44.type;
-1 23710 var _ref65 = getOrientation(win) || {}, angle = _ref65.angle, type2 = _ref65.type;
19109 23711 return {
19110 23712 userAgent: navigator.userAgent,
19111 23713 windowWidth: innerWidth,
19112 23714 windowHeight: innerHeight,
19113 23715 orientationAngle: angle,
19114 -1 orientationType: type
-1 23716 orientationType: type2
19115 23717 };
19116 23718 }
19117 -1 function getOrientation(_ref45) {
19118 -1 var screen = _ref45.screen;
-1 23719 function getOrientation(_ref66) {
-1 23720 var screen = _ref66.screen;
19119 23721 return screen.orientation || screen.msOrientation || screen.mozOrientation;
19120 23722 }
19121 -1 function createFrameContext(frame, _ref46) {
19122 -1 var focusable = _ref46.focusable, page = _ref46.page;
-1 23723 function createFrameContext(frame, _ref67) {
-1 23724 var focusable = _ref67.focusable, page = _ref67.page;
19123 23725 return {
19124 23726 node: frame,
19125 23727 include: [],
@@ -19186,8 +23788,8 @@ module.exports = {
19186 23788 if (!isArrayLike(selectorList)) {
19187 23789 selectorList = [ selectorList ];
19188 23790 }
19189 -1 for (var _i11 = 0; _i11 < selectorList.length; _i11++) {
19190 -1 var normalizedSelector = normalizeContextSelector(selectorList[_i11]);
-1 23791 for (var _i21 = 0; _i21 < selectorList.length; _i21++) {
-1 23792 var normalizedSelector = normalizeContextSelector(selectorList[_i21]);
19191 23793 if (normalizedSelector) {
19192 23794 normalizedList.push(normalizedSelector);
19193 23795 }
@@ -19214,10 +23816,10 @@ module.exports = {
19214 23816 return;
19215 23817 }
19216 23818 var normalizedSelectors = [];
19217 -1 var _iterator5 = _createForOfIteratorHelper(frameSelectors), _step5;
-1 23819 var _iterator11 = _createForOfIteratorHelper(frameSelectors), _step11;
19218 23820 try {
19219 -1 for (_iterator5.s(); !(_step5 = _iterator5.n()).done; ) {
19220 -1 var selector = _step5.value;
-1 23821 for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
-1 23822 var selector = _step11.value;
19221 23823 if (isLabelledShadowDomSelector(selector)) {
19222 23824 assertLabelledShadowDomSelector(selector);
19223 23825 selector = selector.fromShadowDom;
@@ -19228,9 +23830,9 @@ module.exports = {
19228 23830 normalizedSelectors.push(selector);
19229 23831 }
19230 23832 } catch (err) {
19231 -1 _iterator5.e(err);
-1 23833 _iterator11.e(err);
19232 23834 } finally {
19233 -1 _iterator5.f();
-1 23835 _iterator11.f();
19234 23836 }
19235 23837 return normalizedSelectors;
19236 23838 }
@@ -19250,18 +23852,18 @@ module.exports = {
19250 23852 }
19251 23853 function assertLabelledFrameSelector(selector) {
19252 23854 assert2(Array.isArray(selector.fromFrames), 'fromFrames property must be an array');
19253 -1 assert2(selector.fromFrames.every(function(selector2) {
19254 -1 return !objectHasOwn(selector2, 'fromFrames');
-1 23855 assert2(selector.fromFrames.every(function(fromFrameSelector) {
-1 23856 return !objectHasOwn(fromFrameSelector, 'fromFrames');
19255 23857 }), 'Invalid context; fromFrames selector must be appended, rather than nested');
19256 23858 assert2(!objectHasOwn(selector, 'fromShadowDom'), 'fromFrames and fromShadowDom cannot be used on the same object');
19257 23859 }
19258 23860 function assertLabelledShadowDomSelector(selector) {
19259 23861 assert2(Array.isArray(selector.fromShadowDom), 'fromShadowDom property must be an array');
19260 -1 assert2(selector.fromShadowDom.every(function(selector2) {
19261 -1 return !objectHasOwn(selector2, 'fromFrames');
-1 23862 assert2(selector.fromShadowDom.every(function(fromShadowDomSelector) {
-1 23863 return !objectHasOwn(fromShadowDomSelector, 'fromFrames');
19262 23864 }), 'shadow selector must be inside fromFrame instead');
19263 -1 assert2(selector.fromShadowDom.every(function(selector2) {
19264 -1 return !objectHasOwn(selector2, 'fromShadowDom');
-1 23865 assert2(selector.fromShadowDom.every(function(fromShadowDomSelector) {
-1 23866 return !objectHasOwn(fromShadowDomSelector, 'fromShadowDom');
19265 23867 }), 'fromShadowDom selector must be appended, rather than nested');
19266 23868 }
19267 23869 function isShadowSelector(selector) {
@@ -19281,10 +23883,10 @@ module.exports = {
19281 23883 }
19282 23884 return Object.prototype.hasOwnProperty.call(obj, prop);
19283 23885 }
19284 -1 function parseSelectorArray(context, type) {
-1 23886 function parseSelectorArray(context, type2) {
19285 23887 var result = [];
19286 -1 for (var _i12 = 0, l = context[type].length; _i12 < l; _i12++) {
19287 -1 var item = context[type][_i12];
-1 23888 for (var _i22 = 0, l = context[type2].length; _i22 < l; _i22++) {
-1 23889 var item = context[type2][_i22];
19288 23890 if (item instanceof window.Node) {
19289 23891 if (item.documentElement instanceof window.Node) {
19290 23892 result.push(context.flatTree[0]);
@@ -19293,7 +23895,7 @@ module.exports = {
19293 23895 }
19294 23896 } else if (item && item.length) {
19295 23897 if (item.length > 1) {
19296 -1 pushUniqueFrameSelector(context, type, item);
-1 23898 pushUniqueFrameSelector(context, type2, item);
19297 23899 } else {
19298 23900 var nodeList = _shadowSelectAll(item[0]);
19299 23901 result.push.apply(result, _toConsumableArray(nodeList.map(function(node) {
@@ -19306,7 +23908,7 @@ module.exports = {
19306 23908 return r;
19307 23909 });
19308 23910 }
19309 -1 function pushUniqueFrameSelector(context, type, selectorArray) {
-1 23911 function pushUniqueFrameSelector(context, type2, selectorArray) {
19310 23912 context.frames = context.frames || [];
19311 23913 var frameSelector = selectorArray.shift();
19312 23914 var frames = _shadowSelectAll(frameSelector);
@@ -19318,32 +23920,32 @@ module.exports = {
19318 23920 frameContext = createFrameContext(frame, context);
19319 23921 context.frames.push(frameContext);
19320 23922 }
19321 -1 frameContext[type].push(selectorArray);
-1 23923 frameContext[type2].push(selectorArray);
19322 23924 });
19323 23925 }
19324 23926 function Context(spec, flatTree) {
19325 -1 var _spec, _spec2, _spec3, _spec4, _this2 = this;
19326 -1 spec = clone_default(spec);
-1 23927 var _spec, _spec2, _spec3, _spec4, _this5 = this;
-1 23928 spec = _clone(spec);
19327 23929 this.frames = [];
19328 23930 this.page = typeof ((_spec = spec) === null || _spec === void 0 ? void 0 : _spec.page) === 'boolean' ? spec.page : void 0;
19329 23931 this.initiator = typeof ((_spec2 = spec) === null || _spec2 === void 0 ? void 0 : _spec2.initiator) === 'boolean' ? spec.initiator : true;
19330 23932 this.focusable = typeof ((_spec3 = spec) === null || _spec3 === void 0 ? void 0 : _spec3.focusable) === 'boolean' ? spec.focusable : true;
19331 23933 this.size = _typeof((_spec4 = spec) === null || _spec4 === void 0 ? void 0 : _spec4.size) === 'object' ? spec.size : {};
19332 23934 spec = normalizeContext(spec);
19333 -1 this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : get_flattened_tree_default(getRootNode2(spec));
-1 23935 this.flatTree = flatTree !== null && flatTree !== void 0 ? flatTree : _getFlattenedTree(getRootNode2(spec));
19334 23936 this.exclude = spec.exclude;
19335 23937 this.include = spec.include;
19336 23938 this.include = parseSelectorArray(this, 'include');
19337 23939 this.exclude = parseSelectorArray(this, 'exclude');
19338 23940 _select('frame, iframe', this).forEach(function(frame) {
19339 -1 if (_isNodeInContext(frame, _this2)) {
19340 -1 pushUniqueFrame(_this2, frame.actualNode);
-1 23941 if (_isNodeInContext(frame, _this5)) {
-1 23942 pushUniqueFrame(_this5, frame.actualNode);
19341 23943 }
19342 23944 });
19343 23945 if (typeof this.page === 'undefined') {
19344 23946 this.page = isPageContext(this);
19345 23947 this.frames.forEach(function(frame) {
19346 -1 frame.page = _this2.page;
-1 23948 frame.page = _this5.page;
19347 23949 });
19348 23950 }
19349 23951 validateContext(this);
@@ -19358,8 +23960,8 @@ module.exports = {
19358 23960 }
19359 23961 context.frames.push(createFrameContext(frame, context));
19360 23962 }
19361 -1 function isPageContext(_ref47) {
19362 -1 var include = _ref47.include;
-1 23963 function isPageContext(_ref68) {
-1 23964 var include = _ref68.include;
19363 23965 return include.length === 1 && include[0].actualNode === document.documentElement;
19364 23966 }
19365 23967 function validateContext(context) {
@@ -19368,11 +23970,11 @@ module.exports = {
19368 23970 throw new Error('No elements found for include in ' + env + ' Context');
19369 23971 }
19370 23972 }
19371 -1 function getRootNode2(_ref48) {
19372 -1 var include = _ref48.include, exclude = _ref48.exclude;
-1 23973 function getRootNode2(_ref69) {
-1 23974 var include = _ref69.include, exclude = _ref69.exclude;
19373 23975 var selectors = Array.from(include).concat(Array.from(exclude));
19374 -1 for (var _i13 = 0; _i13 < selectors.length; _i13++) {
19375 -1 var item = selectors[_i13];
-1 23976 for (var _i23 = 0; _i23 < selectors.length; _i23++) {
-1 23977 var item = selectors[_i23];
19376 23978 if (item instanceof window.Element) {
19377 23979 return item.ownerDocument.documentElement;
19378 23980 }
@@ -19388,8 +23990,8 @@ module.exports = {
19388 23990 return [];
19389 23991 }
19390 23992 var _Context = new Context(context), frames = _Context.frames;
19391 -1 return frames.map(function(_ref49) {
19392 -1 var node = _ref49.node, frameContext = _objectWithoutProperties(_ref49, _excluded7);
-1 23993 return frames.map(function(_ref70) {
-1 23994 var node = _ref70.node, frameContext = _objectWithoutProperties(_ref70, _excluded14);
19393 23995 frameContext.initiator = false;
19394 23996 var frameSelector = _getAncestry(node);
19395 23997 return {
@@ -19398,17 +24000,17 @@ module.exports = {
19398 24000 };
19399 24001 });
19400 24002 }
19401 -1 function getRule(ruleId) {
19402 -1 var rule = axe._audit.rules.find(function(rule2) {
19403 -1 return rule2.id === ruleId;
-1 24003 function _getRule(ruleId) {
-1 24004 var rule = axe._audit.rules.find(function(_ref71) {
-1 24005 var id = _ref71.id;
-1 24006 return id === ruleId;
19404 24007 });
19405 24008 if (!rule) {
19406 24009 throw new Error('Cannot find rule by id: '.concat(ruleId));
19407 24010 }
19408 24011 return rule;
19409 24012 }
19410 -1 var get_rule_default = getRule;
19411 -1 function _getScroll(elm) {
-1 24013 function getScroll(elm) {
19412 24014 var buffer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
19413 24015 var overflowX = elm.scrollWidth > elm.clientWidth + buffer;
19414 24016 var overflowY = elm.scrollHeight > elm.clientHeight + buffer;
@@ -19430,9 +24032,10 @@ module.exports = {
19430 24032 var overflowProp = style.getPropertyValue(prop);
19431 24033 return [ 'scroll', 'auto' ].includes(overflowProp);
19432 24034 }
-1 24035 var get_scroll_default = memoize_default(getScroll);
19433 24036 function getElmScrollRecursive(root) {
19434 24037 return Array.from(root.children || root.childNodes || []).reduce(function(scrolls, elm) {
19435 -1 var scroll = _getScroll(elm);
-1 24038 var scroll = get_scroll_default(elm);
19436 24039 if (scroll) {
19437 24040 scrolls.push(scroll);
19438 24041 }
@@ -19455,20 +24058,20 @@ module.exports = {
19455 24058 }
19456 24059 var get_scroll_state_default = getScrollState;
19457 24060 function _getStandards() {
19458 -1 return clone_default(standards_default);
-1 24061 return _clone(standards_default);
19459 24062 }
19460 24063 function getStyleSheetFactory(dynamicDoc) {
19461 24064 if (!dynamicDoc) {
19462 24065 throw new Error('axe.utils.getStyleSheetFactory should be invoked with an argument');
19463 24066 }
19464 24067 return function(options) {
19465 -1 var data2 = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;
-1 24068 var data = options.data, _options$isCrossOrigi = options.isCrossOrigin, isCrossOrigin = _options$isCrossOrigi === void 0 ? false : _options$isCrossOrigi, shadowId = options.shadowId, root = options.root, priority = options.priority, _options$isLink = options.isLink, isLink = _options$isLink === void 0 ? false : _options$isLink;
19466 24069 var style = dynamicDoc.createElement('style');
19467 24070 if (isLink) {
19468 -1 var text = dynamicDoc.createTextNode('@import "'.concat(data2.href, '"'));
-1 24071 var text = dynamicDoc.createTextNode('@import "'.concat(data.href, '"'));
19469 24072 style.appendChild(text);
19470 24073 } else {
19471 -1 style.appendChild(dynamicDoc.createTextNode(data2));
-1 24074 style.appendChild(dynamicDoc.createTextNode(data));
19472 24075 }
19473 24076 dynamicDoc.head.appendChild(style);
19474 24077 return {
@@ -19538,8 +24141,8 @@ module.exports = {
19538 24141 return !!standards_default.htmlElms[nodeName2];
19539 24142 }
19540 24143 var is_html_element_default = isHtmlElement;
19541 -1 function _isNodeInContext(node, _ref50) {
19542 -1 var _ref50$include = _ref50.include, include = _ref50$include === void 0 ? [] : _ref50$include, _ref50$exclude = _ref50.exclude, exclude = _ref50$exclude === void 0 ? [] : _ref50$exclude;
-1 24144 function _isNodeInContext(node, _ref72) {
-1 24145 var _ref72$include = _ref72.include, include = _ref72$include === void 0 ? [] : _ref72$include, _ref72$exclude = _ref72.exclude, exclude = _ref72$exclude === void 0 ? [] : _ref72$exclude;
19543 24146 var filterInclude = include.filter(function(candidate) {
19544 24147 return _contains(candidate, node);
19545 24148 });
@@ -19558,39 +24161,38 @@ module.exports = {
19558 24161 }
19559 24162 function getDeepest(collection) {
19560 24163 var deepest;
19561 -1 var _iterator6 = _createForOfIteratorHelper(collection), _step6;
-1 24164 var _iterator12 = _createForOfIteratorHelper(collection), _step12;
19562 24165 try {
19563 -1 for (_iterator6.s(); !(_step6 = _iterator6.n()).done; ) {
19564 -1 var node = _step6.value;
-1 24166 for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
-1 24167 var node = _step12.value;
19565 24168 if (!deepest || !_contains(node, deepest)) {
19566 24169 deepest = node;
19567 24170 }
19568 24171 }
19569 24172 } catch (err) {
19570 -1 _iterator6.e(err);
-1 24173 _iterator12.e(err);
19571 24174 } finally {
19572 -1 _iterator6.f();
-1 24175 _iterator12.f();
19573 24176 }
19574 24177 return deepest;
19575 24178 }
19576 -1 function matchAncestry(ancestryA, ancestryB) {
-1 24179 function _matchAncestry(ancestryA, ancestryB) {
19577 24180 if (ancestryA.length !== ancestryB.length) {
19578 24181 return false;
19579 24182 }
19580 -1 return ancestryA.every(function(selectorA, index) {
19581 -1 var selectorB = ancestryB[index];
-1 24183 return ancestryA.every(function(selectorA, ancestorIndex) {
-1 24184 var selectorB = ancestryB[ancestorIndex];
19582 24185 if (!Array.isArray(selectorA)) {
19583 24186 return selectorA === selectorB;
19584 24187 }
19585 24188 if (selectorA.length !== selectorB.length) {
19586 24189 return false;
19587 24190 }
19588 -1 return selectorA.every(function(str, index2) {
19589 -1 return selectorB[index2] === str;
-1 24191 return selectorA.every(function(str, selectorIndex) {
-1 24192 return selectorB[selectorIndex] === str;
19590 24193 });
19591 24194 });
19592 24195 }
19593 -1 var match_ancestry_default = matchAncestry;
19594 24196 function nodeSorter(nodeA, nodeB) {
19595 24197 nodeA = nodeA.actualNode || nodeA;
19596 24198 nodeB = nodeB.actualNode || nodeB;
@@ -19604,6 +24206,18 @@ module.exports = {
19604 24206 }
19605 24207 }
19606 24208 var node_sorter_default = nodeSorter;
-1 24209 function _nodeLookup(node) {
-1 24210 if (node instanceof abstract_virtual_node_default) {
-1 24211 return {
-1 24212 vNode: node,
-1 24213 domNode: node.actualNode
-1 24214 };
-1 24215 }
-1 24216 return {
-1 24217 vNode: get_node_from_tree_default(node),
-1 24218 domNode: node
-1 24219 };
-1 24220 }
19607 24221 function parseSameOriginStylesheet(sheet, options, priority, importedUrls) {
19608 24222 var isCrossOrigin = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
19609 24223 var rules = Array.from(sheet.cssRules);
@@ -19687,9 +24301,9 @@ module.exports = {
19687 24301 reject(request.responseText);
19688 24302 });
19689 24303 request.send();
19690 -1 }).then(function(data2) {
-1 24304 }).then(function(data) {
19691 24305 var result = options.convertDataToStylesheet({
19692 -1 data: data2,
-1 24306 data: data,
19693 24307 isCrossOrigin: isCrossOrigin,
19694 24308 priority: priority,
19695 24309 root: options.rootNode,
@@ -19719,304 +24333,94 @@ module.exports = {
19719 24333 auditStart: function auditStart() {
19720 24334 this.mark('mark_audit_start');
19721 24335 },
19722 -1 auditEnd: function auditEnd() {
19723 -1 this.mark('mark_audit_end');
19724 -1 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
19725 -1 this.logMeasures();
19726 -1 },
19727 -1 mark: function mark(markName) {
19728 -1 if (window.performance && window.performance.mark !== void 0) {
19729 -1 window.performance.mark(markName);
19730 -1 }
19731 -1 },
19732 -1 measure: function measure(measureName, startMark, endMark) {
19733 -1 if (window.performance && window.performance.measure !== void 0) {
19734 -1 window.performance.measure(measureName, startMark, endMark);
19735 -1 }
19736 -1 },
19737 -1 logMeasures: function logMeasures(measureName) {
19738 -1 function logMeasure(req2) {
19739 -1 log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');
19740 -1 }
19741 -1 if (window.performance && window.performance.getEntriesByType !== void 0) {
19742 -1 var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
19743 -1 var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
19744 -1 return measure.startTime >= axeStart.startTime;
19745 -1 });
19746 -1 for (var i = 0; i < measures.length; ++i) {
19747 -1 var req = measures[i];
19748 -1 if (req.name === measureName) {
19749 -1 logMeasure(req);
19750 -1 return;
19751 -1 }
19752 -1 logMeasure(req);
19753 -1 }
19754 -1 }
19755 -1 },
19756 -1 timeElapsed: function timeElapsed() {
19757 -1 return now() - lastRecordedTime;
19758 -1 },
19759 -1 reset: function reset() {
19760 -1 if (!originalTime) {
19761 -1 originalTime = now();
19762 -1 }
19763 -1 lastRecordedTime = now();
19764 -1 }
19765 -1 };
19766 -1 }();
19767 -1 var performance_timer_default = performanceTimer;
19768 -1 if (typeof Object.assign !== 'function') {
19769 -1 (function() {
19770 -1 Object.assign = function(target) {
19771 -1 if (target === void 0 || target === null) {
19772 -1 throw new TypeError('Cannot convert undefined or null to object');
19773 -1 }
19774 -1 var output = Object(target);
19775 -1 for (var index = 1; index < arguments.length; index++) {
19776 -1 var source = arguments[index];
19777 -1 if (source !== void 0 && source !== null) {
19778 -1 for (var nextKey in source) {
19779 -1 if (source.hasOwnProperty(nextKey)) {
19780 -1 output[nextKey] = source[nextKey];
19781 -1 }
19782 -1 }
19783 -1 }
19784 -1 }
19785 -1 return output;
19786 -1 };
19787 -1 })();
19788 -1 }
19789 -1 if (!Array.prototype.find) {
19790 -1 Object.defineProperty(Array.prototype, 'find', {
19791 -1 value: function value(predicate) {
19792 -1 if (this === null) {
19793 -1 throw new TypeError('Array.prototype.find called on null or undefined');
19794 -1 }
19795 -1 if (typeof predicate !== 'function') {
19796 -1 throw new TypeError('predicate must be a function');
19797 -1 }
19798 -1 var list = Object(this);
19799 -1 var length = list.length >>> 0;
19800 -1 var thisArg = arguments[1];
19801 -1 var value;
19802 -1 for (var i = 0; i < length; i++) {
19803 -1 value = list[i];
19804 -1 if (predicate.call(thisArg, value, i, list)) {
19805 -1 return value;
19806 -1 }
19807 -1 }
19808 -1 return void 0;
19809 -1 }
19810 -1 });
19811 -1 }
19812 -1 if (!Array.prototype.findIndex) {
19813 -1 Object.defineProperty(Array.prototype, 'findIndex', {
19814 -1 value: function value(predicate, thisArg) {
19815 -1 if (this === null) {
19816 -1 throw new TypeError('Array.prototype.find called on null or undefined');
19817 -1 }
19818 -1 if (typeof predicate !== 'function') {
19819 -1 throw new TypeError('predicate must be a function');
19820 -1 }
19821 -1 var list = Object(this);
19822 -1 var length = list.length >>> 0;
19823 -1 var value;
19824 -1 for (var i = 0; i < length; i++) {
19825 -1 value = list[i];
19826 -1 if (predicate.call(thisArg, value, i, list)) {
19827 -1 return i;
19828 -1 }
19829 -1 }
19830 -1 return -1;
19831 -1 }
19832 -1 });
19833 -1 }
19834 -1 function _pollyfillElementsFromPoint() {
19835 -1 if (document.elementsFromPoint) {
19836 -1 return document.elementsFromPoint;
19837 -1 }
19838 -1 if (document.msElementsFromPoint) {
19839 -1 return document.msElementsFromPoint;
19840 -1 }
19841 -1 var usePointer = function() {
19842 -1 var element = document.createElement('x');
19843 -1 element.style.cssText = 'pointer-events:auto';
19844 -1 return element.style.pointerEvents === 'auto';
19845 -1 }();
19846 -1 var cssProp = usePointer ? 'pointer-events' : 'visibility';
19847 -1 var cssDisableVal = usePointer ? 'none' : 'hidden';
19848 -1 var style = document.createElement('style');
19849 -1 style.innerHTML = usePointer ? '* { pointer-events: all }' : '* { visibility: visible }';
19850 -1 return function(x, y) {
19851 -1 var current, i, d;
19852 -1 var elements = [];
19853 -1 var previousPointerEvents = [];
19854 -1 document.head.appendChild(style);
19855 -1 while ((current = document.elementFromPoint(x, y)) && elements.indexOf(current) === -1) {
19856 -1 elements.push(current);
19857 -1 previousPointerEvents.push({
19858 -1 value: current.style.getPropertyValue(cssProp),
19859 -1 priority: current.style.getPropertyPriority(cssProp)
19860 -1 });
19861 -1 current.style.setProperty(cssProp, cssDisableVal, 'important');
19862 -1 }
19863 -1 if (elements.indexOf(document.documentElement) < elements.length - 1) {
19864 -1 elements.splice(elements.indexOf(document.documentElement), 1);
19865 -1 elements.push(document.documentElement);
19866 -1 }
19867 -1 for (i = previousPointerEvents.length; !!(d = previousPointerEvents[--i]); ) {
19868 -1 elements[i].style.setProperty(cssProp, d.value ? d.value : '', d.priority);
19869 -1 }
19870 -1 document.head.removeChild(style);
19871 -1 return elements;
19872 -1 };
19873 -1 }
19874 -1 if (typeof window.addEventListener === 'function') {
19875 -1 document.elementsFromPoint = _pollyfillElementsFromPoint();
19876 -1 }
19877 -1 if (!Array.prototype.includes) {
19878 -1 Object.defineProperty(Array.prototype, 'includes', {
19879 -1 value: function value(searchElement) {
19880 -1 var O = Object(this);
19881 -1 var len = parseInt(O.length, 10) || 0;
19882 -1 if (len === 0) {
19883 -1 return false;
19884 -1 }
19885 -1 var n = parseInt(arguments[1], 10) || 0;
19886 -1 var k;
19887 -1 if (n >= 0) {
19888 -1 k = n;
19889 -1 } else {
19890 -1 k = len + n;
19891 -1 if (k < 0) {
19892 -1 k = 0;
19893 -1 }
19894 -1 }
19895 -1 var currentElement;
19896 -1 while (k < len) {
19897 -1 currentElement = O[k];
19898 -1 if (searchElement === currentElement || searchElement !== searchElement && currentElement !== currentElement) {
19899 -1 return true;
19900 -1 }
19901 -1 k++;
19902 -1 }
19903 -1 return false;
19904 -1 }
19905 -1 });
19906 -1 }
19907 -1 if (!Array.prototype.some) {
19908 -1 Object.defineProperty(Array.prototype, 'some', {
19909 -1 value: function value(fun) {
19910 -1 if (this == null) {
19911 -1 throw new TypeError('Array.prototype.some called on null or undefined');
19912 -1 }
19913 -1 if (typeof fun !== 'function') {
19914 -1 throw new TypeError();
19915 -1 }
19916 -1 var t = Object(this);
19917 -1 var len = t.length >>> 0;
19918 -1 var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
19919 -1 for (var i = 0; i < len; i++) {
19920 -1 if (i in t && fun.call(thisArg, t[i], i, t)) {
19921 -1 return true;
19922 -1 }
19923 -1 }
19924 -1 return false;
19925 -1 }
19926 -1 });
19927 -1 }
19928 -1 if (!Array.from) {
19929 -1 Object.defineProperty(Array, 'from', {
19930 -1 value: function() {
19931 -1 var toStr = Object.prototype.toString;
19932 -1 var isCallable = function isCallable(fn) {
19933 -1 return typeof fn === 'function' || toStr.call(fn) === '[object Function]';
19934 -1 };
19935 -1 var toInteger = function toInteger(value) {
19936 -1 var number = Number(value);
19937 -1 if (isNaN(number)) {
19938 -1 return 0;
19939 -1 }
19940 -1 if (number === 0 || !isFinite(number)) {
19941 -1 return number;
19942 -1 }
19943 -1 return (number > 0 ? 1 : -1) * Math.floor(Math.abs(number));
19944 -1 };
19945 -1 var maxSafeInteger = Math.pow(2, 53) - 1;
19946 -1 var toLength = function toLength(value) {
19947 -1 var len = toInteger(value);
19948 -1 return Math.min(Math.max(len, 0), maxSafeInteger);
19949 -1 };
19950 -1 return function from(arrayLike) {
19951 -1 var C = this;
19952 -1 var items = Object(arrayLike);
19953 -1 if (arrayLike == null) {
19954 -1 throw new TypeError('Array.from requires an array-like object - not null or undefined');
19955 -1 }
19956 -1 var mapFn = arguments.length > 1 ? arguments[1] : void 0;
19957 -1 var T;
19958 -1 if (typeof mapFn !== 'undefined') {
19959 -1 if (!isCallable(mapFn)) {
19960 -1 throw new TypeError('Array.from: when provided, the second argument must be a function');
19961 -1 }
19962 -1 if (arguments.length > 2) {
19963 -1 T = arguments[2];
19964 -1 }
19965 -1 }
19966 -1 var len = toLength(items.length);
19967 -1 var A = isCallable(C) ? Object(new C(len)) : new Array(len);
19968 -1 var k = 0;
19969 -1 var kValue;
19970 -1 while (k < len) {
19971 -1 kValue = items[k];
19972 -1 if (mapFn) {
19973 -1 A[k] = typeof T === 'undefined' ? mapFn(kValue, k) : mapFn.call(T, kValue, k);
19974 -1 } else {
19975 -1 A[k] = kValue;
-1 24336 auditEnd: function auditEnd() {
-1 24337 this.mark('mark_audit_end');
-1 24338 this.measure('audit_start_to_end', 'mark_audit_start', 'mark_audit_end');
-1 24339 this.logMeasures();
-1 24340 },
-1 24341 mark: function mark(markName) {
-1 24342 if (window.performance && window.performance.mark !== void 0) {
-1 24343 window.performance.mark(markName);
-1 24344 }
-1 24345 },
-1 24346 measure: function measure(measureName, startMark, endMark) {
-1 24347 if (window.performance && window.performance.measure !== void 0) {
-1 24348 window.performance.measure(measureName, startMark, endMark);
-1 24349 }
-1 24350 },
-1 24351 logMeasures: function logMeasures(measureName) {
-1 24352 function logMeasure(req2) {
-1 24353 log_default('Measure ' + req2.name + ' took ' + req2.duration + 'ms');
-1 24354 }
-1 24355 if (window.performance && window.performance.getEntriesByType !== void 0) {
-1 24356 var axeStart = window.performance.getEntriesByName('mark_axe_start')[0];
-1 24357 var measures = window.performance.getEntriesByType('measure').filter(function(measure) {
-1 24358 return measure.startTime >= axeStart.startTime;
-1 24359 });
-1 24360 for (var i = 0; i < measures.length; ++i) {
-1 24361 var req = measures[i];
-1 24362 if (req.name === measureName) {
-1 24363 logMeasure(req);
-1 24364 return;
19976 24365 }
19977 -1 k += 1;
-1 24366 logMeasure(req);
19978 24367 }
19979 -1 A.length = len;
19980 -1 return A;
19981 -1 };
19982 -1 }()
19983 -1 });
19984 -1 }
19985 -1 if (!String.prototype.includes) {
19986 -1 String.prototype.includes = function(search, start) {
19987 -1 if (typeof start !== 'number') {
19988 -1 start = 0;
-1 24368 }
-1 24369 },
-1 24370 timeElapsed: function timeElapsed() {
-1 24371 return now() - lastRecordedTime;
-1 24372 },
-1 24373 reset: function reset() {
-1 24374 if (!originalTime) {
-1 24375 originalTime = now();
-1 24376 }
-1 24377 lastRecordedTime = now();
19989 24378 }
19990 -1 if (start + search.length > this.length) {
19991 -1 return false;
19992 -1 } else {
19993 -1 return this.indexOf(search, start) !== -1;
-1 24379 };
-1 24380 }();
-1 24381 var performance_timer_default = performanceTimer;
-1 24382 function _pollyfillElementsFromPoint() {
-1 24383 if (document.elementsFromPoint) {
-1 24384 return document.elementsFromPoint;
-1 24385 }
-1 24386 if (document.msElementsFromPoint) {
-1 24387 return document.msElementsFromPoint;
-1 24388 }
-1 24389 var usePointer = function() {
-1 24390 var element = document.createElement('x');
-1 24391 element.style.cssText = 'pointer-events:auto';
-1 24392 return element.style.pointerEvents === 'auto';
-1 24393 }();
-1 24394 var cssProp = usePointer ? 'pointer-events' : 'visibility';
-1 24395 var cssDisableVal = usePointer ? 'none' : 'hidden';
-1 24396 var style = document.createElement('style');
-1 24397 style.innerHTML = usePointer ? '* { pointer-events: all }' : '* { visibility: visible }';
-1 24398 return function(x, y) {
-1 24399 var current, i, d2;
-1 24400 var elements = [];
-1 24401 var previousPointerEvents = [];
-1 24402 document.head.appendChild(style);
-1 24403 while ((current = document.elementFromPoint(x, y)) && elements.indexOf(current) === -1) {
-1 24404 elements.push(current);
-1 24405 previousPointerEvents.push({
-1 24406 value: current.style.getPropertyValue(cssProp),
-1 24407 priority: current.style.getPropertyPriority(cssProp)
-1 24408 });
-1 24409 current.style.setProperty(cssProp, cssDisableVal, 'important');
-1 24410 }
-1 24411 if (elements.indexOf(document.documentElement) < elements.length - 1) {
-1 24412 elements.splice(elements.indexOf(document.documentElement), 1);
-1 24413 elements.push(document.documentElement);
-1 24414 }
-1 24415 for (i = previousPointerEvents.length; !!(d2 = previousPointerEvents[--i]); ) {
-1 24416 elements[i].style.setProperty(cssProp, d2.value ? d2.value : '', d2.priority);
19994 24417 }
-1 24418 document.head.removeChild(style);
-1 24419 return elements;
19995 24420 };
19996 24421 }
19997 -1 if (!Array.prototype.flat) {
19998 -1 Object.defineProperty(Array.prototype, 'flat', {
19999 -1 configurable: true,
20000 -1 value: function flat() {
20001 -1 var depth = isNaN(arguments[0]) ? 1 : Number(arguments[0]);
20002 -1 return depth ? Array.prototype.reduce.call(this, function(acc, cur) {
20003 -1 if (Array.isArray(cur)) {
20004 -1 acc.push.apply(acc, flat.call(cur, depth - 1));
20005 -1 } else {
20006 -1 acc.push(cur);
20007 -1 }
20008 -1 return acc;
20009 -1 }, []) : Array.prototype.slice.call(this);
20010 -1 },
20011 -1 writable: true
20012 -1 });
20013 -1 }
20014 -1 if (window.Node && !('isConnected' in window.Node.prototype)) {
20015 -1 Object.defineProperty(window.Node.prototype, 'isConnected', {
20016 -1 get: function get() {
20017 -1 return !this.ownerDocument || !(this.ownerDocument.compareDocumentPosition(this) & this.DOCUMENT_POSITION_DISCONNECTED);
20018 -1 }
20019 -1 });
-1 24422 if (typeof window.addEventListener === 'function') {
-1 24423 document.elementsFromPoint = _pollyfillElementsFromPoint();
20020 24424 }
20021 24425 function uniqueArray(arr1, arr2) {
20022 24426 return arr1.concat(arr2).filter(function(elem, pos, arr) {
@@ -20033,8 +24437,10 @@ module.exports = {
20033 24437 retVal.parentShadowId = parentShadowId;
20034 24438 return retVal;
20035 24439 }
20036 -1 var recycledLocalVariables = [];
20037 24440 function matchExpressions(domTree, expressions, filter) {
-1 24441 var recycledLocalVariables = cache_default.get('qsa.recycledLocalVariables', function() {
-1 24442 return [];
-1 24443 });
20038 24444 var stack = [];
20039 24445 var vNodes = Array.isArray(domTree) ? domTree : [ domTree ];
20040 24446 var currentLevel = createLocalVariables(vNodes, expressions, null, domTree[0].shadowId, recycledLocalVariables.pop());
@@ -20046,9 +24452,9 @@ module.exports = {
20046 24452 var childAny = null;
20047 24453 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);
20048 24454 var added = false;
20049 -1 for (var _i14 = 0; _i14 < combinedLength; _i14++) {
-1 24455 for (var _i24 = 0; _i24 < combinedLength; _i24++) {
20050 24456 var _currentLevel$anyLeve2, _currentLevel$anyLeve3, _currentLevel$anyLeve4;
20051 -1 var exp = _i14 < (((_currentLevel$anyLeve2 = currentLevel.anyLevel) === null || _currentLevel$anyLeve2 === void 0 ? void 0 : _currentLevel$anyLeve2.length) || 0) ? currentLevel.anyLevel[_i14] : currentLevel.thisLevel[_i14 - (((_currentLevel$anyLeve3 = currentLevel.anyLevel) === null || _currentLevel$anyLeve3 === void 0 ? void 0 : _currentLevel$anyLeve3.length) || 0)];
-1 24457 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)];
20052 24458 if ((!exp[0].id || vNode.shadowId === currentLevel.parentShadowId) && _matchesExpression(vNode, exp[0])) {
20053 24459 if (exp.length === 1) {
20054 24460 if (!added && (!filter || filter(vNode))) {
@@ -20092,8 +24498,8 @@ module.exports = {
20092 24498 return matchExpressions(domTree, expressions, filter);
20093 24499 }
20094 24500 var query_selector_all_filter_default = querySelectorAllFilter;
20095 -1 function preloadCssom(_ref51) {
20096 -1 var _ref51$treeRoot = _ref51.treeRoot, treeRoot = _ref51$treeRoot === void 0 ? axe._tree[0] : _ref51$treeRoot;
-1 24501 function preloadCssom(_ref73) {
-1 24502 var _ref73$treeRoot = _ref73.treeRoot, treeRoot = _ref73$treeRoot === void 0 ? axe._tree[0] : _ref73$treeRoot;
20097 24503 var rootNodes = getAllRootNodesInTree(treeRoot);
20098 24504 if (!rootNodes.length) {
20099 24505 return Promise.resolve();
@@ -20123,8 +24529,8 @@ module.exports = {
20123 24529 }
20124 24530 function getCssomForAllRootNodes(rootNodes, convertDataToStylesheet) {
20125 24531 var promises = [];
20126 -1 rootNodes.forEach(function(_ref52, index) {
20127 -1 var rootNode = _ref52.rootNode, shadowId = _ref52.shadowId;
-1 24532 rootNodes.forEach(function(_ref74, index) {
-1 24533 var rootNode = _ref74.rootNode, shadowId = _ref74.shadowId;
20128 24534 var sheets = getStylesheetsOfRootNode(rootNode, shadowId, convertDataToStylesheet);
20129 24535 if (!sheets) {
20130 24536 return Promise.all(promises);
@@ -20137,11 +24543,11 @@ module.exports = {
20137 24543 rootIndex: rootIndex
20138 24544 };
20139 24545 var importedUrls = [];
20140 -1 var p = Promise.all(sheets.map(function(sheet, sheetIndex) {
-1 24546 var p2 = Promise.all(sheets.map(function(sheet, sheetIndex) {
20141 24547 var priority = [ rootIndex, sheetIndex ];
20142 24548 return parse_stylesheet_default(sheet, parseOptions, priority, importedUrls);
20143 24549 }));
20144 -1 promises.push(p);
-1 24550 promises.push(p2);
20145 24551 });
20146 24552 return Promise.all(promises);
20147 24553 }
@@ -20162,14 +24568,16 @@ module.exports = {
20162 24568 function getStylesheetsFromDocumentFragment(rootNode, convertDataToStylesheet) {
20163 24569 return Array.from(rootNode.children).filter(filerStyleAndLinkAttributesInDocumentFragment).reduce(function(out, node) {
20164 24570 var nodeName2 = node.nodeName.toUpperCase();
20165 -1 var data2 = nodeName2 === 'STYLE' ? node.textContent : node;
-1 24571 var data = nodeName2 === 'STYLE' ? node.textContent : node;
20166 24572 var isLink = nodeName2 === 'LINK';
20167 24573 var stylesheet = convertDataToStylesheet({
20168 -1 data: data2,
-1 24574 data: data,
20169 24575 isLink: isLink,
20170 24576 root: rootNode
20171 24577 });
20172 -1 out.push(stylesheet.sheet);
-1 24578 if (stylesheet.sheet) {
-1 24579 out.push(stylesheet.sheet);
-1 24580 }
20173 24581 return out;
20174 24582 }, []);
20175 24583 }
@@ -20208,10 +24616,10 @@ module.exports = {
20208 24616 return true;
20209 24617 });
20210 24618 }
20211 -1 function preloadMedia(_ref53) {
20212 -1 var _ref53$treeRoot = _ref53.treeRoot, treeRoot = _ref53$treeRoot === void 0 ? axe._tree[0] : _ref53$treeRoot;
20213 -1 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref54) {
20214 -1 var actualNode = _ref54.actualNode;
-1 24619 function preloadMedia(_ref75) {
-1 24620 var _ref75$treeRoot = _ref75.treeRoot, treeRoot = _ref75$treeRoot === void 0 ? axe._tree[0] : _ref75$treeRoot;
-1 24621 var mediaVirtualNodes = query_selector_all_filter_default(treeRoot, 'video, audio', function(_ref76) {
-1 24622 var actualNode = _ref76.actualNode;
20215 24623 if (actualNode.hasAttribute('src')) {
20216 24624 return !!actualNode.getAttribute('src');
20217 24625 }
@@ -20223,8 +24631,8 @@ module.exports = {
20223 24631 }
20224 24632 return true;
20225 24633 });
20226 -1 return Promise.all(mediaVirtualNodes.map(function(_ref55) {
20227 -1 var actualNode = _ref55.actualNode;
-1 24634 return Promise.all(mediaVirtualNodes.map(function(_ref77) {
-1 24635 var actualNode = _ref77.actualNode;
20228 24636 return isMediaElementReady(actualNode);
20229 24637 }));
20230 24638 }
@@ -20241,8 +24649,37 @@ module.exports = {
20241 24649 elm.addEventListener('loadedmetadata', onMediaReady);
20242 24650 });
20243 24651 }
20244 -1 function isValidPreloadObject(preload2) {
20245 -1 return _typeof(preload2) === 'object' && Array.isArray(preload2.assets);
-1 24652 function _preload(options) {
-1 24653 var preloadFunctionsMap = {
-1 24654 cssom: preload_cssom_default,
-1 24655 media: preload_media_default
-1 24656 };
-1 24657 if (!_shouldPreload(options)) {
-1 24658 return Promise.resolve();
-1 24659 }
-1 24660 return new Promise(function(resolve, reject) {
-1 24661 var _getPreloadConfig2 = _getPreloadConfig(options), assets = _getPreloadConfig2.assets, timeout = _getPreloadConfig2.timeout;
-1 24662 var preloadTimeout = setTimeout(function() {
-1 24663 return reject(new Error('Preload assets timed out.'));
-1 24664 }, timeout);
-1 24665 Promise.all(assets.map(function(asset) {
-1 24666 return preloadFunctionsMap[asset](options).then(function(results) {
-1 24667 return _defineProperty({}, asset, results);
-1 24668 });
-1 24669 })).then(function(results) {
-1 24670 var preloadAssets = results.reduce(function(out, result) {
-1 24671 return _extends({}, out, result);
-1 24672 }, {});
-1 24673 clearTimeout(preloadTimeout);
-1 24674 resolve(preloadAssets);
-1 24675 })['catch'](function(err2) {
-1 24676 clearTimeout(preloadTimeout);
-1 24677 reject(err2);
-1 24678 });
-1 24679 });
-1 24680 }
-1 24681 function isValidPreloadObject(preloadObj) {
-1 24682 return _typeof(preloadObj) === 'object' && Array.isArray(preloadObj.assets);
20246 24683 }
20247 24684 function _shouldPreload(options) {
20248 24685 if (!options || options.preload === void 0 || options.preload === null) {
@@ -20265,54 +24702,38 @@ module.exports = {
20265 24702 if (typeof options.preload === 'boolean') {
20266 24703 return config;
20267 24704 }
20268 -1 var areRequestedAssetsValid = options.preload.assets.every(function(a) {
20269 -1 return assets.includes(a.toLowerCase());
-1 24705 var areRequestedAssetsValid = options.preload.assets.every(function(a2) {
-1 24706 return assets.includes(a2.toLowerCase());
20270 24707 });
20271 24708 if (!areRequestedAssetsValid) {
20272 24709 throw new Error('Requested assets, not supported. Supported assets are: '.concat(assets.join(', '), '.'));
20273 24710 }
20274 -1 config.assets = unique_array_default(options.preload.assets.map(function(a) {
20275 -1 return a.toLowerCase();
-1 24711 config.assets = unique_array_default(options.preload.assets.map(function(a2) {
-1 24712 return a2.toLowerCase();
20276 24713 }), []);
20277 24714 if (options.preload.timeout && typeof options.preload.timeout === 'number' && !isNaN(options.preload.timeout)) {
20278 24715 config.timeout = options.preload.timeout;
20279 24716 }
20280 24717 return config;
20281 24718 }
20282 -1 function preload(options) {
20283 -1 var preloadFunctionsMap = {
20284 -1 cssom: preload_cssom_default,
20285 -1 media: preload_media_default
20286 -1 };
20287 -1 if (!_shouldPreload(options)) {
20288 -1 return Promise.resolve();
20289 -1 }
20290 -1 return new Promise(function(resolve, reject) {
20291 -1 var _getPreloadConfig2 = _getPreloadConfig(options), assets = _getPreloadConfig2.assets, timeout = _getPreloadConfig2.timeout;
20292 -1 var preloadTimeout = setTimeout(function() {
20293 -1 return reject(new Error('Preload assets timed out.'));
20294 -1 }, timeout);
20295 -1 Promise.all(assets.map(function(asset) {
20296 -1 return preloadFunctionsMap[asset](options).then(function(results) {
20297 -1 return _defineProperty({}, asset, results);
20298 -1 });
20299 -1 })).then(function(results) {
20300 -1 var preloadAssets = results.reduce(function(out, result) {
20301 -1 return _extends({}, out, result);
20302 -1 }, {});
20303 -1 clearTimeout(preloadTimeout);
20304 -1 resolve(preloadAssets);
20305 -1 })['catch'](function(err2) {
20306 -1 clearTimeout(preloadTimeout);
20307 -1 reject(err2);
20308 -1 });
-1 24719 function _publishMetaData(ruleResult) {
-1 24720 var checksData = axe._audit.data.checks || {};
-1 24721 var rulesData = axe._audit.data.rules || {};
-1 24722 var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};
-1 24723 ruleResult.tags = _clone(rule.tags || []);
-1 24724 var shouldBeTrue = extender(checksData, true, rule);
-1 24725 var shouldBeFalse = extender(checksData, false, rule);
-1 24726 ruleResult.nodes.forEach(function(detail) {
-1 24727 detail.any.forEach(shouldBeTrue);
-1 24728 detail.all.forEach(shouldBeTrue);
-1 24729 detail.none.forEach(shouldBeFalse);
20309 24730 });
-1 24731 extend_meta_data_default(ruleResult, _clone(rulesData[ruleResult.id] || {}));
20310 24732 }
20311 -1 var preload_default = preload;
20312 24733 function getIncompleteReason(checkData, messages) {
20313 -1 function getDefaultMsg(messages2) {
20314 -1 if (messages2.incomplete && messages2.incomplete['default']) {
20315 -1 return messages2.incomplete['default'];
-1 24734 function getDefaultMsg(message) {
-1 24735 if (message.incomplete && message.incomplete['default']) {
-1 24736 return message.incomplete['default'];
20316 24737 } else {
20317 24738 return incompleteFallbackMessage();
20318 24739 }
@@ -20341,39 +24762,24 @@ module.exports = {
20341 24762 return function(check) {
20342 24763 var sourceData = checksData[check.id] || {};
20343 24764 var messages = sourceData.messages || {};
20344 -1 var data2 = Object.assign({}, sourceData);
20345 -1 delete data2.messages;
-1 24765 var data = Object.assign({}, sourceData);
-1 24766 delete data.messages;
20346 24767 if (!rule.reviewOnFail && check.result === void 0) {
20347 24768 if (_typeof(messages.incomplete) === 'object' && !Array.isArray(check.data)) {
20348 -1 data2.message = getIncompleteReason(check.data, messages);
-1 24769 data.message = getIncompleteReason(check.data, messages);
20349 24770 }
20350 -1 if (!data2.message) {
20351 -1 data2.message = messages.incomplete;
-1 24771 if (!data.message) {
-1 24772 data.message = messages.incomplete;
20352 24773 }
20353 24774 } else {
20354 -1 data2.message = check.result === shouldBeTrue ? messages.pass : messages.fail;
-1 24775 data.message = check.result === shouldBeTrue ? messages.pass : messages.fail;
20355 24776 }
20356 -1 if (typeof data2.message !== 'function') {
20357 -1 data2.message = process_message_default(data2.message, check.data);
-1 24777 if (typeof data.message !== 'function') {
-1 24778 data.message = process_message_default(data.message, check.data);
20358 24779 }
20359 -1 extend_meta_data_default(check, data2);
-1 24780 extend_meta_data_default(check, data);
20360 24781 };
20361 24782 }
20362 -1 function publishMetaData(ruleResult) {
20363 -1 var checksData = axe._audit.data.checks || {};
20364 -1 var rulesData = axe._audit.data.rules || {};
20365 -1 var rule = find_by_default(axe._audit.rules, 'id', ruleResult.id) || {};
20366 -1 ruleResult.tags = clone_default(rule.tags || []);
20367 -1 var shouldBeTrue = extender(checksData, true, rule);
20368 -1 var shouldBeFalse = extender(checksData, false, rule);
20369 -1 ruleResult.nodes.forEach(function(detail) {
20370 -1 detail.any.forEach(shouldBeTrue);
20371 -1 detail.all.forEach(shouldBeTrue);
20372 -1 detail.none.forEach(shouldBeFalse);
20373 -1 });
20374 -1 extend_meta_data_default(ruleResult, clone_default(rulesData[ruleResult.id] || {}));
20375 -1 }
20376 -1 var publish_metadata_default = publishMetaData;
20377 24783 function querySelectorAll(domTree, selector) {
20378 24784 return query_selector_all_filter_default(domTree, selector);
20379 24785 }
@@ -20475,8 +24881,8 @@ module.exports = {
20475 24881 }
20476 24882 var outerIncludes = getOuterIncludes(context.include);
20477 24883 var isInContext = getContextFilter(context);
20478 -1 for (var _i15 = 0; _i15 < outerIncludes.length; _i15++) {
20479 -1 candidate = outerIncludes[_i15];
-1 24884 for (var _i25 = 0; _i25 < outerIncludes.length; _i25++) {
-1 24885 candidate = outerIncludes[_i25];
20480 24886 var nodes = query_selector_all_filter_default(candidate, selector, isInContext);
20481 24887 result = mergeArrayUniques(result, nodes);
20482 24888 }
@@ -20513,9 +24919,9 @@ module.exports = {
20513 24919 arr1 = arr2;
20514 24920 arr2 = temp;
20515 24921 }
20516 -1 for (var _i16 = 0, l = arr2.length; _i16 < l; _i16++) {
20517 -1 if (!arr1.includes(arr2[_i16])) {
20518 -1 arr1.push(arr2[_i16]);
-1 24922 for (var _i26 = 0, l = arr2.length; _i26 < l; _i26++) {
-1 24923 if (!arr1.includes(arr2[_i26])) {
-1 24924 arr1.push(arr2[_i26]);
20519 24925 }
20520 24926 }
20521 24927 return arr1;
@@ -20529,8 +24935,8 @@ module.exports = {
20529 24935 }
20530 24936 }
20531 24937 function setScrollState(scrollState) {
20532 -1 scrollState.forEach(function(_ref57) {
20533 -1 var elm = _ref57.elm, top = _ref57.top, left = _ref57.left;
-1 24938 scrollState.forEach(function(_ref79) {
-1 24939 var elm = _ref79.elm, top = _ref79.top, left = _ref79.left;
20534 24940 return setScroll(elm, top, left);
20535 24941 });
20536 24942 }
@@ -20558,25 +24964,25 @@ module.exports = {
20558 24964 }
20559 24965 return selectAllRecursive(selectorArr, doc);
20560 24966 }
20561 -1 function selectAllRecursive(_ref58, doc) {
20562 -1 var _ref59 = _toArray(_ref58), selectorStr = _ref59[0], restSelector = _ref59.slice(1);
-1 24967 function selectAllRecursive(_ref80, doc) {
-1 24968 var _ref81 = _toArray(_ref80), selectorStr = _ref81[0], restSelector = _ref81.slice(1);
20563 24969 var elms = doc.querySelectorAll(selectorStr);
20564 24970 if (restSelector.length === 0) {
20565 24971 return Array.from(elms);
20566 24972 }
20567 24973 var selected = [];
20568 -1 var _iterator7 = _createForOfIteratorHelper(elms), _step7;
-1 24974 var _iterator13 = _createForOfIteratorHelper(elms), _step13;
20569 24975 try {
20570 -1 for (_iterator7.s(); !(_step7 = _iterator7.n()).done; ) {
20571 -1 var elm = _step7.value;
-1 24976 for (_iterator13.s(); !(_step13 = _iterator13.n()).done; ) {
-1 24977 var elm = _step13.value;
20572 24978 if (elm !== null && elm !== void 0 && elm.shadowRoot) {
20573 24979 selected.push.apply(selected, _toConsumableArray(selectAllRecursive(restSelector, elm.shadowRoot)));
20574 24980 }
20575 24981 }
20576 24982 } catch (err) {
20577 -1 _iterator7.e(err);
-1 24983 _iterator13.e(err);
20578 24984 } finally {
20579 -1 _iterator7.f();
-1 24985 _iterator13.f();
20580 24986 }
20581 24987 return selected;
20582 24988 }
@@ -20590,8 +24996,8 @@ module.exports = {
20590 24996 while (lang.length < 3) {
20591 24997 lang += '`';
20592 24998 }
20593 -1 for (var _i17 = 0; _i17 <= lang.length - 1; _i17++) {
20594 -1 var index = lang.charCodeAt(_i17) - 96;
-1 24999 for (var _i27 = 0; _i27 <= lang.length - 1; _i27++) {
-1 25000 var index = lang.charCodeAt(_i27) - 96;
20595 25001 array = array[index];
20596 25002 if (!array) {
20597 25003 return false;
@@ -20617,14 +25023,14 @@ module.exports = {
20617 25023 var valid_langs_default = isValidLang;
20618 25024 var SerialVirtualNode = function(_abstract_virtual_nod2) {
20619 25025 _inherits(SerialVirtualNode, _abstract_virtual_nod2);
20620 -1 var _super2 = _createSuper(SerialVirtualNode);
-1 25026 var _super3 = _createSuper(SerialVirtualNode);
20621 25027 function SerialVirtualNode(serialNode) {
20622 -1 var _this3;
-1 25028 var _this6;
20623 25029 _classCallCheck(this, SerialVirtualNode);
20624 -1 _this3 = _super2.call(this);
20625 -1 _this3._props = normaliseProps(serialNode);
20626 -1 _this3._attrs = normaliseAttrs(serialNode);
20627 -1 return _this3;
-1 25030 _this6 = _super3.call(this);
-1 25031 _this6._props = normaliseProps(serialNode);
-1 25032 _this6._attrs = normaliseAttrs(serialNode);
-1 25033 return _this6;
20628 25034 }
20629 25035 _createClass(SerialVirtualNode, [ {
20630 25036 key: 'props',
@@ -20663,86 +25069,46 @@ module.exports = {
20663 25069 nodeTypeToName[nodeNamesToTypes[nodeName2]] = nodeName2;
20664 25070 });
20665 25071 function normaliseProps(serialNode) {
20666 -1 var _serialNode$nodeName, _ref60, _serialNode$nodeType;
-1 25072 var _serialNode$nodeName, _ref82, _serialNode$nodeType;
20667 25073 var nodeName2 = (_serialNode$nodeName = serialNode.nodeName) !== null && _serialNode$nodeName !== void 0 ? _serialNode$nodeName : nodeTypeToName[serialNode.nodeType];
20668 -1 var nodeType = (_ref60 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref60 !== void 0 ? _ref60 : 1;
20669 -1 assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
20670 -1 assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
20671 -1 nodeName2 = nodeName2.toLowerCase();
20672 -1 var type = null;
20673 -1 if (nodeName2 === 'input') {
20674 -1 type = (serialNode.type || serialNode.attributes && serialNode.attributes.type || '').toLowerCase();
20675 -1 if (!valid_input_type_default().includes(type)) {
20676 -1 type = 'text';
20677 -1 }
20678 -1 }
20679 -1 var props = _extends({}, serialNode, {
20680 -1 nodeType: nodeType,
20681 -1 nodeName: nodeName2
20682 -1 });
20683 -1 if (type) {
20684 -1 props.type = type;
20685 -1 }
20686 -1 delete props.attributes;
20687 -1 return Object.freeze(props);
20688 -1 }
20689 -1 function normaliseAttrs(_ref61) {
20690 -1 var _ref61$attributes = _ref61.attributes, attributes2 = _ref61$attributes === void 0 ? {} : _ref61$attributes;
20691 -1 var attrMap = {
20692 -1 htmlFor: 'for',
20693 -1 className: 'class'
20694 -1 };
20695 -1 return Object.keys(attributes2).reduce(function(attrs, attrName) {
20696 -1 var value = attributes2[attrName];
20697 -1 assert_default(_typeof(value) !== 'object' || value === null, 'expects attributes not to be an object, \''.concat(attrName, '\' was'));
20698 -1 if (value !== void 0) {
20699 -1 var mappedName = attrMap[attrName] || attrName;
20700 -1 attrs[mappedName] = value !== null ? String(value) : null;
20701 -1 }
20702 -1 return attrs;
20703 -1 }, {});
20704 -1 }
20705 -1 var serial_virtual_node_default = SerialVirtualNode;
20706 -1 var imports_exports = {};
20707 -1 __export(imports_exports, {
20708 -1 CssSelectorParser: function CssSelectorParser() {
20709 -1 return import_css_selector_parser2.CssSelectorParser;
20710 -1 },
20711 -1 doT: function doT() {
20712 -1 return import_dot['default'];
20713 -1 },
20714 -1 emojiRegexText: function emojiRegexText() {
20715 -1 return emoji_regex_default;
20716 -1 },
20717 -1 memoize: function memoize() {
20718 -1 return import_memoizee2['default'];
20719 -1 }
20720 -1 });
20721 -1 var import_css_selector_parser2 = __toModule(require_lib());
20722 -1 var import_dot = __toModule(require_doT());
20723 -1 var import_memoizee2 = __toModule(require_memoizee());
20724 -1 var import_es6_promise = __toModule(require_es6_promise());
20725 -1 var import_typedarray = __toModule(require_typedarray());
20726 -1 var import_weakmap_polyfill = __toModule(require_weakmap_polyfill());
20727 -1 import_dot['default'].templateSettings.strip = false;
20728 -1 if (!('Promise' in window)) {
20729 -1 import_es6_promise['default'].polyfill();
20730 -1 }
20731 -1 if (!('Uint32Array' in window)) {
20732 -1 window.Uint32Array = import_typedarray.Uint32Array;
20733 -1 }
20734 -1 if (window.Uint32Array) {
20735 -1 if (!('some' in window.Uint32Array.prototype)) {
20736 -1 Object.defineProperty(window.Uint32Array.prototype, 'some', {
20737 -1 value: Array.prototype.some
20738 -1 });
-1 25074 var nodeType = (_ref82 = (_serialNode$nodeType = serialNode.nodeType) !== null && _serialNode$nodeType !== void 0 ? _serialNode$nodeType : nodeNamesToTypes[serialNode.nodeName]) !== null && _ref82 !== void 0 ? _ref82 : 1;
-1 25075 assert_default(typeof nodeType === 'number', 'nodeType has to be a number, got \''.concat(nodeType, '\''));
-1 25076 assert_default(typeof nodeName2 === 'string', 'nodeName has to be a string, got \''.concat(nodeName2, '\''));
-1 25077 nodeName2 = nodeName2.toLowerCase();
-1 25078 var type2 = null;
-1 25079 if (nodeName2 === 'input') {
-1 25080 type2 = (serialNode.type || serialNode.attributes && serialNode.attributes.type || '').toLowerCase();
-1 25081 if (!valid_input_type_default().includes(type2)) {
-1 25082 type2 = 'text';
-1 25083 }
20739 25084 }
20740 -1 if (!('reduce' in window.Uint32Array.prototype)) {
20741 -1 Object.defineProperty(window.Uint32Array.prototype, 'reduce', {
20742 -1 value: Array.prototype.reduce
20743 -1 });
-1 25085 var props = _extends({}, serialNode, {
-1 25086 nodeType: nodeType,
-1 25087 nodeName: nodeName2
-1 25088 });
-1 25089 if (type2) {
-1 25090 props.type = type2;
20744 25091 }
-1 25092 delete props.attributes;
-1 25093 return Object.freeze(props);
-1 25094 }
-1 25095 function normaliseAttrs(_ref83) {
-1 25096 var _ref83$attributes = _ref83.attributes, attributes2 = _ref83$attributes === void 0 ? {} : _ref83$attributes;
-1 25097 var attrMap = {
-1 25098 htmlFor: 'for',
-1 25099 className: 'class'
-1 25100 };
-1 25101 return Object.keys(attributes2).reduce(function(attrs, attrName) {
-1 25102 var value = attributes2[attrName];
-1 25103 assert_default(_typeof(value) !== 'object' || value === null, 'expects attributes not to be an object, \''.concat(attrName, '\' was'));
-1 25104 if (value !== void 0) {
-1 25105 var mappedName = attrMap[attrName] || attrName;
-1 25106 attrs[mappedName] = value !== null ? String(value) : null;
-1 25107 }
-1 25108 return attrs;
-1 25109 }, {});
20745 25110 }
-1 25111 var serial_virtual_node_default = SerialVirtualNode;
20746 25112 function cleanup(resolve, reject) {
20747 25113 resolve = resolve || function res() {};
20748 25114 reject = reject || axe.log;
@@ -20912,7 +25278,7 @@ module.exports = {
20912 25278 return allowed_attr_default;
20913 25279 },
20914 25280 arialabelText: function arialabelText() {
20915 -1 return arialabel_text_default;
-1 25281 return _arialabelText;
20916 25282 },
20917 25283 arialabelledbyText: function arialabelledbyText() {
20918 25284 return arialabelledby_text_default;
@@ -20956,6 +25322,9 @@ module.exports = {
20956 25322 isAriaRoleAllowedOnElement: function isAriaRoleAllowedOnElement() {
20957 25323 return is_aria_role_allowed_on_element_default;
20958 25324 },
-1 25325 isComboboxPopup: function isComboboxPopup() {
-1 25326 return _isComboboxPopup;
-1 25327 },
20959 25328 isUnsupportedRole: function isUnsupportedRole() {
20960 25329 return is_unsupported_role_default;
20961 25330 },
@@ -21009,47 +25378,61 @@ module.exports = {
21009 25378 function cacheIdRefs(node, idRefs, refAttrs) {
21010 25379 if (node.hasAttribute) {
21011 25380 if (node.nodeName.toUpperCase() === 'LABEL' && node.hasAttribute('for')) {
21012 -1 var id = node.getAttribute('for');
21013 -1 idRefs[id] = idRefs[id] || [];
21014 -1 idRefs[id].push(node);
-1 25381 var _id2 = node.getAttribute('for');
-1 25382 if (!idRefs.has(_id2)) {
-1 25383 idRefs.set(_id2, [ node ]);
-1 25384 } else {
-1 25385 idRefs.get(_id2).push(node);
-1 25386 }
21015 25387 }
21016 -1 for (var _i18 = 0; _i18 < refAttrs.length; ++_i18) {
21017 -1 var attr = refAttrs[_i18];
-1 25388 for (var _i28 = 0; _i28 < refAttrs.length; ++_i28) {
-1 25389 var attr = refAttrs[_i28];
21018 25390 var attrValue = sanitize_default(node.getAttribute(attr) || '');
21019 25391 if (!attrValue) {
21020 25392 continue;
21021 25393 }
21022 -1 var tokens = token_list_default(attrValue);
21023 -1 for (var k = 0; k < tokens.length; ++k) {
21024 -1 idRefs[tokens[k]] = idRefs[tokens[k]] || [];
21025 -1 idRefs[tokens[k]].push(node);
-1 25394 var _iterator14 = _createForOfIteratorHelper(token_list_default(attrValue)), _step14;
-1 25395 try {
-1 25396 for (_iterator14.s(); !(_step14 = _iterator14.n()).done; ) {
-1 25397 var token = _step14.value;
-1 25398 if (!idRefs.has(token)) {
-1 25399 idRefs.set(token, [ node ]);
-1 25400 } else {
-1 25401 idRefs.get(token).push(node);
-1 25402 }
-1 25403 }
-1 25404 } catch (err) {
-1 25405 _iterator14.e(err);
-1 25406 } finally {
-1 25407 _iterator14.f();
21026 25408 }
21027 25409 }
21028 25410 }
21029 -1 for (var _i19 = 0; _i19 < node.childNodes.length; _i19++) {
21030 -1 if (node.childNodes[_i19].nodeType === 1) {
21031 -1 cacheIdRefs(node.childNodes[_i19], idRefs, refAttrs);
-1 25411 for (var _i29 = 0; _i29 < node.childNodes.length; _i29++) {
-1 25412 if (node.childNodes[_i29].nodeType === 1) {
-1 25413 cacheIdRefs(node.childNodes[_i29], idRefs, refAttrs);
21032 25414 }
21033 25415 }
21034 25416 }
21035 25417 function getAccessibleRefs(node) {
-1 25418 var _idRefs$get;
21036 25419 node = node.actualNode || node;
21037 25420 var root = get_root_node_default2(node);
21038 25421 root = root.documentElement || root;
21039 25422 var idRefsByRoot = cache_default.get('idRefsByRoot', function() {
21040 -1 return new WeakMap();
-1 25423 return new Map();
21041 25424 });
21042 25425 var idRefs = idRefsByRoot.get(root);
21043 25426 if (!idRefs) {
21044 -1 idRefs = {};
-1 25427 idRefs = new Map();
21045 25428 idRefsByRoot.set(root, idRefs);
21046 25429 var refAttrs = Object.keys(standards_default.ariaAttrs).filter(function(attr) {
21047 -1 var type = standards_default.ariaAttrs[attr].type;
21048 -1 return idRefsRegex.test(type);
-1 25430 var type2 = standards_default.ariaAttrs[attr].type;
-1 25431 return idRefsRegex.test(type2);
21049 25432 });
21050 25433 cacheIdRefs(root, idRefs, refAttrs);
21051 25434 }
21052 -1 return idRefs[node.id] || [];
-1 25435 return (_idRefs$get = idRefs.get(node.id)) !== null && _idRefs$get !== void 0 ? _idRefs$get : [];
21053 25436 }
21054 25437 var get_accessible_refs_default = getAccessibleRefs;
21055 25438 function isAriaRoleAllowedOnElement(node, role) {
@@ -21085,7 +25468,7 @@ module.exports = {
21085 25468 }
21086 25469 function getElementUnallowedRoles(node) {
21087 25470 var allowImplicit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
21088 -1 var vNode = node instanceof abstract_virtual_node_default ? node : get_node_from_tree_default(node);
-1 25471 var _nodeLookup21 = _nodeLookup(node), vNode = _nodeLookup21.vNode;
21089 25472 if (!is_html_element_default(vNode)) {
21090 25473 return [];
21091 25474 }
@@ -21106,9 +25489,9 @@ module.exports = {
21106 25489 return is_aria_role_allowed_on_element_default(vNode, role);
21107 25490 }
21108 25491 var get_element_unallowed_roles_default = getElementUnallowedRoles;
21109 -1 function getAriaRolesByType(type) {
-1 25492 function getAriaRolesByType(type2) {
21110 25493 return Object.keys(standards_default.ariaRoles).filter(function(roleName) {
21111 -1 return standards_default.ariaRoles[roleName].type === type;
-1 25494 return standards_default.ariaRoles[roleName].type === type2;
21112 25495 });
21113 25496 }
21114 25497 var get_aria_roles_by_type_default = getAriaRolesByType;
@@ -22875,8 +27258,8 @@ module.exports = {
22875 27258 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' ]
22876 27259 } ];
22877 27260 lookupTable.evaluateRoleForElement = {
22878 -1 A: function A(_ref62) {
22879 -1 var node = _ref62.node, out = _ref62.out;
-1 27261 A: function A(_ref84) {
-1 27262 var node = _ref84.node, out = _ref84.out;
22880 27263 if (node.namespaceURI === 'http://www.w3.org/2000/svg') {
22881 27264 return true;
22882 27265 }
@@ -22885,19 +27268,19 @@ module.exports = {
22885 27268 }
22886 27269 return true;
22887 27270 },
22888 -1 AREA: function AREA(_ref63) {
22889 -1 var node = _ref63.node;
-1 27271 AREA: function AREA(_ref85) {
-1 27272 var node = _ref85.node;
22890 27273 return !node.href;
22891 27274 },
22892 -1 BUTTON: function BUTTON(_ref64) {
22893 -1 var node = _ref64.node, role = _ref64.role, out = _ref64.out;
-1 27275 BUTTON: function BUTTON(_ref86) {
-1 27276 var node = _ref86.node, role = _ref86.role, out = _ref86.out;
22894 27277 if (node.getAttribute('type') === 'menu') {
22895 27278 return role === 'menuitem';
22896 27279 }
22897 27280 return out;
22898 27281 },
22899 -1 IMG: function IMG(_ref65) {
22900 -1 var node = _ref65.node, role = _ref65.role, out = _ref65.out;
-1 27282 IMG: function IMG(_ref87) {
-1 27283 var node = _ref87.node, role = _ref87.role, out = _ref87.out;
22901 27284 switch (node.alt) {
22902 27285 case null:
22903 27286 return out;
@@ -22909,8 +27292,8 @@ module.exports = {
22909 27292 return role !== 'presentation' && role !== 'none';
22910 27293 }
22911 27294 },
22912 -1 INPUT: function INPUT(_ref66) {
22913 -1 var node = _ref66.node, role = _ref66.role, out = _ref66.out;
-1 27295 INPUT: function INPUT(_ref88) {
-1 27296 var node = _ref88.node, role = _ref88.role, out = _ref88.out;
22914 27297 switch (node.type) {
22915 27298 case 'button':
22916 27299 case 'image':
@@ -22940,32 +27323,32 @@ module.exports = {
22940 27323 return false;
22941 27324 }
22942 27325 },
22943 -1 LI: function LI(_ref67) {
22944 -1 var node = _ref67.node, out = _ref67.out;
-1 27326 LI: function LI(_ref89) {
-1 27327 var node = _ref89.node, out = _ref89.out;
22945 27328 var hasImplicitListitemRole = axe.utils.matchesSelector(node, 'ol li, ul li');
22946 27329 if (hasImplicitListitemRole) {
22947 27330 return out;
22948 27331 }
22949 27332 return true;
22950 27333 },
22951 -1 MENU: function MENU(_ref68) {
22952 -1 var node = _ref68.node;
-1 27334 MENU: function MENU(_ref90) {
-1 27335 var node = _ref90.node;
22953 27336 if (node.getAttribute('type') === 'context') {
22954 27337 return false;
22955 27338 }
22956 27339 return true;
22957 27340 },
22958 -1 OPTION: function OPTION(_ref69) {
22959 -1 var node = _ref69.node;
-1 27341 OPTION: function OPTION(_ref91) {
-1 27342 var node = _ref91.node;
22960 27343 var withinOptionList = axe.utils.matchesSelector(node, 'select > option, datalist > option, optgroup > option');
22961 27344 return !withinOptionList;
22962 27345 },
22963 -1 SELECT: function SELECT(_ref70) {
22964 -1 var node = _ref70.node, role = _ref70.role;
-1 27346 SELECT: function SELECT(_ref92) {
-1 27347 var node = _ref92.node, role = _ref92.role;
22965 27348 return !node.multiple && node.size <= 1 && role === 'menu';
22966 27349 },
22967 -1 SVG: function SVG(_ref71) {
22968 -1 var node = _ref71.node, out = _ref71.out;
-1 27350 SVG: function SVG(_ref93) {
-1 27351 var node = _ref93.node, out = _ref93.out;
22969 27352 if (node.parentNode && node.parentNode.namespaceURI === 'http://www.w3.org/2000/svg') {
22970 27353 return true;
22971 27354 }
@@ -22980,7 +27363,7 @@ module.exports = {
22980 27363 var implicit = null;
22981 27364 var roles = lookup_table_default.role[role];
22982 27365 if (roles && roles.implicit) {
22983 -1 implicit = clone_default(roles.implicit);
-1 27366 implicit = _clone(roles.implicit);
22984 27367 }
22985 27368 return implicit;
22986 27369 }
@@ -22989,6 +27372,42 @@ module.exports = {
22989 27372 return !!get_accessible_refs_default(node).length;
22990 27373 }
22991 27374 var is_accessible_ref_default = isAccessibleRef;
-1 27375 function _isComboboxPopup(virtualNode) {
-1 27376 var _popupRoles;
-1 27377 var _ref94 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, popupRoles = _ref94.popupRoles;
-1 27378 var role = get_role_default(virtualNode);
-1 27379 (_popupRoles = popupRoles) !== null && _popupRoles !== void 0 ? _popupRoles : popupRoles = aria_attrs_default['aria-haspopup'].values;
-1 27380 if (!popupRoles.includes(role)) {
-1 27381 return false;
-1 27382 }
-1 27383 var vParent = nearestParentWithRole(virtualNode);
-1 27384 if (isCombobox(vParent)) {
-1 27385 return true;
-1 27386 }
-1 27387 var id = virtualNode.props.id;
-1 27388 if (!id) {
-1 27389 return false;
-1 27390 }
-1 27391 if (!virtualNode.actualNode) {
-1 27392 throw new Error('Unable to determine combobox popup without an actualNode');
-1 27393 }
-1 27394 var root = get_root_node_default(virtualNode.actualNode);
-1 27395 var ownedCombobox = root.querySelectorAll('[aria-owns~="'.concat(id, '"][role~="combobox"]:not(select),\n [aria-controls~="').concat(id, '"][role~="combobox"]:not(select)'));
-1 27396 return Array.from(ownedCombobox).some(isCombobox);
-1 27397 }
-1 27398 var isCombobox = function isCombobox(node) {
-1 27399 return node && get_role_default(node) === 'combobox';
-1 27400 };
-1 27401 function nearestParentWithRole(vNode) {
-1 27402 while (vNode = vNode.parent) {
-1 27403 if (get_role_default(vNode, {
-1 27404 noPresentational: true
-1 27405 }) !== null) {
-1 27406 return vNode;
-1 27407 }
-1 27408 }
-1 27409 return null;
-1 27410 }
22992 27411 function label2(node) {
22993 27412 node = get_node_from_tree_default(node);
22994 27413 return label_virtual_default(node);
@@ -23088,51 +27507,33 @@ module.exports = {
23088 27507 function ariaAllowedAttrEvaluate(node, options, virtualNode) {
23089 27508 var invalid = [];
23090 27509 var role = get_role_default(virtualNode);
23091 -1 var attrs = virtualNode.attrNames;
23092 27510 var allowed = allowed_attr_default(role);
23093 27511 if (Array.isArray(options[role])) {
23094 27512 allowed = unique_array_default(options[role].concat(allowed));
23095 27513 }
23096 -1 var tableMap = cache_default.get('aria-allowed-attr-table', function() {
23097 -1 return new WeakMap();
23098 -1 });
23099 -1 function validateRowAttrs() {
23100 -1 if (virtualNode.parent && role === 'row') {
23101 -1 var table = closest_default(virtualNode, 'table, [role="treegrid"], [role="table"], [role="grid"]');
23102 -1 var tableRole = tableMap.get(table);
23103 -1 if (table && !tableRole) {
23104 -1 tableRole = get_role_default(table);
23105 -1 tableMap.set(table, tableRole);
23106 -1 }
23107 -1 if ([ 'table', 'grid' ].includes(tableRole) && role === 'row') {
23108 -1 return true;
-1 27514 var _iterator15 = _createForOfIteratorHelper(virtualNode.attrNames), _step15;
-1 27515 try {
-1 27516 for (_iterator15.s(); !(_step15 = _iterator15.n()).done; ) {
-1 27517 var attrName = _step15.value;
-1 27518 if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
-1 27519 invalid.push(attrName);
23109 27520 }
23110 27521 }
-1 27522 } catch (err) {
-1 27523 _iterator15.e(err);
-1 27524 } finally {
-1 27525 _iterator15.f();
23111 27526 }
23112 -1 var ariaAttr = Array.isArray(options.validTreeRowAttrs) ? options.validTreeRowAttrs : [];
23113 -1 var preChecks = {};
23114 -1 ariaAttr.forEach(function(attr) {
23115 -1 preChecks[attr] = validateRowAttrs;
23116 -1 });
23117 -1 if (allowed) {
23118 -1 for (var _i20 = 0; _i20 < attrs.length; _i20++) {
23119 -1 var _preChecks$attrName;
23120 -1 var attrName = attrs[_i20];
23121 -1 if (validate_attr_default(attrName) && (_preChecks$attrName = preChecks[attrName]) !== null && _preChecks$attrName !== void 0 && _preChecks$attrName.call(preChecks)) {
23122 -1 invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
23123 -1 } else if (validate_attr_default(attrName) && !allowed.includes(attrName)) {
23124 -1 invalid.push(attrName + '="' + virtualNode.attr(attrName) + '"');
23125 -1 }
23126 -1 }
-1 27527 if (!invalid.length) {
-1 27528 return true;
23127 27529 }
23128 -1 if (invalid.length) {
23129 -1 this.data(invalid);
23130 -1 if (!is_html_element_default(virtualNode) && !role && !_isFocusable(virtualNode)) {
23131 -1 return void 0;
23132 -1 }
23133 -1 return false;
-1 27530 this.data(invalid.map(function(attrName) {
-1 27531 return attrName + '="' + virtualNode.attr(attrName) + '"';
-1 27532 }));
-1 27533 if (!role && !is_html_element_default(virtualNode) && !_isFocusable(virtualNode)) {
-1 27534 return void 0;
23134 27535 }
23135 -1 return true;
-1 27536 return false;
23136 27537 }
23137 27538 function ariaAllowedRoleEvaluate(node) {
23138 27539 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
@@ -23158,26 +27559,99 @@ module.exports = {
23158 27559 function ariaBusyEvaluate(node, options, virtualNode) {
23159 27560 return virtualNode.attr('aria-busy') === 'true';
23160 27561 }
-1 27562 function ariaConditionalCheckboxAttr(node, options, virtualNode) {
-1 27563 var _virtualNode$props = virtualNode.props, nodeName2 = _virtualNode$props.nodeName, type2 = _virtualNode$props.type;
-1 27564 var ariaChecked = normalizeAriaChecked(virtualNode.attr('aria-checked'));
-1 27565 if (nodeName2 !== 'input' || type2 !== 'checkbox' || !ariaChecked) {
-1 27566 return true;
-1 27567 }
-1 27568 var checkState = getCheckState(virtualNode);
-1 27569 if (ariaChecked === checkState) {
-1 27570 return true;
-1 27571 }
-1 27572 this.data({
-1 27573 messageKey: 'checkbox',
-1 27574 checkState: checkState
-1 27575 });
-1 27576 return false;
-1 27577 }
-1 27578 function getCheckState(vNode) {
-1 27579 if (vNode.props.indeterminate) {
-1 27580 return 'mixed';
-1 27581 }
-1 27582 return vNode.props.checked ? 'true' : 'false';
-1 27583 }
-1 27584 function normalizeAriaChecked(ariaCheckedVal) {
-1 27585 if (!ariaCheckedVal) {
-1 27586 return '';
-1 27587 }
-1 27588 ariaCheckedVal = ariaCheckedVal.toLowerCase();
-1 27589 if ([ 'mixed', 'true' ].includes(ariaCheckedVal)) {
-1 27590 return ariaCheckedVal;
-1 27591 }
-1 27592 return 'false';
-1 27593 }
-1 27594 function ariaConditionalRowAttr(node) {
-1 27595 var _invalidTableRowAttrs, _invalidTableRowAttrs2;
-1 27596 var _ref95 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, invalidTableRowAttrs = _ref95.invalidTableRowAttrs;
-1 27597 var virtualNode = arguments.length > 2 ? arguments[2] : undefined;
-1 27598 var invalidAttrs = (_invalidTableRowAttrs = invalidTableRowAttrs === null || invalidTableRowAttrs === void 0 ? void 0 : (_invalidTableRowAttrs2 = invalidTableRowAttrs.filter) === null || _invalidTableRowAttrs2 === void 0 ? void 0 : _invalidTableRowAttrs2.call(invalidTableRowAttrs, function(invalidAttr) {
-1 27599 return virtualNode.hasAttr(invalidAttr);
-1 27600 })) !== null && _invalidTableRowAttrs !== void 0 ? _invalidTableRowAttrs : [];
-1 27601 if (invalidAttrs.length === 0) {
-1 27602 return true;
-1 27603 }
-1 27604 var owner = getRowOwner(virtualNode);
-1 27605 var ownerRole = owner && get_role_default(owner);
-1 27606 if (!ownerRole || ownerRole === 'treegrid') {
-1 27607 return true;
-1 27608 }
-1 27609 var messageKey = 'row'.concat(invalidAttrs.length > 1 ? 'Plural' : 'Singular');
-1 27610 this.data({
-1 27611 messageKey: messageKey,
-1 27612 invalidAttrs: invalidAttrs,
-1 27613 ownerRole: ownerRole
-1 27614 });
-1 27615 return false;
-1 27616 }
-1 27617 function getRowOwner(virtualNode) {
-1 27618 if (!virtualNode.parent) {
-1 27619 return;
-1 27620 }
-1 27621 var rowOwnerQuery = 'table:not([role]), [role~="treegrid"], [role~="table"], [role~="grid"]';
-1 27622 return closest_default(virtualNode, rowOwnerQuery);
-1 27623 }
-1 27624 var conditionalRoleMap = {
-1 27625 row: ariaConditionalRowAttr,
-1 27626 checkbox: ariaConditionalCheckboxAttr
-1 27627 };
-1 27628 function ariaConditionalAttrEvaluate(node, options, virtualNode) {
-1 27629 var role = get_role_default(virtualNode);
-1 27630 if (!conditionalRoleMap[role]) {
-1 27631 return true;
-1 27632 }
-1 27633 return conditionalRoleMap[role].call(this, node, options, virtualNode);
-1 27634 }
23161 27635 function ariaErrormessageEvaluate(node, options, virtualNode) {
23162 27636 options = Array.isArray(options) ? options : [];
23163 -1 var attr = virtualNode.attr('aria-errormessage');
-1 27637 var errorMessageAttr = virtualNode.attr('aria-errormessage');
23164 27638 var hasAttr = virtualNode.hasAttr('aria-errormessage');
23165 27639 var invaid = virtualNode.attr('aria-invalid');
23166 27640 var hasInvallid = virtualNode.hasAttr('aria-invalid');
23167 27641 if (!hasInvallid || invaid === 'false') {
23168 27642 return true;
23169 27643 }
23170 -1 function validateAttrValue2(attr2) {
23171 -1 if (attr2.trim() === '') {
-1 27644 function validateAttrValue2(attr) {
-1 27645 if (attr.trim() === '') {
23172 27646 return standards_default.ariaAttrs['aria-errormessage'].allowEmpty;
23173 27647 }
23174 27648 var idref;
23175 27649 try {
23176 -1 idref = attr2 && idrefs_default(virtualNode, 'aria-errormessage')[0];
-1 27650 idref = attr && idrefs_default(virtualNode, 'aria-errormessage')[0];
23177 27651 } catch (e) {
23178 27652 this.data({
23179 27653 messageKey: 'idrefs',
23180 -1 values: token_list_default(attr2)
-1 27654 values: token_list_default(attr)
23181 27655 });
23182 27656 return void 0;
23183 27657 }
@@ -23185,21 +27659,20 @@ module.exports = {
23185 27659 if (!_isVisibleToScreenReaders(idref)) {
23186 27660 this.data({
23187 27661 messageKey: 'hidden',
23188 -1 values: token_list_default(attr2)
-1 27662 values: token_list_default(attr)
23189 27663 });
23190 27664 return false;
23191 27665 }
23192 -1 return idref.getAttribute('role') === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr2) > -1;
-1 27666 return idref.getAttribute('role') === 'alert' || idref.getAttribute('aria-live') === 'assertive' || idref.getAttribute('aria-live') === 'polite' || token_list_default(virtualNode.attr('aria-describedby')).indexOf(attr) > -1;
23193 27667 }
23194 27668 return;
23195 27669 }
23196 -1 if (options.indexOf(attr) === -1 && hasAttr) {
23197 -1 this.data(token_list_default(attr));
23198 -1 return validateAttrValue2.call(this, attr);
-1 27670 if (options.indexOf(errorMessageAttr) === -1 && hasAttr) {
-1 27671 this.data(token_list_default(errorMessageAttr));
-1 27672 return validateAttrValue2.call(this, errorMessageAttr);
23199 27673 }
23200 27674 return true;
23201 27675 }
23202 -1 var aria_errormessage_evaluate_default = ariaErrormessageEvaluate;
23203 27676 function ariaHiddenBodyEvaluate(node, options, virtualNode) {
23204 27677 return virtualNode.attr('aria-hidden') !== 'true';
23205 27678 }
@@ -23313,92 +27786,119 @@ module.exports = {
23313 27786 function isClosedCombobox(vNode, role) {
23314 27787 return role === 'combobox' && vNode.attr('aria-expanded') === 'false';
23315 27788 }
-1 27789 function ariaRequiredChildrenEvaluate(node, options, virtualNode) {
-1 27790 var reviewEmpty = options && Array.isArray(options.reviewEmpty) ? options.reviewEmpty : [];
-1 27791 var explicitRole2 = get_explicit_role_default(virtualNode, {
-1 27792 dpub: true
-1 27793 });
-1 27794 var required = required_owned_default(explicitRole2);
-1 27795 if (required === null) {
-1 27796 return true;
-1 27797 }
-1 27798 var ownedRoles = getOwnedRoles(virtualNode, required);
-1 27799 var unallowed = ownedRoles.filter(function(_ref96) {
-1 27800 var role = _ref96.role, vNode = _ref96.vNode;
-1 27801 return vNode.props.nodeType === 1 && !required.includes(role);
-1 27802 });
-1 27803 if (unallowed.length) {
-1 27804 this.relatedNodes(unallowed.map(function(_ref97) {
-1 27805 var vNode = _ref97.vNode;
-1 27806 return vNode;
-1 27807 }));
-1 27808 this.data({
-1 27809 messageKey: 'unallowed',
-1 27810 values: unallowed.map(function(_ref98) {
-1 27811 var vNode = _ref98.vNode, attr = _ref98.attr;
-1 27812 return getUnallowedSelector(vNode, attr);
-1 27813 }).filter(function(selector, index, array) {
-1 27814 return array.indexOf(selector) === index;
-1 27815 }).join(', ')
-1 27816 });
-1 27817 return false;
-1 27818 }
-1 27819 if (hasRequiredChildren(required, ownedRoles)) {
-1 27820 return true;
-1 27821 }
-1 27822 this.data(required);
-1 27823 if (reviewEmpty.includes(explicitRole2) && !ownedRoles.some(isContent)) {
-1 27824 return void 0;
-1 27825 }
-1 27826 return false;
-1 27827 }
23316 27828 function getOwnedRoles(virtualNode, required) {
-1 27829 var vNode;
23317 27830 var ownedRoles = [];
23318 -1 var ownedElements = get_owned_virtual_default(virtualNode);
23319 -1 var _loop5 = function _loop5(_i21) {
23320 -1 var ownedElement = ownedElements[_i21];
23321 -1 var role = get_role_default(ownedElement, {
-1 27831 var ownedVirtual = get_owned_virtual_default(virtualNode);
-1 27832 var _loop7 = function _loop7() {
-1 27833 if (vNode.props.nodeType === 3) {
-1 27834 ownedRoles.push({
-1 27835 vNode: vNode,
-1 27836 role: null
-1 27837 });
-1 27838 }
-1 27839 if (vNode.props.nodeType !== 1 || !_isVisibleToScreenReaders(vNode)) {
-1 27840 return 'continue';
-1 27841 }
-1 27842 var role = get_role_default(vNode, {
23322 27843 noPresentational: true
23323 27844 });
23324 -1 var hasGlobalAria = get_global_aria_attrs_default().some(function(attr) {
23325 -1 return ownedElement.hasAttr(attr);
23326 -1 });
23327 -1 var hasGlobalAriaOrFocusable = hasGlobalAria || _isFocusable(ownedElement);
-1 27845 var globalAriaAttr = getGlobalAriaAttr(vNode);
-1 27846 var hasGlobalAriaOrFocusable = !!globalAriaAttr || _isFocusable(vNode);
23328 27847 if (!role && !hasGlobalAriaOrFocusable || [ 'group', 'rowgroup' ].includes(role) && required.some(function(requiredRole) {
23329 27848 return requiredRole === role;
23330 27849 })) {
23331 -1 ownedElements.push.apply(ownedElements, _toConsumableArray(ownedElement.children));
-1 27850 ownedVirtual.push.apply(ownedVirtual, _toConsumableArray(vNode.children));
23332 27851 } else if (role || hasGlobalAriaOrFocusable) {
-1 27852 var attr = globalAriaAttr || 'tabindex';
23333 27853 ownedRoles.push({
23334 27854 role: role,
23335 -1 ownedElement: ownedElement
-1 27855 attr: attr,
-1 27856 vNode: vNode
23336 27857 });
23337 27858 }
23338 27859 };
23339 -1 for (var _i21 = 0; _i21 < ownedElements.length; _i21++) {
23340 -1 _loop5(_i21);
-1 27860 while (vNode = ownedVirtual.shift()) {
-1 27861 var _ret5 = _loop7();
-1 27862 if (_ret5 === 'continue') {
-1 27863 continue;
-1 27864 }
23341 27865 }
23342 27866 return ownedRoles;
23343 27867 }
23344 -1 function missingRequiredChildren(virtualNode, role, required, ownedRoles) {
23345 -1 var _loop6 = function _loop6(_i22) {
23346 -1 var role2 = ownedRoles[_i22].role;
23347 -1 if (required.includes(role2)) {
23348 -1 required = required.filter(function(requiredRole) {
23349 -1 return requiredRole !== role2;
23350 -1 });
23351 -1 return {
23352 -1 v: null
23353 -1 };
23354 -1 }
23355 -1 };
23356 -1 for (var _i22 = 0; _i22 < ownedRoles.length; _i22++) {
23357 -1 var _ret2 = _loop6(_i22);
23358 -1 if (_typeof(_ret2) === 'object') {
23359 -1 return _ret2.v;
23360 -1 }
23361 -1 }
23362 -1 if (required.length) {
23363 -1 return required;
23364 -1 }
23365 -1 return null;
-1 27868 function hasRequiredChildren(required, ownedRoles) {
-1 27869 return ownedRoles.some(function(_ref99) {
-1 27870 var role = _ref99.role;
-1 27871 return role && required.includes(role);
-1 27872 });
23366 27873 }
23367 -1 function ariaRequiredChildrenEvaluate(node, options, virtualNode) {
23368 -1 var reviewEmpty = options && Array.isArray(options.reviewEmpty) ? options.reviewEmpty : [];
23369 -1 var role = get_explicit_role_default(virtualNode, {
23370 -1 dpub: true
-1 27874 function getGlobalAriaAttr(vNode) {
-1 27875 return get_global_aria_attrs_default().find(function(attr) {
-1 27876 return vNode.hasAttr(attr);
23371 27877 });
23372 -1 var required = required_owned_default(role);
23373 -1 if (required === null) {
23374 -1 return true;
-1 27878 }
-1 27879 function getUnallowedSelector(vNode, attr) {
-1 27880 var _vNode$props = vNode.props, nodeName2 = _vNode$props.nodeName, nodeType = _vNode$props.nodeType;
-1 27881 if (nodeType === 3) {
-1 27882 return '#text';
23375 27883 }
23376 -1 var ownedRoles = getOwnedRoles(virtualNode, required);
23377 -1 var unallowed = ownedRoles.filter(function(_ref72) {
23378 -1 var role2 = _ref72.role;
23379 -1 return !required.includes(role2);
-1 27884 var role = get_explicit_role_default(vNode, {
-1 27885 dpub: true
23380 27886 });
23381 -1 if (unallowed.length) {
23382 -1 this.relatedNodes(unallowed.map(function(_ref73) {
23383 -1 var ownedElement = _ref73.ownedElement;
23384 -1 return ownedElement;
23385 -1 }));
23386 -1 this.data({
23387 -1 messageKey: 'unallowed'
23388 -1 });
23389 -1 return false;
-1 27887 if (role) {
-1 27888 return '[role='.concat(role, ']');
23390 27889 }
23391 -1 var missing = missingRequiredChildren(virtualNode, role, required, ownedRoles);
23392 -1 if (!missing) {
23393 -1 return true;
-1 27890 if (attr) {
-1 27891 return nodeName2 + '['.concat(attr, ']');
23394 27892 }
23395 -1 this.data(missing);
23396 -1 if (reviewEmpty.includes(role) && !has_content_virtual_default(virtualNode, false, true) && !ownedRoles.length && (!virtualNode.hasAttr('aria-owns') || !idrefs_default(node, 'aria-owns').length)) {
23397 -1 return void 0;
-1 27893 return nodeName2;
-1 27894 }
-1 27895 function isContent(_ref100) {
-1 27896 var vNode = _ref100.vNode;
-1 27897 if (vNode.props.nodeType === 3) {
-1 27898 return vNode.props.nodeValue.trim().length > 0;
23398 27899 }
23399 -1 return false;
-1 27900 return has_content_virtual_default(vNode, false, true);
23400 27901 }
23401 -1 var aria_required_children_evaluate_default = ariaRequiredChildrenEvaluate;
23402 27902 function getMissingContext(virtualNode, ownGroupRoles, reqContext, includeElement) {
23403 27903 var explicitRole2 = get_explicit_role_default(virtualNode);
23404 27904 if (!reqContext) {
@@ -23435,9 +27935,9 @@ module.exports = {
23435 27935 var owners = [], o = null;
23436 27936 while (element) {
23437 27937 if (element.getAttribute('id')) {
23438 -1 var id = escape_selector_default(element.getAttribute('id'));
-1 27938 var _id3 = escape_selector_default(element.getAttribute('id'));
23439 27939 var doc = get_root_node_default2(element);
23440 -1 o = doc.querySelector('[aria-owns~='.concat(id, ']'));
-1 27940 o = doc.querySelector('[aria-owns~='.concat(_id3, ']'));
23441 27941 if (o) {
23442 27942 owners.push(o);
23443 27943 }
@@ -23454,8 +27954,8 @@ module.exports = {
23454 27954 }
23455 27955 var owners = getAriaOwners(node);
23456 27956 if (owners) {
23457 -1 for (var _i23 = 0, l = owners.length; _i23 < l; _i23++) {
23458 -1 missingParents = getMissingContext(get_node_from_tree_default(owners[_i23]), ownGroupRoles, missingParents, true);
-1 27957 for (var _i30 = 0, l = owners.length; _i30 < l; _i30++) {
-1 27958 missingParents = getMissingContext(get_node_from_tree_default(owners[_i30]), ownGroupRoles, missingParents, true);
23459 27959 if (!missingParents) {
23460 27960 return true;
23461 27961 }
@@ -23485,11 +27985,11 @@ module.exports = {
23485 27985 if (!validate_attr_default(name)) {
23486 27986 return false;
23487 27987 }
23488 -1 var unsupported2 = attribute.unsupported;
23489 -1 if (_typeof(unsupported2) !== 'object') {
23490 -1 return !!unsupported2;
-1 27988 var unsupported = attribute.unsupported;
-1 27989 if (_typeof(unsupported) !== 'object') {
-1 27990 return !!unsupported;
23491 27991 }
23492 -1 return !matches_default3(node, unsupported2.exceptions);
-1 27992 return !matches_default2(node, unsupported.exceptions);
23493 27993 });
23494 27994 if (unsupportedAttrs.length) {
23495 27995 this.data(unsupportedAttrs);
@@ -23588,6 +28088,39 @@ module.exports = {
23588 28088 var _standards_default$ar;
23589 28089 return ((_standards_default$ar = standards_default.ariaAttrs[attrName]) === null || _standards_default$ar === void 0 ? void 0 : _standards_default$ar.type) === 'string';
23590 28090 }
-1 28091 function brailleLabelEquivalentEvaluate(node, options, virtualNode) {
-1 28092 var _virtualNode$attr;
-1 28093 var brailleLabel = (_virtualNode$attr = virtualNode.attr('aria-braillelabel')) !== null && _virtualNode$attr !== void 0 ? _virtualNode$attr : '';
-1 28094 if (!brailleLabel.trim()) {
-1 28095 return true;
-1 28096 }
-1 28097 try {
-1 28098 return sanitize_default(_accessibleTextVirtual(virtualNode)) !== '';
-1 28099 } catch (_unused) {
-1 28100 return void 0;
-1 28101 }
-1 28102 }
-1 28103 function brailleRoleDescriptionEquivalentEvaluate(node, options, virtualNode) {
-1 28104 var _virtualNode$attr2;
-1 28105 var brailleRoleDesc = (_virtualNode$attr2 = virtualNode.attr('aria-brailleroledescription')) !== null && _virtualNode$attr2 !== void 0 ? _virtualNode$attr2 : '';
-1 28106 if (sanitize_default(brailleRoleDesc) === '') {
-1 28107 return true;
-1 28108 }
-1 28109 var roleDesc = virtualNode.attr('aria-roledescription');
-1 28110 if (typeof roleDesc !== 'string') {
-1 28111 this.data({
-1 28112 messageKey: 'noRoleDescription'
-1 28113 });
-1 28114 return false;
-1 28115 }
-1 28116 if (sanitize_default(roleDesc) === '') {
-1 28117 this.data({
-1 28118 messageKey: 'emptyRoleDescription'
-1 28119 });
-1 28120 return false;
-1 28121 }
-1 28122 return true;
-1 28123 }
23591 28124 function deprecatedroleEvaluate(node, options, virtualNode) {
23592 28125 var role = get_role_default(virtualNode, {
23593 28126 dpub: true,
@@ -23656,7 +28189,7 @@ module.exports = {
23656 28189 var accText;
23657 28190 try {
23658 28191 label3 = sanitize_default(label_text_default(virtualNode)).toLowerCase();
23659 -1 accText = sanitize_default(accessible_text_virtual_default(virtualNode)).toLowerCase();
-1 28192 accText = sanitize_default(_accessibleTextVirtual(virtualNode)).toLowerCase();
23660 28193 } catch (e) {
23661 28194 return void 0;
23662 28195 }
@@ -23692,6 +28225,7 @@ module.exports = {
23692 28225 };
23693 28226 var VALID_ROLES_FOR_SCROLLABLE_REGIONS = {
23694 28227 application: true,
-1 28228 article: true,
23695 28229 banner: false,
23696 28230 complementary: true,
23697 28231 contentinfo: true,
@@ -23757,14 +28291,26 @@ module.exports = {
23757 28291 getRectStack: function getRectStack() {
23758 28292 return get_rect_stack_default;
23759 28293 },
-1 28294 getStackingContext: function getStackingContext() {
-1 28295 return _getStackingContext;
-1 28296 },
-1 28297 getStrokeColorsFromShadows: function getStrokeColorsFromShadows() {
-1 28298 return _getStrokeColorsFromShadows;
-1 28299 },
23760 28300 getTextShadowColors: function getTextShadowColors() {
23761 -1 return get_text_shadow_colors_default;
-1 28301 return _getTextShadowColors;
23762 28302 },
23763 28303 hasValidContrastRatio: function hasValidContrastRatio() {
23764 28304 return has_valid_contrast_ratio_default;
23765 28305 },
23766 28306 incompleteData: function incompleteData() {
23767 28307 return incomplete_data_default;
-1 28308 },
-1 28309 parseTextShadows: function parseTextShadows() {
-1 28310 return _parseTextShadows;
-1 28311 },
-1 28312 stackingContextToColor: function stackingContextToColor() {
-1 28313 return _stackingContextToColor;
23768 28314 }
23769 28315 });
23770 28316 function centerPointOfRect(rect) {
@@ -23856,8 +28402,8 @@ module.exports = {
23856 28402 return null;
23857 28403 }
23858 28404 var filtered_rect_stack_default = filteredRectStack;
23859 -1 function clamp(value, min, max) {
23860 -1 return Math.min(Math.max(min, value), max);
-1 28405 function clamp2(value, min, max2) {
-1 28406 return Math.min(Math.max(min, value), max2);
23861 28407 }
23862 28408 var blendFunctions = {
23863 28409 normal: function normal(Cb, Cs) {
@@ -23905,28 +28451,28 @@ module.exports = {
23905 28451 function simpleAlphaCompositing(Cs, \u03b1s, Cb, \u03b1b, blendMode) {
23906 28452 return \u03b1s * (1 - \u03b1b) * Cs + \u03b1s * \u03b1b * blendFunctions[blendMode](Cb / 255, Cs / 255) * 255 + (1 - \u03b1s) * \u03b1b * Cb;
23907 28453 }
23908 -1 function flattenColors(fgColor, bgColor) {
-1 28454 function flattenColors(sourceColor, backdrop) {
23909 28455 var blendMode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'normal';
23910 -1 var r = simpleAlphaCompositing(fgColor.red, fgColor.alpha, bgColor.red, bgColor.alpha, blendMode);
23911 -1 var g = simpleAlphaCompositing(fgColor.green, fgColor.alpha, bgColor.green, bgColor.alpha, blendMode);
23912 -1 var b = simpleAlphaCompositing(fgColor.blue, fgColor.alpha, bgColor.blue, bgColor.alpha, blendMode);
23913 -1 var \u03b1o = clamp(fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha), 0, 1);
-1 28456 var r = simpleAlphaCompositing(sourceColor.red, sourceColor.alpha, backdrop.red, backdrop.alpha, blendMode);
-1 28457 var g2 = simpleAlphaCompositing(sourceColor.green, sourceColor.alpha, backdrop.green, backdrop.alpha, blendMode);
-1 28458 var b2 = simpleAlphaCompositing(sourceColor.blue, sourceColor.alpha, backdrop.blue, backdrop.alpha, blendMode);
-1 28459 var \u03b1o = clamp2(sourceColor.alpha + backdrop.alpha * (1 - sourceColor.alpha), 0, 1);
23914 28460 if (\u03b1o === 0) {
23915 -1 return new color_default(r, g, b, \u03b1o);
-1 28461 return new color_default(r, g2, b2, \u03b1o);
23916 28462 }
23917 28463 var Cr = Math.round(r / \u03b1o);
23918 -1 var Cg = Math.round(g / \u03b1o);
23919 -1 var Cb = Math.round(b / \u03b1o);
-1 28464 var Cg = Math.round(g2 / \u03b1o);
-1 28465 var Cb = Math.round(b2 / \u03b1o);
23920 28466 return new color_default(Cr, Cg, Cb, \u03b1o);
23921 28467 }
23922 28468 var flatten_colors_default = flattenColors;
23923 28469 function _flattenShadowColors(fgColor, bgColor) {
23924 28470 var alpha = fgColor.alpha;
23925 28471 var r = (1 - alpha) * bgColor.red + alpha * fgColor.red;
23926 -1 var g = (1 - alpha) * bgColor.green + alpha * fgColor.green;
23927 -1 var b = (1 - alpha) * bgColor.blue + alpha * fgColor.blue;
23928 -1 var a = fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha);
23929 -1 return new color_default(r, g, b, a);
-1 28472 var g2 = (1 - alpha) * bgColor.green + alpha * fgColor.green;
-1 28473 var b2 = (1 - alpha) * bgColor.blue + alpha * fgColor.blue;
-1 28474 var a2 = fgColor.alpha + bgColor.alpha * (1 - fgColor.alpha);
-1 28475 return new color_default(r, g2, b2, a2);
23930 28476 }
23931 28477 function _getBackgroundStack(node) {
23932 28478 var stacks = get_text_element_stack_default(node).map(function(stack) {
@@ -23964,53 +28510,105 @@ module.exports = {
23964 28510 }
23965 28511 return bgNodes;
23966 28512 }
23967 -1 function shallowArraysEqual(a, b) {
23968 -1 if (a === b) {
-1 28513 function shallowArraysEqual(a2, b2) {
-1 28514 if (a2 === b2) {
23969 28515 return true;
23970 28516 }
23971 -1 if (a === null || b === null) {
-1 28517 if (a2 === null || b2 === null) {
23972 28518 return false;
23973 28519 }
23974 -1 if (a.length !== b.length) {
-1 28520 if (a2.length !== b2.length) {
23975 28521 return false;
23976 28522 }
23977 -1 for (var i = 0; i < a.length; ++i) {
23978 -1 if (a[i] !== b[i]) {
-1 28523 for (var i = 0; i < a2.length; ++i) {
-1 28524 if (a2[i] !== b2[i]) {
23979 28525 return false;
23980 28526 }
23981 28527 }
23982 28528 return true;
23983 28529 }
23984 -1 function getTextShadowColors(node) {
23985 -1 var _ref74 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref74.minRatio, maxRatio = _ref74.maxRatio;
23986 -1 var style = window.getComputedStyle(node);
23987 -1 var textShadow = style.getPropertyValue('text-shadow');
23988 -1 if (textShadow === 'none') {
23989 -1 return [];
-1 28530 var SHADOW_STROKE_ALPHA = .54;
-1 28531 var VISIBLE_SHADOW_MIN_PX = .5;
-1 28532 var OPAQUE_STROKE_OFFSET_MIN_PX = 1.5;
-1 28533 var edges = [ 'top', 'right', 'bottom', 'left' ];
-1 28534 function _getStrokeColorsFromShadows(parsedShadows) {
-1 28535 var _ref101 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, _ref101$ignoreEdgeCou = _ref101.ignoreEdgeCount, ignoreEdgeCount = _ref101$ignoreEdgeCou === void 0 ? false : _ref101$ignoreEdgeCou;
-1 28536 var shadowMap = getShadowColorsMap(parsedShadows);
-1 28537 var shadowsByColor = Object.entries(shadowMap).map(function(_ref102) {
-1 28538 var _ref103 = _slicedToArray(_ref102, 2), colorStr = _ref103[0], sides = _ref103[1];
-1 28539 var edgeCount = edges.filter(function(side) {
-1 28540 return sides[side].length !== 0;
-1 28541 }).length;
-1 28542 return {
-1 28543 colorStr: colorStr,
-1 28544 sides: sides,
-1 28545 edgeCount: edgeCount
-1 28546 };
-1 28547 });
-1 28548 if (!ignoreEdgeCount && shadowsByColor.some(function(_ref104) {
-1 28549 var edgeCount = _ref104.edgeCount;
-1 28550 return edgeCount > 1 && edgeCount < 4;
-1 28551 })) {
-1 28552 return null;
23990 28553 }
23991 -1 var fontSizeStr = style.getPropertyValue('font-size');
23992 -1 var fontSize = parseInt(fontSizeStr);
23993 -1 assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
23994 -1 var shadowColors = [];
23995 -1 var shadows = parseTextShadows(textShadow);
23996 -1 shadows.forEach(function(_ref75) {
23997 -1 var colorStr = _ref75.colorStr, pixels = _ref75.pixels;
23998 -1 colorStr = colorStr || style.getPropertyValue('color');
23999 -1 var _pixels = _slicedToArray(pixels, 3), offsetY = _pixels[0], offsetX = _pixels[1], _pixels$ = _pixels[2], blurRadius = _pixels$ === void 0 ? 0 : _pixels$;
24000 -1 if ((!minRatio || blurRadius >= fontSize * minRatio) && (!maxRatio || blurRadius < fontSize * maxRatio)) {
24001 -1 var color = textShadowColor({
24002 -1 colorStr: colorStr,
24003 -1 offsetY: offsetY,
24004 -1 offsetX: offsetX,
24005 -1 blurRadius: blurRadius,
24006 -1 fontSize: fontSize
24007 -1 });
24008 -1 shadowColors.push(color);
-1 28554 return shadowsByColor.map(shadowGroupToColor).filter(function(shadow) {
-1 28555 return shadow !== null;
-1 28556 });
-1 28557 }
-1 28558 function getShadowColorsMap(parsedShadows) {
-1 28559 var colorMap = {};
-1 28560 var _iterator16 = _createForOfIteratorHelper(parsedShadows), _step16;
-1 28561 try {
-1 28562 for (_iterator16.s(); !(_step16 = _iterator16.n()).done; ) {
-1 28563 var _colorMap$colorStr;
-1 28564 var _step16$value = _step16.value, colorStr = _step16$value.colorStr, pixels = _step16$value.pixels;
-1 28565 (_colorMap$colorStr = colorMap[colorStr]) !== null && _colorMap$colorStr !== void 0 ? _colorMap$colorStr : colorMap[colorStr] = {
-1 28566 top: [],
-1 28567 right: [],
-1 28568 bottom: [],
-1 28569 left: []
-1 28570 };
-1 28571 var borders = colorMap[colorStr];
-1 28572 var _pixels = _slicedToArray(pixels, 2), offsetX = _pixels[0], offsetY = _pixels[1];
-1 28573 if (offsetX > VISIBLE_SHADOW_MIN_PX) {
-1 28574 borders.right.push(offsetX);
-1 28575 } else if (-offsetX > VISIBLE_SHADOW_MIN_PX) {
-1 28576 borders.left.push(-offsetX);
-1 28577 }
-1 28578 if (offsetY > VISIBLE_SHADOW_MIN_PX) {
-1 28579 borders.bottom.push(offsetY);
-1 28580 } else if (-offsetY > VISIBLE_SHADOW_MIN_PX) {
-1 28581 borders.top.push(-offsetY);
-1 28582 }
24009 28583 }
-1 28584 } catch (err) {
-1 28585 _iterator16.e(err);
-1 28586 } finally {
-1 28587 _iterator16.f();
-1 28588 }
-1 28589 return colorMap;
-1 28590 }
-1 28591 function shadowGroupToColor(_ref105) {
-1 28592 var colorStr = _ref105.colorStr, sides = _ref105.sides, edgeCount = _ref105.edgeCount;
-1 28593 if (edgeCount !== 4) {
-1 28594 return null;
-1 28595 }
-1 28596 var strokeColor = new color_default();
-1 28597 strokeColor.parseString(colorStr);
-1 28598 var density = 0;
-1 28599 var isSolid = true;
-1 28600 edges.forEach(function(edge) {
-1 28601 density += sides[edge].length / 4;
-1 28602 isSolid && (isSolid = sides[edge].every(function(offset) {
-1 28603 return offset > OPAQUE_STROKE_OFFSET_MIN_PX;
-1 28604 }));
24010 28605 });
24011 -1 return shadowColors;
-1 28606 if (!isSolid) {
-1 28607 strokeColor.alpha = 1 - Math.pow(SHADOW_STROKE_ALPHA, density);
-1 28608 }
-1 28609 return strokeColor;
24012 28610 }
24013 -1 function parseTextShadows(textShadow) {
-1 28611 function _parseTextShadows(textShadow) {
24014 28612 var current = {
24015 28613 pixels: []
24016 28614 };
@@ -24020,7 +28618,7 @@ module.exports = {
24020 28618 return [];
24021 28619 }
24022 28620 while (str) {
24023 -1 var colorMatch = str.match(/^rgba?\([0-9,.\s]+\)/i) || str.match(/^[a-z]+/i) || str.match(/^#[0-9a-f]+/i);
-1 28621 var colorMatch = str.match(/^[a-z]+(\([^)]+\))?/i) || str.match(/^#[0-9a-f]+/i);
24024 28622 var pixelMatch = str.match(/^([0-9.-]+)px/i) || str.match(/^(0)/);
24025 28623 if (colorMatch) {
24026 28624 assert_default(!current.colorStr, 'Multiple colors identified in text-shadow: '.concat(textShadow));
@@ -24039,13 +28637,83 @@ module.exports = {
24039 28637 shadows.push(current);
24040 28638 str = str.substr(1).trim();
24041 28639 } else {
24042 -1 throw new Error('Unable to process text-shadows: '.concat(textShadow));
-1 28640 throw new Error('Unable to process text-shadows: '.concat(str));
-1 28641 }
-1 28642 }
-1 28643 shadows.forEach(function(_ref106) {
-1 28644 var pixels = _ref106.pixels;
-1 28645 if (pixels.length === 2) {
-1 28646 pixels.push(0);
-1 28647 }
-1 28648 });
-1 28649 return shadows;
-1 28650 }
-1 28651 function _getTextShadowColors(node) {
-1 28652 var _ref107 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, minRatio = _ref107.minRatio, maxRatio = _ref107.maxRatio, ignoreEdgeCount = _ref107.ignoreEdgeCount;
-1 28653 var shadowColors = [];
-1 28654 var style = window.getComputedStyle(node);
-1 28655 var textShadow = style.getPropertyValue('text-shadow');
-1 28656 if (textShadow === 'none') {
-1 28657 return shadowColors;
-1 28658 }
-1 28659 var fontSizeStr = style.getPropertyValue('font-size');
-1 28660 var fontSize = parseInt(fontSizeStr);
-1 28661 assert_default(isNaN(fontSize) === false, 'Unable to determine font-size value '.concat(fontSizeStr));
-1 28662 var thinShadows = [];
-1 28663 var shadows = _parseTextShadows(textShadow);
-1 28664 var _iterator17 = _createForOfIteratorHelper(shadows), _step17;
-1 28665 try {
-1 28666 for (_iterator17.s(); !(_step17 = _iterator17.n()).done; ) {
-1 28667 var shadow = _step17.value;
-1 28668 var colorStr = shadow.colorStr || style.getPropertyValue('color');
-1 28669 var _shadow$pixels = _slicedToArray(shadow.pixels, 3), offsetX = _shadow$pixels[0], offsetY = _shadow$pixels[1], _shadow$pixels$ = _shadow$pixels[2], blurRadius = _shadow$pixels$ === void 0 ? 0 : _shadow$pixels$;
-1 28670 if (maxRatio && blurRadius >= fontSize * maxRatio) {
-1 28671 continue;
-1 28672 }
-1 28673 if (minRatio && blurRadius < fontSize * minRatio) {
-1 28674 thinShadows.push({
-1 28675 colorStr: colorStr,
-1 28676 pixels: shadow.pixels
-1 28677 });
-1 28678 continue;
-1 28679 }
-1 28680 if (thinShadows.length > 0) {
-1 28681 var _strokeColors = _getStrokeColorsFromShadows(thinShadows, {
-1 28682 ignoreEdgeCount: ignoreEdgeCount
-1 28683 });
-1 28684 if (_strokeColors === null) {
-1 28685 return null;
-1 28686 }
-1 28687 shadowColors.push.apply(shadowColors, _toConsumableArray(_strokeColors));
-1 28688 thinShadows.splice(0, thinShadows.length);
-1 28689 }
-1 28690 var _color3 = textShadowColor({
-1 28691 colorStr: colorStr,
-1 28692 offsetX: offsetX,
-1 28693 offsetY: offsetY,
-1 28694 blurRadius: blurRadius,
-1 28695 fontSize: fontSize
-1 28696 });
-1 28697 shadowColors.push(_color3);
-1 28698 }
-1 28699 } catch (err) {
-1 28700 _iterator17.e(err);
-1 28701 } finally {
-1 28702 _iterator17.f();
-1 28703 }
-1 28704 if (thinShadows.length > 0) {
-1 28705 var strokeColors = _getStrokeColorsFromShadows(thinShadows, {
-1 28706 ignoreEdgeCount: ignoreEdgeCount
-1 28707 });
-1 28708 if (strokeColors === null) {
-1 28709 return null;
24043 28710 }
-1 28711 shadowColors.push.apply(shadowColors, _toConsumableArray(strokeColors));
24044 28712 }
24045 -1 return shadows;
-1 28713 return shadowColors;
24046 28714 }
24047 -1 function textShadowColor(_ref76) {
24048 -1 var colorStr = _ref76.colorStr, offsetX = _ref76.offsetX, offsetY = _ref76.offsetY, blurRadius = _ref76.blurRadius, fontSize = _ref76.fontSize;
-1 28715 function textShadowColor(_ref108) {
-1 28716 var colorStr = _ref108.colorStr, offsetX = _ref108.offsetX, offsetY = _ref108.offsetY, blurRadius = _ref108.blurRadius, fontSize = _ref108.fontSize;
24049 28717 if (offsetX > blurRadius || offsetY > blurRadius) {
24050 28718 return new color_default(0, 0, 0, 0);
24051 28719 }
@@ -24061,7 +28729,99 @@ module.exports = {
24061 28729 var relativeBlur = blurRadius / fontSize;
24062 28730 return .185 / (relativeBlur + .4);
24063 28731 }
24064 -1 var get_text_shadow_colors_default = getTextShadowColors;
-1 28732 function _getStackingContext(elm, elmStack) {
-1 28733 var _elmStack;
-1 28734 var virtualNode = get_node_from_tree_default(elm);
-1 28735 if (virtualNode._stackingContext) {
-1 28736 return virtualNode._stackingContext;
-1 28737 }
-1 28738 var stackingContext = [];
-1 28739 var contextMap = new Map();
-1 28740 elmStack = (_elmStack = elmStack) !== null && _elmStack !== void 0 ? _elmStack : _getBackgroundStack(elm);
-1 28741 elmStack.forEach(function(bgElm) {
-1 28742 var _stackingOrder2;
-1 28743 var bgVNode = get_node_from_tree_default(bgElm);
-1 28744 var bgColor = getOwnBackgroundColor2(bgVNode);
-1 28745 var stackingOrder = bgVNode._stackingOrder.filter(function(_ref109) {
-1 28746 var vNode = _ref109.vNode;
-1 28747 return !!vNode;
-1 28748 });
-1 28749 stackingOrder.forEach(function(_ref110, index) {
-1 28750 var _stackingOrder;
-1 28751 var vNode = _ref110.vNode;
-1 28752 var ancestorVNode2 = (_stackingOrder = stackingOrder[index - 1]) === null || _stackingOrder === void 0 ? void 0 : _stackingOrder.vNode;
-1 28753 var context2 = addToStackingContext(contextMap, vNode, ancestorVNode2);
-1 28754 if (index === 0 && !contextMap.get(vNode)) {
-1 28755 stackingContext.unshift(context2);
-1 28756 }
-1 28757 contextMap.set(vNode, context2);
-1 28758 });
-1 28759 var ancestorVNode = (_stackingOrder2 = stackingOrder[stackingOrder.length - 1]) === null || _stackingOrder2 === void 0 ? void 0 : _stackingOrder2.vNode;
-1 28760 var context = addToStackingContext(contextMap, bgVNode, ancestorVNode);
-1 28761 if (!stackingOrder.length) {
-1 28762 stackingContext.unshift(context);
-1 28763 }
-1 28764 context.bgColor = bgColor;
-1 28765 });
-1 28766 virtualNode._stackingContext = stackingContext;
-1 28767 return stackingContext;
-1 28768 }
-1 28769 function _stackingContextToColor(context) {
-1 28770 var _context$descendants;
-1 28771 if (!((_context$descendants = context.descendants) !== null && _context$descendants !== void 0 && _context$descendants.length)) {
-1 28772 var color2 = context.bgColor;
-1 28773 color2.alpha *= context.opacity;
-1 28774 return {
-1 28775 color: color2,
-1 28776 blendMode: context.blendMode
-1 28777 };
-1 28778 }
-1 28779 var sourceColor = context.descendants.reduce(reduceToColor, createStackingContext2());
-1 28780 var color = flatten_colors_default(sourceColor, context.bgColor, context.descendants[0].blendMode);
-1 28781 color.alpha *= context.opacity;
-1 28782 return {
-1 28783 color: color,
-1 28784 blendMode: context.blendMode
-1 28785 };
-1 28786 }
-1 28787 function reduceToColor(backdropContext, sourceContext) {
-1 28788 var backdrop;
-1 28789 if (backdropContext instanceof color_default) {
-1 28790 backdrop = backdropContext;
-1 28791 } else {
-1 28792 backdrop = _stackingContextToColor(backdropContext).color;
-1 28793 }
-1 28794 var sourceColor = _stackingContextToColor(sourceContext).color;
-1 28795 return flatten_colors_default(sourceColor, backdrop, sourceContext.blendMode);
-1 28796 }
-1 28797 function createStackingContext2(vNode, ancestorContext) {
-1 28798 var _vNode$getComputedSty;
-1 28799 return {
-1 28800 vNode: vNode,
-1 28801 ancestor: ancestorContext,
-1 28802 opacity: parseFloat((_vNode$getComputedSty = vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('opacity')) !== null && _vNode$getComputedSty !== void 0 ? _vNode$getComputedSty : 1),
-1 28803 bgColor: new color_default(0, 0, 0, 0),
-1 28804 blendMode: normalizeBlendMode(vNode === null || vNode === void 0 ? void 0 : vNode.getComputedStylePropertyValue('mix-blend-mode')),
-1 28805 descendants: []
-1 28806 };
-1 28807 }
-1 28808 function normalizeBlendMode(blendmode) {
-1 28809 return !!blendmode ? blendmode : void 0;
-1 28810 }
-1 28811 function addToStackingContext(contextMap, vNode, ancestorVNode) {
-1 28812 var _contextMap$get;
-1 28813 var ancestorContext = contextMap.get(ancestorVNode);
-1 28814 var context = (_contextMap$get = contextMap.get(vNode)) !== null && _contextMap$get !== void 0 ? _contextMap$get : createStackingContext2(vNode, ancestorContext);
-1 28815 if (ancestorContext && ancestorVNode !== vNode && !ancestorContext.descendants.includes(context)) {
-1 28816 ancestorContext.descendants.unshift(context);
-1 28817 }
-1 28818 return context;
-1 28819 }
-1 28820 function getOwnBackgroundColor2(vNode) {
-1 28821 var bgColor = new color_default();
-1 28822 bgColor.parseString(vNode.getComputedStylePropertyValue('background-color'));
-1 28823 return bgColor;
-1 28824 }
24065 28825 function _getBackgroundColor2(elm) {
24066 28826 var bgElms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
24067 28827 var shadowOutlineEmMax = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : .1;
@@ -24081,45 +28841,44 @@ module.exports = {
24081 28841 return bgColor;
24082 28842 }
24083 28843 function _getBackgroundColor(elm, bgElms, shadowOutlineEmMax) {
24084 -1 var _bgColors;
24085 -1 var bgColors = get_text_shadow_colors_default(elm, {
24086 -1 minRatio: shadowOutlineEmMax
24087 -1 });
-1 28844 var _getTextShadowColors2, _bgColors;
-1 28845 var elmStack = _getBackgroundStack(elm);
-1 28846 if (!elmStack) {
-1 28847 return null;
-1 28848 }
-1 28849 var textRects = get_visible_child_text_rects_default(elm);
-1 28850 var bgColors = (_getTextShadowColors2 = _getTextShadowColors(elm, {
-1 28851 minRatio: shadowOutlineEmMax,
-1 28852 ignoreEdgeCount: true
-1 28853 })) !== null && _getTextShadowColors2 !== void 0 ? _getTextShadowColors2 : [];
24088 28854 if (bgColors.length) {
24089 28855 bgColors = [ {
24090 28856 color: bgColors.reduce(_flattenShadowColors)
24091 28857 } ];
24092 28858 }
24093 -1 var elmStack = _getBackgroundStack(elm);
24094 -1 var textRects = get_visible_child_text_rects_default(elm);
24095 -1 (elmStack || []).some(function(bgElm) {
-1 28859 for (var _i31 = 0; _i31 < elmStack.length; _i31++) {
-1 28860 var bgElm = elmStack[_i31];
24096 28861 var bgElmStyle = window.getComputedStyle(bgElm);
24097 28862 if (element_has_image_default(bgElm, bgElmStyle)) {
24098 -1 bgColors = null;
24099 28863 bgElms.push(bgElm);
24100 -1 return true;
-1 28864 return null;
24101 28865 }
24102 28866 var bgColor = get_own_background_color_default(bgElmStyle);
24103 28867 if (bgColor.alpha === 0) {
24104 -1 return false;
-1 28868 continue;
24105 28869 }
24106 28870 if (bgElmStyle.getPropertyValue('display') !== 'inline' && !fullyEncompasses(bgElm, textRects)) {
24107 -1 bgColors = null;
24108 28871 bgElms.push(bgElm);
24109 28872 incomplete_data_default.set('bgColor', 'elmPartiallyObscured');
24110 -1 return true;
-1 28873 return null;
24111 28874 }
24112 28875 bgElms.push(bgElm);
24113 -1 var blendMode = bgElmStyle.getPropertyValue('mix-blend-mode');
24114 -1 bgColors.unshift({
24115 -1 color: bgColor,
24116 -1 blendMode: normalizeBlendMode(blendMode)
24117 -1 });
24118 -1 return bgColor.alpha === 1;
24119 -1 });
24120 -1 if (bgColors === null || elmStack === null) {
24121 -1 return null;
-1 28876 if (bgColor.alpha === 1) {
-1 28877 break;
-1 28878 }
24122 28879 }
-1 28880 var stackingContext = _getStackingContext(elm, elmStack);
-1 28881 bgColors = stackingContext.map(_stackingContextToColor).concat(bgColors);
24123 28882 var pageBgs = getPageBackgroundColors(elm, elmStack.includes(document.body));
24124 28883 (_bgColors = bgColors).unshift.apply(_bgColors, _toConsumableArray(pageBgs));
24125 28884 if (bgColors.length === 0) {
@@ -24144,7 +28903,7 @@ module.exports = {
24144 28903 return rect.top >= nodeRect.top && rect.bottom <= bottom && rect.left >= nodeRect.left && rect.right <= right;
24145 28904 });
24146 28905 }
24147 -1 function normalizeBlendMode(blendmode) {
-1 28906 function normalizeBlendMode2(blendmode) {
24148 28907 return !!blendmode ? blendmode : void 0;
24149 28908 }
24150 28909 function getPageBackgroundColors(elm, stackContainsBody) {
@@ -24160,13 +28919,13 @@ module.exports = {
24160 28919 if (bodyBgColor.alpha !== 0 && htmlBgColor.alpha === 0 || bodyBgColorApplies && bodyBgColor.alpha !== 1) {
24161 28920 pageColors.unshift({
24162 28921 color: bodyBgColor,
24163 -1 blendMode: normalizeBlendMode(bodyStyle.getPropertyValue('mix-blend-mode'))
-1 28922 blendMode: normalizeBlendMode2(bodyStyle.getPropertyValue('mix-blend-mode'))
24164 28923 });
24165 28924 }
24166 28925 if (htmlBgColor.alpha !== 0 && (!bodyBgColorApplies || bodyBgColorApplies && bodyBgColor.alpha !== 1)) {
24167 28926 pageColors.unshift({
24168 28927 color: htmlBgColor,
24169 -1 blendMode: normalizeBlendMode(htmlStyle.getPropertyValue('mix-blend-mode'))
-1 28928 blendMode: normalizeBlendMode2(htmlStyle.getPropertyValue('mix-blend-mode'))
24170 28929 });
24171 28930 }
24172 28931 }
@@ -24188,42 +28947,45 @@ module.exports = {
24188 28947 var _bgColor;
24189 28948 var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
24190 28949 var nodeStyle = window.getComputedStyle(node);
24191 -1 var opacity = getOpacity(node, nodeStyle);
24192 -1 var strokeColor = getStrokeColor(nodeStyle, options);
24193 -1 if (strokeColor && strokeColor.alpha * opacity === 1) {
24194 -1 strokeColor.alpha = 1;
24195 -1 return strokeColor;
24196 -1 }
24197 -1 var textColor = getTextColor(nodeStyle);
24198 -1 var fgColor = strokeColor ? flatten_colors_default(strokeColor, textColor) : textColor;
24199 -1 if (fgColor.alpha * opacity === 1) {
24200 -1 fgColor.alpha = 1;
24201 -1 return fgColor;
24202 -1 }
24203 -1 var textShadowColors = get_text_shadow_colors_default(node, {
24204 -1 minRatio: 0
24205 -1 });
24206 -1 fgColor = textShadowColors.reduce(function(colorA, colorB) {
24207 -1 return flatten_colors_default(colorA, colorB);
24208 -1 }, fgColor);
24209 -1 if (fgColor.alpha * opacity === 1) {
24210 -1 fgColor.alpha = 1;
24211 -1 return fgColor;
-1 28950 var colorStack = [ function() {
-1 28951 return getStrokeColor(nodeStyle, options);
-1 28952 }, function() {
-1 28953 return getTextColor(nodeStyle);
-1 28954 }, function() {
-1 28955 return _getTextShadowColors(node, {
-1 28956 minRatio: 0
-1 28957 });
-1 28958 } ];
-1 28959 var fgColors = [];
-1 28960 for (var _i32 = 0, _colorStack = colorStack; _i32 < _colorStack.length; _i32++) {
-1 28961 var colorFn = _colorStack[_i32];
-1 28962 var _color4 = colorFn();
-1 28963 if (!_color4) {
-1 28964 continue;
-1 28965 }
-1 28966 fgColors = fgColors.concat(_color4);
-1 28967 if (_color4.alpha === 1) {
-1 28968 break;
-1 28969 }
24212 28970 }
-1 28971 var fgColor = fgColors.reduce(function(source, backdrop) {
-1 28972 return flatten_colors_default(source, backdrop);
-1 28973 });
24213 28974 (_bgColor = bgColor) !== null && _bgColor !== void 0 ? _bgColor : bgColor = _getBackgroundColor2(node, []);
24214 28975 if (bgColor === null) {
24215 28976 var reason = incomplete_data_default.get('bgColor');
24216 28977 incomplete_data_default.set('fgColor', reason);
24217 28978 return null;
24218 28979 }
24219 -1 fgColor.alpha = fgColor.alpha * opacity;
24220 -1 return flatten_colors_default(fgColor, bgColor);
-1 28980 var stackingContexts = _getStackingContext(node);
-1 28981 var context = findNodeInContexts(stackingContexts, node);
-1 28982 return flatten_colors_default(calculateBlendedForegroundColor(fgColor, context, stackingContexts), new color_default(255, 255, 255, 1));
24221 28983 }
24222 28984 function getTextColor(nodeStyle) {
24223 28985 return new color_default().parseString(nodeStyle.getPropertyValue('-webkit-text-fill-color') || nodeStyle.getPropertyValue('color'));
24224 28986 }
24225 -1 function getStrokeColor(nodeStyle, _ref77) {
24226 -1 var _ref77$textStrokeEmMi = _ref77.textStrokeEmMin, textStrokeEmMin = _ref77$textStrokeEmMi === void 0 ? 0 : _ref77$textStrokeEmMi;
-1 28987 function getStrokeColor(nodeStyle, _ref111) {
-1 28988 var _ref111$textStrokeEmM = _ref111.textStrokeEmMin, textStrokeEmMin = _ref111$textStrokeEmM === void 0 ? 0 : _ref111$textStrokeEmM;
24227 28989 var strokeWidth = parseFloat(nodeStyle.getPropertyValue('-webkit-text-stroke-width'));
24228 28990 if (strokeWidth === 0) {
24229 28991 return null;
@@ -24236,30 +28998,61 @@ module.exports = {
24236 28998 var strokeColor = nodeStyle.getPropertyValue('-webkit-text-stroke-color');
24237 28999 return new color_default().parseString(strokeColor);
24238 29000 }
24239 -1 function getOpacity(node, nodeStyle) {
24240 -1 var _nodeStyle;
24241 -1 if (!node) {
24242 -1 return 1;
24243 -1 }
24244 -1 var vNode = get_node_from_tree_default(node);
24245 -1 if (vNode && vNode._opacity !== void 0 && vNode._opacity !== null) {
24246 -1 return vNode._opacity;
-1 29001 function calculateBlendedForegroundColor(fgColor, context, stackingContexts) {
-1 29002 while (context) {
-1 29003 var _context$ancestor;
-1 29004 if (context.opacity === 1 && context.ancestor) {
-1 29005 context = context.ancestor;
-1 29006 continue;
-1 29007 }
-1 29008 fgColor.alpha *= context.opacity;
-1 29009 var stack = ((_context$ancestor = context.ancestor) === null || _context$ancestor === void 0 ? void 0 : _context$ancestor.descendants) || stackingContexts;
-1 29010 if (context.opacity !== 1) {
-1 29011 stack = stack.slice(0, stack.indexOf(context));
-1 29012 }
-1 29013 var bgColors = stack.map(_stackingContextToColor);
-1 29014 if (!bgColors.length) {
-1 29015 context = context.ancestor;
-1 29016 continue;
-1 29017 }
-1 29018 var bgColor = bgColors.reduce(function(backdrop, source) {
-1 29019 return flatten_colors_default(source.color, backdrop.color instanceof color_default ? backdrop.color : backdrop);
-1 29020 }, {
-1 29021 color: new color_default(0, 0, 0, 0),
-1 29022 blendMode: 'normal'
-1 29023 });
-1 29024 fgColor = flatten_colors_default(fgColor, bgColor);
-1 29025 context = context.ancestor;
24247 29026 }
24248 -1 (_nodeStyle = nodeStyle) !== null && _nodeStyle !== void 0 ? _nodeStyle : nodeStyle = window.getComputedStyle(node);
24249 -1 var opacity = nodeStyle.getPropertyValue('opacity');
24250 -1 var finalOpacity = opacity * getOpacity(node.parentElement);
24251 -1 if (vNode) {
24252 -1 vNode._opacity = finalOpacity;
-1 29027 return fgColor;
-1 29028 }
-1 29029 function findNodeInContexts(contexts, node) {
-1 29030 var _iterator18 = _createForOfIteratorHelper(contexts), _step18;
-1 29031 try {
-1 29032 for (_iterator18.s(); !(_step18 = _iterator18.n()).done; ) {
-1 29033 var _context$vNode;
-1 29034 var context = _step18.value;
-1 29035 if (((_context$vNode = context.vNode) === null || _context$vNode === void 0 ? void 0 : _context$vNode.actualNode) === node) {
-1 29036 return context;
-1 29037 }
-1 29038 var found = findNodeInContexts(context.descendants, node);
-1 29039 if (found) {
-1 29040 return found;
-1 29041 }
-1 29042 }
-1 29043 } catch (err) {
-1 29044 _iterator18.e(err);
-1 29045 } finally {
-1 29046 _iterator18.f();
24253 29047 }
24254 -1 return finalOpacity;
24255 29048 }
24256 29049 function hasValidContrastRatio(bg, fg, fontSize, isBold) {
24257 -1 var contrast = get_contrast_default(bg, fg);
-1 29050 var contrast2 = get_contrast_default(bg, fg);
24258 29051 var isSmallFont = isBold && Math.ceil(fontSize * 72) / 96 < 14 || !isBold && Math.ceil(fontSize * 72) / 96 < 18;
24259 29052 var expectedContrastRatio = isSmallFont ? 4.5 : 3;
24260 29053 return {
24261 -1 isValid: contrast > expectedContrastRatio,
24262 -1 contrastRatio: contrast,
-1 29054 isValid: contrast2 > expectedContrastRatio,
-1 29055 contrastRatio: contrast2,
24263 29056 expectedContrastRatio: expectedContrastRatio
24264 29057 };
24265 29058 }
@@ -24285,7 +29078,7 @@ module.exports = {
24285 29078 var bold = parseFloat(fontWeight) >= boldValue || fontWeight === 'bold';
24286 29079 var ptSize = Math.ceil(fontSize * 72) / 96;
24287 29080 var isSmallFont = bold && ptSize < boldTextPt || !bold && ptSize < largeTextPt;
24288 -1 var _ref78 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref78.expected, minThreshold = _ref78.minThreshold, maxThreshold = _ref78.maxThreshold;
-1 29081 var _ref112 = isSmallFont ? contrastRatio.normal : contrastRatio.large, expected = _ref112.expected, minThreshold = _ref112.minThreshold, maxThreshold = _ref112.maxThreshold;
24289 29082 var pseudoElm = findPseudoElement(virtualNode, {
24290 29083 ignorePseudo: ignorePseudo,
24291 29084 pseudoSizeThreshold: pseudoSizeThreshold
@@ -24300,36 +29093,42 @@ module.exports = {
24300 29093 this.relatedNodes(pseudoElm.actualNode);
24301 29094 return void 0;
24302 29095 }
24303 -1 var bgNodes = [];
24304 -1 var bgColor = _getBackgroundColor2(node, bgNodes, shadowOutlineEmMax);
24305 -1 var fgColor = _getForegroundColor(node, false, bgColor, options);
24306 -1 var shadowColors = get_text_shadow_colors_default(node, {
-1 29096 var shadowColors = _getTextShadowColors(node, {
24307 29097 minRatio: .001,
24308 29098 maxRatio: shadowOutlineEmMax
24309 29099 });
24310 -1 var contrast = null;
-1 29100 if (shadowColors === null) {
-1 29101 this.data({
-1 29102 messageKey: 'complexTextShadows'
-1 29103 });
-1 29104 return void 0;
-1 29105 }
-1 29106 var bgNodes = [];
-1 29107 var bgColor = _getBackgroundColor2(node, bgNodes, shadowOutlineEmMax);
-1 29108 var fgColor = _getForegroundColor(node, false, bgColor, options);
-1 29109 var contrast2 = null;
24311 29110 var contrastContributor = null;
24312 29111 var shadowColor = null;
24313 29112 if (shadowColors.length === 0) {
24314 -1 contrast = get_contrast_default(bgColor, fgColor);
-1 29113 contrast2 = get_contrast_default(bgColor, fgColor);
24315 29114 } else if (fgColor && bgColor) {
24316 29115 shadowColor = [].concat(_toConsumableArray(shadowColors), [ bgColor ]).reduce(_flattenShadowColors);
24317 29116 var fgBgContrast = get_contrast_default(bgColor, fgColor);
24318 29117 var bgShContrast = get_contrast_default(bgColor, shadowColor);
24319 29118 var fgShContrast = get_contrast_default(shadowColor, fgColor);
24320 -1 contrast = Math.max(fgBgContrast, bgShContrast, fgShContrast);
24321 -1 if (contrast !== fgBgContrast) {
-1 29119 contrast2 = Math.max(fgBgContrast, bgShContrast, fgShContrast);
-1 29120 if (contrast2 !== fgBgContrast) {
24322 29121 contrastContributor = bgShContrast > fgShContrast ? 'shadowOnBgColor' : 'fgOnShadowColor';
24323 29122 }
24324 29123 }
24325 -1 var isValid = contrast > expected;
24326 -1 if (typeof minThreshold === 'number' && (typeof contrast !== 'number' || contrast < minThreshold) || typeof maxThreshold === 'number' && (typeof contrast !== 'number' || contrast > maxThreshold)) {
-1 29124 var isValid = contrast2 > expected;
-1 29125 if (typeof minThreshold === 'number' && (typeof contrast2 !== 'number' || contrast2 < minThreshold) || typeof maxThreshold === 'number' && (typeof contrast2 !== 'number' || contrast2 > maxThreshold)) {
24327 29126 this.data({
24328 -1 contrastRatio: contrast
-1 29127 contrastRatio: contrast2
24329 29128 });
24330 29129 return true;
24331 29130 }
24332 -1 var truncatedResult = Math.floor(contrast * 100) / 100;
-1 29131 var truncatedResult = Math.floor(contrast2 * 100) / 100;
24333 29132 var missing;
24334 29133 if (bgColor === null) {
24335 29134 missing = incomplete_data_default.get('bgColor');
@@ -24364,8 +29163,8 @@ module.exports = {
24364 29163 }
24365 29164 return isValid;
24366 29165 }
24367 -1 function findPseudoElement(vNode, _ref79) {
24368 -1 var _ref79$pseudoSizeThre = _ref79.pseudoSizeThreshold, pseudoSizeThreshold = _ref79$pseudoSizeThre === void 0 ? .25 : _ref79$pseudoSizeThre, _ref79$ignorePseudo = _ref79.ignorePseudo, ignorePseudo = _ref79$ignorePseudo === void 0 ? false : _ref79$ignorePseudo;
-1 29166 function findPseudoElement(vNode, _ref113) {
-1 29167 var _ref113$pseudoSizeThr = _ref113.pseudoSizeThreshold, pseudoSizeThreshold = _ref113$pseudoSizeThr === void 0 ? .25 : _ref113$pseudoSizeThr, _ref113$ignorePseudo = _ref113.ignorePseudo, ignorePseudo = _ref113$ignorePseudo === void 0 ? false : _ref113$ignorePseudo;
24369 29168 if (ignorePseudo) {
24370 29169 return;
24371 29170 }
@@ -24407,7 +29206,7 @@ module.exports = {
24407 29206 }
24408 29207 function parseUnit(str) {
24409 29208 var unitRegex = /^([0-9.]+)([a-z]+)$/i;
24410 -1 var _ref80 = str.match(unitRegex) || [], _ref81 = _slicedToArray(_ref80, 3), _ref81$ = _ref81[1], value = _ref81$ === void 0 ? '' : _ref81$, _ref81$2 = _ref81[2], unit = _ref81$2 === void 0 ? '' : _ref81$2;
-1 29209 var _ref114 = str.match(unitRegex) || [], _ref115 = _slicedToArray(_ref114, 3), _ref115$ = _ref115[1], value = _ref115$ === void 0 ? '' : _ref115$, _ref115$2 = _ref115[2], unit = _ref115$2 === void 0 ? '' : _ref115$2;
24411 29210 return {
24412 29211 value: parseFloat(value),
24413 29212 unit: unit.toLowerCase()
@@ -24420,11 +29219,11 @@ module.exports = {
24420 29219 }
24421 29220 var blockLike2 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
24422 29221 function isBlock2(elm) {
24423 -1 var display = window.getComputedStyle(elm).getPropertyValue('display');
24424 -1 return blockLike2.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';
-1 29222 var display2 = window.getComputedStyle(elm).getPropertyValue('display');
-1 29223 return blockLike2.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
24425 29224 }
24426 29225 function linkInTextBlockEvaluate(node, options) {
24427 -1 var requiredContrastRatio = options.requiredContrastRatio;
-1 29226 var requiredContrastRatio = options.requiredContrastRatio, allowSameColor = options.allowSameColor;
24428 29227 if (isBlock2(node)) {
24429 29228 return false;
24430 29229 }
@@ -24466,6 +29265,9 @@ module.exports = {
24466 29265 if (!textContrast) {
24467 29266 return void 0;
24468 29267 }
-1 29268 if (allowSameColor && textContrast === 1 && backgroundContrast === 1) {
-1 29269 return true;
-1 29270 }
24469 29271 if (textContrast === 1 && backgroundContrast > 1) {
24470 29272 this.data({
24471 29273 messageKey: 'bgContrast',
@@ -24487,10 +29289,6 @@ module.exports = {
24487 29289 }
24488 29290 var link_in_text_block_evaluate_default = linkInTextBlockEvaluate;
24489 29291 var blockLike3 = [ 'block', 'list-item', 'table', 'flex', 'grid', 'inline-block' ];
24490 -1 function isBlock3(elm) {
24491 -1 var display = window.getComputedStyle(elm).getPropertyValue('display');
24492 -1 return blockLike3.indexOf(display) !== -1 || display.substr(0, 6) === 'table-';
24493 -1 }
24494 29292 function linkInTextBlockStyleEvaluate(node) {
24495 29293 if (isBlock3(node)) {
24496 29294 return false;
@@ -24503,9 +29301,32 @@ module.exports = {
24503 29301 return void 0;
24504 29302 }
24505 29303 this.relatedNodes([ parentBlock ]);
24506 -1 return element_is_distinct_default(node, parentBlock);
-1 29304 if (element_is_distinct_default(node, parentBlock)) {
-1 29305 return true;
-1 29306 }
-1 29307 if (hasPseudoContent(node)) {
-1 29308 this.data({
-1 29309 messageKey: 'pseudoContent'
-1 29310 });
-1 29311 return void 0;
-1 29312 }
-1 29313 return false;
-1 29314 }
-1 29315 function isBlock3(elm) {
-1 29316 var display2 = window.getComputedStyle(elm).getPropertyValue('display');
-1 29317 return blockLike3.indexOf(display2) !== -1 || display2.substr(0, 6) === 'table-';
-1 29318 }
-1 29319 function hasPseudoContent(node) {
-1 29320 for (var _i33 = 0, _arr4 = [ 'before', 'after' ]; _i33 < _arr4.length; _i33++) {
-1 29321 var pseudo = _arr4[_i33];
-1 29322 var style = window.getComputedStyle(node, ':'.concat(pseudo));
-1 29323 var content = style.getPropertyValue('content');
-1 29324 if (content !== 'none') {
-1 29325 return true;
-1 29326 }
-1 29327 }
-1 29328 return false;
24507 29329 }
24508 -1 var link_in_text_block_style_evaluate_default = linkInTextBlockStyleEvaluate;
24509 29330 function autocompleteAppropriateEvaluate(node, options, virtualNode) {
24510 29331 if (virtualNode.props.nodeName !== 'input') {
24511 29332 return true;
@@ -24557,12 +29378,12 @@ module.exports = {
24557 29378 return true;
24558 29379 }
24559 29380 var allowedTypes = allowedTypesMap[purposeTerm];
24560 -1 var type = virtualNode.hasAttr('type') ? sanitize_default(virtualNode.attr('type')).toLowerCase() : 'text';
24561 -1 type = valid_input_type_default().includes(type) ? type : 'text';
-1 29381 var type2 = virtualNode.hasAttr('type') ? sanitize_default(virtualNode.attr('type')).toLowerCase() : 'text';
-1 29382 type2 = valid_input_type_default().includes(type2) ? type2 : 'text';
24562 29383 if (typeof allowedTypes === 'undefined') {
24563 -1 return type === 'text';
-1 29384 return type2 === 'text';
24564 29385 }
24565 -1 return allowedTypes.includes(type);
-1 29386 return allowedTypes.includes(type2);
24566 29387 }
24567 29388 var autocomplete_appropriate_evaluate_default = autocompleteAppropriateEvaluate;
24568 29389 function autocompleteValidEvaluate(node, options, virtualNode) {
@@ -24629,7 +29450,7 @@ module.exports = {
24629 29450 }
24630 29451 }
24631 29452 function matchesDefinitionEvaluate(_, options, virtualNode) {
24632 -1 return matches_default3(virtualNode, options.matcher);
-1 29453 return matches_default2(virtualNode, options.matcher);
24633 29454 }
24634 29455 var matches_definition_evaluate_default = matchesDefinitionEvaluate;
24635 29456 function pageNoDuplicateAfter(results) {
@@ -24656,6 +29477,11 @@ module.exports = {
24656 29477 return elm.actualNode.hasAttribute('role') || !find_up_virtual_default(elm, options.nativeScopeFilter);
24657 29478 });
24658 29479 }
-1 29480 if (typeof options.role === 'string') {
-1 29481 elms = elms.filter(function(elm) {
-1 29482 return get_role_default(elm) === options.role;
-1 29483 });
-1 29484 }
24659 29485 this.relatedNodes(elms.filter(function(elm) {
24660 29486 return elm !== virtualNode;
24661 29487 }).map(function(elm) {
@@ -24748,8 +29574,8 @@ module.exports = {
24748 29574 }
24749 29575 var focusable_element_evaluate_default = focusableElementEvaluate;
24750 29576 function focusableModalOpenEvaluate(node, options, virtualNode) {
24751 -1 var tabbableElements = virtualNode.tabbableElements.map(function(_ref82) {
24752 -1 var actualNode = _ref82.actualNode;
-1 29577 var tabbableElements = virtualNode.tabbableElements.map(function(_ref116) {
-1 29578 var actualNode = _ref116.actualNode;
24753 29579 return actualNode;
24754 29580 });
24755 29581 if (!tabbableElements || !tabbableElements.length) {
@@ -24769,7 +29595,7 @@ module.exports = {
24769 29595 return false;
24770 29596 }
24771 29597 try {
24772 -1 return !accessible_text_virtual_default(virtualNode);
-1 29598 return !_accessibleTextVirtual(virtualNode);
24773 29599 } catch (e) {
24774 29600 return void 0;
24775 29601 }
@@ -24911,11 +29737,11 @@ module.exports = {
24911 29737 if (visibleText === '') {
24912 29738 return false;
24913 29739 }
24914 -1 return visibleText === accessible_text_virtual_default(virtualNode).toLowerCase();
-1 29740 return visibleText === _accessibleTextVirtual(virtualNode).toLowerCase();
24915 29741 }
24916 29742 var duplicate_img_label_evaluate_default = duplicateImgLabelEvaluate;
24917 29743 function explicitEvaluate(node, options, virtualNode) {
24918 -1 var _this4 = this;
-1 29744 var _this7 = this;
24919 29745 if (!virtualNode.attr('id')) {
24920 29746 return false;
24921 29747 }
@@ -24938,7 +29764,7 @@ module.exports = {
24938 29764 inControlContext: true,
24939 29765 startNode: virtualNode
24940 29766 }));
24941 -1 _this4.data({
-1 29767 _this7.data({
24942 29768 explicitLabel: explicitLabel
24943 29769 });
24944 29770 return !!explicitLabel;
@@ -24972,12 +29798,12 @@ module.exports = {
24972 29798 return void 0;
24973 29799 }
24974 29800 var root = get_root_node_default2(node);
24975 -1 var id = escape_selector_default(node.getAttribute('id'));
24976 -1 var label3 = root.querySelector('label[for="'.concat(id, '"]'));
-1 29801 var _id4 = escape_selector_default(node.getAttribute('id'));
-1 29802 var label3 = root.querySelector('label[for="'.concat(_id4, '"]'));
24977 29803 if (label3 && !_isVisibleToScreenReaders(label3)) {
24978 29804 var name;
24979 29805 try {
24980 -1 name = accessible_text_virtual_default(virtualNode).trim();
-1 29806 name = _accessibleTextVirtual(virtualNode).trim();
24981 29807 } catch (e) {
24982 29808 return void 0;
24983 29809 }
@@ -24992,7 +29818,7 @@ module.exports = {
24992 29818 try {
24993 29819 var label3 = closest_default(virtualNode, 'label');
24994 29820 if (label3) {
24995 -1 var implicitLabel = sanitize_default(accessible_text_virtual_default(label3, {
-1 29821 var implicitLabel = sanitize_default(_accessibleTextVirtual(label3, {
24996 29822 inControlContext: true,
24997 29823 startNode: virtualNode
24998 29824 }));
@@ -25110,7 +29936,7 @@ module.exports = {
25110 29936 var landmark_is_unique_after_default = landmarkIsUniqueAfter;
25111 29937 function landmarkIsUniqueEvaluate(node, options, virtualNode) {
25112 29938 var role = get_role_default(node);
25113 -1 var accessibleText2 = accessible_text_virtual_default(virtualNode);
-1 29939 var accessibleText2 = _accessibleTextVirtual(virtualNode);
25114 29940 accessibleText2 = accessibleText2 ? accessibleText2.toLowerCase() : null;
25115 29941 this.data({
25116 29942 role: role,
@@ -25124,8 +29950,8 @@ module.exports = {
25124 29950 return (value || '').trim() !== '';
25125 29951 }
25126 29952 function hasLangEvaluate(node, options, virtualNode) {
25127 -1 var xhtml2 = typeof document !== 'undefined' ? is_xhtml_default(document) : false;
25128 -1 if (options.attributes.includes('xml:lang') && options.attributes.includes('lang') && hasValue(virtualNode.attr('xml:lang')) && !hasValue(virtualNode.attr('lang')) && !xhtml2) {
-1 29953 var xhtml = typeof document !== 'undefined' ? is_xhtml_default(document) : false;
-1 29954 if (options.attributes.includes('xml:lang') && options.attributes.includes('lang') && hasValue(virtualNode.attr('xml:lang')) && !hasValue(virtualNode.attr('lang')) && !xhtml) {
25129 29955 this.data({
25130 29956 messageKey: 'noXHTML'
25131 29957 });
@@ -25230,8 +30056,8 @@ module.exports = {
25230 30056 this.relatedNodes(relatedNodes);
25231 30057 return true;
25232 30058 }
25233 -1 function getInvalidSelector(vChild, nested, _ref83) {
25234 -1 var _ref83$validRoles = _ref83.validRoles, validRoles = _ref83$validRoles === void 0 ? [] : _ref83$validRoles, _ref83$validNodeNames = _ref83.validNodeNames, validNodeNames = _ref83$validNodeNames === void 0 ? [] : _ref83$validNodeNames;
-1 30059 function getInvalidSelector(vChild, nested, _ref117) {
-1 30060 var _ref117$validRoles = _ref117.validRoles, validRoles = _ref117$validRoles === void 0 ? [] : _ref117$validRoles, _ref117$validNodeName = _ref117.validNodeNames, validNodeNames = _ref117$validNodeName === void 0 ? [] : _ref117$validNodeName;
25235 30061 var _vChild$props = vChild.props, nodeName2 = _vChild$props.nodeName, nodeType = _vChild$props.nodeType, nodeValue = _vChild$props.nodeValue;
25236 30062 var selector = nested ? 'div > ' : '';
25237 30063 if (nodeType === 3 && nodeValue.trim() !== '') {
@@ -25283,12 +30109,12 @@ module.exports = {
25283 30109 badNodes: [],
25284 30110 hasNonEmptyTextNode: false
25285 30111 };
25286 -1 var content = virtualNode.children.reduce(function(content2, child) {
-1 30112 var content = virtualNode.children.reduce(function(vNodes, child) {
25287 30113 var actualNode = child.actualNode;
25288 30114 if (actualNode.nodeName.toUpperCase() === 'DIV' && get_role_default(actualNode) === null) {
25289 -1 return content2.concat(child.children);
-1 30115 return vNodes.concat(child.children);
25290 30116 }
25291 -1 return content2.concat(child);
-1 30117 return vNodes.concat(child);
25292 30118 }, []);
25293 30119 var result = content.reduce(function(out, childNode) {
25294 30120 var actualNode = childNode.actualNode;
@@ -25310,7 +30136,6 @@ module.exports = {
25310 30136 }
25311 30137 return !!result.badNodes.length || result.hasNonEmptyTextNode;
25312 30138 }
25313 -1 var only_dlitems_evaluate_default = onlyDlitemsEvaluate;
25314 30139 function onlyListitemsEvaluate(node, options, virtualNode) {
25315 30140 var hasNonEmptyTextNode = false;
25316 30141 var atLeastOneListitem = false;
@@ -25444,11 +30269,11 @@ module.exports = {
25444 30269 }
25445 30270 var _match = _slicedToArray(match, 2), value = _match[1];
25446 30271 var ranges = value.split(',');
25447 -1 return ranges.map(function(range) {
25448 -1 if (/:/.test(range)) {
25449 -1 return convertHourMinSecToSeconds(range);
-1 30272 return ranges.map(function(range2) {
-1 30273 if (/:/.test(range2)) {
-1 30274 return convertHourMinSecToSeconds(range2);
25450 30275 }
25451 -1 return parseFloat(range);
-1 30276 return parseFloat(range2);
25452 30277 });
25453 30278 }
25454 30279 function convertHourMinSecToSeconds(hhMmSs) {
@@ -25464,23 +30289,23 @@ module.exports = {
25464 30289 }
25465 30290 var no_autoplay_audio_evaluate_default = noAutoplayAudioEvaluate;
25466 30291 function cssOrientationLockEvaluate(node, options, virtualNode, context) {
25467 -1 var _ref84 = context || {}, _ref84$cssom = _ref84.cssom, cssom = _ref84$cssom === void 0 ? void 0 : _ref84$cssom;
25468 -1 var _ref85 = options || {}, _ref85$degreeThreshol = _ref85.degreeThreshold, degreeThreshold = _ref85$degreeThreshol === void 0 ? 0 : _ref85$degreeThreshol;
-1 30292 var _ref118 = context || {}, _ref118$cssom = _ref118.cssom, cssom = _ref118$cssom === void 0 ? void 0 : _ref118$cssom;
-1 30293 var _ref119 = options || {}, _ref119$degreeThresho = _ref119.degreeThreshold, degreeThreshold = _ref119$degreeThresho === void 0 ? 0 : _ref119$degreeThresho;
25469 30294 if (!cssom || !cssom.length) {
25470 30295 return void 0;
25471 30296 }
25472 30297 var isLocked = false;
25473 30298 var relatedElements = [];
25474 30299 var rulesGroupByDocumentFragment = groupCssomByDocument(cssom);
25475 -1 var _loop7 = function _loop7() {
25476 -1 var key = _Object$keys2[_i24];
-1 30300 var _loop8 = function _loop8() {
-1 30301 var key = _Object$keys3[_i34];
25477 30302 var _rulesGroupByDocument = rulesGroupByDocumentFragment[key], root = _rulesGroupByDocument.root, rules = _rulesGroupByDocument.rules;
25478 30303 var orientationRules = rules.filter(isMediaRuleWithOrientation);
25479 30304 if (!orientationRules.length) {
25480 30305 return 'continue';
25481 30306 }
25482 -1 orientationRules.forEach(function(_ref86) {
25483 -1 var cssRules = _ref86.cssRules;
-1 30307 orientationRules.forEach(function(_ref120) {
-1 30308 var cssRules = _ref120.cssRules;
25484 30309 Array.from(cssRules).forEach(function(cssRule) {
25485 30310 var locked = getIsOrientationLocked(cssRule);
25486 30311 if (locked && cssRule.selectorText.toUpperCase() !== 'HTML') {
@@ -25491,9 +30316,9 @@ module.exports = {
25491 30316 });
25492 30317 });
25493 30318 };
25494 -1 for (var _i24 = 0, _Object$keys2 = Object.keys(rulesGroupByDocumentFragment); _i24 < _Object$keys2.length; _i24++) {
25495 -1 var _ret3 = _loop7();
25496 -1 if (_ret3 === 'continue') {
-1 30319 for (var _i34 = 0, _Object$keys3 = Object.keys(rulesGroupByDocumentFragment); _i34 < _Object$keys3.length; _i34++) {
-1 30320 var _ret6 = _loop8();
-1 30321 if (_ret6 === 'continue') {
25497 30322 continue;
25498 30323 }
25499 30324 }
@@ -25505,8 +30330,8 @@ module.exports = {
25505 30330 }
25506 30331 return false;
25507 30332 function groupCssomByDocument(cssObjectModel) {
25508 -1 return cssObjectModel.reduce(function(out, _ref87) {
25509 -1 var sheet = _ref87.sheet, root = _ref87.root, shadowId = _ref87.shadowId;
-1 30333 return cssObjectModel.reduce(function(out, _ref121) {
-1 30334 var sheet = _ref121.sheet, root = _ref121.root, shadowId = _ref121.shadowId;
25510 30335 var key = shadowId ? shadowId : 'topDocument';
25511 30336 if (!out[key]) {
25512 30337 out[key] = {
@@ -25522,28 +30347,25 @@ module.exports = {
25522 30347 return out;
25523 30348 }, {});
25524 30349 }
25525 -1 function isMediaRuleWithOrientation(_ref88) {
25526 -1 var type = _ref88.type, cssText = _ref88.cssText;
25527 -1 if (type !== 4) {
-1 30350 function isMediaRuleWithOrientation(_ref122) {
-1 30351 var type2 = _ref122.type, cssText = _ref122.cssText;
-1 30352 if (type2 !== 4) {
25528 30353 return false;
25529 30354 }
25530 30355 return /orientation:\s*landscape/i.test(cssText) || /orientation:\s*portrait/i.test(cssText);
25531 30356 }
25532 -1 function getIsOrientationLocked(_ref89) {
25533 -1 var selectorText = _ref89.selectorText, style = _ref89.style;
-1 30357 function getIsOrientationLocked(_ref123) {
-1 30358 var selectorText = _ref123.selectorText, style = _ref123.style;
25534 30359 if (!selectorText || style.length <= 0) {
25535 30360 return false;
25536 30361 }
25537 30362 var transformStyle = style.transform || style.webkitTransform || style.msTransform || false;
25538 -1 if (!transformStyle) {
25539 -1 return false;
25540 -1 }
25541 -1 var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
25542 -1 if (!matches4) {
-1 30363 if (!transformStyle && !style.rotate) {
25543 30364 return false;
25544 30365 }
25545 -1 var _matches = _slicedToArray(matches4, 3), transformFn = _matches[1], transformFnValue = _matches[2];
25546 -1 var degrees = getRotationInDegrees(transformFn, transformFnValue);
-1 30366 var transformDegrees = getTransformDegrees(transformStyle);
-1 30367 var rotateDegrees = getRotationInDegrees('rotate', style.rotate);
-1 30368 var degrees = transformDegrees + rotateDegrees;
25547 30369 if (!degrees) {
25548 30370 return false;
25549 30371 }
@@ -25553,6 +30375,17 @@ module.exports = {
25553 30375 }
25554 30376 return Math.abs(degrees - 90) % 90 <= degreeThreshold;
25555 30377 }
-1 30378 function getTransformDegrees(transformStyle) {
-1 30379 if (!transformStyle) {
-1 30380 return 0;
-1 30381 }
-1 30382 var matches4 = transformStyle.match(/(rotate|rotateZ|rotate3d|matrix|matrix3d)\(([^)]+)\)(?!.*(rotate|rotateZ|rotate3d|matrix|matrix3d))/);
-1 30383 if (!matches4) {
-1 30384 return 0;
-1 30385 }
-1 30386 var _matches2 = _slicedToArray(matches4, 3), transformFn = _matches2[1], transformFnValue = _matches2[2];
-1 30387 return getRotationInDegrees(transformFn, transformFnValue);
-1 30388 }
25556 30389 function getRotationInDegrees(transformFunction, transformFnValue) {
25557 30390 switch (transformFunction) {
25558 30391 case 'rotate':
@@ -25573,13 +30406,13 @@ module.exports = {
25573 30406 return getAngleInDegreesFromMatrixTransform(transformFnValue);
25574 30407
25575 30408 default:
25576 -1 return;
-1 30409 return 0;
25577 30410 }
25578 30411 }
25579 30412 function getAngleInDegrees(angleWithUnit) {
25580 -1 var _ref90 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref91 = _slicedToArray(_ref90, 1), unit = _ref91[0];
-1 30413 var _ref124 = angleWithUnit.match(/(deg|grad|rad|turn)/) || [], _ref125 = _slicedToArray(_ref124, 1), unit = _ref125[0];
25581 30414 if (!unit) {
25582 -1 return;
-1 30415 return 0;
25583 30416 }
25584 30417 var angle = parseFloat(angleWithUnit.replace(unit, ''));
25585 30418 switch (unit) {
@@ -25598,16 +30431,16 @@ module.exports = {
25598 30431 }
25599 30432 }
25600 30433 function getAngleInDegreesFromMatrixTransform(transformFnValue) {
25601 -1 var values = transformFnValue.split(',');
25602 -1 if (values.length <= 6) {
25603 -1 var _values = _slicedToArray(values, 2), a = _values[0], b2 = _values[1];
25604 -1 var radians = Math.atan2(parseFloat(b2), parseFloat(a));
-1 30434 var values2 = transformFnValue.split(',');
-1 30435 if (values2.length <= 6) {
-1 30436 var _values = _slicedToArray(values2, 2), a2 = _values[0], b3 = _values[1];
-1 30437 var radians = Math.atan2(parseFloat(b3), parseFloat(a2));
25605 30438 return convertRadToDeg(radians);
25606 30439 }
25607 -1 var sinB = parseFloat(values[8]);
25608 -1 var b = Math.asin(sinB);
25609 -1 var cosB = Math.cos(b);
25610 -1 var rotateZRadians = Math.acos(parseFloat(values[0]) / cosB);
-1 30440 var sinB = parseFloat(values2[8]);
-1 30441 var b2 = Math.asin(sinB);
-1 30442 var cosB = Math.cos(b2);
-1 30443 var rotateZRadians = Math.acos(parseFloat(values2[0]) / cosB);
25611 30444 return convertRadToDeg(rotateZRadians);
25612 30445 }
25613 30446 function convertRadToDeg(radians) {
@@ -25626,7 +30459,7 @@ module.exports = {
25626 30459 }
25627 30460 var css_orientation_lock_evaluate_default = cssOrientationLockEvaluate;
25628 30461 function metaViewportScaleEvaluate(node, options, virtualNode) {
25629 -1 var _ref92 = options || {}, _ref92$scaleMinimum = _ref92.scaleMinimum, scaleMinimum = _ref92$scaleMinimum === void 0 ? 2 : _ref92$scaleMinimum, _ref92$lowerBound = _ref92.lowerBound, lowerBound = _ref92$lowerBound === void 0 ? false : _ref92$lowerBound;
-1 30462 var _ref126 = options || {}, _ref126$scaleMinimum = _ref126.scaleMinimum, scaleMinimum = _ref126$scaleMinimum === void 0 ? 2 : _ref126$scaleMinimum, _ref126$lowerBound = _ref126.lowerBound, lowerBound = _ref126$lowerBound === void 0 ? false : _ref126$lowerBound;
25630 30463 var content = virtualNode.attr('content') || '';
25631 30464 if (!content) {
25632 30465 return true;
@@ -25670,29 +30503,29 @@ module.exports = {
25670 30503 return true;
25671 30504 }
25672 30505 var meta_viewport_scale_evaluate_default = metaViewportScaleEvaluate;
25673 -1 var roundingMargin = .05;
-1 30506 var roundingMargin2 = .05;
25674 30507 function targetOffsetEvaluate(node, options, vNode) {
25675 30508 var minOffset = (options === null || options === void 0 ? void 0 : options.minOffset) || 24;
25676 30509 var closeNeighbors = [];
25677 30510 var closestOffset = minOffset;
25678 -1 var _iterator8 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step8;
-1 30511 var _iterator19 = _createForOfIteratorHelper(_findNearbyElms(vNode, minOffset)), _step19;
25679 30512 try {
25680 -1 for (_iterator8.s(); !(_step8 = _iterator8.n()).done; ) {
25681 -1 var vNeighbor = _step8.value;
-1 30513 for (_iterator19.s(); !(_step19 = _iterator19.n()).done; ) {
-1 30514 var vNeighbor = _step19.value;
25682 30515 if (get_role_type_default(vNeighbor) !== 'widget' || !_isFocusable(vNeighbor)) {
25683 30516 continue;
25684 30517 }
25685 -1 var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor));
25686 -1 if (offset + roundingMargin >= minOffset) {
-1 30518 var offset = roundToSingleDecimal(_getOffset(vNode, vNeighbor, minOffset / 2)) * 2;
-1 30519 if (offset + roundingMargin2 >= minOffset) {
25687 30520 continue;
25688 30521 }
25689 30522 closestOffset = Math.min(closestOffset, offset);
25690 30523 closeNeighbors.push(vNeighbor);
25691 30524 }
25692 30525 } catch (err) {
25693 -1 _iterator8.e(err);
-1 30526 _iterator19.e(err);
25694 30527 } finally {
25695 -1 _iterator8.f();
-1 30528 _iterator19.f();
25696 30529 }
25697 30530 if (closeNeighbors.length === 0) {
25698 30531 this.data({
@@ -25701,8 +30534,8 @@ module.exports = {
25701 30534 });
25702 30535 return true;
25703 30536 }
25704 -1 this.relatedNodes(closeNeighbors.map(function(_ref93) {
25705 -1 var actualNode = _ref93.actualNode;
-1 30537 this.relatedNodes(closeNeighbors.map(function(_ref127) {
-1 30538 var actualNode = _ref127.actualNode;
25706 30539 return actualNode;
25707 30540 }));
25708 30541 if (!closeNeighbors.some(_isInTabOrder)) {
@@ -25722,11 +30555,10 @@ module.exports = {
25722 30555 function roundToSingleDecimal(num) {
25723 30556 return Math.round(num * 10) / 10;
25724 30557 }
25725 -1 var roundingMargin2 = .05;
25726 30558 function targetSize(node, options, vNode) {
25727 30559 var minSize = (options === null || options === void 0 ? void 0 : options.minSize) || 24;
25728 30560 var nodeRect = vNode.boundingClientRect;
25729 -1 var hasMinimumSize = rectHasMinimumSize.bind(null, minSize);
-1 30561 var hasMinimumSize = _rectHasMinimumSize.bind(null, minSize);
25730 30562 var nearbyElms = _findNearbyElms(vNode);
25731 30563 var overflowingContent = filterOverflowingContent(vNode, nearbyElms);
25732 30564 var _filterByElmsOverlap = filterByElmsOverlap(vNode, nearbyElms), fullyObscuringElms = _filterByElmsOverlap.fullyObscuringElms, partialObscuringElms = _filterByElmsOverlap.partialObscuringElms;
@@ -25774,18 +30606,18 @@ module.exports = {
25774 30606 }
25775 30607 function filterOverflowingContent(vNode, nearbyElms) {
25776 30608 return nearbyElms.filter(function(nearbyElm) {
25777 -1 return !isEnclosedRect(nearbyElm, vNode) && isDescendantNotInTabOrder(vNode, nearbyElm);
-1 30609 return !isEnclosedRect2(nearbyElm, vNode) && isDescendantNotInTabOrder2(vNode, nearbyElm);
25778 30610 });
25779 30611 }
25780 30612 function filterByElmsOverlap(vNode, nearbyElms) {
25781 30613 var fullyObscuringElms = [];
25782 30614 var partialObscuringElms = [];
25783 -1 var _iterator9 = _createForOfIteratorHelper(nearbyElms), _step9;
-1 30615 var _iterator20 = _createForOfIteratorHelper(nearbyElms), _step20;
25784 30616 try {
25785 -1 for (_iterator9.s(); !(_step9 = _iterator9.n()).done; ) {
25786 -1 var vNeighbor = _step9.value;
25787 -1 if (!isDescendantNotInTabOrder(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
25788 -1 if (isEnclosedRect(vNode, vNeighbor)) {
-1 30617 for (_iterator20.s(); !(_step20 = _iterator20.n()).done; ) {
-1 30618 var vNeighbor = _step20.value;
-1 30619 if (!isDescendantNotInTabOrder2(vNode, vNeighbor) && _hasVisualOverlap(vNode, vNeighbor) && getCssPointerEvents(vNeighbor) !== 'none') {
-1 30620 if (isEnclosedRect2(vNode, vNeighbor)) {
25789 30621 fullyObscuringElms.push(vNeighbor);
25790 30622 } else {
25791 30623 partialObscuringElms.push(vNeighbor);
@@ -25793,9 +30625,9 @@ module.exports = {
25793 30625 }
25794 30626 }
25795 30627 } catch (err) {
25796 -1 _iterator9.e(err);
-1 30628 _iterator20.e(err);
25797 30629 } finally {
25798 -1 _iterator9.f();
-1 30630 _iterator20.f();
25799 30631 }
25800 30632 return {
25801 30633 fullyObscuringElms: fullyObscuringElms,
@@ -25807,17 +30639,17 @@ module.exports = {
25807 30639 if (obscuredNodes.length === 0) {
25808 30640 return null;
25809 30641 }
25810 -1 var obscuringRects = obscuredNodes.map(function(_ref94) {
25811 -1 var rect = _ref94.boundingClientRect;
-1 30642 var obscuringRects = obscuredNodes.map(function(_ref128) {
-1 30643 var rect = _ref128.boundingClientRect;
25812 30644 return rect;
25813 30645 });
25814 30646 var unobscuredRects = _splitRects(nodeRect, obscuringRects);
25815 -1 return getLargestRect(unobscuredRects);
-1 30647 return getLargestRect2(unobscuredRects);
25816 30648 }
25817 -1 function getLargestRect(rects, minSize) {
-1 30649 function getLargestRect2(rects, minSize) {
25818 30650 return rects.reduce(function(rectA, rectB) {
25819 -1 var rectAisMinimum = rectHasMinimumSize(minSize, rectA);
25820 -1 var rectBisMinimum = rectHasMinimumSize(minSize, rectB);
-1 30651 var rectAisMinimum = _rectHasMinimumSize(minSize, rectA);
-1 30652 var rectBisMinimum = _rectHasMinimumSize(minSize, rectB);
25821 30653 if (rectAisMinimum !== rectBisMinimum) {
25822 30654 return rectAisMinimum ? rectA : rectB;
25823 30655 }
@@ -25831,7 +30663,7 @@ module.exports = {
25831 30663 return get_role_type_default(vNode) === 'widget' && _isFocusable(vNode);
25832 30664 });
25833 30665 }
25834 -1 function isEnclosedRect(vNodeA, vNodeB) {
-1 30666 function isEnclosedRect2(vNodeA, vNodeB) {
25835 30667 var rectA = vNodeA.boundingClientRect;
25836 30668 var rectB = vNodeB.boundingClientRect;
25837 30669 return rectA.top >= rectB.top && rectA.left >= rectB.left && rectA.bottom <= rectB.bottom && rectA.right <= rectB.right;
@@ -25845,16 +30677,12 @@ module.exports = {
25845 30677 height: Math.round(rect.height * 10) / 10
25846 30678 };
25847 30679 }
25848 -1 function isDescendantNotInTabOrder(vAncestor, vNode) {
-1 30680 function isDescendantNotInTabOrder2(vAncestor, vNode) {
25849 30681 return vAncestor.actualNode.contains(vNode.actualNode) && !_isInTabOrder(vNode);
25850 30682 }
25851 -1 function rectHasMinimumSize(minSize, _ref95) {
25852 -1 var width = _ref95.width, height = _ref95.height;
25853 -1 return width + roundingMargin2 >= minSize && height + roundingMargin2 >= minSize;
25854 -1 }
25855 30683 function mapActualNodes(vNodes) {
25856 -1 return vNodes.map(function(_ref96) {
25857 -1 var actualNode = _ref96.actualNode;
-1 30684 return vNodes.map(function(_ref129) {
-1 30685 var actualNode = _ref129.actualNode;
25858 30686 return actualNode;
25859 30687 });
25860 30688 }
@@ -25880,14 +30708,14 @@ module.exports = {
25880 30708 }
25881 30709 function getHeadingOrder(results) {
25882 30710 results = _toConsumableArray(results);
25883 -1 results.sort(function(_ref97, _ref98) {
25884 -1 var nodeA = _ref97.node;
25885 -1 var nodeB = _ref98.node;
-1 30711 results.sort(function(_ref130, _ref131) {
-1 30712 var nodeA = _ref130.node;
-1 30713 var nodeB = _ref131.node;
25886 30714 return nodeA.ancestry.length - nodeB.ancestry.length;
25887 30715 });
25888 30716 var headingOrder = results.reduce(mergeHeadingOrder, []);
25889 -1 return headingOrder.filter(function(_ref99) {
25890 -1 var level = _ref99.level;
-1 30717 return headingOrder.filter(function(_ref132) {
-1 30718 var level = _ref132.level;
25891 30719 return level !== -1;
25892 30720 });
25893 30721 }
@@ -25921,7 +30749,7 @@ module.exports = {
25921 30749 }
25922 30750 function findHeadingOrderIndex(headingOrder, ancestry) {
25923 30751 return headingOrder.findIndex(function(heading) {
25924 -1 return match_ancestry_default(heading.ancestry, ancestry);
-1 30752 return _matchAncestry(heading.ancestry, ancestry);
25925 30753 });
25926 30754 }
25927 30755 function addFrameToHeadingAncestry(heading, frameAncestry) {
@@ -25938,7 +30766,7 @@ module.exports = {
25938 30766 var headingRole = role && role.includes('heading');
25939 30767 var ariaHeadingLevel = vNode.attr('aria-level');
25940 30768 var ariaLevel = parseInt(ariaHeadingLevel, 10);
25941 -1 var _ref100 = vNode.props.nodeName.match(/h(\d)/) || [], _ref101 = _slicedToArray(_ref100, 2), headingLevel = _ref101[1];
-1 30769 var _ref133 = vNode.props.nodeName.match(/h(\d)/) || [], _ref134 = _slicedToArray(_ref133, 2), headingLevel = _ref134[1];
25942 30770 if (!headingRole) {
25943 30771 return -1;
25944 30772 }
@@ -25976,18 +30804,18 @@ module.exports = {
25976 30804 return true;
25977 30805 }
25978 30806 var heading_order_evaluate_default = headingOrderEvaluate;
25979 -1 function isIdenticalObject(a, b) {
25980 -1 if (!a || !b) {
-1 30807 function isIdenticalObject(a2, b2) {
-1 30808 if (!a2 || !b2) {
25981 30809 return false;
25982 30810 }
25983 -1 var aProps = Object.getOwnPropertyNames(a);
25984 -1 var bProps = Object.getOwnPropertyNames(b);
-1 30811 var aProps = Object.getOwnPropertyNames(a2);
-1 30812 var bProps = Object.getOwnPropertyNames(b2);
25985 30813 if (aProps.length !== bProps.length) {
25986 30814 return false;
25987 30815 }
25988 30816 var result = aProps.every(function(propName) {
25989 -1 var aValue = a[propName];
25990 -1 var bValue = b[propName];
-1 30817 var aValue = a2[propName];
-1 30818 var bValue = b2[propName];
25991 30819 if (_typeof(aValue) !== _typeof(bValue)) {
25992 30820 return false;
25993 30821 }
@@ -26002,26 +30830,26 @@ module.exports = {
26002 30830 if (results.length < 2) {
26003 30831 return results;
26004 30832 }
26005 -1 var incompleteResults = results.filter(function(_ref102) {
26006 -1 var result = _ref102.result;
-1 30833 var incompleteResults = results.filter(function(_ref135) {
-1 30834 var result = _ref135.result;
26007 30835 return result !== void 0;
26008 30836 });
26009 30837 var uniqueResults = [];
26010 30838 var nameMap = {};
26011 -1 var _loop8 = function _loop8(index) {
-1 30839 var _loop9 = function _loop9(index) {
26012 30840 var _currentResult$relate;
26013 30841 var currentResult = incompleteResults[index];
26014 30842 var _currentResult$data = currentResult.data, name = _currentResult$data.name, urlProps = _currentResult$data.urlProps;
26015 30843 if (nameMap[name]) {
26016 30844 return 'continue';
26017 30845 }
26018 -1 var sameNameResults = incompleteResults.filter(function(_ref103, resultNum) {
26019 -1 var data2 = _ref103.data;
26020 -1 return data2.name === name && resultNum !== index;
-1 30846 var sameNameResults = incompleteResults.filter(function(_ref136, resultNum) {
-1 30847 var data = _ref136.data;
-1 30848 return data.name === name && resultNum !== index;
26021 30849 });
26022 -1 var isSameUrl = sameNameResults.every(function(_ref104) {
26023 -1 var data2 = _ref104.data;
26024 -1 return isIdenticalObject(data2.urlProps, urlProps);
-1 30850 var isSameUrl = sameNameResults.every(function(_ref137) {
-1 30851 var data = _ref137.data;
-1 30852 return isIdenticalObject(data.urlProps, urlProps);
26025 30853 });
26026 30854 if (sameNameResults.length && !isSameUrl) {
26027 30855 currentResult.result = void 0;
@@ -26034,8 +30862,8 @@ module.exports = {
26034 30862 uniqueResults.push(currentResult);
26035 30863 };
26036 30864 for (var index = 0; index < incompleteResults.length; index++) {
26037 -1 var _ret4 = _loop8(index);
26038 -1 if (_ret4 === 'continue') {
-1 30865 var _ret7 = _loop9(index);
-1 30866 if (_ret7 === 'continue') {
26039 30867 continue;
26040 30868 }
26041 30869 }
@@ -26057,7 +30885,7 @@ module.exports = {
26057 30885 return forms_exports;
26058 30886 },
26059 30887 matches: function matches() {
26060 -1 return matches_default3;
-1 30888 return matches_default2;
26061 30889 },
26062 30890 math: function math() {
26063 30891 return math_exports;
@@ -26132,7 +30960,7 @@ module.exports = {
26132 30960 return get_headers_default;
26133 30961 },
26134 30962 getScope: function getScope() {
26135 -1 return get_scope_default;
-1 30963 return _getScope;
26136 30964 },
26137 30965 isColumnHeader: function isColumnHeader() {
26138 30966 return is_column_header_default;
@@ -26339,8 +31167,8 @@ module.exports = {
26339 31167 return true;
26340 31168 }
26341 31169 if (cell.getAttribute('id')) {
26342 -1 var id = escape_selector_default(cell.getAttribute('id'));
26343 -1 return !!document.querySelector('[headers~="'.concat(id, '"]'));
-1 31170 var _id5 = escape_selector_default(cell.getAttribute('id'));
-1 31171 return !!document.querySelector('[headers~="'.concat(_id5, '"]'));
26344 31172 }
26345 31173 return false;
26346 31174 }
@@ -26439,7 +31267,7 @@ module.exports = {
26439 31267 var separatorRegex = /[;,\s]/;
26440 31268 var validRedirectNumRegex = /^[0-9.]+$/;
26441 31269 function metaRefreshEvaluate(node, options, virtualNode) {
26442 -1 var _ref105 = options || {}, minDelay = _ref105.minDelay, maxDelay = _ref105.maxDelay;
-1 31270 var _ref138 = options || {}, minDelay = _ref138.minDelay, maxDelay = _ref138.maxDelay;
26443 31271 var content = (virtualNode.attr('content') || '').trim();
26444 31272 var _content$split = content.split(separatorRegex), _content$split2 = _slicedToArray(_content$split, 1), redirectStr = _content$split2[0];
26445 31273 if (!redirectStr.match(validRedirectNumRegex)) {
@@ -26479,16 +31307,16 @@ module.exports = {
26479 31307 var outerText = elm.textContent.trim();
26480 31308 var innerText = outerText;
26481 31309 while (innerText === outerText && nextNode !== void 0) {
26482 -1 var _i25 = -1;
-1 31310 var _i35 = -1;
26483 31311 elm = nextNode;
26484 31312 if (elm.children.length === 0) {
26485 31313 return elm;
26486 31314 }
26487 31315 do {
26488 -1 _i25++;
26489 -1 innerText = elm.children[_i25].textContent.trim();
26490 -1 } while (innerText === '' && _i25 + 1 < elm.children.length);
26491 -1 nextNode = elm.children[_i25];
-1 31316 _i35++;
-1 31317 innerText = elm.children[_i35].textContent.trim();
-1 31318 } while (innerText === '' && _i35 + 1 < elm.children.length);
-1 31319 nextNode = elm.children[_i35];
26492 31320 }
26493 31321 return elm;
26494 31322 }
@@ -26551,19 +31379,19 @@ module.exports = {
26551 31379 return;
26552 31380 }
26553 31381 var frameAncestry = r.node.ancestry.slice(0, -1);
26554 -1 var _iterator10 = _createForOfIteratorHelper(iframeResults), _step10;
-1 31382 var _iterator21 = _createForOfIteratorHelper(iframeResults), _step21;
26555 31383 try {
26556 -1 for (_iterator10.s(); !(_step10 = _iterator10.n()).done; ) {
26557 -1 var iframeResult = _step10.value;
26558 -1 if (match_ancestry_default(frameAncestry, iframeResult.node.ancestry)) {
-1 31384 for (_iterator21.s(); !(_step21 = _iterator21.n()).done; ) {
-1 31385 var iframeResult = _step21.value;
-1 31386 if (_matchAncestry(frameAncestry, iframeResult.node.ancestry)) {
26559 31387 r.result = iframeResult.result;
26560 31388 break;
26561 31389 }
26562 31390 }
26563 31391 } catch (err) {
26564 -1 _iterator10.e(err);
-1 31392 _iterator21.e(err);
26565 31393 } finally {
26566 -1 _iterator10.f();
-1 31394 _iterator21.f();
26567 31395 }
26568 31396 });
26569 31397 iframeResults.forEach(function(r) {
@@ -26574,7 +31402,6 @@ module.exports = {
26574 31402 return results;
26575 31403 }
26576 31404 var region_after_default = regionAfter;
26577 -1 var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
26578 31405 var implicitAriaLiveRoles = [ 'alert', 'log', 'status' ];
26579 31406 function regionEvaluate(node, options, virtualNode) {
26580 31407 this.data({
@@ -26611,13 +31438,13 @@ module.exports = {
26611 31438 } else if (node !== document.body && has_content_default(node, true)) {
26612 31439 return [ virtualNode ];
26613 31440 } else {
26614 -1 return virtualNode.children.filter(function(_ref106) {
26615 -1 var actualNode = _ref106.actualNode;
-1 31441 return virtualNode.children.filter(function(_ref139) {
-1 31442 var actualNode = _ref139.actualNode;
26616 31443 return actualNode.nodeType === 1;
26617 31444 }).map(function(vNode) {
26618 31445 return findRegionlessElms(vNode, options);
26619 -1 }).reduce(function(a, b) {
26620 -1 return a.concat(b);
-1 31446 }).reduce(function(a2, b2) {
-1 31447 return a2.concat(b2);
26621 31448 }, []);
26622 31449 }
26623 31450 }
@@ -26625,13 +31452,14 @@ module.exports = {
26625 31452 var node = virtualNode.actualNode;
26626 31453 var role = get_role_default(virtualNode);
26627 31454 var ariaLive = (node.getAttribute('aria-live') || '').toLowerCase().trim();
-1 31455 var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
26628 31456 if ([ 'assertive', 'polite' ].includes(ariaLive) || implicitAriaLiveRoles.includes(role)) {
26629 31457 return true;
26630 31458 }
26631 31459 if (landmarkRoles2.includes(role)) {
26632 31460 return true;
26633 31461 }
26634 -1 if (options.regionMatcher && matches_default3(virtualNode, options.regionMatcher)) {
-1 31462 if (options.regionMatcher && matches_default2(virtualNode, options.regionMatcher)) {
26635 31463 return true;
26636 31464 }
26637 31465 return false;
@@ -26689,7 +31517,7 @@ module.exports = {
26689 31517 }
26690 31518 var duplicate_id_evaluate_default = duplicateIdEvaluate;
26691 31519 function ariaLabelEvaluate(node, options, virtualNode) {
26692 -1 return !!sanitize_default(arialabel_text_default(virtualNode));
-1 31520 return !!sanitize_default(_arialabelText(virtualNode));
26693 31521 }
26694 31522 var aria_label_evaluate_default = ariaLabelEvaluate;
26695 31523 function ariaLabelledbyEvaluate(node, options, virtualNode) {
@@ -26735,18 +31563,18 @@ module.exports = {
26735 31563 if (!noImportant && node.style.getPropertyPriority(cssProperty) !== 'important' || multiLineOnly && !_isMultiline(node)) {
26736 31564 return true;
26737 31565 }
26738 -1 var data2 = {};
-1 31566 var data = {};
26739 31567 if (typeof minValue === 'number') {
26740 -1 data2.minValue = minValue;
-1 31568 data.minValue = minValue;
26741 31569 }
26742 31570 if (typeof maxValue === 'number') {
26743 -1 data2.maxValue = maxValue;
-1 31571 data.maxValue = maxValue;
26744 31572 }
26745 31573 var declaredPropValue = node.style.getPropertyValue(cssProperty);
26746 31574 if ([ 'inherit', 'unset', 'revert', 'revert-layer' ].includes(declaredPropValue)) {
26747 31575 this.data(_extends({
26748 31576 value: declaredPropValue
26749 -1 }, data2));
-1 31577 }, data));
26750 31578 return true;
26751 31579 }
26752 31580 var value = getNumberValue(node, {
@@ -26756,7 +31584,7 @@ module.exports = {
26756 31584 });
26757 31585 this.data(_extends({
26758 31586 value: value
26759 -1 }, data2));
-1 31587 }, data));
26760 31588 if (typeof value !== 'number') {
26761 31589 return void 0;
26762 31590 }
@@ -26765,8 +31593,8 @@ module.exports = {
26765 31593 }
26766 31594 return false;
26767 31595 }
26768 -1 function getNumberValue(domNode, _ref107) {
26769 -1 var cssProperty = _ref107.cssProperty, absoluteValues = _ref107.absoluteValues, normalValue = _ref107.normalValue;
-1 31596 function getNumberValue(domNode, _ref140) {
-1 31597 var cssProperty = _ref140.cssProperty, absoluteValues = _ref140.absoluteValues, normalValue = _ref140.normalValue;
26770 31598 var computedStyle = window.getComputedStyle(domNode);
26771 31599 var cssPropValue = computedStyle.getPropertyValue(cssProperty);
26772 31600 if (cssPropValue === 'normal') {
@@ -26789,14 +31617,14 @@ module.exports = {
26789 31617 var is_on_screen_evaluate_default = isOnScreenEvaluate;
26790 31618 function nonEmptyIfPresentEvaluate(node, options, virtualNode) {
26791 31619 var nodeName2 = virtualNode.props.nodeName;
26792 -1 var type = (virtualNode.attr('type') || '').toLowerCase();
-1 31620 var type2 = (virtualNode.attr('type') || '').toLowerCase();
26793 31621 var label3 = virtualNode.attr('value');
26794 31622 if (label3) {
26795 31623 this.data({
26796 31624 messageKey: 'has-label'
26797 31625 });
26798 31626 }
26799 -1 if (nodeName2 === 'input' && [ 'submit', 'reset' ].includes(type)) {
-1 31627 if (nodeName2 === 'input' && [ 'submit', 'reset' ].includes(type2)) {
26800 31628 return label3 === null;
26801 31629 }
26802 31630 return false;
@@ -26843,8 +31671,8 @@ module.exports = {
26843 31671 if (!virtualNode.children) {
26844 31672 return void 0;
26845 31673 }
26846 -1 var titleNode = virtualNode.children.find(function(_ref108) {
26847 -1 var props = _ref108.props;
-1 31674 var titleNode = virtualNode.children.find(function(_ref141) {
-1 31675 var props = _ref141.props;
26848 31676 return props.nodeName === 'title';
26849 31677 });
26850 31678 if (!titleNode) {
@@ -26939,12 +31767,11 @@ module.exports = {
26939 31767 cells.push(row.cells[cellIndex]);
26940 31768 }
26941 31769 }
26942 -1 var ids = cells.reduce(function(ids2, cell) {
26943 -1 if (cell.getAttribute('id')) {
26944 -1 ids2.push(cell.getAttribute('id'));
26945 -1 }
26946 -1 return ids2;
26947 -1 }, []);
-1 31770 var ids = cells.filter(function(cell) {
-1 31771 return cell.getAttribute('id');
-1 31772 }).map(function(cell) {
-1 31773 return cell.getAttribute('id');
-1 31774 });
26948 31775 cells.forEach(function(cell) {
26949 31776 var isSelf = false;
26950 31777 var notOfTable = false;
@@ -26978,7 +31805,6 @@ module.exports = {
26978 31805 }
26979 31806 return true;
26980 31807 }
26981 -1 var td_headers_attr_evaluate_default = tdHeadersAttrEvaluate;
26982 31808 function thHasDataCellsEvaluate(node) {
26983 31809 var cells = get_all_cells_default(node);
26984 31810 var checkResult = this;
@@ -27046,8 +31872,8 @@ module.exports = {
27046 31872 var aria = /^aria-/;
27047 31873 var attrs = virtualNode.attrNames;
27048 31874 if (attrs.length) {
27049 -1 for (var _i26 = 0, l = attrs.length; _i26 < l; _i26++) {
27050 -1 if (aria.test(attrs[_i26])) {
-1 31875 for (var _i36 = 0, l = attrs.length; _i36 < l; _i36++) {
-1 31876 if (aria.test(attrs[_i36])) {
27051 31877 return true;
27052 31878 }
27053 31879 }
@@ -27137,7 +31963,7 @@ module.exports = {
27137 31963 }
27138 31964 var bypass_matches_default = bypassMatches;
27139 31965 function colorContrastMatches(node, virtualNode) {
27140 -1 var _virtualNode$props = virtualNode.props, nodeName2 = _virtualNode$props.nodeName, inputType = _virtualNode$props.type;
-1 31966 var _virtualNode$props2 = virtualNode.props, nodeName2 = _virtualNode$props2.nodeName, inputType = _virtualNode$props2.type;
27141 31967 if (nodeName2 === 'option') {
27142 31968 return false;
27143 31969 }
@@ -27148,7 +31974,7 @@ module.exports = {
27148 31974 if (nodeName2 === 'input' && nonTextInput.includes(inputType)) {
27149 31975 return false;
27150 31976 }
27151 -1 if (is_disabled_default(virtualNode)) {
-1 31977 if (is_disabled_default(virtualNode) || _isInert(virtualNode)) {
27152 31978 return false;
27153 31979 }
27154 31980 var formElements = [ 'input', 'select', 'textarea' ];
@@ -27203,24 +32029,18 @@ module.exports = {
27203 32029 if (ariaLabelledbyControls.length > 0 && ariaLabelledbyControls.every(is_disabled_default)) {
27204 32030 return false;
27205 32031 }
27206 -1 var visibleText = visible_virtual_default(virtualNode, false, true);
27207 -1 var removeUnicodeOptions = {
27208 -1 emoji: true,
27209 -1 nonBmp: false,
27210 -1 punctuations: true
27211 -1 };
27212 -1 if (!visibleText || !remove_unicode_default(visibleText, removeUnicodeOptions)) {
-1 32032 if (!hasRealTextChildren(virtualNode)) {
27213 32033 return false;
27214 32034 }
27215 -1 var range = document.createRange();
-1 32035 var range2 = document.createRange();
27216 32036 var childNodes = virtualNode.children;
27217 32037 for (var index = 0; index < childNodes.length; index++) {
27218 32038 var child = childNodes[index];
27219 32039 if (child.actualNode.nodeType === 3 && sanitize_default(child.actualNode.nodeValue) !== '') {
27220 -1 range.selectNodeContents(child.actualNode);
-1 32040 range2.selectNodeContents(child.actualNode);
27221 32041 }
27222 32042 }
27223 -1 var rects = range.getClientRects();
-1 32043 var rects = range2.getClientRects();
27224 32044 for (var _index2 = 0; _index2 < rects.length; _index2++) {
27225 32045 if (visually_overlaps_default(rects[_index2], node)) {
27226 32046 return true;
@@ -27229,6 +32049,20 @@ module.exports = {
27229 32049 return false;
27230 32050 }
27231 32051 var color_contrast_matches_default = colorContrastMatches;
-1 32052 var removeUnicodeOptions = {
-1 32053 emoji: true,
-1 32054 nonBmp: false,
-1 32055 punctuations: true
-1 32056 };
-1 32057 function hasRealTextChildren(virtualNode) {
-1 32058 var visibleText = visible_virtual_default(virtualNode, false, true);
-1 32059 if (visibleText === '' || remove_unicode_default(visibleText, removeUnicodeOptions) === '') {
-1 32060 return false;
-1 32061 }
-1 32062 return virtualNode.children.some(function(vChild) {
-1 32063 return vChild.props.nodeName === '#text' && !_isIconLigature(vChild);
-1 32064 });
-1 32065 }
27232 32066 function dataTableLargeMatches(node) {
27233 32067 if (is_data_table_default(node)) {
27234 32068 var tableArray = to_grid_default(node);
@@ -27297,7 +32131,7 @@ module.exports = {
27297 32131 }
27298 32132 var html_namespace_matches_default = htmlNamespaceMatches;
27299 32133 function identicalLinksSamePurposeMatches(node, virtualNode) {
27300 -1 var hasAccName = !!accessible_text_virtual_default(virtualNode);
-1 32134 var hasAccName = !!_accessibleTextVirtual(virtualNode);
27301 32135 if (!hasAccName) {
27302 32136 return false;
27303 32137 }
@@ -27332,7 +32166,7 @@ module.exports = {
27332 32166 if (!rolesWithNameFromContents.includes(role)) {
27333 32167 return false;
27334 32168 }
27335 -1 if (!sanitize_default(arialabel_text_default(virtualNode)) && !sanitize_default(arialabelledby_text_default(node))) {
-1 32169 if (!sanitize_default(_arialabelText(virtualNode)) && !sanitize_default(arialabelledby_text_default(node))) {
27336 32170 return false;
27337 32171 }
27338 32172 if (!sanitize_default(visible_virtual_default(virtualNode))) {
@@ -27345,8 +32179,8 @@ module.exports = {
27345 32179 if (virtualNode.props.nodeName !== 'input' || virtualNode.hasAttr('type') === false) {
27346 32180 return true;
27347 32181 }
27348 -1 var type = virtualNode.attr('type').toLowerCase();
27349 -1 return [ 'hidden', 'image', 'button', 'submit', 'reset' ].includes(type) === false;
-1 32182 var type2 = virtualNode.attr('type').toLowerCase();
-1 32183 return [ 'hidden', 'image', 'button', 'submit', 'reset' ].includes(type2) === false;
27350 32184 }
27351 32185 var label_matches_default = labelMatches;
27352 32186 function landmarkHasBodyContextMatches(node, virtualNode) {
@@ -27354,31 +32188,29 @@ module.exports = {
27354 32188 return node.hasAttribute('role') || !find_up_virtual_default(virtualNode, nativeScopeFilter);
27355 32189 }
27356 32190 var landmark_has_body_context_matches_default = landmarkHasBodyContextMatches;
-1 32191 var excludedParentsForHeaderFooterLandmarks = [ 'article', 'aside', 'main', 'nav', 'section' ].join(',');
27357 32192 function landmarkUniqueMatches(node, virtualNode) {
27358 -1 var excludedParentsForHeaderFooterLandmarks = [ 'article', 'aside', 'main', 'nav', 'section' ].join(',');
27359 -1 function isHeaderFooterLandmark(headerFooterElement) {
27360 -1 return !closest_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);
27361 -1 }
27362 -1 function isLandmarkVirtual(virtualNode2) {
27363 -1 var actualNode = virtualNode2.actualNode;
27364 -1 var landmarkRoles3 = get_aria_roles_by_type_default('landmark');
27365 -1 var role = get_role_default(actualNode);
27366 -1 if (!role) {
27367 -1 return false;
27368 -1 }
27369 -1 var nodeName2 = actualNode.nodeName.toUpperCase();
27370 -1 if (nodeName2 === 'HEADER' || nodeName2 === 'FOOTER') {
27371 -1 return isHeaderFooterLandmark(virtualNode2);
27372 -1 }
27373 -1 if (nodeName2 === 'SECTION' || nodeName2 === 'FORM') {
27374 -1 var accessibleText2 = accessible_text_virtual_default(virtualNode2);
27375 -1 return !!accessibleText2;
27376 -1 }
27377 -1 return landmarkRoles3.indexOf(role) >= 0 || role === 'region';
-1 32193 return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(virtualNode);
-1 32194 }
-1 32195 function isLandmarkVirtual(vNode) {
-1 32196 var landmarkRoles2 = get_aria_roles_by_type_default('landmark');
-1 32197 var role = get_role_default(vNode);
-1 32198 if (!role) {
-1 32199 return false;
-1 32200 }
-1 32201 var nodeName2 = vNode.props.nodeName;
-1 32202 if (nodeName2 === 'header' || nodeName2 === 'footer') {
-1 32203 return isHeaderFooterLandmark(vNode);
27378 32204 }
27379 -1 return isLandmarkVirtual(virtualNode) && _isVisibleToScreenReaders(node);
-1 32205 if (nodeName2 === 'section' || nodeName2 === 'form') {
-1 32206 var accessibleText2 = _accessibleTextVirtual(vNode);
-1 32207 return !!accessibleText2;
-1 32208 }
-1 32209 return landmarkRoles2.indexOf(role) >= 0 || role === 'region';
-1 32210 }
-1 32211 function isHeaderFooterLandmark(headerFooterElement) {
-1 32212 return !closest_default(headerFooterElement, excludedParentsForHeaderFooterLandmarks);
27380 32213 }
27381 -1 var landmark_unique_matches_default = landmarkUniqueMatches;
27382 32214 function dataTableMatches2(node) {
27383 32215 return !is_data_table_default(node) && !_isFocusable(node);
27384 32216 }
@@ -27431,7 +32263,7 @@ module.exports = {
27431 32263 if (!role || [ 'none', 'presentation' ].includes(role)) {
27432 32264 return true;
27433 32265 }
27434 -1 var _ref109 = aria_roles_default[role] || {}, accessibleNameRequired = _ref109.accessibleNameRequired;
-1 32266 var _ref142 = aria_roles_default[role] || {}, accessibleNameRequired = _ref142.accessibleNameRequired;
27435 32267 if (accessibleNameRequired || _isFocusable(virtualNode)) {
27436 32268 return true;
27437 32269 }
@@ -27446,6 +32278,11 @@ module.exports = {
27446 32278 if (get_explicit_role_default(virtualNode) === 'combobox' && query_selector_all_default(virtualNode, 'input:not([type="hidden"])').length) {
27447 32279 return false;
27448 32280 }
-1 32281 if (_isComboboxPopup(virtualNode, {
-1 32282 popupRoles: [ 'listbox' ]
-1 32283 })) {
-1 32284 return false;
-1 32285 }
27449 32286 return true;
27450 32287 }
27451 32288 var no_naming_method_matches_default = noNamingMethodMatches;
@@ -27472,10 +32309,10 @@ module.exports = {
27472 32309 if (!(node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.createRange)) {
27473 32310 return true;
27474 32311 }
27475 -1 var range = node.ownerDocument.createRange();
27476 -1 range.setStart(node, 0);
27477 -1 range.setEnd(node, node.childNodes.length);
27478 -1 return range.getClientRects().length === 0;
-1 32312 var range2 = node.ownerDocument.createRange();
-1 32313 range2.setStart(node, 0);
-1 32314 range2.setEnd(node, node.childNodes.length);
-1 32315 return range2.getClientRects().length === 0;
27479 32316 }
27480 32317 function pAsHeadingMatches(node) {
27481 32318 var children = Array.from(node.parentNode.childNodes);
@@ -27497,37 +32334,13 @@ module.exports = {
27497 32334 }
27498 32335 var presentation_role_conflict_matches_default = presentationRoleConflictMatches;
27499 32336 function scrollableRegionFocusableMatches(node, virtualNode) {
27500 -1 if (!!_getScroll(node, 13) === false) {
27501 -1 return false;
27502 -1 }
27503 -1 var role = get_explicit_role_default(virtualNode);
27504 -1 if (aria_attrs_default['aria-haspopup'].values.includes(role)) {
27505 -1 if (closest_default(virtualNode, '[role~="combobox"]')) {
27506 -1 return false;
27507 -1 }
27508 -1 var id = virtualNode.attr('id');
27509 -1 if (id) {
27510 -1 var doc = get_root_node_default(node);
27511 -1 var owned = Array.from(doc.querySelectorAll('[aria-owns~="'.concat(id, '"], [aria-controls~="').concat(id, '"]')));
27512 -1 var comboboxOwned = owned.some(function(el) {
27513 -1 var roles = token_list_default(el.getAttribute('role'));
27514 -1 return roles.includes('combobox');
27515 -1 });
27516 -1 if (comboboxOwned) {
27517 -1 return false;
27518 -1 }
27519 -1 }
27520 -1 }
27521 -1 var nodeAndDescendents = query_selector_all_default(virtualNode, '*');
27522 -1 var hasVisibleChildren = nodeAndDescendents.some(function(elm) {
-1 32337 return get_scroll_default(node, 13) !== void 0 && _isComboboxPopup(virtualNode) === false && isNoneEmptyElement(virtualNode);
-1 32338 }
-1 32339 function isNoneEmptyElement(vNode) {
-1 32340 return query_selector_all_default(vNode, '*').some(function(elm) {
27523 32341 return has_content_virtual_default(elm, true, true);
27524 32342 });
27525 -1 if (!hasVisibleChildren) {
27526 -1 return false;
27527 -1 }
27528 -1 return true;
27529 32343 }
27530 -1 var scrollable_region_focusable_matches_default = scrollableRegionFocusableMatches;
27531 32344 function skipLinkMatches(node) {
27532 32345 return _isSkipLink(node) && is_offscreen_default(node);
27533 32346 }
@@ -27591,7 +32404,10 @@ module.exports = {
27591 32404 'aria-allowed-role-evaluate': aria_allowed_role_evaluate_default,
27592 32405 'aria-allowed-role-matches': aria_allowed_role_matches_default,
27593 32406 'aria-busy-evaluate': ariaBusyEvaluate,
27594 -1 'aria-errormessage-evaluate': aria_errormessage_evaluate_default,
-1 32407 'aria-conditional-attr-evaluate': ariaConditionalAttrEvaluate,
-1 32408 'aria-conditional-checkbox-attr-evaluate': ariaConditionalCheckboxAttr,
-1 32409 'aria-conditional-row-attr-evaluate': ariaConditionalRowAttr,
-1 32410 'aria-errormessage-evaluate': ariaErrormessageEvaluate,
27595 32411 'aria-has-attr-matches': aria_has_attr_matches_default,
27596 32412 'aria-hidden-body-evaluate': aria_hidden_body_evaluate_default,
27597 32413 'aria-hidden-focus-matches': aria_hidden_focus_matches_default,
@@ -27600,7 +32416,7 @@ module.exports = {
27600 32416 'aria-level-evaluate': aria_level_evaluate_default,
27601 32417 'aria-prohibited-attr-evaluate': ariaProhibitedAttrEvaluate,
27602 32418 'aria-required-attr-evaluate': ariaRequiredAttrEvaluate,
27603 -1 'aria-required-children-evaluate': aria_required_children_evaluate_default,
-1 32419 'aria-required-children-evaluate': ariaRequiredChildrenEvaluate,
27604 32420 'aria-required-children-matches': aria_required_children_matches_default,
27605 32421 'aria-required-parent-evaluate': aria_required_parent_evaluate_default,
27606 32422 'aria-required-parent-matches': aria_required_parent_matches_default,
@@ -27613,6 +32429,8 @@ module.exports = {
27613 32429 'autocomplete-matches': autocomplete_matches_default,
27614 32430 'autocomplete-valid-evaluate': autocomplete_valid_evaluate_default,
27615 32431 'avoid-inline-spacing-evaluate': avoid_inline_spacing_evaluate_default,
-1 32432 'braille-label-equivalent-evaluate': brailleLabelEquivalentEvaluate,
-1 32433 'braille-roledescription-equivalent-evaluate': brailleRoleDescriptionEquivalentEvaluate,
27616 32434 'bypass-matches': bypass_matches_default,
27617 32435 'caption-evaluate': caption_evaluate_default,
27618 32436 'caption-faked-evaluate': caption_faked_evaluate_default,
@@ -27681,11 +32499,11 @@ module.exports = {
27681 32499 'landmark-is-top-level-evaluate': landmark_is_top_level_evaluate_default,
27682 32500 'landmark-is-unique-after': landmark_is_unique_after_default,
27683 32501 'landmark-is-unique-evaluate': landmark_is_unique_evaluate_default,
27684 -1 'landmark-unique-matches': landmark_unique_matches_default,
-1 32502 'landmark-unique-matches': landmarkUniqueMatches,
27685 32503 'layout-table-matches': layout_table_matches_default,
27686 32504 'link-in-text-block-evaluate': link_in_text_block_evaluate_default,
27687 32505 'link-in-text-block-matches': link_in_text_block_matches_default,
27688 -1 'link-in-text-block-style-evaluate': link_in_text_block_style_evaluate_default,
-1 32506 'link-in-text-block-style-evaluate': linkInTextBlockStyleEvaluate,
27689 32507 'listitem-evaluate': listitemEvaluate,
27690 32508 'matches-definition-evaluate': matches_definition_evaluate_default,
27691 32509 'meta-refresh-evaluate': metaRefreshEvaluate,
@@ -27704,7 +32522,7 @@ module.exports = {
27704 32522 'non-empty-if-present-evaluate': non_empty_if_present_evaluate_default,
27705 32523 'not-html-matches': not_html_matches_default,
27706 32524 'object-is-loaded-matches': object_is_loaded_matches_default,
27707 -1 'only-dlitems-evaluate': only_dlitems_evaluate_default,
-1 32525 'only-dlitems-evaluate': onlyDlitemsEvaluate,
27708 32526 'only-listitems-evaluate': only_listitems_evaluate_default,
27709 32527 'p-as-heading-evaluate': p_as_heading_evaluate_default,
27710 32528 'p-as-heading-matches': p_as_heading_matches_default,
@@ -27716,7 +32534,7 @@ module.exports = {
27716 32534 'region-evaluate': regionEvaluate,
27717 32535 'same-caption-summary-evaluate': same_caption_summary_evaluate_default,
27718 32536 'scope-value-evaluate': scope_value_evaluate_default,
27719 -1 'scrollable-region-focusable-matches': scrollable_region_focusable_matches_default,
-1 32537 'scrollable-region-focusable-matches': scrollableRegionFocusableMatches,
27720 32538 'skip-link-evaluate': skip_link_evaluate_default,
27721 32539 'skip-link-matches': skip_link_matches_default,
27722 32540 'structured-dlitems-evaluate': structured_dlitems_evaluate_default,
@@ -27727,7 +32545,7 @@ module.exports = {
27727 32545 'target-offset-evaluate': targetOffsetEvaluate,
27728 32546 'target-size-evaluate': targetSize,
27729 32547 'td-has-header-evaluate': td_has_header_evaluate_default,
27730 -1 'td-headers-attr-evaluate': td_headers_attr_evaluate_default,
-1 32548 'td-headers-attr-evaluate': tdHeadersAttrEvaluate,
27731 32549 'th-has-data-cells-evaluate': th_has_data_cells_evaluate_default,
27732 32550 'title-only-evaluate': title_only_evaluate_default,
27733 32551 'unique-frame-title-after': unique_frame_title_after_default,
@@ -27788,7 +32606,7 @@ module.exports = {
27788 32606 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);
27789 32607 } catch (e) {
27790 32608 if (node && node.actualNode) {
27791 -1 e.errorNode = new dq_element_default(node).toJSON();
-1 32609 e.errorNode = node_serializer_default.toSpec(node);
27792 32610 }
27793 32611 reject(e);
27794 32612 return;
@@ -27803,7 +32621,7 @@ module.exports = {
27803 32621 };
27804 32622 Check.prototype.runSync = function runSync(node, options, context) {
27805 32623 options = options || {};
27806 -1 var _options = options, _options$enabled = _options.enabled, enabled = _options$enabled === void 0 ? this.enabled : _options$enabled;
-1 32624 var _options2 = options, _options2$enabled = _options2.enabled, enabled = _options2$enabled === void 0 ? this.enabled : _options2$enabled;
27807 32625 if (!enabled) {
27808 32626 return null;
27809 32627 }
@@ -27818,7 +32636,7 @@ module.exports = {
27818 32636 result = this.evaluate.call(helper, node.actualNode, checkOptions, node, context);
27819 32637 } catch (e) {
27820 32638 if (node && node.actualNode) {
27821 -1 e.errorNode = new dq_element_default(node).toJSON();
-1 32639 e.errorNode = node_serializer_default.toSpec(node);
27822 32640 }
27823 32641 throw e;
27824 32642 }
@@ -27826,7 +32644,7 @@ module.exports = {
27826 32644 return checkResult;
27827 32645 };
27828 32646 Check.prototype.configure = function configure2(spec) {
27829 -1 var _this5 = this;
-1 32647 var _this8 = this;
27830 32648 if (!spec.evaluate || metadata_function_map_default[spec.evaluate]) {
27831 32649 this._internalCheck = true;
27832 32650 }
@@ -27843,7 +32661,7 @@ module.exports = {
27843 32661 [ 'evaluate', 'after' ].filter(function(prop) {
27844 32662 return spec.hasOwnProperty(prop);
27845 32663 }).forEach(function(prop) {
27846 -1 return _this5[prop] = createExecutionContext(spec[prop]);
-1 32664 return _this8[prop] = createExecutionContext(spec[prop]);
27847 32665 });
27848 32666 };
27849 32667 Check.prototype.getOptions = function getOptions(options) {
@@ -27915,11 +32733,11 @@ module.exports = {
27915 32733 }
27916 32734 return elements;
27917 32735 };
27918 -1 Rule.prototype.runChecks = function runChecks(type, node, options, context, resolve, reject) {
-1 32736 Rule.prototype.runChecks = function runChecks(type2, node, options, context, resolve, reject) {
27919 32737 var self2 = this;
27920 32738 var checkQueue = queue_default();
27921 -1 this[type].forEach(function(c) {
27922 -1 var check = self2._audit.checks[c.id || c];
-1 32739 this[type2].forEach(function(c4) {
-1 32740 var check = self2._audit.checks[c4.id || c4];
27923 32741 var option = get_check_option_default(check, self2.id, options);
27924 32742 checkQueue.defer(function(res, rej) {
27925 32743 check.run(node, option, context, res, rej);
@@ -27930,16 +32748,16 @@ module.exports = {
27930 32748 return check;
27931 32749 });
27932 32750 resolve({
27933 -1 type: type,
-1 32751 type: type2,
27934 32752 results: results
27935 32753 });
27936 32754 })['catch'](reject);
27937 32755 };
27938 -1 Rule.prototype.runChecksSync = function runChecksSync(type, node, options, context) {
-1 32756 Rule.prototype.runChecksSync = function runChecksSync(type2, node, options, context) {
27939 32757 var self2 = this;
27940 32758 var results = [];
27941 -1 this[type].forEach(function(c) {
27942 -1 var check = self2._audit.checks[c.id || c];
-1 32759 this[type2].forEach(function(c4) {
-1 32760 var check = self2._audit.checks[c4.id || c4];
27943 32761 var option = get_check_option_default(check, self2.id, options);
27944 32762 results.push(check.runSync(node, option, context));
27945 32763 });
@@ -27947,12 +32765,12 @@ module.exports = {
27947 32765 return check;
27948 32766 });
27949 32767 return {
27950 -1 type: type,
-1 32768 type: type2,
27951 32769 results: results
27952 32770 };
27953 32771 };
27954 32772 Rule.prototype.run = function run2(context) {
27955 -1 var _this6 = this;
-1 32773 var _this9 = this;
27956 32774 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
27957 32775 var resolve = arguments.length > 2 ? arguments[2] : undefined;
27958 32776 var reject = arguments.length > 3 ? arguments[3] : undefined;
@@ -27977,19 +32795,19 @@ module.exports = {
27977 32795 nodes.forEach(function(node) {
27978 32796 q.defer(function(resolveNode, rejectNode) {
27979 32797 var checkQueue = queue_default();
27980 -1 [ 'any', 'all', 'none' ].forEach(function(type) {
-1 32798 [ 'any', 'all', 'none' ].forEach(function(type2) {
27981 32799 checkQueue.defer(function(res, rej) {
27982 -1 _this6.runChecks(type, node, options, context, res, rej);
-1 32800 _this9.runChecks(type2, node, options, context, res, rej);
27983 32801 });
27984 32802 });
27985 32803 checkQueue.then(function(results) {
27986 32804 var result = getResult(results);
27987 32805 if (result) {
27988 -1 result.node = new dq_element_default(node, options);
-1 32806 result.node = new dq_element_default(node);
27989 32807 ruleResult.nodes.push(result);
27990 -1 if (_this6.reviewOnFail) {
27991 -1 [ 'any', 'all' ].forEach(function(type) {
27992 -1 result[type].forEach(function(checkResult) {
-1 32808 if (_this9.reviewOnFail) {
-1 32809 [ 'any', 'all' ].forEach(function(type2) {
-1 32810 result[type2].forEach(function(checkResult) {
27993 32811 if (checkResult.result === false) {
27994 32812 checkResult.result = void 0;
27995 32813 }
@@ -28008,8 +32826,8 @@ module.exports = {
28008 32826 });
28009 32827 });
28010 32828 });
28011 -1 q.defer(function(resolve2) {
28012 -1 return setTimeout(resolve2, 0);
-1 32829 q.defer(function(res) {
-1 32830 return setTimeout(res, 0);
28013 32831 });
28014 32832 if (options.performanceTimer) {
28015 32833 this._logRulePerformance();
@@ -28021,7 +32839,7 @@ module.exports = {
28021 32839 });
28022 32840 };
28023 32841 Rule.prototype.runSync = function runSync2(context) {
28024 -1 var _this7 = this;
-1 32842 var _this10 = this;
28025 32843 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
28026 32844 if (options.performanceTimer) {
28027 32845 this._trackPerformance();
@@ -28041,16 +32859,16 @@ module.exports = {
28041 32859 }
28042 32860 nodes.forEach(function(node) {
28043 32861 var results = [];
28044 -1 [ 'any', 'all', 'none' ].forEach(function(type) {
28045 -1 results.push(_this7.runChecksSync(type, node, options, context));
-1 32862 [ 'any', 'all', 'none' ].forEach(function(type2) {
-1 32863 results.push(_this10.runChecksSync(type2, node, options, context));
28046 32864 });
28047 32865 var result = getResult(results);
28048 32866 if (result) {
28049 -1 result.node = node.actualNode ? new dq_element_default(node, options) : null;
-1 32867 result.node = node.actualNode ? new dq_element_default(node) : null;
28050 32868 ruleResult.nodes.push(result);
28051 -1 if (_this7.reviewOnFail) {
28052 -1 [ 'any', 'all' ].forEach(function(type) {
28053 -1 result[type].forEach(function(checkResult) {
-1 32869 if (_this10.reviewOnFail) {
-1 32870 [ 'any', 'all' ].forEach(function(type2) {
-1 32871 result[type2].forEach(function(checkResult) {
28054 32872 if (checkResult.result === false) {
28055 32873 checkResult.result = void 0;
28056 32874 }
@@ -28090,8 +32908,8 @@ module.exports = {
28090 32908 var hasResults = false;
28091 32909 var result = {};
28092 32910 results.forEach(function(r) {
28093 -1 var res = r.results.filter(function(result2) {
28094 -1 return result2;
-1 32911 var res = r.results.filter(function(_result) {
-1 32912 return _result;
28095 32913 });
28096 32914 result[r.type] = res;
28097 32915 if (res.length) {
@@ -28105,7 +32923,7 @@ module.exports = {
28105 32923 }
28106 32924 }
28107 32925 Rule.prototype.gatherAndMatchNodes = function gatherAndMatchNodes(context, options) {
28108 -1 var _this8 = this;
-1 32926 var _this11 = this;
28109 32927 var markMatchesStart = 'mark_matches_start_' + this.id;
28110 32928 var markMatchesEnd = 'mark_matches_end_' + this.id;
28111 32929 var nodes = this.gather(context, options);
@@ -28113,7 +32931,7 @@ module.exports = {
28113 32931 performance_timer_default.mark(markMatchesStart);
28114 32932 }
28115 32933 nodes = nodes.filter(function(node) {
28116 -1 return _this8.matches(node.actualNode, node, context);
-1 32934 return _this11.matches(node.actualNode, node, context);
28117 32935 });
28118 32936 if (options.performanceTimer) {
28119 32937 performance_timer_default.mark(markMatchesEnd);
@@ -28122,8 +32940,8 @@ module.exports = {
28122 32940 return nodes;
28123 32941 };
28124 32942 function findAfterChecks(rule) {
28125 -1 return get_all_checks_default(rule).map(function(c) {
28126 -1 var check = rule._audit.checks[c.id || c];
-1 32943 return get_all_checks_default(rule).map(function(c4) {
-1 32944 var check = rule._audit.checks[c4.id || c4];
28127 32945 return check && typeof check.after === 'function' ? check : null;
28128 32946 }).filter(Boolean);
28129 32947 }
@@ -28149,36 +32967,36 @@ module.exports = {
28149 32967 var checkTypes2 = [ 'any', 'all', 'none' ];
28150 32968 var nodes = result.nodes.filter(function(detail) {
28151 32969 var length = 0;
28152 -1 checkTypes2.forEach(function(type) {
28153 -1 detail[type] = filterChecks(detail[type]);
28154 -1 length += detail[type].length;
-1 32970 checkTypes2.forEach(function(type2) {
-1 32971 detail[type2] = filterChecks(detail[type2]);
-1 32972 length += detail[type2].length;
28155 32973 });
28156 32974 return length > 0;
28157 32975 });
28158 32976 if (result.pageLevel && nodes.length) {
28159 -1 nodes = [ nodes.reduce(function(a, b) {
28160 -1 if (a) {
28161 -1 checkTypes2.forEach(function(type) {
28162 -1 a[type].push.apply(a[type], b[type]);
-1 32977 nodes = [ nodes.reduce(function(a2, b2) {
-1 32978 if (a2) {
-1 32979 checkTypes2.forEach(function(type2) {
-1 32980 a2[type2].push.apply(a2[type2], b2[type2]);
28163 32981 });
28164 -1 return a;
-1 32982 return a2;
28165 32983 }
28166 32984 }) ];
28167 32985 }
28168 32986 return nodes;
28169 32987 }
28170 32988 Rule.prototype.after = function after(result, options) {
28171 -1 var _this9 = this;
-1 32989 var _this12 = this;
28172 32990 var afterChecks = findAfterChecks(this);
28173 32991 var ruleID = this.id;
28174 32992 afterChecks.forEach(function(check) {
28175 32993 var beforeResults = findCheckResults(result.nodes, check.id);
28176 -1 var option = get_check_option_default(check, ruleID, options);
28177 -1 var afterResults = check.after(beforeResults, option);
28178 -1 if (_this9.reviewOnFail) {
-1 32994 var checkOption = get_check_option_default(check, ruleID, options);
-1 32995 var afterResults = check.after(beforeResults, checkOption.options);
-1 32996 if (_this12.reviewOnFail) {
28179 32997 afterResults.forEach(function(checkResult) {
28180 -1 var changeAnyAllResults = (_this9.any.includes(checkResult.id) || _this9.all.includes(checkResult.id)) && checkResult.result === false;
28181 -1 var changeNoneResult = _this9.none.includes(checkResult.id) && checkResult.result === true;
-1 32998 var changeAnyAllResults = (_this12.any.includes(checkResult.id) || _this12.all.includes(checkResult.id)) && checkResult.result === false;
-1 32999 var changeNoneResult = _this12.none.includes(checkResult.id) && checkResult.result === true;
28182 33000 if (changeAnyAllResults || changeNoneResult) {
28183 33001 checkResult.result = void 0;
28184 33002 }
@@ -28204,118 +33022,37 @@ module.exports = {
28204 33022 if (spec.hasOwnProperty('enabled')) {
28205 33023 this.enabled = typeof spec.enabled === 'boolean' ? spec.enabled : true;
28206 33024 }
28207 -1 if (spec.hasOwnProperty('pageLevel')) {
28208 -1 this.pageLevel = typeof spec.pageLevel === 'boolean' ? spec.pageLevel : false;
28209 -1 }
28210 -1 if (spec.hasOwnProperty('reviewOnFail')) {
28211 -1 this.reviewOnFail = typeof spec.reviewOnFail === 'boolean' ? spec.reviewOnFail : false;
28212 -1 }
28213 -1 if (spec.hasOwnProperty('any')) {
28214 -1 this.any = spec.any;
28215 -1 }
28216 -1 if (spec.hasOwnProperty('all')) {
28217 -1 this.all = spec.all;
28218 -1 }
28219 -1 if (spec.hasOwnProperty('none')) {
28220 -1 this.none = spec.none;
28221 -1 }
28222 -1 if (spec.hasOwnProperty('tags')) {
28223 -1 this.tags = spec.tags;
28224 -1 }
28225 -1 if (spec.hasOwnProperty('actIds')) {
28226 -1 this.actIds = spec.actIds;
28227 -1 }
28228 -1 if (spec.hasOwnProperty('matches')) {
28229 -1 this.matches = createExecutionContext(spec.matches);
28230 -1 }
28231 -1 if (spec.impact) {
28232 -1 assert_default(constants_default.impact.includes(spec.impact), 'Impact '.concat(spec.impact, ' is not a valid impact'));
28233 -1 this.impact = spec.impact;
28234 -1 }
28235 -1 };
28236 -1 var rule_default = Rule;
28237 -1 var import_dot2 = __toModule(require_doT());
28238 -1 var dotRegex = /\{\{.+?\}\}/g;
28239 -1 function getDefaultOrigin() {
28240 -1 if (window.origin) {
28241 -1 return window.origin;
28242 -1 }
28243 -1 if (window.location && window.location.origin) {
28244 -1 return window.location.origin;
28245 -1 }
28246 -1 }
28247 -1 function getDefaultConfiguration(audit) {
28248 -1 var config;
28249 -1 if (audit) {
28250 -1 config = clone_default(audit);
28251 -1 config.commons = audit.commons;
28252 -1 } else {
28253 -1 config = {};
28254 -1 }
28255 -1 config.reporter = config.reporter || null;
28256 -1 config.noHtml = config.noHtml || false;
28257 -1 if (!config.allowedOrigins) {
28258 -1 var defaultOrigin = getDefaultOrigin();
28259 -1 config.allowedOrigins = defaultOrigin ? [ defaultOrigin ] : [];
28260 -1 }
28261 -1 config.rules = config.rules || [];
28262 -1 config.checks = config.checks || [];
28263 -1 config.data = _extends({
28264 -1 checks: {},
28265 -1 rules: {}
28266 -1 }, config.data);
28267 -1 return config;
28268 -1 }
28269 -1 function unpackToObject(collection, audit, method) {
28270 -1 var i, l;
28271 -1 for (i = 0, l = collection.length; i < l; i++) {
28272 -1 audit[method](collection[i]);
-1 33025 if (spec.hasOwnProperty('pageLevel')) {
-1 33026 this.pageLevel = typeof spec.pageLevel === 'boolean' ? spec.pageLevel : false;
28273 33027 }
28274 -1 }
28275 -1 var mergeCheckLocale = function mergeCheckLocale(a, b) {
28276 -1 var pass = b.pass, fail = b.fail;
28277 -1 if (typeof pass === 'string' && dotRegex.test(pass)) {
28278 -1 pass = import_dot2['default'].compile(pass);
-1 33028 if (spec.hasOwnProperty('reviewOnFail')) {
-1 33029 this.reviewOnFail = typeof spec.reviewOnFail === 'boolean' ? spec.reviewOnFail : false;
28279 33030 }
28280 -1 if (typeof fail === 'string' && dotRegex.test(fail)) {
28281 -1 fail = import_dot2['default'].compile(fail);
-1 33031 if (spec.hasOwnProperty('any')) {
-1 33032 this.any = spec.any;
28282 33033 }
28283 -1 return _extends({}, a, {
28284 -1 messages: {
28285 -1 pass: pass || a.messages.pass,
28286 -1 fail: fail || a.messages.fail,
28287 -1 incomplete: _typeof(a.messages.incomplete) === 'object' ? _extends({}, a.messages.incomplete, b.incomplete) : b.incomplete
28288 -1 }
28289 -1 });
28290 -1 };
28291 -1 var mergeRuleLocale = function mergeRuleLocale(a, b) {
28292 -1 var help = b.help, description = b.description;
28293 -1 if (typeof help === 'string' && dotRegex.test(help)) {
28294 -1 help = import_dot2['default'].compile(help);
-1 33034 if (spec.hasOwnProperty('all')) {
-1 33035 this.all = spec.all;
28295 33036 }
28296 -1 if (typeof description === 'string' && dotRegex.test(description)) {
28297 -1 description = import_dot2['default'].compile(description);
-1 33037 if (spec.hasOwnProperty('none')) {
-1 33038 this.none = spec.none;
28298 33039 }
28299 -1 return _extends({}, a, {
28300 -1 help: help || a.help,
28301 -1 description: description || a.description
28302 -1 });
28303 -1 };
28304 -1 var mergeFailureMessage = function mergeFailureMessage(a, b) {
28305 -1 var failureMessage = b.failureMessage;
28306 -1 if (typeof failureMessage === 'string' && dotRegex.test(failureMessage)) {
28307 -1 failureMessage = import_dot2['default'].compile(failureMessage);
-1 33040 if (spec.hasOwnProperty('tags')) {
-1 33041 this.tags = spec.tags;
28308 33042 }
28309 -1 return _extends({}, a, {
28310 -1 failureMessage: failureMessage || a.failureMessage
28311 -1 });
28312 -1 };
28313 -1 var mergeFallbackMessage = function mergeFallbackMessage(a, b) {
28314 -1 if (typeof b === 'string' && dotRegex.test(b)) {
28315 -1 b = import_dot2['default'].compile(b);
-1 33043 if (spec.hasOwnProperty('actIds')) {
-1 33044 this.actIds = spec.actIds;
-1 33045 }
-1 33046 if (spec.hasOwnProperty('matches')) {
-1 33047 this.matches = createExecutionContext(spec.matches);
-1 33048 }
-1 33049 if (spec.impact) {
-1 33050 assert_default(constants_default.impact.includes(spec.impact), 'Impact '.concat(spec.impact, ' is not a valid impact'));
-1 33051 this.impact = spec.impact;
28316 33052 }
28317 -1 return b || a;
28318 33053 };
-1 33054 var import_dot2 = __toModule(require_doT());
-1 33055 var dotRegex = /\{\{.+?\}\}/g;
28319 33056 var Audit = function() {
28320 33057 function Audit(audit) {
28321 33058 _classCallCheck(this, Audit);
@@ -28339,32 +33076,32 @@ module.exports = {
28339 33076 lang: this.lang
28340 33077 };
28341 33078 var checkIDs = Object.keys(this.data.checks);
28342 -1 for (var _i27 = 0; _i27 < checkIDs.length; _i27++) {
28343 -1 var id = checkIDs[_i27];
28344 -1 var check = this.data.checks[id];
-1 33079 for (var _i37 = 0; _i37 < checkIDs.length; _i37++) {
-1 33080 var _id6 = checkIDs[_i37];
-1 33081 var check = this.data.checks[_id6];
28345 33082 var _check$messages = check.messages, pass = _check$messages.pass, fail = _check$messages.fail, incomplete = _check$messages.incomplete;
28346 -1 locale.checks[id] = {
-1 33083 locale.checks[_id6] = {
28347 33084 pass: pass,
28348 33085 fail: fail,
28349 33086 incomplete: incomplete
28350 33087 };
28351 33088 }
28352 33089 var ruleIDs = Object.keys(this.data.rules);
28353 -1 for (var _i28 = 0; _i28 < ruleIDs.length; _i28++) {
28354 -1 var _id = ruleIDs[_i28];
28355 -1 var rule = this.data.rules[_id];
-1 33090 for (var _i38 = 0; _i38 < ruleIDs.length; _i38++) {
-1 33091 var _id7 = ruleIDs[_i38];
-1 33092 var rule = this.data.rules[_id7];
28356 33093 var description = rule.description, help = rule.help;
28357 -1 locale.rules[_id] = {
-1 33094 locale.rules[_id7] = {
28358 33095 description: description,
28359 33096 help: help
28360 33097 };
28361 33098 }
28362 33099 var failureSummaries = Object.keys(this.data.failureSummaries);
28363 -1 for (var _i29 = 0; _i29 < failureSummaries.length; _i29++) {
28364 -1 var type = failureSummaries[_i29];
28365 -1 var failureSummary2 = this.data.failureSummaries[type];
-1 33100 for (var _i39 = 0; _i39 < failureSummaries.length; _i39++) {
-1 33101 var type2 = failureSummaries[_i39];
-1 33102 var failureSummary2 = this.data.failureSummaries[type2];
28366 33103 var failureMessage = failureSummary2.failureMessage;
28367 -1 locale.failureSummaries[type] = {
-1 33104 locale.failureSummaries[type2] = {
28368 33105 failureMessage: failureMessage
28369 33106 };
28370 33107 }
@@ -28384,36 +33121,36 @@ module.exports = {
28384 33121 key: '_applyCheckLocale',
28385 33122 value: function _applyCheckLocale(checks) {
28386 33123 var keys = Object.keys(checks);
28387 -1 for (var _i30 = 0; _i30 < keys.length; _i30++) {
28388 -1 var id = keys[_i30];
28389 -1 if (!this.data.checks[id]) {
28390 -1 throw new Error('Locale provided for unknown check: "'.concat(id, '"'));
-1 33124 for (var _i40 = 0; _i40 < keys.length; _i40++) {
-1 33125 var _id8 = keys[_i40];
-1 33126 if (!this.data.checks[_id8]) {
-1 33127 throw new Error('Locale provided for unknown check: "'.concat(_id8, '"'));
28391 33128 }
28392 -1 this.data.checks[id] = mergeCheckLocale(this.data.checks[id], checks[id]);
-1 33129 this.data.checks[_id8] = mergeCheckLocale(this.data.checks[_id8], checks[_id8]);
28393 33130 }
28394 33131 }
28395 33132 }, {
28396 33133 key: '_applyRuleLocale',
28397 33134 value: function _applyRuleLocale(rules) {
28398 33135 var keys = Object.keys(rules);
28399 -1 for (var _i31 = 0; _i31 < keys.length; _i31++) {
28400 -1 var id = keys[_i31];
28401 -1 if (!this.data.rules[id]) {
28402 -1 throw new Error('Locale provided for unknown rule: "'.concat(id, '"'));
-1 33136 for (var _i41 = 0; _i41 < keys.length; _i41++) {
-1 33137 var _id9 = keys[_i41];
-1 33138 if (!this.data.rules[_id9]) {
-1 33139 throw new Error('Locale provided for unknown rule: "'.concat(_id9, '"'));
28403 33140 }
28404 -1 this.data.rules[id] = mergeRuleLocale(this.data.rules[id], rules[id]);
-1 33141 this.data.rules[_id9] = mergeRuleLocale(this.data.rules[_id9], rules[_id9]);
28405 33142 }
28406 33143 }
28407 33144 }, {
28408 33145 key: '_applyFailureSummaries',
28409 33146 value: function _applyFailureSummaries(messages) {
28410 33147 var keys = Object.keys(messages);
28411 -1 for (var _i32 = 0; _i32 < keys.length; _i32++) {
28412 -1 var key = keys[_i32];
28413 -1 if (!this.data.failureSummaries[key]) {
28414 -1 throw new Error('Locale provided for unknown failureMessage: "'.concat(key, '"'));
-1 33148 for (var _i42 = 0; _i42 < keys.length; _i42++) {
-1 33149 var _key8 = keys[_i42];
-1 33150 if (!this.data.failureSummaries[_key8]) {
-1 33151 throw new Error('Locale provided for unknown failureMessage: "'.concat(_key8, '"'));
28415 33152 }
28416 -1 this.data.failureSummaries[key] = mergeFailureMessage(this.data.failureSummaries[key], messages[key]);
-1 33153 this.data.failureSummaries[_key8] = mergeFailureMessage(this.data.failureSummaries[_key8], messages[_key8]);
28417 33154 }
28418 33155 }
28419 33156 }, {
@@ -28441,10 +33178,10 @@ module.exports = {
28441 33178 value: function setAllowedOrigins(allowedOrigins) {
28442 33179 var defaultOrigin = getDefaultOrigin();
28443 33180 this.allowedOrigins = [];
28444 -1 var _iterator11 = _createForOfIteratorHelper(allowedOrigins), _step11;
-1 33181 var _iterator22 = _createForOfIteratorHelper(allowedOrigins), _step22;
28445 33182 try {
28446 -1 for (_iterator11.s(); !(_step11 = _iterator11.n()).done; ) {
28447 -1 var origin = _step11.value;
-1 33183 for (_iterator22.s(); !(_step22 = _iterator22.n()).done; ) {
-1 33184 var origin = _step22.value;
28448 33185 if (origin === constants_default.allOrigins) {
28449 33186 this.allowedOrigins = [ '*' ];
28450 33187 return;
@@ -28455,9 +33192,9 @@ module.exports = {
28455 33192 }
28456 33193 }
28457 33194 } catch (err) {
28458 -1 _iterator11.e(err);
-1 33195 _iterator22.e(err);
28459 33196 } finally {
28460 -1 _iterator11.f();
-1 33197 _iterator22.f();
28461 33198 }
28462 33199 }
28463 33200 }, {
@@ -28498,7 +33235,7 @@ module.exports = {
28498 33235 if (rule) {
28499 33236 rule.configure(spec);
28500 33237 } else {
28501 -1 this.rules.push(new rule_default(spec, this));
-1 33238 this.rules.push(new Rule(spec, this));
28502 33239 }
28503 33240 }
28504 33241 }, {
@@ -28527,6 +33264,7 @@ module.exports = {
28527 33264 key: 'run',
28528 33265 value: function run(context, options, resolve, reject) {
28529 33266 this.normalizeOptions(options);
-1 33267 dq_element_default.setRunOptions(options);
28530 33268 axe._selectCache = [];
28531 33269 var allRulesToRun = getRulesToRun(this.rules, context, options);
28532 33270 var runNowRules = allRulesToRun.now;
@@ -28537,12 +33275,12 @@ module.exports = {
28537 33275 });
28538 33276 var preloaderQueue = queue_default();
28539 33277 if (runLaterRules.length) {
28540 -1 preloaderQueue.defer(function(resolve2) {
28541 -1 preload_default(options).then(function(assets) {
28542 -1 return resolve2(assets);
-1 33278 preloaderQueue.defer(function(res) {
-1 33279 _preload(options).then(function(assets) {
-1 33280 return res(assets);
28543 33281 })['catch'](function(err2) {
28544 33282 console.warn('Couldn\'t load preload assets: ', err2);
28545 -1 resolve2(void 0);
-1 33283 res(void 0);
28546 33284 });
28547 33285 });
28548 33286 }
@@ -28694,16 +33432,16 @@ module.exports = {
28694 33432 }, {
28695 33433 key: '_constructHelpUrls',
28696 33434 value: function _constructHelpUrls() {
28697 -1 var _this10 = this;
-1 33435 var _this13 = this;
28698 33436 var previous = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
28699 33437 var version = (axe.version.match(/^[1-9][0-9]*\.[0-9]+/) || [ 'x.y' ])[0];
28700 33438 this.rules.forEach(function(rule) {
28701 -1 if (!_this10.data.rules[rule.id]) {
28702 -1 _this10.data.rules[rule.id] = {};
-1 33439 if (!_this13.data.rules[rule.id]) {
-1 33440 _this13.data.rules[rule.id] = {};
28703 33441 }
28704 -1 var metaData = _this10.data.rules[rule.id];
-1 33442 var metaData = _this13.data.rules[rule.id];
28705 33443 if (typeof metaData.helpUrl !== 'string' || previous && metaData.helpUrl === getHelpUrl(previous, rule.id, version)) {
28706 -1 metaData.helpUrl = getHelpUrl(_this10, rule.id, version);
-1 33444 metaData.helpUrl = getHelpUrl(_this13, rule.id, version);
28707 33445 }
28708 33446 });
28709 33447 }
@@ -28716,6 +33454,87 @@ module.exports = {
28716 33454 } ]);
28717 33455 return Audit;
28718 33456 }();
-1 33457 var audit_default = Audit;
-1 33458 function getDefaultOrigin() {
-1 33459 if (window.origin && window.origin !== 'null') {
-1 33460 return window.origin;
-1 33461 }
-1 33462 if (window.location && window.location.origin && window.location.origin !== 'null') {
-1 33463 return window.location.origin;
-1 33464 }
-1 33465 }
-1 33466 function getDefaultConfiguration(audit) {
-1 33467 var config;
-1 33468 if (audit) {
-1 33469 config = _clone(audit);
-1 33470 config.commons = audit.commons;
-1 33471 } else {
-1 33472 config = {};
-1 33473 }
-1 33474 config.reporter = config.reporter || null;
-1 33475 config.noHtml = config.noHtml || false;
-1 33476 if (!config.allowedOrigins) {
-1 33477 var defaultOrigin = getDefaultOrigin();
-1 33478 config.allowedOrigins = defaultOrigin ? [ defaultOrigin ] : [];
-1 33479 }
-1 33480 config.rules = config.rules || [];
-1 33481 config.checks = config.checks || [];
-1 33482 config.data = _extends({
-1 33483 checks: {},
-1 33484 rules: {}
-1 33485 }, config.data);
-1 33486 return config;
-1 33487 }
-1 33488 function unpackToObject(collection, audit, method) {
-1 33489 var i, l;
-1 33490 for (i = 0, l = collection.length; i < l; i++) {
-1 33491 audit[method](collection[i]);
-1 33492 }
-1 33493 }
-1 33494 var mergeCheckLocale = function mergeCheckLocale(a2, b2) {
-1 33495 var pass = b2.pass, fail = b2.fail;
-1 33496 if (typeof pass === 'string' && dotRegex.test(pass)) {
-1 33497 pass = import_dot2['default'].compile(pass);
-1 33498 }
-1 33499 if (typeof fail === 'string' && dotRegex.test(fail)) {
-1 33500 fail = import_dot2['default'].compile(fail);
-1 33501 }
-1 33502 return _extends({}, a2, {
-1 33503 messages: {
-1 33504 pass: pass || a2.messages.pass,
-1 33505 fail: fail || a2.messages.fail,
-1 33506 incomplete: _typeof(a2.messages.incomplete) === 'object' ? _extends({}, a2.messages.incomplete, b2.incomplete) : b2.incomplete
-1 33507 }
-1 33508 });
-1 33509 };
-1 33510 var mergeRuleLocale = function mergeRuleLocale(a2, b2) {
-1 33511 var help = b2.help, description = b2.description;
-1 33512 if (typeof help === 'string' && dotRegex.test(help)) {
-1 33513 help = import_dot2['default'].compile(help);
-1 33514 }
-1 33515 if (typeof description === 'string' && dotRegex.test(description)) {
-1 33516 description = import_dot2['default'].compile(description);
-1 33517 }
-1 33518 return _extends({}, a2, {
-1 33519 help: help || a2.help,
-1 33520 description: description || a2.description
-1 33521 });
-1 33522 };
-1 33523 var mergeFailureMessage = function mergeFailureMessage(a2, b2) {
-1 33524 var failureMessage = b2.failureMessage;
-1 33525 if (typeof failureMessage === 'string' && dotRegex.test(failureMessage)) {
-1 33526 failureMessage = import_dot2['default'].compile(failureMessage);
-1 33527 }
-1 33528 return _extends({}, a2, {
-1 33529 failureMessage: failureMessage || a2.failureMessage
-1 33530 });
-1 33531 };
-1 33532 var mergeFallbackMessage = function mergeFallbackMessage(a2, b2) {
-1 33533 if (typeof b2 === 'string' && dotRegex.test(b2)) {
-1 33534 b2 = import_dot2['default'].compile(b2);
-1 33535 }
-1 33536 return b2 || a2;
-1 33537 };
28719 33538 function getRulesToRun(rules, context, options) {
28720 33539 var base = {
28721 33540 now: [],
@@ -28758,11 +33577,10 @@ module.exports = {
28758 33577 });
28759 33578 };
28760 33579 }
28761 -1 function getHelpUrl(_ref110, ruleId, version) {
28762 -1 var brand = _ref110.brand, application = _ref110.application, lang = _ref110.lang;
-1 33580 function getHelpUrl(_ref143, ruleId, version) {
-1 33581 var brand = _ref143.brand, application = _ref143.application, lang = _ref143.lang;
28763 33582 return constants_default.helpUrlBase + brand + '/' + (version || axe.version.substring(0, axe.version.lastIndexOf('.'))) + '/' + ruleId + '?application=' + encodeURIComponent(application) + (lang && lang !== 'en' ? '&lang=' + encodeURIComponent(lang) : '');
28764 33583 }
28765 -1 var audit_default = Audit;
28766 33584 function setupGlobals(context) {
28767 33585 var hasWindow = window && 'Node' in window && 'NodeList' in window;
28768 33586 var hasDoc = !!document;
@@ -28824,20 +33642,20 @@ module.exports = {
28824 33642 q.defer(function(res, rej) {
28825 33643 audit.run(context, options, res, rej);
28826 33644 });
28827 -1 q.then(function(data2) {
-1 33645 q.then(function(data) {
28828 33646 try {
28829 33647 if (options.performanceTimer) {
28830 33648 performance_timer_default.auditEnd();
28831 33649 }
28832 -1 var results = merge_results_default(data2.map(function(results2) {
-1 33650 var results = merge_results_default(data.map(function(res) {
28833 33651 return {
28834 -1 results: results2
-1 33652 results: res
28835 33653 };
28836 33654 }));
28837 33655 if (context.initiator) {
28838 33656 results = audit.after(results, options);
28839 -1 results.forEach(publish_metadata_default);
28840 -1 results = results.map(finalize_result_default);
-1 33657 results.forEach(_publishMetaData);
-1 33658 results = results.map(_finalizeRuleResult);
28841 33659 }
28842 33660 try {
28843 33661 resolve(results, teardown_default);
@@ -28854,8 +33672,10 @@ module.exports = {
28854 33672 reject(e);
28855 33673 });
28856 33674 }
28857 -1 var run_rules_default = runRules;
28858 -1 function runCommand(data2, keepalive, callback) {
-1 33675 function load(audit) {
-1 33676 axe._audit = new audit_default(audit);
-1 33677 }
-1 33678 function runCommand(data, keepalive, callback) {
28859 33679 var resolve = callback;
28860 33680 var reject = function reject2(err2) {
28861 33681 if (err2 instanceof Error === false) {
@@ -28863,39 +33683,36 @@ module.exports = {
28863 33683 }
28864 33684 callback(err2);
28865 33685 };
28866 -1 var context = data2 && data2.context || {};
-1 33686 var context = data && data.context || {};
28867 33687 if (context.hasOwnProperty('include') && !context.include.length) {
28868 33688 context.include = [ document ];
28869 33689 }
28870 -1 var options = data2 && data2.options || {};
28871 -1 switch (data2.command) {
-1 33690 var options = data && data.options || {};
-1 33691 switch (data.command) {
28872 33692 case 'rules':
28873 -1 return run_rules_default(context, options, function(results, cleanup3) {
-1 33693 return runRules(context, options, function(results, cleanupFn) {
-1 33694 results = node_serializer_default.mapRawResults(results);
28874 33695 resolve(results);
28875 -1 cleanup3();
-1 33696 cleanupFn();
28876 33697 }, reject);
28877 33698
28878 33699 case 'cleanup-plugin':
28879 33700 return cleanup_default(resolve, reject);
28880 33701
28881 33702 default:
28882 -1 if (axe._audit && axe._audit.commands && axe._audit.commands[data2.command]) {
28883 -1 return axe._audit.commands[data2.command](data2, callback);
-1 33703 if (axe._audit && axe._audit.commands && axe._audit.commands[data.command]) {
-1 33704 return axe._audit.commands[data.command](data, callback);
28884 33705 }
28885 33706 }
28886 33707 }
28887 33708 if (window.top !== window) {
28888 33709 _respondable.subscribe('axe.start', runCommand);
28889 -1 _respondable.subscribe('axe.ping', function(data2, keepalive, respond) {
-1 33710 _respondable.subscribe('axe.ping', function(data, keepalive, respond) {
28890 33711 respond({
28891 33712 axe: true
28892 33713 });
28893 33714 });
28894 33715 }
28895 -1 function load(audit) {
28896 -1 axe._audit = new audit_default(audit);
28897 -1 }
28898 -1 var load_default = load;
28899 33716 function Plugin(spec) {
28900 33717 this._run = spec.run;
28901 33718 this._collect = spec.collect;
@@ -28943,7 +33760,7 @@ module.exports = {
28943 33760 if (!(vNode instanceof abstract_virtual_node_default)) {
28944 33761 vNode = new serial_virtual_node_default(vNode);
28945 33762 }
28946 -1 var rule = get_rule_default(ruleId);
-1 33763 var rule = _getRule(ruleId);
28947 33764 if (!rule) {
28948 33765 throw new Error('unknown rule `' + ruleId + '`');
28949 33766 }
@@ -28963,8 +33780,8 @@ module.exports = {
28963 33780 flatTree: []
28964 33781 };
28965 33782 var rawResults = rule.runSync(context, options);
28966 -1 publish_metadata_default(rawResults);
28967 -1 finalize_result_default(rawResults);
-1 33783 _publishMetaData(rawResults);
-1 33784 _finalizeRuleResult(rawResults);
28968 33785 var results = aggregate_result_default([ rawResults ]);
28969 33786 results.violations.forEach(function(result) {
28970 33787 return result.nodes.forEach(function(nodeResult) {
@@ -28975,9 +33792,9 @@ module.exports = {
28975 33792 toolOptions: options
28976 33793 });
28977 33794 }
28978 -1 function normalizeRunParams(_ref111) {
28979 -1 var _ref113, _options$reporter, _axe$_audit;
28980 -1 var _ref112 = _slicedToArray(_ref111, 3), context = _ref112[0], options = _ref112[1], callback = _ref112[2];
-1 33795 function normalizeRunParams(_ref144) {
-1 33796 var _ref146, _options$reporter, _axe$_audit;
-1 33797 var _ref145 = _slicedToArray(_ref144, 3), context = _ref145[0], options = _ref145[1], callback = _ref145[2];
28981 33798 var typeErr = new TypeError('axe.run arguments are invalid');
28982 33799 if (!isContextSpec(context)) {
28983 33800 if (callback !== void 0) {
@@ -28997,8 +33814,8 @@ module.exports = {
28997 33814 if (typeof callback !== 'function' && callback !== void 0) {
28998 33815 throw typeErr;
28999 33816 }
29000 -1 options = clone_default(options);
29001 -1 options.reporter = (_ref113 = (_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 && _ref113 !== void 0 ? _ref113 : 'v1';
-1 33817 options = _clone(options);
-1 33818 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';
29002 33819 return {
29003 33820 context: context,
29004 33821 options: options,
@@ -29007,8 +33824,8 @@ module.exports = {
29007 33824 }
29008 33825 var noop2 = function noop2() {};
29009 33826 function run4() {
29010 -1 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
29011 -1 args[_key2] = arguments[_key2];
-1 33827 for (var _len7 = arguments.length, args = new Array(_len7), _key9 = 0; _key9 < _len7; _key9++) {
-1 33828 args[_key9] = arguments[_key9];
29012 33829 }
29013 33830 setupGlobals(args[0]);
29014 33831 var _normalizeRunParams = normalizeRunParams(args), context = _normalizeRunParams.context, options = _normalizeRunParams.options, _normalizeRunParams$c = _normalizeRunParams.callback, callback = _normalizeRunParams$c === void 0 ? noop2 : _normalizeRunParams$c;
@@ -29023,27 +33840,32 @@ module.exports = {
29023 33840 if (options.performanceTimer) {
29024 33841 axe.utils.performanceTimer.start();
29025 33842 }
29026 -1 function handleRunRules(rawResults, cleanup3) {
-1 33843 function handleRunRules(rawResults, teardown2) {
29027 33844 var respond = function respond(results) {
29028 33845 axe._running = false;
29029 -1 cleanup3();
-1 33846 teardown2();
29030 33847 try {
29031 -1 callback(null, results);
-1 33848 resolve(results);
-1 33849 } catch (e) {
-1 33850 axe.log(e);
-1 33851 }
-1 33852 };
-1 33853 var wrappedReject = function wrappedReject(err2) {
-1 33854 axe._running = false;
-1 33855 teardown2();
-1 33856 try {
-1 33857 reject(err2);
29032 33858 } catch (e) {
29033 33859 axe.log(e);
29034 33860 }
29035 -1 resolve(results);
29036 33861 };
29037 33862 if (options.performanceTimer) {
29038 33863 axe.utils.performanceTimer.end();
29039 33864 }
29040 33865 try {
29041 -1 createReport(rawResults, options, respond);
-1 33866 createReport(rawResults, options, respond, wrappedReject);
29042 33867 } catch (err2) {
29043 -1 axe._running = false;
29044 -1 cleanup3();
29045 -1 callback(err2);
29046 -1 reject(err2);
-1 33868 wrappedReject(err2);
29047 33869 }
29048 33870 }
29049 33871 function errorRunRules(err2) {
@@ -29051,7 +33873,6 @@ module.exports = {
29051 33873 axe.utils.performanceTimer.end();
29052 33874 }
29053 33875 axe._running = false;
29054 -1 resetGlobals();
29055 33876 callback(err2);
29056 33877 reject(err2);
29057 33878 }
@@ -29066,7 +33887,12 @@ module.exports = {
29066 33887 resolve = _resolve;
29067 33888 });
29068 33889 } else {
29069 -1 resolve = reject = noop2;
-1 33890 resolve = function resolve(result) {
-1 33891 return callback(null, result);
-1 33892 };
-1 33893 reject = function reject(err2) {
-1 33894 return callback(err2);
-1 33895 };
29070 33896 }
29071 33897 return {
29072 33898 thenable: thenable,
@@ -29074,15 +33900,14 @@ module.exports = {
29074 33900 resolve: resolve
29075 33901 };
29076 33902 }
29077 -1 function createReport(rawResults, options, respond) {
-1 33903 function createReport(rawResults, options, respond, reject) {
29078 33904 var reporter = getReporter(options.reporter);
29079 -1 var results = reporter(rawResults, options, respond);
-1 33905 var results = reporter(rawResults, options, respond, reject);
29080 33906 if (results !== void 0) {
29081 33907 respond(results);
29082 33908 }
29083 33909 }
29084 33910 function handleError(err2, callback) {
29085 -1 resetGlobals();
29086 33911 if (typeof callback === 'function' && callback !== noop2) {
29087 33912 callback(err2.message);
29088 33913 return;
@@ -29090,8 +33915,8 @@ module.exports = {
29090 33915 throw err2;
29091 33916 }
29092 33917 function runPartial() {
29093 -1 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
29094 -1 args[_key3] = arguments[_key3];
-1 33918 for (var _len8 = arguments.length, args = new Array(_len8), _key10 = 0; _key10 < _len8; _key10++) {
-1 33919 args[_key10] = arguments[_key10];
29095 33920 }
29096 33921 var _normalizeRunParams2 = normalizeRunParams(args), options = _normalizeRunParams2.options, context = _normalizeRunParams2.context;
29097 33922 assert_default(axe._audit, 'Axe is not configured. Audit is missing.');
@@ -29100,18 +33925,14 @@ module.exports = {
29100 33925 axe._tree = contextObj.flatTree;
29101 33926 axe._selectorData = _getSelectorData(contextObj.flatTree);
29102 33927 axe._running = true;
-1 33928 options.elementRef = false;
29103 33929 return new Promise(function(res, rej) {
29104 33930 axe._audit.run(contextObj, options, res, rej);
29105 33931 }).then(function(results) {
29106 -1 results = results.map(function(_ref114) {
29107 -1 var nodes = _ref114.nodes, result = _objectWithoutProperties(_ref114, _excluded8);
29108 -1 return _extends({
29109 -1 nodes: nodes.map(serializeNode)
29110 -1 }, result);
29111 -1 });
29112 -1 var frames = contextObj.frames.map(function(_ref115) {
29113 -1 var node = _ref115.node;
29114 -1 return new dq_element_default(node, options).toJSON();
-1 33932 results = node_serializer_default.mapRawResults(results);
-1 33933 var frames = contextObj.frames.map(function(_ref147) {
-1 33934 var node = _ref147.node;
-1 33935 return node_serializer_default.toSpec(node);
29115 33936 });
29116 33937 var environmentData;
29117 33938 if (contextObj.initiator) {
@@ -29130,46 +33951,30 @@ module.exports = {
29130 33951 return Promise.reject(err2);
29131 33952 });
29132 33953 }
29133 -1 function serializeNode(_ref116) {
29134 -1 var node = _ref116.node, nodeResult = _objectWithoutProperties(_ref116, _excluded9);
29135 -1 nodeResult.node = node.toJSON();
29136 -1 for (var _i33 = 0, _arr2 = [ 'any', 'all', 'none' ]; _i33 < _arr2.length; _i33++) {
29137 -1 var type = _arr2[_i33];
29138 -1 nodeResult[type] = nodeResult[type].map(function(_ref117) {
29139 -1 var relatedNodes = _ref117.relatedNodes, checkResult = _objectWithoutProperties(_ref117, _excluded10);
29140 -1 return _extends({}, checkResult, {
29141 -1 relatedNodes: relatedNodes.map(function(node2) {
29142 -1 return node2.toJSON();
29143 -1 })
29144 -1 });
29145 -1 });
29146 -1 }
29147 -1 return nodeResult;
29148 -1 }
29149 33954 function finishRun(partialResults) {
29150 -1 var _ref119, _options$reporter2, _axe$_audit2;
-1 33955 var _ref149, _options$reporter2, _axe$_audit2;
29151 33956 var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
29152 -1 options = clone_default(options);
29153 -1 var _ref118 = partialResults.find(function(r) {
-1 33957 options = _clone(options);
-1 33958 var _ref148 = partialResults.find(function(r) {
29154 33959 return r.environmentData;
29155 -1 }) || {}, environmentData = _ref118.environmentData;
-1 33960 }) || {}, environmentData = _ref148.environmentData;
29156 33961 axe._audit.normalizeOptions(options);
29157 -1 options.reporter = (_ref119 = (_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 && _ref119 !== void 0 ? _ref119 : 'v1';
-1 33962 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';
29158 33963 setFrameSpec(partialResults);
29159 33964 var results = merge_results_default(partialResults);
29160 33965 results = axe._audit.after(results, options);
29161 -1 results.forEach(publish_metadata_default);
29162 -1 results = results.map(finalize_result_default);
-1 33966 results.forEach(_publishMetaData);
-1 33967 results = results.map(_finalizeRuleResult);
29163 33968 return createReport2(results, _extends({
29164 33969 environmentData: environmentData
29165 33970 }, options));
29166 33971 }
29167 33972 function setFrameSpec(partialResults) {
29168 33973 var frameStack = [];
29169 -1 var _iterator12 = _createForOfIteratorHelper(partialResults), _step12;
-1 33974 var _iterator23 = _createForOfIteratorHelper(partialResults), _step23;
29170 33975 try {
29171 -1 for (_iterator12.s(); !(_step12 = _iterator12.n()).done; ) {
29172 -1 var partialResult = _step12.value;
-1 33976 for (_iterator23.s(); !(_step23 = _iterator23.n()).done; ) {
-1 33977 var partialResult = _step23.value;
29173 33978 var frameSpec = frameStack.shift();
29174 33979 if (!partialResult) {
29175 33980 continue;
@@ -29179,31 +33984,35 @@ module.exports = {
29179 33984 frameStack.unshift.apply(frameStack, _toConsumableArray(frameSpecs));
29180 33985 }
29181 33986 } catch (err) {
29182 -1 _iterator12.e(err);
-1 33987 _iterator23.e(err);
29183 33988 } finally {
29184 -1 _iterator12.f();
-1 33989 _iterator23.f();
29185 33990 }
29186 33991 }
29187 -1 function getMergedFrameSpecs(_ref120) {
29188 -1 var childFrameSpecs = _ref120.frames, parentFrameSpec = _ref120.frameSpec;
-1 33992 function getMergedFrameSpecs(_ref150) {
-1 33993 var childFrameSpecs = _ref150.frames, parentFrameSpec = _ref150.frameSpec;
29189 33994 if (!parentFrameSpec) {
29190 33995 return childFrameSpecs;
29191 33996 }
29192 33997 return childFrameSpecs.map(function(childFrameSpec) {
29193 -1 return dq_element_default.mergeSpecs(childFrameSpec, parentFrameSpec);
-1 33998 return node_serializer_default.mergeSpecs(childFrameSpec, parentFrameSpec);
29194 33999 });
29195 34000 }
29196 34001 function createReport2(results, options) {
29197 -1 return new Promise(function(resolve) {
-1 34002 return new Promise(function(resolve, reject) {
29198 34003 var reporter = getReporter(options.reporter);
29199 -1 reporter(results, options, resolve);
-1 34004 reporter(results, options, resolve, reject);
29200 34005 });
29201 34006 }
29202 34007 function setup(node) {
29203 34008 if (axe._tree) {
29204 34009 throw new Error('Axe is already setup. Call `axe.teardown()` before calling `axe.setup` again.');
29205 34010 }
29206 -1 axe._tree = get_flattened_tree_default(node);
-1 34011 if (node && _typeof(node.documentElement) === 'object' && _typeof(node.defaultView) === 'object') {
-1 34012 node = node.documentElement;
-1 34013 }
-1 34014 setupGlobals(node);
-1 34015 axe._tree = _getFlattenedTree(node);
29207 34016 axe._selectorData = _getSelectorData(axe._tree);
29208 34017 return axe._tree[0];
29209 34018 }
@@ -29214,10 +34023,10 @@ module.exports = {
29214 34023 callback = options;
29215 34024 options = {};
29216 34025 }
29217 -1 var _options2 = options, environmentData = _options2.environmentData, toolOptions = _objectWithoutProperties(_options2, _excluded11);
-1 34026 var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded15);
29218 34027 callback(_extends({}, _getEnvironmentData(environmentData), {
29219 34028 toolOptions: toolOptions
29220 -1 }, process_aggregate_default(results, options)));
-1 34029 }, processAggregate(results, options)));
29221 34030 };
29222 34031 var na_default = naReporter;
29223 34032 var noPassesReporter = function noPassesReporter(results, options, callback) {
@@ -29225,9 +34034,9 @@ module.exports = {
29225 34034 callback = options;
29226 34035 options = {};
29227 34036 }
29228 -1 var _options3 = options, environmentData = _options3.environmentData, toolOptions = _objectWithoutProperties(_options3, _excluded12);
-1 34037 var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded16);
29229 34038 options.resultTypes = [ 'violations' ];
29230 -1 var _process_aggregate_de = process_aggregate_default(results, options), violations = _process_aggregate_de.violations;
-1 34039 var _processAggregate = processAggregate(results, options), violations = _processAggregate.violations;
29231 34040 callback(_extends({}, _getEnvironmentData(environmentData), {
29232 34041 toolOptions: toolOptions,
29233 34042 violations: violations
@@ -29245,18 +34054,9 @@ module.exports = {
29245 34054 var transformedResults = results.map(function(result) {
29246 34055 var transformedResult = _extends({}, result);
29247 34056 var types = [ 'passes', 'violations', 'incomplete', 'inapplicable' ];
29248 -1 for (var _i34 = 0, _types = types; _i34 < _types.length; _i34++) {
29249 -1 var type = _types[_i34];
29250 -1 if (transformedResult[type] && Array.isArray(transformedResult[type])) {
29251 -1 transformedResult[type] = transformedResult[type].map(function(_ref121) {
29252 -1 var _node;
29253 -1 var node = _ref121.node, typeResult = _objectWithoutProperties(_ref121, _excluded13);
29254 -1 node = typeof ((_node = node) === null || _node === void 0 ? void 0 : _node.toJSON) === 'function' ? node.toJSON() : node;
29255 -1 return _extends({
29256 -1 node: node
29257 -1 }, typeResult);
29258 -1 });
29259 -1 }
-1 34057 for (var _i43 = 0, _types = types; _i43 < _types.length; _i43++) {
-1 34058 var type2 = _types[_i43];
-1 34059 transformedResult[type2] = node_serializer_default.mapRawNodeResults(transformedResult[type2]);
29260 34060 }
29261 34061 return transformedResult;
29262 34062 });
@@ -29268,7 +34068,7 @@ module.exports = {
29268 34068 callback = options;
29269 34069 options = {};
29270 34070 }
29271 -1 var _options4 = options, environmentData = _options4.environmentData, toolOptions = _objectWithoutProperties(_options4, _excluded14);
-1 34071 var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded17);
29272 34072 raw_default(results, toolOptions, function(raw) {
29273 34073 var env = _getEnvironmentData(environmentData);
29274 34074 callback({
@@ -29283,8 +34083,8 @@ module.exports = {
29283 34083 callback = options;
29284 34084 options = {};
29285 34085 }
29286 -1 var _options5 = options, environmentData = _options5.environmentData, toolOptions = _objectWithoutProperties(_options5, _excluded15);
29287 -1 var out = process_aggregate_default(results, options);
-1 34086 var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded18);
-1 34087 var out = processAggregate(results, options);
29288 34088 var addFailureSummaries = function addFailureSummaries(result) {
29289 34089 result.nodes.forEach(function(nodeResult) {
29290 34090 nodeResult.failureSummary = failure_summary_default(nodeResult);
@@ -29302,8 +34102,8 @@ module.exports = {
29302 34102 callback = options;
29303 34103 options = {};
29304 34104 }
29305 -1 var _options6 = options, environmentData = _options6.environmentData, toolOptions = _objectWithoutProperties(_options6, _excluded16);
29306 -1 var out = process_aggregate_default(results, options);
-1 34105 var _options7 = options, environmentData = _options7.environmentData, toolOptions = _objectWithoutProperties(_options7, _excluded19);
-1 34106 var out = processAggregate(results, options);
29307 34107 callback(_extends({}, _getEnvironmentData(environmentData), {
29308 34108 toolOptions: toolOptions
29309 34109 }, out));
@@ -29316,7 +34116,7 @@ module.exports = {
29316 34116 Check: check_default,
29317 34117 Context: Context,
29318 34118 RuleResult: rule_result_default,
29319 -1 Rule: rule_default,
-1 34119 Rule: Rule,
29320 34120 metadataFunctionMap: metadata_function_map_default
29321 34121 },
29322 34122 public: {
@@ -29325,7 +34125,7 @@ module.exports = {
29325 34125 helpers: {
29326 34126 failureSummary: failure_summary_default,
29327 34127 incompleteFallbackMessage: incompleteFallbackMessage,
29328 -1 processAggregate: process_aggregate_default
-1 34128 processAggregate: processAggregate
29329 34129 },
29330 34130 utils: {
29331 34131 setDefaultFrameMessenger: setDefaultFrameMessenger,
@@ -29362,14 +34162,14 @@ module.exports = {
29362 34162 axe.configure = configure_default;
29363 34163 axe.frameMessenger = frameMessenger2;
29364 34164 axe.getRules = get_rules_default;
29365 -1 axe._load = load_default;
-1 34165 axe._load = load;
29366 34166 axe.plugins = {};
29367 34167 axe.registerPlugin = plugins_default;
29368 34168 axe.hasReporter = hasReporter;
29369 34169 axe.getReporter = getReporter;
29370 34170 axe.addReporter = addReporter;
29371 34171 axe.reset = reset_default;
29372 -1 axe._runRules = run_rules_default;
-1 34172 axe._runRules = runRules;
29373 34173 axe.runVirtualRule = runVirtualRule;
29374 34174 axe.run = run4;
29375 34175 axe.setup = setup_default;
@@ -29399,24 +34199,36 @@ module.exports = {
29399 34199 help: 'Active <area> elements must have alternate text'
29400 34200 },
29401 34201 'aria-allowed-attr': {
29402 -1 description: 'Ensures ARIA attributes are allowed for an element\'s role',
29403 -1 help: 'Elements must only use allowed ARIA attributes'
-1 34202 description: 'Ensures an element\'s role supports its ARIA attributes',
-1 34203 help: 'Elements must only use supported ARIA attributes'
29404 34204 },
29405 34205 'aria-allowed-role': {
29406 34206 description: 'Ensures role attribute has an appropriate value for the element',
29407 34207 help: 'ARIA role should be appropriate for the element'
29408 34208 },
-1 34209 'aria-braille-equivalent': {
-1 34210 description: 'Ensure aria-braillelabel and aria-brailleroledescription have a non-braille equivalent',
-1 34211 help: 'aria-braille attributes must have a non-braille equivalent'
-1 34212 },
29409 34213 'aria-command-name': {
29410 34214 description: 'Ensures every ARIA button, link and menuitem has an accessible name',
29411 34215 help: 'ARIA commands must have an accessible name'
29412 34216 },
-1 34217 'aria-conditional-attr': {
-1 34218 description: 'Ensures ARIA attributes are used as described in the specification of the element\'s role',
-1 34219 help: 'ARIA attributes must be used as specified for the element\'s role'
-1 34220 },
-1 34221 'aria-deprecated-role': {
-1 34222 description: 'Ensures elements do not use deprecated roles',
-1 34223 help: 'Deprecated ARIA roles must not be used'
-1 34224 },
29413 34225 'aria-dialog-name': {
29414 34226 description: 'Ensures every ARIA dialog and alertdialog node has an accessible name',
29415 34227 help: 'ARIA dialog and alertdialog nodes should have an accessible name'
29416 34228 },
29417 34229 'aria-hidden-body': {
29418 -1 description: 'Ensures aria-hidden=\'true\' is not present on the document body.',
29419 -1 help: 'aria-hidden=\'true\' must not be present on the document body'
-1 34230 description: 'Ensures aria-hidden="true" is not present on the document body.',
-1 34231 help: 'aria-hidden="true" must not be present on the document body'
29420 34232 },
29421 34233 'aria-hidden-focus': {
29422 34234 description: 'Ensures aria-hidden elements are not focusable nor contain focusable elements',
@@ -29434,6 +34246,10 @@ module.exports = {
29434 34246 description: 'Ensures every ARIA progressbar node has an accessible name',
29435 34247 help: 'ARIA progressbar nodes must have an accessible name'
29436 34248 },
-1 34249 'aria-prohibited-attr': {
-1 34250 description: 'Ensures ARIA attributes are not prohibited for an element\'s role',
-1 34251 help: 'Elements must only use permitted ARIA attributes'
-1 34252 },
29437 34253 'aria-required-attr': {
29438 34254 description: 'Ensures elements with ARIA roles have all required ARIA attributes',
29439 34255 help: 'Required ARIA attributes must be provided'
@@ -29455,7 +34271,7 @@ module.exports = {
29455 34271 help: 'ARIA roles used must conform to valid values'
29456 34272 },
29457 34273 'aria-text': {
29458 -1 description: 'Ensures "role=text" is used on elements with no focusable descendants',
-1 34274 description: 'Ensures role="text" is used on elements with no focusable descendants',
29459 34275 help: '"role=text" should have no focusable descendants'
29460 34276 },
29461 34277 'aria-toggle-field-name': {
@@ -29503,12 +34319,12 @@ module.exports = {
29503 34319 help: 'Page must have means to bypass repeated blocks'
29504 34320 },
29505 34321 'color-contrast-enhanced': {
29506 -1 description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AAA contrast ratio thresholds',
29507 -1 help: 'Elements must have sufficient color contrast'
-1 34322 description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AAA enhanced contrast ratio thresholds',
-1 34323 help: 'Elements must meet enhanced color contrast ratio thresholds'
29508 34324 },
29509 34325 'color-contrast': {
29510 -1 description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds',
29511 -1 help: 'Elements must have sufficient color contrast'
-1 34326 description: 'Ensures the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds',
-1 34327 help: 'Elements must meet minimum color contrast ratio thresholds'
29512 34328 },
29513 34329 'css-orientation-lock': {
29514 34330 description: 'Ensures content is not locked to any specific display orientation, and the content is operable in all display orientations',
@@ -29723,8 +34539,8 @@ module.exports = {
29723 34539 help: 'All page content should be contained by landmarks'
29724 34540 },
29725 34541 'role-img-alt': {
29726 -1 description: 'Ensures [role=\'img\'] elements have alternate text',
29727 -1 help: '[role=\'img\'] elements must have an alternative text'
-1 34542 description: 'Ensures [role="img"] elements have alternate text',
-1 34543 help: '[role="img"] elements must have an alternative text'
29728 34544 },
29729 34545 'scope-attr-valid': {
29730 34546 description: 'Ensures the scope attribute is used correctly on tables',
@@ -29827,7 +34643,18 @@ module.exports = {
29827 34643 impact: 'serious',
29828 34644 messages: {
29829 34645 pass: 'Element has an aria-busy attribute',
29830 -1 fail: 'Element has no aria-busy="true" attribute'
-1 34646 fail: 'Element uses aria-busy="true" while showing a loader'
-1 34647 }
-1 34648 },
-1 34649 'aria-conditional-attr': {
-1 34650 impact: 'serious',
-1 34651 messages: {
-1 34652 pass: 'ARIA attribute is allowed',
-1 34653 fail: {
-1 34654 checkbox: 'Remove aria-checked, or set it to "${data.checkState}" to match the real checkbox state',
-1 34655 rowSingular: 'This attribute is supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}',
-1 34656 rowPlural: 'These attributes are supported with treegrid rows, but not ${data.ownerRole}: ${data.invalidAttrs}'
-1 34657 }
29831 34658 }
29832 34659 },
29833 34660 'aria-errormessage': {
@@ -29895,7 +34722,7 @@ module.exports = {
29895 34722 fail: {
29896 34723 singular: 'Required ARIA child role not present: ${data.values}',
29897 34724 plural: 'Required ARIA children role not present: ${data.values}',
29898 -1 unallowed: 'Element has children which are not allowed (see related nodes)'
-1 34725 unallowed: 'Element has children which are not allowed: ${data.values}'
29899 34726 },
29900 34727 incomplete: {
29901 34728 singular: 'Expecting ARIA child role to be added: ${data.values}',
@@ -29955,6 +34782,24 @@ module.exports = {
29955 34782 }
29956 34783 }
29957 34784 },
-1 34785 'braille-label-equivalent': {
-1 34786 impact: 'serious',
-1 34787 messages: {
-1 34788 pass: 'aria-braillelabel is used on an element with accessible text',
-1 34789 fail: 'aria-braillelabel is used on an element with no accessible text',
-1 34790 incomplete: 'Unable to compute accessible text'
-1 34791 }
-1 34792 },
-1 34793 'braille-roledescription-equivalent': {
-1 34794 impact: 'serious',
-1 34795 messages: {
-1 34796 pass: 'aria-brailleroledescription is used on an element with aria-roledescription',
-1 34797 fail: {
-1 34798 noRoleDescription: 'aria-brailleroledescription is used on an element with no aria-roledescription',
-1 34799 emptyRoleDescription: 'aria-brailleroledescription is used on an element with an empty aria-roledescription'
-1 34800 }
-1 34801 }
-1 34802 },
29958 34803 deprecatedrole: {
29959 34804 impact: 'minor',
29960 34805 messages: {
@@ -30005,7 +34850,7 @@ module.exports = {
30005 34850 }
30006 34851 },
30007 34852 'no-implicit-explicit-label': {
30008 -1 impact: 'moderate',
-1 34853 impact: 'serious',
30009 34854 messages: {
30010 34855 pass: 'There is no mismatch between a <label> and accessible name',
30011 34856 incomplete: 'Check that the <label> does not need be part of the ARIA ${data} field\'s name'
@@ -30069,6 +34914,7 @@ module.exports = {
30069 34914 bgGradient: 'Element\'s background color could not be determined due to a background gradient',
30070 34915 imgNode: 'Element\'s background color could not be determined because element contains an image node',
30071 34916 bgOverlap: 'Element\'s background color could not be determined because it is overlapped by another element',
-1 34917 complexTextShadows: 'Element\'s contrast could not be determined because it uses complex text shadows',
30072 34918 fgAlpha: 'Element\'s foreground color could not be determined because of alpha transparency',
30073 34919 elmPartiallyObscured: 'Element\'s background color could not be determined because it\'s partially obscured by another element',
30074 34920 elmPartiallyObscuring: 'Element\'s background color could not be determined because it partially overlaps other elements',
@@ -30084,6 +34930,10 @@ module.exports = {
30084 34930 impact: 'serious',
30085 34931 messages: {
30086 34932 pass: 'Links can be distinguished from surrounding text by visual styling',
-1 34933 incomplete: {
-1 34934 default: 'Check if the link needs styling to distinguish it from nearby text',
-1 34935 pseudoContent: 'Check if the link\'s pseudo style is sufficient to distinguish it from the surrounding text'
-1 34936 },
30087 34937 fail: 'The link has no styling (such as underline) to distinguish it from the surrounding text'
30088 34938 }
30089 34939 },
@@ -30127,7 +34977,7 @@ module.exports = {
30127 34977 }
30128 34978 },
30129 34979 'focusable-content': {
30130 -1 impact: 'moderate',
-1 34980 impact: 'serious',
30131 34981 messages: {
30132 34982 pass: 'Element contains focusable elements',
30133 34983 fail: 'Element should have focusable content'
@@ -30142,7 +34992,7 @@ module.exports = {
30142 34992 }
30143 34993 },
30144 34994 'focusable-element': {
30145 -1 impact: 'moderate',
-1 34995 impact: 'serious',
30146 34996 messages: {
30147 34997 pass: 'Element is focusable',
30148 34998 fail: 'Element should be focusable'
@@ -30168,7 +35018,7 @@ module.exports = {
30168 35018 messages: {
30169 35019 pass: 'No focusable elements contained within element',
30170 35020 incomplete: 'Check if the focusable elements immediately move the focus indicator',
30171 -1 fail: 'Focusable content should have tabindex=\'-1\' or be removed from the DOM'
-1 35021 fail: 'Focusable content should have tabindex="-1" or be removed from the DOM'
30172 35022 }
30173 35023 },
30174 35024 'frame-focusable-content': {
@@ -30192,7 +35042,7 @@ module.exports = {
30192 35042 pass: 'Element does not have focusable descendants',
30193 35043 fail: {
30194 35044 default: 'Element has focusable descendants',
30195 -1 notHidden: 'Using a negative tabindex on an element inside an interactive control does not prevent assistive technologies from focusing the element (even with \'aria-hidden=true\')'
-1 35045 notHidden: 'Using a negative tabindex on an element inside an interactive control does not prevent assistive technologies from focusing the element (even with aria-hidden="true")'
30196 35046 },
30197 35047 incomplete: 'Could not determine if element has descendants'
30198 35048 }
@@ -30422,11 +35272,11 @@ module.exports = {
30422 35272 'target-offset': {
30423 35273 impact: 'serious',
30424 35274 messages: {
30425 -1 pass: 'Target has sufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
30426 -1 fail: 'Target has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px)',
-1 35275 pass: 'Target has sufficient space from its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px which is at least ${data.minOffset}px.',
-1 35276 fail: 'Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px.',
30427 35277 incomplete: {
30428 -1 default: 'Element with negative tabindex has insufficient offset from its closest neighbor (${data.closestOffset}px should be at least ${data.minOffset}px). Is this a target?',
30429 -1 nonTabbableNeighbor: 'Target has insufficient offset from a neighbor with negative tabindex (${data.closestOffset}px should be at least ${data.minOffset}px). Is the neighbor a target?'
-1 35278 default: 'Element with negative tabindex has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px. Is this a target?',
-1 35279 nonTabbableNeighbor: 'Target has insufficient space to its closest neighbors. Safe clickable space has a diameter of ${data.closestOffset}px instead of at least ${data.minOffset}px. Is the neighbor a target?'
30430 35280 }
30431 35281 }
30432 35282 },
@@ -30823,6 +35673,7 @@ module.exports = {
30823 35673 },
30824 35674 rules: [ {
30825 35675 id: 'accesskeys',
-1 35676 impact: 'serious',
30826 35677 selector: '[accesskey]',
30827 35678 excludeHidden: false,
30828 35679 tags: [ 'cat.keyboard', 'best-practice' ],
@@ -30831,9 +35682,10 @@ module.exports = {
30831 35682 none: [ 'accesskeys' ]
30832 35683 }, {
30833 35684 id: 'area-alt',
-1 35685 impact: 'critical',
30834 35686 selector: 'map area[href]',
30835 35687 excludeHidden: false,
30836 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 35688 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],
30837 35689 actIds: [ 'c487ae' ],
30838 35690 all: [],
30839 35691 any: [ {
@@ -30850,24 +35702,21 @@ module.exports = {
30850 35702 none: []
30851 35703 }, {
30852 35704 id: 'aria-allowed-attr',
-1 35705 impact: 'critical',
30853 35706 matches: 'aria-allowed-attr-matches',
30854 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35707 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
30855 35708 actIds: [ '5c01ea' ],
30856 -1 all: [],
30857 -1 any: [ {
-1 35709 all: [ {
30858 35710 options: {
30859 35711 validTreeRowAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-level' ]
30860 35712 },
30861 35713 id: 'aria-allowed-attr'
30862 35714 } ],
30863 -1 none: [ 'aria-unsupported-attr', {
30864 -1 options: {
30865 -1 elementsAllowedAriaLabel: [ 'applet', 'input' ]
30866 -1 },
30867 -1 id: 'aria-prohibited-attr'
30868 -1 } ]
-1 35715 any: [],
-1 35716 none: [ 'aria-unsupported-attr' ]
30869 35717 }, {
30870 35718 id: 'aria-allowed-role',
-1 35719 impact: 'minor',
30871 35720 excludeHidden: false,
30872 35721 selector: '[role]',
30873 35722 matches: 'aria-allowed-role-matches',
@@ -30882,10 +35731,20 @@ module.exports = {
30882 35731 } ],
30883 35732 none: []
30884 35733 }, {
-1 35734 id: 'aria-braille-equivalent',
-1 35735 reviewOnFail: true,
-1 35736 impact: 'serious',
-1 35737 selector: '[aria-brailleroledescription], [aria-braillelabel]',
-1 35738 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
-1 35739 all: [ 'braille-roledescription-equivalent', 'braille-label-equivalent' ],
-1 35740 any: [],
-1 35741 none: []
-1 35742 }, {
30885 35743 id: 'aria-command-name',
-1 35744 impact: 'serious',
30886 35745 selector: '[role="link"], [role="button"], [role="menuitem"]',
30887 35746 matches: 'no-naming-method-matches',
30888 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
-1 35747 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
30889 35748 actIds: [ '97a4e1' ],
30890 35749 all: [],
30891 35750 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -30896,7 +35755,32 @@ module.exports = {
30896 35755 } ],
30897 35756 none: []
30898 35757 }, {
-1 35758 id: 'aria-conditional-attr',
-1 35759 impact: 'serious',
-1 35760 matches: 'aria-allowed-attr-matches',
-1 35761 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
-1 35762 actIds: [ '5c01ea' ],
-1 35763 all: [ {
-1 35764 options: {
-1 35765 invalidTableRowAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-level' ]
-1 35766 },
-1 35767 id: 'aria-conditional-attr'
-1 35768 } ],
-1 35769 any: [],
-1 35770 none: []
-1 35771 }, {
-1 35772 id: 'aria-deprecated-role',
-1 35773 impact: 'minor',
-1 35774 selector: '[role]',
-1 35775 matches: 'no-empty-role-matches',
-1 35776 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
-1 35777 actIds: [ '674b10' ],
-1 35778 all: [],
-1 35779 any: [],
-1 35780 none: [ 'deprecatedrole' ]
-1 35781 }, {
30899 35782 id: 'aria-dialog-name',
-1 35783 impact: 'serious',
30900 35784 selector: '[role="dialog"], [role="alertdialog"]',
30901 35785 matches: 'no-naming-method-matches',
30902 35786 tags: [ 'cat.aria', 'best-practice' ],
@@ -30910,28 +35794,31 @@ module.exports = {
30910 35794 none: []
30911 35795 }, {
30912 35796 id: 'aria-hidden-body',
-1 35797 impact: 'critical',
30913 35798 selector: 'body',
30914 35799 excludeHidden: false,
30915 35800 matches: 'is-initiator-matches',
30916 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35801 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
30917 35802 all: [],
30918 35803 any: [ 'aria-hidden-body' ],
30919 35804 none: []
30920 35805 }, {
30921 35806 id: 'aria-hidden-focus',
-1 35807 impact: 'serious',
30922 35808 selector: '[aria-hidden="true"]',
30923 35809 matches: 'aria-hidden-focus-matches',
30924 35810 excludeHidden: false,
30925 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412' ],
-1 35811 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],
30926 35812 actIds: [ '6cfa84' ],
30927 35813 all: [ 'focusable-modal-open', 'focusable-disabled', 'focusable-not-tabbable' ],
30928 35814 any: [],
30929 35815 none: []
30930 35816 }, {
30931 35817 id: 'aria-input-field-name',
-1 35818 impact: 'serious',
30932 35819 selector: '[role="combobox"], [role="listbox"], [role="searchbox"], [role="slider"], [role="spinbutton"], [role="textbox"]',
30933 35820 matches: 'no-naming-method-matches',
30934 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
-1 35821 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
30935 35822 actIds: [ 'e086e5' ],
30936 35823 all: [],
30937 35824 any: [ 'aria-label', 'aria-labelledby', {
@@ -30943,9 +35830,10 @@ module.exports = {
30943 35830 none: [ 'no-implicit-explicit-label' ]
30944 35831 }, {
30945 35832 id: 'aria-meter-name',
-1 35833 impact: 'serious',
30946 35834 selector: '[role="meter"]',
30947 35835 matches: 'no-naming-method-matches',
30948 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag111' ],
-1 35836 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],
30949 35837 all: [],
30950 35838 any: [ 'aria-label', 'aria-labelledby', {
30951 35839 options: {
@@ -30956,9 +35844,10 @@ module.exports = {
30956 35844 none: []
30957 35845 }, {
30958 35846 id: 'aria-progressbar-name',
-1 35847 impact: 'serious',
30959 35848 selector: '[role="progressbar"]',
30960 35849 matches: 'no-naming-method-matches',
30961 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag111' ],
-1 35850 tags: [ 'cat.aria', 'wcag2a', 'wcag111', 'EN-301-549', 'EN-9.1.1.1' ],
30962 35851 all: [],
30963 35852 any: [ 'aria-label', 'aria-labelledby', {
30964 35853 options: {
@@ -30968,18 +35857,34 @@ module.exports = {
30968 35857 } ],
30969 35858 none: []
30970 35859 }, {
-1 35860 id: 'aria-prohibited-attr',
-1 35861 impact: 'serious',
-1 35862 matches: 'aria-allowed-attr-matches',
-1 35863 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
-1 35864 actIds: [ '5c01ea' ],
-1 35865 all: [],
-1 35866 any: [],
-1 35867 none: [ {
-1 35868 options: {
-1 35869 elementsAllowedAriaLabel: [ 'applet', 'input' ]
-1 35870 },
-1 35871 id: 'aria-prohibited-attr'
-1 35872 } ]
-1 35873 }, {
30971 35874 id: 'aria-required-attr',
-1 35875 impact: 'critical',
30972 35876 selector: '[role]',
30973 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35877 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
30974 35878 actIds: [ '4e8ab6' ],
30975 35879 all: [],
30976 35880 any: [ 'aria-required-attr' ],
30977 35881 none: []
30978 35882 }, {
30979 35883 id: 'aria-required-children',
-1 35884 impact: 'critical',
30980 35885 selector: '[role]',
30981 35886 matches: 'aria-required-children-matches',
30982 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
-1 35887 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
30983 35888 actIds: [ 'bc4a75', 'ff89c9' ],
30984 35889 all: [],
30985 35890 any: [ {
@@ -30991,9 +35896,10 @@ module.exports = {
30991 35896 none: []
30992 35897 }, {
30993 35898 id: 'aria-required-parent',
-1 35899 impact: 'critical',
30994 35900 selector: '[role]',
30995 35901 matches: 'aria-required-parent-matches',
30996 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag131' ],
-1 35902 tags: [ 'cat.aria', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
30997 35903 actIds: [ 'ff89c9' ],
30998 35904 all: [],
30999 35905 any: [ {
@@ -31005,8 +35911,10 @@ module.exports = {
31005 35911 none: []
31006 35912 }, {
31007 35913 id: 'aria-roledescription',
-1 35914 impact: 'serious',
31008 35915 selector: '[aria-roledescription]',
31009 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35916 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2', 'deprecated' ],
-1 35917 enabled: false,
31010 35918 all: [],
31011 35919 any: [ {
31012 35920 options: {
@@ -31017,15 +35925,17 @@ module.exports = {
31017 35925 none: []
31018 35926 }, {
31019 35927 id: 'aria-roles',
-1 35928 impact: 'critical',
31020 35929 selector: '[role]',
31021 35930 matches: 'no-empty-role-matches',
31022 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35931 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
31023 35932 actIds: [ '674b10' ],
31024 35933 all: [],
31025 35934 any: [],
31026 -1 none: [ 'invalidrole', 'abstractrole', 'unsupportedrole', 'deprecatedrole' ]
-1 35935 none: [ 'invalidrole', 'abstractrole', 'unsupportedrole' ]
31027 35936 }, {
31028 35937 id: 'aria-text',
-1 35938 impact: 'serious',
31029 35939 selector: '[role=text]',
31030 35940 tags: [ 'cat.aria', 'best-practice' ],
31031 35941 all: [],
@@ -31033,9 +35943,10 @@ module.exports = {
31033 35943 none: []
31034 35944 }, {
31035 35945 id: 'aria-toggle-field-name',
-1 35946 impact: 'serious',
31036 35947 selector: '[role="checkbox"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="radio"], [role="switch"], [role="option"]',
31037 35948 matches: 'no-naming-method-matches',
31038 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'ACT' ],
-1 35949 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
31039 35950 actIds: [ 'e086e5' ],
31040 35951 all: [],
31041 35952 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -31047,9 +35958,10 @@ module.exports = {
31047 35958 none: [ 'no-implicit-explicit-label' ]
31048 35959 }, {
31049 35960 id: 'aria-tooltip-name',
-1 35961 impact: 'serious',
31050 35962 selector: '[role="tooltip"]',
31051 35963 matches: 'no-naming-method-matches',
31052 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35964 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
31053 35965 all: [],
31054 35966 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
31055 35967 options: {
@@ -31060,6 +35972,7 @@ module.exports = {
31060 35972 none: []
31061 35973 }, {
31062 35974 id: 'aria-treeitem-name',
-1 35975 impact: 'serious',
31063 35976 selector: '[role="treeitem"]',
31064 35977 matches: 'no-naming-method-matches',
31065 35978 tags: [ 'cat.aria', 'best-practice' ],
@@ -31073,8 +35986,9 @@ module.exports = {
31073 35986 none: []
31074 35987 }, {
31075 35988 id: 'aria-valid-attr-value',
-1 35989 impact: 'critical',
31076 35990 matches: 'aria-has-attr-matches',
31077 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 35991 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
31078 35992 actIds: [ '6a7281' ],
31079 35993 all: [ {
31080 35994 options: [],
@@ -31084,8 +35998,9 @@ module.exports = {
31084 35998 none: []
31085 35999 }, {
31086 36000 id: 'aria-valid-attr',
-1 36001 impact: 'critical',
31087 36002 matches: 'aria-has-attr-matches',
31088 -1 tags: [ 'cat.aria', 'wcag2a', 'wcag412' ],
-1 36003 tags: [ 'cat.aria', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
31089 36004 actIds: [ '5f99a7' ],
31090 36005 all: [],
31091 36006 any: [ {
@@ -31095,18 +36010,20 @@ module.exports = {
31095 36010 none: []
31096 36011 }, {
31097 36012 id: 'audio-caption',
-1 36013 impact: 'critical',
31098 36014 selector: 'audio',
31099 36015 enabled: false,
31100 36016 excludeHidden: false,
31101 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'section508', 'section508.22.a' ],
-1 36017 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag121', 'EN-301-549', 'EN-9.1.2.1', 'section508', 'section508.22.a', 'deprecated' ],
31102 36018 actIds: [ '2eb176', 'afb423' ],
31103 36019 all: [],
31104 36020 any: [],
31105 36021 none: [ 'caption' ]
31106 36022 }, {
31107 36023 id: 'autocomplete-valid',
-1 36024 impact: 'serious',
31108 36025 matches: 'autocomplete-matches',
31109 -1 tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'ACT' ],
-1 36026 tags: [ 'cat.forms', 'wcag21aa', 'wcag135', 'EN-301-549', 'EN-9.1.3.5', 'ACT' ],
31110 36027 actIds: [ '73f2c2' ],
31111 36028 all: [ {
31112 36029 options: {
@@ -31118,9 +36035,10 @@ module.exports = {
31118 36035 none: []
31119 36036 }, {
31120 36037 id: 'avoid-inline-spacing',
-1 36038 impact: 'serious',
31121 36039 selector: '[style]',
31122 36040 matches: 'is-visible-on-screen-matches',
31123 -1 tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'ACT' ],
-1 36041 tags: [ 'cat.structure', 'wcag21aa', 'wcag1412', 'EN-301-549', 'EN-9.1.4.12', 'ACT' ],
31124 36042 actIds: [ '24afc2', '9e45ec', '78fd32' ],
31125 36043 all: [ {
31126 36044 options: {
@@ -31147,17 +36065,19 @@ module.exports = {
31147 36065 none: []
31148 36066 }, {
31149 36067 id: 'blink',
-1 36068 impact: 'serious',
31150 36069 selector: 'blink',
31151 36070 excludeHidden: false,
31152 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j' ],
-1 36071 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag222', 'section508', 'section508.22.j', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],
31153 36072 all: [],
31154 36073 any: [],
31155 36074 none: [ 'is-on-screen' ]
31156 36075 }, {
31157 36076 id: 'button-name',
-1 36077 impact: 'critical',
31158 36078 selector: 'button',
31159 36079 matches: 'no-explicit-name-required-matches',
31160 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 36080 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
31161 36081 actIds: [ '97a4e1', 'm6b1q3' ],
31162 36082 all: [],
31163 36083 any: [ 'button-has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -31169,11 +36089,12 @@ module.exports = {
31169 36089 none: []
31170 36090 }, {
31171 36091 id: 'bypass',
-1 36092 impact: 'serious',
31172 36093 selector: 'html',
31173 36094 pageLevel: true,
31174 36095 matches: 'bypass-matches',
31175 36096 reviewOnFail: true,
31176 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o' ],
-1 36097 tags: [ 'cat.keyboard', 'wcag2a', 'wcag241', 'section508', 'section508.22.o', 'TTv5', 'TT9.a', 'EN-301-549', 'EN-9.2.4.1' ],
31177 36098 actIds: [ 'cf77f2', '047fe0', 'b40fd1', '3e12e1', 'ye5d6e' ],
31178 36099 all: [],
31179 36100 any: [ 'internal-link-present', {
@@ -31190,6 +36111,7 @@ module.exports = {
31190 36111 none: []
31191 36112 }, {
31192 36113 id: 'color-contrast-enhanced',
-1 36114 impact: 'serious',
31193 36115 matches: 'color-contrast-matches',
31194 36116 excludeHidden: false,
31195 36117 enabled: false,
@@ -31223,9 +36145,10 @@ module.exports = {
31223 36145 none: []
31224 36146 }, {
31225 36147 id: 'color-contrast',
-1 36148 impact: 'serious',
31226 36149 matches: 'color-contrast-matches',
31227 36150 excludeHidden: false,
31228 -1 tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'ACT' ],
-1 36151 tags: [ 'cat.color', 'wcag2aa', 'wcag143', 'TTv5', 'TT13.c', 'EN-301-549', 'EN-9.1.4.3', 'ACT' ],
31229 36152 actIds: [ 'afw4f7', '09o5cg' ],
31230 36153 all: [],
31231 36154 any: [ {
@@ -31253,8 +36176,9 @@ module.exports = {
31253 36176 none: []
31254 36177 }, {
31255 36178 id: 'css-orientation-lock',
-1 36179 impact: 'serious',
31256 36180 selector: 'html',
31257 -1 tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'experimental' ],
-1 36181 tags: [ 'cat.structure', 'wcag134', 'wcag21aa', 'EN-301-549', 'EN-9.1.3.4', 'experimental' ],
31258 36182 actIds: [ 'b33eff' ],
31259 36183 all: [ {
31260 36184 options: {
@@ -31267,9 +36191,10 @@ module.exports = {
31267 36191 preload: true
31268 36192 }, {
31269 36193 id: 'definition-list',
-1 36194 impact: 'serious',
31270 36195 selector: 'dl',
31271 36196 matches: 'no-role-matches',
31272 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
-1 36197 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
31273 36198 all: [],
31274 36199 any: [],
31275 36200 none: [ 'structured-dlitems', {
@@ -31282,58 +36207,66 @@ module.exports = {
31282 36207 } ]
31283 36208 }, {
31284 36209 id: 'dlitem',
-1 36210 impact: 'serious',
31285 36211 selector: 'dd, dt',
31286 36212 matches: 'no-role-matches',
31287 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
-1 36213 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
31288 36214 all: [],
31289 36215 any: [ 'dlitem' ],
31290 36216 none: []
31291 36217 }, {
31292 36218 id: 'document-title',
-1 36219 impact: 'serious',
31293 36220 selector: 'html',
31294 36221 matches: 'is-initiator-matches',
31295 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'ACT' ],
-1 36222 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag242', 'TTv5', 'TT12.a', 'EN-301-549', 'EN-9.2.4.2', 'ACT' ],
31296 36223 actIds: [ '2779a5' ],
31297 36224 all: [],
31298 36225 any: [ 'doc-has-title' ],
31299 36226 none: []
31300 36227 }, {
31301 36228 id: 'duplicate-id-active',
-1 36229 impact: 'serious',
31302 36230 selector: '[id]',
31303 36231 matches: 'duplicate-id-active-matches',
31304 36232 excludeHidden: false,
31305 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
-1 36233 tags: [ 'cat.parsing', 'wcag2a-obsolete', 'wcag411', 'deprecated' ],
-1 36234 enabled: false,
31306 36235 actIds: [ '3ea0c8' ],
31307 36236 all: [],
31308 36237 any: [ 'duplicate-id-active' ],
31309 36238 none: []
31310 36239 }, {
31311 36240 id: 'duplicate-id-aria',
-1 36241 impact: 'critical',
31312 36242 selector: '[id]',
31313 36243 matches: 'duplicate-id-aria-matches',
31314 36244 excludeHidden: false,
31315 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
-1 36245 tags: [ 'cat.parsing', 'wcag2a', 'wcag412', 'EN-301-549', 'EN-9.4.1.2' ],
-1 36246 reviewOnFail: true,
31316 36247 actIds: [ '3ea0c8' ],
31317 36248 all: [],
31318 36249 any: [ 'duplicate-id-aria' ],
31319 36250 none: []
31320 36251 }, {
31321 36252 id: 'duplicate-id',
-1 36253 impact: 'minor',
31322 36254 selector: '[id]',
31323 36255 matches: 'duplicate-id-misc-matches',
31324 36256 excludeHidden: false,
31325 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag411' ],
-1 36257 tags: [ 'cat.parsing', 'wcag2a-obsolete', 'wcag411', 'deprecated' ],
-1 36258 enabled: false,
31326 36259 actIds: [ '3ea0c8' ],
31327 36260 all: [],
31328 36261 any: [ 'duplicate-id' ],
31329 36262 none: []
31330 36263 }, {
31331 36264 id: 'empty-heading',
-1 36265 impact: 'minor',
31332 36266 selector: 'h1, h2, h3, h4, h5, h6, [role="heading"]',
31333 36267 matches: 'heading-matches',
31334 36268 tags: [ 'cat.name-role-value', 'best-practice' ],
31335 36269 actIds: [ 'ffd0e9' ],
31336 -1 impact: 'minor',
31337 36270 all: [],
31338 36271 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
31339 36272 options: {
@@ -31344,6 +36277,7 @@ module.exports = {
31344 36277 none: []
31345 36278 }, {
31346 36279 id: 'empty-table-header',
-1 36280 impact: 'minor',
31347 36281 selector: 'th:not([role]), [role="rowheader"], [role="columnheader"]',
31348 36282 tags: [ 'cat.name-role-value', 'best-practice' ],
31349 36283 all: [],
@@ -31351,6 +36285,7 @@ module.exports = {
31351 36285 none: []
31352 36286 }, {
31353 36287 id: 'focus-order-semantics',
-1 36288 impact: 'minor',
31354 36289 selector: 'div, h1, h2, h3, h4, h5, h6, [role=heading], p, span',
31355 36290 matches: 'inserted-into-focus-order-matches',
31356 36291 tags: [ 'cat.keyboard', 'best-practice', 'experimental' ],
@@ -31367,25 +36302,28 @@ module.exports = {
31367 36302 none: []
31368 36303 }, {
31369 36304 id: 'form-field-multiple-labels',
-1 36305 impact: 'moderate',
31370 36306 selector: 'input, select, textarea',
31371 36307 matches: 'label-matches',
31372 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag332' ],
-1 36308 tags: [ 'cat.forms', 'wcag2a', 'wcag332', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.3.3.2' ],
31373 36309 all: [],
31374 36310 any: [],
31375 36311 none: [ 'multiple-label' ]
31376 36312 }, {
31377 36313 id: 'frame-focusable-content',
-1 36314 impact: 'serious',
31378 36315 selector: 'html',
31379 36316 matches: 'frame-focusable-content-matches',
31380 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
-1 36317 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
31381 36318 actIds: [ 'akn7bn' ],
31382 36319 all: [],
31383 36320 any: [ 'frame-focusable-content' ],
31384 36321 none: []
31385 36322 }, {
31386 36323 id: 'frame-tested',
-1 36324 impact: 'critical',
31387 36325 selector: 'html, frame, iframe',
31388 -1 tags: [ 'cat.structure', 'review-item', 'best-practice' ],
-1 36326 tags: [ 'cat.structure', 'best-practice', 'review-item' ],
31389 36327 all: [ {
31390 36328 options: {
31391 36329 isViolation: false
@@ -31396,9 +36334,10 @@ module.exports = {
31396 36334 none: []
31397 36335 }, {
31398 36336 id: 'frame-title-unique',
-1 36337 impact: 'serious',
31399 36338 selector: 'frame[title], iframe[title]',
31400 36339 matches: 'frame-title-has-text-matches',
31401 -1 tags: [ 'cat.text-alternatives', 'wcag412', 'wcag2a' ],
-1 36340 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],
31402 36341 actIds: [ '4b1c6c' ],
31403 36342 all: [],
31404 36343 any: [],
@@ -31406,9 +36345,10 @@ module.exports = {
31406 36345 reviewOnFail: true
31407 36346 }, {
31408 36347 id: 'frame-title',
-1 36348 impact: 'serious',
31409 36349 selector: 'frame, iframe',
31410 36350 matches: 'no-negative-tabindex-matches',
31411 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i' ],
-1 36351 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag412', 'section508', 'section508.22.i', 'TTv5', 'TT12.d', 'EN-301-549', 'EN-9.4.1.2' ],
31412 36352 actIds: [ 'cae760' ],
31413 36353 all: [],
31414 36354 any: [ {
@@ -31420,6 +36360,7 @@ module.exports = {
31420 36360 none: []
31421 36361 }, {
31422 36362 id: 'heading-order',
-1 36363 impact: 'moderate',
31423 36364 selector: 'h1, h2, h3, h4, h5, h6, [role=heading]',
31424 36365 matches: 'heading-matches',
31425 36366 tags: [ 'cat.semantics', 'best-practice' ],
@@ -31428,17 +36369,19 @@ module.exports = {
31428 36369 none: []
31429 36370 }, {
31430 36371 id: 'hidden-content',
-1 36372 impact: 'minor',
31431 36373 selector: '*',
31432 36374 excludeHidden: false,
31433 -1 tags: [ 'cat.structure', 'experimental', 'review-item', 'best-practice' ],
-1 36375 tags: [ 'cat.structure', 'best-practice', 'experimental', 'review-item' ],
31434 36376 all: [],
31435 36377 any: [ 'hidden-content' ],
31436 36378 none: []
31437 36379 }, {
31438 36380 id: 'html-has-lang',
-1 36381 impact: 'serious',
31439 36382 selector: 'html',
31440 36383 matches: 'is-initiator-matches',
31441 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
-1 36384 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
31442 36385 actIds: [ 'b5c3f8' ],
31443 36386 all: [],
31444 36387 any: [ {
@@ -31450,8 +36393,9 @@ module.exports = {
31450 36393 none: []
31451 36394 }, {
31452 36395 id: 'html-lang-valid',
-1 36396 impact: 'serious',
31453 36397 selector: 'html[lang]:not([lang=""]), html[xml\\:lang]:not([xml\\:lang=""])',
31454 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
-1 36398 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'TTv5', 'TT11.a', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
31455 36399 actIds: [ 'bf051a' ],
31456 36400 all: [],
31457 36401 any: [],
@@ -31463,15 +36407,17 @@ module.exports = {
31463 36407 } ]
31464 36408 }, {
31465 36409 id: 'html-xml-lang-mismatch',
-1 36410 impact: 'moderate',
31466 36411 selector: 'html[lang][xml\\:lang]',
31467 36412 matches: 'xml-lang-mismatch-matches',
31468 -1 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'ACT' ],
-1 36413 tags: [ 'cat.language', 'wcag2a', 'wcag311', 'EN-301-549', 'EN-9.3.1.1', 'ACT' ],
31469 36414 actIds: [ '5b7ae0' ],
31470 36415 all: [ 'xml-lang-mismatch' ],
31471 36416 any: [],
31472 36417 none: []
31473 36418 }, {
31474 36419 id: 'identical-links-same-purpose',
-1 36420 impact: 'minor',
31475 36421 selector: 'a[href], area[href], [role="link"]',
31476 36422 excludeHidden: false,
31477 36423 enabled: false,
@@ -31483,9 +36429,10 @@ module.exports = {
31483 36429 none: []
31484 36430 }, {
31485 36431 id: 'image-alt',
-1 36432 impact: 'critical',
31486 36433 selector: 'img',
31487 36434 matches: 'no-explicit-name-required-matches',
31488 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
-1 36435 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'TT7.b', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
31489 36436 actIds: [ '23a2a8' ],
31490 36437 all: [],
31491 36438 any: [ 'has-alt', 'aria-label', 'aria-labelledby', {
@@ -31497,6 +36444,7 @@ module.exports = {
31497 36444 none: [ 'alt-space-value' ]
31498 36445 }, {
31499 36446 id: 'image-redundant-alt',
-1 36447 impact: 'minor',
31500 36448 selector: 'img',
31501 36449 tags: [ 'cat.text-alternatives', 'best-practice' ],
31502 36450 all: [],
@@ -31509,9 +36457,10 @@ module.exports = {
31509 36457 } ]
31510 36458 }, {
31511 36459 id: 'input-button-name',
-1 36460 impact: 'critical',
31512 36461 selector: 'input[type="button"], input[type="submit"], input[type="reset"]',
31513 36462 matches: 'no-explicit-name-required-matches',
31514 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 36463 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
31515 36464 actIds: [ '97a4e1' ],
31516 36465 all: [],
31517 36466 any: [ 'non-empty-if-present', {
@@ -31528,9 +36477,10 @@ module.exports = {
31528 36477 none: []
31529 36478 }, {
31530 36479 id: 'input-image-alt',
-1 36480 impact: 'critical',
31531 36481 selector: 'input[type="image"]',
31532 36482 matches: 'no-explicit-name-required-matches',
31533 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'ACT' ],
-1 36483 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'EN-9.4.1.2', 'ACT' ],
31534 36484 actIds: [ '59796f' ],
31535 36485 all: [],
31536 36486 any: [ {
@@ -31547,8 +36497,9 @@ module.exports = {
31547 36497 none: []
31548 36498 }, {
31549 36499 id: 'label-content-name-mismatch',
-1 36500 impact: 'serious',
31550 36501 matches: 'label-content-name-mismatch-matches',
31551 -1 tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'experimental' ],
-1 36502 tags: [ 'cat.semantics', 'wcag21a', 'wcag253', 'EN-301-549', 'EN-9.2.5.3', 'experimental' ],
31552 36503 actIds: [ '2ee8b8' ],
31553 36504 all: [],
31554 36505 any: [ {
@@ -31561,6 +36512,7 @@ module.exports = {
31561 36512 none: []
31562 36513 }, {
31563 36514 id: 'label-title-only',
-1 36515 impact: 'serious',
31564 36516 selector: 'input, select, textarea',
31565 36517 matches: 'label-matches',
31566 36518 tags: [ 'cat.forms', 'best-practice' ],
@@ -31569,9 +36521,10 @@ module.exports = {
31569 36521 none: [ 'title-only' ]
31570 36522 }, {
31571 36523 id: 'label',
-1 36524 impact: 'critical',
31572 36525 selector: 'input, textarea',
31573 36526 matches: 'label-matches',
31574 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
-1 36527 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
31575 36528 actIds: [ 'e086e5' ],
31576 36529 all: [],
31577 36530 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
@@ -31585,9 +36538,10 @@ module.exports = {
31585 36538 },
31586 36539 id: 'non-empty-placeholder'
31587 36540 }, 'presentational-role' ],
31588 -1 none: [ 'help-same-as-label', 'hidden-explicit-label' ]
-1 36541 none: [ 'hidden-explicit-label' ]
31589 36542 }, {
31590 36543 id: 'landmark-banner-is-top-level',
-1 36544 impact: 'moderate',
31591 36545 selector: 'header:not([role]), [role=banner]',
31592 36546 matches: 'landmark-has-body-context-matches',
31593 36547 tags: [ 'cat.semantics', 'best-practice' ],
@@ -31596,6 +36550,7 @@ module.exports = {
31596 36550 none: []
31597 36551 }, {
31598 36552 id: 'landmark-complementary-is-top-level',
-1 36553 impact: 'moderate',
31599 36554 selector: 'aside:not([role]), [role=complementary]',
31600 36555 tags: [ 'cat.semantics', 'best-practice' ],
31601 36556 all: [],
@@ -31603,6 +36558,7 @@ module.exports = {
31603 36558 none: []
31604 36559 }, {
31605 36560 id: 'landmark-contentinfo-is-top-level',
-1 36561 impact: 'moderate',
31606 36562 selector: 'footer:not([role]), [role=contentinfo]',
31607 36563 matches: 'landmark-has-body-context-matches',
31608 36564 tags: [ 'cat.semantics', 'best-practice' ],
@@ -31611,6 +36567,7 @@ module.exports = {
31611 36567 none: []
31612 36568 }, {
31613 36569 id: 'landmark-main-is-top-level',
-1 36570 impact: 'moderate',
31614 36571 selector: 'main:not([role]), [role=main]',
31615 36572 tags: [ 'cat.semantics', 'best-practice' ],
31616 36573 all: [],
@@ -31618,32 +36575,35 @@ module.exports = {
31618 36575 none: []
31619 36576 }, {
31620 36577 id: 'landmark-no-duplicate-banner',
-1 36578 impact: 'moderate',
31621 36579 selector: 'header:not([role]), [role=banner]',
31622 36580 tags: [ 'cat.semantics', 'best-practice' ],
31623 36581 all: [],
31624 36582 any: [ {
31625 36583 options: {
31626 36584 selector: 'header:not([role]), [role=banner]',
31627 -1 nativeScopeFilter: 'article, aside, main, nav, section'
-1 36585 role: 'banner'
31628 36586 },
31629 36587 id: 'page-no-duplicate-banner'
31630 36588 } ],
31631 36589 none: []
31632 36590 }, {
31633 36591 id: 'landmark-no-duplicate-contentinfo',
-1 36592 impact: 'moderate',
31634 36593 selector: 'footer:not([role]), [role=contentinfo]',
31635 36594 tags: [ 'cat.semantics', 'best-practice' ],
31636 36595 all: [],
31637 36596 any: [ {
31638 36597 options: {
31639 36598 selector: 'footer:not([role]), [role=contentinfo]',
31640 -1 nativeScopeFilter: 'article, aside, main, nav, section'
-1 36599 role: 'contentinfo'
31641 36600 },
31642 36601 id: 'page-no-duplicate-contentinfo'
31643 36602 } ],
31644 36603 none: []
31645 36604 }, {
31646 36605 id: 'landmark-no-duplicate-main',
-1 36606 impact: 'moderate',
31647 36607 selector: 'main:not([role]), [role=main]',
31648 36608 tags: [ 'cat.semantics', 'best-practice' ],
31649 36609 all: [],
@@ -31656,6 +36616,7 @@ module.exports = {
31656 36616 none: []
31657 36617 }, {
31658 36618 id: 'landmark-one-main',
-1 36619 impact: 'moderate',
31659 36620 selector: 'html',
31660 36621 tags: [ 'cat.semantics', 'best-practice' ],
31661 36622 all: [ {
@@ -31669,6 +36630,7 @@ module.exports = {
31669 36630 none: []
31670 36631 }, {
31671 36632 id: 'landmark-unique',
-1 36633 impact: 'moderate',
31672 36634 selector: '[role=banner], [role=complementary], [role=contentinfo], [role=main], [role=navigation], [role=region], [role=search], [role=form], form, footer, header, aside, main, nav, section',
31673 36635 tags: [ 'cat.semantics', 'best-practice' ],
31674 36636 matches: 'landmark-unique-matches',
@@ -31677,22 +36639,25 @@ module.exports = {
31677 36639 none: []
31678 36640 }, {
31679 36641 id: 'link-in-text-block',
-1 36642 impact: 'serious',
31680 36643 selector: 'a[href], [role=link]',
31681 36644 matches: 'link-in-text-block-matches',
31682 36645 excludeHidden: false,
31683 -1 tags: [ 'cat.color', 'wcag2a', 'wcag141' ],
-1 36646 tags: [ 'cat.color', 'wcag2a', 'wcag141', 'TTv5', 'TT13.a', 'EN-301-549', 'EN-9.1.4.1' ],
31684 36647 all: [],
31685 36648 any: [ {
31686 36649 options: {
31687 -1 requiredContrastRatio: 3
-1 36650 requiredContrastRatio: 3,
-1 36651 allowSameColor: true
31688 36652 },
31689 36653 id: 'link-in-text-block'
31690 36654 }, 'link-in-text-block-style' ],
31691 36655 none: []
31692 36656 }, {
31693 36657 id: 'link-name',
-1 36658 impact: 'serious',
31694 36659 selector: 'a[href]',
31695 -1 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag412', 'wcag244', 'section508', 'section508.22.a', 'ACT' ],
-1 36660 tags: [ 'cat.name-role-value', 'wcag2a', 'wcag244', 'wcag412', 'section508', 'section508.22.a', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.2.4.4', 'EN-9.4.1.2', 'ACT' ],
31696 36661 actIds: [ 'c487ae' ],
31697 36662 all: [],
31698 36663 any: [ 'has-visible-text', 'aria-label', 'aria-labelledby', {
@@ -31704,9 +36669,10 @@ module.exports = {
31704 36669 none: [ 'focusable-no-name' ]
31705 36670 }, {
31706 36671 id: 'list',
-1 36672 impact: 'serious',
31707 36673 selector: 'ul, ol',
31708 36674 matches: 'no-role-matches',
31709 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
-1 36675 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
31710 36676 all: [],
31711 36677 any: [],
31712 36678 none: [ {
@@ -31718,22 +36684,25 @@ module.exports = {
31718 36684 } ]
31719 36685 }, {
31720 36686 id: 'listitem',
-1 36687 impact: 'serious',
31721 36688 selector: 'li',
31722 36689 matches: 'no-role-matches',
31723 -1 tags: [ 'cat.structure', 'wcag2a', 'wcag131' ],
-1 36690 tags: [ 'cat.structure', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1' ],
31724 36691 all: [],
31725 36692 any: [ 'listitem' ],
31726 36693 none: []
31727 36694 }, {
31728 36695 id: 'marquee',
-1 36696 impact: 'serious',
31729 36697 selector: 'marquee',
31730 36698 excludeHidden: false,
31731 -1 tags: [ 'cat.parsing', 'wcag2a', 'wcag222' ],
-1 36699 tags: [ 'cat.parsing', 'wcag2a', 'wcag222', 'TTv5', 'TT2.b', 'EN-301-549', 'EN-9.2.2.2' ],
31732 36700 all: [],
31733 36701 any: [],
31734 36702 none: [ 'is-on-screen' ]
31735 36703 }, {
31736 36704 id: 'meta-refresh-no-exceptions',
-1 36705 impact: 'minor',
31737 36706 selector: 'meta[http-equiv="refresh"][content]',
31738 36707 excludeHidden: false,
31739 36708 enabled: false,
@@ -31750,9 +36719,10 @@ module.exports = {
31750 36719 none: []
31751 36720 }, {
31752 36721 id: 'meta-refresh',
-1 36722 impact: 'critical',
31753 36723 selector: 'meta[http-equiv="refresh"][content]',
31754 36724 excludeHidden: false,
31755 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221' ],
-1 36725 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag221', 'TTv5', 'TT8.a', 'EN-301-549', 'EN-9.2.2.1' ],
31756 36726 actIds: [ 'bc659a', 'bisz58' ],
31757 36727 all: [],
31758 36728 any: [ {
@@ -31765,6 +36735,7 @@ module.exports = {
31765 36735 none: []
31766 36736 }, {
31767 36737 id: 'meta-viewport-large',
-1 36738 impact: 'minor',
31768 36739 selector: 'meta[name="viewport"]',
31769 36740 matches: 'is-initiator-matches',
31770 36741 excludeHidden: false,
@@ -31780,10 +36751,11 @@ module.exports = {
31780 36751 none: []
31781 36752 }, {
31782 36753 id: 'meta-viewport',
-1 36754 impact: 'critical',
31783 36755 selector: 'meta[name="viewport"]',
31784 36756 matches: 'is-initiator-matches',
31785 36757 excludeHidden: false,
31786 -1 tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'ACT' ],
-1 36758 tags: [ 'cat.sensory-and-visual-cues', 'wcag2aa', 'wcag144', 'EN-301-549', 'EN-9.1.4.4', 'ACT' ],
31787 36759 actIds: [ 'b4f0c3' ],
31788 36760 all: [],
31789 36761 any: [ {
@@ -31795,19 +36767,21 @@ module.exports = {
31795 36767 none: []
31796 36768 }, {
31797 36769 id: 'nested-interactive',
-1 36770 impact: 'serious',
31798 36771 matches: 'nested-interactive-matches',
31799 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag412' ],
-1 36772 tags: [ 'cat.keyboard', 'wcag2a', 'wcag412', 'TTv5', 'TT6.a', 'EN-301-549', 'EN-9.4.1.2' ],
31800 36773 actIds: [ '307n5z' ],
31801 36774 all: [],
31802 36775 any: [ 'no-focusable-content' ],
31803 36776 none: []
31804 36777 }, {
31805 36778 id: 'no-autoplay-audio',
-1 36779 impact: 'moderate',
31806 36780 excludeHidden: false,
31807 36781 selector: 'audio[autoplay], video[autoplay]',
31808 36782 matches: 'no-autoplay-audio-matches',
31809 36783 reviewOnFail: true,
31810 -1 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'ACT' ],
-1 36784 tags: [ 'cat.time-and-media', 'wcag2a', 'wcag142', 'TTv5', 'TT2.a', 'EN-301-549', 'EN-9.1.4.2', 'ACT' ],
31811 36785 actIds: [ '80f0bf' ],
31812 36786 preload: true,
31813 36787 all: [ {
@@ -31820,9 +36794,10 @@ module.exports = {
31820 36794 none: []
31821 36795 }, {
31822 36796 id: 'object-alt',
-1 36797 impact: 'serious',
31823 36798 selector: 'object[data]',
31824 36799 matches: 'object-is-loaded-matches',
31825 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a' ],
-1 36800 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'EN-301-549', 'EN-9.1.1.1' ],
31826 36801 actIds: [ '8fc3b6' ],
31827 36802 all: [],
31828 36803 any: [ 'aria-label', 'aria-labelledby', {
@@ -31834,9 +36809,10 @@ module.exports = {
31834 36809 none: []
31835 36810 }, {
31836 36811 id: 'p-as-heading',
-1 36812 impact: 'serious',
31837 36813 selector: 'p',
31838 36814 matches: 'p-as-heading-matches',
31839 -1 tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'experimental' ],
-1 36815 tags: [ 'cat.semantics', 'wcag2a', 'wcag131', 'EN-301-549', 'EN-9.1.3.1', 'experimental' ],
31840 36816 all: [ {
31841 36817 options: {
31842 36818 margins: [ {
@@ -31860,6 +36836,7 @@ module.exports = {
31860 36836 none: []
31861 36837 }, {
31862 36838 id: 'page-has-heading-one',
-1 36839 impact: 'moderate',
31863 36840 selector: 'html',
31864 36841 tags: [ 'cat.semantics', 'best-practice' ],
31865 36842 all: [ {
@@ -31873,6 +36850,7 @@ module.exports = {
31873 36850 none: []
31874 36851 }, {
31875 36852 id: 'presentation-role-conflict',
-1 36853 impact: 'minor',
31876 36854 selector: 'img[alt=\'\'], [role="none"], [role="presentation"]',
31877 36855 matches: 'has-implicit-chromium-role-matches',
31878 36856 tags: [ 'cat.aria', 'best-practice', 'ACT' ],
@@ -31882,6 +36860,7 @@ module.exports = {
31882 36860 none: [ 'is-element-focusable', 'has-global-aria-attribute' ]
31883 36861 }, {
31884 36862 id: 'region',
-1 36863 impact: 'moderate',
31885 36864 selector: 'body *',
31886 36865 tags: [ 'cat.keyboard', 'best-practice' ],
31887 36866 all: [],
@@ -31894,9 +36873,10 @@ module.exports = {
31894 36873 none: []
31895 36874 }, {
31896 36875 id: 'role-img-alt',
-1 36876 impact: 'serious',
31897 36877 selector: '[role=\'img\']:not(img, area, input, object)',
31898 36878 matches: 'html-namespace-matches',
31899 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
-1 36879 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
31900 36880 actIds: [ '23a2a8' ],
31901 36881 all: [],
31902 36882 any: [ 'aria-label', 'aria-labelledby', {
@@ -31908,6 +36888,7 @@ module.exports = {
31908 36888 none: []
31909 36889 }, {
31910 36890 id: 'scope-attr-valid',
-1 36891 impact: 'moderate',
31911 36892 selector: 'td[scope], th[scope]',
31912 36893 tags: [ 'cat.tables', 'best-practice' ],
31913 36894 all: [ 'html5-scope', {
@@ -31920,16 +36901,19 @@ module.exports = {
31920 36901 none: []
31921 36902 }, {
31922 36903 id: 'scrollable-region-focusable',
-1 36904 impact: 'serious',
-1 36905 selector: '*:not(select,textarea)',
31923 36906 matches: 'scrollable-region-focusable-matches',
31924 -1 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211' ],
-1 36907 tags: [ 'cat.keyboard', 'wcag2a', 'wcag211', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
31925 36908 actIds: [ '0ssw9k' ],
31926 36909 all: [],
31927 36910 any: [ 'focusable-content', 'focusable-element' ],
31928 36911 none: []
31929 36912 }, {
31930 36913 id: 'select-name',
-1 36914 impact: 'critical',
31931 36915 selector: 'select',
31932 -1 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'ACT' ],
-1 36916 tags: [ 'cat.forms', 'wcag2a', 'wcag412', 'section508', 'section508.22.n', 'TTv5', 'TT5.c', 'EN-301-549', 'EN-9.4.1.2', 'ACT' ],
31933 36917 actIds: [ 'e086e5' ],
31934 36918 all: [],
31935 36919 any: [ 'implicit-label', 'explicit-label', 'aria-label', 'aria-labelledby', {
@@ -31938,16 +36922,18 @@ module.exports = {
31938 36922 },
31939 36923 id: 'non-empty-title'
31940 36924 }, 'presentational-role' ],
31941 -1 none: [ 'help-same-as-label', 'hidden-explicit-label' ]
-1 36925 none: [ 'hidden-explicit-label' ]
31942 36926 }, {
31943 36927 id: 'server-side-image-map',
-1 36928 impact: 'minor',
31944 36929 selector: 'img[ismap]',
31945 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f' ],
-1 36930 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag211', 'section508', 'section508.22.f', 'TTv5', 'TT4.a', 'EN-301-549', 'EN-9.2.1.1' ],
31946 36931 all: [],
31947 36932 any: [],
31948 36933 none: [ 'exists' ]
31949 36934 }, {
31950 36935 id: 'skip-link',
-1 36936 impact: 'moderate',
31951 36937 selector: 'a[href^="#"], a[href^="/#"]',
31952 36938 matches: 'skip-link-matches',
31953 36939 tags: [ 'cat.keyboard', 'best-practice' ],
@@ -31956,9 +36942,10 @@ module.exports = {
31956 36942 none: []
31957 36943 }, {
31958 36944 id: 'svg-img-alt',
-1 36945 impact: 'serious',
31959 36946 selector: '[role="img"], [role="graphics-symbol"], svg[role="graphics-document"]',
31960 36947 matches: 'svg-namespace-matches',
31961 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'ACT' ],
-1 36948 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag111', 'section508', 'section508.22.a', 'TTv5', 'TT7.a', 'EN-301-549', 'EN-9.1.1.1', 'ACT' ],
31962 36949 actIds: [ '7d6734' ],
31963 36950 all: [],
31964 36951 any: [ 'svg-non-empty-title', 'aria-label', 'aria-labelledby', {
@@ -31970,6 +36957,7 @@ module.exports = {
31970 36957 none: []
31971 36958 }, {
31972 36959 id: 'tabindex',
-1 36960 impact: 'serious',
31973 36961 selector: '[tabindex]',
31974 36962 tags: [ 'cat.keyboard', 'best-practice' ],
31975 36963 all: [],
@@ -31977,6 +36965,7 @@ module.exports = {
31977 36965 none: []
31978 36966 }, {
31979 36967 id: 'table-duplicate-name',
-1 36968 impact: 'minor',
31980 36969 selector: 'table',
31981 36970 tags: [ 'cat.tables', 'best-practice' ],
31982 36971 all: [],
@@ -31984,18 +36973,20 @@ module.exports = {
31984 36973 none: [ 'same-caption-summary' ]
31985 36974 }, {
31986 36975 id: 'table-fake-caption',
-1 36976 impact: 'serious',
31987 36977 selector: 'table',
31988 36978 matches: 'data-table-matches',
31989 -1 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
-1 36979 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'EN-301-549', 'EN-9.1.3.1' ],
31990 36980 all: [ 'caption-faked' ],
31991 36981 any: [],
31992 36982 none: []
31993 36983 }, {
31994 36984 id: 'target-size',
-1 36985 impact: 'serious',
31995 36986 selector: '*',
31996 36987 enabled: false,
31997 36988 matches: 'widget-not-inline-matches',
31998 -1 tags: [ 'wcag22aa', 'wcag258', 'cat.sensory-and-visual-cues' ],
-1 36989 tags: [ 'cat.sensory-and-visual-cues', 'wcag22aa', 'wcag258' ],
31999 36990 all: [],
32000 36991 any: [ {
32001 36992 options: {
@@ -32011,34 +37002,38 @@ module.exports = {
32011 37002 none: []
32012 37003 }, {
32013 37004 id: 'td-has-header',
-1 37005 impact: 'critical',
32014 37006 selector: 'table',
32015 37007 matches: 'data-table-large-matches',
32016 -1 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
-1 37008 tags: [ 'cat.tables', 'experimental', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
32017 37009 all: [ 'td-has-header' ],
32018 37010 any: [],
32019 37011 none: []
32020 37012 }, {
32021 37013 id: 'td-headers-attr',
-1 37014 impact: 'serious',
32022 37015 selector: 'table',
32023 37016 matches: 'table-or-grid-role-matches',
32024 -1 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
-1 37017 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
32025 37018 actIds: [ 'a25f45' ],
32026 37019 all: [ 'td-headers-attr' ],
32027 37020 any: [],
32028 37021 none: []
32029 37022 }, {
32030 37023 id: 'th-has-data-cells',
-1 37024 impact: 'serious',
32031 37025 selector: 'table',
32032 37026 matches: 'data-table-matches',
32033 -1 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g' ],
-1 37027 tags: [ 'cat.tables', 'wcag2a', 'wcag131', 'section508', 'section508.22.g', 'TTv5', 'TT14.b', 'EN-301-549', 'EN-9.1.3.1' ],
32034 37028 actIds: [ 'd0f69e' ],
32035 37029 all: [ 'th-has-data-cells' ],
32036 37030 any: [],
32037 37031 none: []
32038 37032 }, {
32039 37033 id: 'valid-lang',
-1 37034 impact: 'serious',
32040 37035 selector: '[lang]:not(html), [xml\\:lang]:not(html)',
32041 -1 tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'ACT' ],
-1 37036 tags: [ 'cat.language', 'wcag2aa', 'wcag312', 'TTv5', 'TT11.b', 'EN-301-549', 'EN-9.3.1.2', 'ACT' ],
32042 37037 actIds: [ 'de46e4' ],
32043 37038 all: [],
32044 37039 any: [],
@@ -32050,8 +37045,9 @@ module.exports = {
32050 37045 } ]
32051 37046 }, {
32052 37047 id: 'video-caption',
-1 37048 impact: 'critical',
32053 37049 selector: 'video',
32054 -1 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a' ],
-1 37050 tags: [ 'cat.text-alternatives', 'wcag2a', 'wcag122', 'section508', 'section508.22.a', 'TTv5', 'TT17.a', 'EN-301-549', 'EN-9.1.2.2' ],
32055 37051 actIds: [ 'eac66b' ],
32056 37052 all: [],
32057 37053 any: [],
@@ -32077,6 +37073,12 @@ module.exports = {
32077 37073 id: 'aria-busy',
32078 37074 evaluate: 'aria-busy-evaluate'
32079 37075 }, {
-1 37076 id: 'aria-conditional-attr',
-1 37077 evaluate: 'aria-conditional-attr-evaluate',
-1 37078 options: {
-1 37079 invalidTableRowAttrs: [ 'aria-posinset', 'aria-setsize', 'aria-expanded', 'aria-level' ]
-1 37080 }
-1 37081 }, {
32080 37082 id: 'aria-errormessage',
32081 37083 evaluate: 'aria-errormessage-evaluate'
32082 37084 }, {
@@ -32124,6 +37126,12 @@ module.exports = {
32124 37126 evaluate: 'aria-valid-attr-evaluate',
32125 37127 options: []
32126 37128 }, {
-1 37129 id: 'braille-label-equivalent',
-1 37130 evaluate: 'braille-label-equivalent-evaluate'
-1 37131 }, {
-1 37132 id: 'braille-roledescription-equivalent',
-1 37133 evaluate: 'braille-roledescription-equivalent-evaluate'
-1 37134 }, {
32127 37135 id: 'deprecatedrole',
32128 37136 evaluate: 'deprecatedrole-evaluate'
32129 37137 }, {
@@ -32207,7 +37215,8 @@ module.exports = {
32207 37215 id: 'link-in-text-block',
32208 37216 evaluate: 'link-in-text-block-evaluate',
32209 37217 options: {
32210 -1 requiredContrastRatio: 3
-1 37218 requiredContrastRatio: 3,
-1 37219 allowSameColor: true
32211 37220 }
32212 37221 }, {
32213 37222 id: 'autocomplete-appropriate',
@@ -32272,7 +37281,7 @@ module.exports = {
32272 37281 after: 'page-no-duplicate-after',
32273 37282 options: {
32274 37283 selector: 'header:not([role]), [role=banner]',
32275 -1 nativeScopeFilter: 'article, aside, main, nav, section'
-1 37284 role: 'banner'
32276 37285 }
32277 37286 }, {
32278 37287 id: 'page-no-duplicate-contentinfo',
@@ -32280,7 +37289,7 @@ module.exports = {
32280 37289 after: 'page-no-duplicate-after',
32281 37290 options: {
32282 37291 selector: 'footer:not([role]), [role=contentinfo]',
32283 -1 nativeScopeFilter: 'article, aside, main, nav, section'
-1 37292 role: 'contentinfo'
32284 37293 }
32285 37294 }, {
32286 37295 id: 'page-no-duplicate-main',
@@ -32306,8 +37315,7 @@ module.exports = {
32306 37315 evaluate: 'explicit-evaluate'
32307 37316 }, {
32308 37317 id: 'help-same-as-label',
32309 -1 evaluate: 'help-same-as-label-evaluate',
32310 -1 enabled: false
-1 37318 evaluate: 'help-same-as-label-evaluate'
32311 37319 }, {
32312 37320 id: 'hidden-explicit-label',
32313 37321 evaluate: 'hidden-explicit-label-evaluate'
@@ -32646,9 +37654,9 @@ exports.__esModule = true;
32646 37654 exports.computeAccessibleDescription = computeAccessibleDescription;
32647 37655 var _accessibleNameAndDescription = require("./accessible-name-and-description");
32648 37656 var _util = require("./util");
32649 -1 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
32650 -1 function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32651 -1 function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
-1 37657 function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
-1 37658 function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
-1 37659 function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
32652 37660 function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
32653 37661 function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
32654 37662 function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -32667,7 +37675,15 @@ function computeAccessibleDescription(root) {
32667 37675
32668 37676 // TODO: Technically we need to make sure that node wasn't used for the accessible name
32669 37677 // This causes `description_1.0_combobox-focusable-manual` to fail
32670 -1 //
-1 37678
-1 37679 // https://w3c.github.io/aria/#aria-description
-1 37680 // mentions that aria-description should only be calculated if aria-describedby didn't provide
-1 37681 // a description
-1 37682 if (description === "") {
-1 37683 var ariaDescription = root.getAttribute("aria-description");
-1 37684 description = ariaDescription === null ? "" : ariaDescription;
-1 37685 }
-1 37686
32671 37687 // https://www.w3.org/TR/html-aam-1.0/#accessible-name-and-description-computation
32672 37688 // says for so many elements to use the `title` that we assume all elements are considered
32673 37689 if (description === "") {
@@ -32677,7 +37693,7 @@ function computeAccessibleDescription(root) {
32677 37693 return description;
32678 37694 }
32679 37695
32680 -1 },{"./accessible-name-and-description":17,"./util":24}],17:[function(require,module,exports){
-1 37696 },{"./accessible-name-and-description":17,"./util":25}],17:[function(require,module,exports){
32681 37697 "use strict";
32682 37698
32683 37699 exports.__esModule = true;
@@ -32691,6 +37707,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
32691 37707 */
32692 37708
32693 37709 /**
-1 37710 * A string of characters where all carriage returns, newlines, tabs, and form-feeds are replaced with a single space, and multiple spaces are reduced to a single space. The string contains only character data; it does not contain any markup.
-1 37711 */
-1 37712
-1 37713 /**
-1 37714 * interface for an options-bag where `window.getComputedStyle` can be mocked
-1 37715 */
-1 37716
-1 37717 /**
32694 37718 *
32695 37719 * @param {string} string -
32696 37720 * @returns {FlatString} -
@@ -32756,7 +37780,7 @@ function querySelectedOptions(listbox) {
32756 37780 return querySelectorAllSubtree(listbox, '[aria-selected="true"]');
32757 37781 }
32758 37782 function isMarkedPresentational(node) {
32759 -1 return (0, _util.hasAnyConcreteRoles)(node, ["none", "presentation"]);
-1 37783 return (0, _util.hasAnyConcreteRoles)(node, _util.presentationRoles);
32760 37784 }
32761 37785
32762 37786 /**
@@ -33089,13 +38113,18 @@ function computeTextAlternative(root) {
33089 38113 }
33090 38114
33091 38115 // 2B
33092 -1 var labelElements = (0, _util.queryIdRefs)(current, "aria-labelledby");
-1 38116 var labelAttributeNode = (0, _util.isElement)(current) ? current.getAttributeNode("aria-labelledby") : null;
-1 38117 // TODO: Do we generally need to block query IdRefs of attributes we have already consulted?
-1 38118 var labelElements = labelAttributeNode !== null && !consultedNodes.has(labelAttributeNode) ? (0, _util.queryIdRefs)(current, "aria-labelledby") : [];
33093 38119 if (compute === "name" && !context.isReferenced && labelElements.length > 0) {
-1 38120 // eslint-disable-next-line @typescript-eslint/no-non-null-assertion -- Can't be null here otherwise labelElements would be empty
-1 38121 consultedNodes.add(labelAttributeNode);
33094 38122 return labelElements.map(function (element) {
-1 38123 // TODO: Chrome will consider repeated values i.e. use a node multiple times while we'll bail out in computeTextAlternative.
33095 38124 return computeTextAlternative(element, {
33096 38125 isEmbeddedInLabel: context.isEmbeddedInLabel,
33097 38126 isReferenced: true,
33098 -1 // thais isn't recursion as specified, otherwise we would skip
-1 38127 // this isn't recursion as specified, otherwise we would skip
33099 38128 // `aria-label` in
33100 38129 // <input id="myself" aria-label="foo" aria-labelledby="myself"
33101 38130 recursion: false
@@ -33207,7 +38236,7 @@ function computeTextAlternative(root) {
33207 38236 }));
33208 38237 }
33209 38238
33210 -1 },{"./polyfills/SetLike":22,"./polyfills/array.from":23,"./util":24}],18:[function(require,module,exports){
-1 38239 },{"./polyfills/SetLike":23,"./polyfills/array.from":24,"./util":25}],18:[function(require,module,exports){
33211 38240 "use strict";
33212 38241
33213 38242 exports.__esModule = true;
@@ -33218,7 +38247,7 @@ var _util = require("./util");
33218 38247 * https://w3c.github.io/aria/#namefromprohibited
33219 38248 */
33220 38249 function prohibitsNaming(node) {
33221 -1 return (0, _util.hasAnyConcreteRoles)(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
-1 38250 return (0, _util.hasAnyConcreteRoles)(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
33222 38251 }
33223 38252
33224 38253 /**
@@ -33235,12 +38264,13 @@ function computeAccessibleName(root) {
33235 38264 return (0, _accessibleNameAndDescription.computeTextAlternative)(root, options);
33236 38265 }
33237 38266
33238 -1 },{"./accessible-name-and-description":17,"./util":24}],19:[function(require,module,exports){
-1 38267 },{"./accessible-name-and-description":17,"./util":25}],19:[function(require,module,exports){
33239 38268 "use strict";
33240 38269
33241 38270 exports.__esModule = true;
33242 38271 exports.default = getRole;
33243 38272 exports.getLocalName = getLocalName;
-1 38273 var _util = require("./util");
33244 38274 // https://w3c.github.io/html-aria/#document-conformance-requirements-for-use-of-aria-attributes-in-html
33245 38275
33246 38276 /**
@@ -33311,6 +38341,7 @@ var prohibitedAttributes = {
33311 38341 emphasis: new Set(["aria-label", "aria-labelledby"]),
33312 38342 generic: new Set(["aria-label", "aria-labelledby", "aria-roledescription"]),
33313 38343 insertion: new Set(["aria-label", "aria-labelledby"]),
-1 38344 none: new Set(["aria-label", "aria-labelledby"]),
33314 38345 paragraph: new Set(["aria-label", "aria-labelledby"]),
33315 38346 presentation: new Set(["aria-label", "aria-labelledby"]),
33316 38347 strong: new Set(["aria-label", "aria-labelledby"]),
@@ -33326,7 +38357,7 @@ var prohibitedAttributes = {
33326 38357 function hasGlobalAriaAttributes(element, role) {
33327 38358 // https://rawgit.com/w3c/aria/stable/#global_states
33328 38359 // commented attributes are deprecated
33329 -1 return ["aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-describedby", "aria-details",
-1 38360 return ["aria-atomic", "aria-busy", "aria-controls", "aria-current", "aria-description", "aria-describedby", "aria-details",
33330 38361 // "disabled",
33331 38362 "aria-dropeffect",
33332 38363 // "errormessage",
@@ -33345,9 +38376,9 @@ function ignorePresentationalRole(element, implicitRole) {
33345 38376 }
33346 38377 function getRole(element) {
33347 38378 var explicitRole = getExplicitRole(element);
33348 -1 if (explicitRole === null || explicitRole === "presentation") {
-1 38379 if (explicitRole === null || _util.presentationRoles.indexOf(explicitRole) !== -1) {
33349 38380 var implicitRole = getImplicitRole(element);
33350 -1 if (explicitRole !== "presentation" || ignorePresentationalRole(element, implicitRole || "")) {
-1 38381 if (_util.presentationRoles.indexOf(explicitRole || "") === -1 || ignorePresentationalRole(element, implicitRole || "")) {
33351 38382 return implicitRole;
33352 38383 }
33353 38384 }
@@ -33426,16 +38457,17 @@ function getExplicitRole(element) {
33426 38457 return null;
33427 38458 }
33428 38459
33429 -1 },{}],20:[function(require,module,exports){
-1 38460 },{"./util":25}],20:[function(require,module,exports){
33430 38461 "use strict";
33431 38462
33432 38463 exports.__esModule = true;
33433 38464 var _exportNames = {
33434 38465 computeAccessibleDescription: true,
33435 38466 computeAccessibleName: true,
33436 -1 getRole: true
-1 38467 getRole: true,
-1 38468 isDisabled: true
33437 38469 };
33438 -1 exports.getRole = exports.computeAccessibleName = exports.computeAccessibleDescription = void 0;
-1 38470 exports.isDisabled = exports.getRole = exports.computeAccessibleName = exports.computeAccessibleDescription = void 0;
33439 38471 var _accessibleDescription = require("./accessible-description");
33440 38472 exports.computeAccessibleDescription = _accessibleDescription.computeAccessibleDescription;
33441 38473 var _accessibleName = require("./accessible-name");
@@ -33449,9 +38481,32 @@ Object.keys(_isInaccessible).forEach(function (key) {
33449 38481 if (key in exports && exports[key] === _isInaccessible[key]) return;
33450 38482 exports[key] = _isInaccessible[key];
33451 38483 });
-1 38484 var _isDisabled = require("./is-disabled");
-1 38485 exports.isDisabled = _isDisabled.isDisabled;
33452 38486 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33453 38487
33454 -1 },{"./accessible-description":16,"./accessible-name":18,"./getRole":19,"./is-inaccessible":21}],21:[function(require,module,exports){
-1 38488 },{"./accessible-description":16,"./accessible-name":18,"./getRole":19,"./is-disabled":21,"./is-inaccessible":22}],21:[function(require,module,exports){
-1 38489 "use strict";
-1 38490
-1 38491 exports.__esModule = true;
-1 38492 exports.isDisabled = isDisabled;
-1 38493 var _getRole = require("./getRole");
-1 38494 var elementsSupportingDisabledAttribute = new Set(["button", "fieldset", "input", "optgroup", "option", "select", "textarea"]);
-1 38495
-1 38496 /**
-1 38497 * Check if an element is disabled
-1 38498 * https://www.w3.org/TR/html-aam-1.0/#html-attribute-state-and-property-mappings
-1 38499 * https://www.w3.org/TR/wai-aria-1.1/#aria-disabled
-1 38500 *
-1 38501 * @param element
-1 38502 * @returns {boolean} true if disabled, otherwise false
-1 38503 */
-1 38504 function isDisabled(element) {
-1 38505 var localName = (0, _getRole.getLocalName)(element);
-1 38506 return elementsSupportingDisabledAttribute.has(localName) && element.hasAttribute("disabled") ? true : element.getAttribute("aria-disabled") === "true";
-1 38507 }
-1 38508
-1 38509 },{"./getRole":19}],22:[function(require,module,exports){
33455 38510 "use strict";
33456 38511
33457 38512 exports.__esModule = true;
@@ -33520,12 +38575,12 @@ function isSubtreeInaccessible(element) {
33520 38575 return false;
33521 38576 }
33522 38577
33523 -1 },{}],22:[function(require,module,exports){
-1 38578 },{}],23:[function(require,module,exports){
33524 38579 "use strict";
33525 38580
33526 38581 exports.__esModule = true;
33527 38582 exports.default = void 0;
33528 -1 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
-1 38583 function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
33529 38584 function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
33530 38585 function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
33531 38586 function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -33586,7 +38641,7 @@ var SetLike = /*#__PURE__*/function () {
33586 38641 var _default = typeof Set === "undefined" ? Set : SetLike;
33587 38642 exports.default = _default;
33588 38643
33589 -1 },{}],23:[function(require,module,exports){
-1 38644 },{}],24:[function(require,module,exports){
33590 38645 "use strict";
33591 38646
33592 38647 exports.__esModule = true;
@@ -33678,10 +38733,10 @@ function arrayFrom(arrayLike, mapFn) {
33678 38733 return A;
33679 38734 }
33680 38735
33681 -1 },{}],24:[function(require,module,exports){
-1 38736 },{}],25:[function(require,module,exports){
33682 38737 "use strict";
33683 38738
33684 -1 function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
-1 38739 function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
33685 38740 exports.__esModule = true;
33686 38741 exports.hasAnyConcreteRoles = hasAnyConcreteRoles;
33687 38742 exports.isElement = isElement;
@@ -33697,12 +38752,15 @@ exports.isHTMLTextAreaElement = isHTMLTextAreaElement;
33697 38752 exports.isSVGElement = isSVGElement;
33698 38753 exports.isSVGSVGElement = isSVGSVGElement;
33699 38754 exports.isSVGTitleElement = isSVGTitleElement;
-1 38755 exports.presentationRoles = void 0;
33700 38756 exports.queryIdRefs = queryIdRefs;
33701 38757 exports.safeWindow = safeWindow;
33702 38758 var _getRole = _interopRequireWildcard(require("./getRole"));
33703 38759 exports.getLocalName = _getRole.getLocalName;
33704 38760 function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
33705 38761 function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
-1 38762 var presentationRoles = ["presentation", "none"];
-1 38763 exports.presentationRoles = presentationRoles;
33706 38764 function isElement(node) {
33707 38765 return node !== null && node.nodeType === node.ELEMENT_NODE;
33708 38766 }
@@ -33782,7 +38840,7 @@ function hasAnyConcreteRoles(node, roles) {
33782 38840 return false;
33783 38841 }
33784 38842
33785 -1 },{"./getRole":19}],25:[function(require,module,exports){
-1 38843 },{"./getRole":19}],26:[function(require,module,exports){
33786 38844 /*@license
33787 38845 CalcNames: The AccName Computation Prototype, compute the Name and Description property values for a DOM node
33788 38846 Returns an object with 'name' and 'desc' properties.
@@ -35476,7 +40534,7 @@ Plus roles extended for the Role Parity project.
35476 40534 }
35477 40535 })();
35478 40536
35479 -1 },{}],26:[function(require,module,exports){
-1 40537 },{}],27:[function(require,module,exports){
35480 40538 (function (global){(function (){
35481 40539 global.goog = {
35482 40540 provide: function() {},
@@ -35501,7 +40559,7 @@ require('accessibility-developer-tools/src/js/Properties');
35501 40559 module.exports = global.axs;
35502 40560
35503 40561 }).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
35504 -1 },{"accessibility-developer-tools/src/js/AccessibilityUtils":3,"accessibility-developer-tools/src/js/BrowserUtils":4,"accessibility-developer-tools/src/js/Color":5,"accessibility-developer-tools/src/js/Constants":6,"accessibility-developer-tools/src/js/DOMUtils":7,"accessibility-developer-tools/src/js/Properties":8}],27:[function(require,module,exports){
-1 40562 },{"accessibility-developer-tools/src/js/AccessibilityUtils":3,"accessibility-developer-tools/src/js/BrowserUtils":4,"accessibility-developer-tools/src/js/Color":5,"accessibility-developer-tools/src/js/Constants":6,"accessibility-developer-tools/src/js/DOMUtils":7,"accessibility-developer-tools/src/js/Properties":8}],28:[function(require,module,exports){
35505 40563 var ariaApi = require('aria-api');
35506 40564 var accdc = require('w3c-alternative-text-computation');
35507 40565 var axe = require('axe-core');
@@ -35521,7 +40579,7 @@ var ex = function(fn, args, _this) {
35521 40579 };
35522 40580
35523 40581 var implementations = [{
35524 -1 name: 'aria-api (0.4.6)',
-1 40582 name: 'aria-api (0.5.0)',
35525 40583 url: 'https://github.com/xi/aria-api',
35526 40584 fn: function(el) {
35527 40585 return {
@@ -35535,7 +40593,7 @@ var implementations = [{
35535 40593 url: 'https://github.com/accdc/w3c-alternative-text-computation',
35536 40594 fn: accdc.calcNames,
35537 40595 }, {
35538 -1 name: 'dom-accessibility-api (0.5.15)',
-1 40596 name: 'dom-accessibility-api (0.6.3)',
35539 40597 url: 'https://github.com/eps1lon/dom-accessibility-api/',
35540 40598 fn: function(el) {
35541 40599 return {
@@ -35545,7 +40603,7 @@ var implementations = [{
35545 40603 };
35546 40604 },
35547 40605 }, {
35548 -1 name: 'axe (4.6.2)',
-1 40606 name: 'axe (4.8.3)',
35549 40607 url: 'https://github.com/dequelabs/axe-core',
35550 40608 fn: function(el) {
35551 40609 axe._tree = axe.utils.getFlattenedTree(document.body);
@@ -35629,4 +40687,4 @@ try {
35629 40687 });
35630 40688 }
35631 40689
35632 -1 },{"./axs":26,"aria-api":9,"axe-core":15,"dom-accessibility-api":20,"w3c-alternative-text-computation":25}]},{},[27]);
-1 40690 },{"./axs":27,"aria-api":9,"axe-core":15,"dom-accessibility-api":20,"w3c-alternative-text-computation":26}]},{},[28]);
diff --git a/fuzz.js b/fuzz.js
@@ -291,52 +291,56 @@ module.exports = {
291 291 },{"./lib/atree.js":5,"./lib/name-inst.js":8,"./lib/query.js":9}],5:[function(require,module,exports){
292 292 var attrs = require('./attrs');
293 293
294 -1 var _getOwner = function(node) {
-1 294 var _getOwner = function(node, owners) {
295 295 if (node.nodeType === node.ELEMENT_NODE && node.id) {
296 -1 var owner = document.querySelector('[aria-owns~="' + CSS.escape(node.id) + '"]');
297 -1 if (owner) {
298 -1 return owner;
-1 296 var selector = '[aria-owns~="' + CSS.escape(node.id) + '"]';
-1 297 if (owners) {
-1 298 for (var owner of owners) {
-1 299 if (owner.matches(selector)) {
-1 300 return owner;
-1 301 }
-1 302 }
-1 303 } else {
-1 304 return document.querySelector(selector);
299 305 }
300 306 }
301 307 };
302 308
303 -1 var _getParentNode = function(node) {
304 -1 return _getOwner(node) || node.parentNode;
-1 309 var _getParentNode = function(node, owners) {
-1 310 return _getOwner(node, owners) || node.parentNode;
305 311 };
306 312
307 -1 var detectLoop = function(node) {
308 -1 var seen = [node]
309 -1 while ((node = _getParentNode(node))) {
-1 313 var detectLoop = function(node, owners) {
-1 314 var seen = [node];
-1 315 while ((node = _getParentNode(node, owners))) {
310 316 if (seen.includes(node)) {
311 317 return true;
312 318 }
313 -1 seen.push(node)
-1 319 seen.push(node);
314 320 }
315 321 };
316 322
317 -1 var getOwner = function(node) {
318 -1 if (node.nodeType === node.ELEMENT_NODE && node.id) {
319 -1 var owner = document.querySelector('[aria-owns~="' + CSS.escape(node.id) + '"]');
320 -1 if (owner && !detectLoop(node)) {
321 -1 return owner;
322 -1 }
-1 323 var getOwner = function(node, owners) {
-1 324 var owner = _getOwner(node, owners);
-1 325 if (owner && !detectLoop(node, owners)) {
-1 326 return owner;
323 327 }
324 328 };
325 329
326 -1 var getParentNode = function(node) {
327 -1 return getOwner(node) || node.parentNode;
-1 330 var getParentNode = function(node, owners) {
-1 331 return getOwner(node, owners) || node.parentNode;
328 332 };
329 333
330 334 var isHidden = function(node) {
331 335 return node.nodeType === node.ELEMENT_NODE && attrs.getAttribute(node, 'hidden');
332 336 };
333 337
334 -1 var getChildNodes = function(node) {
-1 338 var getChildNodes = function(node, owners) {
335 339 var childNodes = [];
336 340
337 341 for (var i = 0; i < node.childNodes.length; i++) {
338 342 var child = node.childNodes[i];
339 -1 if (!getOwner(child) && !isHidden(child)) {
-1 343 if (!getOwner(child, owners) && !isHidden(child)) {
340 344 childNodes.push(child);
341 345 }
342 346 }
@@ -346,7 +350,7 @@ var getChildNodes = function(node) {
346 350 for (var i = 0; i < owns.length; i++) {
347 351 var child = document.getElementById(owns[i]);
348 352 // double check with getOwner for consistency
349 -1 if (child && getOwner(child) === node && !isHidden(child)) {
-1 353 if (child && getOwner(child, owners) === node && !isHidden(child)) {
350 354 childNodes.push(child);
351 355 }
352 356 }
@@ -356,10 +360,13 @@ var getChildNodes = function(node) {
356 360 };
357 361
358 362 var walk = function(root, fn) {
359 -1 fn(root);
360 -1 getChildNodes(root).forEach(function(child) {
361 -1 walk(child, fn);
362 -1 });
-1 363 var owners = document.querySelectorAll('[aria-owns]');
-1 364 var queue = [root];
-1 365 while (queue.length) {
-1 366 var item = queue.shift();
-1 367 fn(item);
-1 368 queue = getChildNodes(item, owners).concat(queue);
-1 369 }
363 370 };
364 371
365 372 var searchUp = function(node, test) {
@@ -386,35 +393,34 @@ var constants = require('./constants.js');
386 393 // candidates can be passed for performance optimization
387 394 var getRole = function(el, candidates) {
388 395 if (el.hasAttribute('role')) {
389 -1 return el.getAttribute('role');
390 -1 }
391 -1 for (var role in constants.roles) {
392 -1 var selector = (constants.roles[role].selectors || []).join(',');
393 -1 if (selector && (!candidates || candidates.includes(role)) && el.matches(selector)) {
394 -1 return role;
-1 396 var roles = el.getAttribute('role').toLowerCase().split(/\s+/);
-1 397 if (roles.length > 1 && candidates) {
-1 398 return [roles, candidates];
395 399 }
396 -1 }
397 -1
398 -1 if (!candidates ||
399 -1 candidates.includes('banner') ||
400 -1 candidates.includes('contentinfo')) {
401 -1 if (!el.matches(constants.scoped)) {
402 -1 if (el.matches('header')) {
403 -1 return 'banner';
-1 400 for (var role of roles) {
-1 401 if (!candidates || candidates.includes(role)) {
-1 402 return role;
404 403 }
405 -1 if (el.matches('footer')) {
406 -1 return 'contentinfo';
-1 404 }
-1 405 } else {
-1 406 var roles = candidates ? candidates : Object.keys(constants.roles);
-1 407 for (var role of roles) {
-1 408 var r = constants.roles[role];
-1 409 if (r) {
-1 410 var selector = (r.selectors || []).join(',');
-1 411 if (selector && el.matches(selector)) {
-1 412 return role;
-1 413 }
407 414 }
408 415 }
409 416 }
410 417 };
411 418
412 419 var hasRole = function(el, roles) {
413 -1 var candidates = [].concat.apply([], roles.map(function(role) {
-1 420 var candidates = [].concat.apply([], roles.map(role => {
414 421 return (constants.roles[role] || {}).subRoles || [role];
415 422 }));
416 -1 var actual = getRole(el, candidates);
417 -1 return candidates.includes(actual);
-1 423 return !!getRole(el, candidates);
418 424 };
419 425
420 426 var getAttribute = function(el, key) {
@@ -569,6 +575,9 @@ exports.attributeWeakMapping = {
569 575 'selected': 'selected',
570 576 };
571 577
-1 578 // https://www.w3.org/TR/html/dom.html#sectioning-content-2
-1 579 var scoped = ['article *', 'aside *', 'nav *', 'section *'].join(',');
-1 580
572 581 // https://www.w3.org/TR/html-aam-1.0/#html-element-role-mappings
573 582 // https://www.w3.org/TR/wai-aria/roles
574 583 exports.roles = {
@@ -582,6 +591,12 @@ exports.roles = {
582 591 article: {
583 592 selectors: ['article'],
584 593 },
-1 594 banner: {
-1 595 selectors: [`header:not(main *, ${scoped})`],
-1 596 },
-1 597 blockquote: {
-1 598 selectors: ['blockquote'],
-1 599 },
585 600 button: {
586 601 selectors: [
587 602 'button',
@@ -593,26 +608,32 @@ exports.roles = {
593 608 ],
594 609 nameFromContents: true,
595 610 },
-1 611 caption: {
-1 612 selectors: ['caption', 'figcaption'],
-1 613 },
596 614 cell: {
597 -1 selectors: ['td'],
598 -1 childRoles: ['gridcell', 'rowheader'],
-1 615 selectors: ['td', 'th:not([scope])'],
-1 616 childRoles: ['columnheader', 'gridcell', 'rowheader'],
599 617 nameFromContents: true,
600 618 },
601 619 checkbox: {
602 620 selectors: ['input[type="checkbox"]'],
603 -1 childRoles: ['menuitemcheckbox', 'switch'],
-1 621 childRoles: ['switch'],
604 622 nameFromContents: true,
605 623 defaults: {
606 624 'checked': 'false',
607 625 },
608 626 },
-1 627 code: {
-1 628 selectors: ['code'],
-1 629 },
609 630 columnheader: {
610 631 selectors: ['th[scope="col"]'],
611 632 nameFromContents: true,
612 633 },
613 634 combobox: {
614 635 selectors: [
615 -1 'input:not([type])[list]',
-1 636 'input:not([type])[list]',
616 637 'input[type="email"][list]',
617 638 'input[type="search"][list]',
618 639 'input[type="tel"][list]',
@@ -631,14 +652,25 @@ exports.roles = {
631 652 childRoles: ['button', 'link', 'menuitem'],
632 653 },
633 654 complementary: {
634 -1 selectors: ['aside'],
-1 655 selectors: [
-1 656 `aside:not(${scoped})`,
-1 657 'aside[aria-label]',
-1 658 'aside[aria-labelledby]',
-1 659 'aside[title]',
-1 660 ],
635 661 },
636 662 composite: {
637 663 childRoles: ['grid', 'select', 'spinbutton', 'tablist'],
638 664 },
-1 665 contentinfo: {
-1 666 selectors: [`footer:not(main *, ${scoped})`],
-1 667 },
639 668 definition: {
640 669 selectors: ['dd'],
641 670 },
-1 671 deletion: {
-1 672 selectors: ['del', 's'],
-1 673 },
642 674 dialog: {
643 675 selectors: ['dialog'],
644 676 childRoles: ['alertdialog'],
@@ -655,16 +687,32 @@ exports.roles = {
655 687 'doc-noteref': {
656 688 nameFromContents: true,
657 689 },
-1 690 'doc-pagebreak': {
-1 691 nameFromContents: true,
-1 692 },
-1 693 'doc-subtitle': {
-1 694 nameFromContents: true,
-1 695 },
658 696 document: {
659 -1 selectors: ['body'],
-1 697 selectors: ['html'],
660 698 childRoles: ['article', 'graphics-document'],
661 699 },
-1 700 emphasis: {
-1 701 selectors: ['em'],
-1 702 },
662 703 figure: {
663 704 selectors: ['figure'],
-1 705 childRoles: ['doc-example'],
664 706 },
665 707 form: {
666 708 selectors: ['form[aria-label]', 'form[aria-labelledby]', 'form[title]'],
667 709 },
-1 710 generic: {
-1 711 // too many selectors to list
-1 712 },
-1 713 'graphics-document': {
-1 714 selectors: ['svg'],
-1 715 },
668 716 grid: {
669 717 childRoles: ['treegrid'],
670 718 },
@@ -673,7 +721,14 @@ exports.roles = {
673 721 nameFromContents: true,
674 722 },
675 723 group: {
676 -1 selectors: ['details', 'optgroup'],
-1 724 selectors: [
-1 725 'address',
-1 726 'details',
-1 727 'fieldset',
-1 728 'hgroup',
-1 729 'optgroup',
-1 730 'text',
-1 731 ],
677 732 childRoles: ['row', 'select', 'toolbar', 'graphics-object'],
678 733 },
679 734 heading: {
@@ -688,7 +743,18 @@ exports.roles = {
688 743 childRoles: ['doc-cover'],
689 744 },
690 745 input: {
691 -1 childRoles: ['checkbox', 'option', 'radio', 'slider', 'spinbutton', 'textbox'],
-1 746 childRoles: [
-1 747 'checkbox',
-1 748 'combobox',
-1 749 'option',
-1 750 'radio',
-1 751 'slider',
-1 752 'spinbutton',
-1 753 'textbox',
-1 754 ],
-1 755 },
-1 756 insertion: {
-1 757 selectors: ['ins'],
692 758 },
693 759 landmark: {
694 760 childRoles: [
@@ -719,16 +785,17 @@ exports.roles = {
719 785 ],
720 786 },
721 787 link: {
722 -1 selectors: ['a[href]', 'area[href]', 'link[href]'],
-1 788 selectors: ['a[href]', 'area[href]'],
723 789 childRoles: ['doc-backlink', 'doc-biblioref', 'doc-glossref', 'doc-noteref'],
724 790 nameFromContents: true,
725 791 },
726 792 list: {
727 -1 selectors: ['dl', 'ol', 'ul'],
-1 793 selectors: ['dl', 'ol', 'ul', 'menu'],
728 794 childRoles: ['directory', 'feed'],
729 795 },
730 796 listbox: {
731 797 selectors: [
-1 798 'datalist',
732 799 'select[multiple]',
733 800 'select[size]:not([size="0"]):not([size="1"])',
734 801 ],
@@ -737,7 +804,7 @@ exports.roles = {
737 804 },
738 805 },
739 806 listitem: {
740 -1 selectors: ['dt', 'ul > li', 'ol > li'],
-1 807 selectors: ['li'],
741 808 childRoles: ['doc-biblioentry', 'doc-endnote', 'treeitem'],
742 809 },
743 810 log: {
@@ -751,8 +818,14 @@ exports.roles = {
751 818 math: {
752 819 selectors: ['math'],
753 820 },
-1 821 meter: {
-1 822 selectors: ['meter'],
-1 823 defaults: {
-1 824 'valuemin': 0,
-1 825 'valuemax': 100,
-1 826 },
-1 827 },
754 828 menu: {
755 -1 selectors: ['menu[type="context"]'],
756 829 childRoles: ['menubar'],
757 830 defaults: {
758 831 'orientation': 'vertical',
@@ -764,12 +837,10 @@ exports.roles = {
764 837 },
765 838 },
766 839 menuitem: {
767 -1 selectors: ['menuitem[type="command"]'],
768 840 childRoles: ['menuitemcheckbox'],
769 841 nameFromContents: true,
770 842 },
771 843 menuitemcheckbox: {
772 -1 selectors: ['menuitem[type="checkbox"]'],
773 844 childRoles: ['menuitemradio'],
774 845 nameFromContents: true,
775 846 defaults: {
@@ -777,7 +848,6 @@ exports.roles = {
777 848 },
778 849 },
779 850 menuitemradio: {
780 -1 selectors: ['menuitem[type="radio"]'],
781 851 nameFromContents: true,
782 852 defaults: {
783 853 'checked': 'false',
@@ -798,11 +868,18 @@ exports.roles = {
798 868 'selected': 'false',
799 869 },
800 870 },
-1 871 paragraph: {
-1 872 selectors: ['p'],
-1 873 },
801 874 presentation: {
802 875 selectors: ['img[alt=""]'],
803 876 },
804 877 progressbar: {
805 878 selectors: ['progress'],
-1 879 defaults: {
-1 880 'valuemin': 0,
-1 881 'valuemax': 100,
-1 882 },
806 883 },
807 884 radio: {
808 885 selectors: ['input[type="radio"]'],
@@ -813,7 +890,7 @@ exports.roles = {
813 890 },
814 891 },
815 892 range: {
816 -1 childRoles: ['progressbar', 'scrollbar', 'slider', 'spinbutton'],
-1 893 childRoles: ['meter', 'progressbar', 'scrollbar', 'slider', 'spinbutton'],
817 894 },
818 895 region: {
819 896 selectors: ['section[aria-label]', 'section[aria-labelledby]', 'section[title]'],
@@ -827,7 +904,6 @@ exports.roles = {
827 904 },
828 905 rowgroup: {
829 906 selectors: ['tbody', 'thead', 'tfoot'],
830 -1 nameFromContents: true,
831 907 },
832 908 rowheader: {
833 909 selectors: ['th[scope="row"]'],
@@ -838,29 +914,38 @@ exports.roles = {
838 914 'orientation': 'vertical',
839 915 'valuemin': 0,
840 916 'valuemax': 100,
841 -1 // FIXME: halfway between actual valuemin and valuemax
842 -1 'valuenow': 50,
843 917 },
844 918 },
-1 919 search: {
-1 920 selectors: ['search'],
-1 921 },
845 922 searchbox: {
846 923 selectors: ['input[type="search"]:not([list])'],
847 924 },
848 925 section: {
849 926 childRoles: [
850 927 'alert',
-1 928 'blockquote',
-1 929 'caption',
851 930 'cell',
-1 931 'code',
852 932 'definition',
-1 933 'deletion',
853 934 'doc-abstract',
854 935 'doc-colophon',
855 936 'doc-credit',
856 937 'doc-dedication',
857 938 'doc-epigraph',
858 -1 'doc-example',
859 939 'doc-footnote',
-1 940 'doc-pagefooter',
-1 941 'doc-pageheader',
-1 942 'doc-pullquote',
860 943 'doc-qna',
-1 944 'emphasis',
861 945 'figure',
862 946 'group',
863 947 'img',
-1 948 'insertion',
864 949 'landmark',
865 950 'list',
866 951 'listitem',
@@ -868,10 +953,15 @@ exports.roles = {
868 953 'marquee',
869 954 'math',
870 955 'note',
-1 956 'paragraph',
871 957 'status',
-1 958 'strong',
-1 959 'subscript',
-1 960 'superscript',
872 961 'table',
873 962 'tabpanel',
874 963 'term',
-1 964 'time',
875 965 'tooltip',
876 966 ],
877 967 },
@@ -886,7 +976,7 @@ exports.roles = {
886 976 nameFromContents: true,
887 977 },
888 978 select: {
889 -1 childRoles: ['combobox', 'listbox', 'menu', 'radiogroup', 'tree'],
-1 979 childRoles: ['listbox', 'menu', 'radiogroup', 'tree'],
890 980 },
891 981 separator: {
892 982 // assume not focussable because <hr> is not
@@ -894,6 +984,8 @@ exports.roles = {
894 984 childRoles: ['doc-pagebreak'],
895 985 defaults: {
896 986 'orientation': 'horizontal',
-1 987 'valuemin': 0,
-1 988 'valuemax': 100,
897 989 },
898 990 },
899 991 slider: {
@@ -909,8 +1001,7 @@ exports.roles = {
909 1001 spinbutton: {
910 1002 selectors: ['input[type="number"]'],
911 1003 defaults: {
912 -1 // FIXME: no valuemin/valuemax
913 -1 'valuenow': 0,
-1 1004 // FIXME: no valuemin/valuemax/valuenow
914 1005 },
915 1006 },
916 1007 status: {
@@ -921,18 +1012,29 @@ exports.roles = {
921 1012 'atomic': true,
922 1013 },
923 1014 },
-1 1015 strong: {
-1 1016 selectors: ['strong'],
-1 1017 },
924 1018 structure: {
925 1019 childRoles: [
926 1020 'application',
927 1021 'document',
928 1022 'none',
-1 1023 'generic',
929 1024 'presentation',
-1 1025 'range',
930 1026 'rowgroup',
931 1027 'section',
932 1028 'sectionhead',
933 1029 'separator',
934 1030 ],
935 1031 },
-1 1032 subscript: {
-1 1033 selectors: ['sub'],
-1 1034 },
-1 1035 superscript: {
-1 1036 selectors: ['sup'],
-1 1037 },
936 1038 switch: {
937 1039 nameFromContents: true,
938 1040 defaults: {
@@ -968,6 +1070,14 @@ exports.roles = {
968 1070 ],
969 1071 childRoles: ['searchbox'],
970 1072 },
-1 1073 time: {
-1 1074 selectors: ['time'],
-1 1075 },
-1 1076 timer: {
-1 1077 defaults: {
-1 1078 'live': 'off',
-1 1079 },
-1 1080 },
971 1081 toolbar: {
972 1082 defaults: {
973 1083 'orientation': 'horizontal',
@@ -991,8 +1101,10 @@ exports.roles = {
991 1101 'composite',
992 1102 'gridcell',
993 1103 'input',
994 -1 'range',
-1 1104 'progressbar',
995 1105 'row',
-1 1106 'scrollbar',
-1 1107 'separator',
996 1108 'tab',
997 1109 ],
998 1110 },
@@ -1001,22 +1113,14 @@ exports.roles = {
1001 1113 },
1002 1114 };
1003 1115
1004 -1 exports.scoped = [
1005 -1 'main *',
1006 -1 // https://www.w3.org/TR/html/dom.html#sectioning-content-2
1007 -1 'article *', 'aside *', 'nav *', 'section *',
1008 -1 // https://www.w3.org/TR/html/sections.html#sectioning-roots
1009 -1 'blockquote *', 'details *', 'dialog *', 'fieldset *', 'figure *', 'td *',
1010 -1 ].join(',');
1011 -1
1012 1116 var getSubRoles = function(role) {
1013 1117 var children = (exports.roles[role] || {}).childRoles || [];
1014 1118 var descendents = children.map(getSubRoles);
1015 1119
1016 1120 var result = [role];
1017 1121
1018 -1 descendents.forEach(function(list) {
1019 -1 list.forEach(function(r) {
-1 1122 descendents.forEach(list => {
-1 1123 list.forEach(r => {
1020 1124 if (!result.includes(r)) {
1021 1125 result.push(r);
1022 1126 }
@@ -1054,24 +1158,24 @@ exports.nameDefaults = {
1054 1158 };
1055 1159
1056 1160 },{}],8:[function(require,module,exports){
1057 -1 function cov_22i8nvh4cs(){var path="node_modules/aria-api/lib/name.js";var hash="510e8f25ab8f75c5ebe94bd1b7f774bcc66601f3";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/home/tobias/code/a11y/babelacc/node_modules/aria-api/lib/name.js",statementMap:{"0":{start:{line:1,column:16},end:{line:1,column:41}},"1":{start:{line:2,column:12},end:{line:2,column:33}},"2":{start:{line:3,column:12},end:{line:3,column:33}},"3":{start:{line:5,column:23},end:{line:21,column:1}},"4":{start:{line:6,column:14},end:{line:6,column:53}},"5":{start:{line:7,column:11},end:{line:7,column:45}},"6":{start:{line:8,column:14},end:{line:8,column:54}},"7":{start:{line:9,column:1},end:{line:11,column:2}},"8":{start:{line:10,column:2},end:{line:10,column:12}},"9":{start:{line:12,column:1},end:{line:20,column:2}},"10":{start:{line:13,column:2},end:{line:13,column:12}},"11":{start:{line:15,column:2},end:{line:19,column:3}},"12":{start:{line:16,column:3},end:{line:16,column:27}},"13":{start:{line:18,column:3},end:{line:18,column:39}},"14":{start:{line:23,column:17},end:{line:45,column:1}},"15":{start:{line:24,column:16},end:{line:24,column:41}},"16":{start:{line:26,column:11},end:{line:26,column:13}},"17":{start:{line:27,column:1},end:{line:42,column:2}},"18":{start:{line:27,column:14},end:{line:27,column:15}},"19":{start:{line:28,column:13},end:{line:28,column:24}},"20":{start:{line:29,column:2},end:{line:41,column:3}},"21":{start:{line:30,column:3},end:{line:30,column:27}},"22":{start:{line:31,column:9},end:{line:41,column:3}},"23":{start:{line:32,column:3},end:{line:40,column:4}},"24":{start:{line:33,column:4},end:{line:33,column:16}},"25":{start:{line:34,column:10},end:{line:40,column:4}},"26":{start:{line:37,column:4},end:{line:37,column:40}},"27":{start:{line:39,column:4},end:{line:39,column:52}},"28":{start:{line:44,column:1},end:{line:44,column:12}},"29":{start:{line:47,column:27},end:{line:50,column:1}},"30":{start:{line:48,column:12},end:{line:48,column:29}},"31":{start:{line:49,column:1},end:{line:49,column:55}},"32":{start:{line:52,column:30},end:{line:55,column:1}},"33":{start:{line:53,column:13},end:{line:53,column:46}},"34":{start:{line:54,column:1},end:{line:54,column:82}},"35":{start:{line:57,column:14},end:{line:165,column:1}},"36":{start:{line:58,column:11},end:{line:58,column:13}},"37":{start:{line:60,column:1},end:{line:60,column:25}},"38":{start:{line:61,column:1},end:{line:67,column:2}},"39":{start:{line:62,column:2},end:{line:64,column:3}},"40":{start:{line:63,column:3},end:{line:63,column:13}},"41":{start:{line:66,column:2},end:{line:66,column:19}},"42":{start:{line:73,column:1},end:{line:80,column:2}},"43":{start:{line:74,column:12},end:{line:74,column:59}},"44":{start:{line:75,column:16},end:{line:78,column:4}},"45":{start:{line:76,column:15},end:{line:76,column:42}},"46":{start:{line:77,column:3},end:{line:77,column:59}},"47":{start:{line:79,column:2},end:{line:79,column:26}},"48":{start:{line:83,column:1},end:{line:86,column:2}},"49":{start:{line:85,column:2},end:{line:85,column:38}},"50":{start:{line:89,column:1},end:{line:94,column:2}},"51":{start:{line:90,column:16},end:{line:92,column:4}},"52":{start:{line:91,column:3},end:{line:91,column:40}},"53":{start:{line:93,column:2},end:{line:93,column:26}},"54":{start:{line:95,column:1},end:{line:97,column:2}},"55":{start:{line:96,column:2},end:{line:96,column:29}},"56":{start:{line:98,column:1},end:{line:100,column:2}},"57":{start:{line:99,column:2},end:{line:99,column:21}},"58":{start:{line:101,column:1},end:{line:103,column:2}},"59":{start:{line:102,column:2},end:{line:102,column:17}},"60":{start:{line:104,column:1},end:{line:113,column:2}},"61":{start:{line:105,column:2},end:{line:112,column:3}},"62":{start:{line:106,column:3},end:{line:111,column:4}},"63":{start:{line:107,column:21},end:{line:107,column:77}},"64":{start:{line:108,column:4},end:{line:110,column:5}},"65":{start:{line:109,column:5},end:{line:109,column:46}},"66":{start:{line:116,column:1},end:{line:131,column:2}},"67":{start:{line:117,column:2},end:{line:130,column:3}},"68":{start:{line:118,column:3},end:{line:129,column:4}},"69":{start:{line:119,column:4},end:{line:119,column:37}},"70":{start:{line:120,column:10},end:{line:129,column:4}},"71":{start:{line:121,column:19},end:{line:121,column:92}},"72":{start:{line:122,column:4},end:{line:126,column:5}},"73":{start:{line:123,column:5},end:{line:123,column:49}},"74":{start:{line:125,column:5},end:{line:125,column:26}},"75":{start:{line:127,column:10},end:{line:129,column:4}},"76":{start:{line:128,column:4},end:{line:128,column:103}},"77":{start:{line:135,column:1},end:{line:137,column:2}},"78":{start:{line:136,column:2},end:{line:136,column:32}},"79":{start:{line:139,column:1},end:{line:145,column:2}},"80":{start:{line:140,column:2},end:{line:144,column:3}},"81":{start:{line:141,column:3},end:{line:143,column:4}},"82":{start:{line:142,column:4},end:{line:142,column:43}},"83":{start:{line:152,column:1},end:{line:154,column:2}},"84":{start:{line:153,column:2},end:{line:153,column:23}},"85":{start:{line:158,column:1},end:{line:160,column:2}},"86":{start:{line:159,column:2},end:{line:159,column:12}},"87":{start:{line:162,column:14},end:{line:162,column:45}},"88":{start:{line:163,column:13},end:{line:163,column:43}},"89":{start:{line:164,column:1},end:{line:164,column:29}},"90":{start:{line:167,column:21},end:{line:169,column:1}},"91":{start:{line:168,column:1},end:{line:168,column:48}},"92":{start:{line:171,column:21},end:{line:194,column:1}},"93":{start:{line:172,column:11},end:{line:172,column:13}},"94":{start:{line:174,column:1},end:{line:185,column:2}},"95":{start:{line:175,column:12},end:{line:175,column:60}},"96":{start:{line:176,column:16},end:{line:179,column:4}},"97":{start:{line:177,column:15},end:{line:177,column:42}},"98":{start:{line:178,column:3},end:{line:178,column:44}},"99":{start:{line:180,column:2},end:{line:180,column:26}},"100":{start:{line:181,column:8},end:{line:185,column:2}},"101":{start:{line:182,column:2},end:{line:182,column:17}},"102":{start:{line:183,column:8},end:{line:185,column:2}},"103":{start:{line:184,column:2},end:{line:184,column:23}},"104":{start:{line:187,column:1},end:{line:187,column:47}},"105":{start:{line:189,column:1},end:{line:191,column:2}},"106":{start:{line:190,column:2},end:{line:190,column:11}},"107":{start:{line:193,column:1},end:{line:193,column:12}},"108":{start:{line:196,column:0},end:{line:199,column:2}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:5,column:23},end:{line:5,column:24}},loc:{start:{line:5,column:48},end:{line:21,column:1}},line:5},"1":{name:"(anonymous_1)",decl:{start:{line:23,column:17},end:{line:23,column:18}},loc:{start:{line:23,column:41},end:{line:45,column:1}},line:23},"2":{name:"(anonymous_2)",decl:{start:{line:47,column:27},end:{line:47,column:28}},loc:{start:{line:47,column:40},end:{line:50,column:1}},line:47},"3":{name:"(anonymous_3)",decl:{start:{line:52,column:30},end:{line:52,column:31}},loc:{start:{line:52,column:43},end:{line:55,column:1}},line:52},"4":{name:"(anonymous_4)",decl:{start:{line:57,column:14},end:{line:57,column:15}},loc:{start:{line:57,column:64},end:{line:165,column:1}},line:57},"5":{name:"(anonymous_5)",decl:{start:{line:75,column:24},end:{line:75,column:25}},loc:{start:{line:75,column:37},end:{line:78,column:3}},line:75},"6":{name:"(anonymous_6)",decl:{start:{line:90,column:52},end:{line:90,column:53}},loc:{start:{line:90,column:68},end:{line:92,column:3}},line:90},"7":{name:"(anonymous_7)",decl:{start:{line:167,column:21},end:{line:167,column:22}},loc:{start:{line:167,column:34},end:{line:169,column:1}},line:167},"8":{name:"(anonymous_8)",decl:{start:{line:171,column:21},end:{line:171,column:22}},loc:{start:{line:171,column:34},end:{line:194,column:1}},line:171},"9":{name:"(anonymous_9)",decl:{start:{line:176,column:24},end:{line:176,column:25}},loc:{start:{line:176,column:37},end:{line:179,column:3}},line:176}},branchMap:{"0":{loc:{start:{line:9,column:1},end:{line:11,column:2}},type:"if",locations:[{start:{line:9,column:1},end:{line:11,column:2}},{start:{line:9,column:1},end:{line:11,column:2}}],line:9},"1":{loc:{start:{line:12,column:1},end:{line:20,column:2}},type:"if",locations:[{start:{line:12,column:1},end:{line:20,column:2}},{start:{line:12,column:1},end:{line:20,column:2}}],line:12},"2":{loc:{start:{line:15,column:2},end:{line:19,column:3}},type:"if",locations:[{start:{line:15,column:2},end:{line:19,column:3}},{start:{line:15,column:2},end:{line:19,column:3}}],line:15},"3":{loc:{start:{line:29,column:2},end:{line:41,column:3}},type:"if",locations:[{start:{line:29,column:2},end:{line:41,column:3}},{start:{line:29,column:2},end:{line:41,column:3}}],line:29},"4":{loc:{start:{line:31,column:9},end:{line:41,column:3}},type:"if",locations:[{start:{line:31,column:9},end:{line:41,column:3}},{start:{line:31,column:9},end:{line:41,column:3}}],line:31},"5":{loc:{start:{line:32,column:3},end:{line:40,column:4}},type:"if",locations:[{start:{line:32,column:3},end:{line:40,column:4}},{start:{line:32,column:3},end:{line:40,column:4}}],line:32},"6":{loc:{start:{line:34,column:10},end:{line:40,column:4}},type:"if",locations:[{start:{line:34,column:10},end:{line:40,column:4}},{start:{line:34,column:10},end:{line:40,column:4}}],line:34},"7":{loc:{start:{line:34,column:14},end:{line:36,column:41}},type:"binary-expr",locations:[{start:{line:34,column:14},end:{line:34,column:77}},{start:{line:35,column:5},end:{line:35,column:43}},{start:{line:36,column:5},end:{line:36,column:41}}],line:34},"8":{loc:{start:{line:49,column:9},end:{line:49,column:36}},type:"binary-expr",locations:[{start:{line:49,column:9},end:{line:49,column:30}},{start:{line:49,column:34},end:{line:49,column:36}}],line:49},"9":{loc:{start:{line:54,column:8},end:{line:54,column:81}},type:"binary-expr",locations:[{start:{line:54,column:8},end:{line:54,column:13}},{start:{line:54,column:18},end:{line:54,column:28}},{start:{line:54,column:32},end:{line:54,column:80}}],line:54},"10":{loc:{start:{line:60,column:11},end:{line:60,column:24}},type:"binary-expr",locations:[{start:{line:60,column:11},end:{line:60,column:18}},{start:{line:60,column:22},end:{line:60,column:24}}],line:60},"11":{loc:{start:{line:61,column:1},end:{line:67,column:2}},type:"if",locations:[{start:{line:61,column:1},end:{line:67,column:2}},{start:{line:61,column:1},end:{line:67,column:2}}],line:61},"12":{loc:{start:{line:62,column:2},end:{line:64,column:3}},type:"if",locations:[{start:{line:62,column:2},end:{line:64,column:3}},{start:{line:62,column:2},end:{line:64,column:3}}],line:62},"13":{loc:{start:{line:73,column:1},end:{line:80,column:2}},type:"if",locations:[{start:{line:73,column:1},end:{line:80,column:2}},{start:{line:73,column:1},end:{line:80,column:2}}],line:73},"14":{loc:{start:{line:73,column:5},end:{line:73,column:50}},type:"binary-expr",locations:[{start:{line:73,column:5},end:{line:73,column:15}},{start:{line:73,column:19},end:{line:73,column:50}}],line:73},"15":{loc:{start:{line:77,column:10},end:{line:77,column:58}},type:"cond-expr",locations:[{start:{line:77,column:18},end:{line:77,column:53}},{start:{line:77,column:56},end:{line:77,column:58}}],line:77},"16":{loc:{start:{line:83,column:1},end:{line:86,column:2}},type:"if",locations:[{start:{line:83,column:1},end:{line:86,column:2}},{start:{line:83,column:1},end:{line:86,column:2}}],line:83},"17":{loc:{start:{line:83,column:5},end:{line:83,column:46}},type:"binary-expr",locations:[{start:{line:83,column:5},end:{line:83,column:16}},{start:{line:83,column:20},end:{line:83,column:46}}],line:83},"18":{loc:{start:{line:89,column:1},end:{line:94,column:2}},type:"if",locations:[{start:{line:89,column:1},end:{line:94,column:2}},{start:{line:89,column:1},end:{line:94,column:2}}],line:89},"19":{loc:{start:{line:89,column:5},end:{line:89,column:43}},type:"binary-expr",locations:[{start:{line:89,column:5},end:{line:89,column:16}},{start:{line:89,column:20},end:{line:89,column:30}},{start:{line:89,column:34},end:{line:89,column:43}}],line:89},"20":{loc:{start:{line:95,column:1},end:{line:97,column:2}},type:"if",locations:[{start:{line:95,column:1},end:{line:97,column:2}},{start:{line:95,column:1},end:{line:97,column:2}}],line:95},"21":{loc:{start:{line:96,column:8},end:{line:96,column:28}},type:"binary-expr",locations:[{start:{line:96,column:8},end:{line:96,column:22}},{start:{line:96,column:26},end:{line:96,column:28}}],line:96},"22":{loc:{start:{line:98,column:1},end:{line:100,column:2}},type:"if",locations:[{start:{line:98,column:1},end:{line:100,column:2}},{start:{line:98,column:1},end:{line:100,column:2}}],line:98},"23":{loc:{start:{line:99,column:8},end:{line:99,column:20}},type:"binary-expr",locations:[{start:{line:99,column:8},end:{line:99,column:14}},{start:{line:99,column:18},end:{line:99,column:20}}],line:99},"24":{loc:{start:{line:101,column:1},end:{line:103,column:2}},type:"if",locations:[{start:{line:101,column:1},end:{line:103,column:2}},{start:{line:101,column:1},end:{line:103,column:2}}],line:101},"25":{loc:{start:{line:101,column:5},end:{line:101,column:58}},type:"binary-expr",locations:[{start:{line:101,column:5},end:{line:101,column:16}},{start:{line:101,column:20},end:{line:101,column:46}},{start:{line:101,column:50},end:{line:101,column:58}}],line:101},"26":{loc:{start:{line:104,column:1},end:{line:113,column:2}},type:"if",locations:[{start:{line:104,column:1},end:{line:113,column:2}},{start:{line:104,column:1},end:{line:113,column:2}}],line:104},"27":{loc:{start:{line:106,column:3},end:{line:111,column:4}},type:"if",locations:[{start:{line:106,column:3},end:{line:111,column:4}},{start:{line:106,column:3},end:{line:111,column:4}}],line:106},"28":{loc:{start:{line:108,column:4},end:{line:110,column:5}},type:"if",locations:[{start:{line:108,column:4},end:{line:110,column:5}},{start:{line:108,column:4},end:{line:110,column:5}}],line:108},"29":{loc:{start:{line:116,column:1},end:{line:131,column:2}},type:"if",locations:[{start:{line:116,column:1},end:{line:131,column:2}},{start:{line:116,column:1},end:{line:131,column:2}}],line:116},"30":{loc:{start:{line:116,column:5},end:{line:116,column:93}},type:"binary-expr",locations:[{start:{line:116,column:5},end:{line:116,column:16}},{start:{line:116,column:21},end:{line:116,column:30}},{start:{line:116,column:34},end:{line:116,column:61}},{start:{line:116,column:65},end:{line:116,column:92}}],line:116},"31":{loc:{start:{line:117,column:2},end:{line:130,column:3}},type:"if",locations:[{start:{line:117,column:2},end:{line:130,column:3}},{start:{line:117,column:2},end:{line:130,column:3}}],line:117},"32":{loc:{start:{line:118,column:3},end:{line:129,column:4}},type:"if",locations:[{start:{line:118,column:3},end:{line:129,column:4}},{start:{line:118,column:3},end:{line:129,column:4}}],line:118},"33":{loc:{start:{line:119,column:10},end:{line:119,column:36}},type:"binary-expr",locations:[{start:{line:119,column:10},end:{line:119,column:18}},{start:{line:119,column:22},end:{line:119,column:36}}],line:119},"34":{loc:{start:{line:120,column:10},end:{line:129,column:4}},type:"if",locations:[{start:{line:120,column:10},end:{line:129,column:4}},{start:{line:120,column:10},end:{line:129,column:4}}],line:120},"35":{loc:{start:{line:121,column:19},end:{line:121,column:92}},type:"binary-expr",locations:[{start:{line:121,column:19},end:{line:121,column:55}},{start:{line:121,column:59},end:{line:121,column:92}}],line:121},"36":{loc:{start:{line:122,column:4},end:{line:126,column:5}},type:"if",locations:[{start:{line:122,column:4},end:{line:126,column:5}},{start:{line:122,column:4},end:{line:126,column:5}}],line:122},"37":{loc:{start:{line:125,column:11},end:{line:125,column:25}},type:"binary-expr",locations:[{start:{line:125,column:11},end:{line:125,column:19}},{start:{line:125,column:23},end:{line:125,column:25}}],line:125},"38":{loc:{start:{line:127,column:10},end:{line:129,column:4}},type:"if",locations:[{start:{line:127,column:10},end:{line:129,column:4}},{start:{line:127,column:10},end:{line:129,column:4}}],line:127},"39":{loc:{start:{line:128,column:16},end:{line:128,column:101}},type:"binary-expr",locations:[{start:{line:128,column:16},end:{line:128,column:51}},{start:{line:128,column:55},end:{line:128,column:89}},{start:{line:128,column:93},end:{line:128,column:101}}],line:128},"40":{loc:{start:{line:135,column:1},end:{line:137,column:2}},type:"if",locations:[{start:{line:135,column:1},end:{line:137,column:2}},{start:{line:135,column:1},end:{line:137,column:2}}],line:135},"41":{loc:{start:{line:135,column:5},end:{line:135,column:112}},type:"binary-expr",locations:[{start:{line:135,column:5},end:{line:135,column:16}},{start:{line:135,column:21},end:{line:135,column:30}},{start:{line:135,column:34},end:{line:135,column:58}},{start:{line:135,column:62},end:{line:135,column:81}},{start:{line:135,column:86},end:{line:135,column:112}}],line:135},"42":{loc:{start:{line:139,column:1},end:{line:145,column:2}},type:"if",locations:[{start:{line:139,column:1},end:{line:145,column:2}},{start:{line:139,column:1},end:{line:145,column:2}}],line:139},"43":{loc:{start:{line:141,column:3},end:{line:143,column:4}},type:"if",locations:[{start:{line:141,column:3},end:{line:143,column:4}},{start:{line:141,column:3},end:{line:143,column:4}}],line:141},"44":{loc:{start:{line:152,column:1},end:{line:154,column:2}},type:"if",locations:[{start:{line:152,column:1},end:{line:154,column:2}},{start:{line:152,column:1},end:{line:154,column:2}}],line:152},"45":{loc:{start:{line:152,column:5},end:{line:152,column:75}},type:"binary-expr",locations:[{start:{line:152,column:5},end:{line:152,column:16}},{start:{line:152,column:21},end:{line:152,column:36}},{start:{line:152,column:40},end:{line:152,column:74}}],line:152},"46":{loc:{start:{line:153,column:8},end:{line:153,column:22}},type:"binary-expr",locations:[{start:{line:153,column:8},end:{line:153,column:16}},{start:{line:153,column:20},end:{line:153,column:22}}],line:153},"47":{loc:{start:{line:158,column:1},end:{line:160,column:2}},type:"if",locations:[{start:{line:158,column:1},end:{line:160,column:2}},{start:{line:158,column:1},end:{line:160,column:2}}],line:158},"48":{loc:{start:{line:174,column:1},end:{line:185,column:2}},type:"if",locations:[{start:{line:174,column:1},end:{line:185,column:2}},{start:{line:174,column:1},end:{line:185,column:2}}],line:174},"49":{loc:{start:{line:178,column:10},end:{line:178,column:43}},type:"cond-expr",locations:[{start:{line:178,column:18},end:{line:178,column:38}},{start:{line:178,column:41},end:{line:178,column:43}}],line:178},"50":{loc:{start:{line:181,column:8},end:{line:185,column:2}},type:"if",locations:[{start:{line:181,column:8},end:{line:185,column:2}},{start:{line:181,column:8},end:{line:185,column:2}}],line:181},"51":{loc:{start:{line:183,column:8},end:{line:185,column:2}},type:"if",locations:[{start:{line:183,column:8},end:{line:185,column:2}},{start:{line:183,column:8},end:{line:185,column:2}}],line:183},"52":{loc:{start:{line:187,column:8},end:{line:187,column:17}},type:"binary-expr",locations:[{start:{line:187,column:8},end:{line:187,column:11}},{start:{line:187,column:15},end:{line:187,column:17}}],line:187},"53":{loc:{start:{line:189,column:1},end:{line:191,column:2}},type:"if",locations:[{start:{line:189,column:1},end:{line:191,column:2}},{start:{line:189,column:1},end:{line:191,column:2}}],line:189}},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},b:{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0],"9":[0,0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0,0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0,0],"40":[0,0],"41":[0,0,0,0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"510e8f25ab8f75c5ebe94bd1b7f774bcc66601f3"};var coverage=global[gcv]||(global[gcv]={});if(!coverage[path]||coverage[path].hash!==hash){coverage[path]=coverageData;}var actualCoverage=coverage[path];{// @ts-ignore
-1 1161 function cov_22i8nvh4cs(){var path="node_modules/aria-api/lib/name.js";var hash="1de31b7612077d6ae16bb7d65d41c072c50d8c25";var global=new Function("return this")();var gcv="__coverage__";var coverageData={path:"/home/tobias/code/a11y/babelacc/node_modules/aria-api/lib/name.js",statementMap:{"0":{start:{line:1,column:16},end:{line:1,column:41}},"1":{start:{line:2,column:12},end:{line:2,column:33}},"2":{start:{line:3,column:12},end:{line:3,column:33}},"3":{start:{line:5,column:23},end:{line:21,column:1}},"4":{start:{line:6,column:14},end:{line:6,column:53}},"5":{start:{line:7,column:11},end:{line:7,column:45}},"6":{start:{line:8,column:14},end:{line:8,column:54}},"7":{start:{line:9,column:1},end:{line:11,column:2}},"8":{start:{line:10,column:2},end:{line:10,column:12}},"9":{start:{line:12,column:1},end:{line:20,column:2}},"10":{start:{line:13,column:2},end:{line:13,column:12}},"11":{start:{line:15,column:2},end:{line:19,column:3}},"12":{start:{line:16,column:3},end:{line:16,column:27}},"13":{start:{line:18,column:3},end:{line:18,column:39}},"14":{start:{line:23,column:17},end:{line:45,column:1}},"15":{start:{line:24,column:16},end:{line:24,column:41}},"16":{start:{line:26,column:11},end:{line:26,column:13}},"17":{start:{line:27,column:1},end:{line:42,column:2}},"18":{start:{line:27,column:14},end:{line:27,column:15}},"19":{start:{line:28,column:13},end:{line:28,column:24}},"20":{start:{line:29,column:2},end:{line:41,column:3}},"21":{start:{line:30,column:3},end:{line:30,column:27}},"22":{start:{line:31,column:9},end:{line:41,column:3}},"23":{start:{line:32,column:3},end:{line:40,column:4}},"24":{start:{line:33,column:4},end:{line:33,column:16}},"25":{start:{line:34,column:10},end:{line:40,column:4}},"26":{start:{line:37,column:4},end:{line:37,column:40}},"27":{start:{line:39,column:4},end:{line:39,column:52}},"28":{start:{line:44,column:1},end:{line:44,column:12}},"29":{start:{line:47,column:27},end:{line:50,column:1}},"30":{start:{line:48,column:12},end:{line:48,column:29}},"31":{start:{line:49,column:1},end:{line:49,column:55}},"32":{start:{line:52,column:30},end:{line:55,column:1}},"33":{start:{line:53,column:13},end:{line:53,column:46}},"34":{start:{line:54,column:1},end:{line:54,column:82}},"35":{start:{line:57,column:14},end:{line:171,column:1}},"36":{start:{line:58,column:11},end:{line:58,column:13}},"37":{start:{line:60,column:1},end:{line:60,column:25}},"38":{start:{line:61,column:1},end:{line:67,column:2}},"39":{start:{line:62,column:2},end:{line:64,column:3}},"40":{start:{line:63,column:3},end:{line:63,column:13}},"41":{start:{line:66,column:2},end:{line:66,column:19}},"42":{start:{line:73,column:1},end:{line:80,column:2}},"43":{start:{line:74,column:12},end:{line:74,column:59}},"44":{start:{line:75,column:16},end:{line:78,column:4}},"45":{start:{line:76,column:15},end:{line:76,column:42}},"46":{start:{line:77,column:3},end:{line:77,column:59}},"47":{start:{line:79,column:2},end:{line:79,column:26}},"48":{start:{line:83,column:1},end:{line:86,column:2}},"49":{start:{line:85,column:2},end:{line:85,column:38}},"50":{start:{line:89,column:1},end:{line:94,column:2}},"51":{start:{line:90,column:16},end:{line:92,column:4}},"52":{start:{line:91,column:3},end:{line:91,column:40}},"53":{start:{line:93,column:2},end:{line:93,column:26}},"54":{start:{line:95,column:1},end:{line:97,column:2}},"55":{start:{line:96,column:2},end:{line:96,column:29}},"56":{start:{line:98,column:1},end:{line:100,column:2}},"57":{start:{line:99,column:2},end:{line:99,column:21}},"58":{start:{line:101,column:1},end:{line:103,column:2}},"59":{start:{line:102,column:2},end:{line:102,column:17}},"60":{start:{line:104,column:1},end:{line:113,column:2}},"61":{start:{line:105,column:2},end:{line:112,column:3}},"62":{start:{line:106,column:3},end:{line:111,column:4}},"63":{start:{line:107,column:21},end:{line:107,column:77}},"64":{start:{line:108,column:4},end:{line:110,column:5}},"65":{start:{line:109,column:5},end:{line:109,column:46}},"66":{start:{line:114,column:1},end:{line:119,column:2}},"67":{start:{line:115,column:17},end:{line:115,column:42}},"68":{start:{line:116,column:2},end:{line:118,column:3}},"69":{start:{line:117,column:3},end:{line:117,column:30}},"70":{start:{line:122,column:1},end:{line:137,column:2}},"71":{start:{line:123,column:2},end:{line:136,column:3}},"72":{start:{line:124,column:3},end:{line:135,column:4}},"73":{start:{line:125,column:4},end:{line:125,column:37}},"74":{start:{line:126,column:10},end:{line:135,column:4}},"75":{start:{line:127,column:19},end:{line:127,column:92}},"76":{start:{line:128,column:4},end:{line:132,column:5}},"77":{start:{line:129,column:5},end:{line:129,column:49}},"78":{start:{line:131,column:5},end:{line:131,column:26}},"79":{start:{line:133,column:10},end:{line:135,column:4}},"80":{start:{line:134,column:4},end:{line:134,column:103}},"81":{start:{line:141,column:1},end:{line:143,column:2}},"82":{start:{line:142,column:2},end:{line:142,column:32}},"83":{start:{line:145,column:1},end:{line:151,column:2}},"84":{start:{line:146,column:2},end:{line:150,column:3}},"85":{start:{line:147,column:3},end:{line:149,column:4}},"86":{start:{line:148,column:4},end:{line:148,column:43}},"87":{start:{line:158,column:1},end:{line:160,column:2}},"88":{start:{line:159,column:2},end:{line:159,column:23}},"89":{start:{line:164,column:1},end:{line:166,column:2}},"90":{start:{line:165,column:2},end:{line:165,column:12}},"91":{start:{line:168,column:14},end:{line:168,column:45}},"92":{start:{line:169,column:13},end:{line:169,column:43}},"93":{start:{line:170,column:1},end:{line:170,column:29}},"94":{start:{line:173,column:21},end:{line:175,column:1}},"95":{start:{line:174,column:1},end:{line:174,column:48}},"96":{start:{line:177,column:21},end:{line:205,column:1}},"97":{start:{line:178,column:11},end:{line:178,column:13}},"98":{start:{line:180,column:1},end:{line:196,column:2}},"99":{start:{line:181,column:12},end:{line:181,column:60}},"100":{start:{line:182,column:16},end:{line:185,column:4}},"101":{start:{line:183,column:15},end:{line:183,column:42}},"102":{start:{line:184,column:3},end:{line:184,column:44}},"103":{start:{line:186,column:2},end:{line:186,column:26}},"104":{start:{line:187,column:8},end:{line:196,column:2}},"105":{start:{line:188,column:2},end:{line:188,column:44}},"106":{start:{line:189,column:8},end:{line:196,column:2}},"107":{start:{line:190,column:16},end:{line:190,column:40}},"108":{start:{line:191,column:2},end:{line:193,column:3}},"109":{start:{line:192,column:3},end:{line:192,column:29}},"110":{start:{line:194,column:8},end:{line:196,column:2}},"111":{start:{line:195,column:2},end:{line:195,column:17}},"112":{start:{line:198,column:1},end:{line:198,column:47}},"113":{start:{line:200,column:1},end:{line:202,column:2}},"114":{start:{line:201,column:2},end:{line:201,column:11}},"115":{start:{line:204,column:1},end:{line:204,column:12}},"116":{start:{line:207,column:0},end:{line:210,column:2}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:5,column:23},end:{line:5,column:24}},loc:{start:{line:5,column:48},end:{line:21,column:1}},line:5},"1":{name:"(anonymous_1)",decl:{start:{line:23,column:17},end:{line:23,column:18}},loc:{start:{line:23,column:41},end:{line:45,column:1}},line:23},"2":{name:"(anonymous_2)",decl:{start:{line:47,column:27},end:{line:47,column:28}},loc:{start:{line:47,column:40},end:{line:50,column:1}},line:47},"3":{name:"(anonymous_3)",decl:{start:{line:52,column:30},end:{line:52,column:31}},loc:{start:{line:52,column:43},end:{line:55,column:1}},line:52},"4":{name:"(anonymous_4)",decl:{start:{line:57,column:14},end:{line:57,column:15}},loc:{start:{line:57,column:64},end:{line:171,column:1}},line:57},"5":{name:"(anonymous_5)",decl:{start:{line:75,column:24},end:{line:75,column:25}},loc:{start:{line:75,column:30},end:{line:78,column:3}},line:75},"6":{name:"(anonymous_6)",decl:{start:{line:90,column:52},end:{line:90,column:53}},loc:{start:{line:90,column:61},end:{line:92,column:3}},line:90},"7":{name:"(anonymous_7)",decl:{start:{line:173,column:21},end:{line:173,column:22}},loc:{start:{line:173,column:34},end:{line:175,column:1}},line:173},"8":{name:"(anonymous_8)",decl:{start:{line:177,column:21},end:{line:177,column:22}},loc:{start:{line:177,column:34},end:{line:205,column:1}},line:177},"9":{name:"(anonymous_9)",decl:{start:{line:182,column:24},end:{line:182,column:25}},loc:{start:{line:182,column:30},end:{line:185,column:3}},line:182}},branchMap:{"0":{loc:{start:{line:9,column:1},end:{line:11,column:2}},type:"if",locations:[{start:{line:9,column:1},end:{line:11,column:2}},{start:{line:9,column:1},end:{line:11,column:2}}],line:9},"1":{loc:{start:{line:12,column:1},end:{line:20,column:2}},type:"if",locations:[{start:{line:12,column:1},end:{line:20,column:2}},{start:{line:12,column:1},end:{line:20,column:2}}],line:12},"2":{loc:{start:{line:15,column:2},end:{line:19,column:3}},type:"if",locations:[{start:{line:15,column:2},end:{line:19,column:3}},{start:{line:15,column:2},end:{line:19,column:3}}],line:15},"3":{loc:{start:{line:29,column:2},end:{line:41,column:3}},type:"if",locations:[{start:{line:29,column:2},end:{line:41,column:3}},{start:{line:29,column:2},end:{line:41,column:3}}],line:29},"4":{loc:{start:{line:31,column:9},end:{line:41,column:3}},type:"if",locations:[{start:{line:31,column:9},end:{line:41,column:3}},{start:{line:31,column:9},end:{line:41,column:3}}],line:31},"5":{loc:{start:{line:32,column:3},end:{line:40,column:4}},type:"if",locations:[{start:{line:32,column:3},end:{line:40,column:4}},{start:{line:32,column:3},end:{line:40,column:4}}],line:32},"6":{loc:{start:{line:34,column:10},end:{line:40,column:4}},type:"if",locations:[{start:{line:34,column:10},end:{line:40,column:4}},{start:{line:34,column:10},end:{line:40,column:4}}],line:34},"7":{loc:{start:{line:34,column:14},end:{line:36,column:41}},type:"binary-expr",locations:[{start:{line:34,column:14},end:{line:34,column:77}},{start:{line:35,column:5},end:{line:35,column:43}},{start:{line:36,column:5},end:{line:36,column:41}}],line:34},"8":{loc:{start:{line:49,column:9},end:{line:49,column:36}},type:"binary-expr",locations:[{start:{line:49,column:9},end:{line:49,column:30}},{start:{line:49,column:34},end:{line:49,column:36}}],line:49},"9":{loc:{start:{line:54,column:8},end:{line:54,column:81}},type:"binary-expr",locations:[{start:{line:54,column:8},end:{line:54,column:13}},{start:{line:54,column:18},end:{line:54,column:28}},{start:{line:54,column:32},end:{line:54,column:80}}],line:54},"10":{loc:{start:{line:60,column:11},end:{line:60,column:24}},type:"binary-expr",locations:[{start:{line:60,column:11},end:{line:60,column:18}},{start:{line:60,column:22},end:{line:60,column:24}}],line:60},"11":{loc:{start:{line:61,column:1},end:{line:67,column:2}},type:"if",locations:[{start:{line:61,column:1},end:{line:67,column:2}},{start:{line:61,column:1},end:{line:67,column:2}}],line:61},"12":{loc:{start:{line:62,column:2},end:{line:64,column:3}},type:"if",locations:[{start:{line:62,column:2},end:{line:64,column:3}},{start:{line:62,column:2},end:{line:64,column:3}}],line:62},"13":{loc:{start:{line:73,column:1},end:{line:80,column:2}},type:"if",locations:[{start:{line:73,column:1},end:{line:80,column:2}},{start:{line:73,column:1},end:{line:80,column:2}}],line:73},"14":{loc:{start:{line:73,column:5},end:{line:73,column:50}},type:"binary-expr",locations:[{start:{line:73,column:5},end:{line:73,column:15}},{start:{line:73,column:19},end:{line:73,column:50}}],line:73},"15":{loc:{start:{line:77,column:10},end:{line:77,column:58}},type:"cond-expr",locations:[{start:{line:77,column:18},end:{line:77,column:53}},{start:{line:77,column:56},end:{line:77,column:58}}],line:77},"16":{loc:{start:{line:83,column:1},end:{line:86,column:2}},type:"if",locations:[{start:{line:83,column:1},end:{line:86,column:2}},{start:{line:83,column:1},end:{line:86,column:2}}],line:83},"17":{loc:{start:{line:83,column:5},end:{line:83,column:46}},type:"binary-expr",locations:[{start:{line:83,column:5},end:{line:83,column:16}},{start:{line:83,column:20},end:{line:83,column:46}}],line:83},"18":{loc:{start:{line:89,column:1},end:{line:94,column:2}},type:"if",locations:[{start:{line:89,column:1},end:{line:94,column:2}},{start:{line:89,column:1},end:{line:94,column:2}}],line:89},"19":{loc:{start:{line:89,column:5},end:{line:89,column:43}},type:"binary-expr",locations:[{start:{line:89,column:5},end:{line:89,column:16}},{start:{line:89,column:20},end:{line:89,column:30}},{start:{line:89,column:34},end:{line:89,column:43}}],line:89},"20":{loc:{start:{line:95,column:1},end:{line:97,column:2}},type:"if",locations:[{start:{line:95,column:1},end:{line:97,column:2}},{start:{line:95,column:1},end:{line:97,column:2}}],line:95},"21":{loc:{start:{line:96,column:8},end:{line:96,column:28}},type:"binary-expr",locations:[{start:{line:96,column:8},end:{line:96,column:22}},{start:{line:96,column:26},end:{line:96,column:28}}],line:96},"22":{loc:{start:{line:98,column:1},end:{line:100,column:2}},type:"if",locations:[{start:{line:98,column:1},end:{line:100,column:2}},{start:{line:98,column:1},end:{line:100,column:2}}],line:98},"23":{loc:{start:{line:99,column:8},end:{line:99,column:20}},type:"binary-expr",locations:[{start:{line:99,column:8},end:{line:99,column:14}},{start:{line:99,column:18},end:{line:99,column:20}}],line:99},"24":{loc:{start:{line:101,column:1},end:{line:103,column:2}},type:"if",locations:[{start:{line:101,column:1},end:{line:103,column:2}},{start:{line:101,column:1},end:{line:103,column:2}}],line:101},"25":{loc:{start:{line:101,column:5},end:{line:101,column:58}},type:"binary-expr",locations:[{start:{line:101,column:5},end:{line:101,column:16}},{start:{line:101,column:20},end:{line:101,column:46}},{start:{line:101,column:50},end:{line:101,column:58}}],line:101},"26":{loc:{start:{line:104,column:1},end:{line:113,column:2}},type:"if",locations:[{start:{line:104,column:1},end:{line:113,column:2}},{start:{line:104,column:1},end:{line:113,column:2}}],line:104},"27":{loc:{start:{line:106,column:3},end:{line:111,column:4}},type:"if",locations:[{start:{line:106,column:3},end:{line:111,column:4}},{start:{line:106,column:3},end:{line:111,column:4}}],line:106},"28":{loc:{start:{line:108,column:4},end:{line:110,column:5}},type:"if",locations:[{start:{line:108,column:4},end:{line:110,column:5}},{start:{line:108,column:4},end:{line:110,column:5}}],line:108},"29":{loc:{start:{line:114,column:1},end:{line:119,column:2}},type:"if",locations:[{start:{line:114,column:1},end:{line:119,column:2}},{start:{line:114,column:1},end:{line:119,column:2}}],line:114},"30":{loc:{start:{line:114,column:5},end:{line:114,column:39}},type:"binary-expr",locations:[{start:{line:114,column:5},end:{line:114,column:16}},{start:{line:114,column:20},end:{line:114,column:39}}],line:114},"31":{loc:{start:{line:116,column:2},end:{line:118,column:3}},type:"if",locations:[{start:{line:116,column:2},end:{line:118,column:3}},{start:{line:116,column:2},end:{line:118,column:3}}],line:116},"32":{loc:{start:{line:116,column:6},end:{line:116,column:47}},type:"binary-expr",locations:[{start:{line:116,column:6},end:{line:116,column:14}},{start:{line:116,column:18},end:{line:116,column:47}}],line:116},"33":{loc:{start:{line:122,column:1},end:{line:137,column:2}},type:"if",locations:[{start:{line:122,column:1},end:{line:137,column:2}},{start:{line:122,column:1},end:{line:137,column:2}}],line:122},"34":{loc:{start:{line:122,column:5},end:{line:122,column:93}},type:"binary-expr",locations:[{start:{line:122,column:5},end:{line:122,column:16}},{start:{line:122,column:21},end:{line:122,column:30}},{start:{line:122,column:34},end:{line:122,column:61}},{start:{line:122,column:65},end:{line:122,column:92}}],line:122},"35":{loc:{start:{line:123,column:2},end:{line:136,column:3}},type:"if",locations:[{start:{line:123,column:2},end:{line:136,column:3}},{start:{line:123,column:2},end:{line:136,column:3}}],line:123},"36":{loc:{start:{line:124,column:3},end:{line:135,column:4}},type:"if",locations:[{start:{line:124,column:3},end:{line:135,column:4}},{start:{line:124,column:3},end:{line:135,column:4}}],line:124},"37":{loc:{start:{line:125,column:10},end:{line:125,column:36}},type:"binary-expr",locations:[{start:{line:125,column:10},end:{line:125,column:18}},{start:{line:125,column:22},end:{line:125,column:36}}],line:125},"38":{loc:{start:{line:126,column:10},end:{line:135,column:4}},type:"if",locations:[{start:{line:126,column:10},end:{line:135,column:4}},{start:{line:126,column:10},end:{line:135,column:4}}],line:126},"39":{loc:{start:{line:127,column:19},end:{line:127,column:92}},type:"binary-expr",locations:[{start:{line:127,column:19},end:{line:127,column:55}},{start:{line:127,column:59},end:{line:127,column:92}}],line:127},"40":{loc:{start:{line:128,column:4},end:{line:132,column:5}},type:"if",locations:[{start:{line:128,column:4},end:{line:132,column:5}},{start:{line:128,column:4},end:{line:132,column:5}}],line:128},"41":{loc:{start:{line:131,column:11},end:{line:131,column:25}},type:"binary-expr",locations:[{start:{line:131,column:11},end:{line:131,column:19}},{start:{line:131,column:23},end:{line:131,column:25}}],line:131},"42":{loc:{start:{line:133,column:10},end:{line:135,column:4}},type:"if",locations:[{start:{line:133,column:10},end:{line:135,column:4}},{start:{line:133,column:10},end:{line:135,column:4}}],line:133},"43":{loc:{start:{line:134,column:16},end:{line:134,column:101}},type:"binary-expr",locations:[{start:{line:134,column:16},end:{line:134,column:51}},{start:{line:134,column:55},end:{line:134,column:89}},{start:{line:134,column:93},end:{line:134,column:101}}],line:134},"44":{loc:{start:{line:141,column:1},end:{line:143,column:2}},type:"if",locations:[{start:{line:141,column:1},end:{line:143,column:2}},{start:{line:141,column:1},end:{line:143,column:2}}],line:141},"45":{loc:{start:{line:141,column:5},end:{line:141,column:112}},type:"binary-expr",locations:[{start:{line:141,column:5},end:{line:141,column:16}},{start:{line:141,column:21},end:{line:141,column:30}},{start:{line:141,column:34},end:{line:141,column:58}},{start:{line:141,column:62},end:{line:141,column:81}},{start:{line:141,column:86},end:{line:141,column:112}}],line:141},"46":{loc:{start:{line:145,column:1},end:{line:151,column:2}},type:"if",locations:[{start:{line:145,column:1},end:{line:151,column:2}},{start:{line:145,column:1},end:{line:151,column:2}}],line:145},"47":{loc:{start:{line:147,column:3},end:{line:149,column:4}},type:"if",locations:[{start:{line:147,column:3},end:{line:149,column:4}},{start:{line:147,column:3},end:{line:149,column:4}}],line:147},"48":{loc:{start:{line:158,column:1},end:{line:160,column:2}},type:"if",locations:[{start:{line:158,column:1},end:{line:160,column:2}},{start:{line:158,column:1},end:{line:160,column:2}}],line:158},"49":{loc:{start:{line:158,column:5},end:{line:158,column:75}},type:"binary-expr",locations:[{start:{line:158,column:5},end:{line:158,column:16}},{start:{line:158,column:21},end:{line:158,column:36}},{start:{line:158,column:40},end:{line:158,column:74}}],line:158},"50":{loc:{start:{line:159,column:8},end:{line:159,column:22}},type:"binary-expr",locations:[{start:{line:159,column:8},end:{line:159,column:16}},{start:{line:159,column:20},end:{line:159,column:22}}],line:159},"51":{loc:{start:{line:164,column:1},end:{line:166,column:2}},type:"if",locations:[{start:{line:164,column:1},end:{line:166,column:2}},{start:{line:164,column:1},end:{line:166,column:2}}],line:164},"52":{loc:{start:{line:180,column:1},end:{line:196,column:2}},type:"if",locations:[{start:{line:180,column:1},end:{line:196,column:2}},{start:{line:180,column:1},end:{line:196,column:2}}],line:180},"53":{loc:{start:{line:184,column:10},end:{line:184,column:43}},type:"cond-expr",locations:[{start:{line:184,column:18},end:{line:184,column:38}},{start:{line:184,column:41},end:{line:184,column:43}}],line:184},"54":{loc:{start:{line:187,column:8},end:{line:196,column:2}},type:"if",locations:[{start:{line:187,column:8},end:{line:196,column:2}},{start:{line:187,column:8},end:{line:196,column:2}}],line:187},"55":{loc:{start:{line:189,column:8},end:{line:196,column:2}},type:"if",locations:[{start:{line:189,column:8},end:{line:196,column:2}},{start:{line:189,column:8},end:{line:196,column:2}}],line:189},"56":{loc:{start:{line:191,column:2},end:{line:193,column:3}},type:"if",locations:[{start:{line:191,column:2},end:{line:193,column:3}},{start:{line:191,column:2},end:{line:193,column:3}}],line:191},"57":{loc:{start:{line:191,column:6},end:{line:191,column:45}},type:"binary-expr",locations:[{start:{line:191,column:6},end:{line:191,column:13}},{start:{line:191,column:17},end:{line:191,column:45}}],line:191},"58":{loc:{start:{line:194,column:8},end:{line:196,column:2}},type:"if",locations:[{start:{line:194,column:8},end:{line:196,column:2}},{start:{line:194,column:8},end:{line:196,column:2}}],line:194},"59":{loc:{start:{line:198,column:8},end:{line:198,column:17}},type:"binary-expr",locations:[{start:{line:198,column:8},end:{line:198,column:11}},{start:{line:198,column:15},end:{line:198,column:17}}],line:198},"60":{loc:{start:{line:200,column:1},end:{line:202,column:2}},type:"if",locations:[{start:{line:200,column:1},end:{line:202,column:2}},{start:{line:200,column:1},end:{line:202,column:2}}],line:200}},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0},b:{"0":[0,0],"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0,0],"8":[0,0],"9":[0,0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0,0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0,0],"44":[0,0],"45":[0,0,0,0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0],"54":[0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0]},_coverageSchema:"1a1c01bbd47fc00a2c39e90264f33305004495a9",hash:"1de31b7612077d6ae16bb7d65d41c072c50d8c25"};var coverage=global[gcv]||(global[gcv]={});if(!coverage[path]||coverage[path].hash!==hash){coverage[path]=coverageData;}var actualCoverage=coverage[path];{// @ts-ignore
1058 1162 cov_22i8nvh4cs=function(){return actualCoverage;};}return actualCoverage;}cov_22i8nvh4cs();var constants=(cov_22i8nvh4cs().s[0]++,require('./constants.js'));var atree=(cov_22i8nvh4cs().s[1]++,require('./atree.js'));var query=(cov_22i8nvh4cs().s[2]++,require('./query.js'));cov_22i8nvh4cs().s[3]++;var getPseudoContent=function(node,selector){cov_22i8nvh4cs().f[0]++;var styles=(cov_22i8nvh4cs().s[4]++,window.getComputedStyle(node,selector));var ret=(cov_22i8nvh4cs().s[5]++,styles.getPropertyValue('content'));var inline=(cov_22i8nvh4cs().s[6]++,styles.display.substr(0,6)==='inline');cov_22i8nvh4cs().s[7]++;if(!ret){cov_22i8nvh4cs().b[0][0]++;cov_22i8nvh4cs().s[8]++;return'';}else{cov_22i8nvh4cs().b[0][1]++;}cov_22i8nvh4cs().s[9]++;if(ret.substr(0,1)!=='"'){cov_22i8nvh4cs().b[1][0]++;cov_22i8nvh4cs().s[10]++;return'';}else{cov_22i8nvh4cs().b[1][1]++;cov_22i8nvh4cs().s[11]++;if(inline){cov_22i8nvh4cs().b[2][0]++;cov_22i8nvh4cs().s[12]++;return ret.slice(1,-1);}else{cov_22i8nvh4cs().b[2][1]++;cov_22i8nvh4cs().s[13]++;return' '+ret.slice(1,-1)+' ';}}};cov_22i8nvh4cs().s[14]++;var getContent=function(root,visited){cov_22i8nvh4cs().f[1]++;var children=(cov_22i8nvh4cs().s[15]++,atree.getChildNodes(root));var ret=(cov_22i8nvh4cs().s[16]++,'');cov_22i8nvh4cs().s[17]++;for(var i=(cov_22i8nvh4cs().s[18]++,0);i<children.length;i++){var node=(cov_22i8nvh4cs().s[19]++,children[i]);cov_22i8nvh4cs().s[20]++;if(node.nodeType===node.TEXT_NODE){cov_22i8nvh4cs().b[3][0]++;cov_22i8nvh4cs().s[21]++;ret+=node.textContent;}else{cov_22i8nvh4cs().b[3][1]++;cov_22i8nvh4cs().s[22]++;if(node.nodeType===node.ELEMENT_NODE){cov_22i8nvh4cs().b[4][0]++;cov_22i8nvh4cs().s[23]++;if(node.tagName.toLowerCase()==='br'){cov_22i8nvh4cs().b[5][0]++;cov_22i8nvh4cs().s[24]++;ret+='\n';}else{cov_22i8nvh4cs().b[5][1]++;cov_22i8nvh4cs().s[25]++;if((cov_22i8nvh4cs().b[7][0]++,window.getComputedStyle(node).display.substr(0,6)==='inline')&&(cov_22i8nvh4cs().b[7][1]++,node.tagName.toLowerCase()!=='input')&&(cov_22i8nvh4cs().b[7][2]++,node.tagName.toLowerCase()!=='img')){cov_22i8nvh4cs().b[6][0]++;cov_22i8nvh4cs().s[26]++;// https://github.com/w3c/accname/issues/3
1059 1163 ret+=getName(node,true,visited);}else{cov_22i8nvh4cs().b[6][1]++;cov_22i8nvh4cs().s[27]++;ret+=' '+getName(node,true,visited)+' ';}}}else{cov_22i8nvh4cs().b[4][1]++;}}}cov_22i8nvh4cs().s[28]++;return ret;};cov_22i8nvh4cs().s[29]++;var allowNameFromContent=function(el){cov_22i8nvh4cs().f[2]++;var role=(cov_22i8nvh4cs().s[30]++,query.getRole(el));cov_22i8nvh4cs().s[31]++;return((cov_22i8nvh4cs().b[8][0]++,constants.roles[role])||(cov_22i8nvh4cs().b[8][1]++,{})).nameFromContents;};cov_22i8nvh4cs().s[32]++;var isInLabelForOtherWidget=function(el){cov_22i8nvh4cs().f[3]++;var label=(cov_22i8nvh4cs().s[33]++,el.parentElement.closest('label'));cov_22i8nvh4cs().s[34]++;return(cov_22i8nvh4cs().b[9][0]++,label)&&((cov_22i8nvh4cs().b[9][1]++,!el.labels)||(cov_22i8nvh4cs().b[9][2]++,!Array.prototype.includes.call(el.labels,label)));};cov_22i8nvh4cs().s[35]++;var getName=function(el,recursive,visited,directReference){cov_22i8nvh4cs().f[4]++;var ret=(cov_22i8nvh4cs().s[36]++,'');cov_22i8nvh4cs().s[37]++;visited=(cov_22i8nvh4cs().b[10][0]++,visited)||(cov_22i8nvh4cs().b[10][1]++,[]);cov_22i8nvh4cs().s[38]++;if(visited.includes(el)){cov_22i8nvh4cs().b[11][0]++;cov_22i8nvh4cs().s[39]++;if(!directReference){cov_22i8nvh4cs().b[12][0]++;cov_22i8nvh4cs().s[40]++;return'';}else{cov_22i8nvh4cs().b[12][1]++;}}else{cov_22i8nvh4cs().b[11][1]++;cov_22i8nvh4cs().s[41]++;visited.push(el);}// A
1060 1164 // handled in atree
1061 1165 // B
1062 -1 cov_22i8nvh4cs().s[42]++;if((cov_22i8nvh4cs().b[14][0]++,!recursive)&&(cov_22i8nvh4cs().b[14][1]++,el.matches('[aria-labelledby]'))){cov_22i8nvh4cs().b[13][0]++;var ids=(cov_22i8nvh4cs().s[43]++,el.getAttribute('aria-labelledby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[44]++,ids.map(function(id){cov_22i8nvh4cs().f[5]++;var label=(cov_22i8nvh4cs().s[45]++,document.getElementById(id));cov_22i8nvh4cs().s[46]++;return label?(cov_22i8nvh4cs().b[15][0]++,getName(label,true,visited,true)):(cov_22i8nvh4cs().b[15][1]++,'');}));cov_22i8nvh4cs().s[47]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[13][1]++;}// C
-1 1166 cov_22i8nvh4cs().s[42]++;if((cov_22i8nvh4cs().b[14][0]++,!recursive)&&(cov_22i8nvh4cs().b[14][1]++,el.matches('[aria-labelledby]'))){cov_22i8nvh4cs().b[13][0]++;var ids=(cov_22i8nvh4cs().s[43]++,el.getAttribute('aria-labelledby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[44]++,ids.map(id=>{cov_22i8nvh4cs().f[5]++;var label=(cov_22i8nvh4cs().s[45]++,document.getElementById(id));cov_22i8nvh4cs().s[46]++;return label?(cov_22i8nvh4cs().b[15][0]++,getName(label,true,visited,true)):(cov_22i8nvh4cs().b[15][1]++,'');}));cov_22i8nvh4cs().s[47]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[13][1]++;}// C
1063 1167 cov_22i8nvh4cs().s[48]++;if((cov_22i8nvh4cs().b[17][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[17][1]++,el.matches('[aria-label]'))){cov_22i8nvh4cs().b[16][0]++;cov_22i8nvh4cs().s[49]++;// FIXME: may skip to 2E
1064 1168 ret=el.getAttribute('aria-label');}else{cov_22i8nvh4cs().b[16][1]++;}// D
1065 -1 cov_22i8nvh4cs().s[50]++;if((cov_22i8nvh4cs().b[19][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[19][1]++,!recursive)&&(cov_22i8nvh4cs().b[19][2]++,el.labels)){cov_22i8nvh4cs().b[18][0]++;var strings=(cov_22i8nvh4cs().s[51]++,Array.prototype.map.call(el.labels,function(label){cov_22i8nvh4cs().f[6]++;cov_22i8nvh4cs().s[52]++;return getName(label,true,visited);}));cov_22i8nvh4cs().s[53]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[18][1]++;}cov_22i8nvh4cs().s[54]++;if(!ret.trim()){cov_22i8nvh4cs().b[20][0]++;cov_22i8nvh4cs().s[55]++;ret=(cov_22i8nvh4cs().b[21][0]++,el.placeholder)||(cov_22i8nvh4cs().b[21][1]++,'');}else{cov_22i8nvh4cs().b[20][1]++;}cov_22i8nvh4cs().s[56]++;if(!ret.trim()){cov_22i8nvh4cs().b[22][0]++;cov_22i8nvh4cs().s[57]++;ret=(cov_22i8nvh4cs().b[23][0]++,el.alt)||(cov_22i8nvh4cs().b[23][1]++,'');}else{cov_22i8nvh4cs().b[22][1]++;}cov_22i8nvh4cs().s[58]++;if((cov_22i8nvh4cs().b[25][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[25][1]++,el.matches('abbr,acronym'))&&(cov_22i8nvh4cs().b[25][2]++,el.title)){cov_22i8nvh4cs().b[24][0]++;cov_22i8nvh4cs().s[59]++;ret=el.title;}else{cov_22i8nvh4cs().b[24][1]++;}cov_22i8nvh4cs().s[60]++;if(!ret.trim()){cov_22i8nvh4cs().b[26][0]++;cov_22i8nvh4cs().s[61]++;for(var selector in constants.nameFromDescendant){cov_22i8nvh4cs().s[62]++;if(el.matches(selector)){cov_22i8nvh4cs().b[27][0]++;var descendant=(cov_22i8nvh4cs().s[63]++,el.querySelector(constants.nameFromDescendant[selector]));cov_22i8nvh4cs().s[64]++;if(descendant){cov_22i8nvh4cs().b[28][0]++;cov_22i8nvh4cs().s[65]++;ret=getName(descendant,true,visited);}else{cov_22i8nvh4cs().b[28][1]++;}}else{cov_22i8nvh4cs().b[27][1]++;}}}else{cov_22i8nvh4cs().b[26][1]++;}// E
1066 -1 cov_22i8nvh4cs().s[66]++;if((cov_22i8nvh4cs().b[30][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[30][1]++,recursive)||(cov_22i8nvh4cs().b[30][2]++,isInLabelForOtherWidget(el))||(cov_22i8nvh4cs().b[30][3]++,query.matches(el,'button')))){cov_22i8nvh4cs().b[29][0]++;cov_22i8nvh4cs().s[67]++;if(query.matches(el,'textbox,button,combobox,listbox,range')){cov_22i8nvh4cs().b[31][0]++;cov_22i8nvh4cs().s[68]++;if(query.matches(el,'textbox,button')){cov_22i8nvh4cs().b[32][0]++;cov_22i8nvh4cs().s[69]++;ret=(cov_22i8nvh4cs().b[33][0]++,el.value)||(cov_22i8nvh4cs().b[33][1]++,el.textContent);}else{cov_22i8nvh4cs().b[32][1]++;cov_22i8nvh4cs().s[70]++;if(query.matches(el,'combobox,listbox')){cov_22i8nvh4cs().b[34][0]++;var selected=(cov_22i8nvh4cs().s[71]++,(cov_22i8nvh4cs().b[35][0]++,query.querySelector(el,':selected'))||(cov_22i8nvh4cs().b[35][1]++,query.querySelector(el,'option')));cov_22i8nvh4cs().s[72]++;if(selected){cov_22i8nvh4cs().b[36][0]++;cov_22i8nvh4cs().s[73]++;ret=getName(selected,recursive,visited);}else{cov_22i8nvh4cs().b[36][1]++;cov_22i8nvh4cs().s[74]++;ret=(cov_22i8nvh4cs().b[37][0]++,el.value)||(cov_22i8nvh4cs().b[37][1]++,'');}}else{cov_22i8nvh4cs().b[34][1]++;cov_22i8nvh4cs().s[75]++;if(query.matches(el,'range')){cov_22i8nvh4cs().b[38][0]++;cov_22i8nvh4cs().s[76]++;ret=''+((cov_22i8nvh4cs().b[39][0]++,query.getAttribute(el,'valuetext'))||(cov_22i8nvh4cs().b[39][1]++,query.getAttribute(el,'valuenow'))||(cov_22i8nvh4cs().b[39][2]++,el.value));}else{cov_22i8nvh4cs().b[38][1]++;}}}}else{cov_22i8nvh4cs().b[31][1]++;}}else{cov_22i8nvh4cs().b[29][1]++;}// F
-1 1169 cov_22i8nvh4cs().s[50]++;if((cov_22i8nvh4cs().b[19][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[19][1]++,!recursive)&&(cov_22i8nvh4cs().b[19][2]++,el.labels)){cov_22i8nvh4cs().b[18][0]++;var strings=(cov_22i8nvh4cs().s[51]++,Array.prototype.map.call(el.labels,label=>{cov_22i8nvh4cs().f[6]++;cov_22i8nvh4cs().s[52]++;return getName(label,true,visited);}));cov_22i8nvh4cs().s[53]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[18][1]++;}cov_22i8nvh4cs().s[54]++;if(!ret.trim()){cov_22i8nvh4cs().b[20][0]++;cov_22i8nvh4cs().s[55]++;ret=(cov_22i8nvh4cs().b[21][0]++,el.placeholder)||(cov_22i8nvh4cs().b[21][1]++,'');}else{cov_22i8nvh4cs().b[20][1]++;}cov_22i8nvh4cs().s[56]++;if(!ret.trim()){cov_22i8nvh4cs().b[22][0]++;cov_22i8nvh4cs().s[57]++;ret=(cov_22i8nvh4cs().b[23][0]++,el.alt)||(cov_22i8nvh4cs().b[23][1]++,'');}else{cov_22i8nvh4cs().b[22][1]++;}cov_22i8nvh4cs().s[58]++;if((cov_22i8nvh4cs().b[25][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[25][1]++,el.matches('abbr,acronym'))&&(cov_22i8nvh4cs().b[25][2]++,el.title)){cov_22i8nvh4cs().b[24][0]++;cov_22i8nvh4cs().s[59]++;ret=el.title;}else{cov_22i8nvh4cs().b[24][1]++;}cov_22i8nvh4cs().s[60]++;if(!ret.trim()){cov_22i8nvh4cs().b[26][0]++;cov_22i8nvh4cs().s[61]++;for(var selector in constants.nameFromDescendant){cov_22i8nvh4cs().s[62]++;if(el.matches(selector)){cov_22i8nvh4cs().b[27][0]++;var descendant=(cov_22i8nvh4cs().s[63]++,el.querySelector(constants.nameFromDescendant[selector]));cov_22i8nvh4cs().s[64]++;if(descendant){cov_22i8nvh4cs().b[28][0]++;cov_22i8nvh4cs().s[65]++;ret=getName(descendant,true,visited);}else{cov_22i8nvh4cs().b[28][1]++;}}else{cov_22i8nvh4cs().b[27][1]++;}}}else{cov_22i8nvh4cs().b[26][1]++;}cov_22i8nvh4cs().s[66]++;if((cov_22i8nvh4cs().b[30][0]++,!ret.trim())&&(cov_22i8nvh4cs().b[30][1]++,el.matches('svg *'))){cov_22i8nvh4cs().b[29][0]++;var svgTitle=(cov_22i8nvh4cs().s[67]++,el.querySelector('title'));cov_22i8nvh4cs().s[68]++;if((cov_22i8nvh4cs().b[32][0]++,svgTitle)&&(cov_22i8nvh4cs().b[32][1]++,svgTitle.parentElement===el)){cov_22i8nvh4cs().b[31][0]++;cov_22i8nvh4cs().s[69]++;ret=svgTitle.textContent;}else{cov_22i8nvh4cs().b[31][1]++;}}else{cov_22i8nvh4cs().b[29][1]++;}// E
-1 1170 cov_22i8nvh4cs().s[70]++;if((cov_22i8nvh4cs().b[34][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[34][1]++,recursive)||(cov_22i8nvh4cs().b[34][2]++,isInLabelForOtherWidget(el))||(cov_22i8nvh4cs().b[34][3]++,query.matches(el,'button')))){cov_22i8nvh4cs().b[33][0]++;cov_22i8nvh4cs().s[71]++;if(query.matches(el,'textbox,button,combobox,listbox,range')){cov_22i8nvh4cs().b[35][0]++;cov_22i8nvh4cs().s[72]++;if(query.matches(el,'textbox,button')){cov_22i8nvh4cs().b[36][0]++;cov_22i8nvh4cs().s[73]++;ret=(cov_22i8nvh4cs().b[37][0]++,el.value)||(cov_22i8nvh4cs().b[37][1]++,el.textContent);}else{cov_22i8nvh4cs().b[36][1]++;cov_22i8nvh4cs().s[74]++;if(query.matches(el,'combobox,listbox')){cov_22i8nvh4cs().b[38][0]++;var selected=(cov_22i8nvh4cs().s[75]++,(cov_22i8nvh4cs().b[39][0]++,query.querySelector(el,':selected'))||(cov_22i8nvh4cs().b[39][1]++,query.querySelector(el,'option')));cov_22i8nvh4cs().s[76]++;if(selected){cov_22i8nvh4cs().b[40][0]++;cov_22i8nvh4cs().s[77]++;ret=getName(selected,recursive,visited);}else{cov_22i8nvh4cs().b[40][1]++;cov_22i8nvh4cs().s[78]++;ret=(cov_22i8nvh4cs().b[41][0]++,el.value)||(cov_22i8nvh4cs().b[41][1]++,'');}}else{cov_22i8nvh4cs().b[38][1]++;cov_22i8nvh4cs().s[79]++;if(query.matches(el,'range')){cov_22i8nvh4cs().b[42][0]++;cov_22i8nvh4cs().s[80]++;ret=''+((cov_22i8nvh4cs().b[43][0]++,query.getAttribute(el,'valuetext'))||(cov_22i8nvh4cs().b[43][1]++,query.getAttribute(el,'valuenow'))||(cov_22i8nvh4cs().b[43][2]++,el.value));}else{cov_22i8nvh4cs().b[42][1]++;}}}}else{cov_22i8nvh4cs().b[35][1]++;}}else{cov_22i8nvh4cs().b[33][1]++;}// F
1067 1171 // FIXME: menu is not mentioned in the spec
1068 -1 cov_22i8nvh4cs().s[77]++;if((cov_22i8nvh4cs().b[41][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[41][1]++,recursive)||(cov_22i8nvh4cs().b[41][2]++,allowNameFromContent(el))||(cov_22i8nvh4cs().b[41][3]++,el.closest('label')))&&(cov_22i8nvh4cs().b[41][4]++,!query.matches(el,'menu'))){cov_22i8nvh4cs().b[40][0]++;cov_22i8nvh4cs().s[78]++;ret=getContent(el,visited);}else{cov_22i8nvh4cs().b[40][1]++;}cov_22i8nvh4cs().s[79]++;if(!ret.trim()){cov_22i8nvh4cs().b[42][0]++;cov_22i8nvh4cs().s[80]++;for(var selector in constants.nameDefaults){cov_22i8nvh4cs().s[81]++;if(el.matches(selector)){cov_22i8nvh4cs().b[43][0]++;cov_22i8nvh4cs().s[82]++;ret=constants.nameDefaults[selector];}else{cov_22i8nvh4cs().b[43][1]++;}}}else{cov_22i8nvh4cs().b[42][1]++;}// G/H
-1 1172 cov_22i8nvh4cs().s[81]++;if((cov_22i8nvh4cs().b[45][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[45][1]++,recursive)||(cov_22i8nvh4cs().b[45][2]++,allowNameFromContent(el))||(cov_22i8nvh4cs().b[45][3]++,el.closest('label')))&&(cov_22i8nvh4cs().b[45][4]++,!query.matches(el,'menu'))){cov_22i8nvh4cs().b[44][0]++;cov_22i8nvh4cs().s[82]++;ret=getContent(el,visited);}else{cov_22i8nvh4cs().b[44][1]++;}cov_22i8nvh4cs().s[83]++;if(!ret.trim()){cov_22i8nvh4cs().b[46][0]++;cov_22i8nvh4cs().s[84]++;for(var selector in constants.nameDefaults){cov_22i8nvh4cs().s[85]++;if(el.matches(selector)){cov_22i8nvh4cs().b[47][0]++;cov_22i8nvh4cs().s[86]++;ret=constants.nameDefaults[selector];}else{cov_22i8nvh4cs().b[47][1]++;}}}else{cov_22i8nvh4cs().b[46][1]++;}// G/H
1069 1173 // handled in getContent
1070 1174 // I
1071 1175 // FIXME: presentation not mentioned in the spec
1072 -1 cov_22i8nvh4cs().s[83]++;if((cov_22i8nvh4cs().b[45][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[45][1]++,directReference)||(cov_22i8nvh4cs().b[45][2]++,!query.matches(el,'presentation')))){cov_22i8nvh4cs().b[44][0]++;cov_22i8nvh4cs().s[84]++;ret=(cov_22i8nvh4cs().b[46][0]++,el.title)||(cov_22i8nvh4cs().b[46][1]++,'');}else{cov_22i8nvh4cs().b[44][1]++;}// FIXME: not exactly sure about this, but it reduces the number of failing
-1 1176 cov_22i8nvh4cs().s[87]++;if((cov_22i8nvh4cs().b[49][0]++,!ret.trim())&&((cov_22i8nvh4cs().b[49][1]++,directReference)||(cov_22i8nvh4cs().b[49][2]++,!query.matches(el,'presentation')))){cov_22i8nvh4cs().b[48][0]++;cov_22i8nvh4cs().s[88]++;ret=(cov_22i8nvh4cs().b[50][0]++,el.title)||(cov_22i8nvh4cs().b[50][1]++,'');}else{cov_22i8nvh4cs().b[48][1]++;}// FIXME: not exactly sure about this, but it reduces the number of failing
1073 1177 // WPT tests. Whitespace is hard.
1074 -1 cov_22i8nvh4cs().s[85]++;if(!ret.trim()){cov_22i8nvh4cs().b[47][0]++;cov_22i8nvh4cs().s[86]++;ret=' ';}else{cov_22i8nvh4cs().b[47][1]++;}var before=(cov_22i8nvh4cs().s[87]++,getPseudoContent(el,':before'));var after=(cov_22i8nvh4cs().s[88]++,getPseudoContent(el,':after'));cov_22i8nvh4cs().s[89]++;return before+ret+after;};cov_22i8nvh4cs().s[90]++;var getNameTrimmed=function(el){cov_22i8nvh4cs().f[7]++;cov_22i8nvh4cs().s[91]++;return getName(el).replace(/\s+/g,' ').trim();};cov_22i8nvh4cs().s[92]++;var getDescription=function(el){cov_22i8nvh4cs().f[8]++;var ret=(cov_22i8nvh4cs().s[93]++,'');cov_22i8nvh4cs().s[94]++;if(el.matches('[aria-describedby]')){cov_22i8nvh4cs().b[48][0]++;var ids=(cov_22i8nvh4cs().s[95]++,el.getAttribute('aria-describedby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[96]++,ids.map(function(id){cov_22i8nvh4cs().f[9]++;var label=(cov_22i8nvh4cs().s[97]++,document.getElementById(id));cov_22i8nvh4cs().s[98]++;return label?(cov_22i8nvh4cs().b[49][0]++,getName(label,true)):(cov_22i8nvh4cs().b[49][1]++,'');}));cov_22i8nvh4cs().s[99]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[48][1]++;cov_22i8nvh4cs().s[100]++;if(el.title){cov_22i8nvh4cs().b[50][0]++;cov_22i8nvh4cs().s[101]++;ret=el.title;}else{cov_22i8nvh4cs().b[50][1]++;cov_22i8nvh4cs().s[102]++;if(el.placeholder){cov_22i8nvh4cs().b[51][0]++;cov_22i8nvh4cs().s[103]++;ret=el.placeholder;}else{cov_22i8nvh4cs().b[51][1]++;}}}cov_22i8nvh4cs().s[104]++;ret=((cov_22i8nvh4cs().b[52][0]++,ret)||(cov_22i8nvh4cs().b[52][1]++,'')).trim().replace(/\s+/g,' ');cov_22i8nvh4cs().s[105]++;if(ret===getNameTrimmed(el)){cov_22i8nvh4cs().b[53][0]++;cov_22i8nvh4cs().s[106]++;ret='';}else{cov_22i8nvh4cs().b[53][1]++;}cov_22i8nvh4cs().s[107]++;return ret;};cov_22i8nvh4cs().s[108]++;module.exports={getName:getNameTrimmed,getDescription:getDescription};
-1 1178 cov_22i8nvh4cs().s[89]++;if(!ret.trim()){cov_22i8nvh4cs().b[51][0]++;cov_22i8nvh4cs().s[90]++;ret=' ';}else{cov_22i8nvh4cs().b[51][1]++;}var before=(cov_22i8nvh4cs().s[91]++,getPseudoContent(el,':before'));var after=(cov_22i8nvh4cs().s[92]++,getPseudoContent(el,':after'));cov_22i8nvh4cs().s[93]++;return before+ret+after;};cov_22i8nvh4cs().s[94]++;var getNameTrimmed=function(el){cov_22i8nvh4cs().f[7]++;cov_22i8nvh4cs().s[95]++;return getName(el).replace(/\s+/g,' ').trim();};cov_22i8nvh4cs().s[96]++;var getDescription=function(el){cov_22i8nvh4cs().f[8]++;var ret=(cov_22i8nvh4cs().s[97]++,'');cov_22i8nvh4cs().s[98]++;if(el.matches('[aria-describedby]')){cov_22i8nvh4cs().b[52][0]++;var ids=(cov_22i8nvh4cs().s[99]++,el.getAttribute('aria-describedby').split(/\s+/));var strings=(cov_22i8nvh4cs().s[100]++,ids.map(id=>{cov_22i8nvh4cs().f[9]++;var label=(cov_22i8nvh4cs().s[101]++,document.getElementById(id));cov_22i8nvh4cs().s[102]++;return label?(cov_22i8nvh4cs().b[53][0]++,getName(label,true)):(cov_22i8nvh4cs().b[53][1]++,'');}));cov_22i8nvh4cs().s[103]++;ret=strings.join(' ');}else{cov_22i8nvh4cs().b[52][1]++;cov_22i8nvh4cs().s[104]++;if(el.matches('[aria-description]')){cov_22i8nvh4cs().b[54][0]++;cov_22i8nvh4cs().s[105]++;ret=el.getAttribute('aria-description');}else{cov_22i8nvh4cs().b[54][1]++;cov_22i8nvh4cs().s[106]++;if(el.matches('svg *')){cov_22i8nvh4cs().b[55][0]++;var svgDesc=(cov_22i8nvh4cs().s[107]++,el.querySelector('desc'));cov_22i8nvh4cs().s[108]++;if((cov_22i8nvh4cs().b[57][0]++,svgDesc)&&(cov_22i8nvh4cs().b[57][1]++,svgDesc.parentElement===el)){cov_22i8nvh4cs().b[56][0]++;cov_22i8nvh4cs().s[109]++;ret=svgDesc.textContent;}else{cov_22i8nvh4cs().b[56][1]++;}}else{cov_22i8nvh4cs().b[55][1]++;cov_22i8nvh4cs().s[110]++;if(el.title){cov_22i8nvh4cs().b[58][0]++;cov_22i8nvh4cs().s[111]++;ret=el.title;}else{cov_22i8nvh4cs().b[58][1]++;}}}}cov_22i8nvh4cs().s[112]++;ret=((cov_22i8nvh4cs().b[59][0]++,ret)||(cov_22i8nvh4cs().b[59][1]++,'')).trim().replace(/\s+/g,' ');cov_22i8nvh4cs().s[113]++;if(ret===getNameTrimmed(el)){cov_22i8nvh4cs().b[60][0]++;cov_22i8nvh4cs().s[114]++;ret='';}else{cov_22i8nvh4cs().b[60][1]++;}cov_22i8nvh4cs().s[115]++;return ret;};cov_22i8nvh4cs().s[116]++;module.exports={getName:getNameTrimmed,getDescription:getDescription};
1075 1179
1076 1180
1077 1181 },{"./atree.js":5,"./constants.js":7,"./query.js":9}],9:[function(require,module,exports){
@@ -1099,7 +1203,7 @@ var _querySelector = function(all) {
1099 1203 return function(root, role) {
1100 1204 var results = [];
1101 1205 try {
1102 -1 atree.walk(root, function(node) {
-1 1206 atree.walk(root, node => {
1103 1207 if (node.nodeType === node.ELEMENT_NODE) {
1104 1208 // FIXME: skip hidden elements
1105 1209 if (matches(node, role)) {
@@ -1120,7 +1224,7 @@ var _querySelector = function(all) {
1120 1224 };
1121 1225
1122 1226 var closest = function(el, selector) {
1123 -1 return atree.searchUp(el, function(candidate) {
-1 1227 return atree.searchUp(el, candidate => {
1124 1228 if (candidate.nodeType === candidate.ELEMENT_NODE) {
1125 1229 return matches(candidate, selector);
1126 1230 }
@@ -1128,9 +1232,7 @@ var closest = function(el, selector) {
1128 1232 };
1129 1233
1130 1234 module.exports = {
1131 -1 getRole: function(el) {
1132 -1 return attrs.getRole(el);
1133 -1 },
-1 1235 getRole: el => attrs.getRole(el),
1134 1236 getAttribute: attrs.getAttribute,
1135 1237 matches: matches,
1136 1238 querySelector: _querySelector(),
diff --git a/package.json b/package.json
@@ -5,8 +5,8 @@ 5 5 "devDependencies": { 6 6 "accessibility-developer-tools": "2.12.0", 7 7 "aria-api": "0.5.0",8 -1 "axe-core": "4.7.2",9 -1 "dom-accessibility-api": "0.6.0",-1 8 "axe-core": "4.8.3", -1 9 "dom-accessibility-api": "0.6.3", 10 10 "nyc": "^15.1.0", 11 11 "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation" 12 12 },
diff --git a/src/babel.js b/src/babel.js
@@ -31,7 +31,7 @@ var implementations = [{
31 31 url: 'https://github.com/accdc/w3c-alternative-text-computation',
32 32 fn: accdc.calcNames,
33 33 }, {
34 -1 name: 'dom-accessibility-api (0.6.0)',
-1 34 name: 'dom-accessibility-api (0.6.3)',
35 35 url: 'https://github.com/eps1lon/dom-accessibility-api/',
36 36 fn: function(el) {
37 37 return {
@@ -41,7 +41,7 @@ var implementations = [{
41 41 };
42 42 },
43 43 }, {
44 -1 name: 'axe (4.7.2)',
-1 44 name: 'axe (4.8.3)',
45 45 url: 'https://github.com/dequelabs/axe-core',
46 46 fn: function(el) {
47 47 axe._tree = axe.utils.getFlattenedTree(document.body);