"use strict";Liferay.Loader.define("liferay!analytics-settings-web$aria-query@5.1.3/lib/roleElementMap",["module","exports","require","./util/iterationDecorator","./rolesMap"],(function(r,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_interopRequireDefault(o("./util/iterationDecorator")),i=_interopRequireDefault(o("./rolesMap"));function _interopRequireDefault(r){return r&&r.__esModule?r:{default:r}}function _slicedToArray(r,t){return function _arrayWithHoles(r){if(Array.isArray(r))return r}(r)||function _iterableToArrayLimit(r,t){var o=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==o)return;var a,i,u=[],l=!0,c=!1;try{for(o=o.call(r);!(l=(a=o.next()).done)&&(u.push(a.value),!t||u.length!==t);l=!0);}catch(r){c=!0,i=r}finally{try{l||null==o.return||o.return()}finally{if(c)throw i}}return u}(r,t)||_unsupportedIterableToArray(r,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _createForOfIteratorHelper(r,t){var o="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!o){if(Array.isArray(r)||(o=_unsupportedIterableToArray(r))||t&&r&&"number"==typeof r.length){o&&(r=o);var a=0,i=function F(){};return{s:i,n:function n(){return a>=r.length?{done:!0}:{done:!1,value:r[a++]}},e:function e(r){throw r},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,l=!0,c=!1;return{s:function s(){o=o.call(r)},n:function n(){var r=o.next();return l=r.done,r},e:function e(r){c=!0,u=r},f:function f(){try{l||null==o.return||o.return()}finally{if(c)throw u}}}}function _unsupportedIterableToArray(r,t){if(r){if("string"==typeof r)return _arrayLikeToArray(r,t);var o=Object.prototype.toString.call(r).slice(8,-1);return"Object"===o&&r.constructor&&(o=r.constructor.name),"Map"===o||"Set"===o?Array.from(r):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(r,t):void 0}}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var o=0,a=new Array(t);o<t;o++)a[o]=r[o];return a}for(var u=[],l=i.default.keys(),c=function _loop(r){var t=l[r],o=i.default.get(t);if(o)for(var a=[].concat(o.baseConcepts,o.relatedConcepts),c=0;c<a.length;c++){var y=a[c];if("HTML"===y.module){var d=y.concept;if(d){var p=u.find((function(r){return r[0]===t})),v=void 0;(v=p?p[1]:[]).push(d),u.push([t,v])}}}},y=0;y<l.length;y++)c(y);var d={entries:function entries(){return u},forEach:function forEach(r){var t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=_createForOfIteratorHelper(u);try{for(a.s();!(t=a.n()).done;){var i=_slicedToArray(t.value,2),l=i[0],c=i[1];r.call(o,c,l,u)}}catch(r){a.e(r)}finally{a.f()}},get:function get(r){var t=u.find((function(t){return t[0]===r}));return t&&t[1]},has:function has(r){return!!d.get(r)},keys:function keys(){return u.map((function(r){return _slicedToArray(r,1)[0]}))},values:function values(){return u.map((function(r){return _slicedToArray(r,2)[1]}))}},p=(0,a.default)(d,d.entries());t.default=p}}));
//# sourceMappingURL=roleElementMap.js.map