@madie/madie-design-system 1.2.97 → 1.2.98

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.
Files changed (213) hide show
  1. package/components/RichTextEditor/test.html +1 -0
  2. package/dist/browser.js +1 -1
  3. package/dist/index.js +1 -1
  4. package/madie-madie-design-system-1.2.96.tgz +0 -0
  5. package/madie-madie-design-system-1.2.98.tgz +0 -0
  6. package/package.json +1 -1
  7. package/storybook-static/1005.b918c97b.iframe.bundle.js +3 -0
  8. package/storybook-static/1005.b918c97b.iframe.bundle.js.LICENSE.txt +1 -0
  9. package/storybook-static/1005.b918c97b.iframe.bundle.js.map +1 -0
  10. package/storybook-static/1236.098e1cb2.iframe.bundle.js +2 -0
  11. package/storybook-static/1236.098e1cb2.iframe.bundle.js.map +1 -0
  12. package/storybook-static/139.ac2799e4.iframe.bundle.js +3 -0
  13. package/storybook-static/139.ac2799e4.iframe.bundle.js.LICENSE.txt +26 -0
  14. package/storybook-static/139.ac2799e4.iframe.bundle.js.map +1 -0
  15. package/storybook-static/1984.6b4e50ae.iframe.bundle.js +2 -0
  16. package/storybook-static/1984.6b4e50ae.iframe.bundle.js.map +1 -0
  17. package/storybook-static/2543.31cbf114.iframe.bundle.js +3 -0
  18. package/storybook-static/2543.31cbf114.iframe.bundle.js.LICENSE.txt +8 -0
  19. package/storybook-static/2543.31cbf114.iframe.bundle.js.map +1 -0
  20. package/storybook-static/2862.571661b6.iframe.bundle.js +2 -0
  21. package/storybook-static/2862.571661b6.iframe.bundle.js.map +1 -0
  22. package/storybook-static/2902.1a427f9a.iframe.bundle.js +2 -0
  23. package/storybook-static/2902.1a427f9a.iframe.bundle.js.map +1 -0
  24. package/storybook-static/2984.7fe13753.iframe.bundle.js +2 -0
  25. package/storybook-static/2984.7fe13753.iframe.bundle.js.map +1 -0
  26. package/storybook-static/312.c4693e73.iframe.bundle.js +3 -0
  27. package/storybook-static/312.c4693e73.iframe.bundle.js.LICENSE.txt +17 -0
  28. package/storybook-static/312.c4693e73.iframe.bundle.js.map +1 -0
  29. package/storybook-static/3666.a04121c4.iframe.bundle.js +2 -0
  30. package/storybook-static/3666.a04121c4.iframe.bundle.js.map +1 -0
  31. package/storybook-static/4197.408fcd63.iframe.bundle.js +2 -0
  32. package/storybook-static/4197.408fcd63.iframe.bundle.js.map +1 -0
  33. package/storybook-static/442.81ce93b1.iframe.bundle.js +2 -0
  34. package/storybook-static/442.81ce93b1.iframe.bundle.js.map +1 -0
  35. package/storybook-static/5161.8a31ff0b.iframe.bundle.js +3 -0
  36. package/storybook-static/5161.8a31ff0b.iframe.bundle.js.LICENSE.txt +8 -0
  37. package/storybook-static/5161.8a31ff0b.iframe.bundle.js.map +1 -0
  38. package/storybook-static/5238.c4a8e283.iframe.bundle.js +2 -0
  39. package/storybook-static/5238.c4a8e283.iframe.bundle.js.map +1 -0
  40. package/storybook-static/6294.8381ed88.iframe.bundle.js +2 -0
  41. package/storybook-static/6294.8381ed88.iframe.bundle.js.map +1 -0
  42. package/storybook-static/6728.48097498.iframe.bundle.js +185 -0
  43. package/storybook-static/6728.48097498.iframe.bundle.js.LICENSE.txt +8 -0
  44. package/storybook-static/6728.48097498.iframe.bundle.js.map +1 -0
  45. package/storybook-static/7148.1912a15a.iframe.bundle.js +3 -0
  46. package/storybook-static/7148.1912a15a.iframe.bundle.js.LICENSE.txt +27 -0
  47. package/storybook-static/7148.1912a15a.iframe.bundle.js.map +1 -0
  48. package/storybook-static/7364.0bbb17e6.iframe.bundle.js +1 -0
  49. package/storybook-static/7368.edc8102e.iframe.bundle.js +3 -0
  50. package/storybook-static/7368.edc8102e.iframe.bundle.js.LICENSE.txt +7 -0
  51. package/storybook-static/7368.edc8102e.iframe.bundle.js.map +1 -0
  52. package/storybook-static/7608.5925882a.iframe.bundle.js +2 -0
  53. package/storybook-static/7608.5925882a.iframe.bundle.js.map +1 -0
  54. package/storybook-static/7648.5ac43950.iframe.bundle.js +2 -0
  55. package/storybook-static/7648.5ac43950.iframe.bundle.js.map +1 -0
  56. package/storybook-static/7674.58735d56.iframe.bundle.js +3 -0
  57. package/storybook-static/7674.58735d56.iframe.bundle.js.LICENSE.txt +21 -0
  58. package/storybook-static/7674.58735d56.iframe.bundle.js.map +1 -0
  59. package/storybook-static/8552.33b568fb.iframe.bundle.js +10 -0
  60. package/storybook-static/8552.33b568fb.iframe.bundle.js.LICENSE.txt +14 -0
  61. package/storybook-static/8552.33b568fb.iframe.bundle.js.map +1 -0
  62. package/storybook-static/8609.28d04d51.iframe.bundle.js +3 -0
  63. package/storybook-static/8609.28d04d51.iframe.bundle.js.LICENSE.txt +11 -0
  64. package/storybook-static/8609.28d04d51.iframe.bundle.js.map +1 -0
  65. package/storybook-static/8936.ecc13c90.iframe.bundle.js +2 -0
  66. package/storybook-static/8936.ecc13c90.iframe.bundle.js.map +1 -0
  67. package/storybook-static/8980.64c0d3f1.iframe.bundle.js +2 -0
  68. package/storybook-static/8980.64c0d3f1.iframe.bundle.js.map +1 -0
  69. package/storybook-static/9269.8bb04a59.iframe.bundle.js +2 -0
  70. package/storybook-static/9269.8bb04a59.iframe.bundle.js.map +1 -0
  71. package/storybook-static/9425.89de0c76.iframe.bundle.js +2 -0
  72. package/storybook-static/9425.89de0c76.iframe.bundle.js.map +1 -0
  73. package/storybook-static/961.3d25a584.iframe.bundle.js +3 -0
  74. package/storybook-static/961.3d25a584.iframe.bundle.js.LICENSE.txt +17 -0
  75. package/storybook-static/961.3d25a584.iframe.bundle.js.map +1 -0
  76. package/storybook-static/9646.75583d09.iframe.bundle.js +2 -0
  77. package/storybook-static/9646.75583d09.iframe.bundle.js.map +1 -0
  78. package/storybook-static/9822.ff44564b.iframe.bundle.js +2 -0
  79. package/storybook-static/9822.ff44564b.iframe.bundle.js.map +1 -0
  80. package/storybook-static/9878.85fd7dab.iframe.bundle.js +95 -0
  81. package/storybook-static/9878.85fd7dab.iframe.bundle.js.LICENSE.txt +8 -0
  82. package/storybook-static/9878.85fd7dab.iframe.bundle.js.map +1 -0
  83. package/storybook-static/Accordion-Accordion-stories.0c0bc5e9.iframe.bundle.js +2 -0
  84. package/storybook-static/Accordion-Accordion-stories.0c0bc5e9.iframe.bundle.js.map +1 -0
  85. package/storybook-static/Alert-Alert-stories.b50ecf37.iframe.bundle.js +2 -0
  86. package/storybook-static/Alert-Alert-stories.b50ecf37.iframe.bundle.js.map +1 -0
  87. package/storybook-static/AutoComplete-AutoComplete-stories.c19f10c7.iframe.bundle.js +2 -0
  88. package/storybook-static/AutoComplete-AutoComplete-stories.c19f10c7.iframe.bundle.js.map +1 -0
  89. package/storybook-static/Breadcrumb-Breadcrumb-stories.dc6d7542.iframe.bundle.js +2 -0
  90. package/storybook-static/Breadcrumb-Breadcrumb-stories.dc6d7542.iframe.bundle.js.map +1 -0
  91. package/storybook-static/Button-Button-stories.d72e6d80.iframe.bundle.js +2 -0
  92. package/storybook-static/Button-Button-stories.d72e6d80.iframe.bundle.js.map +1 -0
  93. package/storybook-static/CalloutBox-CalloutBox-stories.ba542174.iframe.bundle.js +2 -0
  94. package/storybook-static/CalloutBox-CalloutBox-stories.ba542174.iframe.bundle.js.map +1 -0
  95. package/storybook-static/Card-Card-stories.91f76acb.iframe.bundle.js +2 -0
  96. package/storybook-static/Card-Card-stories.91f76acb.iframe.bundle.js.map +1 -0
  97. package/storybook-static/DateField-DateField-stories.bbe464e1.iframe.bundle.js +2 -0
  98. package/storybook-static/DateField-DateField-stories.bbe464e1.iframe.bundle.js.map +1 -0
  99. package/storybook-static/DateTimeField-DateTimeField-stories.d00a350a.iframe.bundle.js +2 -0
  100. package/storybook-static/DateTimeField-DateTimeField-stories.d00a350a.iframe.bundle.js.map +1 -0
  101. package/storybook-static/Dropdown-Dropdown-stories.2c72dbc5.iframe.bundle.js +2 -0
  102. package/storybook-static/Dropdown-Dropdown-stories.2c72dbc5.iframe.bundle.js.map +1 -0
  103. package/storybook-static/Footer-Footer-stories.ec274928.iframe.bundle.js +2 -0
  104. package/storybook-static/Footer-Footer-stories.ec274928.iframe.bundle.js.map +1 -0
  105. package/storybook-static/Infotip-Infotip-stories.3a2e9151.iframe.bundle.js +2 -0
  106. package/storybook-static/Infotip-Infotip-stories.3a2e9151.iframe.bundle.js.map +1 -0
  107. package/storybook-static/Instant-Instant-stories.d4d3b917.iframe.bundle.js +2 -0
  108. package/storybook-static/Instant-Instant-stories.d4d3b917.iframe.bundle.js.map +1 -0
  109. package/storybook-static/Link-Link-stories.e4a40f96.iframe.bundle.js +2 -0
  110. package/storybook-static/Link-Link-stories.e4a40f96.iframe.bundle.js.map +1 -0
  111. package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js +3 -0
  112. package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js.LICENSE.txt +5 -0
  113. package/storybook-static/MadieAlert-MadieAlert-stories.ff732f0b.iframe.bundle.js.map +1 -0
  114. package/storybook-static/MadieConfirmDialog-MadieConfirmDialog-stories.1bec5e61.iframe.bundle.js +2 -0
  115. package/storybook-static/MadieConfirmDialog-MadieConfirmDialog-stories.1bec5e61.iframe.bundle.js.map +1 -0
  116. package/storybook-static/MadieDeleteDialog-MadieDeleteDialog-stories.c55f9367.iframe.bundle.js +2 -0
  117. package/storybook-static/MadieDeleteDialog-MadieDeleteDialog-stories.c55f9367.iframe.bundle.js.map +1 -0
  118. package/storybook-static/MadieDialog-MadieDialog-stories.d2bdc88c.iframe.bundle.js +2 -0
  119. package/storybook-static/MadieDialog-MadieDialog-stories.d2bdc88c.iframe.bundle.js.map +1 -0
  120. package/storybook-static/MadieDiscardDialog-MadieDiscardDialog-stories.050cc027.iframe.bundle.js +2 -0
  121. package/storybook-static/MadieDiscardDialog-MadieDiscardDialog-stories.050cc027.iframe.bundle.js.map +1 -0
  122. package/storybook-static/MadieSpinner-MadieSpinner-stories.82085813.iframe.bundle.js +2 -0
  123. package/storybook-static/MadieSpinner-MadieSpinner-stories.82085813.iframe.bundle.js.map +1 -0
  124. package/storybook-static/MadieTooltip-MadieTooltip-stories.c7413617.iframe.bundle.js +2 -0
  125. package/storybook-static/MadieTooltip-MadieTooltip-stories.c7413617.iframe.bundle.js.map +1 -0
  126. package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b42bb7f1.iframe.bundle.js +2 -0
  127. package/storybook-static/MadieTooltipIcon-MadieTooltipIcon-stories.b42bb7f1.iframe.bundle.js.map +1 -0
  128. package/storybook-static/Modal-Modal-stories.d5279c12.iframe.bundle.js +2 -0
  129. package/storybook-static/Modal-Modal-stories.d5279c12.iframe.bundle.js.map +1 -0
  130. package/storybook-static/NotificationBanner-NotificationBanner-stories.c9cd7214.iframe.bundle.js +2 -0
  131. package/storybook-static/NotificationBanner-NotificationBanner-stories.c9cd7214.iframe.bundle.js.map +1 -0
  132. package/storybook-static/NumberInput-NumberInput-stories.ed54df5a.iframe.bundle.js +2 -0
  133. package/storybook-static/NumberInput-NumberInput-stories.ed54df5a.iframe.bundle.js.map +1 -0
  134. package/storybook-static/Pagination-Pagination-stories.c699faa0.iframe.bundle.js +2 -0
  135. package/storybook-static/Pagination-Pagination-stories.c699faa0.iframe.bundle.js.map +1 -0
  136. package/storybook-static/Popover-Popover-stories.61ae1fb7.iframe.bundle.js +2 -0
  137. package/storybook-static/Popover-Popover-stories.61ae1fb7.iframe.bundle.js.map +1 -0
  138. package/storybook-static/RadioButton-RadioButton-stories.86bf3fd2.iframe.bundle.js +2 -0
  139. package/storybook-static/RadioButton-RadioButton-stories.86bf3fd2.iframe.bundle.js.map +1 -0
  140. package/storybook-static/ReadOnlyTextField-ReadOnlyTextField-stories.a599e67a.iframe.bundle.js +2 -0
  141. package/storybook-static/ReadOnlyTextField-ReadOnlyTextField-stories.a599e67a.iframe.bundle.js.map +1 -0
  142. package/storybook-static/RichTextEditor-RichTextEditor-stories.81d66b4b.iframe.bundle.js +2 -0
  143. package/storybook-static/RichTextEditor-RichTextEditor-stories.81d66b4b.iframe.bundle.js.map +1 -0
  144. package/storybook-static/Select-Select-stories.a3b5faa6.iframe.bundle.js +2 -0
  145. package/storybook-static/Select-Select-stories.a3b5faa6.iframe.bundle.js.map +1 -0
  146. package/storybook-static/Tabs-Tabs-stories.0689a934.iframe.bundle.js +2 -0
  147. package/storybook-static/Tabs-Tabs-stories.0689a934.iframe.bundle.js.map +1 -0
  148. package/storybook-static/TextArea-TextArea-stories.f862921e.iframe.bundle.js +2 -0
  149. package/storybook-static/TextArea-TextArea-stories.f862921e.iframe.bundle.js.map +1 -0
  150. package/storybook-static/TextField-TextField-stories.ed07af6e.iframe.bundle.js +2 -0
  151. package/storybook-static/TextField-TextField-stories.ed07af6e.iframe.bundle.js.map +1 -0
  152. package/storybook-static/TextInput-TextInput-stories.7043f852.iframe.bundle.js +2 -0
  153. package/storybook-static/TextInput-TextInput-stories.7043f852.iframe.bundle.js.map +1 -0
  154. package/storybook-static/TimeField-TimeField-stories.e69c0bc6.iframe.bundle.js +2 -0
  155. package/storybook-static/TimeField-TimeField-stories.e69c0bc6.iframe.bundle.js.map +1 -0
  156. package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js +3 -0
  157. package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js.LICENSE.txt +5 -0
  158. package/storybook-static/Toast-Toast-stories.9226d3b7.iframe.bundle.js.map +1 -0
  159. package/storybook-static/Toggle-Toggle-stories.dabdd09d.iframe.bundle.js +2 -0
  160. package/storybook-static/Toggle-Toggle-stories.dabdd09d.iframe.bundle.js.map +1 -0
  161. package/storybook-static/Tooltip-Tooltip-stories.78bdceea.iframe.bundle.js +2 -0
  162. package/storybook-static/Tooltip-Tooltip-stories.78bdceea.iframe.bundle.js.map +1 -0
  163. package/storybook-static/TruncateText-TruncateText-stories.a5188e85.iframe.bundle.js +2 -0
  164. package/storybook-static/TruncateText-TruncateText-stories.a5188e85.iframe.bundle.js.map +1 -0
  165. package/storybook-static/iframe.html +513 -0
  166. package/storybook-static/index.json +1 -1
  167. package/storybook-static/main.f46f596f.iframe.bundle.js +2 -0
  168. package/storybook-static/main.f46f596f.iframe.bundle.js.map +1 -0
  169. package/storybook-static/project.json +1 -1
  170. package/storybook-static/runtime~main.acd6c2b7.iframe.bundle.js +2 -0
  171. package/storybook-static/runtime~main.acd6c2b7.iframe.bundle.js.map +1 -0
  172. package/storybook-static/sb-addons/backgrounds-7/manager-bundle.js +7 -7
  173. package/storybook-static/sb-addons/docs-6/manager-bundle.js +1 -1
  174. package/storybook-static/sb-addons/knobs-4/register-bundle.js +11 -11
  175. package/storybook-static/static/media/Bitter-Bold.091bd4b7.woff +0 -0
  176. package/storybook-static/static/media/Bitter-Bold.24bf01e4.woff2 +0 -0
  177. package/storybook-static/static/media/Bitter-Bold.46bc29e4.ttf +0 -0
  178. package/storybook-static/static/media/Bitter-Bold.790f4f2f.eot +0 -0
  179. package/storybook-static/static/media/Bitter-Italic.1fa5390c.eot +0 -0
  180. package/storybook-static/static/media/Bitter-Italic.25e5675f.woff +0 -0
  181. package/storybook-static/static/media/Bitter-Italic.2eb18f5a.ttf +0 -0
  182. package/storybook-static/static/media/Bitter-Italic.34644574.woff2 +0 -0
  183. package/storybook-static/static/media/Bitter-Regular.4b22b6e8.woff +0 -0
  184. package/storybook-static/static/media/Bitter-Regular.559e7075.eot +0 -0
  185. package/storybook-static/static/media/Bitter-Regular.8db0301b.ttf +0 -0
  186. package/storybook-static/static/media/Bitter-Regular.f4e2f1f1.woff2 +0 -0
  187. package/storybook-static/static/media/FontAwesome.91f80bba.otf +0 -0
  188. package/storybook-static/static/media/OpenSans-Bold-webfont.202d819d.eot +0 -0
  189. package/storybook-static/static/media/OpenSans-Bold-webfont.92e570c6.woff2 +0 -0
  190. package/storybook-static/static/media/OpenSans-Bold-webfont.da71e99a.ttf +0 -0
  191. package/storybook-static/static/media/OpenSans-Bold-webfont.e75949bb.woff +0 -0
  192. package/storybook-static/static/media/OpenSans-Italic-webfont.72daa33a.woff2 +0 -0
  193. package/storybook-static/static/media/OpenSans-Italic-webfont.74ead3a8.woff +0 -0
  194. package/storybook-static/static/media/OpenSans-Italic-webfont.ae19388f.eot +0 -0
  195. package/storybook-static/static/media/OpenSans-Italic-webfont.ec7a2746.ttf +0 -0
  196. package/storybook-static/static/media/OpenSans-Regular-webfont.63a5fa7d.woff +0 -0
  197. package/storybook-static/static/media/OpenSans-Regular-webfont.66451be4.ttf +0 -0
  198. package/storybook-static/static/media/OpenSans-Regular-webfont.7882d20f.eot +0 -0
  199. package/storybook-static/static/media/OpenSans-Regular-webfont.ca4dd835.woff2 +0 -0
  200. package/storybook-static/static/media/OpenSans-Semibold-webfont.17ded75f.woff2 +0 -0
  201. package/storybook-static/static/media/OpenSans-Semibold-webfont.2a5adf6c.woff +0 -0
  202. package/storybook-static/static/media/OpenSans-Semibold-webfont.6059fecb.ttf +0 -0
  203. package/storybook-static/static/media/OpenSans-Semibold-webfont.c9808185.eot +0 -0
  204. package/storybook-static/static/media/Rubik-Bold.31bbd4d2.ttf +0 -0
  205. package/storybook-static/static/media/Rubik-Light.c90e2014.ttf +0 -0
  206. package/storybook-static/static/media/Rubik-Medium.5daa89aa.ttf +0 -0
  207. package/storybook-static/static/media/Rubik-Regular.cdf97d58.ttf +0 -0
  208. package/storybook-static/static/media/arrow-both.a0959e13.svg +3 -0
  209. package/storybook-static/static/media/fontawesome-webfont.1e59d233.ttf +0 -0
  210. package/storybook-static/static/media/fontawesome-webfont.20fd1704.woff2 +0 -0
  211. package/storybook-static/static/media/fontawesome-webfont.8b43027f.eot +0 -0
  212. package/storybook-static/static/media/fontawesome-webfont.c1e38fd9.svg +2671 -0
  213. package/storybook-static/static/media/fontawesome-webfont.f691f37e.woff +0 -0
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[4197],{"./node_modules/@reach/portal/dist/reach-portal.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{Portal:()=>Portal,default:()=>reach_portal_esm});var react=__webpack_require__("./node_modules/react/index.js"),reach_utils_use_isomorphic_layout_effect_esm=__webpack_require__("./node_modules/@reach/utils/use-isomorphic-layout-effect/dist/reach-utils-use-isomorphic-layout-effect.esm.js");var react_dom=__webpack_require__("./node_modules/react-dom/index.js"),Portal=function Portal(_ref){var children=_ref.children,_ref$type=_ref.type,type=void 0===_ref$type?"reach-portal":_ref$type,containerRef=_ref.containerRef,mountNode=(0,react.useRef)(null),portalNode=(0,react.useRef)(null),forceUpdate=function useForceUpdate(){var dispatch=(0,react.useState)(Object.create(null))[1];return(0,react.useCallback)(function(){dispatch(Object.create(null))},[])}();return(0,reach_utils_use_isomorphic_layout_effect_esm.E)(function(){if(mountNode.current){var ownerDocument=mountNode.current.ownerDocument,body=(null==containerRef?void 0:containerRef.current)||ownerDocument.body;return portalNode.current=null==ownerDocument?void 0:ownerDocument.createElement(type),body.appendChild(portalNode.current),forceUpdate(),function(){portalNode.current&&body&&body.removeChild(portalNode.current)}}},[type,forceUpdate,containerRef]),portalNode.current?(0,react_dom.createPortal)(children,portalNode.current):(0,react.createElement)("span",{ref:mountNode})};const reach_portal_esm=Portal},"./node_modules/@reach/tooltip/dist/reach-tooltip.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{LEAVE_TIMEOUT:()=>LEAVE_TIMEOUT,MOUSE_REST_TIMEOUT:()=>MOUSE_REST_TIMEOUT,Tooltip:()=>Tooltip,TooltipPopup:()=>TooltipPopup,default:()=>reach_tooltip_esm,positionTooltip:()=>positionTooltip,useTooltip:()=>useTooltip});var react=__webpack_require__("./node_modules/react/index.js"),reach_utils_use_isomorphic_layout_effect_esm=__webpack_require__("./node_modules/@reach/utils/use-isomorphic-layout-effect/dist/reach-utils-use-isomorphic-layout-effect.esm.js"),serverHandoffComplete=!1,id=0,genId=function genId(){return++id};var reach_utils_can_use_dom_esm=__webpack_require__("./node_modules/@reach/utils/can-use-dom/dist/reach-utils-can-use-dom.esm.js");function getOwnerDocument(element){return(0,reach_utils_can_use_dom_esm.S)()?element?element.ownerDocument:document:null}function makeId(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++)args[_key]=arguments[_key];return args.filter(function(val){return null!=val}).join("--")}function isFunction(value){return!(!value||"[object Function]"!={}.toString.call(value))}function _arrayLikeToArray(arr,len){(null==len||len>arr.length)&&(len=arr.length);for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2}function _createForOfIteratorHelperLoose(o,allowArrayLike){var it;if("undefined"==typeof Symbol||null==o[Symbol.iterator]){if(Array.isArray(o)||(it=function _unsupportedIterableToArray(o,minLen){if(o){if("string"==typeof o)return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);return"Object"===n&&o.constructor&&(n=o.constructor.name),"Map"===n||"Set"===n?Array.from(o):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(o,minLen):void 0}}(o))||allowArrayLike&&o&&"number"==typeof o.length){it&&(o=it);var i=0;return function(){return i>=o.length?{done:!0}:{done:!1,value:o[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(it=o[Symbol.iterator]()).next.bind(it)}function assignRef(ref,value){if(null!=ref)if(isFunction(ref))ref(value);else try{ref.current=value}catch(error){throw new Error('Cannot assign value "'+value+'" to ref "'+ref+'"')}}function useComposedRefs(){for(var _len=arguments.length,refs=new Array(_len),_key=0;_key<_len;_key++)refs[_key]=arguments[_key];return(0,react.useCallback)(function(node){for(var _step,_iterator=_createForOfIteratorHelperLoose(refs);!(_step=_iterator()).done;){assignRef(_step.value,node)}},refs)}function composeEventHandlers(theirHandler,ourHandler){return function(event){if(theirHandler&&theirHandler(event),!event.defaultPrevented)return ourHandler(event)}}var reach_portal_esm=__webpack_require__("./node_modules/@reach/portal/dist/reach-portal.esm.js");function _extends(){return _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},_extends.apply(this,arguments)}var _excluded=["as","style"],VisuallyHidden=(0,react.forwardRef)(function VisuallyHidden(_ref,ref){var _ref$as=_ref.as,Comp=void 0===_ref$as?"span":_ref$as,_ref$style=_ref.style,style=void 0===_ref$style?{}:_ref$style,props=function _objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}(_ref,_excluded);return(0,react.createElement)(Comp,_extends({ref,style:_extends({border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"},style)},props))});var rafId,props=["bottom","height","left","right","top","width"],observedNodes=new Map,run=function run(){var changedStates=[];observedNodes.forEach(function(state,node){var newRect=node.getBoundingClientRect();(function rectChanged(a,b){return void 0===a&&(a={}),void 0===b&&(b={}),props.some(function(prop){return a[prop]!==b[prop]})})(newRect,state.rect)&&(state.rect=newRect,changedStates.push(state))}),changedStates.forEach(function(state){state.callbacks.forEach(function(cb){return cb(state.rect)})}),rafId=window.requestAnimationFrame(run)};const observe_rect_esm=function observeRect(node,cb){return{observe:function observe(){var wasEmpty=0===observedNodes.size;observedNodes.has(node)?observedNodes.get(node).callbacks.push(cb):observedNodes.set(node,{rect:void 0,hasRectChanged:!1,callbacks:[cb]}),wasEmpty&&run()},unobserve:function unobserve(){var state=observedNodes.get(node);if(state){var index=state.callbacks.indexOf(cb);index>=0&&state.callbacks.splice(index,1),state.callbacks.length||observedNodes.delete(node),observedNodes.size||cancelAnimationFrame(rafId)}}}};function useRect(nodeRef,observeOrOptions,deprecated_onChange){var observe,onChange,_observeOrOptions$obs;(function isBoolean(value){return"boolean"==typeof value})(observeOrOptions)?observe=observeOrOptions:(observe=null==(_observeOrOptions$obs=null==observeOrOptions?void 0:observeOrOptions.observe)||_observeOrOptions$obs,onChange=null==observeOrOptions?void 0:observeOrOptions.onChange);isFunction(deprecated_onChange)&&(onChange=deprecated_onChange);var _React$useState=(0,react.useState)(nodeRef.current),element=_React$useState[0],setElement=_React$useState[1],initialRectIsSet=(0,react.useRef)(!1),initialRefIsSet=(0,react.useRef)(!1),_React$useState2=(0,react.useState)(null),rect=_React$useState2[0],setRect=_React$useState2[1],onChangeRef=(0,react.useRef)(onChange);return(0,reach_utils_use_isomorphic_layout_effect_esm.E)(function(){onChangeRef.current=onChange,nodeRef.current!==element&&setElement(nodeRef.current)}),(0,reach_utils_use_isomorphic_layout_effect_esm.E)(function(){element&&!initialRectIsSet.current&&(initialRectIsSet.current=!0,setRect(element.getBoundingClientRect()))},[element]),(0,reach_utils_use_isomorphic_layout_effect_esm.E)(function(){if(observe){var elem=element;if(initialRefIsSet.current||(initialRefIsSet.current=!0,elem=nodeRef.current),elem){var observer=observe_rect_esm(elem,function(rect){null==onChangeRef.current||onChangeRef.current(rect),setRect(rect)});return observer.observe(),function(){observer.unobserve()}}}},[observe,element,nodeRef]),rect}function reach_tooltip_esm_extends(){return reach_tooltip_esm_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}return target},reach_tooltip_esm_extends.apply(this,arguments)}function reach_tooltip_esm_objectWithoutPropertiesLoose(source,excluded){if(null==source)return{};var key,i,target={},sourceKeys=Object.keys(source);for(i=0;i<sourceKeys.length;i++)key=sourceKeys[i],excluded.indexOf(key)>=0||(target[key]=source[key]);return target}var _on,_on2,_on3,_on4,_on5,_states,TooltipStates,TooltipEvents,reach_tooltip_esm_excluded=["children","label","ariaLabel","id","DEBUG_STYLE"],_excluded2=["label","ariaLabel","isVisible","id"],_excluded3=["ariaLabel","aria-label","as","id","isVisible","label","position","style","triggerRect"],_excluded4=["type"],MOUSE_REST_TIMEOUT=100,LEAVE_TIMEOUT=500;!function(TooltipStates){TooltipStates.Idle="IDLE",TooltipStates.Focused="FOCUSED",TooltipStates.Visible="VISIBLE",TooltipStates.LeavingVisible="LEAVING_VISIBLE",TooltipStates.Dismissed="DISMISSED"}(TooltipStates||(TooltipStates={})),function(TooltipEvents){TooltipEvents.Blur="BLUR",TooltipEvents.Focus="FOCUS",TooltipEvents.GlobalMouseMove="GLOBAL_MOUSE_MOVE",TooltipEvents.MouseDown="MOUSE_DOWN",TooltipEvents.MouseEnter="MOUSE_ENTER",TooltipEvents.MouseLeave="MOUSE_LEAVE",TooltipEvents.MouseMove="MOUSE_MOVE",TooltipEvents.Rest="REST",TooltipEvents.SelectWithKeyboard="SELECT_WITH_KEYBOARD",TooltipEvents.TimeComplete="TIME_COMPLETE"}(TooltipEvents||(TooltipEvents={}));var restTimeout,leavingVisibleTimer,chart={initial:TooltipStates.Idle,states:(_states={},_states[TooltipStates.Idle]={enter:clearContextId,on:(_on={},_on[TooltipEvents.MouseEnter]=TooltipStates.Focused,_on[TooltipEvents.Focus]=TooltipStates.Visible,_on)},_states[TooltipStates.Focused]={enter:function startRestTimer(){window.clearTimeout(restTimeout),restTimeout=window.setTimeout(function(){send({type:TooltipEvents.Rest})},MOUSE_REST_TIMEOUT)},leave:function clearRestTimer(){window.clearTimeout(restTimeout)},on:(_on2={},_on2[TooltipEvents.MouseMove]=TooltipStates.Focused,_on2[TooltipEvents.MouseLeave]=TooltipStates.Idle,_on2[TooltipEvents.MouseDown]=TooltipStates.Dismissed,_on2[TooltipEvents.Blur]=TooltipStates.Idle,_on2[TooltipEvents.Rest]=TooltipStates.Visible,_on2)},_states[TooltipStates.Visible]={on:(_on3={},_on3[TooltipEvents.Focus]=TooltipStates.Focused,_on3[TooltipEvents.MouseEnter]=TooltipStates.Focused,_on3[TooltipEvents.MouseLeave]=TooltipStates.LeavingVisible,_on3[TooltipEvents.Blur]=TooltipStates.LeavingVisible,_on3[TooltipEvents.MouseDown]=TooltipStates.Dismissed,_on3[TooltipEvents.SelectWithKeyboard]=TooltipStates.Dismissed,_on3[TooltipEvents.GlobalMouseMove]=TooltipStates.LeavingVisible,_on3)},_states[TooltipStates.LeavingVisible]={enter:function startLeavingVisibleTimer(){window.clearTimeout(leavingVisibleTimer),leavingVisibleTimer=window.setTimeout(function(){return send({type:TooltipEvents.TimeComplete})},LEAVE_TIMEOUT)},leave:function leave(){!function clearLeavingVisibleTimer(){window.clearTimeout(leavingVisibleTimer)}(),clearContextId()},on:(_on4={},_on4[TooltipEvents.MouseEnter]=TooltipStates.Visible,_on4[TooltipEvents.Focus]=TooltipStates.Visible,_on4[TooltipEvents.TimeComplete]=TooltipStates.Idle,_on4)},_states[TooltipStates.Dismissed]={leave:function leave(){clearContextId()},on:(_on5={},_on5[TooltipEvents.MouseLeave]=TooltipStates.Idle,_on5[TooltipEvents.Blur]=TooltipStates.Idle,_on5)},_states)},state={value:chart.initial,context:{id:null}},subscriptions=[];function clearContextId(){state.context.id=null}function useTooltip(_temp){var _ref=void 0===_temp?{}:_temp,idProp=_ref.id,onPointerEnter=_ref.onPointerEnter,onPointerMove=_ref.onPointerMove,onPointerLeave=_ref.onPointerLeave,onPointerDown=_ref.onPointerDown,onMouseEnter=_ref.onMouseEnter,onMouseMove=_ref.onMouseMove,onMouseLeave=_ref.onMouseLeave,onMouseDown=_ref.onMouseDown,onFocus=_ref.onFocus,onBlur=_ref.onBlur,onKeyDown=_ref.onKeyDown,disabled=_ref.disabled,forwardedRef=_ref.ref,DEBUG_STYLE=_ref.DEBUG_STYLE,id=String(function useId(idFromProps){var initialId=idFromProps||(serverHandoffComplete?genId():null),_React$useState=(0,react.useState)(initialId),id=_React$useState[0],setId=_React$useState[1];return(0,reach_utils_use_isomorphic_layout_effect_esm.E)(function(){null===id&&setId(genId())},[]),(0,react.useEffect)(function(){!1===serverHandoffComplete&&(serverHandoffComplete=!0)},[]),null!=id?String(id):void 0}(idProp)),_React$useState=(0,react.useState)(!!DEBUG_STYLE||isTooltipVisible(id,!0)),isVisible=_React$useState[0],setIsVisible=_React$useState[1],ownRef=(0,react.useRef)(null),ref=useComposedRefs(forwardedRef,ownRef),triggerRect=useRect(ownRef,{observe:isVisible});function wrapMouseEvent(theirHandler,ourHandler){return"undefined"!=typeof window&&"PointerEvent"in window?theirHandler:composeEventHandlers(theirHandler,ourHandler)}function wrapPointerEventHandler(handler){return function onPointerEvent(event){"mouse"===event.pointerType&&handler(event)}}function handleMouseEnter(){send({type:TooltipEvents.MouseEnter,id})}function handleMouseMove(){send({type:TooltipEvents.MouseMove,id})}function handleMouseLeave(){send({type:TooltipEvents.MouseLeave})}function handleMouseDown(){state.context.id===id&&send({type:TooltipEvents.MouseDown})}return(0,react.useEffect)(function(){return function subscribe(fn){return subscriptions.push(fn),function(){subscriptions.splice(subscriptions.indexOf(fn),1)}}(function(){setIsVisible(isTooltipVisible(id))})},[id]),(0,react.useEffect)(function(){var ownerDocument=getOwnerDocument(ownRef.current);function listener(event){"Escape"!==event.key&&"Esc"!==event.key||state.value!==TooltipStates.Visible||send({type:TooltipEvents.SelectWithKeyboard})}return ownerDocument.addEventListener("keydown",listener),function(){return ownerDocument.removeEventListener("keydown",listener)}},[]),function useDisabledTriggerOnSafari(_ref5){var disabled=_ref5.disabled,isVisible=_ref5.isVisible,ref=_ref5.ref;(0,react.useEffect)(function(){if("undefined"!=typeof window&&"PointerEvent"in window&&disabled&&isVisible){var ownerDocument=getOwnerDocument(ref.current);return ownerDocument.addEventListener("mousemove",handleMouseMove),function(){ownerDocument.removeEventListener("mousemove",handleMouseMove)}}function handleMouseMove(event){isVisible&&(event.target instanceof Element&&event.target.closest("[data-reach-tooltip-trigger][data-state='tooltip-visible']")||send({type:TooltipEvents.GlobalMouseMove}))}},[disabled,isVisible,ref])}({disabled,isVisible,ref:ownRef}),[{"aria-describedby":isVisible?makeId("tooltip",id):void 0,"data-state":isVisible?"tooltip-visible":"tooltip-hidden","data-reach-tooltip-trigger":"",ref,onPointerEnter:composeEventHandlers(onPointerEnter,wrapPointerEventHandler(handleMouseEnter)),onPointerMove:composeEventHandlers(onPointerMove,wrapPointerEventHandler(handleMouseMove)),onPointerLeave:composeEventHandlers(onPointerLeave,wrapPointerEventHandler(handleMouseLeave)),onPointerDown:composeEventHandlers(onPointerDown,wrapPointerEventHandler(handleMouseDown)),onMouseEnter:wrapMouseEvent(onMouseEnter,handleMouseEnter),onMouseMove:wrapMouseEvent(onMouseMove,handleMouseMove),onMouseLeave:wrapMouseEvent(onMouseLeave,handleMouseLeave),onMouseDown:wrapMouseEvent(onMouseDown,handleMouseDown),onFocus:composeEventHandlers(onFocus,function handleFocus(){window.__REACH_DISABLE_TOOLTIPS||send({type:TooltipEvents.Focus,id})}),onBlur:composeEventHandlers(onBlur,function handleBlur(){state.context.id===id&&send({type:TooltipEvents.Blur})}),onKeyDown:composeEventHandlers(onKeyDown,function handleKeyDown(event){"Enter"!==event.key&&" "!==event.key||send({type:TooltipEvents.SelectWithKeyboard})})},{id,triggerRect,isVisible},isVisible]}var Tooltip=(0,react.forwardRef)(function(_ref2,forwardedRef){var children=_ref2.children,label=_ref2.label,DEPRECATED_ariaLabel=_ref2.ariaLabel,id=_ref2.id,DEBUG_STYLE=_ref2.DEBUG_STYLE,props=reach_tooltip_esm_objectWithoutPropertiesLoose(_ref2,reach_tooltip_esm_excluded),child=react.Children.only(children),_useTooltip=useTooltip({id,onPointerEnter:child.props.onPointerEnter,onPointerMove:child.props.onPointerMove,onPointerLeave:child.props.onPointerLeave,onPointerDown:child.props.onPointerDown,onMouseEnter:child.props.onMouseEnter,onMouseMove:child.props.onMouseMove,onMouseLeave:child.props.onMouseLeave,onMouseDown:child.props.onMouseDown,onFocus:child.props.onFocus,onBlur:child.props.onBlur,onKeyDown:child.props.onKeyDown,disabled:child.props.disabled,ref:child.ref,DEBUG_STYLE}),trigger=_useTooltip[0],tooltip=_useTooltip[1];return(0,react.createElement)(react.Fragment,null,(0,react.cloneElement)(child,trigger),(0,react.createElement)(TooltipPopup,reach_tooltip_esm_extends({ref:forwardedRef,label,"aria-label":DEPRECATED_ariaLabel},tooltip,props)))});var TooltipPopup=(0,react.forwardRef)(function TooltipPopup(_ref3,forwardRef){var label=_ref3.label,DEPRECATED_ariaLabel=_ref3.ariaLabel,isVisible=_ref3.isVisible,id=_ref3.id,props=reach_tooltip_esm_objectWithoutPropertiesLoose(_ref3,_excluded2);return isVisible?(0,react.createElement)(reach_portal_esm.Portal,null,(0,react.createElement)(TooltipContent,reach_tooltip_esm_extends({ref:forwardRef,label,"aria-label":DEPRECATED_ariaLabel,isVisible},props,{id:makeId("tooltip",String(id))}))):null});var TooltipContent=(0,react.forwardRef)(function TooltipContent(_ref4,forwardedRef){var ariaLabel=_ref4.ariaLabel,realAriaLabel=_ref4["aria-label"],_ref4$as=_ref4.as,Comp=void 0===_ref4$as?"div":_ref4$as,id=_ref4.id,isVisible=_ref4.isVisible,label=_ref4.label,_ref4$position=_ref4.position,position=void 0===_ref4$position?positionTooltip:_ref4$position,style=_ref4.style,triggerRect=_ref4.triggerRect,props=reach_tooltip_esm_objectWithoutPropertiesLoose(_ref4,_excluded3),hasAriaLabel=null!=(realAriaLabel||ariaLabel),ownRef=(0,react.useRef)(null),ref=useComposedRefs(forwardedRef,ownRef),tooltipRect=useRect(ownRef,{observe:isVisible});return(0,react.createElement)(react.Fragment,null,(0,react.createElement)(Comp,reach_tooltip_esm_extends({role:hasAriaLabel?void 0:"tooltip"},props,{ref,"data-reach-tooltip":"",id:hasAriaLabel?void 0:id,style:reach_tooltip_esm_extends({},style,getStyles(position,triggerRect,tooltipRect))}),label),hasAriaLabel&&(0,react.createElement)(VisuallyHidden,{role:"tooltip",id},realAriaLabel||ariaLabel))});function getStyles(position,triggerRect,tooltipRect){return!tooltipRect?{visibility:"hidden"}:position(triggerRect,tooltipRect)}var positionTooltip=function positionTooltip(triggerRect,tooltipRect,offset){void 0===offset&&(offset=8);var _getDocumentDimension=function getDocumentDimensions(element){var _ownerDocument$docume,_ownerDocument$docume2,ownerDocument=getOwnerDocument(element),ownerWindow=ownerDocument.defaultView||window;return ownerDocument?{width:null!=(_ownerDocument$docume=ownerDocument.documentElement.clientWidth)?_ownerDocument$docume:ownerWindow.innerWidth,height:null!=(_ownerDocument$docume2=ownerDocument.documentElement.clientHeight)?_ownerDocument$docume2:ownerWindow.innerHeight}:{width:0,height:0}}(),windowWidth=_getDocumentDimension.width,windowHeight=_getDocumentDimension.height;if(!triggerRect||!tooltipRect)return{};var collisions={top:triggerRect.top-tooltipRect.height<0,right:windowWidth<triggerRect.left+tooltipRect.width,bottom:windowHeight<triggerRect.bottom+tooltipRect.height+offset,left:triggerRect.left-tooltipRect.width<0},directionUp=collisions.bottom&&!collisions.top;return{left:collisions.right&&!collisions.left?triggerRect.right-tooltipRect.width+window.pageXOffset+"px":triggerRect.left+window.pageXOffset+"px",top:directionUp?triggerRect.top-offset-tooltipRect.height+window.pageYOffset+"px":triggerRect.top+offset+triggerRect.height+window.pageYOffset+"px"}};function send(event){var _transition=function transition(currentState,event){var stateDef=chart.states[currentState.value],nextState=stateDef&&stateDef.on&&stateDef.on[event.type];if(!nextState)return reach_tooltip_esm_extends({},currentState,{changed:!1});stateDef&&stateDef.leave&&stateDef.leave(currentState.context,event);event.type;var payload=reach_tooltip_esm_objectWithoutPropertiesLoose(event,_excluded4),context=reach_tooltip_esm_extends({},state.context,payload),nextStateValue="string"==typeof nextState?nextState:nextState.target,nextDef=chart.states[nextStateValue];nextDef&&nextDef.enter&&nextDef.enter(currentState.context,event);return{value:nextStateValue,context,changed:!0}}(state,event),value=_transition.value,context=_transition.context;_transition.changed&&(state={value,context},function notify(){subscriptions.forEach(function(fn){return fn(state)})}())}function isTooltipVisible(id,initial){return state.context.id===id&&(initial?state.value===TooltipStates.Visible:state.value===TooltipStates.Visible||state.value===TooltipStates.LeavingVisible)}const reach_tooltip_esm=Tooltip},"./node_modules/@reach/utils/can-use-dom/dist/reach-utils-can-use-dom.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){function canUseDOM(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}__webpack_require__.d(__webpack_exports__,{S:()=>canUseDOM})},"./node_modules/@reach/utils/use-isomorphic-layout-effect/dist/reach-utils-use-isomorphic-layout-effect.esm.js"(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{E:()=>useIsomorphicLayoutEffect});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),useIsomorphicLayoutEffect=(0,__webpack_require__("./node_modules/@reach/utils/can-use-dom/dist/reach-utils-can-use-dom.esm.js").S)()?react__WEBPACK_IMPORTED_MODULE_0__.useLayoutEffect:react__WEBPACK_IMPORTED_MODULE_0__.useEffect}}]);
2
+ //# sourceMappingURL=4197.408fcd63.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"4197.bae9513e.iframe.bundle.js","mappings":"AAwBA","sources":["webpack://@madie/madie-design-system/./node_modules/@reach/portal/dist/reach-portal.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/use-force-update/dist/reach-utils-use-force-update.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/auto-id/dist/reach-auto-id.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/owner-document/dist/reach-utils-owner-document.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/make-id/dist/reach-utils-make-id.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/type-check/dist/reach-utils-type-check.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/compose-refs/dist/reach-utils-compose-refs.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/compose-event-handlers/dist/reach-utils-compose-event-handlers.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/visually-hidden/dist/reach-visually-hidden.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/observe-rect/dist/observe-rect.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/rect/dist/reach-rect.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/tooltip/dist/reach-tooltip.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/get-document-dimensions/dist/reach-utils-get-document-dimensions.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/can-use-dom/dist/reach-utils-can-use-dom.esm.js","webpack://@madie/madie-design-system/./node_modules/@reach/utils/use-isomorphic-layout-effect/dist/reach-utils-use-isomorphic-layout-effect.esm.js"],"sourcesContent":["import { useRef, useEffect, createElement } from 'react';\nimport { useIsomorphicLayoutEffect } from '@reach/utils/use-isomorphic-layout-effect';\nimport { useForceUpdate } from '@reach/utils/use-force-update';\nimport { createPortal } from 'react-dom';\nimport warning from 'tiny-warning';\n\n/**\n * Welcome to @reach/portal!\n *\n * Creates and appends a DOM node to the end of `document.body` and renders a\n * React tree into it. Useful for rendering a natural React element hierarchy\n * with a different DOM hierarchy to prevent parent styles from clipping or\n * hiding content (for popovers, dropdowns, and modals).\n *\n * @see Docs https://reach.tech/portal\n * @see Source https://github.com/reach/reach-ui/tree/main/packages/portal\n * @see React https://reactjs.org/docs/portals.html\n */\n/**\n * Portal\n *\n * @see Docs https://reach.tech/portal#portal\n */\n\nvar Portal = function Portal(_ref) {\n var children = _ref.children,\n _ref$type = _ref.type,\n type = _ref$type === void 0 ? \"reach-portal\" : _ref$type,\n containerRef = _ref.containerRef;\n var mountNode = useRef(null);\n var portalNode = useRef(null);\n var forceUpdate = useForceUpdate();\n\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n if (containerRef != null) {\n process.env.NODE_ENV !== \"production\" ? warning(typeof containerRef === \"object\" && \"current\" in containerRef, \"@reach/portal: Invalid value passed to the `containerRef` of a \" + \"`Portal`. The portal will be appended to the document body, but if \" + \"you want to attach it to another DOM node you must pass a valid \" + \"React ref object to `containerRef`.\") : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(containerRef ? containerRef.current != null : true, \"@reach/portal: A ref was passed to the `containerRef` prop of a \" + \"`Portal`, but no DOM node was attached to it. Be sure to pass the \" + \"ref to a DOM component.\\n\\nIf you are forwarding the ref from \" + \"another component, be sure to use the React.forwardRef API. \" + \"See https://reactjs.org/docs/forwarding-refs.html.\") : void 0;\n }\n }, [containerRef]);\n }\n\n useIsomorphicLayoutEffect(function () {\n // This ref may be null when a hot-loader replaces components on the page\n if (!mountNode.current) return; // It's possible that the content of the portal has, itself, been portaled.\n // In that case, it's important to append to the correct document element.\n\n var ownerDocument = mountNode.current.ownerDocument;\n var body = (containerRef == null ? void 0 : containerRef.current) || ownerDocument.body;\n portalNode.current = ownerDocument == null ? void 0 : ownerDocument.createElement(type);\n body.appendChild(portalNode.current);\n forceUpdate();\n return function () {\n if (portalNode.current && body) {\n body.removeChild(portalNode.current);\n }\n };\n }, [type, forceUpdate, containerRef]);\n return portalNode.current ? /*#__PURE__*/createPortal(children, portalNode.current) : /*#__PURE__*/createElement(\"span\", {\n ref: mountNode\n });\n};\n/**\n * @see Docs https://reach.tech/portal#portal-props\n */\n\n\nif (process.env.NODE_ENV !== \"production\") {\n Portal.displayName = \"Portal\";\n} ////////////////////////////////////////////////////////////////////////////////\n\nexport default Portal;\nexport { Portal };\n","import { useState, useCallback } from 'react';\n\n/**\n * Forces a re-render, similar to `forceUpdate` in class components.\n */\n\nfunction useForceUpdate() {\n var _useState = useState(Object.create(null)),\n dispatch = _useState[1];\n\n return useCallback(function () {\n dispatch(Object.create(null));\n }, []);\n}\n\nexport { useForceUpdate };\n","import { useState, useEffect } from 'react';\nimport { useIsomorphicLayoutEffect } from '@reach/utils/use-isomorphic-layout-effect';\n\n/*\n * Welcome to @reach/auto-id!\n\n * Let's see if we can make sense of why this hook exists and its\n * implementation.\n *\n * Some background:\n * 1. Accessibility APIs rely heavily on element IDs\n * 2. Requiring developers to put IDs on every element in Reach UI is both\n * cumbersome and error-prone\n * 3. With a component model, we can generate IDs for them!\n *\n * Solution 1: Generate random IDs.\n *\n * This works great as long as you don't server render your app. When React (in\n * the client) tries to reuse the markup from the server, the IDs won't match\n * and React will then recreate the entire DOM tree.\n *\n * Solution 2: Increment an integer\n *\n * This sounds great. Since we're rendering the exact same tree on the server\n * and client, we can increment a counter and get a deterministic result between\n * client and server. Also, JS integers can go up to nine-quadrillion. I'm\n * pretty sure the tab will be closed before an app never needs\n * 10 quadrillion IDs!\n *\n * Problem solved, right?\n *\n * Ah, but there's a catch! React's concurrent rendering makes this approach\n * non-deterministic. While the client and server will end up with the same\n * elements in the end, depending on suspense boundaries (and possibly some user\n * input during the initial render) the incrementing integers won't always match\n * up.\n *\n * Solution 3: Don't use IDs at all on the server; patch after first render.\n *\n * What we've done here is solution 2 with some tricks. With this approach, the\n * ID returned is an empty string on the first render. This way the server and\n * client have the same markup no matter how wild the concurrent rendering may\n * have gotten.\n *\n * After the render, we patch up the components with an incremented ID. This\n * causes a double render on any components with `useId`. Shouldn't be a problem\n * since the components using this hook should be small, and we're only updating\n * the ID attribute on the DOM, nothing big is happening.\n *\n * It doesn't have to be an incremented number, though--we could do generate\n * random strings instead, but incrementing a number is probably the cheapest\n * thing we can do.\n *\n * Additionally, we only do this patchup on the very first client render ever.\n * Any calls to `useId` that happen dynamically in the client will be\n * populated immediately with a value. So, we only get the double render after\n * server hydration and never again, SO BACK OFF ALRIGHT?\n */\nvar serverHandoffComplete = false;\nvar id = 0;\n\nvar genId = function genId() {\n return ++id;\n};\n/**\n * useId\n *\n * Autogenerate IDs to facilitate WAI-ARIA and server rendering.\n *\n * Note: The returned ID will initially be `null` and will update after a\n * component mounts. Users may need to supply their own ID if they need\n * consistent values for SSR.\n *\n * @see Docs https://reach.tech/auto-id\n */\n\n\nfunction useId(idFromProps) {\n /*\n * If this instance isn't part of the initial render, we don't have to do the\n * double render/patch-up dance. We can just generate the ID and return it.\n */\n var initialId = idFromProps || (serverHandoffComplete ? genId() : null);\n\n var _React$useState = useState(initialId),\n id = _React$useState[0],\n setId = _React$useState[1];\n\n useIsomorphicLayoutEffect(function () {\n if (id === null) {\n /*\n * Patch the ID after render. We do this in `useLayoutEffect` to avoid any\n * rendering flicker, though it'll make the first render slower (unlikely\n * to matter, but you're welcome to measure your app and let us know if\n * it's a problem).\n */\n setId(genId());\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, []);\n useEffect(function () {\n if (serverHandoffComplete === false) {\n /*\n * Flag all future uses of `useId` to skip the update dance. This is in\n * `useEffect` because it goes after `useLayoutEffect`, ensuring we don't\n * accidentally bail out of the patch-up dance prematurely.\n */\n serverHandoffComplete = true;\n }\n }, []);\n return id != null ? String(id) : undefined;\n}\n\nexport { useId };\n","import { canUseDOM } from '../../can-use-dom/dist/reach-utils-can-use-dom.esm.js';\n\n/**\n * Get an element's owner document. Useful when components are used in iframes\n * or other environments like dev tools.\n *\n * @param element\n */\n\nfunction getOwnerDocument(element) {\n return canUseDOM() ? element ? element.ownerDocument : document : null;\n}\n/**\n * TODO: Remove in 1.0\n */\n\nfunction getOwnerWindow(element) {\n var ownerDocument = getOwnerDocument(element);\n return ownerDocument ? ownerDocument.defaultView || window : null;\n}\n\nexport { getOwnerDocument, getOwnerWindow };\n","/**\n * Joins strings to format IDs for compound components.\n *\n * @param args\n */\nfunction makeId() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return args.filter(function (val) {\n return val != null;\n }).join(\"--\");\n}\n\nexport { makeId };\n","/**\n * Checks whether or not a value is a boolean.\n *\n * @param value\n */\nfunction isBoolean(value) {\n return typeof value === \"boolean\";\n}\n/**\n * Checks whether or not a value is a function.\n *\n * @param value\n */\n\nfunction isFunction(value) {\n // eslint-disable-next-line eqeqeq\n return !!(value && {}.toString.call(value) == \"[object Function]\");\n}\n/**\n * Checks whether or not a value is a number.\n *\n * @param value\n */\n\nfunction isNumber(value) {\n return typeof value === \"number\" && !isNaN(value);\n}\n/**\n * Checks whether or not a value is a string.\n *\n * @param value\n */\n\nfunction isString(value) {\n return typeof value === \"string\";\n}\n\nexport { isBoolean, isFunction, isNumber, isString };\n","import { useCallback } from 'react';\nimport { isFunction } from '../../type-check/dist/reach-utils-type-check.esm.js';\n\nfunction _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n\n return arr2;\n}\n\nfunction _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return _arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);\n}\n\nfunction _createForOfIteratorHelperLoose(o, allowArrayLike) {\n var it;\n\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n return function () {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n it = o[Symbol.iterator]();\n return it.next.bind(it);\n}\n\n/**\n * Passes or assigns an arbitrary value to a ref function or object.\n *\n * @param ref\n * @param value\n */\nfunction assignRef(ref, value) {\n if (ref == null) return;\n\n if (isFunction(ref)) {\n ref(value);\n } else {\n try {\n ref.current = value;\n } catch (error) {\n throw new Error(\"Cannot assign value \\\"\" + value + \"\\\" to ref \\\"\" + ref + \"\\\"\");\n }\n }\n}\n/**\n * Passes or assigns a value to multiple refs (typically a DOM node). Useful for\n * dealing with components that need an explicit ref for DOM calculations but\n * also forwards refs assigned by an app.\n *\n * @param refs Refs to fork\n */\n\nfunction useComposedRefs() {\n for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {\n refs[_key] = arguments[_key];\n }\n\n return useCallback(function (node) {\n for (var _iterator = _createForOfIteratorHelperLoose(refs), _step; !(_step = _iterator()).done;) {\n var ref = _step.value;\n assignRef(ref, node);\n } // eslint-disable-next-line react-hooks/exhaustive-deps\n\n }, refs);\n}\n\nexport { assignRef, useComposedRefs };\n","/**\n * Wraps a lib-defined event handler and a user-defined event handler, returning\n * a single handler that allows a user to prevent lib-defined handlers from\n * firing.\n *\n * @param theirHandler User-supplied event handler\n * @param ourHandler Library-supplied event handler\n */\nfunction composeEventHandlers(theirHandler, ourHandler) {\n return function (event) {\n theirHandler && theirHandler(event);\n\n if (!event.defaultPrevented) {\n return ourHandler(event);\n }\n };\n}\n\nexport { composeEventHandlers };\n","import { forwardRef, createElement } from 'react';\nimport PropTypes from 'prop-types';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded = [\"as\", \"style\"];\n\n/**\n * VisuallyHidden\n *\n * Provides text for screen readers that is visually hidden.\n * It is the logical opposite of the `aria-hidden` attribute.\n */\nvar VisuallyHidden = /*#__PURE__*/forwardRef(function VisuallyHidden(_ref, ref) {\n var _ref$as = _ref.as,\n Comp = _ref$as === void 0 ? \"span\" : _ref$as,\n _ref$style = _ref.style,\n style = _ref$style === void 0 ? {} : _ref$style,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n return /*#__PURE__*/createElement(Comp, _extends({\n ref: ref,\n style: _extends({\n border: 0,\n clip: \"rect(0 0 0 0)\",\n height: \"1px\",\n margin: \"-1px\",\n overflow: \"hidden\",\n padding: 0,\n position: \"absolute\",\n width: \"1px\",\n // https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe\n whiteSpace: \"nowrap\",\n wordWrap: \"normal\"\n }, style)\n }, props));\n});\n/**\n * @see Docs https://reach.tech/visually-hidden#visuallyhidden-props\n */\n\nif (process.env.NODE_ENV !== \"production\") {\n VisuallyHidden.displayName = \"VisuallyHidden\";\n VisuallyHidden.propTypes = {\n as: PropTypes.any,\n children: PropTypes.node\n };\n} ////////////////////////////////////////////////////////////////////////////////\n\nexport default VisuallyHidden;\nexport { VisuallyHidden };\n","var props = [\"bottom\", \"height\", \"left\", \"right\", \"top\", \"width\"];\n\nvar rectChanged = function rectChanged(a, b) {\n if (a === void 0) {\n a = {};\n }\n\n if (b === void 0) {\n b = {};\n }\n\n return props.some(function (prop) {\n return a[prop] !== b[prop];\n });\n};\n\nvar observedNodes = /*#__PURE__*/new Map();\nvar rafId;\n\nvar run = function run() {\n var changedStates = [];\n observedNodes.forEach(function (state, node) {\n var newRect = node.getBoundingClientRect();\n\n if (rectChanged(newRect, state.rect)) {\n state.rect = newRect;\n changedStates.push(state);\n }\n });\n changedStates.forEach(function (state) {\n state.callbacks.forEach(function (cb) {\n return cb(state.rect);\n });\n });\n rafId = window.requestAnimationFrame(run);\n};\n\nfunction observeRect(node, cb) {\n return {\n observe: function observe() {\n var wasEmpty = observedNodes.size === 0;\n\n if (observedNodes.has(node)) {\n observedNodes.get(node).callbacks.push(cb);\n } else {\n observedNodes.set(node, {\n rect: undefined,\n hasRectChanged: false,\n callbacks: [cb]\n });\n }\n\n if (wasEmpty) run();\n },\n unobserve: function unobserve() {\n var state = observedNodes.get(node);\n\n if (state) {\n // Remove the callback\n var index = state.callbacks.indexOf(cb);\n if (index >= 0) state.callbacks.splice(index, 1); // Remove the node reference\n\n if (!state.callbacks.length) observedNodes[\"delete\"](node); // Stop the loop\n\n if (!observedNodes.size) cancelAnimationFrame(rafId);\n }\n }\n };\n}\n\nexport default observeRect;\n//# sourceMappingURL=observe-rect.esm.js.map\n","import { useRef, useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport observeRect from '@reach/observe-rect';\nimport { useIsomorphicLayoutEffect } from '@reach/utils/use-isomorphic-layout-effect';\nimport { isBoolean, isFunction } from '@reach/utils/type-check';\nimport warning from 'tiny-warning';\n\n/**\n * Welcome to @reach/rect!\n *\n * Measures DOM elements (aka. bounding client rect).\n *\n * @see getBoundingClientRect https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect\n * @see Docs https://reach.tech/rect\n * @see Source https://github.com/reach/reach-ui/tree/main/packages/rect\n */\n\n/**\n * Rect\n *\n * @param props\n */\n\nvar Rect = function Rect(_ref) {\n var onChange = _ref.onChange,\n _ref$observe = _ref.observe,\n observe = _ref$observe === void 0 ? true : _ref$observe,\n children = _ref.children;\n var ref = useRef(null);\n var rect = useRect(ref, {\n observe: observe,\n onChange: onChange\n });\n return children({\n ref: ref,\n rect: rect\n });\n};\n/**\n * @see Docs https://reach.tech/rect#rect-props\n */\n\n\nif (process.env.NODE_ENV !== \"production\") {\n Rect.displayName = \"Rect\";\n Rect.propTypes = {\n children: PropTypes.func.isRequired,\n observe: PropTypes.bool,\n onChange: PropTypes.func\n };\n} ////////////////////////////////////////////////////////////////////////////////\n\n\n/**\n * useRect\n *\n * @param nodeRef\n * @param observe\n * @param onChange\n */\nfunction useRect(nodeRef, observeOrOptions, deprecated_onChange) {\n var observe;\n var onChange;\n\n if (isBoolean(observeOrOptions)) {\n observe = observeOrOptions;\n } else {\n var _observeOrOptions$obs;\n\n observe = (_observeOrOptions$obs = observeOrOptions == null ? void 0 : observeOrOptions.observe) != null ? _observeOrOptions$obs : true;\n onChange = observeOrOptions == null ? void 0 : observeOrOptions.onChange;\n }\n\n if (isFunction(deprecated_onChange)) {\n onChange = deprecated_onChange;\n }\n\n if (process.env.NODE_ENV !== \"production\") {\n // eslint-disable-next-line react-hooks/rules-of-hooks\n useEffect(function () {\n process.env.NODE_ENV !== \"production\" ? warning(!isBoolean(observeOrOptions), \"Passing `observe` as the second argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `observe` property as the second argument (`useRect(ref, { observe })`).\\n\" + \"See https://reach.tech/rect#userect-observe\") : void 0;\n }, [observeOrOptions]); // eslint-disable-next-line react-hooks/rules-of-hooks\n\n useEffect(function () {\n process.env.NODE_ENV !== \"production\" ? warning(!isFunction(deprecated_onChange), \"Passing `onChange` as the third argument to `useRect` is deprecated and will be removed in a future version of Reach UI. Instead, you can pass an object of options with an `onChange` property as the second argument (`useRect(ref, { onChange })`).\\n\" + \"See https://reach.tech/rect#userect-onchange\") : void 0;\n }, [deprecated_onChange]);\n }\n\n var _React$useState = useState(nodeRef.current),\n element = _React$useState[0],\n setElement = _React$useState[1];\n\n var initialRectIsSet = useRef(false);\n var initialRefIsSet = useRef(false);\n\n var _React$useState2 = useState(null),\n rect = _React$useState2[0],\n setRect = _React$useState2[1];\n\n var onChangeRef = useRef(onChange); // eslint-disable-next-line react-hooks/exhaustive-deps\n\n useIsomorphicLayoutEffect(function () {\n onChangeRef.current = onChange;\n\n if (nodeRef.current !== element) {\n setElement(nodeRef.current);\n }\n });\n useIsomorphicLayoutEffect(function () {\n if (element && !initialRectIsSet.current) {\n initialRectIsSet.current = true;\n setRect(element.getBoundingClientRect());\n }\n }, [element]);\n useIsomorphicLayoutEffect(function () {\n if (!observe) {\n return;\n }\n\n var elem = element; // State initializes before refs are placed, meaning the element state will\n // be undefined on the first render. We still want the rect on the first\n // render, so initially we'll use the nodeRef that was passed instead of\n // state for our measurements.\n\n if (!initialRefIsSet.current) {\n initialRefIsSet.current = true;\n elem = nodeRef.current;\n }\n\n if (!elem) {\n if (process.env.NODE_ENV !== \"production\") {\n console.warn(\"You need to place the ref\");\n }\n\n return;\n }\n\n var observer = observeRect(elem, function (rect) {\n onChangeRef.current == null ? void 0 : onChangeRef.current(rect);\n setRect(rect);\n });\n observer.observe();\n return function () {\n observer.unobserve();\n };\n }, [observe, element, nodeRef]);\n return rect;\n}\n\nexport default Rect;\nexport { Rect, useRect };\n","import { useState, useRef, useEffect, forwardRef, Children, createElement, Fragment, cloneElement } from 'react';\nimport { useId } from '@reach/auto-id';\nimport { getDocumentDimensions } from '@reach/utils/get-document-dimensions';\nimport { getOwnerDocument } from '@reach/utils/owner-document';\nimport { makeId } from '@reach/utils/make-id';\nimport { useCheckStyles } from '@reach/utils/dev-utils';\nimport { useComposedRefs } from '@reach/utils/compose-refs';\nimport { composeEventHandlers } from '@reach/utils/compose-event-handlers';\nimport { Portal } from '@reach/portal';\nimport { VisuallyHidden } from '@reach/visually-hidden';\nimport { useRect } from '@reach/rect';\nimport warning from 'tiny-warning';\nimport PropTypes from 'prop-types';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded = [\"children\", \"label\", \"ariaLabel\", \"id\", \"DEBUG_STYLE\"],\n _excluded2 = [\"label\", \"ariaLabel\", \"isVisible\", \"id\"],\n _excluded3 = [\"ariaLabel\", \"aria-label\", \"as\", \"id\", \"isVisible\", \"label\", \"position\", \"style\", \"triggerRect\"],\n _excluded4 = [\"type\"];\n\nvar _on, _on2, _on3, _on4, _on5, _states;\nvar MOUSE_REST_TIMEOUT = 100;\nvar LEAVE_TIMEOUT = 500; ////////////////////////////////////////////////////////////////////////////////\n// States\n\nvar TooltipStates; ////////////////////////////////////////////////////////////////////////////////\n// Events\n\n(function (TooltipStates) {\n TooltipStates[\"Idle\"] = \"IDLE\";\n TooltipStates[\"Focused\"] = \"FOCUSED\";\n TooltipStates[\"Visible\"] = \"VISIBLE\";\n TooltipStates[\"LeavingVisible\"] = \"LEAVING_VISIBLE\";\n TooltipStates[\"Dismissed\"] = \"DISMISSED\";\n})(TooltipStates || (TooltipStates = {}));\n\nvar TooltipEvents;\n\n(function (TooltipEvents) {\n TooltipEvents[\"Blur\"] = \"BLUR\";\n TooltipEvents[\"Focus\"] = \"FOCUS\";\n TooltipEvents[\"GlobalMouseMove\"] = \"GLOBAL_MOUSE_MOVE\";\n TooltipEvents[\"MouseDown\"] = \"MOUSE_DOWN\";\n TooltipEvents[\"MouseEnter\"] = \"MOUSE_ENTER\";\n TooltipEvents[\"MouseLeave\"] = \"MOUSE_LEAVE\";\n TooltipEvents[\"MouseMove\"] = \"MOUSE_MOVE\";\n TooltipEvents[\"Rest\"] = \"REST\";\n TooltipEvents[\"SelectWithKeyboard\"] = \"SELECT_WITH_KEYBOARD\";\n TooltipEvents[\"TimeComplete\"] = \"TIME_COMPLETE\";\n})(TooltipEvents || (TooltipEvents = {}));\n\nvar chart = {\n initial: TooltipStates.Idle,\n states: (_states = {}, _states[TooltipStates.Idle] = {\n enter: clearContextId,\n on: (_on = {}, _on[TooltipEvents.MouseEnter] = TooltipStates.Focused, _on[TooltipEvents.Focus] = TooltipStates.Visible, _on)\n }, _states[TooltipStates.Focused] = {\n enter: startRestTimer,\n leave: clearRestTimer,\n on: (_on2 = {}, _on2[TooltipEvents.MouseMove] = TooltipStates.Focused, _on2[TooltipEvents.MouseLeave] = TooltipStates.Idle, _on2[TooltipEvents.MouseDown] = TooltipStates.Dismissed, _on2[TooltipEvents.Blur] = TooltipStates.Idle, _on2[TooltipEvents.Rest] = TooltipStates.Visible, _on2)\n }, _states[TooltipStates.Visible] = {\n on: (_on3 = {}, _on3[TooltipEvents.Focus] = TooltipStates.Focused, _on3[TooltipEvents.MouseEnter] = TooltipStates.Focused, _on3[TooltipEvents.MouseLeave] = TooltipStates.LeavingVisible, _on3[TooltipEvents.Blur] = TooltipStates.LeavingVisible, _on3[TooltipEvents.MouseDown] = TooltipStates.Dismissed, _on3[TooltipEvents.SelectWithKeyboard] = TooltipStates.Dismissed, _on3[TooltipEvents.GlobalMouseMove] = TooltipStates.LeavingVisible, _on3)\n }, _states[TooltipStates.LeavingVisible] = {\n enter: startLeavingVisibleTimer,\n leave: function leave() {\n clearLeavingVisibleTimer();\n clearContextId();\n },\n on: (_on4 = {}, _on4[TooltipEvents.MouseEnter] = TooltipStates.Visible, _on4[TooltipEvents.Focus] = TooltipStates.Visible, _on4[TooltipEvents.TimeComplete] = TooltipStates.Idle, _on4)\n }, _states[TooltipStates.Dismissed] = {\n leave: function leave() {\n clearContextId();\n },\n on: (_on5 = {}, _on5[TooltipEvents.MouseLeave] = TooltipStates.Idle, _on5[TooltipEvents.Blur] = TooltipStates.Idle, _on5)\n }, _states)\n};\n/*\n * Chart context allows us to persist some data around, in Tooltip all we use\n * is the id of the current tooltip being interacted with.\n */\n\nvar state = {\n value: chart.initial,\n context: {\n id: null\n }\n}; ////////////////////////////////////////////////////////////////////////////////\n// Subscriptions:\n//\n// We could require apps to render a <TooltipProvider> around the app and use\n// React context to notify Tooltips of changes to our state machine, instead\n// we manage subscriptions ourselves and simplify the Tooltip API.\n//\n// Maybe if default context could take a hook (instead of just a static value)\n// that was rendered at the root for us, that'd be cool! But it doesn't.\n\nvar subscriptions = [];\n\nfunction subscribe(fn) {\n subscriptions.push(fn);\n return function () {\n subscriptions.splice(subscriptions.indexOf(fn), 1);\n };\n}\n\nfunction notify() {\n subscriptions.forEach(function (fn) {\n return fn(state);\n });\n} ////////////////////////////////////////////////////////////////////////////////\n// Timeouts:\n// Manages when the user \"rests\" on an element. Keeps the interface from being\n// flashing tooltips all the time as the user moves the mouse around the screen.\n\n\nvar restTimeout;\n\nfunction startRestTimer() {\n window.clearTimeout(restTimeout);\n restTimeout = window.setTimeout(function () {\n send({\n type: TooltipEvents.Rest\n });\n }, MOUSE_REST_TIMEOUT);\n}\n\nfunction clearRestTimer() {\n window.clearTimeout(restTimeout);\n} // Manages the delay to hide the tooltip after rest leaves.\n\n\nvar leavingVisibleTimer;\n\nfunction startLeavingVisibleTimer() {\n window.clearTimeout(leavingVisibleTimer);\n leavingVisibleTimer = window.setTimeout(function () {\n return send({\n type: TooltipEvents.TimeComplete\n });\n }, LEAVE_TIMEOUT);\n}\n\nfunction clearLeavingVisibleTimer() {\n window.clearTimeout(leavingVisibleTimer);\n} // allows us to come on back later w/o entering something else first after the\n// user leaves or dismisses\n\n\nfunction clearContextId() {\n state.context.id = null;\n} ////////////////////////////////////////////////////////////////////////////////\n\n/**\n * useTooltip\n *\n * @param params\n */\n\n\nfunction useTooltip(_temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n idProp = _ref.id,\n onPointerEnter = _ref.onPointerEnter,\n onPointerMove = _ref.onPointerMove,\n onPointerLeave = _ref.onPointerLeave,\n onPointerDown = _ref.onPointerDown,\n onMouseEnter = _ref.onMouseEnter,\n onMouseMove = _ref.onMouseMove,\n onMouseLeave = _ref.onMouseLeave,\n onMouseDown = _ref.onMouseDown,\n onFocus = _ref.onFocus,\n onBlur = _ref.onBlur,\n onKeyDown = _ref.onKeyDown,\n disabled = _ref.disabled,\n forwardedRef = _ref.ref,\n DEBUG_STYLE = _ref.DEBUG_STYLE;\n\n var id = String(useId(idProp));\n\n var _React$useState = useState(DEBUG_STYLE ? true : isTooltipVisible(id, true)),\n isVisible = _React$useState[0],\n setIsVisible = _React$useState[1]; // hopefully they always pass a ref if they ever pass one\n\n\n var ownRef = useRef(null);\n var ref = useComposedRefs(forwardedRef, ownRef);\n var triggerRect = useRect(ownRef, {\n observe: isVisible\n });\n useEffect(function () {\n return subscribe(function () {\n setIsVisible(isTooltipVisible(id));\n });\n }, [id]);\n useCheckStyles(\"tooltip\");\n useEffect(function () {\n var ownerDocument = getOwnerDocument(ownRef.current);\n\n function listener(event) {\n if ((event.key === \"Escape\" || event.key === \"Esc\") && state.value === TooltipStates.Visible) {\n send({\n type: TooltipEvents.SelectWithKeyboard\n });\n }\n }\n\n ownerDocument.addEventListener(\"keydown\", listener);\n return function () {\n return ownerDocument.removeEventListener(\"keydown\", listener);\n };\n }, []);\n useDisabledTriggerOnSafari({\n disabled: disabled,\n isVisible: isVisible,\n ref: ownRef\n });\n\n function wrapMouseEvent(theirHandler, ourHandler) {\n // Use internal MouseEvent handler only if PointerEvent is not supported\n if (typeof window !== \"undefined\" && \"PointerEvent\" in window) {\n return theirHandler;\n }\n\n return composeEventHandlers(theirHandler, ourHandler);\n }\n\n function wrapPointerEventHandler(handler) {\n return function onPointerEvent(event) {\n // Handle pointer events only from mouse device\n if (event.pointerType !== \"mouse\") {\n return;\n }\n\n handler(event);\n };\n }\n\n function handleMouseEnter() {\n send({\n type: TooltipEvents.MouseEnter,\n id: id\n });\n }\n\n function handleMouseMove() {\n send({\n type: TooltipEvents.MouseMove,\n id: id\n });\n }\n\n function handleMouseLeave() {\n send({\n type: TooltipEvents.MouseLeave\n });\n }\n\n function handleMouseDown() {\n // Allow quick click from one tool to another\n if (state.context.id === id) {\n send({\n type: TooltipEvents.MouseDown\n });\n }\n }\n\n function handleFocus() {\n // @ts-ignore\n if (window.__REACH_DISABLE_TOOLTIPS) {\n return;\n }\n\n send({\n type: TooltipEvents.Focus,\n id: id\n });\n }\n\n function handleBlur() {\n // Allow quick click from one tool to another\n if (state.context.id === id) {\n send({\n type: TooltipEvents.Blur\n });\n }\n }\n\n function handleKeyDown(event) {\n if (event.key === \"Enter\" || event.key === \" \") {\n send({\n type: TooltipEvents.SelectWithKeyboard\n });\n }\n }\n\n var trigger = {\n // The element that triggers the tooltip references the tooltip element with\n // `aria-describedby`.\n // https://www.w3.org/TR/wai-aria-practices-1.2/#tooltip\n \"aria-describedby\": isVisible ? makeId(\"tooltip\", id) : undefined,\n \"data-state\": isVisible ? \"tooltip-visible\" : \"tooltip-hidden\",\n \"data-reach-tooltip-trigger\": \"\",\n ref: ref,\n onPointerEnter: composeEventHandlers(onPointerEnter, wrapPointerEventHandler(handleMouseEnter)),\n onPointerMove: composeEventHandlers(onPointerMove, wrapPointerEventHandler(handleMouseMove)),\n onPointerLeave: composeEventHandlers(onPointerLeave, wrapPointerEventHandler(handleMouseLeave)),\n onPointerDown: composeEventHandlers(onPointerDown, wrapPointerEventHandler(handleMouseDown)),\n onMouseEnter: wrapMouseEvent(onMouseEnter, handleMouseEnter),\n onMouseMove: wrapMouseEvent(onMouseMove, handleMouseMove),\n onMouseLeave: wrapMouseEvent(onMouseLeave, handleMouseLeave),\n onMouseDown: wrapMouseEvent(onMouseDown, handleMouseDown),\n onFocus: composeEventHandlers(onFocus, handleFocus),\n onBlur: composeEventHandlers(onBlur, handleBlur),\n onKeyDown: composeEventHandlers(onKeyDown, handleKeyDown)\n };\n var tooltip = {\n id: id,\n triggerRect: triggerRect,\n isVisible: isVisible\n };\n return [trigger, tooltip, isVisible];\n} ////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Tooltip\n *\n * @see Docs https://reach.tech/tooltip#tooltip\n */\n\n\nvar Tooltip = /*#__PURE__*/forwardRef(function (_ref2, forwardedRef) {\n var children = _ref2.children,\n label = _ref2.label,\n DEPRECATED_ariaLabel = _ref2.ariaLabel,\n id = _ref2.id,\n DEBUG_STYLE = _ref2.DEBUG_STYLE,\n props = _objectWithoutPropertiesLoose(_ref2, _excluded);\n\n var child = Children.only(children);\n process.env.NODE_ENV !== \"production\" ? warning(!DEPRECATED_ariaLabel, \"The `ariaLabel prop is deprecated and will be removed from @reach/tooltip in a future version of Reach UI. Please use `aria-label` instead.\") : void 0; // We need to pass some properties from the child into useTooltip\n // to make sure users can maintain control over the trigger's ref and events\n\n var _useTooltip = useTooltip({\n id: id,\n onPointerEnter: child.props.onPointerEnter,\n onPointerMove: child.props.onPointerMove,\n onPointerLeave: child.props.onPointerLeave,\n onPointerDown: child.props.onPointerDown,\n onMouseEnter: child.props.onMouseEnter,\n onMouseMove: child.props.onMouseMove,\n onMouseLeave: child.props.onMouseLeave,\n onMouseDown: child.props.onMouseDown,\n onFocus: child.props.onFocus,\n onBlur: child.props.onBlur,\n onKeyDown: child.props.onKeyDown,\n disabled: child.props.disabled,\n ref: child.ref,\n DEBUG_STYLE: DEBUG_STYLE\n }),\n trigger = _useTooltip[0],\n tooltip = _useTooltip[1];\n\n return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/cloneElement(child, trigger), /*#__PURE__*/createElement(TooltipPopup, _extends({\n ref: forwardedRef,\n label: label,\n \"aria-label\": DEPRECATED_ariaLabel\n }, tooltip, props)));\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n Tooltip.displayName = \"Tooltip\";\n Tooltip.propTypes = {\n children: PropTypes.node.isRequired,\n label: PropTypes.node.isRequired,\n ariaLabel: PropTypes.string\n };\n} ////////////////////////////////////////////////////////////////////////////////\n\n/**\n * TooltipPopup\n *\n * @see Docs https://reach.tech/tooltip#tooltippopup\n */\n\n\nvar TooltipPopup = /*#__PURE__*/forwardRef(function TooltipPopup(_ref3, forwardRef) {\n var label = _ref3.label,\n DEPRECATED_ariaLabel = _ref3.ariaLabel,\n isVisible = _ref3.isVisible,\n id = _ref3.id,\n props = _objectWithoutPropertiesLoose(_ref3, _excluded2);\n\n return isVisible ? /*#__PURE__*/createElement(Portal, null, /*#__PURE__*/createElement(TooltipContent, _extends({\n ref: forwardRef,\n label: label,\n \"aria-label\": DEPRECATED_ariaLabel,\n isVisible: isVisible\n }, props, {\n id: makeId(\"tooltip\", String(id))\n }))) : null;\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n TooltipPopup.displayName = \"TooltipPopup\";\n TooltipPopup.propTypes = {\n label: PropTypes.node.isRequired,\n ariaLabel: PropTypes.string,\n position: PropTypes.func\n };\n}\n/**\n * TooltipContent\n *\n * We need a separate component so that useRect works inside the portal.\n *\n * @see Docs https://reach.tech/tooltip#tooltipcontent\n */\n\n\nvar TooltipContent = /*#__PURE__*/forwardRef(function TooltipContent(_ref4, forwardedRef) {\n var ariaLabel = _ref4.ariaLabel,\n realAriaLabel = _ref4[\"aria-label\"],\n _ref4$as = _ref4.as,\n Comp = _ref4$as === void 0 ? \"div\" : _ref4$as,\n id = _ref4.id,\n isVisible = _ref4.isVisible,\n label = _ref4.label,\n _ref4$position = _ref4.position,\n position = _ref4$position === void 0 ? positionTooltip : _ref4$position,\n style = _ref4.style,\n triggerRect = _ref4.triggerRect,\n props = _objectWithoutPropertiesLoose(_ref4, _excluded3);\n\n // The element that serves as the tooltip container has role tooltip.\n // https://www.w3.org/TR/wai-aria-practices-1.2/#tooltip When an app passes\n // an `aria-label`, we actually want to implement `role=\"tooltip\"` on a\n // visually hidden element inside of the trigger. In these cases we want the\n // screen reader user to know both the content in the tooltip, but also the\n // content in the badge. For screen reader users, the only content announced\n // to them is whatever is in the tooltip.\n var hasAriaLabel = (realAriaLabel || ariaLabel) != null;\n var ownRef = useRef(null);\n var ref = useComposedRefs(forwardedRef, ownRef);\n var tooltipRect = useRect(ownRef, {\n observe: isVisible\n });\n return /*#__PURE__*/createElement(Fragment, null, /*#__PURE__*/createElement(Comp, _extends({\n role: hasAriaLabel ? undefined : \"tooltip\"\n }, props, {\n ref: ref,\n \"data-reach-tooltip\": \"\",\n id: hasAriaLabel ? undefined : id,\n style: _extends({}, style, getStyles(position, triggerRect, tooltipRect))\n }), label), hasAriaLabel && /*#__PURE__*/createElement(VisuallyHidden, {\n role: \"tooltip\",\n id: id\n }, realAriaLabel || ariaLabel));\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n TooltipContent.displayName = \"TooltipContent\";\n TooltipContent.propTypes = {};\n} ////////////////////////////////////////////////////////////////////////////////\n\n\nfunction getStyles(position, triggerRect, tooltipRect) {\n var haventMeasuredTooltipYet = !tooltipRect;\n\n if (haventMeasuredTooltipYet) {\n return {\n visibility: \"hidden\"\n };\n }\n\n return position(triggerRect, tooltipRect);\n} // Default offset from the trigger (e.g., if the tooltip is positioned above,\n// there will be 8px between the bottom of the tooltip and the top of the trigger).\n// It feels awkward when it's perfectly aligned w/ the trigger\n\n\nvar OFFSET_DEFAULT = 8;\nvar positionTooltip = function positionTooltip(triggerRect, tooltipRect, offset) {\n if (offset === void 0) {\n offset = OFFSET_DEFAULT;\n }\n\n var _getDocumentDimension = getDocumentDimensions(),\n windowWidth = _getDocumentDimension.width,\n windowHeight = _getDocumentDimension.height;\n\n if (!triggerRect || !tooltipRect) {\n return {};\n }\n\n var collisions = {\n top: triggerRect.top - tooltipRect.height < 0,\n right: windowWidth < triggerRect.left + tooltipRect.width,\n bottom: windowHeight < triggerRect.bottom + tooltipRect.height + offset,\n left: triggerRect.left - tooltipRect.width < 0\n };\n var directionRight = collisions.right && !collisions.left;\n var directionUp = collisions.bottom && !collisions.top;\n return {\n left: directionRight ? triggerRect.right - tooltipRect.width + window.pageXOffset + \"px\" : triggerRect.left + window.pageXOffset + \"px\",\n top: directionUp ? triggerRect.top - offset - tooltipRect.height + window.pageYOffset + \"px\" : triggerRect.top + offset + triggerRect.height + window.pageYOffset + \"px\"\n };\n};\n/**\n * This is a workaround for using tooltips with disabled controls in Safari.\n * Safari fires `pointerenter` but does not fire `pointerleave`, and\n * `onPointerEventLeave` added to the trigger element will not work.\n *\n * TODO: We may remove or modiify this behavior in a future version. Direction\n * from WAI-ARIA needed for guidance on handling disabled triggers. Tooltips\n * must be accessible by keyboard, and disabled form controls are generally\n * excluded from the tab sequence.\n *\n * @see https://github.com/reach/reach-ui/issues/564\n * @see https://github.com/w3c/aria-practices/issues/128#issuecomment-588625727\n */\n\nfunction useDisabledTriggerOnSafari(_ref5) {\n var disabled = _ref5.disabled,\n isVisible = _ref5.isVisible,\n ref = _ref5.ref;\n useEffect(function () {\n if (!(typeof window !== \"undefined\" && \"PointerEvent\" in window) || !disabled || !isVisible) {\n return;\n }\n\n var ownerDocument = getOwnerDocument(ref.current);\n\n function handleMouseMove(event) {\n if (!isVisible) {\n return;\n }\n\n if (event.target instanceof Element && event.target.closest(\"[data-reach-tooltip-trigger][data-state='tooltip-visible']\")) {\n return;\n }\n\n send({\n type: TooltipEvents.GlobalMouseMove\n });\n }\n\n ownerDocument.addEventListener(\"mousemove\", handleMouseMove);\n return function () {\n ownerDocument.removeEventListener(\"mousemove\", handleMouseMove);\n };\n }, [disabled, isVisible, ref]);\n} ////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Send an event to our state machine to find the next state from the current\n * state + action.\n *\n * It also manages lifecycles of the machine, (enter/leave hooks on the state\n * chart)\n *\n * @param event\n * @param payload\n */\n\n\nfunction send(event) {\n var _transition = transition(state, event),\n value = _transition.value,\n context = _transition.context,\n changed = _transition.changed;\n\n if (changed) {\n state = {\n value: value,\n context: context\n };\n notify();\n }\n}\n\nfunction transition(currentState, event) {\n var stateDef = chart.states[currentState.value];\n var nextState = stateDef && stateDef.on && stateDef.on[event.type]; // Really useful for debugging\n // console.log({ event, state, nextState, contextId: context.id });\n // !nextState && console.log(\"no transition taken\");\n\n if (!nextState) {\n return _extends({}, currentState, {\n changed: false\n });\n }\n\n if (stateDef && stateDef.leave) {\n stateDef.leave(currentState.context, event);\n }\n\n event.type;\n var payload = _objectWithoutPropertiesLoose(event, _excluded4); // TODO: Use actions instead of directly setting context\n\n\n var context = _extends({}, state.context, payload);\n\n var nextStateValue = typeof nextState === \"string\" ? nextState : nextState.target;\n var nextDef = chart.states[nextStateValue];\n\n if (nextDef && nextDef.enter) {\n nextDef.enter(currentState.context, event);\n }\n\n return {\n value: nextStateValue,\n context: context,\n changed: true\n };\n}\n\nfunction isTooltipVisible(id, initial) {\n return state.context.id === id && (initial ? state.value === TooltipStates.Visible : state.value === TooltipStates.Visible || state.value === TooltipStates.LeavingVisible);\n} ////////////////////////////////////////////////////////////////////////////////\n\nexport default Tooltip;\nexport { LEAVE_TIMEOUT, MOUSE_REST_TIMEOUT, Tooltip, TooltipPopup, positionTooltip, useTooltip };\n","import { getOwnerDocument } from '../../owner-document/dist/reach-utils-owner-document.esm.js';\nimport '../../can-use-dom/dist/reach-utils-can-use-dom.esm.js';\n\n/**\n * Get the size of the working document minus the scrollbar offset.\n *\n * @param element\n */\n\nfunction getDocumentDimensions(element) {\n var _ownerDocument$docume, _ownerDocument$docume2;\n\n var ownerDocument = getOwnerDocument(element);\n var ownerWindow = ownerDocument.defaultView || window;\n\n if (!ownerDocument) {\n return {\n width: 0,\n height: 0\n };\n }\n\n return {\n width: (_ownerDocument$docume = ownerDocument.documentElement.clientWidth) != null ? _ownerDocument$docume : ownerWindow.innerWidth,\n height: (_ownerDocument$docume2 = ownerDocument.documentElement.clientHeight) != null ? _ownerDocument$docume2 : ownerWindow.innerHeight\n };\n}\n\nexport { getDocumentDimensions };\n","function canUseDOM() {\n return !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\n}\n\nexport { canUseDOM };\n","import { useLayoutEffect, useEffect } from 'react';\nimport { canUseDOM } from '../../can-use-dom/dist/reach-utils-can-use-dom.esm.js';\n\n/**\n * React currently throws a warning when using useLayoutEffect on the server. To\n * get around it, we can conditionally useEffect on the server (no-op) and\n * useLayoutEffect in the browser. We occasionally need useLayoutEffect to\n * ensure we don't get a render flash for certain operations, but we may also\n * need affected components to render on the server. One example is when setting\n * a component's descendants to retrieve their index values.\n *\n * Important to note that using this hook as an escape hatch will break the\n * eslint dependency warnings unless you rename the import to `useLayoutEffect`.\n * Use sparingly only when the effect won't effect the rendered HTML to avoid\n * any server/client mismatch.\n *\n * If a useLayoutEffect is needed and the result would create a mismatch, it's\n * likely that the component in question shouldn't be rendered on the server at\n * all, so a better approach would be to lazily render those in a parent\n * component after client-side hydration.\n *\n * https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * https://github.com/reduxjs/react-redux/blob/master/src/utils/useIsomorphicLayoutEffect.js\n *\n * @param effect\n * @param deps\n */\n\nvar useIsomorphicLayoutEffect = /*#__PURE__*/canUseDOM() ? useLayoutEffect : useEffect;\n\nexport { useIsomorphicLayoutEffect };\n"],"names":[],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_madie_madie_design_system=self.webpackChunk_madie_madie_design_system||[]).push([[442],{"./node_modules/domelementtype/lib/index.js"(__unused_webpack_module,exports){"use strict";var ElementType;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Doctype=exports.CDATA=exports.Tag=exports.Style=exports.Script=exports.Comment=exports.Directive=exports.Text=exports.Root=exports.isTag=exports.ElementType=void 0,function(ElementType){ElementType.Root="root",ElementType.Text="text",ElementType.Directive="directive",ElementType.Comment="comment",ElementType.Script="script",ElementType.Style="style",ElementType.Tag="tag",ElementType.CDATA="cdata",ElementType.Doctype="doctype"}(ElementType=exports.ElementType||(exports.ElementType={})),exports.isTag=function isTag(elem){return elem.type===ElementType.Tag||elem.type===ElementType.Script||elem.type===ElementType.Style},exports.Root=ElementType.Root,exports.Text=ElementType.Text,exports.Directive=ElementType.Directive,exports.Comment=ElementType.Comment,exports.Script=ElementType.Script,exports.Style=ElementType.Style,exports.Tag=ElementType.Tag,exports.CDATA=ElementType.CDATA,exports.Doctype=ElementType.Doctype},"./node_modules/domhandler/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=this&&this.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.DomHandler=void 0;var domelementtype_1=__webpack_require__("./node_modules/domelementtype/lib/index.js"),node_js_1=__webpack_require__("./node_modules/domhandler/lib/node.js");__exportStar(__webpack_require__("./node_modules/domhandler/lib/node.js"),exports);var defaultOpts={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},DomHandler=function(){function DomHandler(callback,options,elementCB){this.dom=[],this.root=new node_js_1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof options&&(elementCB=options,options=defaultOpts),"object"==typeof callback&&(options=callback,callback=void 0),this.callback=null!=callback?callback:null,this.options=null!=options?options:defaultOpts,this.elementCB=null!=elementCB?elementCB:null}return DomHandler.prototype.onparserinit=function(parser){this.parser=parser},DomHandler.prototype.onreset=function(){this.dom=[],this.root=new node_js_1.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},DomHandler.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},DomHandler.prototype.onerror=function(error){this.handleCallback(error)},DomHandler.prototype.onclosetag=function(){this.lastNode=null;var elem=this.tagStack.pop();this.options.withEndIndices&&(elem.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(elem)},DomHandler.prototype.onopentag=function(name,attribs){var type=this.options.xmlMode?domelementtype_1.ElementType.Tag:void 0,element=new node_js_1.Element(name,attribs,void 0,type);this.addNode(element),this.tagStack.push(element)},DomHandler.prototype.ontext=function(data){var lastNode=this.lastNode;if(lastNode&&lastNode.type===domelementtype_1.ElementType.Text)lastNode.data+=data,this.options.withEndIndices&&(lastNode.endIndex=this.parser.endIndex);else{var node=new node_js_1.Text(data);this.addNode(node),this.lastNode=node}},DomHandler.prototype.oncomment=function(data){if(this.lastNode&&this.lastNode.type===domelementtype_1.ElementType.Comment)this.lastNode.data+=data;else{var node=new node_js_1.Comment(data);this.addNode(node),this.lastNode=node}},DomHandler.prototype.oncommentend=function(){this.lastNode=null},DomHandler.prototype.oncdatastart=function(){var text=new node_js_1.Text(""),node=new node_js_1.CDATA([text]);this.addNode(node),text.parent=node,this.lastNode=text},DomHandler.prototype.oncdataend=function(){this.lastNode=null},DomHandler.prototype.onprocessinginstruction=function(name,data){var node=new node_js_1.ProcessingInstruction(name,data);this.addNode(node)},DomHandler.prototype.handleCallback=function(error){if("function"==typeof this.callback)this.callback(error,this.dom);else if(error)throw error},DomHandler.prototype.addNode=function(node){var parent=this.tagStack[this.tagStack.length-1],previousSibling=parent.children[parent.children.length-1];this.options.withStartIndices&&(node.startIndex=this.parser.startIndex),this.options.withEndIndices&&(node.endIndex=this.parser.endIndex),parent.children.push(node),previousSibling&&(node.prev=previousSibling,previousSibling.next=node),node.parent=parent,this.lastNode=null},DomHandler}();exports.DomHandler=DomHandler,exports.default=DomHandler},"./node_modules/domhandler/lib/node.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var extendStatics,__extends=this&&this.__extends||(extendStatics=function(d,b){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)Object.prototype.hasOwnProperty.call(b,p)&&(d[p]=b[p])},extendStatics(d,b)},function(d,b){if("function"!=typeof b&&null!==b)throw new TypeError("Class extends value "+String(b)+" is not a constructor or null");function __(){this.constructor=d}extendStatics(d,b),d.prototype=null===b?Object.create(b):(__.prototype=b.prototype,new __)}),__assign=this&&this.__assign||function(){return __assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++)for(var p in s=arguments[i])Object.prototype.hasOwnProperty.call(s,p)&&(t[p]=s[p]);return t},__assign.apply(this,arguments)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.cloneNode=exports.hasChildren=exports.isDocument=exports.isDirective=exports.isComment=exports.isText=exports.isCDATA=exports.isTag=exports.Element=exports.Document=exports.CDATA=exports.NodeWithChildren=exports.ProcessingInstruction=exports.Comment=exports.Text=exports.DataNode=exports.Node=void 0;var domelementtype_1=__webpack_require__("./node_modules/domelementtype/lib/index.js"),Node=function(){function Node(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(Node.prototype,"parentNode",{get:function(){return this.parent},set:function(parent){this.parent=parent},enumerable:!1,configurable:!0}),Object.defineProperty(Node.prototype,"previousSibling",{get:function(){return this.prev},set:function(prev){this.prev=prev},enumerable:!1,configurable:!0}),Object.defineProperty(Node.prototype,"nextSibling",{get:function(){return this.next},set:function(next){this.next=next},enumerable:!1,configurable:!0}),Node.prototype.cloneNode=function(recursive){return void 0===recursive&&(recursive=!1),cloneNode(this,recursive)},Node}();exports.Node=Node;var DataNode=function(_super){function DataNode(data){var _this=_super.call(this)||this;return _this.data=data,_this}return __extends(DataNode,_super),Object.defineProperty(DataNode.prototype,"nodeValue",{get:function(){return this.data},set:function(data){this.data=data},enumerable:!1,configurable:!0}),DataNode}(Node);exports.DataNode=DataNode;var Text=function(_super){function Text(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.type=domelementtype_1.ElementType.Text,_this}return __extends(Text,_super),Object.defineProperty(Text.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),Text}(DataNode);exports.Text=Text;var Comment=function(_super){function Comment(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.type=domelementtype_1.ElementType.Comment,_this}return __extends(Comment,_super),Object.defineProperty(Comment.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),Comment}(DataNode);exports.Comment=Comment;var ProcessingInstruction=function(_super){function ProcessingInstruction(name,data){var _this=_super.call(this,data)||this;return _this.name=name,_this.type=domelementtype_1.ElementType.Directive,_this}return __extends(ProcessingInstruction,_super),Object.defineProperty(ProcessingInstruction.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),ProcessingInstruction}(DataNode);exports.ProcessingInstruction=ProcessingInstruction;var NodeWithChildren=function(_super){function NodeWithChildren(children){var _this=_super.call(this)||this;return _this.children=children,_this}return __extends(NodeWithChildren,_super),Object.defineProperty(NodeWithChildren.prototype,"firstChild",{get:function(){var _a;return null!==(_a=this.children[0])&&void 0!==_a?_a:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(NodeWithChildren.prototype,"childNodes",{get:function(){return this.children},set:function(children){this.children=children},enumerable:!1,configurable:!0}),NodeWithChildren}(Node);exports.NodeWithChildren=NodeWithChildren;var CDATA=function(_super){function CDATA(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.type=domelementtype_1.ElementType.CDATA,_this}return __extends(CDATA,_super),Object.defineProperty(CDATA.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),CDATA}(NodeWithChildren);exports.CDATA=CDATA;var Document=function(_super){function Document(){var _this=null!==_super&&_super.apply(this,arguments)||this;return _this.type=domelementtype_1.ElementType.Root,_this}return __extends(Document,_super),Object.defineProperty(Document.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),Document}(NodeWithChildren);exports.Document=Document;var Element=function(_super){function Element(name,attribs,children,type){void 0===children&&(children=[]),void 0===type&&(type="script"===name?domelementtype_1.ElementType.Script:"style"===name?domelementtype_1.ElementType.Style:domelementtype_1.ElementType.Tag);var _this=_super.call(this,children)||this;return _this.name=name,_this.attribs=attribs,_this.type=type,_this}return __extends(Element,_super),Object.defineProperty(Element.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"tagName",{get:function(){return this.name},set:function(name){this.name=name},enumerable:!1,configurable:!0}),Object.defineProperty(Element.prototype,"attributes",{get:function(){var _this=this;return Object.keys(this.attribs).map(function(name){var _a,_b;return{name,value:_this.attribs[name],namespace:null===(_a=_this["x-attribsNamespace"])||void 0===_a?void 0:_a[name],prefix:null===(_b=_this["x-attribsPrefix"])||void 0===_b?void 0:_b[name]}})},enumerable:!1,configurable:!0}),Element}(NodeWithChildren);function isTag(node){return(0,domelementtype_1.isTag)(node)}function isCDATA(node){return node.type===domelementtype_1.ElementType.CDATA}function isText(node){return node.type===domelementtype_1.ElementType.Text}function isComment(node){return node.type===domelementtype_1.ElementType.Comment}function isDirective(node){return node.type===domelementtype_1.ElementType.Directive}function isDocument(node){return node.type===domelementtype_1.ElementType.Root}function cloneNode(node,recursive){var result;if(void 0===recursive&&(recursive=!1),isText(node))result=new Text(node.data);else if(isComment(node))result=new Comment(node.data);else if(isTag(node)){var children=recursive?cloneChildren(node.children):[],clone_1=new Element(node.name,__assign({},node.attribs),children);children.forEach(function(child){return child.parent=clone_1}),null!=node.namespace&&(clone_1.namespace=node.namespace),node["x-attribsNamespace"]&&(clone_1["x-attribsNamespace"]=__assign({},node["x-attribsNamespace"])),node["x-attribsPrefix"]&&(clone_1["x-attribsPrefix"]=__assign({},node["x-attribsPrefix"])),result=clone_1}else if(isCDATA(node)){children=recursive?cloneChildren(node.children):[];var clone_2=new CDATA(children);children.forEach(function(child){return child.parent=clone_2}),result=clone_2}else if(isDocument(node)){children=recursive?cloneChildren(node.children):[];var clone_3=new Document(children);children.forEach(function(child){return child.parent=clone_3}),node["x-mode"]&&(clone_3["x-mode"]=node["x-mode"]),result=clone_3}else{if(!isDirective(node))throw new Error("Not implemented yet: ".concat(node.type));var instruction=new ProcessingInstruction(node.name,node.data);null!=node["x-name"]&&(instruction["x-name"]=node["x-name"],instruction["x-publicId"]=node["x-publicId"],instruction["x-systemId"]=node["x-systemId"]),result=instruction}return result.startIndex=node.startIndex,result.endIndex=node.endIndex,null!=node.sourceCodeLocation&&(result.sourceCodeLocation=node.sourceCodeLocation),result}function cloneChildren(childs){for(var children=childs.map(function(child){return cloneNode(child,!0)}),i=1;i<children.length;i++)children[i].prev=children[i-1],children[i-1].next=children[i];return children}exports.Element=Element,exports.isTag=isTag,exports.isCDATA=isCDATA,exports.isText=isText,exports.isComment=isComment,exports.isDirective=isDirective,exports.isDocument=isDocument,exports.hasChildren=function hasChildren(node){return Object.prototype.hasOwnProperty.call(node,"children")},exports.cloneNode=cloneNode},"./node_modules/html-dom-parser/lib/client/constants.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CARRIAGE_RETURN_PLACEHOLDER_REGEX=exports.CARRIAGE_RETURN_PLACEHOLDER=exports.CARRIAGE_RETURN_REGEX=exports.CARRIAGE_RETURN=exports.CASE_SENSITIVE_TAG_NAMES_MAP=exports.CASE_SENSITIVE_TAG_NAMES=void 0,exports.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],exports.CASE_SENSITIVE_TAG_NAMES_MAP=exports.CASE_SENSITIVE_TAG_NAMES.reduce(function(accumulator,tagName){return accumulator[tagName.toLowerCase()]=tagName,accumulator},{}),exports.CARRIAGE_RETURN="\r",exports.CARRIAGE_RETURN_REGEX=new RegExp(exports.CARRIAGE_RETURN,"g"),exports.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now().toString(),"__"),exports.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(exports.CARRIAGE_RETURN_PLACEHOLDER,"g")},"./node_modules/html-dom-parser/lib/client/domparser.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function domparser(html){var _a,_b,_c,_d,_e,_f;html=(0,utilities_1.escapeSpecialCharacters)(html);var match=FIRST_TAG_REGEX.exec(html),firstTagName=null===(_a=null==match?void 0:match[1])||void 0===_a?void 0:_a.toLowerCase();switch(firstTagName){case"html":var doc=parseFromString(html);if(!(0,utilities_1.hasOpenTag)(html,"head"))null===(_b=null==(element=doc.querySelector("head"))?void 0:element.parentNode)||void 0===_b||_b.removeChild(element);if(!(0,utilities_1.hasOpenTag)(html,"body"))null===(_c=null==(element=doc.querySelector("body"))?void 0:element.parentNode)||void 0===_c||_c.removeChild(element);return doc.querySelectorAll("html");case"head":case"body":var elements=parseFromDocument(html).querySelectorAll(firstTagName);return(0,utilities_1.hasOpenTag)(html,"body")&&(0,utilities_1.hasOpenTag)(html,"head")?null!==(_e=null===(_d=elements[0].parentNode)||void 0===_d?void 0:_d.childNodes)&&void 0!==_e?_e:createNodeList():elements;default:return parseFromTemplate?parseFromTemplate(html):null!==(_f=null==(element=parseFromDocument(html,"body").querySelector("body"))?void 0:element.childNodes)&&void 0!==_f?_f:createNodeList();var element}};var utilities_1=__webpack_require__("./node_modules/html-dom-parser/lib/client/utilities.js"),FIRST_TAG_REGEX=/<([a-zA-Z]+[0-9]?)/,parseFromDocument=function(html,tagName){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},parseFromString=function(html,tagName){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},DOMParser="object"==typeof window&&window.DOMParser;if("function"==typeof DOMParser){var domParser_1=new DOMParser;parseFromDocument=parseFromString=function(html,tagName){return tagName&&(html="<".concat(tagName,">").concat(html,"</").concat(tagName,">")),domParser_1.parseFromString(html,"text/html")}}if("object"==typeof document&&document.implementation){var htmlDocument_1=document.implementation.createHTMLDocument();parseFromDocument=function(html,tagName){if(tagName){var element=htmlDocument_1.documentElement.querySelector(tagName);return element&&(element.innerHTML=html),htmlDocument_1}return htmlDocument_1.documentElement.innerHTML=html,htmlDocument_1}}var parseFromTemplate,template="object"==typeof document&&document.createElement("template");template&&template.content&&(parseFromTemplate=function(html){return template.innerHTML=html,template.content.childNodes});var createNodeList=function(){return document.createDocumentFragment().childNodes}},"./node_modules/html-dom-parser/lib/client/html-to-dom.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function HTMLDOMParser(html){if("string"!=typeof html)throw new TypeError("First argument must be a string");if(!html)return[];var match=DIRECTIVE_REGEX.exec(html),directive=match?match[1]:void 0;return(0,utilities_1.formatDOM)((0,domparser_1.default)(html),null,directive)};var domparser_1=__importDefault(__webpack_require__("./node_modules/html-dom-parser/lib/client/domparser.js")),utilities_1=__webpack_require__("./node_modules/html-dom-parser/lib/client/utilities.js"),DIRECTIVE_REGEX=/<(![a-zA-Z\s]+)>/},"./node_modules/html-dom-parser/lib/client/utilities.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.formatAttributes=formatAttributes,exports.hasOpenTag=function hasOpenTag(html,tagName){var openTag="<"+tagName,index=html.toLowerCase().indexOf(openTag);if(-1===index)return!1;var char=html[index+openTag.length];return">"===char||" "===char||"\t"===char||"\n"===char||"\r"===char||"/"===char},exports.escapeSpecialCharacters=function escapeSpecialCharacters(html){return html.replace(constants_1.CARRIAGE_RETURN_REGEX,constants_1.CARRIAGE_RETURN_PLACEHOLDER)},exports.revertEscapedCharacters=revertEscapedCharacters,exports.formatDOM=function formatDOM(nodes,parent,directive){var _a,_b,_c,_d;void 0===parent&&(parent=null);for(var current,domNodes=[],index=0,nodesLength=nodes.length;index<nodesLength;index++){var node=nodes[index];switch(node.nodeType){case 1:var tagName=formatTagName(node.nodeName);(current=new domhandler_1.Element(tagName,formatAttributes(node.attributes))).children=formatDOM("template"===tagName?node.content.childNodes:node.childNodes,current);break;case 3:current=new domhandler_1.Text(revertEscapedCharacters(null!==(_a=node.nodeValue)&&void 0!==_a?_a:""));break;case 8:current=new domhandler_1.Comment(null!==(_b=node.nodeValue)&&void 0!==_b?_b:"");break;default:continue}var prev=null!==(_c=domNodes[index-1])&&void 0!==_c?_c:null;prev&&(prev.next=current),current.parent=parent,current.prev=prev,current.next=null,domNodes.push(current)}directive&&((current=new domhandler_1.ProcessingInstruction(directive.substring(0,directive.indexOf(" ")).toLowerCase(),directive)).next=null!==(_d=domNodes[0])&&void 0!==_d?_d:null,current.parent=parent,domNodes.unshift(current),domNodes[1]&&(domNodes[1].prev=domNodes[0]));return domNodes};var domhandler_1=__webpack_require__("./node_modules/domhandler/lib/index.js"),constants_1=__webpack_require__("./node_modules/html-dom-parser/lib/client/constants.js");function formatAttributes(attributes){for(var map={},index=0,attributesLength=attributes.length;index<attributesLength;index++){var attribute=attributes[index];map[attribute.name]=attribute.value}return map}function formatTagName(tagName){var caseSensitiveTagName=function getCaseSensitiveTagName(tagName){return constants_1.CASE_SENSITIVE_TAG_NAMES_MAP[tagName]}(tagName=tagName.toLowerCase());return caseSensitiveTagName||tagName}function revertEscapedCharacters(text){return text.replace(constants_1.CARRIAGE_RETURN_PLACEHOLDER_REGEX,constants_1.CARRIAGE_RETURN)}},"./node_modules/html-react-parser/lib/attributes-to-props.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function attributesToProps(attributes,nodeName){void 0===attributes&&(attributes={});var props={},isInputValueOnly=Boolean(attributes.type&&valueOnlyInputs[attributes.type]);for(var attributeName in attributes){var attributeValue=attributes[attributeName];if((0,react_property_1.isCustomAttribute)(attributeName))props[attributeName]=attributeValue;else{var attributeNameLowerCased=attributeName.toLowerCase(),propName=getPropName(attributeNameLowerCased);if(propName){var propertyInfo=(0,react_property_1.getPropertyInfo)(propName);switch(UNCONTROLLED_COMPONENT_ATTRIBUTES.includes(propName)&&UNCONTROLLED_COMPONENT_NAMES.includes(nodeName)&&!isInputValueOnly&&(propName=getPropName("default"+attributeNameLowerCased)),props[propName]=attributeValue,null==propertyInfo?void 0:propertyInfo.type){case react_property_1.BOOLEAN:props[propName]=!0;break;case react_property_1.OVERLOADED_BOOLEAN:""===attributeValue&&(props[propName]=!0)}}else utilities_1.PRESERVE_CUSTOM_ATTRIBUTES&&(props[attributeName]=attributeValue)}}return(0,utilities_1.setStyleProp)(attributes.style,props),props};var react_property_1=__webpack_require__("./node_modules/react-property/lib/index.js"),utilities_1=__webpack_require__("./node_modules/html-react-parser/lib/utilities.js"),UNCONTROLLED_COMPONENT_ATTRIBUTES=["checked","value"],UNCONTROLLED_COMPONENT_NAMES=["input","select","textarea"],valueOnlyInputs={reset:!0,submit:!0};function getPropName(attributeName){return react_property_1.possibleStandardNames[attributeName]}},"./node_modules/html-react-parser/lib/dom-to-react.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function domToReact(nodes,options){var _a,_b,_c,_d,_e;void 0===options&&(options={});for(var reactElements=[],hasReplace="function"==typeof options.replace,transform=null!==(_a=options.transform)&&void 0!==_a?_a:utilities_1.returnFirstArg,_f=null!==(_b=options.library)&&void 0!==_b?_b:React,cloneElement=_f.cloneElement,createElement=_f.createElement,isValidElement=_f.isValidElement,nodesLength=nodes.length,index=0;index<nodesLength;index++){var node=nodes[index];if(hasReplace){var replaceElement=null===(_c=options.replace)||void 0===_c?void 0:_c.call(options,node,index);if(isValidElement(replaceElement)){nodesLength>1&&(replaceElement=cloneElement(replaceElement,{key:null!==(_d=replaceElement.key)&&void 0!==_d?_d:index})),reactElements.push(transform(replaceElement,node,index));continue}}if("text"!==node.type){var element=node,props={};skipAttributesToProps(element)?((0,utilities_1.setStyleProp)(element.attribs.style,element.attribs),props=element.attribs):element.attribs&&(props=(0,attributes_to_props_1.default)(element.attribs,element.name));var children=void 0;switch(node.type){case"script":case"style":node.children[0]&&(props.dangerouslySetInnerHTML={__html:node.children[0].data});break;case"tag":"textarea"===node.name&&node.children[0]?props.defaultValue=node.children[0].data:(null===(_e=node.children)||void 0===_e?void 0:_e.length)&&(children=domToReact(node.children,options));break;default:continue}nodesLength>1&&(props.key=index),reactElements.push(transform(createElement(node.name,props,children),node,index))}else{var isWhitespace=!node.data.trim().length;if(isWhitespace&&node.parent&&!(0,utilities_1.canTextBeChildOfNode)(node.parent))continue;if(options.trim&&isWhitespace)continue;reactElements.push(transform(node.data,node,index))}}return 1===reactElements.length?reactElements[0]:reactElements};var react_1=__webpack_require__("./node_modules/react/index.js"),attributes_to_props_1=__importDefault(__webpack_require__("./node_modules/html-react-parser/lib/attributes-to-props.js")),utilities_1=__webpack_require__("./node_modules/html-react-parser/lib/utilities.js"),React={cloneElement:react_1.cloneElement,createElement:react_1.createElement,isValidElement:react_1.isValidElement};function skipAttributesToProps(node){return utilities_1.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===node.type&&(0,utilities_1.isCustomComponent)(node.name,node.attribs)}},"./node_modules/html-react-parser/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.htmlToDOM=exports.domToReact=exports.attributesToProps=exports.Text=exports.ProcessingInstruction=exports.Element=exports.Comment=void 0,exports.default=function HTMLReactParser(html,options){var _a;if("string"!=typeof html)throw new TypeError("First argument must be a string");if(!html)return[];return(0,dom_to_react_1.default)((0,html_dom_parser_1.default)(html,null!==(_a=null==options?void 0:options.htmlparser2)&&void 0!==_a?_a:domParserOptions),options)};var html_dom_parser_1=__importDefault(__webpack_require__("./node_modules/html-dom-parser/lib/client/html-to-dom.js"));exports.htmlToDOM=html_dom_parser_1.default;var attributes_to_props_1=__importDefault(__webpack_require__("./node_modules/html-react-parser/lib/attributes-to-props.js"));exports.attributesToProps=attributes_to_props_1.default;var dom_to_react_1=__importDefault(__webpack_require__("./node_modules/html-react-parser/lib/dom-to-react.js"));exports.domToReact=dom_to_react_1.default;var domhandler_1=__webpack_require__("./node_modules/domhandler/lib/index.js");Object.defineProperty(exports,"Comment",{enumerable:!0,get:function(){return domhandler_1.Comment}}),Object.defineProperty(exports,"Element",{enumerable:!0,get:function(){return domhandler_1.Element}}),Object.defineProperty(exports,"ProcessingInstruction",{enumerable:!0,get:function(){return domhandler_1.ProcessingInstruction}}),Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return domhandler_1.Text}});var domParserOptions={lowerCaseAttributeNames:!1}},"./node_modules/html-react-parser/lib/utilities.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.returnFirstArg=exports.canTextBeChildOfNode=exports.ELEMENTS_WITH_NO_TEXT_CHILDREN=exports.PRESERVE_CUSTOM_ATTRIBUTES=void 0,exports.isCustomComponent=function isCustomComponent(tagName,props){if(!tagName.includes("-"))return Boolean(props&&"string"==typeof props.is);if(RESERVED_SVG_MATHML_ELEMENTS.has(tagName))return!1;return!0},exports.setStyleProp=function setStyleProp(style,props){if("string"!=typeof style)return;if(!style.trim())return void(props.style={});try{props.style=(0,style_to_js_1.default)(style,styleOptions)}catch(error){props.style={}}};var react_1=__webpack_require__("./node_modules/react/index.js"),style_to_js_1=__importDefault(__webpack_require__("./node_modules/style-to-js/cjs/index.js")),RESERVED_SVG_MATHML_ELEMENTS=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);var styleOptions={reactCompat:!0};exports.PRESERVE_CUSTOM_ATTRIBUTES=Number(react_1.version.split(".")[0])>=16,exports.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);exports.canTextBeChildOfNode=function(node){return!exports.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(node.name)};exports.returnFirstArg=function(arg){return arg}},"./node_modules/inline-style-parser/cjs/index.js"(module){"use strict";var COMMENT_REGEX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,NEWLINE_REGEX=/\n/g,WHITESPACE_REGEX=/^\s*/,PROPERTY_REGEX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,COLON_REGEX=/^:\s*/,VALUE_REGEX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,SEMICOLON_REGEX=/^[;\s]*/,TRIM_REGEX=/^\s+|\s+$/g;function trim(str){return str?str.replace(TRIM_REGEX,""):""}module.exports=function index(style,options){if("string"!=typeof style)throw new TypeError("First argument must be a string");if(!style)return[];options=options||{};var lineno=1,column=1;function updatePosition(str){var lines=str.match(NEWLINE_REGEX);lines&&(lineno+=lines.length);var i=str.lastIndexOf("\n");column=~i?str.length-i:column+str.length}function position(){var start={line:lineno,column};return function(node){return node.position=new Position(start),whitespace(),node}}function Position(start){this.start=start,this.end={line:lineno,column},this.source=options.source}function error(msg){var err=new Error(options.source+":"+lineno+":"+column+": "+msg);if(err.reason=msg,err.filename=options.source,err.line=lineno,err.column=column,err.source=style,!options.silent)throw err}function match(re){var m=re.exec(style);if(m){var str=m[0];return updatePosition(str),style=style.slice(str.length),m}}function whitespace(){match(WHITESPACE_REGEX)}function comments(rules){var c;for(rules=rules||[];c=comment();)!1!==c&&rules.push(c);return rules}function comment(){var pos=position();if("/"==style.charAt(0)&&"*"==style.charAt(1)){for(var i=2;""!=style.charAt(i)&&("*"!=style.charAt(i)||"/"!=style.charAt(i+1));)++i;if(i+=2,""===style.charAt(i-1))return error("End of comment missing");var str=style.slice(2,i-2);return column+=2,updatePosition(str),style=style.slice(i),column+=2,pos({type:"comment",comment:str})}}function declaration(){var pos=position(),prop=match(PROPERTY_REGEX);if(prop){if(comment(),!match(COLON_REGEX))return error("property missing ':'");var val=match(VALUE_REGEX),ret=pos({type:"declaration",property:trim(prop[0].replace(COMMENT_REGEX,"")),value:val?trim(val[0].replace(COMMENT_REGEX,"")):""});return match(SEMICOLON_REGEX),ret}}return Position.prototype.content=style,whitespace(),function declarations(){var decl,decls=[];for(comments(decls);decl=declaration();)!1!==decl&&(decls.push(decl),comments(decls));return decls}()}},"./node_modules/react-property/lib/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";function PropertyInfoRecord(name,type,mustUseProperty,attributeName,attributeNamespace,sanitizeURL,removeEmptyString){this.acceptsBooleans=2===type||3===type||4===type,this.attributeName=attributeName,this.attributeNamespace=attributeNamespace,this.mustUseProperty=mustUseProperty,this.propertyName=name,this.type=type,this.sanitizeURL=sanitizeURL,this.removeEmptyString=removeEmptyString}const properties={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,0,!1,name,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([name,attributeName])=>{properties[name]=new PropertyInfoRecord(name,1,!1,attributeName,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,2,!1,name.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,2,!1,name,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,3,!1,name.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,3,!0,name,null,!1,!1)}),["capture","download"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,4,!1,name,null,!1,!1)}),["cols","rows","size","span"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,6,!1,name,null,!1,!1)}),["rowSpan","start"].forEach(name=>{properties[name]=new PropertyInfoRecord(name,5,!1,name.toLowerCase(),null,!1,!1)});const CAMELIZE=/[\-\:]([a-z])/g,capitalize=token=>token[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(attributeName=>{const name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,1,!1,attributeName,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(attributeName=>{const name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,1,!1,attributeName,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(attributeName=>{const name=attributeName.replace(CAMELIZE,capitalize);properties[name]=new PropertyInfoRecord(name,1,!1,attributeName,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(attributeName=>{properties[attributeName]=new PropertyInfoRecord(attributeName,1,!1,attributeName.toLowerCase(),null,!1,!1)});properties.xlinkHref=new PropertyInfoRecord("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(attributeName=>{properties[attributeName]=new PropertyInfoRecord(attributeName,1,!1,attributeName.toLowerCase(),null,!0,!0)});const{CAMELCASE,SAME,possibleStandardNames:possibleStandardNamesOptimized}=__webpack_require__("./node_modules/react-property/lib/possibleStandardNamesOptimized.js"),isCustomAttribute=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$")),possibleStandardNames=Object.keys(possibleStandardNamesOptimized).reduce((accumulator,standardName)=>{const propName=possibleStandardNamesOptimized[standardName];return propName===SAME?accumulator[standardName]=standardName:propName===CAMELCASE?accumulator[standardName.toLowerCase()]=standardName:accumulator[standardName]=propName,accumulator},{});exports.BOOLEAN=3,exports.BOOLEANISH_STRING=2,exports.NUMERIC=5,exports.OVERLOADED_BOOLEAN=4,exports.POSITIVE_NUMERIC=6,exports.RESERVED=0,exports.STRING=1,exports.getPropertyInfo=function getPropertyInfo(name){return properties.hasOwnProperty(name)?properties[name]:null},exports.isCustomAttribute=isCustomAttribute,exports.possibleStandardNames=possibleStandardNames},"./node_modules/react-property/lib/possibleStandardNamesOptimized.js"(__unused_webpack_module,exports){exports.SAME=0;exports.CAMELCASE=1,exports.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},"./node_modules/style-to-js/cjs/index.js"(module,__unused_webpack_exports,__webpack_require__){"use strict";var style_to_object_1=(this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}})(__webpack_require__("./node_modules/style-to-object/cjs/index.js")),utilities_1=__webpack_require__("./node_modules/style-to-js/cjs/utilities.js");function StyleToJS(style,options){var output={};return style&&"string"==typeof style?((0,style_to_object_1.default)(style,function(property,value){property&&value&&(output[(0,utilities_1.camelCase)(property,options)]=value)}),output):output}StyleToJS.default=StyleToJS,module.exports=StyleToJS},"./node_modules/style-to-js/cjs/utilities.js"(__unused_webpack_module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.camelCase=void 0;var CUSTOM_PROPERTY_REGEX=/^--[a-zA-Z0-9_-]+$/,HYPHEN_REGEX=/-([a-z])/g,NO_HYPHEN_REGEX=/^[^-]+$/,VENDOR_PREFIX_REGEX=/^-(webkit|moz|ms|o|khtml)-/,MS_VENDOR_PREFIX_REGEX=/^-(ms)-/,capitalize=function(match,character){return character.toUpperCase()},trimHyphen=function(match,prefix){return"".concat(prefix,"-")};exports.camelCase=function(property,options){return void 0===options&&(options={}),function(property){return!property||NO_HYPHEN_REGEX.test(property)||CUSTOM_PROPERTY_REGEX.test(property)}(property)?property:(property=property.toLowerCase(),(property=options.reactCompat?property.replace(MS_VENDOR_PREFIX_REGEX,trimHyphen):property.replace(VENDOR_PREFIX_REGEX,trimHyphen)).replace(HYPHEN_REGEX,capitalize))}},"./node_modules/style-to-object/cjs/index.js"(__unused_webpack_module,exports,__webpack_require__){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{default:mod}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function StyleToObject(style,iterator){let styleObject=null;if(!style||"string"!=typeof style)return styleObject;const declarations=(0,inline_style_parser_1.default)(style),hasIterator="function"==typeof iterator;return declarations.forEach(declaration=>{if("declaration"!==declaration.type)return;const{property,value}=declaration;hasIterator?iterator(property,value,declaration):value&&(styleObject=styleObject||{},styleObject[property]=value)}),styleObject};const inline_style_parser_1=__importDefault(__webpack_require__("./node_modules/inline-style-parser/cjs/index.js"))}}]);
2
+ //# sourceMappingURL=442.81ce93b1.iframe.bundle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"442.2b2b6e1d.iframe.bundle.js","mappings":"AAIA","sources":["webpack://@madie/madie-design-system/./node_modules/domelementtype/lib/index.js","webpack://@madie/madie-design-system/./node_modules/domhandler/lib/index.js","webpack://@madie/madie-design-system/./node_modules/domhandler/lib/node.js","webpack://@madie/madie-design-system/./node_modules/html-dom-parser/lib/client/constants.js","webpack://@madie/madie-design-system/./node_modules/html-dom-parser/lib/client/domparser.js","webpack://@madie/madie-design-system/./node_modules/html-dom-parser/lib/client/html-to-dom.js","webpack://@madie/madie-design-system/./node_modules/html-dom-parser/lib/client/utilities.js","webpack://@madie/madie-design-system/./node_modules/html-react-parser/lib/attributes-to-props.js","webpack://@madie/madie-design-system/./node_modules/html-react-parser/lib/dom-to-react.js","webpack://@madie/madie-design-system/./node_modules/html-react-parser/lib/index.js","webpack://@madie/madie-design-system/./node_modules/html-react-parser/lib/utilities.js","webpack://@madie/madie-design-system/./node_modules/inline-style-parser/cjs/index.js","webpack://@madie/madie-design-system/./node_modules/react-property/lib/index.js","webpack://@madie/madie-design-system/./node_modules/react-property/lib/possibleStandardNamesOptimized.js","webpack://@madie/madie-design-system/./node_modules/style-to-js/cjs/index.js","webpack://@madie/madie-design-system/./node_modules/style-to-js/cjs/utilities.js","webpack://@madie/madie-design-system/./node_modules/style-to-object/cjs/index.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.Doctype = exports.CDATA = exports.Tag = exports.Style = exports.Script = exports.Comment = exports.Directive = exports.Text = exports.Root = exports.isTag = exports.ElementType = void 0;\n/** Types of elements found in htmlparser2's DOM */\nvar ElementType;\n(function (ElementType) {\n /** Type for the root element of a document */\n ElementType[\"Root\"] = \"root\";\n /** Type for Text */\n ElementType[\"Text\"] = \"text\";\n /** Type for <? ... ?> */\n ElementType[\"Directive\"] = \"directive\";\n /** Type for <!-- ... --> */\n ElementType[\"Comment\"] = \"comment\";\n /** Type for <script> tags */\n ElementType[\"Script\"] = \"script\";\n /** Type for <style> tags */\n ElementType[\"Style\"] = \"style\";\n /** Type for Any tag */\n ElementType[\"Tag\"] = \"tag\";\n /** Type for <![CDATA[ ... ]]> */\n ElementType[\"CDATA\"] = \"cdata\";\n /** Type for <!doctype ...> */\n ElementType[\"Doctype\"] = \"doctype\";\n})(ElementType = exports.ElementType || (exports.ElementType = {}));\n/**\n * Tests whether an element is a tag or not.\n *\n * @param elem Element to test\n */\nfunction isTag(elem) {\n return (elem.type === ElementType.Tag ||\n elem.type === ElementType.Script ||\n elem.type === ElementType.Style);\n}\nexports.isTag = isTag;\n// Exports for backwards compatibility\n/** Type for the root element of a document */\nexports.Root = ElementType.Root;\n/** Type for Text */\nexports.Text = ElementType.Text;\n/** Type for <? ... ?> */\nexports.Directive = ElementType.Directive;\n/** Type for <!-- ... --> */\nexports.Comment = ElementType.Comment;\n/** Type for <script> tags */\nexports.Script = ElementType.Script;\n/** Type for <style> tags */\nexports.Style = ElementType.Style;\n/** Type for Any tag */\nexports.Tag = ElementType.Tag;\n/** Type for <![CDATA[ ... ]]> */\nexports.CDATA = ElementType.CDATA;\n/** Type for <!doctype ...> */\nexports.Doctype = ElementType.Doctype;\n","\"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};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.DomHandler = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\nvar node_js_1 = require(\"./node.js\");\n__exportStar(require(\"./node.js\"), exports);\n// Default options\nvar defaultOpts = {\n withStartIndices: false,\n withEndIndices: false,\n xmlMode: false,\n};\nvar DomHandler = /** @class */ (function () {\n /**\n * @param callback Called once parsing has completed.\n * @param options Settings for the handler.\n * @param elementCB Callback whenever a tag is closed.\n */\n function DomHandler(callback, options, elementCB) {\n /** The elements of the DOM */\n this.dom = [];\n /** The root element for the DOM */\n this.root = new node_js_1.Document(this.dom);\n /** Indicated whether parsing has been completed. */\n this.done = false;\n /** Stack of open tags. */\n this.tagStack = [this.root];\n /** A data node that is still being written to. */\n this.lastNode = null;\n /** Reference to the parser instance. Used for location information. */\n this.parser = null;\n // Make it possible to skip arguments, for backwards-compatibility\n if (typeof options === \"function\") {\n elementCB = options;\n options = defaultOpts;\n }\n if (typeof callback === \"object\") {\n options = callback;\n callback = undefined;\n }\n this.callback = callback !== null && callback !== void 0 ? callback : null;\n this.options = options !== null && options !== void 0 ? options : defaultOpts;\n this.elementCB = elementCB !== null && elementCB !== void 0 ? elementCB : null;\n }\n DomHandler.prototype.onparserinit = function (parser) {\n this.parser = parser;\n };\n // Resets the handler back to starting state\n DomHandler.prototype.onreset = function () {\n this.dom = [];\n this.root = new node_js_1.Document(this.dom);\n this.done = false;\n this.tagStack = [this.root];\n this.lastNode = null;\n this.parser = null;\n };\n // Signals the handler that parsing is done\n DomHandler.prototype.onend = function () {\n if (this.done)\n return;\n this.done = true;\n this.parser = null;\n this.handleCallback(null);\n };\n DomHandler.prototype.onerror = function (error) {\n this.handleCallback(error);\n };\n DomHandler.prototype.onclosetag = function () {\n this.lastNode = null;\n var elem = this.tagStack.pop();\n if (this.options.withEndIndices) {\n elem.endIndex = this.parser.endIndex;\n }\n if (this.elementCB)\n this.elementCB(elem);\n };\n DomHandler.prototype.onopentag = function (name, attribs) {\n var type = this.options.xmlMode ? domelementtype_1.ElementType.Tag : undefined;\n var element = new node_js_1.Element(name, attribs, undefined, type);\n this.addNode(element);\n this.tagStack.push(element);\n };\n DomHandler.prototype.ontext = function (data) {\n var lastNode = this.lastNode;\n if (lastNode && lastNode.type === domelementtype_1.ElementType.Text) {\n lastNode.data += data;\n if (this.options.withEndIndices) {\n lastNode.endIndex = this.parser.endIndex;\n }\n }\n else {\n var node = new node_js_1.Text(data);\n this.addNode(node);\n this.lastNode = node;\n }\n };\n DomHandler.prototype.oncomment = function (data) {\n if (this.lastNode && this.lastNode.type === domelementtype_1.ElementType.Comment) {\n this.lastNode.data += data;\n return;\n }\n var node = new node_js_1.Comment(data);\n this.addNode(node);\n this.lastNode = node;\n };\n DomHandler.prototype.oncommentend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.oncdatastart = function () {\n var text = new node_js_1.Text(\"\");\n var node = new node_js_1.CDATA([text]);\n this.addNode(node);\n text.parent = node;\n this.lastNode = text;\n };\n DomHandler.prototype.oncdataend = function () {\n this.lastNode = null;\n };\n DomHandler.prototype.onprocessinginstruction = function (name, data) {\n var node = new node_js_1.ProcessingInstruction(name, data);\n this.addNode(node);\n };\n DomHandler.prototype.handleCallback = function (error) {\n if (typeof this.callback === \"function\") {\n this.callback(error, this.dom);\n }\n else if (error) {\n throw error;\n }\n };\n DomHandler.prototype.addNode = function (node) {\n var parent = this.tagStack[this.tagStack.length - 1];\n var previousSibling = parent.children[parent.children.length - 1];\n if (this.options.withStartIndices) {\n node.startIndex = this.parser.startIndex;\n }\n if (this.options.withEndIndices) {\n node.endIndex = this.parser.endIndex;\n }\n parent.children.push(node);\n if (previousSibling) {\n node.prev = previousSibling;\n previousSibling.next = node;\n }\n node.parent = parent;\n this.lastNode = null;\n };\n return DomHandler;\n}());\nexports.DomHandler = DomHandler;\nexports.default = DomHandler;\n","\"use strict\";\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\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 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.cloneNode = exports.hasChildren = exports.isDocument = exports.isDirective = exports.isComment = exports.isText = exports.isCDATA = exports.isTag = exports.Element = exports.Document = exports.CDATA = exports.NodeWithChildren = exports.ProcessingInstruction = exports.Comment = exports.Text = exports.DataNode = exports.Node = void 0;\nvar domelementtype_1 = require(\"domelementtype\");\n/**\n * This object will be used as the prototype for Nodes when creating a\n * DOM-Level-1-compliant structure.\n */\nvar Node = /** @class */ (function () {\n function Node() {\n /** Parent of the node */\n this.parent = null;\n /** Previous sibling */\n this.prev = null;\n /** Next sibling */\n this.next = null;\n /** The start index of the node. Requires `withStartIndices` on the handler to be `true. */\n this.startIndex = null;\n /** The end index of the node. Requires `withEndIndices` on the handler to be `true. */\n this.endIndex = null;\n }\n Object.defineProperty(Node.prototype, \"parentNode\", {\n // Read-write aliases for properties\n /**\n * Same as {@link parent}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.parent;\n },\n set: function (parent) {\n this.parent = parent;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"previousSibling\", {\n /**\n * Same as {@link prev}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.prev;\n },\n set: function (prev) {\n this.prev = prev;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Node.prototype, \"nextSibling\", {\n /**\n * Same as {@link next}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.next;\n },\n set: function (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 Node.prototype.cloneNode = function (recursive) {\n if (recursive === void 0) { recursive = false; }\n return cloneNode(this, recursive);\n };\n return Node;\n}());\nexports.Node = Node;\n/**\n * A node that contains some data.\n */\nvar DataNode = /** @class */ (function (_super) {\n __extends(DataNode, _super);\n /**\n * @param data The content of the data node\n */\n function DataNode(data) {\n var _this = _super.call(this) || this;\n _this.data = data;\n return _this;\n }\n Object.defineProperty(DataNode.prototype, \"nodeValue\", {\n /**\n * Same as {@link data}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.data;\n },\n set: function (data) {\n this.data = data;\n },\n enumerable: false,\n configurable: true\n });\n return DataNode;\n}(Node));\nexports.DataNode = DataNode;\n/**\n * Text within the document.\n */\nvar Text = /** @class */ (function (_super) {\n __extends(Text, _super);\n function Text() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Text;\n return _this;\n }\n Object.defineProperty(Text.prototype, \"nodeType\", {\n get: function () {\n return 3;\n },\n enumerable: false,\n configurable: true\n });\n return Text;\n}(DataNode));\nexports.Text = Text;\n/**\n * Comments within the document.\n */\nvar Comment = /** @class */ (function (_super) {\n __extends(Comment, _super);\n function Comment() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Comment;\n return _this;\n }\n Object.defineProperty(Comment.prototype, \"nodeType\", {\n get: function () {\n return 8;\n },\n enumerable: false,\n configurable: true\n });\n return Comment;\n}(DataNode));\nexports.Comment = Comment;\n/**\n * Processing instructions, including doc types.\n */\nvar ProcessingInstruction = /** @class */ (function (_super) {\n __extends(ProcessingInstruction, _super);\n function ProcessingInstruction(name, data) {\n var _this = _super.call(this, data) || this;\n _this.name = name;\n _this.type = domelementtype_1.ElementType.Directive;\n return _this;\n }\n Object.defineProperty(ProcessingInstruction.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n return ProcessingInstruction;\n}(DataNode));\nexports.ProcessingInstruction = ProcessingInstruction;\n/**\n * A `Node` that can have children.\n */\nvar NodeWithChildren = /** @class */ (function (_super) {\n __extends(NodeWithChildren, _super);\n /**\n * @param children Children of the node. Only certain node types can have children.\n */\n function NodeWithChildren(children) {\n var _this = _super.call(this) || this;\n _this.children = children;\n return _this;\n }\n Object.defineProperty(NodeWithChildren.prototype, \"firstChild\", {\n // Aliases\n /** First child of the node. */\n get: function () {\n var _a;\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 /** Last child of the node. */\n get: function () {\n return this.children.length > 0\n ? this.children[this.children.length - 1]\n : null;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(NodeWithChildren.prototype, \"childNodes\", {\n /**\n * Same as {@link children}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.children;\n },\n set: function (children) {\n this.children = children;\n },\n enumerable: false,\n configurable: true\n });\n return NodeWithChildren;\n}(Node));\nexports.NodeWithChildren = NodeWithChildren;\nvar CDATA = /** @class */ (function (_super) {\n __extends(CDATA, _super);\n function CDATA() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.CDATA;\n return _this;\n }\n Object.defineProperty(CDATA.prototype, \"nodeType\", {\n get: function () {\n return 4;\n },\n enumerable: false,\n configurable: true\n });\n return CDATA;\n}(NodeWithChildren));\nexports.CDATA = CDATA;\n/**\n * The root node of the document.\n */\nvar Document = /** @class */ (function (_super) {\n __extends(Document, _super);\n function Document() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this.type = domelementtype_1.ElementType.Root;\n return _this;\n }\n Object.defineProperty(Document.prototype, \"nodeType\", {\n get: function () {\n return 9;\n },\n enumerable: false,\n configurable: true\n });\n return Document;\n}(NodeWithChildren));\nexports.Document = Document;\n/**\n * An element within the DOM.\n */\nvar Element = /** @class */ (function (_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 function Element(name, attribs, children, type) {\n if (children === void 0) { children = []; }\n if (type === void 0) { type = name === \"script\"\n ? domelementtype_1.ElementType.Script\n : name === \"style\"\n ? domelementtype_1.ElementType.Style\n : domelementtype_1.ElementType.Tag; }\n var _this = _super.call(this, children) || this;\n _this.name = name;\n _this.attribs = attribs;\n _this.type = type;\n return _this;\n }\n Object.defineProperty(Element.prototype, \"nodeType\", {\n get: function () {\n return 1;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"tagName\", {\n // DOM Level 1 aliases\n /**\n * Same as {@link name}.\n * [DOM spec](https://dom.spec.whatwg.org)-compatible alias.\n */\n get: function () {\n return this.name;\n },\n set: function (name) {\n this.name = name;\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(Element.prototype, \"attributes\", {\n get: function () {\n var _this = this;\n return Object.keys(this.attribs).map(function (name) {\n var _a, _b;\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));\nexports.Element = Element;\n/**\n * @param node Node to check.\n * @returns `true` if the node is a `Element`, `false` otherwise.\n */\nfunction isTag(node) {\n return (0, domelementtype_1.isTag)(node);\n}\nexports.isTag = isTag;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `CDATA`, `false` otherwise.\n */\nfunction isCDATA(node) {\n return node.type === domelementtype_1.ElementType.CDATA;\n}\nexports.isCDATA = isCDATA;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Text`, `false` otherwise.\n */\nfunction isText(node) {\n return node.type === domelementtype_1.ElementType.Text;\n}\nexports.isText = isText;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `Comment`, `false` otherwise.\n */\nfunction isComment(node) {\n return node.type === domelementtype_1.ElementType.Comment;\n}\nexports.isComment = isComment;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDirective(node) {\n return node.type === domelementtype_1.ElementType.Directive;\n}\nexports.isDirective = isDirective;\n/**\n * @param node Node to check.\n * @returns `true` if the node has the type `ProcessingInstruction`, `false` otherwise.\n */\nfunction isDocument(node) {\n return node.type === domelementtype_1.ElementType.Root;\n}\nexports.isDocument = isDocument;\n/**\n * @param node Node to check.\n * @returns `true` if the node has children, `false` otherwise.\n */\nfunction hasChildren(node) {\n return Object.prototype.hasOwnProperty.call(node, \"children\");\n}\nexports.hasChildren = hasChildren;\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 */\nfunction cloneNode(node, recursive) {\n if (recursive === void 0) { recursive = false; }\n var result;\n if (isText(node)) {\n result = new Text(node.data);\n }\n else if (isComment(node)) {\n result = new Comment(node.data);\n }\n else if (isTag(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_1 = new Element(node.name, __assign({}, node.attribs), children);\n children.forEach(function (child) { return (child.parent = clone_1); });\n if (node.namespace != null) {\n clone_1.namespace = node.namespace;\n }\n if (node[\"x-attribsNamespace\"]) {\n clone_1[\"x-attribsNamespace\"] = __assign({}, node[\"x-attribsNamespace\"]);\n }\n if (node[\"x-attribsPrefix\"]) {\n clone_1[\"x-attribsPrefix\"] = __assign({}, node[\"x-attribsPrefix\"]);\n }\n result = clone_1;\n }\n else if (isCDATA(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_2 = new CDATA(children);\n children.forEach(function (child) { return (child.parent = clone_2); });\n result = clone_2;\n }\n else if (isDocument(node)) {\n var children = recursive ? cloneChildren(node.children) : [];\n var clone_3 = new Document(children);\n children.forEach(function (child) { return (child.parent = clone_3); });\n if (node[\"x-mode\"]) {\n clone_3[\"x-mode\"] = node[\"x-mode\"];\n }\n result = clone_3;\n }\n else if (isDirective(node)) {\n var instruction = new ProcessingInstruction(node.name, node.data);\n if (node[\"x-name\"] != null) {\n instruction[\"x-name\"] = node[\"x-name\"];\n instruction[\"x-publicId\"] = node[\"x-publicId\"];\n instruction[\"x-systemId\"] = node[\"x-systemId\"];\n }\n result = instruction;\n }\n else {\n throw new Error(\"Not implemented yet: \".concat(node.type));\n }\n result.startIndex = node.startIndex;\n result.endIndex = node.endIndex;\n if (node.sourceCodeLocation != null) {\n result.sourceCodeLocation = node.sourceCodeLocation;\n }\n return result;\n}\nexports.cloneNode = cloneNode;\nfunction cloneChildren(childs) {\n var children = childs.map(function (child) { return cloneNode(child, true); });\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 return children;\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.CARRIAGE_RETURN_PLACEHOLDER_REGEX = exports.CARRIAGE_RETURN_PLACEHOLDER = exports.CARRIAGE_RETURN_REGEX = exports.CARRIAGE_RETURN = exports.CASE_SENSITIVE_TAG_NAMES_MAP = exports.CASE_SENSITIVE_TAG_NAMES = void 0;\n/**\n * SVG elements are case-sensitive.\n *\n * @see https://developer.mozilla.org/docs/Web/SVG/Element#svg_elements_a_to_z\n */\nexports.CASE_SENSITIVE_TAG_NAMES = [\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'linearGradient',\n 'radialGradient',\n 'textPath',\n];\nexports.CASE_SENSITIVE_TAG_NAMES_MAP = exports.CASE_SENSITIVE_TAG_NAMES.reduce(function (accumulator, tagName) {\n accumulator[tagName.toLowerCase()] = tagName;\n return accumulator;\n}, {});\nexports.CARRIAGE_RETURN = '\\r';\nexports.CARRIAGE_RETURN_REGEX = new RegExp(exports.CARRIAGE_RETURN, 'g');\nexports.CARRIAGE_RETURN_PLACEHOLDER = \"__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_\".concat(Date.now().toString(), \"__\");\nexports.CARRIAGE_RETURN_PLACEHOLDER_REGEX = new RegExp(exports.CARRIAGE_RETURN_PLACEHOLDER, 'g');\n//# sourceMappingURL=constants.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = domparser;\nvar utilities_1 = require(\"./utilities\");\n// constants\nvar HTML = 'html';\nvar HEAD = 'head';\nvar BODY = 'body';\nvar FIRST_TAG_REGEX = /<([a-zA-Z]+[0-9]?)/; // e.g., <h1>\n// falls back to `parseFromString` if `createHTMLDocument` cannot be used\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* istanbul ignore start */\nvar parseFromDocument = function (html, tagName) {\n throw new Error('This browser does not support `document.implementation.createHTMLDocument`');\n};\nvar parseFromString = function (html, tagName) {\n throw new Error('This browser does not support `DOMParser.prototype.parseFromString`');\n};\n/* istanbul ignore stop */\n/* eslint-enable @typescript-eslint/no-unused-vars */\nvar DOMParser = typeof window === 'object' && window.DOMParser;\n/**\n * DOMParser (performance: slow).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMParser#Parsing_an_SVG_or_HTML_document\n */\nif (typeof DOMParser === 'function') {\n var domParser_1 = new DOMParser();\n var mimeType_1 = 'text/html';\n /**\n * Creates an HTML document using `DOMParser.parseFromString`.\n *\n * @param html - The HTML string.\n * @param tagName - The element to render the HTML (with 'body' as fallback).\n * @returns - Document.\n */\n parseFromString = function (html, tagName) {\n /* istanbul ignore start */\n if (tagName) {\n html = \"<\".concat(tagName, \">\").concat(html, \"</\").concat(tagName, \">\");\n }\n /* istanbul ignore stop */\n return domParser_1.parseFromString(html, mimeType_1);\n };\n parseFromDocument = parseFromString;\n}\n/**\n * DOMImplementation (performance: fair).\n *\n * @see https://developer.mozilla.org/docs/Web/API/DOMImplementation/createHTMLDocument\n */\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nif (typeof document === 'object' && document.implementation) {\n var htmlDocument_1 = document.implementation.createHTMLDocument();\n /**\n * Use HTML document created by `document.implementation.createHTMLDocument`.\n *\n * @param html - The HTML string.\n * @param tagName - The element to render the HTML (with 'body' as fallback).\n * @returns - Document\n */\n parseFromDocument = function (html, tagName) {\n /* istanbul ignore start */\n if (tagName) {\n var element = htmlDocument_1.documentElement.querySelector(tagName);\n if (element) {\n element.innerHTML = html;\n }\n return htmlDocument_1;\n }\n /* istanbul ignore stop */\n htmlDocument_1.documentElement.innerHTML = html;\n return htmlDocument_1;\n };\n}\n/**\n * Template (performance: fast).\n *\n * @see https://developer.mozilla.org/docs/Web/HTML/Element/template\n */\nvar template = typeof document === 'object' && document.createElement('template');\nvar parseFromTemplate;\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\nif (template && template.content) {\n /**\n * Uses a template element (content fragment) to parse HTML.\n *\n * @param html - HTML string.\n * @returns - Nodes.\n */\n parseFromTemplate = function (html) {\n template.innerHTML = html;\n return template.content.childNodes;\n };\n}\nvar createNodeList = /* istanbul ignore next */ function () {\n return document.createDocumentFragment().childNodes;\n};\n/**\n * Parses HTML string to DOM nodes.\n *\n * @param html - HTML markup.\n * @returns - DOM nodes.\n */\nfunction domparser(html) {\n var _a, _b, _c, _d, _e, _f;\n // Escape special characters before parsing\n html = (0, utilities_1.escapeSpecialCharacters)(html);\n var match = FIRST_TAG_REGEX.exec(html);\n var firstTagName = (_a = match === null || match === void 0 ? void 0 : match[1]) === null || _a === void 0 ? void 0 : _a.toLowerCase();\n switch (firstTagName) {\n case HTML: {\n var doc = parseFromString(html);\n // the created document may come with filler head/body elements,\n // so make sure to remove them if they don't actually exist\n if (!(0, utilities_1.hasOpenTag)(html, HEAD)) {\n var element = doc.querySelector(HEAD);\n /* istanbul ignore next */\n (_b = element === null || element === void 0 ? void 0 : element.parentNode) === null || _b === void 0 ? void 0 : _b.removeChild(element);\n }\n if (!(0, utilities_1.hasOpenTag)(html, BODY)) {\n var element = doc.querySelector(BODY);\n /* istanbul ignore next */\n (_c = element === null || element === void 0 ? void 0 : element.parentNode) === null || _c === void 0 ? void 0 : _c.removeChild(element);\n }\n return doc.querySelectorAll(HTML);\n }\n case HEAD:\n case BODY: {\n var elements = parseFromDocument(html).querySelectorAll(firstTagName);\n // if there's a sibling element, then return both elements\n if ((0, utilities_1.hasOpenTag)(html, BODY) && (0, utilities_1.hasOpenTag)(html, HEAD)) {\n /* istanbul ignore next */\n return (_e = (_d = elements[0].parentNode) === null || _d === void 0 ? void 0 : _d.childNodes) !== null && _e !== void 0 ? _e : createNodeList();\n }\n return elements;\n }\n // low-level tag or text\n default: {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (parseFromTemplate) {\n return parseFromTemplate(html);\n }\n /* istanbul ignore start */\n var element = parseFromDocument(html, BODY).querySelector(BODY);\n return (_f = element === null || element === void 0 ? void 0 : element.childNodes) !== null && _f !== void 0 ? _f : createNodeList();\n /* istanbul ignore stop */\n }\n }\n}\n//# sourceMappingURL=domparser.js.map","\"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.default = HTMLDOMParser;\nvar domparser_1 = __importDefault(require(\"./domparser\"));\nvar utilities_1 = require(\"./utilities\");\nvar DIRECTIVE_REGEX = /<(![a-zA-Z\\s]+)>/; // e.g., <!doctype html>\n/**\n * Parses HTML string to DOM nodes in browser.\n *\n * @param html - HTML markup.\n * @returns - DOM elements.\n */\nfunction HTMLDOMParser(html) {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n if (!html) {\n return [];\n }\n // match directive\n var match = DIRECTIVE_REGEX.exec(html);\n var directive = match ? match[1] : undefined;\n return (0, utilities_1.formatDOM)((0, domparser_1.default)(html), null, directive);\n}\n//# sourceMappingURL=html-to-dom.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.formatAttributes = formatAttributes;\nexports.hasOpenTag = hasOpenTag;\nexports.escapeSpecialCharacters = escapeSpecialCharacters;\nexports.revertEscapedCharacters = revertEscapedCharacters;\nexports.formatDOM = formatDOM;\nvar domhandler_1 = require(\"domhandler\");\nvar constants_1 = require(\"./constants\");\n/**\n * Gets case-sensitive tag name.\n *\n * @param tagName - Tag name in lowercase.\n * @returns - Case-sensitive tag name.\n */\nfunction getCaseSensitiveTagName(tagName) {\n return constants_1.CASE_SENSITIVE_TAG_NAMES_MAP[tagName];\n}\n/**\n * Formats DOM attributes to a hash map.\n *\n * @param attributes - List of attributes.\n * @returns - Map of attribute name to value.\n */\nfunction formatAttributes(attributes) {\n var map = {};\n var index = 0;\n var attributesLength = attributes.length;\n // `NamedNodeMap` is array-like\n for (; index < attributesLength; index++) {\n var attribute = attributes[index];\n map[attribute.name] = attribute.value;\n }\n return map;\n}\n/**\n * Corrects the tag name if it is case-sensitive (SVG).\n * Otherwise, returns the lowercase tag name (HTML).\n *\n * @param tagName - Lowercase tag name.\n * @returns - Formatted tag name.\n */\nfunction formatTagName(tagName) {\n tagName = tagName.toLowerCase();\n var caseSensitiveTagName = getCaseSensitiveTagName(tagName);\n if (caseSensitiveTagName) {\n return caseSensitiveTagName;\n }\n return tagName;\n}\n/**\n * Checks if an HTML string contains an opening tag (case-insensitive).\n *\n * @param html - HTML string.\n * @param tagName - Tag name to search for (e.g., 'head' or 'body').\n * @returns - Whether the tag is found.\n */\nfunction hasOpenTag(html, tagName) {\n var openTag = '<' + tagName;\n var index = html.toLowerCase().indexOf(openTag);\n if (index === -1) {\n return false;\n }\n var char = html[index + openTag.length];\n // the character after the tag name must be '>' or whitespace (for attributes)\n return (char === '>' ||\n char === ' ' ||\n char === '\\t' ||\n char === '\\n' ||\n char === '\\r' ||\n char === '/');\n}\n/**\n * Escapes special characters before parsing.\n *\n * @param html - The HTML string.\n * @returns - HTML string with escaped special characters.\n */\nfunction escapeSpecialCharacters(html) {\n return html.replace(constants_1.CARRIAGE_RETURN_REGEX, constants_1.CARRIAGE_RETURN_PLACEHOLDER);\n}\n/**\n * Reverts escaped special characters back to actual characters.\n *\n * @param text - The text with escaped characters.\n * @returns - Text with escaped characters reverted.\n */\nfunction revertEscapedCharacters(text) {\n return text.replace(constants_1.CARRIAGE_RETURN_PLACEHOLDER_REGEX, constants_1.CARRIAGE_RETURN);\n}\n/**\n * Transforms DOM nodes to `domhandler` nodes.\n *\n * @param nodes - DOM nodes.\n * @param parent - Parent node.\n * @param directive - Directive.\n * @returns - Nodes.\n */\nfunction formatDOM(nodes, parent, directive) {\n var _a, _b, _c, _d;\n if (parent === void 0) { parent = null; }\n var domNodes = [];\n var current;\n var index = 0;\n var nodesLength = nodes.length;\n for (; index < nodesLength; index++) {\n var node = nodes[index];\n // set the node data given the type\n switch (node.nodeType) {\n case 1: {\n var tagName = formatTagName(node.nodeName);\n // script, style, or tag\n current = new domhandler_1.Element(tagName, formatAttributes(node.attributes));\n current.children = formatDOM(\n // template children are on content\n tagName === 'template'\n ? node.content.childNodes\n : node.childNodes, current);\n break;\n }\n case 3:\n current = new domhandler_1.Text(revertEscapedCharacters((_a = node.nodeValue) !== null && _a !== void 0 ? _a : ''));\n break;\n case 8:\n current = new domhandler_1.Comment((_b = node.nodeValue) !== null && _b !== void 0 ? _b : '');\n break;\n default:\n continue;\n }\n // set previous node next\n var prev = (_c = domNodes[index - 1]) !== null && _c !== void 0 ? _c : null;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (prev) {\n prev.next = current;\n }\n // set properties for current node\n current.parent = parent;\n current.prev = prev;\n current.next = null;\n domNodes.push(current);\n }\n if (directive) {\n current = new domhandler_1.ProcessingInstruction(directive.substring(0, directive.indexOf(' ')).toLowerCase(), directive);\n current.next = (_d = domNodes[0]) !== null && _d !== void 0 ? _d : null;\n current.parent = parent;\n domNodes.unshift(current);\n if (domNodes[1]) {\n domNodes[1].prev = domNodes[0];\n }\n }\n return domNodes;\n}\n//# sourceMappingURL=utilities.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = attributesToProps;\nvar react_property_1 = require(\"react-property\");\nvar utilities_1 = require(\"./utilities\");\n// https://react.dev/learn/sharing-state-between-components#controlled-and-uncontrolled-components\n// https://developer.mozilla.org/docs/Web/HTML/Attributes\nvar UNCONTROLLED_COMPONENT_ATTRIBUTES = ['checked', 'value'];\nvar UNCONTROLLED_COMPONENT_NAMES = ['input', 'select', 'textarea'];\nvar valueOnlyInputs = {\n reset: true,\n submit: true,\n};\n/**\n * Converts HTML/SVG DOM attributes to React props.\n *\n * @param attributes - HTML/SVG DOM attributes.\n * @param nodeName - DOM node name.\n * @returns - React props.\n */\nfunction attributesToProps(attributes, nodeName) {\n if (attributes === void 0) { attributes = {}; }\n var props = {};\n var isInputValueOnly = Boolean(attributes.type && valueOnlyInputs[attributes.type]);\n for (var attributeName in attributes) {\n var attributeValue = attributes[attributeName];\n // ARIA (aria-*) or custom data (data-*) attribute\n if ((0, react_property_1.isCustomAttribute)(attributeName)) {\n props[attributeName] = attributeValue;\n continue;\n }\n // convert HTML/SVG attribute to React prop\n var attributeNameLowerCased = attributeName.toLowerCase();\n var propName = getPropName(attributeNameLowerCased);\n if (propName) {\n var propertyInfo = (0, react_property_1.getPropertyInfo)(propName);\n // convert attribute to uncontrolled component prop (e.g., `value` to `defaultValue`)\n if (UNCONTROLLED_COMPONENT_ATTRIBUTES.includes(propName) &&\n UNCONTROLLED_COMPONENT_NAMES.includes(nodeName) &&\n !isInputValueOnly) {\n propName = getPropName('default' + attributeNameLowerCased);\n }\n props[propName] = attributeValue;\n switch (propertyInfo === null || propertyInfo === void 0 ? void 0 : propertyInfo.type) {\n case react_property_1.BOOLEAN:\n props[propName] = true;\n break;\n case react_property_1.OVERLOADED_BOOLEAN:\n if (attributeValue === '') {\n props[propName] = true;\n }\n break;\n }\n continue;\n }\n // preserve custom attribute if React >=16\n if (utilities_1.PRESERVE_CUSTOM_ATTRIBUTES) {\n props[attributeName] = attributeValue;\n }\n }\n // transform inline style to object\n (0, utilities_1.setStyleProp)(attributes.style, props);\n return props;\n}\n/**\n * Gets prop name from lowercased attribute name.\n *\n * @param attributeName - Lowercased attribute name.\n * @returns - Prop name.\n */\nfunction getPropName(attributeName) {\n return react_property_1.possibleStandardNames[attributeName];\n}\n//# sourceMappingURL=attributes-to-props.js.map","\"use strict\";\n/* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = domToReact;\nvar react_1 = require(\"react\");\nvar attributes_to_props_1 = __importDefault(require(\"./attributes-to-props\"));\nvar utilities_1 = require(\"./utilities\");\nvar React = {\n cloneElement: react_1.cloneElement,\n createElement: react_1.createElement,\n isValidElement: react_1.isValidElement,\n};\n/**\n * Converts DOM nodes to JSX element(s).\n *\n * @param nodes - DOM nodes.\n * @param options - Options.\n * @returns - String or JSX element(s).\n */\nfunction domToReact(nodes, options) {\n var _a, _b, _c, _d, _e;\n if (options === void 0) { options = {}; }\n var reactElements = [];\n var hasReplace = typeof options.replace === 'function';\n var transform = (_a = options.transform) !== null && _a !== void 0 ? _a : utilities_1.returnFirstArg;\n var _f = (_b = options.library) !== null && _b !== void 0 ? _b : React, cloneElement = _f.cloneElement, createElement = _f.createElement, isValidElement = _f.isValidElement;\n var nodesLength = nodes.length;\n for (var index = 0; index < nodesLength; index++) {\n var node = nodes[index];\n // replace with custom React element (if present)\n if (hasReplace) {\n var replaceElement = (_c = options.replace) === null || _c === void 0 ? void 0 : _c.call(options, node, index);\n if (isValidElement(replaceElement)) {\n // set \"key\" prop for sibling elements\n // https://react.dev/learn/rendering-lists#rules-of-keys\n if (nodesLength > 1) {\n replaceElement = cloneElement(replaceElement, {\n key: (_d = replaceElement.key) !== null && _d !== void 0 ? _d : index,\n });\n }\n reactElements.push(transform(replaceElement, node, index));\n continue;\n }\n }\n if (node.type === 'text') {\n var isWhitespace = !node.data.trim().length;\n // We have a whitespace node that can't be nested in its parent\n // so skip it\n if (isWhitespace &&\n node.parent &&\n !(0, utilities_1.canTextBeChildOfNode)(node.parent)) {\n continue;\n }\n // Trim is enabled and we have a whitespace node\n // so skip it\n if (options.trim && isWhitespace) {\n continue;\n }\n // We have a text node that's not whitespace and it can be nested\n // in its parent so add it to the results\n reactElements.push(transform(node.data, node, index));\n continue;\n }\n var element = node;\n var props = {};\n if (skipAttributesToProps(element)) {\n (0, utilities_1.setStyleProp)(element.attribs.style, element.attribs);\n props = element.attribs;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n }\n else if (element.attribs) {\n props = (0, attributes_to_props_1.default)(element.attribs, element.name);\n }\n var children = void 0;\n switch (node.type) {\n case 'script':\n case 'style':\n // prevent text in <script> or <style> from being escaped\n // https://react.dev/reference/react-dom/components/common#dangerously-setting-the-inner-html\n if (node.children[0]) {\n props.dangerouslySetInnerHTML = {\n __html: node.children[0].data,\n };\n }\n break;\n case 'tag':\n // setting textarea value in children is an antipattern in React\n // https://react.dev/reference/react-dom/components/textarea#caveats\n if (node.name === 'textarea' && node.children[0]) {\n props.defaultValue = node.children[0].data;\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n }\n else if ((_e = node.children) === null || _e === void 0 ? void 0 : _e.length) {\n // continue recursion of creating React elements (if applicable)\n children = domToReact(node.children, options);\n }\n break;\n // skip all other cases (e.g., comment)\n default:\n continue;\n }\n // set \"key\" prop for sibling elements\n // https://react.dev/learn/rendering-lists#rules-of-keys\n if (nodesLength > 1) {\n props.key = index;\n }\n reactElements.push(transform(createElement(node.name, props, children), node, index));\n }\n return reactElements.length === 1 ? reactElements[0] : reactElements;\n}\n/**\n * Determines whether DOM element attributes should be transformed to props.\n * Web Components should not have their attributes transformed except for `style`.\n *\n * @param node - Element node.\n * @returns - Whether the node attributes should be converted to props.\n */\nfunction skipAttributesToProps(node) {\n return (utilities_1.PRESERVE_CUSTOM_ATTRIBUTES &&\n node.type === 'tag' &&\n (0, utilities_1.isCustomComponent)(node.name, node.attribs));\n}\n//# sourceMappingURL=dom-to-react.js.map","\"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 var _a;\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, (_a = options === null || options === void 0 ? void 0 : options.htmlparser2) !== null && _a !== void 0 ? _a : domParserOptions), options);\n}\n//# sourceMappingURL=index.js.map","\"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; };\nexports.returnFirstArg = returnFirstArg;\n//# sourceMappingURL=utilities.js.map","'use strict';\n\n// http://www.w3.org/TR/CSS21/grammar.html\n// https://github.com/visionmedia/css-parse/pull/49#issuecomment-30088027\nvar COMMENT_REGEX = /\\/\\*[^*]*\\*+([^/*][^*]*\\*+)*\\//g;\n\nvar NEWLINE_REGEX = /\\n/g;\nvar WHITESPACE_REGEX = /^\\s*/;\n\n// declaration\nvar PROPERTY_REGEX = /^(\\*?[-#/*\\\\\\w]+(\\[[0-9a-z_-]+\\])?)\\s*/;\nvar COLON_REGEX = /^:\\s*/;\nvar VALUE_REGEX = /^((?:'(?:\\\\'|.)*?'|\"(?:\\\\\"|.)*?\"|\\([^)]*?\\)|[^};])+)/;\nvar SEMICOLON_REGEX = /^[;\\s]*/;\n\n// https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String/Trim#Polyfill\nvar TRIM_REGEX = /^\\s+|\\s+$/g;\n\n// strings\nvar NEWLINE = '\\n';\nvar FORWARD_SLASH = '/';\nvar ASTERISK = '*';\nvar EMPTY_STRING = '';\n\n// types\nvar TYPE_COMMENT = 'comment';\nvar TYPE_DECLARATION = 'declaration';\n\n/**\n * @param {String} style\n * @param {Object} [options]\n * @return {Object[]}\n * @throws {TypeError}\n * @throws {Error}\n */\nfunction index (style, options) {\n if (typeof style !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n\n if (!style) return [];\n\n options = options || {};\n\n /**\n * Positional.\n */\n var lineno = 1;\n var column = 1;\n\n /**\n * Update lineno and column based on `str`.\n *\n * @param {String} str\n */\n function updatePosition(str) {\n var lines = str.match(NEWLINE_REGEX);\n if (lines) lineno += lines.length;\n var i = str.lastIndexOf(NEWLINE);\n column = ~i ? str.length - i : column + str.length;\n }\n\n /**\n * Mark position and patch `node.position`.\n *\n * @return {Function}\n */\n function position() {\n var start = { line: lineno, column: column };\n return function (node) {\n node.position = new Position(start);\n whitespace();\n return node;\n };\n }\n\n /**\n * Store position information for a node.\n *\n * @constructor\n * @property {Object} start\n * @property {Object} end\n * @property {undefined|String} source\n */\n function Position(start) {\n this.start = start;\n this.end = { line: lineno, column: column };\n this.source = options.source;\n }\n\n /**\n * Non-enumerable source string.\n */\n Position.prototype.content = style;\n\n /**\n * Error `msg`.\n *\n * @param {String} msg\n * @throws {Error}\n */\n function error(msg) {\n var err = new Error(\n options.source + ':' + lineno + ':' + column + ': ' + msg\n );\n err.reason = msg;\n err.filename = options.source;\n err.line = lineno;\n err.column = column;\n err.source = style;\n\n if (options.silent) ; else {\n throw err;\n }\n }\n\n /**\n * Match `re` and return captures.\n *\n * @param {RegExp} re\n * @return {undefined|Array}\n */\n function match(re) {\n var m = re.exec(style);\n if (!m) return;\n var str = m[0];\n updatePosition(str);\n style = style.slice(str.length);\n return m;\n }\n\n /**\n * Parse whitespace.\n */\n function whitespace() {\n match(WHITESPACE_REGEX);\n }\n\n /**\n * Parse comments.\n *\n * @param {Object[]} [rules]\n * @return {Object[]}\n */\n function comments(rules) {\n var c;\n rules = rules || [];\n while ((c = comment())) {\n if (c !== false) {\n rules.push(c);\n }\n }\n return rules;\n }\n\n /**\n * Parse comment.\n *\n * @return {Object}\n * @throws {Error}\n */\n function comment() {\n var pos = position();\n if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;\n\n var i = 2;\n while (\n EMPTY_STRING != style.charAt(i) &&\n (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))\n ) {\n ++i;\n }\n i += 2;\n\n if (EMPTY_STRING === style.charAt(i - 1)) {\n return error('End of comment missing');\n }\n\n var str = style.slice(2, i - 2);\n column += 2;\n updatePosition(str);\n style = style.slice(i);\n column += 2;\n\n return pos({\n type: TYPE_COMMENT,\n comment: str\n });\n }\n\n /**\n * Parse declaration.\n *\n * @return {Object}\n * @throws {Error}\n */\n function declaration() {\n var pos = position();\n\n // prop\n var prop = match(PROPERTY_REGEX);\n if (!prop) return;\n comment();\n\n // :\n if (!match(COLON_REGEX)) return error(\"property missing ':'\");\n\n // val\n var val = match(VALUE_REGEX);\n\n var ret = pos({\n type: TYPE_DECLARATION,\n property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),\n value: val\n ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING))\n : EMPTY_STRING\n });\n\n // ;\n match(SEMICOLON_REGEX);\n\n return ret;\n }\n\n /**\n * Parse declarations.\n *\n * @return {Object[]}\n */\n function declarations() {\n var decls = [];\n\n comments(decls);\n\n // declarations\n var decl;\n while ((decl = declaration())) {\n if (decl !== false) {\n decls.push(decl);\n comments(decls);\n }\n }\n\n return decls;\n }\n\n whitespace();\n return declarations();\n}\n\n/**\n * Trim `str`.\n *\n * @param {String} str\n * @return {String}\n */\nfunction trim(str) {\n return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;\n}\n\nmodule.exports = index;\n//# sourceMappingURL=index.js.map\n","'use strict';\n\n/**\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\n\n\n\n\n// A reserved attribute.\n// It is handled by React separately and shouldn't be written to the DOM.\nconst RESERVED = 0;\n\n// A simple string attribute.\n// Attributes that aren't in the filter are presumed to have this type.\nconst STRING = 1;\n\n// A string attribute that accepts booleans in React. In HTML, these are called\n// \"enumerated\" attributes with \"true\" and \"false\" as possible values.\n// When true, it should be set to a \"true\" string.\n// When false, it should be set to a \"false\" string.\nconst BOOLEANISH_STRING = 2;\n\n// A real boolean attribute.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\nconst BOOLEAN = 3;\n\n// An attribute that can be used as a flag as well as with a value.\n// When true, it should be present (set either to an empty string or its name).\n// When false, it should be omitted.\n// For any other value, should be present with that value.\nconst OVERLOADED_BOOLEAN = 4;\n\n// An attribute that must be numeric or parse as a numeric.\n// When falsy, it should be removed.\nconst NUMERIC = 5;\n\n// An attribute that must be positive numeric or parse as a positive numeric.\n// When falsy, it should be removed.\nconst POSITIVE_NUMERIC = 6;\n\nfunction getPropertyInfo(name) {\n return properties.hasOwnProperty(name) ? properties[name] : null;\n}\n\nfunction PropertyInfoRecord(\n name,\n type,\n mustUseProperty,\n attributeName,\n attributeNamespace,\n sanitizeURL,\n removeEmptyString,\n) {\n this.acceptsBooleans =\n type === BOOLEANISH_STRING ||\n type === BOOLEAN ||\n type === OVERLOADED_BOOLEAN;\n this.attributeName = attributeName;\n this.attributeNamespace = attributeNamespace;\n this.mustUseProperty = mustUseProperty;\n this.propertyName = name;\n this.type = type;\n this.sanitizeURL = sanitizeURL;\n this.removeEmptyString = removeEmptyString;\n}\n\n// When adding attributes to this list, be sure to also add them to\n// the `possibleStandardNames` module to ensure casing and incorrect\n// name warnings.\nconst properties = {};\n\n// These props are reserved by React. They shouldn't be written to the DOM.\nconst reservedProps = [\n 'children',\n 'dangerouslySetInnerHTML',\n // TODO: This prevents the assignment of defaultValue to regular\n // elements (not just inputs). Now that ReactDOMInput assigns to the\n // defaultValue property -- do we need this?\n 'defaultValue',\n 'defaultChecked',\n 'innerHTML',\n 'suppressContentEditableWarning',\n 'suppressHydrationWarning',\n 'style',\n];\n\nreservedProps.forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n RESERVED,\n false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// A few React string attributes have a different name.\n// This is a mapping from React prop names to the attribute names.\n[\n ['acceptCharset', 'accept-charset'],\n ['className', 'class'],\n ['htmlFor', 'for'],\n ['httpEquiv', 'http-equiv'],\n].forEach(([name, attributeName]) => {\n properties[name] = new PropertyInfoRecord(\n name,\n STRING,\n false, // mustUseProperty\n attributeName, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are \"enumerated\" HTML attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n['contentEditable', 'draggable', 'spellCheck', 'value'].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n BOOLEANISH_STRING,\n false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are \"enumerated\" SVG attributes that accept \"true\" and \"false\".\n// In React, we let users pass `true` and `false` even though technically\n// these aren't boolean attributes (they are coerced to strings).\n// Since these are SVG attributes, their attribute names are case-sensitive.\n[\n 'autoReverse',\n 'externalResourcesRequired',\n 'focusable',\n 'preserveAlpha',\n].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n BOOLEANISH_STRING,\n false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are HTML boolean attributes.\n[\n 'allowFullScreen',\n 'async',\n // Note: there is a special case that prevents it from being written to the DOM\n // on the client side because the browsers are inconsistent. Instead we call focus().\n 'autoFocus',\n 'autoPlay',\n 'controls',\n 'default',\n 'defer',\n 'disabled',\n 'disablePictureInPicture',\n 'disableRemotePlayback',\n 'formNoValidate',\n 'hidden',\n 'loop',\n 'noModule',\n 'noValidate',\n 'open',\n 'playsInline',\n 'readOnly',\n 'required',\n 'reversed',\n 'scoped',\n 'seamless',\n // Microdata\n 'itemScope',\n].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n BOOLEAN,\n false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are the few React props that we set as DOM properties\n// rather than attributes. These are all booleans.\n[\n 'checked',\n // Note: `option.selected` is not updated if `select.multiple` is\n // disabled with `removeAttribute`. We have special logic for handling this.\n 'multiple',\n 'muted',\n 'selected',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n BOOLEAN,\n true, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are HTML attributes that are \"overloaded booleans\": they behave like\n// booleans, but can also accept a string value.\n[\n 'capture',\n 'download',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n OVERLOADED_BOOLEAN,\n false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are HTML attributes that must be positive numbers.\n[\n 'cols',\n 'rows',\n 'size',\n 'span',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n POSITIVE_NUMERIC,\n false, // mustUseProperty\n name, // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These are HTML attributes that must be numbers.\n['rowSpan', 'start'].forEach(name => {\n properties[name] = new PropertyInfoRecord(\n name,\n NUMERIC,\n false, // mustUseProperty\n name.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\nconst CAMELIZE = /[\\-\\:]([a-z])/g;\nconst capitalize = token => token[1].toUpperCase();\n\n// This is a list of all SVG attributes that need special casing, namespacing,\n// or boolean value assignment. Regular attributes that just accept strings\n// and have the same names are omitted, just like in the HTML attribute filter.\n// Some of these attributes can be hard to find. This list was created by\n// scraping the MDN documentation.\n[\n 'accent-height',\n 'alignment-baseline',\n 'arabic-form',\n 'baseline-shift',\n 'cap-height',\n 'clip-path',\n 'clip-rule',\n 'color-interpolation',\n 'color-interpolation-filters',\n 'color-profile',\n 'color-rendering',\n 'dominant-baseline',\n 'enable-background',\n 'fill-opacity',\n 'fill-rule',\n 'flood-color',\n 'flood-opacity',\n 'font-family',\n 'font-size',\n 'font-size-adjust',\n 'font-stretch',\n 'font-style',\n 'font-variant',\n 'font-weight',\n 'glyph-name',\n 'glyph-orientation-horizontal',\n 'glyph-orientation-vertical',\n 'horiz-adv-x',\n 'horiz-origin-x',\n 'image-rendering',\n 'letter-spacing',\n 'lighting-color',\n 'marker-end',\n 'marker-mid',\n 'marker-start',\n 'overline-position',\n 'overline-thickness',\n 'paint-order',\n 'panose-1',\n 'pointer-events',\n 'rendering-intent',\n 'shape-rendering',\n 'stop-color',\n 'stop-opacity',\n 'strikethrough-position',\n 'strikethrough-thickness',\n 'stroke-dasharray',\n 'stroke-dashoffset',\n 'stroke-linecap',\n 'stroke-linejoin',\n 'stroke-miterlimit',\n 'stroke-opacity',\n 'stroke-width',\n 'text-anchor',\n 'text-decoration',\n 'text-rendering',\n 'underline-position',\n 'underline-thickness',\n 'unicode-bidi',\n 'unicode-range',\n 'units-per-em',\n 'v-alphabetic',\n 'v-hanging',\n 'v-ideographic',\n 'v-mathematical',\n 'vector-effect',\n 'vert-adv-y',\n 'vert-origin-x',\n 'vert-origin-y',\n 'word-spacing',\n 'writing-mode',\n 'xmlns:xlink',\n 'x-height',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(attributeName => {\n const name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(\n name,\n STRING,\n false, // mustUseProperty\n attributeName,\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// String SVG attributes with the xlink namespace.\n[\n 'xlink:actuate',\n 'xlink:arcrole',\n 'xlink:role',\n 'xlink:show',\n 'xlink:title',\n 'xlink:type',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(attributeName => {\n const name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(\n name,\n STRING,\n false, // mustUseProperty\n attributeName,\n 'http://www.w3.org/1999/xlink',\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// String SVG attributes with the xml namespace.\n[\n 'xml:base',\n 'xml:lang',\n 'xml:space',\n\n // NOTE: if you add a camelCased prop to this list,\n // you'll need to set attributeName to name.toLowerCase()\n // instead in the assignment below.\n].forEach(attributeName => {\n const name = attributeName.replace(CAMELIZE, capitalize);\n properties[name] = new PropertyInfoRecord(\n name,\n STRING,\n false, // mustUseProperty\n attributeName,\n 'http://www.w3.org/XML/1998/namespace',\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These attribute exists both in HTML and SVG.\n// The attribute name is case-sensitive in SVG so we can't just use\n// the React name like we do for attributes that exist only in HTML.\n['tabIndex', 'crossOrigin'].forEach(attributeName => {\n properties[attributeName] = new PropertyInfoRecord(\n attributeName,\n STRING,\n false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n false, // sanitizeURL\n false, // removeEmptyString\n );\n});\n\n// These attributes accept URLs. These must not allow javascript: URLS.\n// These will also need to accept Trusted Types object in the future.\nconst xlinkHref = 'xlinkHref';\nproperties[xlinkHref] = new PropertyInfoRecord(\n 'xlinkHref',\n STRING,\n false, // mustUseProperty\n 'xlink:href',\n 'http://www.w3.org/1999/xlink',\n true, // sanitizeURL\n false, // removeEmptyString\n);\n\n['src', 'href', 'action', 'formAction'].forEach(attributeName => {\n properties[attributeName] = new PropertyInfoRecord(\n attributeName,\n STRING,\n false, // mustUseProperty\n attributeName.toLowerCase(), // attributeName\n null, // attributeNamespace\n true, // sanitizeURL\n true, // removeEmptyString\n );\n});\n\n// \nconst {\n CAMELCASE,\n SAME,\n possibleStandardNames: possibleStandardNamesOptimized\n} = require('../lib/possibleStandardNamesOptimized');\n\nconst ATTRIBUTE_NAME_START_CHAR =\n ':A-Z_a-z\\\\u00C0-\\\\u00D6\\\\u00D8-\\\\u00F6\\\\u00F8-\\\\u02FF\\\\u0370-\\\\u037D\\\\u037F-\\\\u1FFF\\\\u200C-\\\\u200D\\\\u2070-\\\\u218F\\\\u2C00-\\\\u2FEF\\\\u3001-\\\\uD7FF\\\\uF900-\\\\uFDCF\\\\uFDF0-\\\\uFFFD';\n\nconst ATTRIBUTE_NAME_CHAR =\n ATTRIBUTE_NAME_START_CHAR + '\\\\-.0-9\\\\u00B7\\\\u0300-\\\\u036F\\\\u203F-\\\\u2040';\n\n/**\n * Checks whether a property name is a custom attribute.\n *\n * @see https://github.com/facebook/react/blob/15-stable/src/renderers/dom/shared/HTMLDOMPropertyConfig.js#L23-L25\n *\n * @type {(attribute: string) => boolean}\n */\nconst isCustomAttribute =\n RegExp.prototype.test.bind(\n // eslint-disable-next-line no-misleading-character-class\n new RegExp('^(data|aria)-[' + ATTRIBUTE_NAME_CHAR + ']*$')\n );\n\n/**\n * @type {Record<string, string>}\n */\nconst possibleStandardNames = Object.keys(\n possibleStandardNamesOptimized\n).reduce((accumulator, standardName) => {\n const propName = possibleStandardNamesOptimized[standardName];\n if (propName === SAME) {\n accumulator[standardName] = standardName;\n } else if (propName === CAMELCASE) {\n accumulator[standardName.toLowerCase()] = standardName;\n } else {\n accumulator[standardName] = propName;\n }\n return accumulator;\n}, {});\n\nexports.BOOLEAN = BOOLEAN;\nexports.BOOLEANISH_STRING = BOOLEANISH_STRING;\nexports.NUMERIC = NUMERIC;\nexports.OVERLOADED_BOOLEAN = OVERLOADED_BOOLEAN;\nexports.POSITIVE_NUMERIC = POSITIVE_NUMERIC;\nexports.RESERVED = RESERVED;\nexports.STRING = STRING;\nexports.getPropertyInfo = getPropertyInfo;\nexports.isCustomAttribute = isCustomAttribute;\nexports.possibleStandardNames = possibleStandardNames;\n","// An attribute in which the DOM/SVG standard name is the same as the React prop name (e.g., 'accept').\nvar SAME = 0;\nexports.SAME = SAME;\n\n// An attribute in which the React prop name is the camelcased version of the DOM/SVG standard name (e.g., 'acceptCharset').\nvar CAMELCASE = 1;\nexports.CAMELCASE = CAMELCASE;\n\nexports.possibleStandardNames = {\n accept: 0,\n acceptCharset: 1,\n 'accept-charset': 'acceptCharset',\n accessKey: 1,\n action: 0,\n allowFullScreen: 1,\n alt: 0,\n as: 0,\n async: 0,\n autoCapitalize: 1,\n autoComplete: 1,\n autoCorrect: 1,\n autoFocus: 1,\n autoPlay: 1,\n autoSave: 1,\n capture: 0,\n cellPadding: 1,\n cellSpacing: 1,\n challenge: 0,\n charSet: 1,\n checked: 0,\n children: 0,\n cite: 0,\n class: 'className',\n classID: 1,\n className: 1,\n cols: 0,\n colSpan: 1,\n content: 0,\n contentEditable: 1,\n contextMenu: 1,\n controls: 0,\n controlsList: 1,\n coords: 0,\n crossOrigin: 1,\n dangerouslySetInnerHTML: 1,\n data: 0,\n dateTime: 1,\n default: 0,\n defaultChecked: 1,\n defaultValue: 1,\n defer: 0,\n dir: 0,\n disabled: 0,\n disablePictureInPicture: 1,\n disableRemotePlayback: 1,\n download: 0,\n draggable: 0,\n encType: 1,\n enterKeyHint: 1,\n for: 'htmlFor',\n form: 0,\n formMethod: 1,\n formAction: 1,\n formEncType: 1,\n formNoValidate: 1,\n formTarget: 1,\n frameBorder: 1,\n headers: 0,\n height: 0,\n hidden: 0,\n high: 0,\n href: 0,\n hrefLang: 1,\n htmlFor: 1,\n httpEquiv: 1,\n 'http-equiv': 'httpEquiv',\n icon: 0,\n id: 0,\n innerHTML: 1,\n inputMode: 1,\n integrity: 0,\n is: 0,\n itemID: 1,\n itemProp: 1,\n itemRef: 1,\n itemScope: 1,\n itemType: 1,\n keyParams: 1,\n keyType: 1,\n kind: 0,\n label: 0,\n lang: 0,\n list: 0,\n loop: 0,\n low: 0,\n manifest: 0,\n marginWidth: 1,\n marginHeight: 1,\n max: 0,\n maxLength: 1,\n media: 0,\n mediaGroup: 1,\n method: 0,\n min: 0,\n minLength: 1,\n multiple: 0,\n muted: 0,\n name: 0,\n noModule: 1,\n nonce: 0,\n noValidate: 1,\n open: 0,\n optimum: 0,\n pattern: 0,\n placeholder: 0,\n playsInline: 1,\n poster: 0,\n preload: 0,\n profile: 0,\n radioGroup: 1,\n readOnly: 1,\n referrerPolicy: 1,\n rel: 0,\n required: 0,\n reversed: 0,\n role: 0,\n rows: 0,\n rowSpan: 1,\n sandbox: 0,\n scope: 0,\n scoped: 0,\n scrolling: 0,\n seamless: 0,\n selected: 0,\n shape: 0,\n size: 0,\n sizes: 0,\n span: 0,\n spellCheck: 1,\n src: 0,\n srcDoc: 1,\n srcLang: 1,\n srcSet: 1,\n start: 0,\n step: 0,\n style: 0,\n summary: 0,\n tabIndex: 1,\n target: 0,\n title: 0,\n type: 0,\n useMap: 1,\n value: 0,\n width: 0,\n wmode: 0,\n wrap: 0,\n about: 0,\n accentHeight: 1,\n 'accent-height': 'accentHeight',\n accumulate: 0,\n additive: 0,\n alignmentBaseline: 1,\n 'alignment-baseline': 'alignmentBaseline',\n allowReorder: 1,\n alphabetic: 0,\n amplitude: 0,\n arabicForm: 1,\n 'arabic-form': 'arabicForm',\n ascent: 0,\n attributeName: 1,\n attributeType: 1,\n autoReverse: 1,\n azimuth: 0,\n baseFrequency: 1,\n baselineShift: 1,\n 'baseline-shift': 'baselineShift',\n baseProfile: 1,\n bbox: 0,\n begin: 0,\n bias: 0,\n by: 0,\n calcMode: 1,\n capHeight: 1,\n 'cap-height': 'capHeight',\n clip: 0,\n clipPath: 1,\n 'clip-path': 'clipPath',\n clipPathUnits: 1,\n clipRule: 1,\n 'clip-rule': 'clipRule',\n color: 0,\n colorInterpolation: 1,\n 'color-interpolation': 'colorInterpolation',\n colorInterpolationFilters: 1,\n 'color-interpolation-filters': 'colorInterpolationFilters',\n colorProfile: 1,\n 'color-profile': 'colorProfile',\n colorRendering: 1,\n 'color-rendering': 'colorRendering',\n contentScriptType: 1,\n contentStyleType: 1,\n cursor: 0,\n cx: 0,\n cy: 0,\n d: 0,\n datatype: 0,\n decelerate: 0,\n descent: 0,\n diffuseConstant: 1,\n direction: 0,\n display: 0,\n divisor: 0,\n dominantBaseline: 1,\n 'dominant-baseline': 'dominantBaseline',\n dur: 0,\n dx: 0,\n dy: 0,\n edgeMode: 1,\n elevation: 0,\n enableBackground: 1,\n 'enable-background': 'enableBackground',\n end: 0,\n exponent: 0,\n externalResourcesRequired: 1,\n fill: 0,\n fillOpacity: 1,\n 'fill-opacity': 'fillOpacity',\n fillRule: 1,\n 'fill-rule': 'fillRule',\n filter: 0,\n filterRes: 1,\n filterUnits: 1,\n floodOpacity: 1,\n 'flood-opacity': 'floodOpacity',\n floodColor: 1,\n 'flood-color': 'floodColor',\n focusable: 0,\n fontFamily: 1,\n 'font-family': 'fontFamily',\n fontSize: 1,\n 'font-size': 'fontSize',\n fontSizeAdjust: 1,\n 'font-size-adjust': 'fontSizeAdjust',\n fontStretch: 1,\n 'font-stretch': 'fontStretch',\n fontStyle: 1,\n 'font-style': 'fontStyle',\n fontVariant: 1,\n 'font-variant': 'fontVariant',\n fontWeight: 1,\n 'font-weight': 'fontWeight',\n format: 0,\n from: 0,\n fx: 0,\n fy: 0,\n g1: 0,\n g2: 0,\n glyphName: 1,\n 'glyph-name': 'glyphName',\n glyphOrientationHorizontal: 1,\n 'glyph-orientation-horizontal': 'glyphOrientationHorizontal',\n glyphOrientationVertical: 1,\n 'glyph-orientation-vertical': 'glyphOrientationVertical',\n glyphRef: 1,\n gradientTransform: 1,\n gradientUnits: 1,\n hanging: 0,\n horizAdvX: 1,\n 'horiz-adv-x': 'horizAdvX',\n horizOriginX: 1,\n 'horiz-origin-x': 'horizOriginX',\n ideographic: 0,\n imageRendering: 1,\n 'image-rendering': 'imageRendering',\n in2: 0,\n in: 0,\n inlist: 0,\n intercept: 0,\n k1: 0,\n k2: 0,\n k3: 0,\n k4: 0,\n k: 0,\n kernelMatrix: 1,\n kernelUnitLength: 1,\n kerning: 0,\n keyPoints: 1,\n keySplines: 1,\n keyTimes: 1,\n lengthAdjust: 1,\n letterSpacing: 1,\n 'letter-spacing': 'letterSpacing',\n lightingColor: 1,\n 'lighting-color': 'lightingColor',\n limitingConeAngle: 1,\n local: 0,\n markerEnd: 1,\n 'marker-end': 'markerEnd',\n markerHeight: 1,\n markerMid: 1,\n 'marker-mid': 'markerMid',\n markerStart: 1,\n 'marker-start': 'markerStart',\n markerUnits: 1,\n markerWidth: 1,\n mask: 0,\n maskContentUnits: 1,\n maskUnits: 1,\n mathematical: 0,\n mode: 0,\n numOctaves: 1,\n offset: 0,\n opacity: 0,\n operator: 0,\n order: 0,\n orient: 0,\n orientation: 0,\n origin: 0,\n overflow: 0,\n overlinePosition: 1,\n 'overline-position': 'overlinePosition',\n overlineThickness: 1,\n 'overline-thickness': 'overlineThickness',\n paintOrder: 1,\n 'paint-order': 'paintOrder',\n panose1: 0,\n 'panose-1': 'panose1',\n pathLength: 1,\n patternContentUnits: 1,\n patternTransform: 1,\n patternUnits: 1,\n pointerEvents: 1,\n 'pointer-events': 'pointerEvents',\n points: 0,\n pointsAtX: 1,\n pointsAtY: 1,\n pointsAtZ: 1,\n prefix: 0,\n preserveAlpha: 1,\n preserveAspectRatio: 1,\n primitiveUnits: 1,\n property: 0,\n r: 0,\n radius: 0,\n refX: 1,\n refY: 1,\n renderingIntent: 1,\n 'rendering-intent': 'renderingIntent',\n repeatCount: 1,\n repeatDur: 1,\n requiredExtensions: 1,\n requiredFeatures: 1,\n resource: 0,\n restart: 0,\n result: 0,\n results: 0,\n rotate: 0,\n rx: 0,\n ry: 0,\n scale: 0,\n security: 0,\n seed: 0,\n shapeRendering: 1,\n 'shape-rendering': 'shapeRendering',\n slope: 0,\n spacing: 0,\n specularConstant: 1,\n specularExponent: 1,\n speed: 0,\n spreadMethod: 1,\n startOffset: 1,\n stdDeviation: 1,\n stemh: 0,\n stemv: 0,\n stitchTiles: 1,\n stopColor: 1,\n 'stop-color': 'stopColor',\n stopOpacity: 1,\n 'stop-opacity': 'stopOpacity',\n strikethroughPosition: 1,\n 'strikethrough-position': 'strikethroughPosition',\n strikethroughThickness: 1,\n 'strikethrough-thickness': 'strikethroughThickness',\n string: 0,\n stroke: 0,\n strokeDasharray: 1,\n 'stroke-dasharray': 'strokeDasharray',\n strokeDashoffset: 1,\n 'stroke-dashoffset': 'strokeDashoffset',\n strokeLinecap: 1,\n 'stroke-linecap': 'strokeLinecap',\n strokeLinejoin: 1,\n 'stroke-linejoin': 'strokeLinejoin',\n strokeMiterlimit: 1,\n 'stroke-miterlimit': 'strokeMiterlimit',\n strokeWidth: 1,\n 'stroke-width': 'strokeWidth',\n strokeOpacity: 1,\n 'stroke-opacity': 'strokeOpacity',\n suppressContentEditableWarning: 1,\n suppressHydrationWarning: 1,\n surfaceScale: 1,\n systemLanguage: 1,\n tableValues: 1,\n targetX: 1,\n targetY: 1,\n textAnchor: 1,\n 'text-anchor': 'textAnchor',\n textDecoration: 1,\n 'text-decoration': 'textDecoration',\n textLength: 1,\n textRendering: 1,\n 'text-rendering': 'textRendering',\n to: 0,\n transform: 0,\n typeof: 0,\n u1: 0,\n u2: 0,\n underlinePosition: 1,\n 'underline-position': 'underlinePosition',\n underlineThickness: 1,\n 'underline-thickness': 'underlineThickness',\n unicode: 0,\n unicodeBidi: 1,\n 'unicode-bidi': 'unicodeBidi',\n unicodeRange: 1,\n 'unicode-range': 'unicodeRange',\n unitsPerEm: 1,\n 'units-per-em': 'unitsPerEm',\n unselectable: 0,\n vAlphabetic: 1,\n 'v-alphabetic': 'vAlphabetic',\n values: 0,\n vectorEffect: 1,\n 'vector-effect': 'vectorEffect',\n version: 0,\n vertAdvY: 1,\n 'vert-adv-y': 'vertAdvY',\n vertOriginX: 1,\n 'vert-origin-x': 'vertOriginX',\n vertOriginY: 1,\n 'vert-origin-y': 'vertOriginY',\n vHanging: 1,\n 'v-hanging': 'vHanging',\n vIdeographic: 1,\n 'v-ideographic': 'vIdeographic',\n viewBox: 1,\n viewTarget: 1,\n visibility: 0,\n vMathematical: 1,\n 'v-mathematical': 'vMathematical',\n vocab: 0,\n widths: 0,\n wordSpacing: 1,\n 'word-spacing': 'wordSpacing',\n writingMode: 1,\n 'writing-mode': 'writingMode',\n x1: 0,\n x2: 0,\n x: 0,\n xChannelSelector: 1,\n xHeight: 1,\n 'x-height': 'xHeight',\n xlinkActuate: 1,\n 'xlink:actuate': 'xlinkActuate',\n xlinkArcrole: 1,\n 'xlink:arcrole': 'xlinkArcrole',\n xlinkHref: 1,\n 'xlink:href': 'xlinkHref',\n xlinkRole: 1,\n 'xlink:role': 'xlinkRole',\n xlinkShow: 1,\n 'xlink:show': 'xlinkShow',\n xlinkTitle: 1,\n 'xlink:title': 'xlinkTitle',\n xlinkType: 1,\n 'xlink:type': 'xlinkType',\n xmlBase: 1,\n 'xml:base': 'xmlBase',\n xmlLang: 1,\n 'xml:lang': 'xmlLang',\n xmlns: 0,\n 'xml:space': 'xmlSpace',\n xmlnsXlink: 1,\n 'xmlns:xlink': 'xmlnsXlink',\n xmlSpace: 1,\n y1: 0,\n y2: 0,\n y: 0,\n yChannelSelector: 1,\n z: 0,\n zoomAndPan: 1\n};\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar style_to_object_1 = __importDefault(require(\"style-to-object\"));\nvar utilities_1 = require(\"./utilities\");\n/**\n * Parses CSS inline style to JavaScript object (camelCased).\n */\nfunction StyleToJS(style, options) {\n var output = {};\n if (!style || typeof style !== 'string') {\n return output;\n }\n (0, style_to_object_1.default)(style, function (property, value) {\n // skip CSS comment\n if (property && value) {\n output[(0, utilities_1.camelCase)(property, options)] = value;\n }\n });\n return output;\n}\nStyleToJS.default = StyleToJS;\nmodule.exports = StyleToJS;\n//# sourceMappingURL=index.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.camelCase = void 0;\nvar CUSTOM_PROPERTY_REGEX = /^--[a-zA-Z0-9_-]+$/;\nvar HYPHEN_REGEX = /-([a-z])/g;\nvar NO_HYPHEN_REGEX = /^[^-]+$/;\nvar VENDOR_PREFIX_REGEX = /^-(webkit|moz|ms|o|khtml)-/;\nvar MS_VENDOR_PREFIX_REGEX = /^-(ms)-/;\n/**\n * Checks whether to skip camelCase.\n */\nvar skipCamelCase = function (property) {\n return !property ||\n NO_HYPHEN_REGEX.test(property) ||\n CUSTOM_PROPERTY_REGEX.test(property);\n};\n/**\n * Replacer that capitalizes first character.\n */\nvar capitalize = function (match, character) {\n return character.toUpperCase();\n};\n/**\n * Replacer that removes beginning hyphen of vendor prefix property.\n */\nvar trimHyphen = function (match, prefix) { return \"\".concat(prefix, \"-\"); };\n/**\n * CamelCases a CSS property.\n */\nvar camelCase = function (property, options) {\n if (options === void 0) { options = {}; }\n if (skipCamelCase(property)) {\n return property;\n }\n property = property.toLowerCase();\n if (options.reactCompat) {\n // `-ms` vendor prefix should not be capitalized\n property = property.replace(MS_VENDOR_PREFIX_REGEX, trimHyphen);\n }\n else {\n // for non-React, remove first hyphen so vendor prefix is not capitalized\n property = property.replace(VENDOR_PREFIX_REGEX, trimHyphen);\n }\n return property.replace(HYPHEN_REGEX, capitalize);\n};\nexports.camelCase = camelCase;\n//# sourceMappingURL=utilities.js.map","\"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.default = StyleToObject;\nconst inline_style_parser_1 = __importDefault(require(\"inline-style-parser\"));\n/**\n * Parses inline style to object.\n *\n * @param style - Inline style.\n * @param iterator - Iterator.\n * @returns - Style object or null.\n *\n * @example Parsing inline style to object:\n *\n * ```js\n * import parse from 'style-to-object';\n * parse('line-height: 42;'); // { 'line-height': '42' }\n * ```\n */\nfunction StyleToObject(style, iterator) {\n let styleObject = null;\n if (!style || typeof style !== 'string') {\n return styleObject;\n }\n const declarations = (0, inline_style_parser_1.default)(style);\n const hasIterator = typeof iterator === 'function';\n declarations.forEach((declaration) => {\n if (declaration.type !== 'declaration') {\n return;\n }\n const { property, value } = declaration;\n if (hasIterator) {\n iterator(property, value, declaration);\n }\n else if (value) {\n styleObject = styleObject || {};\n styleObject[property] = value;\n }\n });\n return styleObject;\n}\n//# sourceMappingURL=index.js.map"],"names":[],"sourceRoot":""}