{"version":3,"sources":["webpack://alliance-for-young-artists-and-writers/./node_modules/html-dom-parser/lib/client/constants.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-dom-parser/lib/client/domparser.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-dom-parser/lib/client/html-to-dom.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-dom-parser/lib/client/utilities.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-dom-parser/node_modules/domhandler/lib/node.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-react-parser/index.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-react-parser/index.mjs","webpack://alliance-for-young-artists-and-writers/./node_modules/html-react-parser/lib/attributes-to-props.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-react-parser/lib/dom-to-react.js","webpack://alliance-for-young-artists-and-writers/./node_modules/html-react-parser/lib/utilities.js","webpack://alliance-for-young-artists-and-writers/./node_modules/inline-style-parser/index.js","webpack://alliance-for-young-artists-and-writers/./node_modules/react-property/index.js","webpack://alliance-for-young-artists-and-writers/./node_modules/react-property/lib/HTMLDOMPropertyConfig.js","webpack://alliance-for-young-artists-and-writers/./node_modules/react-property/lib/SVGDOMPropertyConfig.js","webpack://alliance-for-young-artists-and-writers/./node_modules/react-property/lib/injection.js","webpack://alliance-for-young-artists-and-writers/./node_modules/style-to-js/cjs/index.js","webpack://alliance-for-young-artists-and-writers/./node_modules/style-to-js/cjs/utilities.js","webpack://alliance-for-young-artists-and-writers/./node_modules/style-to-object/index.js"],"names":["module","exports","CASE_SENSITIVE_TAG_NAMES","HTML","HEAD","BODY","FIRST_TAG_REGEX","HEAD_TAG_REGEX","BODY_TAG_REGEX","parseFromDocument","Error","parseFromString","window","DOMParser","domParser","html","tagName","document","implementation","isIE","doc","createHTMLDocument","undefined","documentElement","getElementsByTagName","innerHTML","parseFromTemplate","template","createElement","content","childNodes","firstTagName","element","elements","match","toLowerCase","test","parentNode","removeChild","domparser","formatDOM","DIRECTIVE_REGEX","TypeError","directive","constants","domhandler","Comment","Element","ProcessingInstruction","Text","caseSensitiveTagNamesMap","i","len","length","formatAttributes","attributes","attribute","result","name","value","formatTagName","caseSensitiveTagName","getCaseSensitiveTagName","nodes","parent","index","current","node","nodeType","nodeName","children","nodeValue","prev","next","push","substring","indexOf","unshift","navigator","userAgent","_extendStatics","__extends","this","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","__","constructor","create","__assign","assign","t","s","n","arguments","apply","defineProperty","cloneNode","Document","NodeWithChildren","DataNode","Node","nodeTypes","Map","type","startIndex","endIndex","get","_a","enumerable","configurable","set","recursive","_super","data","_this","attribs","keys","map","_b","namespace","prefix","instr","elem","cloneChildren","clone_1","forEach","child","clone_2","clone_3","childs","domToReact","attributesToProps","htmlToDOM","domParserOptions","lowerCaseAttributeNames","HTMLReactParser","options","htmlparser2","default","reactProperty","utilities","setStyleProp","htmlProperties","svgProperties","svg","isCustomAttribute","attributeName","attributeNameLowerCased","attributeValue","property","props","propertyName","hasBooleanValue","hasOverloadedBooleanValue","PRESERVE_CUSTOM_ATTRIBUTES","style","React","skipAttributesToProps","isCustomComponent","replaceElement","library","cloneElement","isValidElement","hasReplace","replace","trim","key","dangerouslySetInnerHTML","__html","defaultValue","styleToJS","styleToJSOptions","reactCompat","version","split","invertObject","obj","override","isOverridePresent","overrides","is","COMMENT_REGEX","NEWLINE_REGEX","WHITESPACE_REGEX","PROPERTY_REGEX","COLON_REGEX","VALUE_REGEX","SEMICOLON_REGEX","TRIM_REGEX","EMPTY_STRING","str","lineno","column","updatePosition","lines","lastIndexOf","position","start","line","Position","whitespace","end","source","errorsList","error","msg","err","reason","filename","silent","re","m","exec","slice","comments","rules","c","comment","pos","charAt","declaration","prop","val","ret","decl","decls","declarations","HTMLDOMPropertyConfig","SVGDOMPropertyConfig","injection","MUST_USE_PROPERTY","HAS_BOOLEAN_VALUE","HAS_NUMERIC_VALUE","HAS_POSITIVE_NUMERIC_VALUE","HAS_OVERLOADED_BOOLEAN_VALUE","checkMask","bitmask","injectDOMPropertyConfig","domPropertyConfig","config","isSVG","propConfig","Properties","DOMAttributeNames","mustUseProperty","hasNumericValue","hasPositiveNumericValue","properties","RegExp","bind","autoFocus","accept","acceptCharset","accessKey","action","allowFullScreen","allowTransparency","alt","as","async","autoComplete","autoPlay","capture","cellPadding","cellSpacing","charSet","challenge","checked","cite","classID","className","cols","colSpan","contentEditable","contextMenu","controls","controlsList","coords","crossOrigin","dateTime","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","nonce","noValidate","open","optimum","pattern","placeholder","playsInline","poster","preload","profile","radioGroup","readOnly","referrerPolicy","rel","required","reversed","role","rows","rowSpan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","step","summary","tabIndex","target","title","useMap","width","wmode","wrap","about","datatype","inlist","resource","typeof","vocab","autoCapitalize","autoCorrect","autoSave","color","itemProp","itemScope","itemType","itemID","itemRef","results","security","unselectable","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeType","autoReverse","azimuth","baseFrequency","baseProfile","baselineShift","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipRule","clipPathUnits","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","ideographic","imageRendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerMid","markerStart","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","rotate","rx","ry","scale","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textRendering","textLength","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","values","vectorEffect","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","visibility","widths","wordSpacing","writingMode","x","xHeight","x1","x2","xChannelSelector","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlns","xmlnsXlink","xmlLang","xmlSpace","y","y1","y2","yChannelSelector","z","zoomAndPan","__importDefault","mod","__esModule","style_to_object_1","utilities_1","output","camelCase","CUSTOM_PROPERTY_REGEX","HYPHEN_REGEX","NO_HYPHEN_REGEX","VENDOR_PREFIX_REGEX","capitalize","character","toUpperCase","trimHyphen","skipCam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,GACrBme,EAAkC,mBAAbD,EAIhBllB,EAAI,EAAGC,EAAMsL,EAAarL,OAAQF,EAAIC,EAAKD,IAElD0G,GADAuE,EAAcM,EAAavL,IACJ0G,SACvBlG,EAAQyK,EAAYzK,MAEhB2kB,EACFD,EAASxe,EAAUlG,EAAOyK,GACjBzK,IACT8jB,IAAWA,EAAS,IACpBA,EAAO5d,GAAYlG,GAIvB,OAAO8jB","file":"d9ece6a62dda7ae2db556d1d8cea001e3ac83dc0-f8f6eb21c132c8c50cf8.js","sourcesContent":["/**\n * SVG elements are case-sensitive.\n *\n * @see {@link https://developer.mozilla.org/docs/Web/SVG/Element#SVG_elements_A_to_Z}\n */\nvar CASE_SENSITIVE_TAG_NAMES = ['animateMotion', 'animateTransform', 'clipPath', 'feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussainBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence', 'foreignObject', 'linearGradient', 'radialGradient', 'textPath'];\nmodule.exports = {\n CASE_SENSITIVE_TAG_NAMES: CASE_SENSITIVE_TAG_NAMES\n};","// constants\nvar HTML = 'html';\nvar HEAD = 'head';\nvar BODY = 'body';\nvar FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/; // e.g.,

\n\nvar HEAD_TAG_REGEX = //i;\nvar BODY_TAG_REGEX = //i; // falls back to `parseFromString` if `createHTMLDocument` cannot be used\n\nvar parseFromDocument = function parseFromDocument() {\n throw new Error('This browser does not support `document.implementation.createHTMLDocument`');\n};\n\nvar parseFromString = function parseFromString() {\n throw new Error('This browser does not support `DOMParser.prototype.parseFromString`');\n};\n/**\n * DOMParser (performance: slow).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMParser#Parsing_an_SVG_or_HTML_document\n */\n\n\nif (typeof window.DOMParser === 'function') {\n var domParser = new window.DOMParser();\n var mimeType = 'text/html';\n /**\n * Creates an HTML document using `DOMParser.parseFromString`.\n *\n * @param {string} html - The HTML string.\n * @param {string} [tagName] - The element to render the HTML (with 'body' as fallback).\n * @return {HTMLDocument}\n */\n\n parseFromString = function parseFromString(html, tagName) {\n if (tagName) {\n html = '<' + tagName + '>' + html + '';\n }\n\n return domParser.parseFromString(html, mimeType);\n };\n\n parseFromDocument = parseFromString;\n}\n/**\n * DOMImplementation (performance: fair).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument\n */\n\n\nif (document.implementation) {\n var isIE = require('./utilities').isIE; // title parameter is required in IE\n // https://msdn.microsoft.com/en-us/library/ff975457(v=vs.85).aspx\n\n\n var doc = document.implementation.createHTMLDocument(isIE() ? 'html-dom-parser' : undefined);\n /**\n * Use HTML document created by `document.implementation.createHTMLDocument`.\n *\n * @param {string} html - The HTML string.\n * @param {string} [tagName] - The element to render the HTML (with 'body' as fallback).\n * @return {HTMLDocument}\n */\n\n parseFromDocument = function parseFromDocument(html, tagName) {\n if (tagName) {\n doc.documentElement.getElementsByTagName(tagName)[0].innerHTML = html;\n return doc;\n }\n\n doc.documentElement.innerHTML = html;\n return doc;\n };\n}\n/**\n * Template (performance: fast).\n *\n * @see https://developer.mozilla.org/docs/Web/HTML/Element/template\n */\n\n\nvar template = document.createElement('template');\nvar parseFromTemplate;\n\nif (template.content) {\n /**\n * Uses a template element (content fragment) to parse HTML.\n *\n * @param {string} html - The HTML string.\n * @return {NodeList}\n */\n parseFromTemplate = function parseFromTemplate(html) {\n template.innerHTML = html;\n return template.content.childNodes;\n };\n}\n/**\n * Parses HTML string to DOM nodes.\n *\n * @param {string} html - HTML markup.\n * @return {NodeList}\n */\n\n\nfunction domparser(html) {\n var firstTagName;\n var match = html.match(FIRST_TAG_REGEX);\n\n if (match && match[1]) {\n firstTagName = match[1].toLowerCase();\n }\n\n var doc;\n var element;\n var elements;\n\n switch (firstTagName) {\n case HTML:\n doc = parseFromString(html); // the created document may come with filler head/body elements,\n // so make sure to remove them if they don't actually exist\n\n if (!HEAD_TAG_REGEX.test(html)) {\n element = doc.getElementsByTagName(HEAD)[0];\n\n if (element) {\n element.parentNode.removeChild(element);\n }\n }\n\n if (!BODY_TAG_REGEX.test(html)) {\n element = doc.getElementsByTagName(BODY)[0];\n\n if (element) {\n element.parentNode.removeChild(element);\n }\n }\n\n return doc.getElementsByTagName(HTML);\n\n case HEAD:\n case BODY:\n elements = parseFromDocument(html).getElementsByTagName(firstTagName); // if there's a sibling element, then return both elements\n\n if (BODY_TAG_REGEX.test(html) && HEAD_TAG_REGEX.test(html)) {\n return elements[0].parentNode.childNodes;\n }\n\n return elements;\n // low-level tag or text\n\n default:\n if (parseFromTemplate) {\n return parseFromTemplate(html);\n }\n\n return parseFromDocument(html, BODY).getElementsByTagName(BODY)[0].childNodes;\n }\n}\n\nmodule.exports = domparser;","var domparser = require('./domparser');\n\nvar formatDOM = require('./utilities').formatDOM;\n\nvar DIRECTIVE_REGEX = /<(![a-zA-Z\\s]+)>/; // e.g., \n\n/**\n * Parses HTML string to DOM nodes in browser.\n *\n * @param {string} html - HTML markup.\n * @return {DomElement[]} - DOM elements.\n */\n\nfunction HTMLDOMParser(html) {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (html === '') {\n return [];\n } // match directive\n\n\n var match = html.match(DIRECTIVE_REGEX);\n var directive;\n\n if (match && match[1]) {\n directive = match[1];\n }\n\n return formatDOM(domparser(html), null, directive);\n}\n\nmodule.exports = HTMLDOMParser;","var constants = require('./constants');\n\nvar domhandler = require('domhandler/lib/node');\n\nvar CASE_SENSITIVE_TAG_NAMES = constants.CASE_SENSITIVE_TAG_NAMES;\nvar Comment = domhandler.Comment;\nvar Element = domhandler.Element;\nvar ProcessingInstruction = domhandler.ProcessingInstruction;\nvar Text = domhandler.Text;\nvar caseSensitiveTagNamesMap = {};\nvar tagName;\n\nfor (var i = 0, len = CASE_SENSITIVE_TAG_NAMES.length; i < len; i++) {\n tagName = CASE_SENSITIVE_TAG_NAMES[i];\n caseSensitiveTagNamesMap[tagName.toLowerCase()] = tagName;\n}\n/**\n * Gets case-sensitive tag name.\n *\n * @param {string} tagName - Tag name in lowercase.\n * @return {string|undefined} - Case-sensitive tag name.\n */\n\n\nfunction getCaseSensitiveTagName(tagName) {\n return caseSensitiveTagNamesMap[tagName];\n}\n/**\n * Formats DOM attributes to a hash map.\n *\n * @param {NamedNodeMap} attributes - List of attributes.\n * @return {object} - Map of attribute name to value.\n */\n\n\nfunction formatAttributes(attributes) {\n var result = {};\n var attribute; // `NamedNodeMap` is array-like\n\n for (var i = 0, len = attributes.length; i < len; i++) {\n attribute = attributes[i];\n result[attribute.name] = attribute.value;\n }\n\n return result;\n}\n/**\n * Corrects the tag name if it is case-sensitive (SVG).\n * Otherwise, returns the lowercase tag name (HTML).\n *\n * @param {string} tagName - Lowercase tag name.\n * @return {string} - Formatted tag name.\n */\n\n\nfunction formatTagName(tagName) {\n tagName = tagName.toLowerCase();\n var caseSensitiveTagName = getCaseSensitiveTagName(tagName);\n\n if (caseSensitiveTagName) {\n return caseSensitiveTagName;\n }\n\n return tagName;\n}\n/**\n * Transforms DOM nodes to `domhandler` nodes.\n *\n * @param {NodeList} nodes - DOM nodes.\n * @param {Element|null} [parent=null] - Parent node.\n * @param {string} [directive] - Directive.\n * @return {Array}\n */\n\n\nfunction formatDOM(nodes, parent, directive) {\n parent = parent || null;\n var result = [];\n\n for (var index = 0, len = nodes.length; index < len; index++) {\n var node = nodes[index];\n var current; // set the node data given the type\n\n switch (node.nodeType) {\n case 1:\n // script, style, or tag\n current = new Element(formatTagName(node.nodeName), formatAttributes(node.attributes));\n current.children = formatDOM(node.childNodes, current);\n break;\n\n case 3:\n current = new Text(node.nodeValue);\n break;\n\n case 8:\n current = new Comment(node.nodeValue);\n break;\n\n default:\n continue;\n } // set previous node next\n\n\n var prev = result[index - 1] || null;\n\n if (prev) {\n prev.next = current;\n } // set properties for current node\n\n\n current.parent = parent;\n current.prev = prev;\n current.next = null;\n result.push(current);\n }\n\n if (directive) {\n current = new ProcessingInstruction(directive.substring(0, directive.indexOf(' ')).toLowerCase(), directive);\n current.next = result[0] || null;\n current.parent = parent;\n result.unshift(current);\n\n if (result[1]) {\n result[1].prev = result[0];\n }\n }\n\n return result;\n}\n/**\n * Detects if browser is Internet Explorer.\n *\n * @return {boolean} - Whether IE is detected.\n */\n\n\nfunction isIE() {\n return /(MSIE |Trident\\/|Edge\\/)/.test(navigator.userAgent);\n}\n\nmodule.exports = {\n formatAttributes: formatAttributes,\n formatDOM: formatDOM,\n isIE: isIE\n};","\"use strict\";\n\nvar __extends = this && this.__extends || function () {\n var _extendStatics = function extendStatics(d, b) {\n _extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) {\n if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n }\n };\n\n return _extendStatics(d, b);\n };\n\n return function (d, b) {\n _extendStatics(d, b);\n\n function __() {\n this.constructor = d;\n }\n\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\n\nvar __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.cloneNode = exports.Element = exports.Document = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar nodeTypes = new Map([[\"tag\"\n/* Tag */\n, 1], [\"script\"\n/* Script */\n, 1], [\"style\"\n/* Style */\n, 1], [\"directive\"\n/* Directive */\n, 1], [\"text\"\n/* Text */\n, 3], [\"cdata\"\n/* CDATA */\n, 4], [\"comment\"\n/* Comment */\n, 8], [\"root\"\n/* Root */\n, 9]]);\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\n\nvar Node =\n/** @class */\nfunction () {\n /**\n *\n * @param type The type of the node.\n */\n function Node(type) {\n this.type = type;\n /** Parent of the node */\n\n this.parent = null;\n /** Previous sibling */\n\n this.prev = null;\n /** Next sibling */\n\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n\n this.endIndex = null;\n }\n\n Object.defineProperty(Node.prototype, \"nodeType\", {\n // Read-only aliases\n get: function get() {\n var _a;\n\n return (_a = nodeTypes.get(this.type)) !== null && _a !== void 0 ? _a : 1;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"parentNode\", {\n // Read-write aliases for properties\n get: function get() {\n return this.parent;\n },\n set: function set(parent) {\n this.parent = parent;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"previousSibling\", {\n get: function get() {\n return this.prev;\n },\n set: function set(prev) {\n this.prev = prev;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n get: function get() {\n return this.next;\n },\n set: function set(next) {\n this.next = next;\n },\n enumerable: false,\n configurable: true\n });\n /**\n * Clone this node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n\n Node.prototype.cloneNode = function (recursive) {\n if (recursive === void 0) {\n recursive = false;\n }\n\n return cloneNode(this, recursive);\n };\n\n return Node;\n}();\n\nexports.Node = Node;\n\nvar DataNode =\n/** @class */\nfunction (_super) {\n __extends(DataNode, _super);\n /**\n * @param type The type of the node\n * @param data The content of the data node\n */\n\n\n function DataNode(type, data) {\n var _this = _super.call(this, type) || this;\n\n _this.data = data;\n return _this;\n }\n\n Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n get: function get() {\n return this.data;\n },\n set: function set(data) {\n this.data = data;\n },\n enumerable: false,\n configurable: true\n });\n return DataNode;\n}(Node);\n\nexports.DataNode = DataNode;\n\nvar Text =\n/** @class */\nfunction (_super) {\n __extends(Text, _super);\n\n function Text(data) {\n return _super.call(this, \"text\"\n /* Text */\n , data) || this;\n }\n\n return Text;\n}(DataNode);\n\nexports.Text = Text;\n\nvar Comment =\n/** @class */\nfunction (_super) {\n __extends(Comment, _super);\n\n function Comment(data) {\n return _super.call(this, \"comment\"\n /* Comment */\n , data) || this;\n }\n\n return Comment;\n}(DataNode);\n\nexports.Comment = Comment;\n\nvar ProcessingInstruction =\n/** @class */\nfunction (_super) {\n __extends(ProcessingInstruction, _super);\n\n function ProcessingInstruction(name, data) {\n var _this = _super.call(this, \"directive\"\n /* Directive */\n , data) || this;\n\n _this.name = name;\n return _this;\n }\n\n return ProcessingInstruction;\n}(DataNode);\n\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\n\nvar NodeWithChildren =\n/** @class */\nfunction (_super) {\n __extends(NodeWithChildren, _super);\n /**\n * @param type Type of the node.\n * @param children Children of the node. Only certain node types can have children.\n */\n\n\n function NodeWithChildren(type, children) {\n var _this = _super.call(this, type) || this;\n\n _this.children = children;\n return _this;\n }\n\n Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n // Aliases\n get: function get() {\n var _a;\n\n return (_a = this.children[0]) !== null && _a !== void 0 ? _a : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"lastChild\", {\n get: function get() {\n return this.children.length > 0 ? this.children[this.children.length - 1] : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n get: function get() {\n return this.children;\n },\n set: function set(children) {\n this.children = children;\n },\n enumerable: false,\n configurable: true\n });\n return NodeWithChildren;\n}(Node);\n\nexports.NodeWithChildren = NodeWithChildren;\n\nvar Document =\n/** @class */\nfunction (_super) {\n __extends(Document, _super);\n\n function Document(children) {\n return _super.call(this, \"root\"\n /* Root */\n , children) || this;\n }\n\n return Document;\n}(NodeWithChildren);\n\nexports.Document = Document;\n\nvar Element =\n/** @class */\nfunction (_super) {\n __extends(Element, _super);\n /**\n * @param name Name of the tag, eg. `div`, `span`.\n * @param attribs Object mapping attribute names to attribute values.\n * @param children Children of the node.\n */\n\n\n function Element(name, attribs, children) {\n if (children === void 0) {\n children = [];\n }\n\n var _this = _super.call(this, name === \"script\" ? \"script\"\n /* Script */\n : name === \"style\" ? \"style\"\n /* Style */\n : \"tag\"\n /* Tag */\n , children) || this;\n\n _this.name = name;\n _this.attribs = attribs;\n _this.attribs = attribs;\n return _this;\n }\n\n Object.defineProperty(Element.prototype, \"tagName\", {\n // DOM Level 1 aliases\n get: function get() {\n return this.name;\n },\n set: function set(name) {\n this.name = name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"attributes\", {\n get: function get() {\n var _this = this;\n\n return Object.keys(this.attribs).map(function (name) {\n var _a, _b;\n\n return {\n name: name,\n value: _this.attribs[name],\n namespace: (_a = _this[\"x-attribsNamespace\"]) === null || _a === void 0 ? void 0 : _a[name],\n prefix: (_b = _this[\"x-attribsPrefix\"]) === null || _b === void 0 ? void 0 : _b[name]\n };\n });\n },\n enumerable: false,\n configurable: true\n });\n return Element;\n}(NodeWithChildren);\n\nexports.Element = Element;\n/**\n * Clone a node, and optionally its children.\n *\n * @param recursive Clone child nodes as well.\n * @returns A clone of the node.\n */\n\nfunction cloneNode(node, recursive) {\n if (recursive === void 0) {\n recursive = false;\n }\n\n var result;\n\n switch (node.type) {\n case \"text\"\n /* Text */\n :\n result = new Text(node.data);\n break;\n\n case \"directive\"\n /* Directive */\n :\n {\n var instr = node;\n result = new ProcessingInstruction(instr.name, instr.data);\n\n if (instr[\"x-name\"] != null) {\n result[\"x-name\"] = instr[\"x-name\"];\n result[\"x-publicId\"] = instr[\"x-publicId\"];\n result[\"x-systemId\"] = instr[\"x-systemId\"];\n }\n\n break;\n }\n\n case \"comment\"\n /* Comment */\n :\n result = new Comment(node.data);\n break;\n\n case \"tag\"\n /* Tag */\n :\n case \"script\"\n /* Script */\n :\n case \"style\"\n /* Style */\n :\n {\n var elem = node;\n var children = recursive ? cloneChildren(elem.children) : [];\n var clone_1 = new Element(elem.name, __assign({}, elem.attribs), children);\n children.forEach(function (child) {\n return child.parent = clone_1;\n });\n\n if (elem[\"x-attribsNamespace\"]) {\n clone_1[\"x-attribsNamespace\"] = __assign({}, elem[\"x-attribsNamespace\"]);\n }\n\n if (elem[\"x-attribsPrefix\"]) {\n clone_1[\"x-attribsPrefix\"] = __assign({}, elem[\"x-attribsPrefix\"]);\n }\n\n result = clone_1;\n break;\n }\n\n case \"cdata\"\n /* CDATA */\n :\n {\n var cdata = node;\n var children = recursive ? cloneChildren(cdata.children) : [];\n var clone_2 = new NodeWithChildren(node.type, children);\n children.forEach(function (child) {\n return child.parent = clone_2;\n });\n result = clone_2;\n break;\n }\n\n case \"root\"\n /* Root */\n :\n {\n var doc = node;\n var children = recursive ? cloneChildren(doc.children) : [];\n var clone_3 = new Document(children);\n children.forEach(function (child) {\n return child.parent = clone_3;\n });\n\n if (doc[\"x-mode\"]) {\n clone_3[\"x-mode\"] = doc[\"x-mode\"];\n }\n\n result = clone_3;\n break;\n }\n\n case \"doctype\"\n /* Doctype */\n :\n {\n // This type isn't used yet.\n throw new Error(\"Not implemented yet: ElementType.Doctype case\");\n }\n }\n\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n return result;\n}\n\nexports.cloneNode = cloneNode;\n\nfunction cloneChildren(childs) {\n var children = childs.map(function (child) {\n return cloneNode(child, true);\n });\n\n for (var i = 1; i < children.length; i++) {\n children[i].prev = children[i - 1];\n children[i - 1].next = children[i];\n }\n\n return children;\n}","var domToReact = require('./lib/dom-to-react');\n\nvar attributesToProps = require('./lib/attributes-to-props');\n\nvar htmlToDOM = require('html-dom-parser');\n\nvar domParserOptions = {\n lowerCaseAttributeNames: false\n};\n/**\n * Converts HTML string to React elements.\n *\n * @param {String} html - HTML string.\n * @param {Object} [options] - Parser options.\n * @param {Object} [options.htmlparser2] - htmlparser2 options.\n * @param {Object} [options.library] - Library for React, Preact, etc.\n * @param {Function} [options.replace] - Replace method.\n * @return {JSX.Element|JSX.Element[]|String} - React element(s), empty array, or string.\n */\n\nfunction HTMLReactParser(html, options) {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (html === '') {\n return [];\n }\n\n options = options || {};\n return domToReact(htmlToDOM(html, options.htmlparser2 || domParserOptions), options);\n}\n\nHTMLReactParser.domToReact = domToReact;\nHTMLReactParser.htmlToDOM = htmlToDOM;\nHTMLReactParser.attributesToProps = attributesToProps; // support CommonJS and ES Modules\n\nmodule.exports = HTMLReactParser;\nmodule.exports.default = HTMLReactParser;","import HTMLReactParser from './index.js';\nexport var domToReact = HTMLReactParser.domToReact;\nexport var htmlToDOM = HTMLReactParser.htmlToDOM;\nexport var attributesToProps = HTMLReactParser.attributesToProps;\nexport default HTMLReactParser;","var reactProperty = require('react-property');\n\nvar utilities = require('./utilities');\n\nvar setStyleProp = utilities.setStyleProp;\nvar htmlProperties = reactProperty.html;\nvar svgProperties = reactProperty.svg;\nvar isCustomAttribute = reactProperty.isCustomAttribute;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n/**\n * Converts HTML/SVG DOM attributes to React props.\n *\n * @param {object} [attributes={}] - HTML/SVG DOM attributes.\n * @return {object} - React props.\n */\n\nfunction attributesToProps(attributes) {\n attributes = attributes || {};\n var attributeName;\n var attributeNameLowerCased;\n var attributeValue;\n var property;\n var props = {};\n\n for (attributeName in attributes) {\n attributeValue = attributes[attributeName]; // ARIA (aria-*) or custom data (data-*) attribute\n\n if (isCustomAttribute(attributeName)) {\n props[attributeName] = attributeValue;\n continue;\n } // convert HTML attribute to React prop\n\n\n attributeNameLowerCased = attributeName.toLowerCase();\n\n if (hasOwnProperty.call(htmlProperties, attributeNameLowerCased)) {\n property = htmlProperties[attributeNameLowerCased];\n props[property.propertyName] = property.hasBooleanValue || property.hasOverloadedBooleanValue && !attributeValue ? true : attributeValue;\n continue;\n } // convert SVG attribute to React prop\n\n\n if (hasOwnProperty.call(svgProperties, attributeName)) {\n property = svgProperties[attributeName];\n props[property.propertyName] = attributeValue;\n continue;\n } // preserve custom attribute if React >=16\n\n\n if (utilities.PRESERVE_CUSTOM_ATTRIBUTES) {\n props[attributeName] = attributeValue;\n }\n } // transform inline style to object\n\n\n setStyleProp(attributes.style, props);\n return props;\n}\n\nmodule.exports = attributesToProps;","var React = require('react');\n\nvar attributesToProps = require('./attributes-to-props');\n\nvar utilities = require('./utilities');\n\nvar setStyleProp = utilities.setStyleProp;\n/**\n * Converts DOM nodes to JSX element(s).\n *\n * @param {DomElement[]} nodes - DOM nodes.\n * @param {object} [options={}] - Options.\n * @param {Function} [options.replace] - Replacer.\n * @param {object} [options.library] - Library (React/Preact/etc.).\n * @return {string|JSX.Element|JSX.Element[]}\n */\n\nfunction domToReact(nodes, options) {\n options = options || {};\n var library = options.library || React;\n var cloneElement = library.cloneElement;\n var createElement = library.createElement;\n var isValidElement = library.isValidElement;\n var result = [];\n var node;\n var hasReplace = typeof options.replace === 'function';\n var replaceElement;\n var props;\n var children;\n var data;\n var trim = options.trim;\n\n for (var i = 0, len = nodes.length; i < len; i++) {\n node = nodes[i]; // replace with custom React element (if present)\n\n if (hasReplace) {\n replaceElement = options.replace(node);\n\n if (isValidElement(replaceElement)) {\n // set \"key\" prop for sibling elements\n // https://fb.me/react-warning-keys\n if (len > 1) {\n replaceElement = cloneElement(replaceElement, {\n key: replaceElement.key || i\n });\n }\n\n result.push(replaceElement);\n continue;\n }\n }\n\n if (node.type === 'text') {\n // if trim option is enabled, skip whitespace text nodes\n if (trim) {\n data = node.data.trim();\n\n if (data) {\n result.push(node.data);\n }\n } else {\n result.push(node.data);\n }\n\n continue;\n }\n\n props = node.attribs;\n\n if (skipAttributesToProps(node)) {\n setStyleProp(props.style, props);\n } else if (props) {\n props = attributesToProps(props);\n }\n\n children = null;\n\n switch (node.type) {\n case 'script':\n case 'style':\n // prevent text in