ece-docs-components 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/478cc16f35f640d6.svg +21 -0
- package/dist/cjs/99c01435312d391a.svg +18 -0
- package/dist/cjs/ThemeProvider.js +1 -0
- package/dist/cjs/ThemeProvider.js.map +1 -1
- package/dist/cjs/components/Breadcrumb.js +2 -2
- package/dist/cjs/components/Breadcrumb.js.map +1 -1
- package/dist/cjs/components/Button.js +3 -1
- package/dist/cjs/components/Button.js.map +1 -1
- package/dist/cjs/components/Card.js +1 -1
- package/dist/cjs/components/Card.js.map +1 -1
- package/dist/cjs/components/Header.js +37 -27
- package/dist/cjs/components/Header.js.map +1 -1
- package/dist/cjs/components/Modal.js +9 -9
- package/dist/cjs/components/Modal.js.map +1 -1
- package/dist/cjs/components/ReadBy.js +2 -2
- package/dist/cjs/components/ReadBy.js.map +1 -1
- package/dist/cjs/components/Sidebar.js +7 -7
- package/dist/cjs/components/Sidebar.js.map +1 -1
- package/dist/cjs/components/StatusBar.js +4 -2
- package/dist/cjs/components/StatusBar.js.map +1 -1
- package/dist/cjs/components/TableOfContents.js +5 -5
- package/dist/cjs/components/TableOfContents.js.map +1 -1
- package/dist/cjs/components/Tabs.js +8 -6
- package/dist/cjs/components/Tabs.js.map +1 -1
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_ECEDocs.svg.js +38 -0
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_ECEDocs.svg.js.map +1 -0
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_GPDocs.svg.js +39 -0
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_GPDocs.svg.js.map +1 -0
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_SchoolDocs.svg.js +38 -0
- package/dist/cjs/images/PrimaryLogo_Variation_Cream_SchoolDocs.svg.js.map +1 -0
- package/dist/cjs/node_modules/domelementtype/lib/index.js +14 -14
- package/dist/cjs/node_modules/domelementtype/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/domhandler/lib/index.js +9 -9
- package/dist/cjs/node_modules/domhandler/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/domutils/lib/index.js +18 -18
- package/dist/cjs/node_modules/domutils/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/entities/lib/decode.js +16 -16
- package/dist/cjs/node_modules/entities/lib/decode.js.map +1 -1
- package/dist/cjs/node_modules/entities/lib/decode_codepoint.js +7 -7
- package/dist/cjs/node_modules/entities/lib/decode_codepoint.js.map +1 -1
- package/dist/cjs/node_modules/entities/lib/escape.js +13 -13
- package/dist/cjs/node_modules/entities/lib/escape.js.map +1 -1
- package/dist/cjs/node_modules/entities/lib/index.js +28 -28
- package/dist/cjs/node_modules/entities/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/html-dom-parser/lib/index.js +8 -8
- package/dist/cjs/node_modules/html-dom-parser/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/html-react-parser/lib/index.js +11 -11
- package/dist/cjs/node_modules/html-react-parser/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/html-react-parser/lib/utilities.js +10 -10
- package/dist/cjs/node_modules/html-react-parser/lib/utilities.js.map +1 -1
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js +16 -16
- package/dist/cjs/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +7 -7
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -1
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +16 -16
- package/dist/cjs/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -1
- package/dist/cjs/themes/ECETheme.js +29 -9
- package/dist/cjs/themes/ECETheme.js.map +1 -1
- package/dist/cjs/themes/GPTheme.js +28 -9
- package/dist/cjs/themes/GPTheme.js.map +1 -1
- package/dist/cjs/themes/SchoolTheme.js +30 -11
- package/dist/cjs/themes/SchoolTheme.js.map +1 -1
- package/dist/esm/478cc16f35f640d6.svg +21 -0
- package/dist/esm/99c01435312d391a.svg +18 -0
- package/dist/esm/ThemeProvider.d.ts +1 -0
- package/dist/esm/ThemeProvider.js +1 -1
- package/dist/esm/ThemeProvider.js.map +1 -1
- package/dist/esm/components/Breadcrumb.js +2 -2
- package/dist/esm/components/Breadcrumb.js.map +1 -1
- package/dist/esm/components/Button.js +3 -1
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/Card.js +1 -1
- package/dist/esm/components/Card.js.map +1 -1
- package/dist/esm/components/Header.js +38 -28
- package/dist/esm/components/Header.js.map +1 -1
- package/dist/esm/components/Modal.js +9 -9
- package/dist/esm/components/Modal.js.map +1 -1
- package/dist/esm/components/ReadBy.js +2 -2
- package/dist/esm/components/ReadBy.js.map +1 -1
- package/dist/esm/components/Sidebar.js +7 -7
- package/dist/esm/components/Sidebar.js.map +1 -1
- package/dist/esm/components/StatusBar.js +4 -2
- package/dist/esm/components/StatusBar.js.map +1 -1
- package/dist/esm/components/TableOfContents.js +5 -5
- package/dist/esm/components/TableOfContents.js.map +1 -1
- package/dist/esm/components/Tabs.js +8 -6
- package/dist/esm/components/Tabs.js.map +1 -1
- package/dist/esm/images/PrimaryLogo_Variation_Cream_ECEDocs.svg.js +17 -0
- package/dist/esm/images/PrimaryLogo_Variation_Cream_ECEDocs.svg.js.map +1 -0
- package/dist/esm/images/PrimaryLogo_Variation_Cream_GPDocs.svg.js +18 -0
- package/dist/esm/images/PrimaryLogo_Variation_Cream_GPDocs.svg.js.map +1 -0
- package/dist/esm/images/PrimaryLogo_Variation_Cream_SchoolDocs.svg.js +17 -0
- package/dist/esm/images/PrimaryLogo_Variation_Cream_SchoolDocs.svg.js.map +1 -0
- package/dist/esm/node_modules/domelementtype/lib/index.js +14 -14
- package/dist/esm/node_modules/domelementtype/lib/index.js.map +1 -1
- package/dist/esm/node_modules/domhandler/lib/index.js +8 -8
- package/dist/esm/node_modules/domhandler/lib/index.js.map +1 -1
- package/dist/esm/node_modules/domutils/lib/index.js +18 -18
- package/dist/esm/node_modules/domutils/lib/index.js.map +1 -1
- package/dist/esm/node_modules/entities/lib/decode.js +16 -16
- package/dist/esm/node_modules/entities/lib/decode.js.map +1 -1
- package/dist/esm/node_modules/entities/lib/decode_codepoint.js +7 -7
- package/dist/esm/node_modules/entities/lib/decode_codepoint.js.map +1 -1
- package/dist/esm/node_modules/entities/lib/escape.js +13 -13
- package/dist/esm/node_modules/entities/lib/escape.js.map +1 -1
- package/dist/esm/node_modules/entities/lib/index.js +28 -28
- package/dist/esm/node_modules/entities/lib/index.js.map +1 -1
- package/dist/esm/node_modules/html-dom-parser/lib/index.js +7 -7
- package/dist/esm/node_modules/html-dom-parser/lib/index.js.map +1 -1
- package/dist/esm/node_modules/html-react-parser/lib/index.js +11 -11
- package/dist/esm/node_modules/html-react-parser/lib/index.js.map +1 -1
- package/dist/esm/node_modules/html-react-parser/lib/utilities.js +10 -10
- package/dist/esm/node_modules/html-react-parser/lib/utilities.js.map +1 -1
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js +16 -16
- package/dist/esm/node_modules/htmlparser2/dist/commonjs/index.js.map +1 -1
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js +7 -7
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode-codepoint.js.map +1 -1
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js +16 -16
- package/dist/esm/node_modules/htmlparser2/node_modules/entities/dist/commonjs/decode.js.map +1 -1
- package/dist/esm/theme-types.d.ts +2 -0
- package/dist/esm/themes/ECETheme.js +29 -9
- package/dist/esm/themes/ECETheme.js.map +1 -1
- package/dist/esm/themes/GPTheme.js +28 -9
- package/dist/esm/themes/GPTheme.js.map +1 -1
- package/dist/esm/themes/SchoolTheme.js +30 -11
- package/dist/esm/themes/SchoolTheme.js.map +1 -1
- package/package.json +1 -3
|
@@ -5,10 +5,10 @@ var hasRequired_escape;
|
|
|
5
5
|
function require_escape () {
|
|
6
6
|
if (hasRequired_escape) return _escape;
|
|
7
7
|
hasRequired_escape = 1;
|
|
8
|
-
(function (exports) {
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;
|
|
11
|
-
exports.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
|
|
8
|
+
(function (exports$1) {
|
|
9
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
10
|
+
exports$1.escapeText = exports$1.escapeAttribute = exports$1.escapeUTF8 = exports$1.escape = exports$1.encodeXML = exports$1.getCodePoint = exports$1.xmlReplacer = void 0;
|
|
11
|
+
exports$1.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
|
|
12
12
|
var xmlCodeMap = new Map([
|
|
13
13
|
[34, """],
|
|
14
14
|
[38, "&"],
|
|
@@ -17,7 +17,7 @@ function require_escape () {
|
|
|
17
17
|
[62, ">"],
|
|
18
18
|
]);
|
|
19
19
|
// For compatibility with node < 4, we wrap `codePointAt`
|
|
20
|
-
exports.getCodePoint =
|
|
20
|
+
exports$1.getCodePoint =
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
22
22
|
String.prototype.codePointAt != null
|
|
23
23
|
? function (str, index) { return str.codePointAt(index); }
|
|
@@ -41,7 +41,7 @@ function require_escape () {
|
|
|
41
41
|
var ret = "";
|
|
42
42
|
var lastIdx = 0;
|
|
43
43
|
var match;
|
|
44
|
-
while ((match = exports.xmlReplacer.exec(str)) !== null) {
|
|
44
|
+
while ((match = exports$1.xmlReplacer.exec(str)) !== null) {
|
|
45
45
|
var i = match.index;
|
|
46
46
|
var char = str.charCodeAt(i);
|
|
47
47
|
var next = xmlCodeMap.get(char);
|
|
@@ -50,14 +50,14 @@ function require_escape () {
|
|
|
50
50
|
lastIdx = i + 1;
|
|
51
51
|
}
|
|
52
52
|
else {
|
|
53
|
-
ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, exports.getCodePoint)(str, i).toString(16), ";");
|
|
53
|
+
ret += "".concat(str.substring(lastIdx, i), "&#x").concat((0, exports$1.getCodePoint)(str, i).toString(16), ";");
|
|
54
54
|
// Increase by 1 if we have a surrogate pair
|
|
55
|
-
lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
|
|
55
|
+
lastIdx = exports$1.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return ret + str.substr(lastIdx);
|
|
59
59
|
}
|
|
60
|
-
exports.encodeXML = encodeXML;
|
|
60
|
+
exports$1.encodeXML = encodeXML;
|
|
61
61
|
/**
|
|
62
62
|
* Encodes all non-ASCII characters, as well as characters not valid in XML
|
|
63
63
|
* documents using numeric hexadecimal reference (eg. `ü`).
|
|
@@ -67,7 +67,7 @@ function require_escape () {
|
|
|
67
67
|
*
|
|
68
68
|
* @param data String to escape.
|
|
69
69
|
*/
|
|
70
|
-
exports.escape = encodeXML;
|
|
70
|
+
exports$1.escape = encodeXML;
|
|
71
71
|
/**
|
|
72
72
|
* Creates a function that escapes all characters matched by the given regular
|
|
73
73
|
* expression using the given map of characters to escape to their entities.
|
|
@@ -102,14 +102,14 @@ function require_escape () {
|
|
|
102
102
|
*
|
|
103
103
|
* @param data String to escape.
|
|
104
104
|
*/
|
|
105
|
-
exports.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
|
|
105
|
+
exports$1.escapeUTF8 = getEscaper(/[&<>'"]/g, xmlCodeMap);
|
|
106
106
|
/**
|
|
107
107
|
* Encodes all characters that have to be escaped in HTML attributes,
|
|
108
108
|
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
109
109
|
*
|
|
110
110
|
* @param data String to escape.
|
|
111
111
|
*/
|
|
112
|
-
exports.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
|
|
112
|
+
exports$1.escapeAttribute = getEscaper(/["&\u00A0]/g, new Map([
|
|
113
113
|
[34, """],
|
|
114
114
|
[38, "&"],
|
|
115
115
|
[160, " "],
|
|
@@ -120,7 +120,7 @@ function require_escape () {
|
|
|
120
120
|
*
|
|
121
121
|
* @param data String to escape.
|
|
122
122
|
*/
|
|
123
|
-
exports.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
|
|
123
|
+
exports$1.escapeText = getEscaper(/[&<>\u00A0]/g, new Map([
|
|
124
124
|
[38, "&"],
|
|
125
125
|
[60, "<"],
|
|
126
126
|
[62, ">"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escape.js","sources":["../../../../../node_modules/entities/lib/escape.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;\nexports.xmlReplacer = /[\"&'<>$\\x80-\\uFFFF]/g;\nvar xmlCodeMap = new Map([\n [34, \""\"],\n [38, \"&\"],\n [39, \"'\"],\n [60, \"<\"],\n [62, \">\"],\n]);\n// For compatibility with node < 4, we wrap `codePointAt`\nexports.getCodePoint = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nString.prototype.codePointAt != null\n ? function (str, index) { return str.codePointAt(index); }\n : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n function (c, index) {\n return (c.charCodeAt(index) & 0xfc00) === 0xd800\n ? (c.charCodeAt(index) - 0xd800) * 0x400 +\n c.charCodeAt(index + 1) -\n 0xdc00 +\n 0x10000\n : c.charCodeAt(index);\n };\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using XML entities.\n *\n * If a character has no equivalent entity, a\n * numeric hexadecimal reference (eg. `ü`) will be used.\n */\nfunction encodeXML(str) {\n var ret = \"\";\n var lastIdx = 0;\n var match;\n while ((match = exports.xmlReplacer.exec(str)) !== null) {\n var i = match.index;\n var char = str.charCodeAt(i);\n var next = xmlCodeMap.get(char);\n if (next !== undefined) {\n ret += str.substring(lastIdx, i) + next;\n lastIdx = i + 1;\n }\n else {\n ret += \"\".concat(str.substring(lastIdx, i), \"&#x\").concat((0, exports.getCodePoint)(str, i).toString(16), \";\");\n // Increase by 1 if we have a surrogate pair\n lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);\n }\n }\n return ret + str.substr(lastIdx);\n}\nexports.encodeXML = encodeXML;\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using numeric hexadecimal reference (eg. `ü`).\n *\n * Have a look at `escapeUTF8` if you want a more concise output at the expense\n * of reduced transportability.\n *\n * @param data String to escape.\n */\nexports.escape = encodeXML;\n/**\n * Creates a function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n *\n * @param regex Regular expression to match characters to escape.\n * @param map Map of characters to escape to their entities.\n *\n * @returns Function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n */\nfunction getEscaper(regex, map) {\n return function escape(data) {\n var match;\n var lastIdx = 0;\n var result = \"\";\n while ((match = regex.exec(data))) {\n if (lastIdx !== match.index) {\n result += data.substring(lastIdx, match.index);\n }\n // We know that this character will be in the map.\n result += map.get(match[0].charCodeAt(0));\n // Every match will be of length 1\n lastIdx = match.index + 1;\n }\n return result + data.substring(lastIdx);\n };\n}\n/**\n * Encodes all characters not valid in XML documents using XML entities.\n *\n * Note that the output will be character-set dependent.\n *\n * @param data String to escape.\n */\nexports.escapeUTF8 = getEscaper(/[&<>'\"]/g, xmlCodeMap);\n/**\n * Encodes all characters that have to be escaped in HTML attributes,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n *\n * @param data String to escape.\n */\nexports.escapeAttribute = getEscaper(/[\"&\\u00A0]/g, new Map([\n [34, \""\"],\n [38, \"&\"],\n [160, \" \"],\n]));\n/**\n * Encodes all characters that have to be escaped in HTML text,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n *\n * @param data String to escape.\n */\nexports.escapeText = getEscaper(/[&<>\\u00A0]/g, new Map([\n [38, \"&\"],\n [60, \"<\"],\n [62, \">\"],\n [160, \" \"],\n]));\n//# sourceMappingURL=escape.js.map"],"names":[],"mappings":";;;;;;;;EACA,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"escape.js","sources":["../../../../../node_modules/entities/lib/escape.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.getCodePoint = exports.xmlReplacer = void 0;\nexports.xmlReplacer = /[\"&'<>$\\x80-\\uFFFF]/g;\nvar xmlCodeMap = new Map([\n [34, \""\"],\n [38, \"&\"],\n [39, \"'\"],\n [60, \"<\"],\n [62, \">\"],\n]);\n// For compatibility with node < 4, we wrap `codePointAt`\nexports.getCodePoint = \n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nString.prototype.codePointAt != null\n ? function (str, index) { return str.codePointAt(index); }\n : // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n function (c, index) {\n return (c.charCodeAt(index) & 0xfc00) === 0xd800\n ? (c.charCodeAt(index) - 0xd800) * 0x400 +\n c.charCodeAt(index + 1) -\n 0xdc00 +\n 0x10000\n : c.charCodeAt(index);\n };\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using XML entities.\n *\n * If a character has no equivalent entity, a\n * numeric hexadecimal reference (eg. `ü`) will be used.\n */\nfunction encodeXML(str) {\n var ret = \"\";\n var lastIdx = 0;\n var match;\n while ((match = exports.xmlReplacer.exec(str)) !== null) {\n var i = match.index;\n var char = str.charCodeAt(i);\n var next = xmlCodeMap.get(char);\n if (next !== undefined) {\n ret += str.substring(lastIdx, i) + next;\n lastIdx = i + 1;\n }\n else {\n ret += \"\".concat(str.substring(lastIdx, i), \"&#x\").concat((0, exports.getCodePoint)(str, i).toString(16), \";\");\n // Increase by 1 if we have a surrogate pair\n lastIdx = exports.xmlReplacer.lastIndex += Number((char & 0xfc00) === 0xd800);\n }\n }\n return ret + str.substr(lastIdx);\n}\nexports.encodeXML = encodeXML;\n/**\n * Encodes all non-ASCII characters, as well as characters not valid in XML\n * documents using numeric hexadecimal reference (eg. `ü`).\n *\n * Have a look at `escapeUTF8` if you want a more concise output at the expense\n * of reduced transportability.\n *\n * @param data String to escape.\n */\nexports.escape = encodeXML;\n/**\n * Creates a function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n *\n * @param regex Regular expression to match characters to escape.\n * @param map Map of characters to escape to their entities.\n *\n * @returns Function that escapes all characters matched by the given regular\n * expression using the given map of characters to escape to their entities.\n */\nfunction getEscaper(regex, map) {\n return function escape(data) {\n var match;\n var lastIdx = 0;\n var result = \"\";\n while ((match = regex.exec(data))) {\n if (lastIdx !== match.index) {\n result += data.substring(lastIdx, match.index);\n }\n // We know that this character will be in the map.\n result += map.get(match[0].charCodeAt(0));\n // Every match will be of length 1\n lastIdx = match.index + 1;\n }\n return result + data.substring(lastIdx);\n };\n}\n/**\n * Encodes all characters not valid in XML documents using XML entities.\n *\n * Note that the output will be character-set dependent.\n *\n * @param data String to escape.\n */\nexports.escapeUTF8 = getEscaper(/[&<>'\"]/g, xmlCodeMap);\n/**\n * Encodes all characters that have to be escaped in HTML attributes,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n *\n * @param data String to escape.\n */\nexports.escapeAttribute = getEscaper(/[\"&\\u00A0]/g, new Map([\n [34, \""\"],\n [38, \"&\"],\n [160, \" \"],\n]));\n/**\n * Encodes all characters that have to be escaped in HTML text,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n *\n * @param data String to escape.\n */\nexports.escapeText = getEscaper(/[&<>\\u00A0]/g, new Map([\n [38, \"&\"],\n [60, \"<\"],\n [62, \">\"],\n [160, \" \"],\n]));\n//# sourceMappingURL=escape.js.map"],"names":["exports"],"mappings":";;;;;;;;EACA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,EAAAA,SAAA,CAAA,UAAA,GAAqBA,4BAA0BA,SAAA,CAAA,UAAA,GAAqBA,SAAA,CAAA,MAAA,GAAiBA,sBAAoBA,SAAA,CAAA,YAAA,GAAuBA,SAAA,CAAA,WAAA,GAAsB,MAAM;AAC5J,EAAAA,SAAA,CAAA,WAAA,GAAsB,sBAAsB;AAC5C,EAAA,IAAI,UAAU,GAAG,IAAI,GAAG,CAAC;AACzB,MAAI,CAAC,EAAE,EAAE,QAAQ,CAAC;AAClB,MAAI,CAAC,EAAE,EAAE,OAAO,CAAC;AACjB,MAAI,CAAC,EAAE,EAAE,QAAQ,CAAC;AAClB,MAAI,CAAC,EAAE,EAAE,MAAM,CAAC;AAChB,MAAI,CAAC,EAAE,EAAE,MAAM,CAAC;AAChB,GAAC,CAAC;AACF;AACA,EAAAA,SAAA,CAAA,YAAA;AACA;AACA,EAAA,MAAM,CAAC,SAAS,CAAC,WAAW,IAAI;AAChC,QAAM,UAAU,GAAG,EAAE,KAAK,EAAE,EAAE,OAAO,GAAG,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAA;AAC5D;AACA,UAAQ,UAAU,CAAC,EAAE,KAAK,EAAE;cAChB,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,MAAM;oBACpC,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,MAAM,IAAI,KAAK;AACxD,sBAAoB,CAAC,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC,CAAC;AAC3C,sBAAoB,MAAM;sBACN;AACpB,oBA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EAAE,OAAO,CAAC;AACjB,MAAI,CAAC,EAAE,EAAE,MAAM,CAAC;AAChB,MAAI,CAAC,EAAE,EAAE,MAAM,CAAC;AAChB,MAAI,CAAC,GAAG,EAAE,QAAQ,CAAC;AACnB,GAAC,CAAC,CAAC;AACH;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -8,9 +8,9 @@ var hasRequiredLib;
|
|
|
8
8
|
function requireLib () {
|
|
9
9
|
if (hasRequiredLib) return lib;
|
|
10
10
|
hasRequiredLib = 1;
|
|
11
|
-
(function (exports) {
|
|
12
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0;
|
|
11
|
+
(function (exports$1) {
|
|
12
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
13
|
+
exports$1.decodeXMLStrict = exports$1.decodeHTML5Strict = exports$1.decodeHTML4Strict = exports$1.decodeHTML5 = exports$1.decodeHTML4 = exports$1.decodeHTMLAttribute = exports$1.decodeHTMLStrict = exports$1.decodeHTML = exports$1.decodeXML = exports$1.DecodingMode = exports$1.EntityDecoder = exports$1.encodeHTML5 = exports$1.encodeHTML4 = exports$1.encodeNonAsciiHTML = exports$1.encodeHTML = exports$1.escapeText = exports$1.escapeAttribute = exports$1.escapeUTF8 = exports$1.escape = exports$1.encodeXML = exports$1.encode = exports$1.decodeStrict = exports$1.decode = exports$1.EncodingMode = exports$1.EntityLevel = void 0;
|
|
14
14
|
var decode_js_1 = /*@__PURE__*/ requireDecode();
|
|
15
15
|
var encode_js_1 = /*@__PURE__*/ requireEncode();
|
|
16
16
|
var escape_js_1 = /*@__PURE__*/ require_escape();
|
|
@@ -21,7 +21,7 @@ function requireLib () {
|
|
|
21
21
|
EntityLevel[EntityLevel["XML"] = 0] = "XML";
|
|
22
22
|
/** Support HTML entities, which are a superset of XML entities. */
|
|
23
23
|
EntityLevel[EntityLevel["HTML"] = 1] = "HTML";
|
|
24
|
-
})(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));
|
|
24
|
+
})(EntityLevel = exports$1.EntityLevel || (exports$1.EntityLevel = {}));
|
|
25
25
|
var EncodingMode;
|
|
26
26
|
(function (EncodingMode) {
|
|
27
27
|
/**
|
|
@@ -50,7 +50,7 @@ function requireLib () {
|
|
|
50
50
|
* following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.
|
|
51
51
|
*/
|
|
52
52
|
EncodingMode[EncodingMode["Text"] = 4] = "Text";
|
|
53
|
-
})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));
|
|
53
|
+
})(EncodingMode = exports$1.EncodingMode || (exports$1.EncodingMode = {}));
|
|
54
54
|
/**
|
|
55
55
|
* Decodes a string with entities.
|
|
56
56
|
*
|
|
@@ -66,7 +66,7 @@ function requireLib () {
|
|
|
66
66
|
}
|
|
67
67
|
return (0, decode_js_1.decodeXML)(data);
|
|
68
68
|
}
|
|
69
|
-
exports.decode = decode;
|
|
69
|
+
exports$1.decode = decode;
|
|
70
70
|
/**
|
|
71
71
|
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
|
72
72
|
*
|
|
@@ -81,7 +81,7 @@ function requireLib () {
|
|
|
81
81
|
(_a = opts.mode) !== null && _a !== void 0 ? _a : (opts.mode = decode_js_1.DecodingMode.Strict);
|
|
82
82
|
return decode(data, opts);
|
|
83
83
|
}
|
|
84
|
-
exports.decodeStrict = decodeStrict;
|
|
84
|
+
exports$1.decodeStrict = decodeStrict;
|
|
85
85
|
/**
|
|
86
86
|
* Encodes a string with entities.
|
|
87
87
|
*
|
|
@@ -107,32 +107,32 @@ function requireLib () {
|
|
|
107
107
|
// ASCII and Extensive are equivalent
|
|
108
108
|
return (0, escape_js_1.encodeXML)(data);
|
|
109
109
|
}
|
|
110
|
-
exports.encode = encode;
|
|
110
|
+
exports$1.encode = encode;
|
|
111
111
|
var escape_js_2 = /*@__PURE__*/ require_escape();
|
|
112
|
-
Object.defineProperty(exports, "encodeXML", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });
|
|
113
|
-
Object.defineProperty(exports, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
|
|
114
|
-
Object.defineProperty(exports, "escapeUTF8", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });
|
|
115
|
-
Object.defineProperty(exports, "escapeAttribute", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });
|
|
116
|
-
Object.defineProperty(exports, "escapeText", { enumerable: true, get: function () { return escape_js_2.escapeText; } });
|
|
112
|
+
Object.defineProperty(exports$1, "encodeXML", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });
|
|
113
|
+
Object.defineProperty(exports$1, "escape", { enumerable: true, get: function () { return escape_js_2.escape; } });
|
|
114
|
+
Object.defineProperty(exports$1, "escapeUTF8", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });
|
|
115
|
+
Object.defineProperty(exports$1, "escapeAttribute", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });
|
|
116
|
+
Object.defineProperty(exports$1, "escapeText", { enumerable: true, get: function () { return escape_js_2.escapeText; } });
|
|
117
117
|
var encode_js_2 = /*@__PURE__*/ requireEncode();
|
|
118
|
-
Object.defineProperty(exports, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
119
|
-
Object.defineProperty(exports, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
|
|
118
|
+
Object.defineProperty(exports$1, "encodeHTML", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
119
|
+
Object.defineProperty(exports$1, "encodeNonAsciiHTML", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });
|
|
120
120
|
// Legacy aliases (deprecated)
|
|
121
|
-
Object.defineProperty(exports, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
122
|
-
Object.defineProperty(exports, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
121
|
+
Object.defineProperty(exports$1, "encodeHTML4", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
122
|
+
Object.defineProperty(exports$1, "encodeHTML5", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });
|
|
123
123
|
var decode_js_2 = /*@__PURE__*/ requireDecode();
|
|
124
|
-
Object.defineProperty(exports, "EntityDecoder", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });
|
|
125
|
-
Object.defineProperty(exports, "DecodingMode", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });
|
|
126
|
-
Object.defineProperty(exports, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
127
|
-
Object.defineProperty(exports, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
128
|
-
Object.defineProperty(exports, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
129
|
-
Object.defineProperty(exports, "decodeHTMLAttribute", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });
|
|
124
|
+
Object.defineProperty(exports$1, "EntityDecoder", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });
|
|
125
|
+
Object.defineProperty(exports$1, "DecodingMode", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });
|
|
126
|
+
Object.defineProperty(exports$1, "decodeXML", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
127
|
+
Object.defineProperty(exports$1, "decodeHTML", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
128
|
+
Object.defineProperty(exports$1, "decodeHTMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
129
|
+
Object.defineProperty(exports$1, "decodeHTMLAttribute", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });
|
|
130
130
|
// Legacy aliases (deprecated)
|
|
131
|
-
Object.defineProperty(exports, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
132
|
-
Object.defineProperty(exports, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
133
|
-
Object.defineProperty(exports, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
134
|
-
Object.defineProperty(exports, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
135
|
-
Object.defineProperty(exports, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
131
|
+
Object.defineProperty(exports$1, "decodeHTML4", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
132
|
+
Object.defineProperty(exports$1, "decodeHTML5", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });
|
|
133
|
+
Object.defineProperty(exports$1, "decodeHTML4Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
134
|
+
Object.defineProperty(exports$1, "decodeHTML5Strict", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });
|
|
135
|
+
Object.defineProperty(exports$1, "decodeXMLStrict", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });
|
|
136
136
|
|
|
137
137
|
} (lib));
|
|
138
138
|
return lib;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/entities/lib/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0;\nvar decode_js_1 = require(\"./decode.js\");\nvar encode_js_1 = require(\"./encode.js\");\nvar escape_js_1 = require(\"./escape.js\");\n/** The level of entities to support. */\nvar EntityLevel;\n(function (EntityLevel) {\n /** Support only XML entities. */\n EntityLevel[EntityLevel[\"XML\"] = 0] = \"XML\";\n /** Support HTML entities, which are a superset of XML entities. */\n EntityLevel[EntityLevel[\"HTML\"] = 1] = \"HTML\";\n})(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));\nvar EncodingMode;\n(function (EncodingMode) {\n /**\n * The output is UTF-8 encoded. Only characters that need escaping within\n * XML will be escaped.\n */\n EncodingMode[EncodingMode[\"UTF8\"] = 0] = \"UTF8\";\n /**\n * The output consists only of ASCII characters. Characters that need\n * escaping within HTML, and characters that aren't ASCII characters will\n * be escaped.\n */\n EncodingMode[EncodingMode[\"ASCII\"] = 1] = \"ASCII\";\n /**\n * Encode all characters that have an equivalent entity, as well as all\n * characters that are not ASCII characters.\n */\n EncodingMode[EncodingMode[\"Extensive\"] = 2] = \"Extensive\";\n /**\n * Encode all characters that have to be escaped in HTML attributes,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n */\n EncodingMode[EncodingMode[\"Attribute\"] = 3] = \"Attribute\";\n /**\n * Encode all characters that have to be escaped in HTML text,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n */\n EncodingMode[EncodingMode[\"Text\"] = 4] = \"Text\";\n})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));\n/**\n * Decodes a string with entities.\n *\n * @param data String to decode.\n * @param options Decoding options.\n */\nfunction decode(data, options) {\n if (options === void 0) { options = EntityLevel.XML; }\n var level = typeof options === \"number\" ? options : options.level;\n if (level === EntityLevel.HTML) {\n var mode = typeof options === \"object\" ? options.mode : undefined;\n return (0, decode_js_1.decodeHTML)(data, mode);\n }\n return (0, decode_js_1.decodeXML)(data);\n}\nexports.decode = decode;\n/**\n * Decodes a string with entities. Does not allow missing trailing semicolons for entities.\n *\n * @param data String to decode.\n * @param options Decoding options.\n * @deprecated Use `decode` with the `mode` set to `Strict`.\n */\nfunction decodeStrict(data, options) {\n var _a;\n if (options === void 0) { options = EntityLevel.XML; }\n var opts = typeof options === \"number\" ? { level: options } : options;\n (_a = opts.mode) !== null && _a !== void 0 ? _a : (opts.mode = decode_js_1.DecodingMode.Strict);\n return decode(data, opts);\n}\nexports.decodeStrict = decodeStrict;\n/**\n * Encodes a string with entities.\n *\n * @param data String to encode.\n * @param options Encoding options.\n */\nfunction encode(data, options) {\n if (options === void 0) { options = EntityLevel.XML; }\n var opts = typeof options === \"number\" ? { level: options } : options;\n // Mode `UTF8` just escapes XML entities\n if (opts.mode === EncodingMode.UTF8)\n return (0, escape_js_1.escapeUTF8)(data);\n if (opts.mode === EncodingMode.Attribute)\n return (0, escape_js_1.escapeAttribute)(data);\n if (opts.mode === EncodingMode.Text)\n return (0, escape_js_1.escapeText)(data);\n if (opts.level === EntityLevel.HTML) {\n if (opts.mode === EncodingMode.ASCII) {\n return (0, encode_js_1.encodeNonAsciiHTML)(data);\n }\n return (0, encode_js_1.encodeHTML)(data);\n }\n // ASCII and Extensive are equivalent\n return (0, escape_js_1.encodeXML)(data);\n}\nexports.encode = encode;\nvar escape_js_2 = require(\"./escape.js\");\nObject.defineProperty(exports, \"encodeXML\", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });\nObject.defineProperty(exports, \"escape\", { enumerable: true, get: function () { return escape_js_2.escape; } });\nObject.defineProperty(exports, \"escapeUTF8\", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });\nObject.defineProperty(exports, \"escapeAttribute\", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });\nObject.defineProperty(exports, \"escapeText\", { enumerable: true, get: function () { return escape_js_2.escapeText; } });\nvar encode_js_2 = require(\"./encode.js\");\nObject.defineProperty(exports, \"encodeHTML\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nObject.defineProperty(exports, \"encodeNonAsciiHTML\", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });\n// Legacy aliases (deprecated)\nObject.defineProperty(exports, \"encodeHTML4\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nObject.defineProperty(exports, \"encodeHTML5\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nvar decode_js_2 = require(\"./decode.js\");\nObject.defineProperty(exports, \"EntityDecoder\", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });\nObject.defineProperty(exports, \"DecodingMode\", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });\nObject.defineProperty(exports, \"decodeXML\", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });\nObject.defineProperty(exports, \"decodeHTML\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTMLStrict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeHTMLAttribute\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });\n// Legacy aliases (deprecated)\nObject.defineProperty(exports, \"decodeHTML4\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTML5\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTML4Strict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeHTML5Strict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeXMLStrict\", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });\n//# sourceMappingURL=index.js.map"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;EACA,MAAM,CAAC,cAAc,CAAA,OAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;EAC7D,OAAA,CAAA,eAAA,GAA0B,OAAA,CAAA,iBAAA,GAA4B,OAAA,CAAA,iBAAA,GAA4B,OAAA,CAAA,WAAA,GAAsB,OAAA,CAAA,WAAA,GAAsB,OAAA,CAAA,mBAAA,GAA8B,2BAA2B,OAAA,CAAA,UAAA,GAAqB,OAAA,CAAA,SAAA,GAAoB,OAAA,CAAA,YAAA,GAAuB,OAAA,CAAA,aAAA,GAAwB,OAAA,CAAA,WAAA,GAAsB,OAAA,CAAA,WAAA,GAAsB,6BAA6B,OAAA,CAAA,UAAA,GAAqB,OAAA,CAAA,UAAA,GAAqB,OAAA,CAAA,eAAA,GAA0B,OAAA,CAAA,UAAA,GAAqB,OAAA,CAAA,MAAA,GAAiB,OAAA,CAAA,SAAA,GAAoB,OAAA,CAAA,MAAA,GAAiB,OAAA,CAAA,YAAA,GAAuB,OAAA,CAAA,MAAA,GAAiB,OAAA,CAAA,YAAA,GAAuB,OAAA,CAAA,WAAA,GAAsB,MAAM;EAClkB,IAAI,WAAW,iBAAGA,aAAA,EAAsB;EACxC,IAAI,WAAW,iBAAGC,aAAA,EAAsB;EACxC,IAAI,WAAW,iBAAGC,cAAA,EAAsB;AACxC;AACA,EAAA,IAAI,WAAW;EACf,CAAC,UAAU,WAAW,EAAE;AACxB;MACI,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK;AAC/C;MACI,WAAW,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM;EACjD,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,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IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,SAAS,CAAC,CAAA,CAAE,EAAE,CAAC;AAC3H;;;;;;;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/entities/lib/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.decodeXMLStrict = exports.decodeHTML5Strict = exports.decodeHTML4Strict = exports.decodeHTML5 = exports.decodeHTML4 = exports.decodeHTMLAttribute = exports.decodeHTMLStrict = exports.decodeHTML = exports.decodeXML = exports.DecodingMode = exports.EntityDecoder = exports.encodeHTML5 = exports.encodeHTML4 = exports.encodeNonAsciiHTML = exports.encodeHTML = exports.escapeText = exports.escapeAttribute = exports.escapeUTF8 = exports.escape = exports.encodeXML = exports.encode = exports.decodeStrict = exports.decode = exports.EncodingMode = exports.EntityLevel = void 0;\nvar decode_js_1 = require(\"./decode.js\");\nvar encode_js_1 = require(\"./encode.js\");\nvar escape_js_1 = require(\"./escape.js\");\n/** The level of entities to support. */\nvar EntityLevel;\n(function (EntityLevel) {\n /** Support only XML entities. */\n EntityLevel[EntityLevel[\"XML\"] = 0] = \"XML\";\n /** Support HTML entities, which are a superset of XML entities. */\n EntityLevel[EntityLevel[\"HTML\"] = 1] = \"HTML\";\n})(EntityLevel = exports.EntityLevel || (exports.EntityLevel = {}));\nvar EncodingMode;\n(function (EncodingMode) {\n /**\n * The output is UTF-8 encoded. Only characters that need escaping within\n * XML will be escaped.\n */\n EncodingMode[EncodingMode[\"UTF8\"] = 0] = \"UTF8\";\n /**\n * The output consists only of ASCII characters. Characters that need\n * escaping within HTML, and characters that aren't ASCII characters will\n * be escaped.\n */\n EncodingMode[EncodingMode[\"ASCII\"] = 1] = \"ASCII\";\n /**\n * Encode all characters that have an equivalent entity, as well as all\n * characters that are not ASCII characters.\n */\n EncodingMode[EncodingMode[\"Extensive\"] = 2] = \"Extensive\";\n /**\n * Encode all characters that have to be escaped in HTML attributes,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n */\n EncodingMode[EncodingMode[\"Attribute\"] = 3] = \"Attribute\";\n /**\n * Encode all characters that have to be escaped in HTML text,\n * following {@link https://html.spec.whatwg.org/multipage/parsing.html#escapingString}.\n */\n EncodingMode[EncodingMode[\"Text\"] = 4] = \"Text\";\n})(EncodingMode = exports.EncodingMode || (exports.EncodingMode = {}));\n/**\n * Decodes a string with entities.\n *\n * @param data String to decode.\n * @param options Decoding options.\n */\nfunction decode(data, options) {\n if (options === void 0) { options = EntityLevel.XML; }\n var level = typeof options === \"number\" ? options : options.level;\n if (level === EntityLevel.HTML) {\n var mode = typeof options === \"object\" ? options.mode : undefined;\n return (0, decode_js_1.decodeHTML)(data, mode);\n }\n return (0, decode_js_1.decodeXML)(data);\n}\nexports.decode = decode;\n/**\n * Decodes a string with entities. Does not allow missing trailing semicolons for entities.\n *\n * @param data String to decode.\n * @param options Decoding options.\n * @deprecated Use `decode` with the `mode` set to `Strict`.\n */\nfunction decodeStrict(data, options) {\n var _a;\n if (options === void 0) { options = EntityLevel.XML; }\n var opts = typeof options === \"number\" ? { level: options } : options;\n (_a = opts.mode) !== null && _a !== void 0 ? _a : (opts.mode = decode_js_1.DecodingMode.Strict);\n return decode(data, opts);\n}\nexports.decodeStrict = decodeStrict;\n/**\n * Encodes a string with entities.\n *\n * @param data String to encode.\n * @param options Encoding options.\n */\nfunction encode(data, options) {\n if (options === void 0) { options = EntityLevel.XML; }\n var opts = typeof options === \"number\" ? { level: options } : options;\n // Mode `UTF8` just escapes XML entities\n if (opts.mode === EncodingMode.UTF8)\n return (0, escape_js_1.escapeUTF8)(data);\n if (opts.mode === EncodingMode.Attribute)\n return (0, escape_js_1.escapeAttribute)(data);\n if (opts.mode === EncodingMode.Text)\n return (0, escape_js_1.escapeText)(data);\n if (opts.level === EntityLevel.HTML) {\n if (opts.mode === EncodingMode.ASCII) {\n return (0, encode_js_1.encodeNonAsciiHTML)(data);\n }\n return (0, encode_js_1.encodeHTML)(data);\n }\n // ASCII and Extensive are equivalent\n return (0, escape_js_1.encodeXML)(data);\n}\nexports.encode = encode;\nvar escape_js_2 = require(\"./escape.js\");\nObject.defineProperty(exports, \"encodeXML\", { enumerable: true, get: function () { return escape_js_2.encodeXML; } });\nObject.defineProperty(exports, \"escape\", { enumerable: true, get: function () { return escape_js_2.escape; } });\nObject.defineProperty(exports, \"escapeUTF8\", { enumerable: true, get: function () { return escape_js_2.escapeUTF8; } });\nObject.defineProperty(exports, \"escapeAttribute\", { enumerable: true, get: function () { return escape_js_2.escapeAttribute; } });\nObject.defineProperty(exports, \"escapeText\", { enumerable: true, get: function () { return escape_js_2.escapeText; } });\nvar encode_js_2 = require(\"./encode.js\");\nObject.defineProperty(exports, \"encodeHTML\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nObject.defineProperty(exports, \"encodeNonAsciiHTML\", { enumerable: true, get: function () { return encode_js_2.encodeNonAsciiHTML; } });\n// Legacy aliases (deprecated)\nObject.defineProperty(exports, \"encodeHTML4\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nObject.defineProperty(exports, \"encodeHTML5\", { enumerable: true, get: function () { return encode_js_2.encodeHTML; } });\nvar decode_js_2 = require(\"./decode.js\");\nObject.defineProperty(exports, \"EntityDecoder\", { enumerable: true, get: function () { return decode_js_2.EntityDecoder; } });\nObject.defineProperty(exports, \"DecodingMode\", { enumerable: true, get: function () { return decode_js_2.DecodingMode; } });\nObject.defineProperty(exports, \"decodeXML\", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });\nObject.defineProperty(exports, \"decodeHTML\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTMLStrict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeHTMLAttribute\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLAttribute; } });\n// Legacy aliases (deprecated)\nObject.defineProperty(exports, \"decodeHTML4\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTML5\", { enumerable: true, get: function () { return decode_js_2.decodeHTML; } });\nObject.defineProperty(exports, \"decodeHTML4Strict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeHTML5Strict\", { enumerable: true, get: function () { return decode_js_2.decodeHTMLStrict; } });\nObject.defineProperty(exports, \"decodeXMLStrict\", { enumerable: true, get: function () { return decode_js_2.decodeXML; } });\n//# sourceMappingURL=index.js.map"],"names":["exports","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;EACA,MAAM,CAAC,cAAc,CAAAA,SAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;EAC7DA,SAAA,CAAA,eAAA,GAA0BA,SAAA,CAAA,iBAAA,GAA4BA,SAAA,CAAA,iBAAA,GAA4BA,SAAA,CAAA,WAAA,GAAsBA,SAAA,CAAA,WAAA,GAAsBA,SAAA,CAAA,mBAAA,GAA8BA,6BAA2BA,SAAA,CAAA,UAAA,GAAqBA,SAAA,CAAA,SAAA,GAAoBA,SAAA,CAAA,YAAA,GAAuBA,SAAA,CAAA,aAAA,GAAwBA,SAAA,CAAA,WAAA,GAAsBA,SAAA,CAAA,WAAA,GAAsBA,+BAA6BA,SAAA,CAAA,UAAA,GAAqBA,SAAA,CAAA,UAAA,GAAqBA,SAAA,CAAA,eAAA,GAA0BA,SAAA,CAAA,UAAA,GAAqBA,SAAA,CAAA,MAAA,GAAiBA,SAAA,CAAA,SAAA,GAAoBA,SAAA,CAAA,MAAA,GAAiBA,SAAA,CAAA,YAAA,GAAuBA,SAAA,CAAA,MAAA,GAAiBA,SAAA,CAAA,YAAA,GAAuBA,SAAA,CAAA,WAAA,GAAsB,MAAM;EAClkB,IAAI,WAAW,iBAAGC,aAAA,EAAsB;EACxC,IAAI,WAAW,iBAAGC,aAAA,EAAsB;E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AE,OAAO,WAAW,CAAC,gBAAgB,CAAC,CAAA,CAAE,EAAE,CAAC;EACpI,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,mBAAmB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,gBAAgB,CAAC,CAAA,CAAE,EAAE,CAAC;EACpI,MAAM,CAAC,cAAc,CAACA,SAAO,EAAE,iBAAiB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,WAAW,CAAC,SAAS,CAAC,CAAA,CAAE,EAAE,CAAC;AAC3H;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -7,7 +7,7 @@ var hasRequiredLib;
|
|
|
7
7
|
function requireLib () {
|
|
8
8
|
if (hasRequiredLib) return lib;
|
|
9
9
|
hasRequiredLib = 1;
|
|
10
|
-
(function (exports) {
|
|
10
|
+
(function (exports$1) {
|
|
11
11
|
var __createBinding = (lib && lib.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12
12
|
if (k2 === undefined) k2 = k;
|
|
13
13
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -19,14 +19,14 @@ function requireLib () {
|
|
|
19
19
|
if (k2 === undefined) k2 = k;
|
|
20
20
|
o[k2] = m[k];
|
|
21
21
|
}));
|
|
22
|
-
var __exportStar = (lib && lib.__exportStar) || function(m, exports) {
|
|
23
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
var __exportStar = (lib && lib.__exportStar) || function(m, exports$1) {
|
|
23
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
|
|
24
24
|
};
|
|
25
25
|
var __importDefault = (lib && lib.__importDefault) || function (mod) {
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.default = void 0;
|
|
28
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
29
|
+
exports$1.default = void 0;
|
|
30
30
|
/**
|
|
31
31
|
* When running on Node.js, use the server parser.
|
|
32
32
|
* When bundling for the browser, use the client parser.
|
|
@@ -34,8 +34,8 @@ function requireLib () {
|
|
|
34
34
|
* @see https://github.com/substack/node-browserify#browser-field
|
|
35
35
|
*/
|
|
36
36
|
var html_to_dom_1 = requireHtmlToDom();
|
|
37
|
-
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(html_to_dom_1).default; } });
|
|
38
|
-
__exportStar(requireTypes(), exports);
|
|
37
|
+
Object.defineProperty(exports$1, "default", { enumerable: true, get: function () { return __importDefault(html_to_dom_1).default; } });
|
|
38
|
+
__exportStar(requireTypes(), exports$1);
|
|
39
39
|
|
|
40
40
|
} (lib));
|
|
41
41
|
return lib;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/html-dom-parser/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = void 0;\n/**\n * When running on Node.js, use the server parser.\n * When bundling for the browser, use the client parser.\n *\n * @see https://github.com/substack/node-browserify#browser-field\n */\nvar html_to_dom_1 = require(\"./server/html-to-dom\");\nObject.defineProperty(exports, \"default\", { enumerable: true, get: function () { return __importDefault(html_to_dom_1).default; } });\n__exportStar(require(\"./types\"), exports);\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0","require$$1"],"mappings":";;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,MAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;MAC5B,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;MAChD,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;AACvF,QAAM,IAAI,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;AACnE,MAAA;MACI,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC;EACtC,CAAC,KAAK,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAC5B,MAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;MAC5B,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAChB,EAAA,CAAC,CAAC,CAAC;AACH,EAAA,IAAI,YAAY,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,YAAY,KAAK,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/html-dom-parser/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __exportStar = (this && this.__exportStar) || function(m, exports) {\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = void 0;\n/**\n * When running on Node.js, use the server parser.\n * When bundling for the browser, use the client parser.\n *\n * @see https://github.com/substack/node-browserify#browser-field\n */\nvar html_to_dom_1 = require(\"./server/html-to-dom\");\nObject.defineProperty(exports, \"default\", { enumerable: true, get: function () { return __importDefault(html_to_dom_1).default; } });\n__exportStar(require(\"./types\"), exports);\n//# sourceMappingURL=index.js.map"],"names":["this","exports","require$$0","require$$1"],"mappings":";;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,MAAM,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE;AAChG,MAAI,IAAI,EAAE,KAAK,SAAS,EAAE,EAAE,GAAG,CAAC;MAC5B,IAAI,IAAI,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC;MAChD,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,EAAE;AACvF,QAAM,IAAI,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EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAA,CAAE,EAAE,CAAC;AACpI,EAAA,YAAY,CAACE,YAAA,EAAkB,EAAEF,SAAO,CAAC;AACzC;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -9,24 +9,24 @@ var hasRequiredLib;
|
|
|
9
9
|
function requireLib () {
|
|
10
10
|
if (hasRequiredLib) return lib;
|
|
11
11
|
hasRequiredLib = 1;
|
|
12
|
-
(function (exports) {
|
|
12
|
+
(function (exports$1) {
|
|
13
13
|
var __importDefault = (lib && lib.__importDefault) || function (mod) {
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.htmlToDOM = exports.domToReact = exports.attributesToProps = exports.Text = exports.ProcessingInstruction = exports.Element = exports.Comment = void 0;
|
|
18
|
-
exports.default = HTMLReactParser;
|
|
16
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
17
|
+
exports$1.htmlToDOM = exports$1.domToReact = exports$1.attributesToProps = exports$1.Text = exports$1.ProcessingInstruction = exports$1.Element = exports$1.Comment = void 0;
|
|
18
|
+
exports$1.default = HTMLReactParser;
|
|
19
19
|
var html_dom_parser_1 = __importDefault(requireLib$1());
|
|
20
|
-
exports.htmlToDOM = html_dom_parser_1.default;
|
|
20
|
+
exports$1.htmlToDOM = html_dom_parser_1.default;
|
|
21
21
|
var attributes_to_props_1 = __importDefault(requireAttributesToProps());
|
|
22
|
-
exports.attributesToProps = attributes_to_props_1.default;
|
|
22
|
+
exports$1.attributesToProps = attributes_to_props_1.default;
|
|
23
23
|
var dom_to_react_1 = __importDefault(requireDomToReact());
|
|
24
|
-
exports.domToReact = dom_to_react_1.default;
|
|
24
|
+
exports$1.domToReact = dom_to_react_1.default;
|
|
25
25
|
var domhandler_1 = /*@__PURE__*/ requireLib$2();
|
|
26
|
-
Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return domhandler_1.Comment; } });
|
|
27
|
-
Object.defineProperty(exports, "Element", { enumerable: true, get: function () { return domhandler_1.Element; } });
|
|
28
|
-
Object.defineProperty(exports, "ProcessingInstruction", { enumerable: true, get: function () { return domhandler_1.ProcessingInstruction; } });
|
|
29
|
-
Object.defineProperty(exports, "Text", { enumerable: true, get: function () { return domhandler_1.Text; } });
|
|
26
|
+
Object.defineProperty(exports$1, "Comment", { enumerable: true, get: function () { return domhandler_1.Comment; } });
|
|
27
|
+
Object.defineProperty(exports$1, "Element", { enumerable: true, get: function () { return domhandler_1.Element; } });
|
|
28
|
+
Object.defineProperty(exports$1, "ProcessingInstruction", { enumerable: true, get: function () { return domhandler_1.ProcessingInstruction; } });
|
|
29
|
+
Object.defineProperty(exports$1, "Text", { enumerable: true, get: function () { return domhandler_1.Text; } });
|
|
30
30
|
var domParserOptions = { lowerCaseAttributeNames: false };
|
|
31
31
|
/**
|
|
32
32
|
* Converts HTML string to React elements.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/html-react-parser/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.htmlToDOM = exports.domToReact = exports.attributesToProps = exports.Text = exports.ProcessingInstruction = exports.Element = exports.Comment = void 0;\nexports.default = HTMLReactParser;\nvar html_dom_parser_1 = __importDefault(require(\"html-dom-parser\"));\nexports.htmlToDOM = html_dom_parser_1.default;\nvar attributes_to_props_1 = __importDefault(require(\"./attributes-to-props\"));\nexports.attributesToProps = attributes_to_props_1.default;\nvar dom_to_react_1 = __importDefault(require(\"./dom-to-react\"));\nexports.domToReact = dom_to_react_1.default;\nvar domhandler_1 = require(\"domhandler\");\nObject.defineProperty(exports, \"Comment\", { enumerable: true, get: function () { return domhandler_1.Comment; } });\nObject.defineProperty(exports, \"Element\", { enumerable: true, get: function () { return domhandler_1.Element; } });\nObject.defineProperty(exports, \"ProcessingInstruction\", { enumerable: true, get: function () { return domhandler_1.ProcessingInstruction; } });\nObject.defineProperty(exports, \"Text\", { enumerable: true, get: function () { return domhandler_1.Text; } });\nvar domParserOptions = { lowerCaseAttributeNames: false };\n/**\n * Converts HTML string to React elements.\n *\n * @param html - HTML string.\n * @param options - Parser options.\n * @returns - React element(s), empty array, or string.\n */\nfunction HTMLReactParser(html, options) {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n if (!html) {\n return [];\n }\n return (0, dom_to_react_1.default)((0, html_dom_parser_1.default)(html, (options === null || options === void 0 ? void 0 : options.htmlparser2) || domParserOptions), options);\n}\n//# sourceMappingURL=index.js.map"],"names":["this","require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,MAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC7D,CAAC;EACD,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/html-react-parser/lib/index.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.htmlToDOM = exports.domToReact = exports.attributesToProps = exports.Text = exports.ProcessingInstruction = exports.Element = exports.Comment = void 0;\nexports.default = HTMLReactParser;\nvar html_dom_parser_1 = __importDefault(require(\"html-dom-parser\"));\nexports.htmlToDOM = html_dom_parser_1.default;\nvar attributes_to_props_1 = __importDefault(require(\"./attributes-to-props\"));\nexports.attributesToProps = attributes_to_props_1.default;\nvar dom_to_react_1 = __importDefault(require(\"./dom-to-react\"));\nexports.domToReact = dom_to_react_1.default;\nvar domhandler_1 = require(\"domhandler\");\nObject.defineProperty(exports, \"Comment\", { enumerable: true, get: function () { return domhandler_1.Comment; } });\nObject.defineProperty(exports, \"Element\", { enumerable: true, get: function () { return domhandler_1.Element; } });\nObject.defineProperty(exports, \"ProcessingInstruction\", { enumerable: true, get: function () { return domhandler_1.ProcessingInstruction; } });\nObject.defineProperty(exports, \"Text\", { enumerable: true, get: function () { return domhandler_1.Text; } });\nvar domParserOptions = { lowerCaseAttributeNames: false };\n/**\n * Converts HTML string to React elements.\n *\n * @param html - HTML string.\n * @param options - Parser options.\n * @returns - React element(s), empty array, or string.\n */\nfunction HTMLReactParser(html, options) {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n if (!html) {\n return [];\n }\n return (0, dom_to_react_1.default)((0, html_dom_parser_1.default)(html, (options === null || options === void 0 ? void 0 : options.htmlparser2) || domParserOptions), options);\n}\n//# sourceMappingURL=index.js.map"],"names":["this","exports","require$$0","require$$1","require$$2","require$$3"],"mappings":";;;;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,GAAI,IAAIA,GAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,MAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC7D,CAAC;EACD,MAAM,CAAC,cAAc,CAAAC,SAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,EAAAA,SAAA,CAAA,SAAA,GAAoBA,uBAAqBA,SAAA,CAAA,iBAAA,GAA4BA,SAAA,CAAA,IAAA,GAAeA,kCAAgCA,SAAA,CAAA,OAAA,GAAkBA,SAAA,CAAA,OAAA,GAAkB,MAAM;AAC9J,EAAAA,SAAA,CAAA,OAAA,GAAkB,eAAe;AACjC,EAAA,IAAI,iBAAiB,GAAG,eAAe,CAACC,cAA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CAAC;AAC9D,MAAA;MACI,IAAI,CAAC,IAAI,EAAE;AACf,UAAQ,OAAO,EAAE;AACjB,MAAA;AACA,MAAI,OAAO,IAAI,cAAc,CAAC,OAAO,EAAE,IAAI,iBAAiB,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,OAAO,KAAK,IAAI,IAAI,OAAO,KAAK,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,WAAW,KAAK,gBAAgB,CAAC,EAAE,OAAO,CAAC;AAClL,EAAA;AACA;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -7,14 +7,14 @@ var hasRequiredUtilities;
|
|
|
7
7
|
function requireUtilities () {
|
|
8
8
|
if (hasRequiredUtilities) return utilities;
|
|
9
9
|
hasRequiredUtilities = 1;
|
|
10
|
-
(function (exports) {
|
|
10
|
+
(function (exports$1) {
|
|
11
11
|
var __importDefault = (utilities && utilities.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
13
|
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = void 0;
|
|
16
|
-
exports.isCustomComponent = isCustomComponent;
|
|
17
|
-
exports.setStyleProp = setStyleProp;
|
|
14
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
15
|
+
exports$1.returnFirstArg = exports$1.canTextBeChildOfNode = exports$1.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports$1.PRESERVE_CUSTOM_ATTRIBUTES = void 0;
|
|
16
|
+
exports$1.isCustomComponent = isCustomComponent;
|
|
17
|
+
exports$1.setStyleProp = setStyleProp;
|
|
18
18
|
var react_1 = React__default;
|
|
19
19
|
var style_to_js_1 = __importDefault(requireCjs());
|
|
20
20
|
var RESERVED_SVG_MATHML_ELEMENTS = new Set([
|
|
@@ -77,11 +77,11 @@ function requireUtilities () {
|
|
|
77
77
|
/**
|
|
78
78
|
* @see https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html
|
|
79
79
|
*/
|
|
80
|
-
exports.PRESERVE_CUSTOM_ATTRIBUTES = Number(react_1.version.split('.')[0]) >= 16;
|
|
80
|
+
exports$1.PRESERVE_CUSTOM_ATTRIBUTES = Number(react_1.version.split('.')[0]) >= 16;
|
|
81
81
|
/**
|
|
82
82
|
* @see https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react-dom/src/client/validateDOMNesting.js#L213
|
|
83
83
|
*/
|
|
84
|
-
exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = new Set([
|
|
84
|
+
exports$1.ELEMENTS_WITH_NO_TEXT_CHILDREN = new Set([
|
|
85
85
|
'tr',
|
|
86
86
|
'tbody',
|
|
87
87
|
'thead',
|
|
@@ -99,9 +99,9 @@ function requireUtilities () {
|
|
|
99
99
|
* @returns - Whether the node can contain text nodes.
|
|
100
100
|
*/
|
|
101
101
|
var canTextBeChildOfNode = function (node) {
|
|
102
|
-
return !exports.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name);
|
|
102
|
+
return !exports$1.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name);
|
|
103
103
|
};
|
|
104
|
-
exports.canTextBeChildOfNode = canTextBeChildOfNode;
|
|
104
|
+
exports$1.canTextBeChildOfNode = canTextBeChildOfNode;
|
|
105
105
|
/**
|
|
106
106
|
* Returns the first argument as is.
|
|
107
107
|
*
|
|
@@ -109,7 +109,7 @@ function requireUtilities () {
|
|
|
109
109
|
* @returns - The input argument `arg`.
|
|
110
110
|
*/
|
|
111
111
|
var returnFirstArg = function (arg) { return arg; }; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
112
|
-
exports.returnFirstArg = returnFirstArg;
|
|
112
|
+
exports$1.returnFirstArg = returnFirstArg;
|
|
113
113
|
|
|
114
114
|
} (utilities));
|
|
115
115
|
return utilities;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.js","sources":["../../../../../node_modules/html-react-parser/lib/utilities.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = void 0;\nexports.isCustomComponent = isCustomComponent;\nexports.setStyleProp = setStyleProp;\nvar react_1 = require(\"react\");\nvar style_to_js_1 = __importDefault(require(\"style-to-js\"));\nvar RESERVED_SVG_MATHML_ELEMENTS = new Set([\n 'annotation-xml',\n 'color-profile',\n 'font-face',\n 'font-face-src',\n 'font-face-uri',\n 'font-face-format',\n 'font-face-name',\n 'missing-glyph',\n]);\n/**\n * Check if a tag is a custom component.\n *\n * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js}\n *\n * @param tagName - Tag name.\n * @param props - Props passed to the element.\n * @returns - Whether the tag is custom component.\n */\nfunction isCustomComponent(tagName, props) {\n if (!tagName.includes('-')) {\n return Boolean(props && typeof props.is === 'string');\n }\n // These are reserved SVG and MathML elements.\n // We don't mind this whitelist too much because we expect it to never grow.\n // The alternative is to track the namespace in a few places which is convoluted.\n // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName)) {\n return false;\n }\n return true;\n}\nvar styleOptions = {\n reactCompat: true,\n};\n/**\n * Sets style prop.\n *\n * @param style - Inline style.\n * @param props - Props object.\n */\nfunction setStyleProp(style, props) {\n if (typeof style !== 'string') {\n return;\n }\n if (!style.trim()) {\n props.style = {};\n return;\n }\n try {\n props.style = (0, style_to_js_1.default)(style, styleOptions);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n }\n catch (error) {\n props.style = {};\n }\n}\n/**\n * @see https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html\n */\nexports.PRESERVE_CUSTOM_ATTRIBUTES = Number(react_1.version.split('.')[0]) >= 16;\n/**\n * @see https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react-dom/src/client/validateDOMNesting.js#L213\n */\nexports.ELEMENTS_WITH_NO_TEXT_CHILDREN = new Set([\n 'tr',\n 'tbody',\n 'thead',\n 'tfoot',\n 'colgroup',\n 'table',\n 'head',\n 'html',\n 'frameset',\n]);\n/**\n * Checks if the given node can contain text nodes\n *\n * @param node - Element node.\n * @returns - Whether the node can contain text nodes.\n */\nvar canTextBeChildOfNode = function (node) {\n return !exports.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name);\n};\nexports.canTextBeChildOfNode = canTextBeChildOfNode;\n/**\n * Returns the first argument as is.\n *\n * @param arg - The argument to be returned.\n * @returns - The input argument `arg`.\n */\nvar returnFirstArg = function (arg) { return arg; }; // eslint-disable-line @typescript-eslint/no-explicit-any\nexports.returnFirstArg = returnFirstArg;\n//# sourceMappingURL=utilities.js.map"],"names":["this","require$$0","require$$1"],"mappings":";;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,MAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC7D,CAAC;EACD,MAAM,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"utilities.js","sources":["../../../../../node_modules/html-react-parser/lib/utilities.js"],"sourcesContent":["\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.returnFirstArg = exports.canTextBeChildOfNode = exports.ELEMENTS_WITH_NO_TEXT_CHILDREN = exports.PRESERVE_CUSTOM_ATTRIBUTES = void 0;\nexports.isCustomComponent = isCustomComponent;\nexports.setStyleProp = setStyleProp;\nvar react_1 = require(\"react\");\nvar style_to_js_1 = __importDefault(require(\"style-to-js\"));\nvar RESERVED_SVG_MATHML_ELEMENTS = new Set([\n 'annotation-xml',\n 'color-profile',\n 'font-face',\n 'font-face-src',\n 'font-face-uri',\n 'font-face-format',\n 'font-face-name',\n 'missing-glyph',\n]);\n/**\n * Check if a tag is a custom component.\n *\n * @see {@link https://github.com/facebook/react/blob/v16.6.3/packages/react-dom/src/shared/isCustomComponent.js}\n *\n * @param tagName - Tag name.\n * @param props - Props passed to the element.\n * @returns - Whether the tag is custom component.\n */\nfunction isCustomComponent(tagName, props) {\n if (!tagName.includes('-')) {\n return Boolean(props && typeof props.is === 'string');\n }\n // These are reserved SVG and MathML elements.\n // We don't mind this whitelist too much because we expect it to never grow.\n // The alternative is to track the namespace in a few places which is convoluted.\n // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts\n if (RESERVED_SVG_MATHML_ELEMENTS.has(tagName)) {\n return false;\n }\n return true;\n}\nvar styleOptions = {\n reactCompat: true,\n};\n/**\n * Sets style prop.\n *\n * @param style - Inline style.\n * @param props - Props object.\n */\nfunction setStyleProp(style, props) {\n if (typeof style !== 'string') {\n return;\n }\n if (!style.trim()) {\n props.style = {};\n return;\n }\n try {\n props.style = (0, style_to_js_1.default)(style, styleOptions);\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n }\n catch (error) {\n props.style = {};\n }\n}\n/**\n * @see https://reactjs.org/blog/2017/09/08/dom-attributes-in-react-16.html\n */\nexports.PRESERVE_CUSTOM_ATTRIBUTES = Number(react_1.version.split('.')[0]) >= 16;\n/**\n * @see https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react-dom/src/client/validateDOMNesting.js#L213\n */\nexports.ELEMENTS_WITH_NO_TEXT_CHILDREN = new Set([\n 'tr',\n 'tbody',\n 'thead',\n 'tfoot',\n 'colgroup',\n 'table',\n 'head',\n 'html',\n 'frameset',\n]);\n/**\n * Checks if the given node can contain text nodes\n *\n * @param node - Element node.\n * @returns - Whether the node can contain text nodes.\n */\nvar canTextBeChildOfNode = function (node) {\n return !exports.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name);\n};\nexports.canTextBeChildOfNode = canTextBeChildOfNode;\n/**\n * Returns the first argument as is.\n *\n * @param arg - The argument to be returned.\n * @returns - The input argument `arg`.\n */\nvar returnFirstArg = function (arg) { return arg; }; // eslint-disable-line @typescript-eslint/no-explicit-any\nexports.returnFirstArg = returnFirstArg;\n//# sourceMappingURL=utilities.js.map"],"names":["this","exports","require$$0","require$$1"],"mappings":";;;;;;;;;;EACA,IAAI,eAAe,GAAG,CAACA,SAAI,IAAIA,SAAI,CAAC,eAAe,KAAK,UAAU,GAAG,EAAE;AACvE,MAAI,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,UAAU,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;EAC7D,CAAC;EACD,MAAM,CAAC,cAAc,CAAAC,SAAA,EAAU,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,EAAAA,SAAA,CAAA,cAAA,GAAyBA,SAAA,CAAA,oBAAA,GAA+BA,SAAA,CAAA,8BAAA,GAAyCA,SAAA,CAAA,0BAAA,GAAqC,MAAM;AAC5I,EAAAA,SAAA,CAAA,iBAAA,GAA4B,iBAAiB;AAC7C,EAAAA,SAAA,CAAA,YAAA,GAAuB,YAAY;EACnC,IAAI,OAAO,GAAGC,cAAgB;AAC9B,EAAA,IAAI,aAAa,GAAG,eAAe,CAACC,YAAsB,CAAC;AAC3D,EAAA,IAAI,4BAA4B,GAAG,IAAI,GAAG,CAAC;AAC3C,MAAI,gBAAgB;AACpB,MAAI,eAAe;AACnB,MAAI,WAAW;AACf,MAAI,eAAe;AACnB,MAAI,eAAe;AACnB,MAAI,kBAAkB;AACtB,MAAI,gBAA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,OAAO;AACX,MAAI,OAAO;AACX,MAAI,OAAO;AACX,MAAI,UAAU;AACd,MAAI,OAAO;AACX,MAAI,MAAM;AACV,MAAI,MAAM;AACV,MAAI,UAAU;AACd,GAAC,CAAC;AACF;AACA;AACA;AACA;AACA;AACA;AACA,EAAA,IAAI,oBAAoB,GAAG,UAAU,IAAI,EAAE;MACvC,OAAO,CAACA,SAAO,CAAC,8BAA8B,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;EACjE,CAAC;AACD,EAAAA,SAAA,CAAA,oBAAA,GAA+B,oBAAoB;AACnD;AACA;AACA;AACA;AACA;AACA;EACA,IAAI,cAAc,GAAG,UAAU,GAAG,EAAE,EAAE,OAAO,GAAG,CAAC,CAAA,CAAE,CAAC;AACpD,EAAAA,SAAA,CAAA,cAAA,GAAyB,cAAc;AACvC;;;;;;;","x_google_ignoreList":[0]}
|
|
@@ -10,7 +10,7 @@ var hasRequiredCommonjs;
|
|
|
10
10
|
function requireCommonjs () {
|
|
11
11
|
if (hasRequiredCommonjs) return commonjs;
|
|
12
12
|
hasRequiredCommonjs = 1;
|
|
13
|
-
(function (exports) {
|
|
13
|
+
(function (exports$1) {
|
|
14
14
|
var __createBinding = (commonjs && commonjs.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
15
|
if (k2 === undefined) k2 = k;
|
|
16
16
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -47,21 +47,21 @@ function requireCommonjs () {
|
|
|
47
47
|
var __importDefault = (commonjs && commonjs.__importDefault) || function (mod) {
|
|
48
48
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
49
49
|
};
|
|
50
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.DomUtils = exports.getFeed = exports.ElementType = exports.QuoteType = exports.Tokenizer = exports.DefaultHandler = exports.DomHandler = exports.Parser = void 0;
|
|
52
|
-
exports.parseDocument = parseDocument;
|
|
53
|
-
exports.parseDOM = parseDOM;
|
|
54
|
-
exports.createDocumentStream = createDocumentStream;
|
|
55
|
-
exports.createDomStream = createDomStream;
|
|
56
|
-
exports.parseFeed = parseFeed;
|
|
50
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
51
|
+
exports$1.DomUtils = exports$1.getFeed = exports$1.ElementType = exports$1.QuoteType = exports$1.Tokenizer = exports$1.DefaultHandler = exports$1.DomHandler = exports$1.Parser = void 0;
|
|
52
|
+
exports$1.parseDocument = parseDocument;
|
|
53
|
+
exports$1.parseDOM = parseDOM;
|
|
54
|
+
exports$1.createDocumentStream = createDocumentStream;
|
|
55
|
+
exports$1.createDomStream = createDomStream;
|
|
56
|
+
exports$1.parseFeed = parseFeed;
|
|
57
57
|
const Parser_js_1 = requireParser();
|
|
58
58
|
var Parser_js_2 = requireParser();
|
|
59
|
-
Object.defineProperty(exports, "Parser", { enumerable: true, get: function () { return Parser_js_2.Parser; } });
|
|
59
|
+
Object.defineProperty(exports$1, "Parser", { enumerable: true, get: function () { return Parser_js_2.Parser; } });
|
|
60
60
|
const domhandler_1 = /*@__PURE__*/ requireLib();
|
|
61
61
|
var domhandler_2 = /*@__PURE__*/ requireLib();
|
|
62
|
-
Object.defineProperty(exports, "DomHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
62
|
+
Object.defineProperty(exports$1, "DomHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
63
63
|
// Old name for DomHandler
|
|
64
|
-
Object.defineProperty(exports, "DefaultHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
64
|
+
Object.defineProperty(exports$1, "DefaultHandler", { enumerable: true, get: function () { return domhandler_2.DomHandler; } });
|
|
65
65
|
// Helper methods
|
|
66
66
|
/**
|
|
67
67
|
* Parses the data, returns the resulting document.
|
|
@@ -111,16 +111,16 @@ function requireCommonjs () {
|
|
|
111
111
|
return new Parser_js_1.Parser(handler, options);
|
|
112
112
|
}
|
|
113
113
|
var Tokenizer_js_1 = requireTokenizer();
|
|
114
|
-
Object.defineProperty(exports, "Tokenizer", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });
|
|
115
|
-
Object.defineProperty(exports, "QuoteType", { enumerable: true, get: function () { return Tokenizer_js_1.QuoteType; } });
|
|
114
|
+
Object.defineProperty(exports$1, "Tokenizer", { enumerable: true, get: function () { return __importDefault(Tokenizer_js_1).default; } });
|
|
115
|
+
Object.defineProperty(exports$1, "QuoteType", { enumerable: true, get: function () { return Tokenizer_js_1.QuoteType; } });
|
|
116
116
|
/*
|
|
117
117
|
* All of the following exports exist for backwards-compatibility.
|
|
118
118
|
* They should probably be removed eventually.
|
|
119
119
|
*/
|
|
120
|
-
exports.ElementType = __importStar(/*@__PURE__*/ requireLib$1());
|
|
120
|
+
exports$1.ElementType = __importStar(/*@__PURE__*/ requireLib$1());
|
|
121
121
|
const domutils_1 = /*@__PURE__*/ requireLib$2();
|
|
122
122
|
var domutils_2 = /*@__PURE__*/ requireLib$2();
|
|
123
|
-
Object.defineProperty(exports, "getFeed", { enumerable: true, get: function () { return domutils_2.getFeed; } });
|
|
123
|
+
Object.defineProperty(exports$1, "getFeed", { enumerable: true, get: function () { return domutils_2.getFeed; } });
|
|
124
124
|
const parseFeedDefaultOptions = { xmlMode: true };
|
|
125
125
|
/**
|
|
126
126
|
* Parse a feed.
|
|
@@ -131,7 +131,7 @@ function requireCommonjs () {
|
|
|
131
131
|
function parseFeed(feed, options = parseFeedDefaultOptions) {
|
|
132
132
|
return (0, domutils_1.getFeed)(parseDOM(feed, options));
|
|
133
133
|
}
|
|
134
|
-
exports.DomUtils = __importStar(/*@__PURE__*/ requireLib$2());
|
|
134
|
+
exports$1.DomUtils = __importStar(/*@__PURE__*/ requireLib$2());
|
|
135
135
|
|
|
136
136
|
} (commonjs));
|
|
137
137
|
return commonjs;
|