1 |
- {"ast":null,"code":"\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime-corejs3/helpers/interopRequireDefault\");\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs3/core-js-stable/object/define-property\");\n\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = void 0;\n\nvar _set = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/set\"));\n\nvar _concat = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"));\n\nvar _keys = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/keys\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime-corejs3/helpers/toConsumableArray\"));\n\nvar _forEach = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"));\n\nvar _map = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/map\"));\n\nvar _rolesMap = _interopRequireDefault(require(\"./rolesMap\"));\n\nvar _context;\n\nvar roleElementMap = new _map.default([]);\n(0, _forEach.default)(_context = (0, _toConsumableArray2.default)((0, _keys.default)(_rolesMap.default).call(_rolesMap.default))).call(_context, function (key) {\n var role = _rolesMap.default.get(key);\n\n if (role) {\n var _context2, _context3;\n\n (0, _forEach.default)(_context2 = (0, _concat.default)(_context3 = []).call(_context3, (0, _toConsumableArray2.default)(role.baseConcepts), (0, _toConsumableArray2.default)(role.relatedConcepts))).call(_context2, function (relation) {\n if (relation.module === 'HTML') {\n var concept = relation.concept;\n\n if (concept) {\n var relationConcepts = roleElementMap.get(key) || new _set.default([]);\n relationConcepts.add(concept);\n roleElementMap.set(key, relationConcepts);\n }\n }\n });\n }\n});\nvar _default = roleElementMap;\nexports.default = _default;","map":{"version":3,"sources":["/Users/jane/Documents/Курс Front-end/HW8/myproject/node_modules/aria-query/lib/roleElementMap.js"],"names":["_interopRequireDefault","require","_Object$defineProperty","exports","value","default","_set","_concat","_keys","_toConsumableArray2","_forEach","_map","_rolesMap","_context","roleElementMap","call","key","role","get","_context2","_context3","baseConcepts","relatedConcepts","relation","module","concept","relationConcepts","add","set","_default"],"mappings":"AAAA;;AAEA,IAAIA,sBAAsB,GAAGC,OAAO,CAAC,sDAAD,CAApC;;AAEA,IAAIC,sBAAsB,GAAGD,OAAO,CAAC,8DAAD,CAApC;;AAEAC,sBAAsB,CAACC,OAAD,EAAU,YAAV,EAAwB;AAC5CC,EAAAA,KAAK,EAAE;AADqC,CAAxB,CAAtB;;AAIAD,OAAO,CAACE,OAAR,GAAkB,KAAK,CAAvB;;AAEA,IAAIC,IAAI,GAAGN,sBAAsB,CAACC,OAAO,CAAC,2CAAD,CAAR,CAAjC;;AAEA,IAAIM,OAAO,GAAGP,sBAAsB,CAACC,OAAO,CAAC,uDAAD,CAAR,CAApC;;AAEA,IAAIO,KAAK,GAAGR,sBAAsB,CAACC,OAAO,CAAC,qDAAD,CAAR,CAAlC;;AAEA,IAAIQ,mBAAmB,GAAGT,sBAAsB,CAACC,OAAO,CAAC,kDAAD,CAAR,CAAhD;;AAEA,IAAIS,QAAQ,GAAGV,sBAAsB,CAACC,OAAO,CAAC,yDAAD,CAAR,CAArC;;AAEA,IAAIU,IAAI,GAAGX,sBAAsB,CAACC,OAAO,CAAC,2CAAD,CAAR,CAAjC;;AAEA,IAAIW,SAAS,GAAGZ,sBAAsB,CAACC,OAAO,CAAC,YAAD,CAAR,CAAtC;;AAEA,IAAIY,QAAJ;;AAEA,IAAIC,cAAc,GAAG,IAAIH,IAAI,CAACN,OAAT,CAAiB,EAAjB,CAArB;AACA,CAAC,GAAGK,QAAQ,CAACL,OAAb,EAAsBQ,QAAQ,GAAG,CAAC,GAAGJ,mBAAmB,CAACJ,OAAxB,EAAiC,CAAC,GAAGG,KAAK,CAACH,OAAV,EAAmBO,SAAS,CAACP,OAA7B,EAAsCU,IAAtC,CAA2CH,SAAS,CAACP,OAArD,CAAjC,CAAjC,EAAkIU,IAAlI,CAAuIF,QAAvI,EAAiJ,UAAUG,GAAV,EAAe;AAC9J,MAAIC,IAAI,GAAGL,SAAS,CAACP,OAAV,CAAkBa,GAAlB,CAAsBF,GAAtB,CAAX;;AAEA,MAAIC,IAAJ,EAAU;AACR,QAAIE,SAAJ,EAAeC,SAAf;;AAEA,KAAC,GAAGV,QAAQ,CAACL,OAAb,EAAsBc,SAAS,GAAG,CAAC,GAAGZ,OAAO,CAACF,OAAZ,EAAqBe,SAAS,GAAG,EAAjC,EAAqCL,IAArC,CAA0CK,SAA1C,EAAqD,CAAC,GAAGX,mBAAmB,CAACJ,OAAxB,EAAiCY,IAAI,CAACI,YAAtC,CAArD,EAA0G,CAAC,GAAGZ,mBAAmB,CAACJ,OAAxB,EAAiCY,IAAI,CAACK,eAAtC,CAA1G,CAAlC,EAAqMP,IAArM,CAA0MI,SAA1M,EAAqN,UAAUI,QAAV,EAAoB;AACvO,UAAIA,QAAQ,CAACC,MAAT,KAAoB,MAAxB,EAAgC;AAC9B,YAAIC,OAAO,GAAGF,QAAQ,CAACE,OAAvB;;AAEA,YAAIA,OAAJ,EAAa;AACX,cAAIC,gBAAgB,GAAGZ,cAAc,CAACI,GAAf,CAAmBF,GAAnB,KAA2B,IAAIV,IAAI,CAACD,OAAT,CAAiB,EAAjB,CAAlD;AACAqB,UAAAA,gBAAgB,CAACC,GAAjB,CAAqBF,OAArB;AACAX,UAAAA,cAAc,CAACc,GAAf,CAAmBZ,GAAnB,EAAwBU,gBAAxB;AACD;AACF;AACF,KAVD;AAWD;AACF,CAlBD;AAmBA,IAAIG,QAAQ,GAAGf,cAAf;AACAX,OAAO,CAACE,OAAR,GAAkBwB,QAAlB","sourcesContent":["\"use strict\";\n\nvar _interopRequireDefault = require(\"@babel/runtime-corejs3/helpers/interopRequireDefault\");\n\nvar _Object$defineProperty = require(\"@babel/runtime-corejs3/core-js-stable/object/define-property\");\n\n_Object$defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nexports.default = void 0;\n\nvar _set = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/set\"));\n\nvar _concat = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/concat\"));\n\nvar _keys = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/keys\"));\n\nvar _toConsumableArray2 = _interopRequireDefault(require(\"@babel/runtime-corejs3/helpers/toConsumableArray\"));\n\nvar _forEach = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/instance/for-each\"));\n\nvar _map = _interopRequireDefault(require(\"@babel/runtime-corejs3/core-js-stable/map\"));\n\nvar _rolesMap = _interopRequireDefault(require(\"./rolesMap\"));\n\nvar _context;\n\nvar roleElementMap = new _map.default([]);\n(0, _forEach.default)(_context = (0, _toConsumableArray2.default)((0, _keys.default)(_rolesMap.default).call(_rolesMap.default))).call(_context, function (key) {\n var role = _rolesMap.default.get(key);\n\n if (role) {\n var _context2, _context3;\n\n (0, _forEach.default)(_context2 = (0, _concat.default)(_context3 = []).call(_context3, (0, _toConsumableArray2.default)(role.baseConcepts), (0, _toConsumableArray2.default)(role.relatedConcepts))).call(_context2, function (relation) {\n if (relation.module === 'HTML') {\n var concept = relation.concept;\n\n if (concept) {\n var relationConcepts = roleElementMap.get(key) || new _set.default([]);\n relationConcepts.add(concept);\n roleElementMap.set(key, relationConcepts);\n }\n }\n });\n }\n});\nvar _default = roleElementMap;\nexports.default = _default;"]},"metadata":{},"sourceType":"script"}
|