@undrr/undrr-mangrove 2.0.0-alpha.4 → 2.0.0-beta.3

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 (122) hide show
  1. package/README.md +51 -306
  2. package/components/BookCard.js +2 -2
  3. package/components/BookCard.js.LICENSE.txt +0 -2
  4. package/components/Breadcrumbs.js +2 -2
  5. package/components/Checkbox.js +2 -2
  6. package/components/Chips.js +2 -2
  7. package/components/CtaButton.js +2 -2
  8. package/components/EmbedContainer.js +2 -2
  9. package/components/Footer.js +2 -2
  10. package/components/FormAction.js +2 -2
  11. package/components/FormErrorSummary.js +2 -2
  12. package/components/FormGroup.js +2 -2
  13. package/components/FullWidth.js +2 -2
  14. package/components/Gallery.js +2 -2
  15. package/components/Hero.js +2 -2
  16. package/components/HighlightBox.js +2 -2
  17. package/components/HorizontalBookCard.js +2 -2
  18. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  19. package/components/HorizontalCard.js +2 -2
  20. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  21. package/components/IconCard.js +2 -2
  22. package/components/IconCard.js.LICENSE.txt +1 -1
  23. package/components/Loader.js +2 -2
  24. package/components/MegaMenu.js +2 -2
  25. package/components/PageHeader.js +2 -2
  26. package/components/Pager.js +2 -2
  27. package/components/QuoteHighlight.js +2 -2
  28. package/components/Radio.js +2 -2
  29. package/components/ScrollContainer.js +2 -2
  30. package/components/Select.js +2 -2
  31. package/components/ShareButtons.js +2 -2
  32. package/components/ShowMore.js +2 -2
  33. package/components/SkipLink.js +6 -0
  34. package/components/SkipLink.js.LICENSE.txt +9 -0
  35. package/components/StatsCard.js +2 -2
  36. package/components/StatsCard.js.LICENSE.txt +1 -1
  37. package/components/SyndicationSearchWidget.js +2 -2
  38. package/components/Tab.js +2 -2
  39. package/components/TextCta.js +2 -2
  40. package/components/TextCta.js.LICENSE.txt +1 -1
  41. package/components/TextInput.js +2 -2
  42. package/components/Textarea.js +2 -2
  43. package/components/UserFeedback.js +2 -2
  44. package/components/VerticalCard.js +2 -2
  45. package/components/VerticalCard.js.LICENSE.txt +1 -1
  46. package/components/assets/a4133008bd4d2c4a42e5ca0c6db8fe9b.svg +22 -0
  47. package/components/assets/f1605b17c97ebdc56cfaa75033e7283d.svg +21 -0
  48. package/components/hydrate.js +1 -1
  49. package/css/style-all.css +51 -45
  50. package/css/style-all.css.map +1 -1
  51. package/css/style-delta.css +50 -44
  52. package/css/style-delta.css.map +1 -1
  53. package/css/style-gutenberg.css +23 -24
  54. package/css/style-gutenberg.css.map +1 -1
  55. package/css/style-irp.css +51 -45
  56. package/css/style-irp.css.map +1 -1
  57. package/css/style-mcr.css +51 -45
  58. package/css/style-mcr.css.map +1 -1
  59. package/css/style-preventionweb.css +51 -45
  60. package/css/style-preventionweb.css.map +1 -1
  61. package/css/style.css +50 -44
  62. package/css/style.css.map +1 -1
  63. package/error-pages/401.html +2 -2
  64. package/error-pages/403.html +2 -2
  65. package/error-pages/404.html +2 -2
  66. package/error-pages/429.html +2 -2
  67. package/error-pages/500.html +2 -2
  68. package/error-pages/502.html +2 -2
  69. package/error-pages/503.html +2 -2
  70. package/error-pages/504.html +2 -2
  71. package/error-pages/5xx.html +2 -2
  72. package/error-pages/challenge.html +2 -2
  73. package/error-pages/managed-challenge.html +2 -2
  74. package/fonts/mangrove-icon-set/config.json +2 -4
  75. package/js/README.md +12 -12
  76. package/js/__tests__/show-more.test.js +6 -2
  77. package/js/__tests__/table-of-contents.test.js +1 -3
  78. package/js/on-this-page-nav.js +117 -73
  79. package/js/preview-access.js +35 -31
  80. package/js/show-more.js +6 -2
  81. package/package.json +9 -9
  82. package/scss/Atom/BaseTypography/Code/code.scss +16 -8
  83. package/scss/Atom/Icons/_icon-definitions.scss +77 -1
  84. package/scss/Atom/Icons/icons.scss +110 -38
  85. package/scss/Atom/Images/AuthorImage/author-image.scss +197 -51
  86. package/scss/Atom/Layout/Grid/grid.scss +14 -8
  87. package/scss/Atom/Logo/logo.scss +37 -0
  88. package/scss/Atom/Table/table.scss +20 -21
  89. package/scss/Atom/Tag/tag.scss +99 -86
  90. package/scss/Components/Breadcrumbs/breadcrumbs.scss +49 -86
  91. package/scss/Components/Buttons/CtaButton/cta-button.scss +23 -3
  92. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +51 -58
  93. package/scss/Components/Cards/Card/card.scss +143 -2
  94. package/scss/Components/Cards/StatsCard/stats-card.scss +1 -1
  95. package/scss/Components/ErrorPages/error-pages.scss +1 -1
  96. package/scss/Components/Gallery/gallery.scss +2 -1
  97. package/scss/Components/Hero/hero.scss +30 -80
  98. package/scss/Components/MegaMenu/mega-menu.scss +77 -10
  99. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +33 -8
  100. package/scss/Components/PageHeader/page-header.scss +179 -52
  101. package/scss/Components/Pager/pager.scss +4 -3
  102. package/scss/Components/ScrollContainer/scroll-container.scss +35 -8
  103. package/scss/Components/SyndicationSearchWidget/_deprecated-teaser-hide.scss +21 -7
  104. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +48 -17
  105. package/scss/Components/TableOfContents/table-of-contents.scss +34 -12
  106. package/scss/Components/TextCta/text-cta.scss +94 -33
  107. package/scss/Patterns/HubHeader/hub-header.scss +406 -0
  108. package/scss/Patterns/_shared/pattern-demo.scss +47 -0
  109. package/scss/Utilities/FullWidth/full-width.scss +10 -1
  110. package/scss/Utilities/PagePatterns/page-patterns.scss +42 -0
  111. package/scss/Utilities/SkipLink/skip-link.scss +40 -0
  112. package/scss/assets/fonts/noto-kufi-arabic/noto-kufi-arabic.scss +52 -18
  113. package/scss/assets/fonts/noto-sans-arabic/noto-sans-arabic.scss +52 -18
  114. package/scss/assets/scss/_components.scss +4 -0
  115. package/scss/assets/scss/_fonts.scss +2 -2
  116. package/scss/assets/scss/_mixins.scss +4 -3
  117. package/scss/assets/scss/_utility.scss +348 -115
  118. package/scss/assets/scss/_variables.scss +16 -15
  119. package/scss/assets/scss/generated/_tokens-irp.scss +9 -0
  120. package/scss/assets/scss/generated/_tokens-mangrove.scss +1 -1
  121. package/scss/assets/scss/generated/_tokens-mcr.scss +8 -0
  122. package/scss/assets/scss/generated/_tokens-preventionweb.scss +9 -0
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see TextCta.js.LICENSE.txt */
6
- import*as e from"react";var t={7888(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(8433),o=n.n(r),a=n(2783);function i({label:e,Type:t="Primary",Variant:n="Default",Outline:r=!1,State:o="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===o,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===t?"secondary":"primary"),r&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),Variant:o().oneOf(["Default","CTA"]),Outline:o().bool,State:o().oneOf(["Default","Disabled"]),href:o().string,onClick:o().func,className:o().string}},7261(e,t,n){var r=n(654);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},8433(e,t,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},2783(e,t,n){e.exports=n(9755)},1649(t,n,r){t.exports=(e=>{const t={};return r.d(t,e),t})({useId:()=>e.useId})}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++];r.o(e,o)?0===a&&n++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r(1649),a=r(8433),i=r.n(a);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const s=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const S=H(Array.prototype.forEach),A=H(Array.prototype.lastIndexOf),N=H(Array.prototype.pop),E=H(Array.prototype.push),_=H(Array.prototype.splice),v=Array.isArray,O=H(String.prototype.toLowerCase),w=H(String.prototype.toString),x=H(String.prototype.match),k=H(String.prototype.replace),C=H(String.prototype.indexOf),D=H(String.prototype.trim),R=H(Number.prototype.toString),I=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),P=H(Object.prototype.hasOwnProperty),z=H(Object.prototype.toString),U=H(RegExp.prototype.test),j=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(F,t)});var F;function H(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(u&&u(e,null),!v(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(f(t)||(t[r]=e),o=e)}e[o]=!0}return e}function W(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}function G(e){const t=g(null);for(const r of s(e)){var n=c(r,2);const o=n[0],a=n[1];P(e,o)&&(v(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=G(a):t[o]=a)}return t}function Y(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=m(e)}return function(){return null}}const q=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),V=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),te=d(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),ce=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),me=h(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=function(){return"undefined"==typeof window?null:window},be=function(e,t,n,r){return P(e,t)&&v(e[t])?B(r.base?G(r.base):{},e[t],r.transform):n};var Te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,p=c.prototype,y=Y(p,"cloneNode"),b=Y(p,"remove"),T=Y(p,"nextSibling"),F=Y(p,"childNodes"),H=Y(p,"parentNode"),W=Y(p,"shadowRoot"),Te=Y(p,"attributes"),Se=l&&l.prototype?Y(l.prototype,"nodeType"):null,Ae=l&&l.prototype?Y(l.prototype,"nodeName"):null;if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Ne,Ee,_e="",ve=!1,Oe=0;const we=function(){if(Oe>0)throw j('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},xe=function(e){we(),Oe++;try{return Ne.createHTML(e)}finally{Oe--}},ke=r,Ce=ke.implementation,De=ke.createNodeIterator,Re=ke.createDocumentFragment,Ie=ke.getElementsByTagName,Le=o.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof H&&Ce&&void 0!==Ce.createHTMLDocument;const Pe=re,ze=oe,Ue=ae,je=ie,Fe=le,He=se,Be=ue,We=me;let Ge=ce,Ye=null;const qe=B({},[...q,...$,...X,...K,...J]);let $e=null;const Xe=B({},[...Q,...ee,...te,...ne]);let Ve=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ke=null,Ze=null;const Je=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,rt=!1,ot=!0,at=!1,it=!1,lt=null,ct=null,st=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let At=null;const Nt=B({},["audio","video","img","source","image","track"]);let Et=null;const _t=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let xt=wt,kt=!1,Ct=null;const Dt=B({},[vt,Ot,wt],w),Rt=d(["mi","mo","mn","ms","mtext"]);let It=B({},Rt);const Lt=d(["annotation-xml"]);let Mt=B({},Lt);const Pt=B({},["title","style","font","a","script"]);let zt=null;const Ut=["application/xhtml+xml","text/html"];let jt=null,Ft=null;const Ht=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ft&&Ft===e)return;e&&"object"==typeof e||(e={}),e=G(e),zt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,jt="application/xhtml+xml"===zt?w:O,Ye=be(e,"ALLOWED_TAGS",qe,{transform:jt}),$e=be(e,"ALLOWED_ATTR",Xe,{transform:jt}),Ct=be(e,"ALLOWED_NAMESPACES",Dt,{transform:w}),Et=be(e,"ADD_URI_SAFE_ATTR",_t,{transform:jt,base:_t}),At=be(e,"ADD_DATA_URI_TAGS",Nt,{transform:jt,base:Nt}),Tt=be(e,"FORBID_CONTENTS",St,{transform:jt}),Ke=be(e,"FORBID_TAGS",G({}),{transform:jt}),Ze=be(e,"FORBID_ATTR",G({}),{transform:jt}),bt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,ot=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,st=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ce,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,It=P(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?G(e.MATHML_TEXT_INTEGRATION_POINTS):B({},Rt),Mt=P(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?G(e.HTML_INTEGRATION_POINTS):B({},Lt);const t=P(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?G(e.CUSTOM_ELEMENT_HANDLING):g(null);if(Ve=g(null),P(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ve.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ve.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(Ve),rt&&(et=!1),ft&&(ut=!0),bt&&(Ye=B({},J),$e=g(null),!0===bt.html&&(B(Ye,q),B($e,Q)),!0===bt.svg&&(B(Ye,$),B($e,ee),B($e,ne)),!0===bt.svgFilters&&(B(Ye,X),B($e,ee),B($e,ne)),!0===bt.mathMl&&(B(Ye,K),B($e,te),B($e,ne))),Je.tagCheck=null,Je.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ye===qe&&(Ye=G(Ye)),B(Ye,e.ADD_TAGS,jt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&($e===Xe&&($e=G($e)),B($e,e.ADD_ATTR,jt))),P(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&B(Et,e.ADD_URI_SAFE_ATTR,jt),P(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.FORBID_CONTENTS,jt)),P(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&B(Ye,["html","head","body"]),Ye.table&&(B(Ye,["tbody"]),delete Ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ne;Ne=e.TRUSTED_TYPES_POLICY;try{_e=xe("")}catch(e){throw Ne=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ne=void 0,_e=""):(void 0===Ne&&(ve||(Ee=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,a),ve=!0),Ne=Ee),Ne&&"string"==typeof _e&&(_e=xe("")));d&&d(e),Ft=e},Gt=B({},[...$,...X,...V]),Yt=B({},[...K,...Z]),qt=function(e){E(n.removed,{element:e});try{H(e).removeChild(e)}catch(t){if(b(e),!H(e))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$t=function(e){Kt(e);const t=F(e);if(t){const e=[];S(t,t=>{E(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Xt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Vt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!$e[jt(o)])try{e.removeAttribute(o)}catch(e){}}},Kt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Vt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(st)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ne?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=Ce.createDocument(xt,"template",null);try{t.documentElement.innerHTML=kt?_e:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),xt===wt?Ie.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return De.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=k(e,Pe," "),e=k(e,ze," "),k(e,Ue," ")},en=function(e){var t;e.normalize();const n=De.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=Qt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&S(o,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Ae?Ae(e):null;return"string"==typeof t&&"form"===jt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==F(e))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function on(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,Ft)})}const an=function(e,t){if(on(Me.beforeSanitizeElements,e,null),e!==t&&null===H(e))return!0;if(tn(e))return qt(e),!0;const r=jt(Ae?Ae(e):e.nodeName);if(on(Me.uponSanitizeElement,e,{tagName:r,allowedTags:Ye}),e!==t&&null===H(e))return!0;if(function(e,t){return!!(ot&&e.hasChildNodes()&&!rn(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!U(de,e.data))}(e,r))return qt(e),!0;if(Ke[r]||!(Je.tagCheck instanceof Function&&Je.tagCheck(r))&&!Ye[r]){const t=function(e,t){if(!Ke[t]&&sn(t)){if(Ve.tagNameCheck instanceof RegExp&&U(Ve.tagNameCheck,t))return!1;if(Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=H(e),n=F(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=yt?n[r]:y(n[r],!0);t.insertBefore(o,T(e))}}return qt(e),!0}(e,r);return!1===t&&on(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=H(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Ct[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===wt?"svg"===e:t.namespaceURI===vt?"svg"===e&&("annotation-xml"===n||It[n]):Boolean(Gt[e])}(n,t,r):e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===wt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===wt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===vt&&!It[n])&&!Yt[e]&&(Pt[e]||!Gt[e])}(n,t,r):!("application/xhtml+xml"!==zt||!Ct[e.namespaceURI]))}(e))return qt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(he,e.innerHTML))return qt(e),!0;if(rt&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)}return on(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(ot&&"patchsrc"===t)return!1;if(ot&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=$e[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&U(je,t));else if(Qe&&U(Fe,t));else if(o){if(Et[t]);else if(U(Ge,k(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!At[e])if(tt&&!U(He,k(n,Be,"")));else if(n)return!1}else if(!(sn(e)&&(Ve.tagNameCheck instanceof RegExp&&U(Ve.tagNameCheck,e)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(e))&&(Ve.attributeNameCheck instanceof RegExp&&U(Ve.attributeNameCheck,t)||Ve.attributeNameCheck instanceof Function&&Ve.attributeNameCheck(t,e))||"is"===t&&Ve.allowCustomizedBuiltInElements&&(Ve.tagNameCheck instanceof RegExp&&U(Ve.tagNameCheck,n)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(n))))return!1;return!0},cn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!cn[O(e)]&&U(We,e)},un=function(e,t,n,r){if(Ne&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(r);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ne.createScriptURL(e)}finally{Oe--}}(r)}return r},fn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),tn(e)?qt(e):N(n.removed)}catch(n){Xt(t,e)}},mn=function(e){on(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0};let r=t.length;const o=jt(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,c=a.value,s=jt(i),u=c;let f="value"===i?u:D(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,on(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==s&&"name"!==s||0===C(f,ht)||(Xt(i,e),f=ht+f),ot&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&x(f,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&U(ge,f)?Xt(i,e):(rt&&(f=Qt(f)),ln(o,s,f)?(f=un(o,s,l,f),f!==u&&fn(e,i,l,f)):Xt(i,e)))}on(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(on(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(on(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Se?Se(t):t.nodeType)){const e=W(t);nn(e)&&(dn(e),pn(e))}on(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=F(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ae?Ae(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(r){const e=W(n);nn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return I(e);case"bigint":return L?L(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return z(e);case"function":case"object":{if(null===e)return z(e);const t=e,n=Y(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:z(e)}return z(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;it?(Ye=lt,$e=ct):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=G(Ye)),Me.uponSanitizeAttribute.length>0&&($e=G($e)),n.removed=[];const c=yt&&"string"!=typeof e&&rn(e);if(c){!function(e){if(!ot)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&U(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=jt(Ae?Ae(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=F(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ae?Ae(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ke[n])throw $t(e),j("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw $t(e),j("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw $t(e),t}}else if(rn(e))r=Zt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),dn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ne&&mt?xe(e):e;if(r=Zt(e),!r)return ut?null:mt?_e:""}r&&st&&qt(r.firstChild);const s=c?e:r,u=Jt(s);try{for(;i=u.nextNode();)an(i,s),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw c&&($t(e),S(n.removed,e=>{e.element&&Kt(e.element)})),t}if(c)return S(n.removed,e=>{e.element&&Kt(e.element)}),rt&&en(e),e;if(ut){if(rt&&en(r),ft)for(l=Re.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return($e.shadowroot||$e.shadowrootmode)&&(l=Le.call(o,l,!0)),l}let f=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(fe,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),rt&&(f=Qt(f)),Ne&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,ct=$e},n.clearConfig=function(){Ft=null,it=!1,lt=null,ct=null,Ne=Ee,_e=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const r=jt(e),o=jt(t);return ln(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Me,e)&&E(Me[e],t)},n.removeHook=function(e,t){if(P(Me,e)){if(void 0!==t){const n=A(Me[e],t);return-1===n?void 0:_(Me[e],n,1)[0]}return N(Me[e])}},n.removeHooks=function(e){P(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Se=r(7888),Ae=r(2783);const Ne=(...e)=>e.filter(Boolean).join(" ")||null,Ee=[];function _e({eyebrow:e,headline:t,headlineSize:n="600",headlineLevel:r=2,text:a,buttons:i=Ee,variant:l="primary",backgroundColor:c,padding:s,image:u,imageAlt:f="",centered:m=!0,layout:p="stacked",className:d}){const h=!!u,g=(0,o.useId)(),y=`h${r}`;return(0,Ae.jsx)("section",{className:Ne("mg-cta",l&&`mg-cta--${l}`,"inline"===p&&"mg-cta--inline",h&&"mg-cta--with-image",!h&&m&&"inline"!==p&&"mg-cta--centered",d),...t?{"aria-labelledby":g}:{"aria-label":"Call to action"},...(c||s)&&{style:{...c&&{"--mg-cta-bg":c},...s&&{padding:s}}},children:(0,Ae.jsxs)("div",{className:"mg-cta__inner mg-container",children:[(0,Ae.jsxs)("div",{className:"mg-cta__body",children:[(0,Ae.jsxs)("div",{className:"mg-cta__content",children:[e&&(0,Ae.jsx)("p",{className:"mg-cta__eyebrow",children:e}),t&&(0,Ae.jsx)(y,{id:g,className:Ne("mg-cta__headline",`mg-u-font-size-${n}`),children:t}),a&&(0,Ae.jsx)("div",{className:"mg-cta__text",dangerouslySetInnerHTML:{__html:Te.sanitize(a)}})]}),i.length>0&&(0,Ae.jsx)("div",{className:"mg-cta__actions",children:i.map((e,t)=>(0,Ae.jsx)(Se.F,{label:e.label,href:e.url||"#",Type:e.type,Variant:e.variant,Outline:e.outline,target:e.target,rel:e.rel},t))})]}),h&&(0,Ae.jsx)("div",{className:"mg-cta__image",children:(0,Ae.jsx)("img",{src:u,alt:f})})]})})}_e.propTypes={eyebrow:i().string,headline:i().string,headlineSize:i().string,headlineLevel:i().oneOf([2,3,4,5,6]),text:i().string,buttons:i().arrayOf(i().shape({label:i().string.isRequired,url:i().string,type:i().oneOf(["Primary","Secondary"]),variant:i().oneOf(["Default","CTA"]),outline:i().bool,target:i().string,rel:i().string})),variant:i().oneOf(["primary","secondary","tertiary","quaternary"]),backgroundColor:i().string,padding:i().string,image:i().string,imageAlt:i().string,centered:i().bool,layout:i().oneOf(["stacked","inline"]),className:i().string};const ve=_e;function Oe(e){const{dataset:t}=e;let n=[];try{n=t.buttons?JSON.parse(t.buttons):[]}catch{n=[]}const r=parseInt(t.headlineLevel,10),o=r>=2&&r<=6?r:2;return{eyebrow:t.eyebrow||"",headline:t.headline||"",headlineSize:t.headlineSize||"600",headlineLevel:o,text:t.text||"",buttons:n,variant:t.variant||"primary",backgroundColor:t.backgroundColor||void 0,padding:t.padding||void 0,image:t.image||void 0,imageAlt:t.imageAlt||"",centered:"false"!==t.centered,layout:"inline"===t.layout?"inline":"stacked",className:t.className||void 0}}export{_e as TextCta,ve as default,Oe as fromElement};
6
+ import{useId as e}from"react";var t={2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=r.cw(function(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r}),a=r.cw(function(e,t){e.exports=o()}),i=r(5556),l=r.n(i);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const u=Object.entries,f=Object.setPrototypeOf,p=Object.isFrozen,m=Object.getPrototypeOf,d=Object.getOwnPropertyDescriptor;let h=Object.freeze,g=Object.seal,y=Object.create,b="undefined"!=typeof Reflect&&Reflect,S=b.apply,T=b.construct;h||(h=function(e){return e}),g||(g=function(e){return e}),S||(S=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const v=B(Array.prototype.forEach),A=B(Array.prototype.lastIndexOf),w=B(Array.prototype.pop),E=B(Array.prototype.push),x=B(Array.prototype.splice),_=Array.isArray,O=B(String.prototype.toLowerCase),N=B(String.prototype.toString),k=B(String.prototype.match),D=B(String.prototype.replace),C=B(String.prototype.indexOf),R=B(String.prototype.trim),I=B(Number.prototype.toString),L=B(Boolean.prototype.toString),z="undefined"==typeof BigInt?null:B(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:B(Symbol.prototype.toString),P=B(Object.prototype.hasOwnProperty),j=B(Object.prototype.toString),U=B(RegExp.prototype.test),F=(H=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(H,t)});var H;function B(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(e,t,r)}}function W(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(f&&f(e,null),!_(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(p(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Y(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}function G(e){const t=y(null);for(const r of u(e)){var n=s(r,2);const o=n[0],a=n[1];P(e,o)&&(_(a)?t[o]=Y(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=G(a):t[o]=a)}return t}function q(e,t){for(;null!==e;){const n=d(e,t);if(n){if(n.get)return B(n.get);if("function"==typeof n.value)return B(n.value)}e=m(e)}return function(){return null}}const $=h(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),V=h(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=h(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K=h(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Z=h(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),J=h(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Q=h(["#text"]),ee=h(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),te=h(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ne=h(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),re=h(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),oe=g(/{{[\w\W]*|^[\w\W]*}}/g),ae=g(/<%[\w\W]*|^[\w\W]*%>/g),ie=g(/\${[\w\W]*/g),le=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),ce=g(/^aria-[\-\w]+$/),se=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ue=g(/^(?:\w+script|data):/i),fe=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pe=g(/^html$/i),me=g(/^[a-z][.\w]*(-[.\w]+)+$/i),de=g(/<[/\w!]/g),he=g(/<[/\w]/g),ge=g(/<\/no(script|embed|frames)/i),ye=g(/\/>/i),be=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Se=h(W({},be)),Te=function(){const e={};return v(be,t=>{e[t]=g(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),h(e)}(),ve=function(){return"undefined"==typeof window?null:window},Ae=function(e,t,n,r){return P(e,t)&&_(e[t])?W(r.base?G(r.base):{},e[t],r.transform):n},we=function(e,t,n){const r=P(e,t)?e[t]:void 0;return r&&"object"==typeof r?G(r):n()};var Ee=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ve();const n=t=>e(t);if(n.version="3.4.15",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,c=t.Element,s=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,p=t.trustedTypes,m=c.prototype,d=q(m,"cloneNode"),b=q(m,"remove"),S=q(m,"removeAttributeNode"),T=q(m,"nextSibling"),H=q(m,"childNodes"),B=q(m,"parentNode"),Y=q(m,"shadowRoot"),be=q(m,"attributes"),Ee=l&&l.prototype?q(l.prototype,"nodeType"):null,xe=l&&l.prototype?q(l.prototype,"nodeName"):null,_e=l&&l.prototype?q(l.prototype,"ownerDocument"):null,Oe=function(e){return Ee?Ee(e):e.nodeType},Ne=function(e){return xe?xe(e):e.nodeName};if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ke,De,Ce="",Re=!1,Ie=0;const Le=function(){if(Ie>0)throw F('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ze=function(e){Le(),Ie++;try{return ke.createHTML(e)}finally{Ie--}},Me=r,Pe=Me.implementation,je=Me.createNodeIterator,Ue=Me.createDocumentFragment,Fe=Me.getElementsByTagName,He=o.importNode;let Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof u&&"function"==typeof B&&Pe&&void 0!==Pe.createHTMLDocument;const We=oe,Ye=ae,Ge=ie,qe=le,$e=ce,Ve=ue,Xe=fe,Ke=me;let Ze=se,Je=null;const Qe=W({},[...$,...V,...X,...Z,...Q]);let et=null;const tt=W({},[...ee,...te,...ne,...re]);let nt=Object.seal(y(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rt=null,ot=null;const at=Object.seal(y(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let it=!0,lt=!0,ct=!1,st=!0,ut=!1,ft=!0,pt=!1,mt=!1,dt=null,ht=null,gt=!1,yt=!1,bt=!1,St=!1,Tt=!0,vt=!1;const At="user-content-";let wt=!0,Et=!1,xt={},_t=null;const Ot=W({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Nt=null;const kt=W({},["audio","video","img","source","image","track"]);let Dt=null;const Ct=W({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Rt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",Lt="http://www.w3.org/1999/xhtml";let zt=Lt,Mt=!1,Pt=null;const jt=W({},[Rt,It,Lt],N),Ut=h(["mi","mo","mn","ms","mtext"]);let Ft=W({},Ut);const Ht=h(["annotation-xml"]);let Bt=W({},Ht);const Wt=W({},["title","style","font","a","script"]);let Yt=null;const Gt=["application/xhtml+xml","text/html"];let qt=null,$t=null;const Vt=r.createElement("form"),Xt=function(e){return e instanceof RegExp||e instanceof Function},Kt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($t&&$t===e)return;e&&"object"==typeof e||(e={}),e=G(e),Yt=-1===Gt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,qt="application/xhtml+xml"===Yt?N:O,Je=Ae(e,"ALLOWED_TAGS",Qe,{transform:qt}),et=Ae(e,"ALLOWED_ATTR",tt,{transform:qt}),Pt=Ae(e,"ALLOWED_NAMESPACES",jt,{transform:N}),Dt=Ae(e,"ADD_URI_SAFE_ATTR",Ct,{transform:qt,base:Ct}),Nt=Ae(e,"ADD_DATA_URI_TAGS",kt,{transform:qt,base:kt}),_t=Ae(e,"FORBID_CONTENTS",Ot,{transform:qt}),rt=Ae(e,"FORBID_TAGS",G({}),{transform:qt}),ot=Ae(e,"FORBID_ATTR",G({}),{transform:qt}),xt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),it=!1!==e.ALLOW_ARIA_ATTR,lt=!1!==e.ALLOW_DATA_ATTR,ct=e.ALLOW_UNKNOWN_PROTOCOLS||!1,st=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ut=e.SAFE_FOR_TEMPLATES||!1,ft=!1!==e.SAFE_FOR_XML,pt=e.WHOLE_DOCUMENT||!1,yt=e.RETURN_DOM||!1,bt=e.RETURN_DOM_FRAGMENT||!1,St=e.RETURN_TRUSTED_TYPE||!1,gt=e.FORCE_BODY||!1,Tt=!1!==e.SANITIZE_DOM,vt=e.SANITIZE_NAMED_PROPS||!1,wt=!1!==e.KEEP_CONTENT,Et=e.IN_PLACE||!1,Ze=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:se,zt="string"==typeof e.NAMESPACE?e.NAMESPACE:Lt,Ft=we(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>W({},Ut)),Bt=we(e,"HTML_INTEGRATION_POINTS",()=>W({},Ht));const t=we(e,"CUSTOM_ELEMENT_HANDLING",()=>y(null));if(nt=y(null),P(t,"tagNameCheck")&&Xt(t.tagNameCheck)&&(nt.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Xt(t.attributeNameCheck)&&(nt.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(nt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),g(nt),ut&&(lt=!1),bt&&(yt=!0),xt&&(Je=W({},Q),et=y(null),!0===xt.html&&(W(Je,$),W(et,ee)),!0===xt.svg&&(W(Je,V),W(et,te),W(et,re)),!0===xt.svgFilters&&(W(Je,X),W(et,te),W(et,re)),!0===xt.mathMl&&(W(Je,Z),W(et,ne),W(et,re))),at.tagCheck=null,at.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?at.tagCheck=e.ADD_TAGS:_(e.ADD_TAGS)&&(Je===Qe&&(Je=G(Je)),W(Je,e.ADD_TAGS,qt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?at.attributeCheck=e.ADD_ATTR:_(e.ADD_ATTR)&&(et===tt&&(et=G(et)),W(et,e.ADD_ATTR,qt))),P(e,"ADD_FORBID_CONTENTS")&&_(e.ADD_FORBID_CONTENTS)&&(_t===Ot&&(_t=G(_t)),W(_t,e.ADD_FORBID_CONTENTS,qt)),wt&&(Je["#text"]=!0),pt&&W(Je,["html","head","body"]),Je.table&&(W(Je,["tbody"]),delete rt.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw F('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=ke;ke=e.TRUSTED_TYPES_POLICY;try{Ce=ze("")}catch(e){throw ke=t,e}}else null===e.TRUSTED_TYPES_POLICY?(ke=void 0,Ce=""):(void 0===ke&&(Re||(De=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Re=!0),ke=De),ke&&"string"==typeof Ce&&(Ce=ze("")));h&&h(e),$t=e},Zt=W({},[...V,...X,...K]),Jt=W({},[...Z,...J]),Qt=function(e){E(n.removed,{element:e});try{B(e).removeChild(e)}catch(t){if(b(e),!B(e))throw F("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},en=function(e,t,n){try{S(e,t)}catch(t){try{e.removeAttribute(n)}catch(e){}}},tn=function(e){on(e);const t=H(e);if(t){const e=[];v(t,t=>{E(e,t)}),v(e,e=>{try{b(e)}catch(e){}})}const n=be(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;"string"==typeof o&&en(e,r,o)}},nn=function(e,t,r){if(!r)try{r=t.getAttributeNode(e)}catch(e){r=null}E(n.removed,{attribute:r||null,from:t});try{r?S(t,r):t.removeAttribute(e)}catch(n){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(yt||bt)try{Qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},rn=function(e){const t=be(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;"string"!=typeof o||et[qt(o)]||en(e,r,o)}},on=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===Oe(e)&&rn(e);const n=H(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},an=function(e,t){return!!ft&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},ln=function(e){let t=null,n=null;if(gt)e="<remove></remove>"+e;else{const t=k(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Yt&&zt===Lt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ke?ze(e):e;if(zt===Lt)try{t=(new f).parseFromString(o,Yt)}catch(e){}if(!t||!t.documentElement){t=Pe.createDocument(zt,"template",null);try{t.documentElement.innerHTML=Mt?Ce:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),zt===Lt?Fe.call(t,pt?"html":"body")[0]:pt?t.documentElement:a},cn=function(e){const t=_e?_e(e):e.ownerDocument;return je.call(t||e,e,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(e){return e=D(e,We," "),e=D(e,Ye," "),D(e,Ge," ")},un=function(e){var t;e.normalize();const n=_e?_e(e):e.ownerDocument,r=je.call(n||e,e,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");a&&v(a,e=>{pn(e.content)&&un(e.content)})},fn=function(e){const t=xe?xe(e):null;return"string"==typeof t&&"form"===qt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==be(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Ee(e)||e.childNodes!==H(e))},pn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return 11===Ee(e)}catch(e){return!1}},mn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ee(e)}catch(e){return!1}};function dn(e,t,r){0!==e.length&&v(e,e=>{e.call(n,t,r,$t)})}const hn=function(e,t){if(e instanceof RegExp)return U(e,t);if(e instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(e(t,...r))}return!1},gn=function(e,t,n,r){return 0===e.length?t:t===n||t===r?G(t):t},yn=function(e,t){return e!==t&&null===B(e)&&(Et&&on(e),!0)},bn=function(e,t){if(dn(Be.beforeSanitizeElements,e,null),yn(e,t))return!0;if(fn(e))return Qt(e),!0;const r=qt(Ne(e));if(Je=gn(Be.uponSanitizeElement,Je,Qe,dt),dn(Be.uponSanitizeElement,e,{tagName:r,allowedTags:Je}),yn(e,t))return!0;if(function(e,t){return!!(ft&&e.hasChildNodes()&&!mn(e.firstElementChild)&&U(de,e.textContent)&&U(de,e.innerHTML))||!!(ft&&e.namespaceURI===Lt&&Se[t]&&(mn(e.firstElementChild)||"string"==typeof e.textContent&&U(Te[t],e.textContent)))||7===e.nodeType||!(!ft||8!==e.nodeType||!U(he,e.data))}(e,r))return Qt(e),!0;if(rt[r]||!(at.tagCheck instanceof Function&&at.tagCheck(r))&&!Je[r]){const n=function(e,t,n){if(!rt[t]&&vn(t)&&hn(nt.tagNameCheck,t))return!1;if(wt&&!_t[t]){const t=B(e),r=H(e);if(r&&t)for(let o=r.length-1;o>=0;--o){const a=e===n?d(r[o],!0):r[o];t.insertBefore(a,T(e))}}return Qt(e),!0}(e,r,t);return!1===n&&dn(Be.afterSanitizeElements,e,null),n}if(1===Oe(e)&&!function(e){let t=B(e);t&&t.tagName||(t={namespaceURI:zt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Pt[e.namespaceURI]&&(e.namespaceURI===It?function(e,t,n){return t.namespaceURI===Lt?"svg"===e:t.namespaceURI===Rt?"svg"===e&&("annotation-xml"===n||Ft[n]):Boolean(Zt[e])}(n,t,r):e.namespaceURI===Rt?function(e,t,n){return t.namespaceURI===Lt?"math"===e:t.namespaceURI===It?"math"===e&&Bt[n]:Boolean(Jt[e])}(n,t,r):e.namespaceURI===Lt?function(e,t,n){return!(t.namespaceURI===It&&!Bt[n])&&!(t.namespaceURI===Rt&&!Ft[n])&&!Jt[e]&&(Wt[e]||!Zt[e])}(n,t,r):!("application/xhtml+xml"!==Yt||!Pt[e.namespaceURI]))}(e))return Qt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(ge,e.innerHTML))return Qt(e),!0;if(ut&&3===e.nodeType){const t=sn(e.textContent);e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)}return dn(Be.afterSanitizeElements,e,null),!1},Sn=function(e,t,n){if(ot[t])return!1;if(an(t,e))return!1;if(Tt&&("id"===t||"name"===t)&&(n in r||n in Vt))return!1;const o=et[t]||at.attributeCheck instanceof Function&&at.attributeCheck(t,e);return!(!lt||!U(qe,t))||!(!it||!U($e,t))||(o?!(!Dt[t]&&!U(Ze,D(n,Xe,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==C(n,"data:")||!Nt[e])&&(!ct||U(Ve,D(n,Xe,"")))&&n):vn(e)&&hn(nt.tagNameCheck,e)&&hn(nt.attributeNameCheck,t,e)||"is"===t&&nt.allowCustomizedBuiltInElements&&hn(nt.tagNameCheck,n))},Tn=W({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(e){return!Tn[O(e)]&&U(Ke,e)},An=function(e,t,n,r){if(ke&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(e,t)){case"TrustedHTML":return ze(r);case"TrustedScriptURL":return function(e){Le(),Ie++;try{return ke.createScriptURL(e)}finally{Ie--}}(r)}return r},wn=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!fn(e)||(Qt(e),!1)}catch(n){return nn(t,e),!1}},En=function(e){dn(Be.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||fn(e))return;et=gn(Be.uponSanitizeAttribute,et,tt,ht);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:et,forceKeepAttr:void 0};let o=t.length;const a=qt(e.nodeName);for(;o--;){const i=t[o],l=i.name,c=i.namespaceURI,s=i.value,u=qt(l),f=s;let p="value"===l?f:R(f),m=!1;r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(Be.uponSanitizeAttribute,e,r),p=r.attrValue,!vt||"id"!==u&&"name"!==u||0===C(p,At)||(nn(l,e,i),p=At+p,m=!0),ft&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&k(p,"href")?nn(l,e,i):r.forceKeepAttr||(r.keepAttr&&(st||!U(ye,p))?(ut&&(p=sn(p)),Sn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(e,l,c,p)&&m&&w(n.removed)):nn(l,e,i)):nn(l,e,i))}dn(Be.afterSanitizeAttributes,e,null)},xn=function(e){let t=null;const n=cn(e);for(dn(Be.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(dn(Be.uponSanitizeShadowNode,t,null),bn(t,e),En(t),pn(t.content)&&xn(t.content),1===Oe(t)){const e=Y(t);pn(e)&&(_n(e),xn(e))}dn(Be.afterSanitizeShadowDOM,e,null)},_n=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){xn(e.shadow);continue}const n=e.node,r=1===Oe(n),o=H(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=xe?xe(n):null;if("string"==typeof e&&"template"===qt(e)){const e=n.content;pn(e)&&t.push({node:e,shadow:null})}}if(r){const e=Y(n);pn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(Mt=!e,Mt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!mn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(e);case"boolean":return L(e);case"bigint":return z?z(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return j(e);case"function":case"object":{if(null===e)return j(e);const t=e,n=q(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:j(e)}return j(e)}}}(e)))throw F("dirty is not a string, aborting");if(!n.isSupported)return e;mt?(Je=dt,et=ht):Kt(t),(Be.uponSanitizeElement.length>0||Be.uponSanitizeAttribute.length>0)&&(Je=G(Je)),Be.uponSanitizeAttribute.length>0&&(et=G(et)),n.removed=[];const c=Et&&"string"!=typeof e&&mn(e);if(c){!function(e){if(!ft)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Oe(e);if(7===n||8===n&&U(he,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=qt(Ne(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&an("for",n)&&t.removeAttribute("for")}catch(e){}}const r=H(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne(e);if("string"==typeof t){const n=qt(t);if(!Je[n]||rt[n])throw tn(e),F("root node is forbidden and cannot be sanitized in-place")}if(fn(e))throw tn(e),F("root node is clobbered and cannot be sanitized in-place");try{_n(e)}catch(t){throw tn(e),t}}else if(mn(e))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),_n(r);else{if(!yt&&!ut&&!pt&&-1===e.indexOf("<"))return ke&&St?ze(e):e;if(r=ln(e),!r)return yt?null:St?Ce:""}r&&gt&&Qt(r.firstChild);const s=c?e:r;try{const e=cn(s);for(;i=e.nextNode();)bn(i,s),En(i),pn(i.content)&&xn(i.content)}catch(t){throw c&&(tn(e),v(n.removed,e=>{e.element&&on(e.element)})),t}if(c)return v(n.removed,e=>{e.element&&on(e.element)}),ut&&un(e),e;if(yt){if(ut&&un(r),bt)for(l=Ue.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(et.shadowroot||et.shadowrootmode)&&(l=He.call(o,l,!0)),l}let u=pt?r.outerHTML:r.innerHTML;return pt&&Je["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(pe,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ut&&(u=sn(u)),ke&&St?ze(u):u},n.setConfig=function(){Kt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),mt=!0,dt=Je,ht=et},n.clearConfig=function(){$t=null,mt=!1,dt=null,ht=null,ke=De,Ce=""},n.isValidAttribute=function(e,t,n){$t||Kt({});const r=qt(e),o=qt(t);return Sn(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Be,e)&&E(Be[e],t)},n.removeHook=function(e,t){if(P(Be,e)){if(void 0!==t){const n=A(Be[e],t);return-1===n?void 0:x(Be[e],n,1)[0]}return w(Be[e])}},n.removeHooks=function(e){P(Be,e)&&(Be[e]=[])},n.removeAllHooks=function(){Be={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function xe({label:e,Type:t="Primary",Variant:n="Default",Outline:r=!1,State:a="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===a,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===t?"secondary":"primary"),r&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,o().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:e})}a(),xe.propTypes={label:l().string.isRequired,Type:l().oneOf(["Primary","Secondary"]),Variant:l().oneOf(["Default","CTA"]),Outline:l().bool,State:l().oneOf(["Default","Disabled"]),href:l().string,onClick:l().func,className:l().string};const _e=(...e)=>e.filter(Boolean).join(" ")||null,Oe=[];function Ne({eyebrow:t,headline:n,headlineSize:r="600",headlineLevel:a=2,text:i,buttons:l=Oe,variant:c="primary",tone:s="strong",backgroundColor:u,padding:f,image:p,imageAlt:m="",centered:d=!0,layout:h="stacked",className:g,children:y}){const b=!!p,S="inline"===h&&null==y,T=e(),v=`h${a}`;return(0,o().jsx)("section",{className:_e("mg-cta",c&&`mg-cta--${c}`,"soft"===s&&"mg-cta--soft",S&&"mg-cta--inline",b&&"mg-cta--with-image",!b&&d&&"inline"!==h&&"mg-cta--centered",g),...n?{"aria-labelledby":T}:{"aria-label":"Call to action"},...(u||f)&&{style:{...u&&{"--mg-cta-bg":u},...f&&{padding:f}}},children:(0,o().jsxs)("div",{className:"mg-cta__inner mg-container",children:[(0,o().jsxs)("div",{className:"mg-cta__body",children:[(0,o().jsxs)("div",{className:"mg-cta__content",children:[t&&(0,o().jsx)("p",{className:"mg-cta__eyebrow",children:t}),n&&(0,o().jsx)(v,{id:T,className:_e("mg-cta__headline",`mg-u-font-size-${r}`),children:n}),i&&(0,o().jsx)("div",{className:"mg-cta__text",dangerouslySetInnerHTML:{__html:Ee.sanitize(i)}})]}),null!=y&&(0,o().jsx)("div",{className:"mg-cta__custom-content",children:y}),l.length>0&&(0,o().jsx)("div",{className:"mg-cta__actions",children:l.map((e,t)=>(0,o().jsx)(xe,{label:e.label,href:e.url||"#",Type:e.type,Variant:e.variant,Outline:e.outline,target:e.target,rel:e.rel},t))})]}),b&&(0,o().jsx)("div",{className:"mg-cta__image",children:(0,o().jsx)("img",{src:p,alt:m})})]})})}Ne.propTypes={children:l().node,tone:l().oneOf(["strong","soft"]),eyebrow:l().string,headline:l().string,headlineSize:l().string,headlineLevel:l().oneOf([2,3,4,5,6]),text:l().string,buttons:l().arrayOf(l().shape({label:l().string.isRequired,url:l().string,type:l().oneOf(["Primary","Secondary"]),variant:l().oneOf(["Default","CTA"]),outline:l().bool,target:l().string,rel:l().string})),variant:l().oneOf(["primary","secondary","tertiary","quaternary"]),backgroundColor:l().string,padding:l().string,image:l().string,imageAlt:l().string,centered:l().bool,layout:l().oneOf(["stacked","inline"]),className:l().string};const ke=Ne;function De(e){const{dataset:t}=e;let n=[];try{n=t.buttons?JSON.parse(t.buttons):[]}catch{n=[]}const r=parseInt(t.headlineLevel,10),o=r>=2&&r<=6?r:2;return{eyebrow:t.eyebrow||"",headline:t.headline||"",headlineSize:t.headlineSize||"600",headlineLevel:o,text:t.text||"",buttons:n,variant:t.variant||"primary",tone:"soft"===t.tone?"soft":"strong",backgroundColor:t.backgroundColor||void 0,padding:t.padding||void 0,image:t.image||void 0,imageAlt:t.imageAlt||"",centered:"false"!==t.centered,layout:"inline"===t.layout?"inline":"stacked",className:t.className||void 0}}export{Ne as TextCta,ke as default,De as fromElement};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
1
+ /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
2
2
 
3
3
  /**
4
4
  * @license React
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see TextInput.js.LICENSE.txt */
6
- import{useId as e}from"react";var r={7261(e,r,o){var a=o(654);function t(){}function n(){}n.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,n,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}},8433(e,r,o){e.exports=o(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var t=null;if(void 0!==a&&(t=""+a),void 0!==r.key&&(t=""+r.key),"key"in r)for(var n in a={},r)"key"!==n&&(a[n]=r[n]);else a=r;return r=a.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a},2783(e,r,o){e.exports=o(9755)}};const o={};function a(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{if(Array.isArray(r))for(var o=0;o<r.length;){var t=r[o++],n=r[o++];a.o(e,t)?0===n&&o++:0===n?Object.defineProperty(e,t,{enumerable:!0,value:r[o++]}):Object.defineProperty(e,t,{enumerable:!0,get:n})}else for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=a(8433),n=a.n(t),l=a(2783);function i({id:r,name:o,type:a="text",label:t,hideLabel:n=!1,placeholder:i,value:s,defaultValue:p,onChange:d,disabled:c=!1,required:f=!1,helpText:u,error:m=!1,errorText:b,className:y,...g}){const h=e(),v=r||h,x=u?`${v}-help`:void 0,j=m&&b?`${v}-error`:void 0,O=[x,j].filter(Boolean).join(" ")||void 0,T=["mg-form-input",c&&"mg-form-input--disabled",m&&"mg-form-input--error"].filter(Boolean).join(" "),_=["mg-form-label",n&&"mg-u-sr-only",c&&"mg-form-label--disabled",f&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,l.jsxs)("div",{className:["mg-form-field",y].filter(Boolean).join(" "),children:[t&&(0,l.jsx)("label",{className:_,htmlFor:v,children:t}),(0,l.jsx)("input",{className:T,type:a,id:v,name:o,placeholder:i,value:s,defaultValue:p,onChange:d,disabled:c,required:f,"aria-describedby":O,"aria-invalid":m||void 0,...t?{}:{"aria-label":i},...g}),u&&(0,l.jsx)("p",{className:"mg-form-help",id:x,children:u}),m&&b&&(0,l.jsx)("p",{className:"mg-form-error",id:j,role:"alert",children:b})]})}i.propTypes={id:n().string,name:n().string,type:n().oneOf(["text","email","password","number","tel","search","date","url"]),label:n().string,hideLabel:n().bool,placeholder:n().string,value:n().string,defaultValue:n().string,onChange:n().func,disabled:n().bool,required:n().bool,helpText:n().string,error:n().bool,errorText:n().string,className:n().string};const s=i;export{i as TextInput,s as default};
6
+ import{useId as e}from"react";var r={2694(e,r,o){var t=o(6925);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,r,o,a,n,l){if(l!==t){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return o.PropTypes=o,o}},5556(e,r,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const o={};function t(e){const a=o[e];if(void 0!==a)return a.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,t),n.exports}t.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},t.cw=e=>{var r;return()=>{if(e){var o=e;e=0,r={exports:{}},o.call(r.exports,r,r.exports)}return r.exports}},t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var a=t.cw(function(e,r){var o=Symbol.for("react.transitional.element");function t(e,r,t){var a=null;if(void 0!==t&&(a=""+t),void 0!==r.key&&(a=""+r.key),"key"in r)for(var n in t={},r)"key"!==n&&(t[n]=r[n]);else t=r;return r=t.ref,{$$typeof:o,type:e,key:a,ref:void 0!==r?r:null,props:t}}Symbol.for("react.fragment"),r.jsx=t,r.jsxs=t}),n=t.cw(function(e,r){e.exports=a()}),l=t(5556),i=t.n(l);function s({id:r,name:o,type:t="text",label:n,hideLabel:l=!1,placeholder:i,value:s,defaultValue:p,onChange:c,disabled:d=!1,required:f=!1,helpText:u,error:m=!1,errorText:b,className:y,...g}){const h=e(),x=r||h,v=u?`${x}-help`:void 0,j=m&&b?`${x}-error`:void 0,T=[v,j].filter(Boolean).join(" ")||void 0,O=["mg-form-input",d&&"mg-form-input--disabled",m&&"mg-form-input--error"].filter(Boolean).join(" "),_=["mg-form-label",l&&"mg-u-sr-only",d&&"mg-form-label--disabled",f&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,a().jsxs)("div",{className:["mg-form-field",y].filter(Boolean).join(" "),children:[n&&(0,a().jsx)("label",{className:_,htmlFor:x,children:n}),(0,a().jsx)("input",{className:O,type:t,id:x,name:o,placeholder:i,value:s,defaultValue:p,onChange:c,disabled:d,required:f,"aria-describedby":T,"aria-invalid":m||void 0,...n?{}:{"aria-label":i},...g}),u&&(0,a().jsx)("p",{className:"mg-form-help",id:v,children:u}),m&&b&&(0,a().jsx)("p",{className:"mg-form-error",id:j,role:"alert",children:b})]})}n(),s.propTypes={id:i().string,name:i().string,type:i().oneOf(["text","email","password","number","tel","search","date","url"]),label:i().string,hideLabel:i().bool,placeholder:i().string,value:i().string,defaultValue:i().string,onChange:i().func,disabled:i().bool,required:i().bool,helpText:i().string,error:i().bool,errorText:i().string,className:i().string};const p=s;export{s as TextInput,p as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see Textarea.js.LICENSE.txt */
6
- import{useId as e}from"react";var r={7261(e,r,o){var a=o(654);function t(){}function n(){}n.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,n,l){if(l!==a){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}},8433(e,r,o){e.exports=o(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var t=null;if(void 0!==a&&(t=""+a),void 0!==r.key&&(t=""+r.key),"key"in r)for(var n in a={},r)"key"!==n&&(a[n]=r[n]);else a=r;return r=a.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a},2783(e,r,o){e.exports=o(9755)}};const o={};function a(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{if(Array.isArray(r))for(var o=0;o<r.length;){var t=r[o++],n=r[o++];a.o(e,t)?0===n&&o++:0===n?Object.defineProperty(e,t,{enumerable:!0,value:r[o++]}):Object.defineProperty(e,t,{enumerable:!0,get:n})}else for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=a(8433),n=a.n(t),l=a(2783);function i({id:r,name:o,label:a,hideLabel:t=!1,placeholder:n,value:i,defaultValue:s,onChange:d,rows:c=4,cols:p,disabled:f=!1,required:m=!1,helpText:u,error:b=!1,errorText:y,className:g,...h}){const v=e(),x=r||v,j=u?`${x}-help`:void 0,T=b&&y?`${x}-error`:void 0,O=[j,T].filter(Boolean).join(" ")||void 0,_=["mg-form-textarea",f&&"mg-form-textarea--disabled",b&&"mg-form-textarea--error"].filter(Boolean).join(" "),P=["mg-form-label",t&&"mg-u-sr-only",f&&"mg-form-label--disabled",m&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,l.jsxs)("div",{className:["mg-form-field",g].filter(Boolean).join(" "),children:[a&&(0,l.jsx)("label",{className:P,htmlFor:x,children:a}),(0,l.jsx)("textarea",{className:_,id:x,name:o,placeholder:n,value:i,defaultValue:s,onChange:d,rows:c,cols:p,disabled:f,required:m,"aria-describedby":O,"aria-invalid":b||void 0,...a?{}:{"aria-label":n},...h}),u&&(0,l.jsx)("p",{className:"mg-form-help",id:j,children:u}),b&&y&&(0,l.jsx)("p",{className:"mg-form-error",id:T,role:"alert",children:y})]})}i.propTypes={id:n().string,name:n().string,label:n().string,hideLabel:n().bool,placeholder:n().string,value:n().string,defaultValue:n().string,onChange:n().func,rows:n().number,cols:n().number,disabled:n().bool,required:n().bool,helpText:n().string,error:n().bool,errorText:n().string,className:n().string};const s=i;export{i as Textarea,s as default};
6
+ import{useId as e}from"react";var r={2694(e,r,o){var a=o(6925);function t(){}function n(){}n.resetWarningCache=t,e.exports=function(){function e(e,r,o,t,n,l){if(l!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function r(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}},5556(e,r,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const o={};function a(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.cw=e=>{var r;return()=>{if(e){var o=e;e=0,r={exports:{}},o.call(r.exports,r,r.exports)}return r.exports}},a.d=(e,r)=>{for(var o in r)a.o(r,o)&&!a.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var t=a.cw(function(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var t=null;if(void 0!==a&&(t=""+a),void 0!==r.key&&(t=""+r.key),"key"in r)for(var n in a={},r)"key"!==n&&(a[n]=r[n]);else a=r;return r=a.ref,{$$typeof:o,type:e,key:t,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a}),n=a.cw(function(e,r){e.exports=t()}),l=a(5556),s=a.n(l);function i({id:r,name:o,label:a,hideLabel:n=!1,placeholder:l,value:s,defaultValue:i,onChange:c,rows:d=4,cols:p,disabled:f=!1,required:u=!1,helpText:m,error:b=!1,errorText:g,className:y,...x}){const h=e(),v=r||h,j=m?`${v}-help`:void 0,T=b&&g?`${v}-error`:void 0,O=[j,T].filter(Boolean).join(" ")||void 0,_=["mg-form-textarea",f&&"mg-form-textarea--disabled",b&&"mg-form-textarea--error"].filter(Boolean).join(" "),k=["mg-form-label",n&&"mg-u-sr-only",f&&"mg-form-label--disabled",u&&"mg-form-label--required"].filter(Boolean).join(" ");return(0,t().jsxs)("div",{className:["mg-form-field",y].filter(Boolean).join(" "),children:[a&&(0,t().jsx)("label",{className:k,htmlFor:v,children:a}),(0,t().jsx)("textarea",{className:_,id:v,name:o,placeholder:l,value:s,defaultValue:i,onChange:c,rows:d,cols:p,disabled:f,required:u,"aria-describedby":O,"aria-invalid":b||void 0,...a?{}:{"aria-label":l},...x}),m&&(0,t().jsx)("p",{className:"mg-form-help",id:j,children:m}),b&&g&&(0,t().jsx)("p",{className:"mg-form-error",id:T,role:"alert",children:g})]})}n(),i.propTypes={id:s().string,name:s().string,label:s().string,hideLabel:s().bool,placeholder:s().string,value:s().string,defaultValue:s().string,onChange:s().func,rows:s().number,cols:s().number,disabled:s().bool,required:s().bool,helpText:s().string,error:s().bool,errorText:s().string,className:s().string};const c=i;export{i as Textarea,c as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see UserFeedback.js.LICENSE.txt */
6
- import{useEffect as e,useRef as r,useState as n}from"react";var t={7261(e,r,n){var t=n(654);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,r,n,o,a,s){if(s!==t){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},8433(e,r,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,r){var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(e,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var a in t={},r)"key"!==a&&(t[a]=r[a]);else t=r;return r=t.ref,{$$typeof:n,type:e,key:o,ref:void 0!==r?r:null,props:t}}r.Fragment=t,r.jsx=o,r.jsxs=o},2783(e,r,n){e.exports=n(9755)}};const o={};function a(e){const r=o[e];if(void 0!==r)return r.exports;const n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.d=(e,r)=>{if(Array.isArray(r))for(var n=0;n<r.length;){var t=r[n++],o=r[n++];a.o(e,t)?0===o&&n++:0===o?Object.defineProperty(e,t,{enumerable:!0,value:r[n++]}):Object.defineProperty(e,t,{enumerable:!0,get:o})}else for(var t in r)a.o(r,t)&&!a.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var s=a(8433),i=a.n(s),c=a(2783);const f={question:"Is this page useful?",yes:"Yes",no:"No",reportIssue:"Report an issue on this page",confirmationBeforeLink:"Thank you for your feedback. If you would like, you can also",confirmationSeparator:" ",confirmationLink:"tell us more",confirmationAfterLink:"."},l=(...e)=>e.filter(Boolean).join(" "),u=({feedbackUrl:t="https://www.undrr.org/contact/website-feedback",labels:o={},onResponse:a,className:s,...i})=>{const[u,m]=n(null),p=r(null),d={...f,...o};return e(()=>{u&&p.current?.focus()},[u]),(0,c.jsx)("section",{className:l("mg-user-feedback","mg-container","mg-grid","mg-grid__col-2",s),"aria-label":d.question,"data-vf-google-analytics-region":"undrr-feedback-container",...i,children:u?(0,c.jsxs)("p",{"aria-live":"polite",className:"mg-user-feedback__confirmation","data-mg-user-feedback-message":!0,ref:p,tabIndex:"-1",children:[d.confirmationBeforeLink,d.confirmationSeparator,(0,c.jsx)("a",{"data-mg-user-feedback-form":!0,href:t,rel:"noopener noreferrer",target:"_blank",children:d.confirmationLink}),d.confirmationAfterLink]}):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsxs)("div",{className:"mg-user-feedback__prompt",children:[(0,c.jsx)("h2",{className:"mg-user-feedback__question",children:d.question}),(0,c.jsx)("div",{className:"mg-user-feedback__actions",children:["yes","no"].map(e=>(0,c.jsx)("button",{className:"mg-button mg-button-secondary","data-mg-user-feedback-prompt":!0,"data-mg-user-feedback-type":e,onClick:()=>(e=>{m(e),a?.(e)})(e),type:"button",children:d[e]},e))})]}),(0,c.jsx)("a",{className:"mg-user-feedback__issue","data-mg-user-feedback-form":!0,"data-mg-user-feedback-prompt":!0,"data-mg-user-feedback-type":"report-issue",href:t,children:d.reportIssue})]})})};u.propTypes={feedbackUrl:i().string,labels:i().shape({question:i().string,yes:i().string,no:i().string,reportIssue:i().string,confirmationBeforeLink:i().string,confirmationSeparator:i().string,confirmationLink:i().string,confirmationAfterLink:i().string}),onResponse:i().func,className:i().string};const m=u;function p(e){const{dataset:r}=e,n={question:r.question,yes:r.yesLabel,no:r.noLabel,reportIssue:r.reportIssueLabel,confirmationBeforeLink:r.confirmationBeforeLink,confirmationSeparator:r.confirmationSeparator,confirmationLink:r.confirmationLink,confirmationAfterLink:r.confirmationAfterLink};return{feedbackUrl:r.feedbackUrl||"https://www.undrr.org/contact/website-feedback",labels:Object.fromEntries(Object.entries(n).filter(([,e])=>void 0!==e))}}export{f as DEFAULT_USER_FEEDBACK_LABELS,m as default,p as fromElement};
6
+ import{useEffect as e,useRef as r,useState as n}from"react";var t={2694(e,r,n){var t=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,r,n,o,a,s){if(s!==t){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,r,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const o={};function a(e){const r=o[e];if(void 0!==r)return r.exports;const n=o[e]={exports:{}};return t[e](n,n.exports,a),n.exports}a.n=e=>{const r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},a.cw=e=>{var r;return()=>{if(e){var n=e;e=0,r={exports:{}},n.call(r.exports,r,r.exports)}return r.exports}},a.d=(e,r)=>{for(var n in r)a.o(r,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:r[n]})},a.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var s=a.cw(function(e,r){var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(e,r,t){var o=null;if(void 0!==t&&(o=""+t),void 0!==r.key&&(o=""+r.key),"key"in r)for(var a in t={},r)"key"!==a&&(t[a]=r[a]);else t=r;return r=t.ref,{$$typeof:n,type:e,key:o,ref:void 0!==r?r:null,props:t}}r.Fragment=t,r.jsx=o,r.jsxs=o}),i=a.cw(function(e,r){e.exports=s()}),c=a(5556),f=a.n(c);i();const l={question:"Is this page useful?",yes:"Yes",no:"No",reportIssue:"Report an issue on this page",confirmationBeforeLink:"Thank you for your feedback. If you would like, you can also",confirmationSeparator:" ",confirmationLink:"tell us more",confirmationAfterLink:"."},u=(...e)=>e.filter(Boolean).join(" "),p=({feedbackUrl:t="https://www.undrr.org/contact/website-feedback",labels:o={},onResponse:a,className:i,...c})=>{const[f,p]=n(null),m=r(null),d={...l,...o};return e(()=>{f&&m.current?.focus()},[f]),(0,s().jsx)("section",{className:u("mg-user-feedback","mg-container","mg-grid","mg-grid__col-2",i),"aria-label":d.question,"data-vf-google-analytics-region":"undrr-feedback-container",...c,children:f?(0,s().jsxs)("p",{"aria-live":"polite",className:"mg-user-feedback__confirmation","data-mg-user-feedback-message":!0,ref:m,tabIndex:"-1",children:[d.confirmationBeforeLink,d.confirmationSeparator,(0,s().jsx)("a",{"data-mg-user-feedback-form":!0,href:t,rel:"noopener noreferrer",target:"_blank",children:d.confirmationLink}),d.confirmationAfterLink]}):(0,s().jsxs)(s().Fragment,{children:[(0,s().jsxs)("div",{className:"mg-user-feedback__prompt",children:[(0,s().jsx)("h2",{className:"mg-user-feedback__question",children:d.question}),(0,s().jsx)("div",{className:"mg-user-feedback__actions",children:["yes","no"].map(e=>(0,s().jsx)("button",{className:"mg-button mg-button-secondary","data-mg-user-feedback-prompt":!0,"data-mg-user-feedback-type":e,onClick:()=>(e=>{p(e),a?.(e)})(e),type:"button",children:d[e]},e))})]}),(0,s().jsx)("a",{className:"mg-user-feedback__issue","data-mg-user-feedback-form":!0,"data-mg-user-feedback-prompt":!0,"data-mg-user-feedback-type":"report-issue",href:t,children:d.reportIssue})]})})};p.propTypes={feedbackUrl:f().string,labels:f().shape({question:f().string,yes:f().string,no:f().string,reportIssue:f().string,confirmationBeforeLink:f().string,confirmationSeparator:f().string,confirmationLink:f().string,confirmationAfterLink:f().string}),onResponse:f().func,className:f().string};const m=p;function d(e){const{dataset:r}=e,n={question:r.question,yes:r.yesLabel,no:r.noLabel,reportIssue:r.reportIssueLabel,confirmationBeforeLink:r.confirmationBeforeLink,confirmationSeparator:r.confirmationSeparator,confirmationLink:r.confirmationLink,confirmationAfterLink:r.confirmationAfterLink};return{feedbackUrl:r.feedbackUrl||"https://www.undrr.org/contact/website-feedback",labels:Object.fromEntries(Object.entries(n).filter(([,e])=>void 0!==e))}}export{l as DEFAULT_USER_FEEDBACK_LABELS,m as default,d as fromElement};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-09T07:00:30.610Z
3
+ * Compiled on: 2026-09-15T18:17:37.724Z
4
4
  */
5
5
  /*! For license information please see VerticalCard.js.LICENSE.txt */
6
- import*as e from"react";var t={7888(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(8433),o=n.n(r),a=n(2783);function i({label:e,Type:t="Primary",Variant:n="Default",Outline:r=!1,State:o="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===o,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===t?"secondary":"primary"),r&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),Variant:o().oneOf(["Default","CTA"]),Outline:o().bool,State:o().oneOf(["Default","Disabled"]),href:o().string,onClick:o().func,className:o().string}},7261(e,t,n){var r=n(654);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},8433(e,t,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},2783(e,t,n){e.exports=n(9755)},1649(e,t,n){e.exports=(()=>{const e={};return n.d(e,{}),e})()}};const n={};function r(e){const o=n[e];if(void 0!==o)return o.exports;const a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],a=t[n++];r.o(e,o)?0===a&&n++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r(1649);var o=r(8433),a=r.n(o);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(e){s=!0,o=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,s=Object.setPrototypeOf,u=Object.isFrozen,f=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor;let p=Object.freeze,d=Object.seal,h=Object.create,g="undefined"!=typeof Reflect&&Reflect,y=g.apply,b=g.construct;p||(p=function(e){return e}),d||(d=function(e){return e}),y||(y=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),b||(b=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const T=F(Array.prototype.forEach),S=F(Array.prototype.lastIndexOf),_=F(Array.prototype.pop),E=F(Array.prototype.push),N=F(Array.prototype.splice),A=Array.isArray,v=F(String.prototype.toLowerCase),O=F(String.prototype.toString),w=F(String.prototype.match),x=F(String.prototype.replace),k=F(String.prototype.indexOf),D=F(String.prototype.trim),R=F(Number.prototype.toString),C=F(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:F(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:F(Symbol.prototype.toString),M=F(Object.prototype.hasOwnProperty),P=F(Object.prototype.toString),z=F(RegExp.prototype.test),U=(j=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return b(j,t)});var j;function F(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(e,t,r)}}function H(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;if(s&&s(e,null),!A(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(u(t)||(t[r]=e),o=e)}e[o]=!0}return e}function B(e){for(let t=0;t<e.length;t++)M(e,t)||(e[t]=null);return e}function W(e){const t=h(null);for(const r of c(e)){var n=l(r,2);const o=n[0],a=n[1];M(e,o)&&(A(a)?t[o]=B(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=W(a):t[o]=a)}return t}function G(e,t){for(;null!==e;){const n=m(e,t);if(n){if(n.get)return F(n.get);if("function"==typeof n.value)return F(n.value)}e=f(e)}return function(){return null}}const Y=p(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=p(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),$=p(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=p(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=p(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),K=p(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=p(["#text"]),J=p(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Q=p(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ee=p(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),te=p(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ne=d(/{{[\w\W]*|^[\w\W]*}}/g),re=d(/<%[\w\W]*|^[\w\W]*%>/g),oe=d(/\${[\w\W]*/g),ae=d(/^data-[\-\w.\u00B7-\uFFFF]+$/),ie=d(/^aria-[\-\w]+$/),le=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=d(/^(?:\w+script|data):/i),se=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ue=d(/^html$/i),fe=d(/^[a-z][.\w]*(-[.\w]+)+$/i),me=d(/<[/\w!]/g),pe=d(/<[/\w]/g),de=d(/<\/no(script|embed|frames)/i),he=d(/\/>/i),ge=function(){return"undefined"==typeof window?null:window},ye=function(e,t,n,r){return M(e,t)&&A(e[t])?H(r.base?W(r.base):{},e[t],r.transform):n};var be=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ge();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,s=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,g=s.prototype,y=G(g,"cloneNode"),b=G(g,"remove"),j=G(g,"nextSibling"),F=G(g,"childNodes"),B=G(g,"parentNode"),be=G(g,"shadowRoot"),Te=G(g,"attributes"),Se=l&&l.prototype?G(l.prototype,"nodeType"):null,_e=l&&l.prototype?G(l.prototype,"nodeName"):null;if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Ee,Ne,Ae="",ve=!1,Oe=0;const we=function(){if(Oe>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},xe=function(e){we(),Oe++;try{return Ee.createHTML(e)}finally{Oe--}},ke=r,De=ke.implementation,Re=ke.createNodeIterator,Ce=ke.createDocumentFragment,Ie=ke.getElementsByTagName,Le=o.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof B&&De&&void 0!==De.createHTMLDocument;const Pe=ne,ze=re,Ue=oe,je=ae,Fe=ie,He=ce,Be=se,We=fe;let Ge=le,Ye=null;const qe=H({},[...Y,...q,...$,...V,...Z]);let $e=null;const Xe=H({},[...J,...Q,...ee,...te]);let Ve=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ke=null,Ze=null;const Je=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,rt=!1,ot=!0,at=!1,it=!1,lt=null,ct=null,st=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let _t=null;const Et=H({},["audio","video","img","source","image","track"]);let Nt=null;const At=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let xt=wt,kt=!1,Dt=null;const Rt=H({},[vt,Ot,wt],O),Ct=p(["mi","mo","mn","ms","mtext"]);let It=H({},Ct);const Lt=p(["annotation-xml"]);let Mt=H({},Lt);const Pt=H({},["title","style","font","a","script"]);let zt=null;const Ut=["application/xhtml+xml","text/html"];let jt=null,Ft=null;const Ht=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ft&&Ft===e)return;e&&"object"==typeof e||(e={}),e=W(e),zt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,jt="application/xhtml+xml"===zt?O:v,Ye=ye(e,"ALLOWED_TAGS",qe,{transform:jt}),$e=ye(e,"ALLOWED_ATTR",Xe,{transform:jt}),Dt=ye(e,"ALLOWED_NAMESPACES",Rt,{transform:O}),Nt=ye(e,"ADD_URI_SAFE_ATTR",At,{transform:jt,base:At}),_t=ye(e,"ADD_DATA_URI_TAGS",Et,{transform:jt,base:Et}),Tt=ye(e,"FORBID_CONTENTS",St,{transform:jt}),Ke=ye(e,"FORBID_TAGS",W({}),{transform:jt}),Ze=ye(e,"FORBID_ATTR",W({}),{transform:jt}),bt=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,ot=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,st=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return z(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,It=M(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?W(e.MATHML_TEXT_INTEGRATION_POINTS):H({},Ct),Mt=M(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):H({},Lt);const t=M(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):h(null);if(Ve=h(null),M(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ve.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ve.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ve.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),d(Ve),rt&&(et=!1),ft&&(ut=!0),bt&&(Ye=H({},Z),$e=h(null),!0===bt.html&&(H(Ye,Y),H($e,J)),!0===bt.svg&&(H(Ye,q),H($e,Q),H($e,te)),!0===bt.svgFilters&&(H(Ye,$),H($e,Q),H($e,te)),!0===bt.mathMl&&(H(Ye,V),H($e,ee),H($e,te))),Je.tagCheck=null,Je.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:A(e.ADD_TAGS)&&(Ye===qe&&(Ye=W(Ye)),H(Ye,e.ADD_TAGS,jt))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:A(e.ADD_ATTR)&&($e===Xe&&($e=W($e)),H($e,e.ADD_ATTR,jt))),M(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&H(Nt,e.ADD_URI_SAFE_ATTR,jt),M(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=W(Tt)),H(Tt,e.FORBID_CONTENTS,jt)),M(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=W(Tt)),H(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&H(Ye,["html","head","body"]),Ye.table&&(H(Ye,["tbody"]),delete Ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ee;Ee=e.TRUSTED_TYPES_POLICY;try{Ae=xe("")}catch(e){throw Ee=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ee=void 0,Ae=""):(void 0===Ee&&(ve||(Ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,a),ve=!0),Ee=Ne),Ee&&"string"==typeof Ae&&(Ae=xe("")));p&&p(e),Ft=e},Gt=H({},[...q,...$,...X]),Yt=H({},[...V,...K]),qt=function(e){E(n.removed,{element:e});try{B(e).removeChild(e)}catch(t){if(b(e),!B(e))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},$t=function(e){Kt(e);const t=F(e);if(t){const e=[];T(t,t=>{E(e,t)}),T(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Xt=function(e,t){try{E(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){E(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Vt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!$e[jt(o)])try{e.removeAttribute(o)}catch(e){}}},Kt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Vt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(st)e="<remove></remove>"+e;else{const t=w(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ee?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=De.createDocument(xt,"template",null);try{t.documentElement.innerHTML=kt?Ae:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),xt===wt?Ie.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return Re.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=x(e,Pe," "),e=x(e,ze," "),x(e,Ue," ")},en=function(e){var t;e.normalize();const n=Re.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=Qt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&T(o,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=_e?_e(e):null;return"string"==typeof t&&"form"===jt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==F(e))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function on(e,t,r){0!==e.length&&T(e,e=>{e.call(n,t,r,Ft)})}const an=function(e,t){if(on(Me.beforeSanitizeElements,e,null),e!==t&&null===B(e))return!0;if(tn(e))return qt(e),!0;const r=jt(_e?_e(e):e.nodeName);if(on(Me.uponSanitizeElement,e,{tagName:r,allowedTags:Ye}),e!==t&&null===B(e))return!0;if(function(e,t){return!!(ot&&e.hasChildNodes()&&!rn(e.firstElementChild)&&z(me,e.textContent)&&z(me,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!z(pe,e.data))}(e,r))return qt(e),!0;if(Ke[r]||!(Je.tagCheck instanceof Function&&Je.tagCheck(r))&&!Ye[r]){const t=function(e,t){if(!Ke[t]&&sn(t)){if(Ve.tagNameCheck instanceof RegExp&&z(Ve.tagNameCheck,t))return!1;if(Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=B(e),n=F(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=yt?n[r]:y(n[r],!0);t.insertBefore(o,j(e))}}return qt(e),!0}(e,r);return!1===t&&on(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=B(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=v(e.tagName),r=v(t.tagName);return!!Dt[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===wt?"svg"===e:t.namespaceURI===vt?"svg"===e&&("annotation-xml"===n||It[n]):Boolean(Gt[e])}(n,t,r):e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===wt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===wt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===vt&&!It[n])&&!Yt[e]&&(Pt[e]||!Gt[e])}(n,t,r):!("application/xhtml+xml"!==zt||!Dt[e.namespaceURI]))}(e))return qt(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&z(de,e.innerHTML))return qt(e),!0;if(rt&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(E(n.removed,{element:e.cloneNode()}),e.textContent=t)}return on(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(ot&&"patchsrc"===t)return!1;if(ot&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=$e[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&z(je,t));else if(Qe&&z(Fe,t));else if(o){if(Nt[t]);else if(z(Ge,x(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!_t[e])if(tt&&!z(He,x(n,Be,"")));else if(n)return!1}else if(!(sn(e)&&(Ve.tagNameCheck instanceof RegExp&&z(Ve.tagNameCheck,e)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(e))&&(Ve.attributeNameCheck instanceof RegExp&&z(Ve.attributeNameCheck,t)||Ve.attributeNameCheck instanceof Function&&Ve.attributeNameCheck(t,e))||"is"===t&&Ve.allowCustomizedBuiltInElements&&(Ve.tagNameCheck instanceof RegExp&&z(Ve.tagNameCheck,n)||Ve.tagNameCheck instanceof Function&&Ve.tagNameCheck(n))))return!1;return!0},cn=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!cn[v(e)]&&z(We,e)},un=function(e,t,n,r){if(Ee&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(r);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ee.createScriptURL(e)}finally{Oe--}}(r)}return r},fn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),tn(e)?qt(e):_(n.removed)}catch(n){Xt(t,e)}},mn=function(e){on(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0};let r=t.length;const o=jt(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,c=a.value,s=jt(i),u=c;let f="value"===i?u:D(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,on(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==s&&"name"!==s||0===k(f,ht)||(Xt(i,e),f=ht+f),ot&&z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&w(f,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&z(he,f)?Xt(i,e):(rt&&(f=Qt(f)),ln(o,s,f)?(f=un(o,s,l,f),f!==u&&fn(e,i,l,f)):Xt(i,e)))}on(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(on(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(on(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Se?Se(t):t.nodeType)){const e=be(t);nn(e)&&(dn(e),pn(e))}on(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=F(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=_e?_e(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(r){const e=be(n);nn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return C(e);case"bigint":return I?I(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return P(e);case"function":case"object":{if(null===e)return P(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:P(e)}return P(e)}}}(e)))throw U("dirty is not a string, aborting");if(!n.isSupported)return e;it?(Ye=lt,$e=ct):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=W(Ye)),Me.uponSanitizeAttribute.length>0&&($e=W($e)),n.removed=[];const c=yt&&"string"!=typeof e&&rn(e);if(c){!function(e){if(!ot)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&z(pe,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=jt(_e?_e(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=F(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=_e?_e(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ke[n])throw $t(e),U("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw $t(e),U("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw $t(e),t}}else if(rn(e))r=Zt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),dn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ee&&mt?xe(e):e;if(r=Zt(e),!r)return ut?null:mt?Ae:""}r&&st&&qt(r.firstChild);const s=c?e:r,u=Jt(s);try{for(;i=u.nextNode();)an(i,s),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw c&&($t(e),T(n.removed,e=>{e.element&&Kt(e.element)})),t}if(c)return T(n.removed,e=>{e.element&&Kt(e.element)}),rt&&en(e),e;if(ut){if(rt&&en(r),ft)for(l=Ce.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return($e.shadowroot||$e.shadowrootmode)&&(l=Le.call(o,l,!0)),l}let f=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&z(ue,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),rt&&(f=Qt(f)),Ee&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,ct=$e},n.clearConfig=function(){Ft=null,it=!1,lt=null,ct=null,Ee=Ne,Ae=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const r=jt(e),o=jt(t);return ln(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&M(Me,e)&&E(Me[e],t)},n.removeHook=function(e,t){if(M(Me,e)){if(void 0!==t){const n=S(Me[e],t);return-1===n?void 0:N(Me[e],n,1)[0]}return _(Me[e])}},n.removeHooks=function(e){M(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Te=r(7888),Se=r(2783);const _e=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function Ee({data:e,variant:t="primary",className:n}){const r=t&&"primary"!==t?`mg-card--${t}`:null;return(0,Se.jsx)(Se.Fragment,{children:e.map((e,t)=>(0,Se.jsxs)("article",{className:_e("mg-card","mg-card__vc",r,n),children:[e.imgback&&(0,Se.jsx)("div",{className:"mg-card__visual",children:(0,Se.jsx)("img",{src:e.imgback,alt:e.imgalt,className:"mg-card__image"})}),(0,Se.jsxs)("div",{className:"mg-card__content",children:[(e.label1||e.label2)&&(0,Se.jsxs)("div",{className:"mg-card__meta",children:[e.link&&e.label1&&(0,Se.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label1}),e.link&&e.label2&&(0,Se.jsx)("a",{href:e.link,className:"mg-card__label mg-card__label--active",children:e.label2})]}),(0,Se.jsx)("header",{className:"mg-card__title",children:(0,Se.jsx)("a",{href:e.link,target:e.target,rel:e.rel,children:e.title?.trim()})}),e.summaryText&&(0,Se.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:be.sanitize(e.summaryText)}}),e.button&&(0,Se.jsx)(Te.F,{Type:"Primary",Variant:"CTA",label:e.button,href:e.link,target:e.target,rel:e.rel})]})]},t))})}Ee.propTypes={data:a().arrayOf(a().shape({title:a().string.isRequired,link:a().string,target:a().string,rel:a().string,imgback:a().string,imgalt:a().string,summaryText:a().string,label1:a().string,label2:a().string,button:a().string})).isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{Ee as VerticalCard};
6
+ import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const a=e[r]={exports:{}};return t[r](a,a.exports,n),a.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var a in r={},e)"key"!==a&&(r[a]=e[a]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),a=n(5556),i=n.n(a);function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(t)).next,0===e);else for(;!(c=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return l(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const s=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,p=Object.getPrototypeOf,m=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(t){return t}),h||(h=function(t){return t}),b||(b=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),T||(T=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const S=H(Array.prototype.forEach),v=H(Array.prototype.lastIndexOf),A=H(Array.prototype.pop),w=H(Array.prototype.push),E=H(Array.prototype.splice),x=Array.isArray,_=H(String.prototype.toLowerCase),O=H(String.prototype.toString),N=H(String.prototype.match),k=H(String.prototype.replace),D=H(String.prototype.indexOf),C=H(String.prototype.trim),R=H(Number.prototype.toString),I=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),z="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),M=H(Object.prototype.hasOwnProperty),P=H(Object.prototype.toString),j=H(RegExp.prototype.test),U=(F=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return T(F,e)});var F;function H(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(t,e,r)}}function B(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;if(u&&u(t,null),!x(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(f(e)||(e[r]=t),o=t)}t[o]=!0}return t}function W(t){for(let e=0;e<t.length;e++)M(t,e)||(t[e]=null);return t}function Y(t){const e=g(null);for(const r of s(t)){var n=c(r,2);const o=n[0],a=n[1];M(t,o)&&(x(a)?e[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?e[o]=Y(a):e[o]=a)}return e}function G(t,e){for(;null!==t;){const n=m(t,e);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}t=p(t)}return function(){return null}}const q=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),V=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),tt=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),et=d(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),nt=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),rt=h(/{{[\w\W]*|^[\w\W]*}}/g),ot=h(/<%[\w\W]*|^[\w\W]*%>/g),at=h(/\${[\w\W]*/g),it=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),lt=h(/^aria-[\-\w]+$/),ct=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),st=h(/^(?:\w+script|data):/i),ut=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ft=h(/^html$/i),pt=h(/^[a-z][.\w]*(-[.\w]+)+$/i),mt=h(/<[/\w!]/g),dt=h(/<[/\w]/g),ht=h(/<\/no(script|embed|frames)/i),gt=h(/\/>/i),yt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],bt=d(B({},yt)),Tt=function(){const t={};return S(yt,e=>{t[e]=h(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),d(t)}(),St=function(){return"undefined"==typeof window?null:window},vt=function(t,e,n,r){return M(t,e)&&x(t[e])?B(r.base?Y(r.base):{},t[e],r.transform):n},At=function(t,e,n){const r=M(t,e)?t[e]:void 0;return r&&"object"==typeof r?Y(r):n()};var wt=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:St();const n=e=>t(e);if(n.version="3.4.15",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,a=o.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const f=e.DOMParser,p=e.trustedTypes,m=c.prototype,y=G(m,"cloneNode"),b=G(m,"remove"),T=G(m,"removeAttributeNode"),F=G(m,"nextSibling"),H=G(m,"childNodes"),W=G(m,"parentNode"),yt=G(m,"shadowRoot"),wt=G(m,"attributes"),Et=l&&l.prototype?G(l.prototype,"nodeType"):null,xt=l&&l.prototype?G(l.prototype,"nodeName"):null,_t=l&&l.prototype?G(l.prototype,"ownerDocument"):null,Ot=function(t){return Et?Et(t):t.nodeType},Nt=function(t){return xt?xt(t):t.nodeName};if("function"==typeof i){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let kt,Dt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw U('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},zt=function(t){Lt(),It++;try{return kt.createHTML(t)}finally{It--}},Mt=r,Pt=Mt.implementation,jt=Mt.createNodeIterator,Ut=Mt.createDocumentFragment,Ft=Mt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof W&&Pt&&void 0!==Pt.createHTMLDocument;const Wt=rt,Yt=ot,Gt=at,qt=it,$t=lt,Vt=st,Xt=ut,Kt=pt;let Zt=ct,Jt=null;const Qt=B({},[...q,...$,...V,...K,...J]);let te=null;const ee=B({},[...Q,...tt,...et,...nt]);let ne=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ae=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ge=!1,ye=!1,be=!1,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let we=!0,Ee=!1,xe={},_e=null;const Oe=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ne=null;const ke=B({},["audio","video","img","source","image","track"]);let De=null;const Ce=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let ze=Le,Me=!1,Pe=null;const je=B({},[Re,Ie,Le],O),Ue=d(["mi","mo","mn","ms","mtext"]);let Fe=B({},Ue);const He=d(["annotation-xml"]);let Be=B({},He);const We=B({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Ve=r.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=Y(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?O:_,Jt=vt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=vt(t,"ALLOWED_ATTR",ee,{transform:qe}),Pe=vt(t,"ALLOWED_NAMESPACES",je,{transform:O}),De=vt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),Ne=vt(t,"ADD_DATA_URI_TAGS",ke,{transform:qe,base:ke}),_e=vt(t,"FORBID_CONTENTS",Oe,{transform:qe}),re=vt(t,"FORBID_TAGS",Y({}),{transform:qe}),oe=vt(t,"FORBID_ATTR",Y({}),{transform:qe}),xe=!!M(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?Y(t.USE_PROFILES):t.USE_PROFILES),ie=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ye=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Te=t.RETURN_TRUSTED_TYPE||!1,ge=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,Ee=t.IN_PLACE||!1,Zt=function(t){try{return j(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ct,ze="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=At(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>B({},Ue)),Be=At(t,"HTML_INTEGRATION_POINTS",()=>B({},He));const e=At(t,"CUSTOM_ELEMENT_HANDLING",()=>g(null));if(ne=g(null),M(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),M(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),M(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),h(ne),ue&&(le=!1),be&&(ye=!0),xe&&(Jt=B({},J),te=g(null),!0===xe.html&&(B(Jt,q),B(te,Q)),!0===xe.svg&&(B(Jt,$),B(te,tt),B(te,nt)),!0===xe.svgFilters&&(B(Jt,V),B(te,tt),B(te,nt)),!0===xe.mathMl&&(B(Jt,K),B(te,et),B(te,nt))),ae.tagCheck=null,ae.attributeCheck=null,M(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ae.tagCheck=t.ADD_TAGS:x(t.ADD_TAGS)&&(Jt===Qt&&(Jt=Y(Jt)),B(Jt,t.ADD_TAGS,qe))),M(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ae.attributeCheck=t.ADD_ATTR:x(t.ADD_ATTR)&&(te===ee&&(te=Y(te)),B(te,t.ADD_ATTR,qe))),M(t,"ADD_FORBID_CONTENTS")&&x(t.ADD_FORBID_CONTENTS)&&(_e===Oe&&(_e=Y(_e)),B(_e,t.ADD_FORBID_CONTENTS,qe)),we&&(Jt["#text"]=!0),pe&&B(Jt,["html","head","body"]),Jt.table&&(B(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw U('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=kt;kt=t.TRUSTED_TYPES_POLICY;try{Ct=zt("")}catch(t){throw kt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(kt=void 0,Ct=""):(void 0===kt&&(Rt||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,a),Rt=!0),kt=Dt),kt&&"string"==typeof Ct&&(Ct=zt("")));d&&d(t),$e=t},Ze=B({},[...$,...V,...X]),Je=B({},[...K,...Z]),Qe=function(t){w(n.removed,{element:t});try{W(t).removeChild(t)}catch(e){if(b(t),!W(t))throw U("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=H(t);if(e){const t=[];S(e,e=>{w(t,e)}),S(t,t=>{try{b(t)}catch(t){}})}const n=wt(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}w(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ye||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=wt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[qe(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Ot(t)&&rn(t);const n=H(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ge)t="<remove></remove>"+t;else{const e=N(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&ze===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=kt?zt(t):t;if(ze===Le)try{e=(new f).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Pt.createDocument(ze,"template",null);try{e.documentElement.innerHTML=Me?Ct:o}catch(t){}}const a=e.body||e.documentElement;return t&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ze===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:a},cn=function(t){const e=_t?_t(t):t.ownerDocument;return jt.call(e||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},sn=function(t){return t=k(t,Wt," "),t=k(t,Yt," "),k(t,Gt," ")},un=function(t){var e;t.normalize();const n=_t?_t(t):t.ownerDocument,r=jt.call(n||t,t,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const a=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");a&&S(a,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=xt?xt(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==wt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Et(t)||t.childNodes!==H(t))},pn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return 11===Et(t)}catch(t){return!1}},mn=function(t){if(!Et||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Et(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&S(t,t=>{t.call(n,e,r,$e)})}const hn=function(t,e){if(t instanceof RegExp)return j(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},gn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?Y(e):e},yn=function(t,e){return t!==e&&null===W(t)&&(Ee&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),yn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=qe(Nt(t));if(Jt=gn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),yn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&j(mt,t.textContent)&&j(mt,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&bt[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&j(Tt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!j(dt,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ae.tagCheck instanceof Function&&ae.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!_e[e]){const e=W(t),r=H(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const a=t===n?y(r[o],!0):r[o];e.insertBefore(a,F(t))}}return Qe(t),!0}(t,r,e);return!1===n&&dn(Bt.afterSanitizeElements,t,null),n}if(1===Ot(t)&&!function(t){let e=W(t);e&&e.tagName||(e={namespaceURI:ze,tagName:"template"});const n=_(t.tagName),r=_(e.tagName);return!!Pe[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Re?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Re&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Pe[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&j(ht,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(w(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),!1},Tn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Se&&("id"===e||"name"===e)&&(n in r||n in Ve))return!1;const o=te[e]||ae.attributeCheck instanceof Function&&ae.attributeCheck(e,t);return!(!le||!j(qt,e))||!(!ie||!j($t,e))||(o?!(!De[e]&&!j(Zt,k(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==D(n,"data:")||!Ne[t])&&(!ce||j(Vt,k(n,Xt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(t){return!Sn[_(t)]&&j(Kt,t)},An=function(t,e,n,r){if(kt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return zt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return kt.createScriptURL(t)}finally{It--}}(r)}return r},wn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},En=function(t){dn(Bt.beforeSanitizeAttributes,t,null);const e=t.attributes;if(!e||fn(t))return;te=gn(Bt.uponSanitizeAttribute,te,ee,he);const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let o=e.length;const a=qe(t.nodeName);for(;o--;){const i=e[o],l=i.name,c=i.namespaceURI,s=i.value,u=qe(l),f=s;let p="value"===l?f:C(f),m=!1;r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,r),p=r.attrValue,!ve||"id"!==u&&"name"!==u||0===D(p,Ae)||(nn(l,t,i),p=Ae+p,m=!0),fe&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&N(p,"href")?nn(l,t,i):r.forceKeepAttr||(r.keepAttr&&(se||!j(gt,p))?(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&A(n.removed)):nn(l,t,i)):nn(l,t,i))}dn(Bt.afterSanitizeAttributes,t,null)},xn=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),En(e),pn(e.content)&&xn(e.content),1===Ot(e)){const t=yt(e);pn(t)&&(_n(t),xn(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},_n=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){xn(t.shadow);continue}const n=t.node,r=1===Ot(n),o=H(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=xt?xt(n):null;if("string"==typeof t&&"template"===qe(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=yt(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(Me=!t,Me&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return R(t);case"boolean":return I(t);case"bigint":return L?L(t):"0";case"symbol":return z?z(t):"Symbol()";case"undefined":default:return P(t);case"function":case"object":{if(null===t)return P(t);const e=t,n=G(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:P(t)}return P(t)}}}(t)))throw U("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ke(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=Y(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=Y(te)),n.removed=[];const c=Ee&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ot(t);if(7===n||8===n&&j(dt,t.data)){try{b(t)}catch(t){}continue}if(1===n){const e=t,n=qe(Nt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=H(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=Nt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||re[n])throw en(t),U("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),U("root node is clobbered and cannot be sanitized in-place");try{_n(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),a=r.ownerDocument.importNode(t,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),_n(r);else{if(!ye&&!ue&&!pe&&-1===t.indexOf("<"))return kt&&Te?zt(t):t;if(r=ln(t),!r)return ye?null:Te?Ct:""}r&&ge&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;i=t.nextNode();)bn(i,s),En(i),pn(i.content)&&xn(i.content)}catch(e){throw c&&(en(t),S(n.removed,t=>{t.element&&on(t.element)})),e}if(c)return S(n.removed,t=>{t.element&&on(t.element)}),ue&&un(t),t;if(ye){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&j(ft,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),kt&&Te?zt(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,kt=Dt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ke({});const r=qe(t),o=qe(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&M(Bt,t)&&w(Bt[t],e)},n.removeHook=function(t,e){if(M(Bt,t)){if(void 0!==e){const n=v(Bt[t],e);return-1===n?void 0:E(Bt[t],n,1)[0]}return A(Bt[t])}},n.removeHooks=function(t){M(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Et({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:a="Default",href:i="#",onClick:l,className:c,...s}){const u="Disabled"===a,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:i,onClick:l},children:t})}function xt(t){return"string"==typeof t&&""!==t.trim()?t:null}function _t({title:t,link:e=null,target:n,rel:o}){const a=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:a}):a})}function Ot({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),Et.propTypes={label:i().string.isRequired,Type:i().oneOf(["Primary","Secondary"]),Variant:i().oneOf(["Default","CTA"]),Outline:i().bool,State:i().oneOf(["Default","Disabled"]),href:i().string,onClick:i().func,className:i().string},_t.propTypes={title:i().string,link:i().string,target:i().string,rel:i().string},Ot.propTypes={label:i().string,link:i().string};const Nt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function kt({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const a=xt(t.link),i=xt(t.buttonLink)??a;return(0,r().jsxs)("article",{className:Nt("mg-card","mg-card__vc",o,!a&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Ot,{label:t.label1,link:a}),(0,r().jsx)(Ot,{label:t.label2,link:a})]}),(0,r().jsx)(_t,{title:t.title,link:a,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:wt.sanitize(t.summaryText)}}),t.button&&i&&(0,r().jsx)(Et,{Type:"Primary",Variant:"CTA",label:t.button,href:i,target:t.target,rel:t.rel})]})]},e)})})}kt.propTypes={data:i().arrayOf(i().shape({title:i().string.isRequired,link:i().string,target:i().string,rel:i().string,imgback:i().string,imgalt:i().string,summaryText:i().string,label1:i().string,label2:i().string,button:i().string,buttonLink:i().string})).isRequired,variant:i().oneOf(["primary","secondary","tertiary","quaternary"]),className:i().string};export{kt as VerticalCard};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */
1
+ /*! @license DOMPurify 3.4.15 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.15/LICENSE */
2
2
 
3
3
  /**
4
4
  * @license React