@undrr/undrr-mangrove 1.8.0 → 1.8.1

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 (54) hide show
  1. package/README.md +28 -4
  2. package/components/BookCard.js +2 -2
  3. package/components/BookCard.js.LICENSE.txt +1 -1
  4. package/components/Breadcrumbs.js +1 -1
  5. package/components/Checkbox.js +1 -1
  6. package/components/Chips.js +1 -1
  7. package/components/CtaButton.js +1 -1
  8. package/components/EmbedContainer.js +1 -1
  9. package/components/Footer.js +1 -1
  10. package/components/FormErrorSummary.js +1 -1
  11. package/components/FormGroup.js +1 -1
  12. package/components/FullWidth.js +1 -1
  13. package/components/Gallery.js +1 -1
  14. package/components/Hero.js +1 -1
  15. package/components/HighlightBox.js +1 -1
  16. package/components/HorizontalBookCard.js +2 -2
  17. package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
  18. package/components/HorizontalCard.js +2 -2
  19. package/components/HorizontalCard.js.LICENSE.txt +1 -1
  20. package/components/IconCard.js +2 -2
  21. package/components/IconCard.js.LICENSE.txt +1 -1
  22. package/components/Loader.js +1 -1
  23. package/components/MegaMenu.js +1 -1
  24. package/components/PageHeader.js +1 -1
  25. package/components/Pager.js +1 -1
  26. package/components/QuoteHighlight.js +1 -1
  27. package/components/Radio.js +1 -1
  28. package/components/ScrollContainer.js +1 -1
  29. package/components/Select.js +1 -1
  30. package/components/ShareButtons.js +1 -1
  31. package/components/ShowMore.js +1 -1
  32. package/components/StatsCard.js +2 -2
  33. package/components/StatsCard.js.LICENSE.txt +1 -1
  34. package/components/SyndicationSearchWidget.js +2 -2
  35. package/components/Tab.js +1 -1
  36. package/components/TextCta.js +2 -2
  37. package/components/TextCta.js.LICENSE.txt +1 -1
  38. package/components/TextInput.js +1 -1
  39. package/components/Textarea.js +1 -1
  40. package/components/VerticalCard.js +2 -2
  41. package/components/VerticalCard.js.LICENSE.txt +1 -1
  42. package/components/hydrate.js +1 -1
  43. package/error-pages/401.html +1 -1
  44. package/error-pages/403.html +1 -1
  45. package/error-pages/404.html +1 -1
  46. package/error-pages/429.html +1 -1
  47. package/error-pages/500.html +1 -1
  48. package/error-pages/502.html +1 -1
  49. package/error-pages/503.html +1 -1
  50. package/error-pages/504.html +1 -1
  51. package/error-pages/5xx.html +1 -1
  52. package/error-pages/challenge.html +1 -1
  53. package/error-pages/managed-challenge.html +1 -1
  54. package/package.json +1 -1
@@ -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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see IconCard.js.LICENSE.txt */
6
- import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},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"},9698(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},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},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),r(1649);var o=r(5556),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,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let f=Object.freeze,d=Object.seal,g=Object.create,h="undefined"!=typeof Reflect&&Reflect,y=h.apply,T=h.construct;f||(f=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)}),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 b=U(Array.prototype.forEach),_=U(Array.prototype.lastIndexOf),S=U(Array.prototype.pop),A=U(Array.prototype.push),N=U(Array.prototype.splice),E=Array.isArray,O=U(String.prototype.toLowerCase),v=U(String.prototype.toString),x=U(String.prototype.match),D=U(String.prototype.replace),R=U(String.prototype.indexOf),k=U(String.prototype.trim),w=U(Number.prototype.toString),C=U(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:U(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:U(Symbol.prototype.toString),M=U(Object.prototype.hasOwnProperty),F=U(Object.prototype.toString),P=U(RegExp.prototype.test),j=(z=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(z,t)});var z;function U(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]:O;if(s&&s(e,null),!E(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=g(null);for(const r of c(e)){var n=l(r,2);const o=n[0],a=n[1];M(e,o)&&(E(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=p(e,t);if(n){if(n.get)return U(n.get);if("function"==typeof n.value)return U(n.value)}e=m(e)}return function(){return null}}const Y=f(["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"]),$=f(["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"]),q=f(["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=f(["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=f(["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"]),V=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z=f(["#text"]),J=f(["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=f(["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","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-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=f(["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=f(["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),me=d(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=function(){return"undefined"==typeof window?null:window};var fe=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pe();const n=t=>e(t);if(n.version="3.4.5",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,i=t.DocumentFragment,l=t.HTMLTemplateElement,s=t.Node,u=t.Element,m=t.NodeFilter,p=t.NamedNodeMap,d=void 0===p?t.NamedNodeMap||t.MozNamedAttrMap:p,h=t.HTMLFormElement,y=t.DOMParser,T=t.trustedTypes,z=u.prototype,U=G(z,"cloneNode"),B=G(z,"remove"),fe=G(z,"nextSibling"),de=G(z,"childNodes"),ge=G(z,"parentNode"),he=s&&s.prototype?G(s.prototype,"nodeType"):null;if("function"==typeof l){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ye,Te="";const be=r,_e=be.implementation,Se=be.createNodeIterator,Ae=be.createDocumentFragment,Ne=be.getElementsByTagName,Ee=o.importNode;let Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof ge&&_e&&void 0!==_e.createHTMLDocument;const ve=ne,xe=re,De=oe,Re=ae,ke=ie,we=ce,Ce=se,Ie=me;let Le=le,Me=null;const Fe=H({},[...Y,...$,...q,...K,...Z]);let Pe=null;const je=H({},[...J,...Q,...ee,...te]);let ze=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}})),Ue=null,He=null;const Be=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let We=!0,Ge=!0,Ye=!1,$e=!0,qe=!1,Xe=!0,Ke=!1,Ve=!1,Ze=!1,Je=!1,Qe=!1,et=!1,tt=!0,nt=!1;const rt="user-content-";let ot=!0,at=!1,it={},lt=null;const ct=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let st=null;const ut=H({},["audio","video","img","source","image","track"]);let mt=null;const pt=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",dt="http://www.w3.org/2000/svg",gt="http://www.w3.org/1999/xhtml";let ht=gt,yt=!1,Tt=null;const bt=H({},[ft,dt,gt],v);let _t=H({},["mi","mo","mn","ms","mtext"]),St=H({},["annotation-xml"]);const At=H({},["title","style","font","a","script"]);let Nt=null;const Et=["application/xhtml+xml","text/html"];let Ot=null,vt=null;const xt=r.createElement("form"),Dt=function(e){return e instanceof RegExp||e instanceof Function},Rt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(vt&&vt===e)return;e&&"object"==typeof e||(e={}),e=W(e),Nt=-1===Et.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ot="application/xhtml+xml"===Nt?v:O,Me=M(e,"ALLOWED_TAGS")&&E(e.ALLOWED_TAGS)?H({},e.ALLOWED_TAGS,Ot):Fe,Pe=M(e,"ALLOWED_ATTR")&&E(e.ALLOWED_ATTR)?H({},e.ALLOWED_ATTR,Ot):je,Tt=M(e,"ALLOWED_NAMESPACES")&&E(e.ALLOWED_NAMESPACES)?H({},e.ALLOWED_NAMESPACES,v):bt,mt=M(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)?H(W(pt),e.ADD_URI_SAFE_ATTR,Ot):pt,st=M(e,"ADD_DATA_URI_TAGS")&&E(e.ADD_DATA_URI_TAGS)?H(W(ut),e.ADD_DATA_URI_TAGS,Ot):ut,lt=M(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)?H({},e.FORBID_CONTENTS,Ot):ct,Ue=M(e,"FORBID_TAGS")&&E(e.FORBID_TAGS)?H({},e.FORBID_TAGS,Ot):W({}),He=M(e,"FORBID_ATTR")&&E(e.FORBID_ATTR)?H({},e.FORBID_ATTR,Ot):W({}),it=!!M(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?W(e.USE_PROFILES):e.USE_PROFILES),We=!1!==e.ALLOW_ARIA_ATTR,Ge=!1!==e.ALLOW_DATA_ATTR,Ye=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$e=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,qe=e.SAFE_FOR_TEMPLATES||!1,Xe=!1!==e.SAFE_FOR_XML,Ke=e.WHOLE_DOCUMENT||!1,Je=e.RETURN_DOM||!1,Qe=e.RETURN_DOM_FRAGMENT||!1,et=e.RETURN_TRUSTED_TYPE||!1,Ze=e.FORCE_BODY||!1,tt=!1!==e.SANITIZE_DOM,nt=e.SANITIZE_NAMED_PROPS||!1,ot=!1!==e.KEEP_CONTENT,at=e.IN_PLACE||!1,Le=function(e){try{return P(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:le,ht="string"==typeof e.NAMESPACE?e.NAMESPACE:gt,_t=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({},["mi","mo","mn","ms","mtext"]),St=M(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?W(e.HTML_INTEGRATION_POINTS):H({},["annotation-xml"]);const t=M(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?W(e.CUSTOM_ELEMENT_HANDLING):g(null);if(ze=g(null),M(t,"tagNameCheck")&&Dt(t.tagNameCheck)&&(ze.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Dt(t.attributeNameCheck)&&(ze.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ze.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),qe&&(Ge=!1),Qe&&(Je=!0),it&&(Me=H({},Z),Pe=g(null),!0===it.html&&(H(Me,Y),H(Pe,J)),!0===it.svg&&(H(Me,$),H(Pe,Q),H(Pe,te)),!0===it.svgFilters&&(H(Me,q),H(Pe,Q),H(Pe,te)),!0===it.mathMl&&(H(Me,K),H(Pe,ee),H(Pe,te))),Be.tagCheck=null,Be.attributeCheck=null,M(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Be.tagCheck=e.ADD_TAGS:E(e.ADD_TAGS)&&(Me===Fe&&(Me=W(Me)),H(Me,e.ADD_TAGS,Ot))),M(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Be.attributeCheck=e.ADD_ATTR:E(e.ADD_ATTR)&&(Pe===je&&(Pe=W(Pe)),H(Pe,e.ADD_ATTR,Ot))),M(e,"ADD_URI_SAFE_ATTR")&&E(e.ADD_URI_SAFE_ATTR)&&H(mt,e.ADD_URI_SAFE_ATTR,Ot),M(e,"FORBID_CONTENTS")&&E(e.FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.FORBID_CONTENTS,Ot)),M(e,"ADD_FORBID_CONTENTS")&&E(e.ADD_FORBID_CONTENTS)&&(lt===ct&&(lt=W(lt)),H(lt,e.ADD_FORBID_CONTENTS,Ot)),ot&&(Me["#text"]=!0),Ke&&H(Me,["html","head","body"]),Me.table&&(H(Me,["tbody"]),delete Ue.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.');ye=e.TRUSTED_TYPES_POLICY,Te=ye.createHTML("")}else void 0===ye&&(ye=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}}(T,a)),null!==ye&&"string"==typeof Te&&(Te=ye.createHTML(""));f&&f(e),vt=e},kt=H({},[...$,...q,...X]),wt=H({},[...K,...V]),Ct=function(e){A(n.removed,{element:e});try{ge(e).removeChild(e)}catch(t){B(e)}},It=function(e,t){try{A(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){A(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Je||Qe)try{Ct(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Lt=function(e){let t=null,n=null;if(Ze)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Nt&&ht===gt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=ye?ye.createHTML(e):e;if(ht===gt)try{t=(new y).parseFromString(o,Nt)}catch(e){}if(!t||!t.documentElement){t=_e.createDocument(ht,"template",null);try{t.documentElement.innerHTML=yt?Te:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ht===gt?Ne.call(t,Ke?"html":"body")[0]:Ke?t.documentElement:a},Mt=function(e){return Se.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT|m.SHOW_PROCESSING_INSTRUCTION|m.SHOW_CDATA_SECTION,null)},Ft=function(e){e.normalize();const t=Se.call(e.ownerDocument||e,e,m.SHOW_TEXT|m.SHOW_COMMENT|m.SHOW_CDATA_SECTION|m.SHOW_PROCESSING_INSTRUCTION,null);let n=t.nextNode();for(;n;){let e=n.data;b([ve,xe,De],t=>{e=D(e,t," ")}),n.data=e,n=t.nextNode()}},Pt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},jt=function(e){if(!he||"object"!=typeof e||null===e)return!1;try{return"number"==typeof he(e)}catch(e){return!1}};function zt(e,t,r){b(e,e=>{e.call(n,t,r,vt)})}const Ut=function(e){let t=null;if(zt(Oe.beforeSanitizeElements,e,null),Pt(e))return Ct(e),!0;const r=Ot(e.nodeName);if(zt(Oe.uponSanitizeElement,e,{tagName:r,allowedTags:Me}),Xe&&e.hasChildNodes()&&!jt(e.firstElementChild)&&P(/<[/\w!]/g,e.innerHTML)&&P(/<[/\w!]/g,e.textContent))return Ct(e),!0;if(Xe&&e.namespaceURI===gt&&"style"===r&&jt(e.firstElementChild))return Ct(e),!0;if(7===e.nodeType)return Ct(e),!0;if(Xe&&8===e.nodeType&&P(/<[/\w]/g,e.data))return Ct(e),!0;if(Ue[r]||!(Be.tagCheck instanceof Function&&Be.tagCheck(r))&&!Me[r]){if(!Ue[r]&&Wt(r)){if(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,r))return!1;if(ze.tagNameCheck instanceof Function&&ze.tagNameCheck(r))return!1}if(ot&&!lt[r]){const t=ge(e)||e.parentNode,n=de(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const o=U(n[r],!0);t.insertBefore(o,fe(e))}}return Ct(e),!0}return e instanceof u&&!function(e){let t=ge(e);t&&t.tagName||(t={namespaceURI:ht,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Tt[e.namespaceURI]&&(e.namespaceURI===dt?t.namespaceURI===gt?"svg"===n:t.namespaceURI===ft?"svg"===n&&("annotation-xml"===r||_t[r]):Boolean(kt[n]):e.namespaceURI===ft?t.namespaceURI===gt?"math"===n:t.namespaceURI===dt?"math"===n&&St[r]:Boolean(wt[n]):e.namespaceURI===gt?!(t.namespaceURI===dt&&!St[r])&&!(t.namespaceURI===ft&&!_t[r])&&!wt[n]&&(At[n]||!kt[n]):!("application/xhtml+xml"!==Nt||!Tt[e.namespaceURI]))}(e)?(Ct(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!P(/<\/no(script|embed|frames)/i,e.innerHTML)?(qe&&3===e.nodeType&&(t=e.textContent,b([ve,xe,De],e=>{t=D(t,e," ")}),e.textContent!==t&&(A(n.removed,{element:e.cloneNode()}),e.textContent=t)),zt(Oe.afterSanitizeElements,e,null),!1):(Ct(e),!0)},Ht=function(e,t,n){if(He[t])return!1;if(tt&&("id"===t||"name"===t)&&(n in r||n in xt))return!1;const o=Pe[t]||Be.attributeCheck instanceof Function&&Be.attributeCheck(t,e);if(Ge&&!He[t]&&P(Re,t));else if(We&&P(ke,t));else if(!o||He[t]){if(!(Wt(e)&&(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,e)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(e))&&(ze.attributeNameCheck instanceof RegExp&&P(ze.attributeNameCheck,t)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(t,e))||"is"===t&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&P(ze.tagNameCheck,n)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(n))))return!1}else if(mt[t]);else if(P(Le,D(n,Ce,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!st[e])if(Ye&&!P(we,D(n,Ce,"")));else if(n)return!1;return!0},Bt=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Wt=function(e){return!Bt[O(e)]&&P(Ie,e)},Gt=function(e){zt(Oe.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||Pt(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Pe,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],i=a.name,l=a.namespaceURI,c=a.value,s=Ot(i),u=c;let m="value"===i?u:k(u);if(r.attrName=s,r.attrValue=m,r.keepAttr=!0,r.forceKeepAttr=void 0,zt(Oe.uponSanitizeAttribute,e,r),m=r.attrValue,!nt||"id"!==s&&"name"!==s||0===R(m,rt)||(It(i,e),m=rt+m),Xe&&P(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)){It(i,e);continue}if("attributename"===s&&x(m,"href")){It(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){It(i,e);continue}if(!$e&&P(/\/>/i,m)){It(i,e);continue}qe&&b([ve,xe,De],e=>{m=D(m,e," ")});const p=Ot(e.nodeName);if(Ht(p,s,m)){if(ye&&"object"==typeof T&&"function"==typeof T.getAttributeType)if(l);else switch(T.getAttributeType(p,s)){case"TrustedHTML":m=ye.createHTML(m);break;case"TrustedScriptURL":m=ye.createScriptURL(m)}if(m!==u)try{l?e.setAttributeNS(l,i,m):e.setAttribute(i,m),Pt(e)?Ct(e):S(n.removed)}catch(t){It(i,e)}}else It(i,e)}zt(Oe.afterSanitizeAttributes,e,null)},Yt=function(e){let t=null;const n=Mt(e);for(zt(Oe.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)zt(Oe.uponSanitizeShadowNode,t,null),Ut(t),Gt(t),t.content instanceof i&&Yt(t.content);zt(Oe.afterSanitizeShadowDOM,e,null)},$t=function(e){if(1===e.nodeType&&e.shadowRoot instanceof i){const t=e.shadowRoot;$t(t),Yt(t)}const t=e.childNodes;if(!t)return;const n=[];b(t,e=>{A(n,e)});for(const e of n)$t(e)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,l=null,c=null;if(yt=!e,yt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!jt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return w(e);case"boolean":return C(e);case"bigint":return I?I(e):"0";case"symbol":return L?L(e):"Symbol()";case"undefined":default:return F(e);case"function":case"object":{if(null===e)return F(e);const t=e,n=G(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:F(e)}return F(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;if(Ve||Rt(t),n.removed=[],"string"==typeof e&&(at=!1),at){const t=e.nodeName;if("string"==typeof t){const e=Ot(t);if(!Me[e]||Ue[e])throw j("root node is forbidden and cannot be sanitized in-place")}$t(e)}else if(jt(e))r=Lt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),$t(a);else{if(!Je&&!qe&&!Ke&&-1===e.indexOf("<"))return ye&&et?ye.createHTML(e):e;if(r=Lt(e),!r)return Je?null:et?Te:""}r&&Ze&&Ct(r.firstChild);const s=Mt(at?e:r);for(;l=s.nextNode();)Ut(l),Gt(l),l.content instanceof i&&Yt(l.content);if(at)return qe&&Ft(e),e;if(Je){if(qe&&Ft(r),Qe)for(c=Ae.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(Pe.shadowroot||Pe.shadowrootmode)&&(c=Ee.call(o,c,!0)),c}let u=Ke?r.outerHTML:r.innerHTML;return Ke&&Me["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&P(ue,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),qe&&b([ve,xe,De],e=>{u=D(u,e," ")}),ye&&et?ye.createHTML(u):u},n.setConfig=function(){Rt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Ve=!0},n.clearConfig=function(){vt=null,Ve=!1},n.isValidAttribute=function(e,t,n){vt||Rt({});const r=Ot(e),o=Ot(t);return Ht(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&A(Oe[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=_(Oe[e],t);return-1===n?void 0:N(Oe[e],n,1)[0]}return S(Oe[e])},n.removeHooks=function(e){Oe[e]=[]},n.removeAllHooks=function(){Oe={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),de=r(6145),ge=r(4848);const he=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function ye({item:e}){return e.imgback?(0,ge.jsx)("img",{src:e.imgback,alt:e.imgalt||"",className:he("mg-card__image",e.imageScale&&`mg-card__image--${e.imageScale}`),...!e.imageScale&&{width:e.iconSize||72,height:e.iconSize||72}}):e.icon||e.iconColor?(0,ge.jsx)("span",{className:he("mg-card__icon-wrap",e.imageScale&&`mg-card__icon-wrap--${e.imageScale}`,e.iconColor&&"mg-card__icon-wrap--colored"),"aria-hidden":"true",...(e.iconColor||e.iconFgColor)&&{style:{...e.iconColor&&{"--mg-icon-bg":e.iconColor},...e.iconFgColor&&{"--mg-icon-fg":e.iconFgColor}}},children:e.icon&&(0,ge.jsx)("span",{className:e.icon})}):null}function Te({data:e,centered:t=!1,variant:n="default"}){return(0,ge.jsx)(ge.Fragment,{children:e.map((e,r)=>(0,ge.jsxs)("article",{className:he("mg-card","mg-card__icon",t&&"mg-card__icon--centered",n&&"default"!==n&&`mg-card__icon--${n}`,e.borderColor&&"mg-card__icon--bordered"),...e.borderColor&&{style:{"--mg-card-border":e.borderColor}},children:[(e.icon||e.imgback||e.iconColor)&&(0,ge.jsxs)("div",{className:"mg-card__visual",children:[e.visualLabel&&(0,ge.jsx)("span",{className:"mg-card__visual-label",children:e.visualLabel}),e.srOnlyTitle&&e.link?(0,ge.jsx)("a",{href:e.link,className:"mg-card__visual-link",children:(0,ge.jsx)(ye,{item:e})}):(0,ge.jsx)(ye,{item:e})]}),(0,ge.jsxs)("div",{className:"mg-card__content",children:[e.label&&(0,ge.jsx)("div",{className:"mg-card__meta",children:(0,ge.jsx)("span",{className:"mg-card__label",children:e.label})}),e.title&&(0,ge.jsx)("header",{className:he("mg-card__title",e.srOnlyTitle&&"mg-u-sr-only"),children:!e.link||e.button||e.srOnlyTitle?e.title?.trim():(0,ge.jsx)("a",{href:e.link,children:e.title?.trim()})}),e.summaryText&&(0,ge.jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:fe.sanitize(e.summaryText)}}),e.button&&(0,ge.jsx)("div",{className:"mg-card__cta",children:(0,ge.jsx)(de.F,{type:e.buttonType||"Primary",label:e.button,href:e.link})}),e.linkText&&!e.button&&(0,ge.jsx)("p",{className:"mg-card__link",children:(0,ge.jsx)("a",{href:e.link,children:e.linkText})})]})]},e.id||e.title||`icon-card-${r}`))})}function be(e){const{dataset:t}=e,n={centered:"true"===t.centered,variant:t.variant||"default"};try{n.data=t.items?JSON.parse(t.items):[]}catch{n.data=[]}return n}Te.propTypes={data:a().arrayOf(a().shape({id:a().oneOfType([a().string,a().number]),icon:a().string,imgback:a().string,imgalt:a().string,iconSize:a().number,imageScale:a().oneOf(["small","medium","large","full"]),iconColor:a().string,iconFgColor:a().string,borderColor:a().string,label:a().string,visualLabel:a().string,title:a().string.isRequired,srOnlyTitle:a().bool,summaryText:a().string,link:a().string,linkText:a().string,button:a().string,buttonType:a().oneOf(["Primary","Secondary"])})).isRequired,centered:a().bool,variant:a().oneOf(["default","negative"])};export{Te as IconCard,Te as default,be as fromElement};
6
+ import*as e from"react";var t={6145(e,t,n){n.d(t,{F:()=>i}),n(1649);var r=n(5556),o=n.n(r),a=n(4848);function i({label:e,Type:t="Primary",State:n="Default",...r}){const o="Disabled"===n,i=["mg-button","mg-button-"+("Secondary"===t?"secondary":"primary"),o&&"disabled"].filter(Boolean).join(" ");return(0,a.jsx)("a",{className:i,...o?{"aria-disabled":"true"}:{href:"#"},...r,children:e})}i.propTypes={label:o().string.isRequired,Type:o().oneOf(["Primary","Secondary"]),State:o().oneOf(["Default","Disabled"])}},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"},9698(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},4848(e,t,n){e.exports=n(9698)},1649(e,t,n){var r;e.exports=(r={},n.d(r,{}),r)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,r),a.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},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),r(1649);var o=r(5556),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,m=Object.getPrototypeOf,f=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=U(Array.prototype.forEach),S=U(Array.prototype.lastIndexOf),_=U(Array.prototype.pop),N=U(Array.prototype.push),E=U(Array.prototype.splice),A=Array.isArray,v=U(String.prototype.toLowerCase),O=U(String.prototype.toString),x=U(String.prototype.match),w=U(String.prototype.replace),k=U(String.prototype.indexOf),C=U(String.prototype.trim),R=U(Number.prototype.toString),D=U(Boolean.prototype.toString),I="undefined"==typeof BigInt?null:U(BigInt.prototype.toString),L="undefined"==typeof Symbol?null:U(Symbol.prototype.toString),M=U(Object.prototype.hasOwnProperty),P=U(Object.prototype.toString),z=U(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 b(F,t)});var F;function U(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=f(e,t);if(n){if(n.get)return U(n.get);if("function"==typeof n.value)return U(n.value)}e=m(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"]),K=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"]),V=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","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-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),me=d(/^[a-z][.\w]*(-[.\w]+)+$/i),fe=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.11",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 m=t.DOMParser,f=t.trustedTypes,g=s.prototype,y=G(g,"cloneNode"),b=G(g,"remove"),F=G(g,"nextSibling"),U=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 Ne,Ee,Ae="",ve=!1,Oe=0;const xe=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.')},we=function(e){xe(),Oe++;try{return Ne.createHTML(e)}finally{Oe--}},ke=r,Ce=ke.implementation,Re=ke.createNodeIterator,De=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&&Ce&&void 0!==Ce.createHTMLDocument;const Pe=ne,ze=re,je=oe,Fe=ae,Ue=ie,He=ce,Be=se,We=me;let Ge=le,Ye=null;const qe=H({},[...Y,...q,...$,...K,...Z]);let $e=null;const Xe=H({},[...J,...Q,...ee,...te]);let Ke=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}})),Ve=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,mt=!1,ft=!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 Nt=H({},["audio","video","img","source","image","track"]);let Et=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",xt="http://www.w3.org/1999/xhtml";let wt=xt,kt=!1,Ct=null;const Rt=H({},[vt,Ot,xt],O),Dt=p(["mi","mo","mn","ms","mtext"]);let It=H({},Dt);const Lt=p(["annotation-xml"]);let Mt=H({},Lt);const Pt=H({},["title","style","font","a","script"]);let zt=null;const jt=["application/xhtml+xml","text/html"];let Ft=null,Ut=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(Ut&&Ut===e)return;e&&"object"==typeof e||(e={}),e=W(e),zt=-1===jt.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ft="application/xhtml+xml"===zt?O:v,Ye=ye(e,"ALLOWED_TAGS",qe,{transform:Ft}),$e=ye(e,"ALLOWED_ATTR",Xe,{transform:Ft}),Ct=ye(e,"ALLOWED_NAMESPACES",Rt,{transform:O}),Et=ye(e,"ADD_URI_SAFE_ATTR",At,{transform:Ft,base:At}),_t=ye(e,"ADD_DATA_URI_TAGS",Nt,{transform:Ft,base:Nt}),Tt=ye(e,"FORBID_CONTENTS",St,{transform:Ft}),Ve=ye(e,"FORBID_TAGS",W({}),{transform:Ft}),Ze=ye(e,"FORBID_ATTR",W({}),{transform:Ft}),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,mt=e.RETURN_DOM_FRAGMENT||!1,ft=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,wt="string"==typeof e.NAMESPACE?e.NAMESPACE:xt,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({},Dt),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(Ke=h(null),M(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ke.tagNameCheck=t.tagNameCheck),M(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ke.attributeNameCheck=t.attributeNameCheck),M(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),d(Ke),rt&&(et=!1),mt&&(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,K),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,Ft))),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,Ft))),M(e,"ADD_URI_SAFE_ATTR")&&A(e.ADD_URI_SAFE_ATTR)&&H(Et,e.ADD_URI_SAFE_ATTR,Ft),M(e,"FORBID_CONTENTS")&&A(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=W(Tt)),H(Tt,e.FORBID_CONTENTS,Ft)),M(e,"ADD_FORBID_CONTENTS")&&A(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=W(Tt)),H(Tt,e.ADD_FORBID_CONTENTS,Ft)),gt&&(Ye["#text"]=!0),at&&H(Ye,["html","head","body"]),Ye.table&&(H(Ye,["tbody"]),delete Ve.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{Ae=we("")}catch(e){throw Ne=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ne=void 0,Ae=""):(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}}(f,a),ve=!0),Ne=Ee),Ne&&"string"==typeof Ae&&(Ae=we("")));p&&p(e),Ut=e},Gt=H({},[...q,...$,...X]),Yt=H({},[...K,...V]),qt=function(e){N(n.removed,{element:e});try{B(e).removeChild(e)}catch(t){if(b(e),!B(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){const t=U(e);if(t){const e=[];T(t,t=>{N(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{N(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){N(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||mt)try{qt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Kt=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[Ft(o)])try{e.removeAttribute(o)}catch(e){}}},Vt=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&&wt===xt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ne?we(e):e;if(wt===xt)try{t=(new m).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=Ce.createDocument(wt,"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),wt===xt?Ie.call(t,at?"html":"body")[0]:at?t.documentElement:a},Zt=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)},Jt=function(e){return e=w(e,Pe," "),e=w(e,ze," "),w(e,je," ")},Qt=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=Jt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&T(o,e=>{tn(e.content)&&Qt(e.content)})},en=function(e){const t=_e?_e(e):null;return"string"==typeof t&&"form"===Ft(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!==U(e))},tn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function rn(e,t,r){0!==e.length&&T(e,e=>{e.call(n,t,r,Ut)})}const on=function(e){if(rn(Me.beforeSanitizeElements,e,null),en(e))return qt(e),!0;const t=Ft(_e?_e(e):e.nodeName);if(rn(Me.uponSanitizeElement,e,{tagName:t,allowedTags:Ye}),function(e,t){return!!(ot&&e.hasChildNodes()&&!nn(e.firstElementChild)&&z(fe,e.textContent)&&z(fe,e.innerHTML))||!(!ot||e.namespaceURI!==xt||"style"!==t||!nn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!z(pe,e.data))}(e,t))return qt(e),!0;if(Ve[t]||!(Je.tagCheck instanceof Function&&Je.tagCheck(t))&&!Ye[t])return function(e,t){if(!Ve[t]&&cn(t)){if(Ke.tagNameCheck instanceof RegExp&&z(Ke.tagNameCheck,t))return!1;if(Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=B(e),n=U(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,F(e))}}return qt(e),!0}(e,t);if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=B(e);t&&t.tagName||(t={namespaceURI:wt,tagName:"template"});const n=v(e.tagName),r=v(t.tagName);return!!Ct[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===xt?"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===xt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===xt?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"===t||"noembed"===t||"noframes"===t)&&z(de,e.innerHTML))return qt(e),!0;if(rt&&3===e.nodeType){const t=Jt(e.textContent);e.textContent!==t&&(N(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rn(Me.afterSanitizeElements,e,null),!1},an=function(e,t,n){if(Ze[t])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(Fe,t));else if(Qe&&z(Ue,t));else if(o){if(Et[t]);else if(z(Ge,w(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!_t[e])if(tt&&!z(He,w(n,Be,"")));else if(n)return!1}else if(!(cn(e)&&(Ke.tagNameCheck instanceof RegExp&&z(Ke.tagNameCheck,e)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(e))&&(Ke.attributeNameCheck instanceof RegExp&&z(Ke.attributeNameCheck,t)||Ke.attributeNameCheck instanceof Function&&Ke.attributeNameCheck(t,e))||"is"===t&&Ke.allowCustomizedBuiltInElements&&(Ke.tagNameCheck instanceof RegExp&&z(Ke.tagNameCheck,n)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(n))))return!1;return!0},ln=H({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cn=function(e){return!ln[v(e)]&&z(We,e)},sn=function(e,t,n,r){if(Ne&&"object"==typeof f&&"function"==typeof f.getAttributeType&&!n)switch(f.getAttributeType(e,t)){case"TrustedHTML":return we(r);case"TrustedScriptURL":return function(e){xe(),Oe++;try{return Ne.createScriptURL(e)}finally{Oe--}}(r)}return r},un=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),en(e)?qt(e):_(n.removed)}catch(n){Xt(t,e)}},mn=function(e){rn(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||en(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0};let r=t.length;const o=Ft(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,c=a.value,s=Ft(i),u=c;let m="value"===i?u:C(u);n.attrName=s,n.attrValue=m,n.keepAttr=!0,n.forceKeepAttr=void 0,rn(Me.uponSanitizeAttribute,e,n),m=n.attrValue,!dt||"id"!==s&&"name"!==s||0===k(m,ht)||(Xt(i,e),m=ht+m),ot&&z(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,m)||"attributename"===s&&x(m,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&z(he,m)?Xt(i,e):(rt&&(m=Jt(m)),an(o,s,m)?(m=sn(o,s,l,m),m!==u&&un(e,i,l,m)):Xt(i,e)))}rn(Me.afterSanitizeAttributes,e,null)},fn=function(e){let t=null;const n=Zt(e);for(rn(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rn(Me.uponSanitizeShadowNode,t,null),on(t),mn(t),tn(t.content)&&fn(t.content),1===(Se?Se(t):t.nodeType)){const e=be(t);tn(e)&&(pn(e),fn(e))}rn(Me.afterSanitizeShadowDOM,e,null)},pn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){fn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=U(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"===Ft(e)){const e=n.content;tn(e)&&t.push({node:e,shadow:null})}}if(r){const e=be(n);tn(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&&!nn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return R(e);case"boolean":return D(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 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=W(Ye)),Me.uponSanitizeAttribute.length>0&&($e=W($e)),n.removed=[];const c=yt&&"string"!=typeof e&&nn(e);if(c){const t=_e?_e(e):e.nodeName;if("string"==typeof t){const e=Ft(t);if(!Ye[e]||Ve[e])throw j("root node is forbidden and cannot be sanitized in-place")}if(en(e))throw j("root node is clobbered and cannot be sanitized in-place");try{pn(e)}catch(t){throw $t(e),t}}else if(nn(e))r=Vt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),pn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ne&&ft?we(e):e;if(r=Vt(e),!r)return ut?null:ft?Ae:""}r&&st&&qt(r.firstChild);const s=Zt(c?e:r);try{for(;i=s.nextNode();)on(i),mn(i),tn(i.content)&&fn(i.content)}catch(t){throw c&&$t(e),t}if(c)return T(n.removed,e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=U(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}}(e.element)}),rt&&Qt(e),e;if(ut){if(rt&&Qt(r),mt)for(l=De.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 u=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&z(ue,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),rt&&(u=Jt(u)),Ne&&ft?we(u):u},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,ct=$e},n.clearConfig=function(){Ut=null,it=!1,lt=null,ct=null,Ne=Ee,Ae=""},n.isValidAttribute=function(e,t,n){Ut||Wt({});const r=Ft(e),o=Ft(t);return an(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&M(Me,e)&&N(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:E(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(6145),Se=r(4848);const _e=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function Ne({item:e}){return e.imgback?(0,Se.jsx)("img",{src:e.imgback,alt:e.imgalt||"",className:_e("mg-card__image",e.imageScale&&`mg-card__image--${e.imageScale}`),...!e.imageScale&&{width:e.iconSize||72,height:e.iconSize||72}}):e.icon||e.iconColor?(0,Se.jsx)("span",{className:_e("mg-card__icon-wrap",e.imageScale&&`mg-card__icon-wrap--${e.imageScale}`,e.iconColor&&"mg-card__icon-wrap--colored"),"aria-hidden":"true",...(e.iconColor||e.iconFgColor)&&{style:{...e.iconColor&&{"--mg-icon-bg":e.iconColor},...e.iconFgColor&&{"--mg-icon-fg":e.iconFgColor}}},children:e.icon&&(0,Se.jsx)("span",{className:e.icon})}):null}function Ee({data:e,centered:t=!1,variant:n="default"}){return(0,Se.jsx)(Se.Fragment,{children:e.map((e,r)=>(0,Se.jsxs)("article",{className:_e("mg-card","mg-card__icon",t&&"mg-card__icon--centered",n&&"default"!==n&&`mg-card__icon--${n}`,e.borderColor&&"mg-card__icon--bordered"),...e.borderColor&&{style:{"--mg-card-border":e.borderColor}},children:[(e.icon||e.imgback||e.iconColor)&&(0,Se.jsxs)("div",{className:"mg-card__visual",children:[e.visualLabel&&(0,Se.jsx)("span",{className:"mg-card__visual-label",children:e.visualLabel}),e.srOnlyTitle&&e.link?(0,Se.jsx)("a",{href:e.link,className:"mg-card__visual-link",children:(0,Se.jsx)(Ne,{item:e})}):(0,Se.jsx)(Ne,{item:e})]}),(0,Se.jsxs)("div",{className:"mg-card__content",children:[e.label&&(0,Se.jsx)("div",{className:"mg-card__meta",children:(0,Se.jsx)("span",{className:"mg-card__label",children:e.label})}),e.title&&(0,Se.jsx)("header",{className:_e("mg-card__title",e.srOnlyTitle&&"mg-u-sr-only"),children:!e.link||e.button||e.srOnlyTitle?e.title?.trim():(0,Se.jsx)("a",{href:e.link,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)("div",{className:"mg-card__cta",children:(0,Se.jsx)(Te.F,{type:e.buttonType||"Primary",label:e.button,href:e.link})}),e.linkText&&!e.button&&(0,Se.jsx)("p",{className:"mg-card__link",children:(0,Se.jsx)("a",{href:e.link,children:e.linkText})})]})]},e.id||e.title||`icon-card-${r}`))})}function Ae(e){const{dataset:t}=e,n={centered:"true"===t.centered,variant:t.variant||"default"};try{n.data=t.items?JSON.parse(t.items):[]}catch{n.data=[]}return n}Ee.propTypes={data:a().arrayOf(a().shape({id:a().oneOfType([a().string,a().number]),icon:a().string,imgback:a().string,imgalt:a().string,iconSize:a().number,imageScale:a().oneOf(["small","medium","large","full"]),iconColor:a().string,iconFgColor:a().string,borderColor:a().string,label:a().string,visualLabel:a().string,title:a().string.isRequired,srOnlyTitle:a().bool,summaryText:a().string,link:a().string,linkText:a().string,button:a().string,buttonType:a().oneOf(["Primary","Secondary"])})).isRequired,centered:a().bool,variant:a().oneOf(["default","negative"])};export{Ee as IconCard,Ee as default,Ae as fromElement};
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.4.5 | (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.5/LICENSE */
1
+ /*! @license DOMPurify 3.4.11 | (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.11/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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see Loader.js.LICENSE.txt */
6
6
  import"react";var e={2694(e,r,t){var o=t(6925);function a(){}function n(){}n.resetWarningCache=a,e.exports=function(){function e(e,r,t,a,n,s){if(s!==o){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 t={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 t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var t=Symbol.for("react.transitional.element");Symbol.for("react.fragment"),r.jsx=function(e,r,o){var a=null;if(void 0!==o&&(a=""+o),void 0!==r.key&&(a=""+r.key),"key"in r)for(var n in o={},r)"key"!==n&&(o[n]=r[n]);else o=r;return r=o.ref,{$$typeof:t,type:e,key:a,ref:void 0!==r?r:null,props:o}}},4848(e,r,t){e.exports=t(9698)}},r={};function t(o){var a=r[o];if(void 0!==a)return a.exports;var n=r[o]={exports:{}};return e[o](n,n.exports,t),n.exports}t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},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 o=t(5556),a=t.n(o),n=t(4848);function s({label:e="Loading",className:r=""}){const t=["mg-loader",r].filter(Boolean).join(" ");return(0,n.jsx)("div",{className:t,"aria-busy":"true","aria-live":"polite","aria-label":e,role:"status"})}s.propTypes={label:a().string,className:a().string};const i=s;export{s as Loader,i 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see MegaMenu.js.LICENSE.txt */
6
6
  import{useEffect as e,useRef as n,useState as t}from"react";var r={2694(e,n,t){var r=t(6925);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,n,t,i,o,a){if(a!==r){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 n(){return e}e.isRequired=e;var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:n,element:e,elementType:e,instanceOf:n,node:e,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:o,resetWarningCache:i};return t.PropTypes=t,t}},5556(e,n,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,n){var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,n,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==n.key&&(i=""+n.key),"key"in n)for(var o in r={},n)"key"!==o&&(r[o]=n[o]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:void 0!==n?n:null,props:r}}n.Fragment=r,n.jsx=i,n.jsxs=i},4848(e,n,t){e.exports=t(9698)}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var t=i[e]={exports:{}};return r[e](t,t.exports,o),t.exports}o.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return o.d(n,{a:n}),n},o.d=(e,n)=>{for(var t in n)o.o(n,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n);var a=o(5556),s=o.n(a),l=o(4848);function c({section:r,index:i,sectionListRef:o,itemListRef:a}){const[s,c]=t(0),[m,u]=t(0),[g,d]=t([]),p=n(null),h=n(null),f=e=>{if(["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation()),"ArrowDown"!==e.key&&"Tab"!==e.key||(m<g?.length-1?u(e=>e+1):(u(0),a.current?.[i+1]?.focus())),("ArrowUp"===e.key||e.shiftKey&&"Tab"===e.key)&&(m>0?u(e=>e-1):(a.current?.[i]?.focus(),u(0))),p.current&&("ArrowLeft"===e.key&&u(0),"ArrowRight"===e.key)){const e=h.current,n=e?.querySelector("ul > li > a");if(n){e.setAttribute("tabindex","-1"),n.focus();const t=g.findIndex(e=>e===n);-1!==t&&u(t)}else{h.current?.focus();const e=g.filter(e=>e===h.current);e[0]&&u(g.indexOf(e[0]))}}};return e(()=>{const e=o?.current?.[i]?.querySelectorAll("audio, button, a, canvas, details, iframe, input, select, summary, textarea, video, [tabindex]");d(Array.from(e||[]))},[o,i,s]),e(()=>{g.length>0&&m>=0&&g[m]?.focus()},[m]),(0,l.jsxs)(l.Fragment,{children:[r&&r.items&&(0,l.jsxs)("article",{className:"mg-mega-content | mg-container-full-width","aria-label":"Menu section","aria-live":"polite",tabIndex:0,ref:e=>o.current[i]=e,onKeyDown:f,role:"region",children:[r.bannerHeading&&r.bannerDescription&&r.items&&(0,l.jsxs)("aside",{className:"mg-mega-content__left","aria-label":"Category navigation",ref:p,tabIndex:0,role:"navigation",children:[(0,l.jsxs)("section",{className:"mg-mega-content__banner",children:[(0,l.jsx)("header",{children:r.bannerHeading}),r.bannerDescription.includes("<")?(0,l.jsx)("div",{dangerouslySetInnerHTML:{__html:r.bannerDescription}}):(0,l.jsx)("p",{children:r.bannerDescription}),r.bannerButton?.label&&(0,l.jsx)("a",{href:r.bannerButton.url,className:"mg-button mg-button-primary",children:r.bannerButton.label})]}),r.items.length>0&&r.items[0].items&&r.items[0].items.length>0?(0,l.jsx)("ul",{className:"mg-mega-content__section-list",role:"menu","aria-label":"Categories",children:r.items.map((e,n)=>(0,l.jsx)("li",{className:"mg-mega-content__section-list-item",onMouseEnter:()=>c(n),role:"none",children:(0,l.jsx)("a",{className:"mg-mega-content__section-list-link "+(s===n?"mg-mega-content__section-list-link--active":""),href:e.url,"aria-current":s===n?"page":void 0,onFocus:()=>c(n),role:"menuitem","aria-haspopup":e.items&&e.items.length>0?"true":void 0,children:e.title})},n))}):null]}),r.items&&(0,l.jsxs)("section",{className:"mg-mega-content__right","aria-label":"Submenu content",ref:h,tabIndex:0,role:"navigation",children:[(0,l.jsx)("ul",{role:"menu","aria-label":"Submenu items",className:"mg-mega-content__menu--mobile",children:r.items.map((e,n)=>(0,l.jsxs)("li",{role:"none",children:[(0,l.jsx)("a",{href:e.url,role:"menuitem","aria-haspopup":e.items?"true":void 0,children:e.title}),e.items&&e.items.length>0&&(0,l.jsx)("ul",{role:"menu","aria-label":`${e.title} submenu`,children:e.items.map((e,n)=>(0,l.jsxs)("li",{role:"none",children:[(0,l.jsx)("a",{href:e.url,role:"menuitem","aria-haspopup":e.items?"true":void 0,children:e.title}),e.items&&(0,l.jsx)("ul",{role:"menu","aria-label":`${e.title} nested submenu`,children:e.items.map((e,n)=>(0,l.jsx)("li",{role:"none",children:(0,l.jsx)("a",{href:e.url,role:"menuitem",children:e.title})},n))})]},n))})]},n))}),(0,l.jsx)("ul",{role:"menu","aria-label":"Submenu items",className:"mg-mega-content__menu--desktop",children:r.items[s]?.items?r.items[s].items.map((e,n)=>(0,l.jsxs)("li",{role:"none",children:[(0,l.jsx)("a",{href:e.url,role:"menuitem","aria-haspopup":e.items?"true":void 0,children:e.title}),e.items&&(0,l.jsx)("ul",{role:"menu","aria-label":`${e.title} submenu`,children:e.items.map((e,n)=>(0,l.jsx)("li",{role:"none",children:(0,l.jsx)("a",{href:e.url,role:"menuitem",children:e.title})},n))})]},n)):r.items.map((e,n)=>(0,l.jsx)("li",{role:"none",children:(0,l.jsx)("a",{href:e.url,role:"menuitem",children:e.title})},n))},`desktop-menu-${s}`)]})]}),r&&!r.items&&r.bannerDescription&&(0,l.jsx)("article",{className:"mg-mega-content | mg-container-full-width","aria-live":"polite","aria-label":"Submenu item",tabIndex:0,ref:e=>o.current[i]=e,dangerouslySetInnerHTML:{__html:r.bannerDescription},onKeyDown:f})]})}function m({title:e,icon:n,onMouseEnter:t,activeItem:r,link:i,bannerDescription:o,handleOnKeyDown:a,ref:s,section:m,sectionListRef:u,itemListRef:g,index:d}){let p=d===r;const h=(0,l.jsxs)(l.Fragment,{children:[n&&(0,l.jsx)("span",{className:`mg-mega-topbar__item-icon ${n}`,"aria-hidden":"true"}),e]});return(0,l.jsxs)("li",{className:"mg-mega-topbar__item "+(p?"mg-mega-topbar__item--active":""),onMouseEnter:m||o?t:void 0,onFocus:t,onKeyDown:a,role:"none",children:[i&&i.url?(0,l.jsx)("a",{className:"mg-mega-topbar__item-link",href:i.url,ref:s,role:"menuitem","aria-haspopup":m&&m.items?"true":void 0,"aria-expanded":p?"true":void 0,children:h}):(0,l.jsx)("button",{className:"mg-mega-topbar__item-link",ref:s,role:"menuitem","aria-haspopup":m&&m.items?"true":void 0,"aria-expanded":p?"true":void 0,children:h}),(0,l.jsx)(c,{section:m,index:d,sectionListRef:u,itemListRef:g})]})}function u({onClick:e,isOpen:n}){return(0,l.jsx)("button",{className:"mg-mega-topbar-mobile__icon-button",onClick:e,"aria-label":"Toggle navigation menu","aria-haspopup":"true",children:(0,l.jsx)("span",{className:"mg-icon "+(n?"mg-icon-angle-circled-left":"mg-icon-menu"),"aria-hidden":"true"})})}function g({handleItemHover:e,toggleShowSidebar:n,showSidebar:t,sections:r,activeItem:i,sectionListRef:o,itemListRef:a,logoSrc:s,logoAlt:c="",logoHref:g="/",logoWidth:d,logoHeight:p}){const h=r.map((n,t)=>(0,l.jsx)(m,{index:t,ref:e=>a.current[t]=e,title:n.title,icon:n.icon,bannerDescription:n.bannerDescription,link:n.bannerButton,onMouseEnter:()=>e(t),activeItem:i,section:n,handleOnKeyDown:e=>{((e,n)=>{["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)&&e.preventDefault();const t=a?.current;"ArrowLeft"===e.key&&n>=1&&t[n-1].focus(),"ArrowRight"===e.key&&n<t?.length-1&&t[n+1].focus(),"ArrowDown"===e.key&&o?.current?.[n].focus()})(e,t)},sectionListRef:o,itemListRef:a,children:n.sections},t));return s?(0,l.jsxs)("div",{className:"mg-mega-topbar mg-mega-topbar--branded | mg-container-full-width",children:[(0,l.jsx)("a",{className:"mg-mega-topbar__logo",href:g,"aria-label":c||"Home",children:(0,l.jsx)("img",{className:"mg-mega-topbar__logo-img",src:s,alt:c,...null!=d?{width:d}:{},...null!=p?{height:p}:{}})}),(0,l.jsx)(u,{isOpen:t,onClick:()=>n()}),(0,l.jsx)("ul",{className:"mg-mega-topbar__nav",role:"menubar","aria-label":"Main navigation menu",children:h})]}):(0,l.jsxs)("ul",{className:"mg-mega-topbar | mg-container-full-width",role:"menubar","aria-label":"Main navigation menu",children:[(0,l.jsx)(u,{isOpen:t,onClick:()=>n()}),h]})}function d({section:e,sectionListRef:n,sectionIndex:t,handleSectionToggle:r,index:i,itemListRef:o,ref:a,handleOnKeyDown:s}){const m=t===i,u=e?.items&&e.items.length>0;return(0,l.jsxs)("li",{className:"mg-mega-sidebar-section",onKeyDown:s,role:"none",children:[u?(0,l.jsxs)("button",{className:"mg-mega-sidebar-section__item",onClick:()=>r(i),"aria-pressed":m,"aria-expanded":m,"aria-haspopup":"true",ref:a,role:"menuitem",children:[(0,l.jsx)("span",{children:e.title}),(0,l.jsx)("span",{className:"mg-icon mg-icon-angle-circled-left","aria-hidden":"true"})]}):(0,l.jsx)("a",{className:"mg-mega-sidebar-section__item",href:e.url||e.bannerButton?.url||"#",ref:a,role:"menuitem",children:(0,l.jsx)("span",{children:e.title})}),u&&m&&(0,l.jsx)(c,{section:e,index:i,sectionListRef:n,itemListRef:o})]})}function p({sections:n,itemListRef:r,sectionListRef:i,open:o}){const[a,s]=t(null);e(()=>{o||s(null)},[o]);const c=e=>{s(e!==a?e:null)};return(0,l.jsx)("div",{className:"mg-mega-mobile-sidebar "+(o?"mg-mega-mobile-sidebar--open":""),role:"dialog","aria-label":"Mobile navigation menu",children:(0,l.jsx)("ul",{className:"mg-mega-sidebar__list",role:"menu","aria-label":"Navigation options",children:n.map((e,n)=>(0,l.jsx)(d,{index:n,section:e,ref:e=>r.current[n]=e,sectionIndex:a,handleSectionToggle:c,sectionListRef:i,itemListRef:r,handleOnKeyDown:e=>((e,n)=>{["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(e.key)&&e.preventDefault();const t=r?.current;"ArrowDown"===e.key&&n<t?.length-1&&(Number.isInteger(a)?i.current?.[n].focus():t[n+1].focus()),"ArrowUp"===e.key&&n>=1&&t[n-1].focus()})(e,n)},n))})})}const h={navLabel:"Main Navigation",closeMobileNavLabel:"Close mobile navigation"},f=({sections:r,delay:i=300,hoverDelay:o=180,logoSrc:a,logoAlt:s="",logoHref:c="/",logoWidth:m,logoHeight:u,labels:d={}})=>{const{navLabel:f,closeMobileNavLabel:b}={...h,...d},[x,y]=t(!1),[v,j]=t(null),[_,w]=t(!1),k=n([]),L=n([]),N=n(null),R=n(null);return e(()=>{w(!0)},[]),e(()=>()=>{clearTimeout(N.current),clearTimeout(R.current)},[]),e(()=>{const e=e=>{const n=document.querySelector(".mg-mega-wrapper");n&&!n.contains(e.target)&&j(null)};if(null!==v)return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}},[v]),(0,l.jsxs)("nav",{className:"mg-mega-wrapper"+(_?" mg-mega-wrapper--js-active":""),onMouseLeave:()=>{clearTimeout(R.current),N.current=setTimeout(()=>{j(null)},i)},onKeyDown:e=>{"Escape"===e.key&&j(null)},"aria-label":f,children:[(0,l.jsx)(g,{sections:r,handleItemHover:e=>{clearTimeout(N.current),clearTimeout(R.current),R.current=setTimeout(()=>{j(e)},o)},toggleShowSidebar:()=>y(e=>!e),showSidebar:x,activeItem:v,itemListRef:k,sectionListRef:L,logoSrc:a,logoAlt:s,logoHref:c,logoWidth:m,logoHeight:u}),x&&(0,l.jsx)("button",{className:"mg-mega-mobile-sidebar-overlay","aria-label":b,onClick:()=>y(!1)}),(0,l.jsx)(p,{open:x,sections:r,itemListRef:k,sectionListRef:L})]})};f.propTypes={sections:s().arrayOf(s().shape({title:s().string.isRequired,icon:s().string,bannerHeading:s().string,bannerDescription:s().string,bannerButton:s().shape({label:s().string,url:s().string}),items:s().arrayOf(s().shape({title:s().string.isRequired,url:s().string,items:s().array}))})).isRequired,delay:s().number,hoverDelay:s().number,logoSrc:s().string,logoAlt:s().string,logoHref:s().string,logoWidth:s().number,logoHeight:s().number,labels:s().shape({navLabel:s().string,closeMobileNavLabel:s().string})};const b=f;function x(e){const{dataset:n}=e,t={delay:n.delay?parseInt(n.delay,10):300,hoverDelay:n.hoverDelay?parseInt(n.hoverDelay,10):180};if(n.logoSrc&&(t.logoSrc=n.logoSrc),n.logoAlt&&(t.logoAlt=n.logoAlt),n.logoHref&&(t.logoHref=n.logoHref),n.logoWidth&&(t.logoWidth=parseInt(n.logoWidth,10)),n.logoHeight&&(t.logoHeight=parseInt(n.logoHeight,10)),n.sections)try{t.sections=JSON.parse(n.sections)}catch{t.sections=[]}return t}export{b as default,x 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see PageHeader.js.LICENSE.txt */
6
6
  import"react";var e={2694(e,a,r){var o=r(6925);function s(){}function n(){}n.resetWarningCache=s,e.exports=function(){function e(e,a,r,s,n,l){if(l!==o){var t=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 t.name="Invariant Violation",t}}function a(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:s};return r.PropTypes=r,r}},5556(e,a,r){e.exports=r(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,a){var r=Symbol.for("react.transitional.element");function o(e,a,o){var s=null;if(void 0!==o&&(s=""+o),void 0!==a.key&&(s=""+a.key),"key"in a)for(var n in o={},a)"key"!==n&&(o[n]=a[n]);else o=a;return a=o.ref,{$$typeof:r,type:e,key:s,ref:void 0!==a?a:null,props:o}}Symbol.for("react.fragment"),a.jsx=o,a.jsxs=o},4848(e,a,r){e.exports=r(9698)}},a={};function r(o){var s=a[o];if(void 0!==s)return s.exports;var n=a[o]={exports:{}};return e[o](n,n.exports,r),n.exports}r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a}),a},r.d=(e,a)=>{for(var o in a)r.o(a,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:a[o]})},r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var o=r(5556),s=r.n(o),n=r(4848);function l({name:e,className:a="",size:r,...o}){if(!e)return null;let s;return s=e.includes(" ")?e:e.startsWith("fa-")||e.startsWith("mg-icon-")?`mg-icon ${e}`:e.startsWith("mg-")?`mg-icon mg-icon-${e.slice(3)}`:`mg-icon mg-icon-${e}`,r&&(s+=` mg-icon--${r}`),a&&(s+=` ${a}`),(0,n.jsx)("span",{className:s,"aria-hidden":"true",...o})}l.propTypes={name:s().string.isRequired,className:s().string,size:s().oneOf(["sm","lg","xl"])};const t=(...e)=>e.filter(Boolean).length>0?e.filter(Boolean).join(" "):null;function i({variant:e="default",className:a,logoUrl:r="https://assets.undrr.org/static/logos/undrr/undrr-logo-horizontal.svg",logoAlt:o="UNDRR Logo",logoTitle:s="UNDRR Logo",homeUrl:i="/",showAccount:d=!0,showLanguage:c=!0,showLogo:g=!0,languages:m=[{value:"en",label:"English",selected:!0},{value:"es",label:"Spanish"},{value:"ar",label:"Arabic"}],...p}){const h=t("mg-page-header",e&&`mg-page-header--${e}`,a);return"decoration-only"===e?(0,n.jsxs)("div",{className:t("mg-page-header__decoration",a),...p,children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}):(0,n.jsxs)("header",{id:"header",className:h,...p,children:[(0,n.jsxs)("div",{className:"mg-page-header__decoration",children:[(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{}),(0,n.jsx)("div",{})]}),(0,n.jsx)("div",{className:"mg-page-header__toolbar-wrapper","data-vf-google-analytics-region":"undrr-black-bar",children:(0,n.jsx)("div",{className:"mg-page-header__container mg-container",children:(0,n.jsxs)("div",{className:"mg-page-header__region mg-page-header__region--toolbar",children:[g&&(0,n.jsx)("div",{id:"block-undrrlogo",className:"mg-page-header__block mg-page-header__block--logo",children:(0,n.jsx)("a",{href:i,children:(0,n.jsx)("img",{alt:o,src:r,width:"324",height:"47",title:s,className:"mg-page-header__logo-img"})})}),d&&(0,n.jsxs)("a",{title:"My account",href:"/user",children:[(0,n.jsx)(l,{name:"user"})," ",(0,n.jsx)("span",{className:"mg-page-header__label",children:"My account"})]}),c&&(0,n.jsx)("div",{className:"mg-page-header__block mg-page-header__block--language",children:(0,n.jsxs)("form",{className:"mg-page-header__lang-form lang-dropdown-form lang_dropdown_form",id:"lang_dropdown_form_lang-dropdown-form",action:"/",method:"post",acceptCharset:"UTF-8",noValidate:!0,children:[(0,n.jsxs)("div",{className:"mg-page-header__form-item form-item js-form-item form-type-select js-form-type-select form-item-lang-dropdown-select js-form-item-lang-dropdown-select form-no-label",children:[(0,n.jsx)("label",{htmlFor:"edit-lang-dropdown-select",className:"mg-u-sr-only",children:"Select your language"}),(0,n.jsx)("div",{className:"mg-page-header__select-wrapper",children:(0,n.jsx)("select",{style:{width:"165px"},className:"mg-page-header__select lang-dropdown-select-element form-select form-control","data-lang-dropdown-id":"lang-dropdown-form",id:"edit-lang-dropdown-select",name:"lang_dropdown_select",defaultValue:m.find(e=>e.selected)?.value||m[0]?.value,children:m.map((e,a)=>(0,n.jsx)("option",{value:e.value,children:e.label},a))})})]}),(0,n.jsx)("noscript",{children:(0,n.jsx)("div",{children:(0,n.jsx)("button",{type:"submit",id:"edit-submit",name:"op",value:"Go",className:"button js-form-submit form-submit btn",children:"Go"})})})]})})]})})})]})}i.propTypes={variant:s().oneOf(["default","decoration-only"]),className:s().string,logoUrl:s().string,logoAlt:s().string,logoTitle:s().string,homeUrl:s().string,showLogo:s().bool,showAccount:s().bool,showLanguage:s().bool,languages:s().arrayOf(s().shape({value:s().string.isRequired,label:s().string.isRequired,selected:s().bool}))};export{i as PageHeader};
@@ -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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see Pager.js.LICENSE.txt */
6
6
  import{useCallback as e,useMemo as a,useState as n}from"react";var r={2694(e,a,n){var r=n(6925);function t(){}function l(){}l.resetWarningCache=t,e.exports=function(){function e(e,a,n,t,l,o){if(o!==r){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 a(){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:a,element:e,elementType:e,instanceOf:a,node:e,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:l,resetWarningCache:t};return n.PropTypes=n,n}},5556(e,a,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,a){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(e,a,r){var t=null;if(void 0!==r&&(t=""+r),void 0!==a.key&&(t=""+a.key),"key"in a)for(var l in r={},a)"key"!==l&&(r[l]=a[l]);else r=a;return a=r.ref,{$$typeof:n,type:e,key:t,ref:void 0!==a?a:null,props:r}}a.Fragment=r,a.jsx=t,a.jsxs=t},4848(e,a,n){e.exports=n(9698)}},t={};function l(e){var a=t[e];if(void 0!==a)return a.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,l),n.exports}l.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return l.d(a,{a}),a},l.d=(e,a)=>{for(var n in a)l.o(a,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:a[n]})},l.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a);var o=l(5556),i=l.n(o),s=l(4848);function g({page:n,totalPages:r,onPageChange:t,isLoading:l=!1,prevLabel:o="Previous",nextLabel:i="Next",goPrevLabel:g="Go to previous page",goNextLabel:p="Go to next page",pageLabel:u="Page {page}",currentPageLabel:c="Page {page}, current page"}){const m=a(()=>function(e,a){if(null==a)return[{type:"page",number:e}];if(a<=1)return[];const n=[],r=Math.floor(2.5);let t=Math.max(1,e-r),l=Math.min(a,t+5-1);l-t<4&&(t=Math.max(1,l-5+1)),t>1&&(n.push({type:"page",number:1}),t>2&&n.push({type:"ellipsis",key:"start"}));for(let e=t;e<=l;e++)(1!==e&&e!==a||1===e&&1===t||e===a&&l===a)&&n.push({type:"page",number:e});return l<a&&(l<a-1&&n.push({type:"ellipsis",key:"end"}),n.push({type:"page",number:a})),n}(n,r),[n,r]),b=e(e=>{e<1||null!=r&&e>r||e!==n&&t(e)},[t,n,r]),d=e((e,a)=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),b(a))},[b]);if(null!=r&&r<=1)return null;const L=n>1,h=null==r||n<r;return(0,s.jsxs)("ul",{className:"mg-pager__list",children:[(0,s.jsx)("li",{className:"mg-pager__item mg-pager__item--prev",children:(0,s.jsxs)("button",{type:"button",className:"mg-pager__link mg-pager__link--prev "+(L?"":"mg-pager__link--disabled"),onClick:()=>b(n-1),onKeyDown:e=>d(e,n-1),disabled:!L||l,"aria-label":g,"aria-disabled":!L,children:[(0,s.jsx)("svg",{className:"mg-pager__icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"15 18 9 12 15 6"})}),(0,s.jsx)("span",{className:"mg-pager__text",children:o})]})}),m.map(e=>{if("ellipsis"===e.type)return(0,s.jsx)("li",{className:"mg-pager__item mg-pager__item--ellipsis","aria-hidden":"true",children:(0,s.jsx)("span",{className:"mg-pager__ellipsis",children:"…"})},e.key);const a=e.number===n;return(0,s.jsx)("li",{className:"mg-pager__item",children:(0,s.jsx)("button",{type:"button",className:"mg-pager__link mg-pager__link--number "+(a?"mg-pager__link--current":""),onClick:()=>b(e.number),onKeyDown:a=>d(a,e.number),disabled:l,"aria-label":String(a?c:u).replace(/\{page\}/g,e.number),"aria-current":a?"page":void 0,children:e.number})},e.number)}),(0,s.jsx)("li",{className:"mg-pager__item mg-pager__item--next",children:(0,s.jsxs)("button",{type:"button",className:"mg-pager__link mg-pager__link--next "+(h?"":"mg-pager__link--disabled"),onClick:()=>b(n+1),onKeyDown:e=>d(e,n+1),disabled:!h||l,"aria-label":p,"aria-disabled":!h,children:[(0,s.jsx)("span",{className:"mg-pager__text",children:i}),(0,s.jsx)("svg",{className:"mg-pager__icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:(0,s.jsx)("polyline",{points:"9 18 15 12 9 6"})})]})})]})}function p({range:e,rangeLabel:a="Showing {start}–{end}"}){if(!e)return null;const n=a.replace("{start}",e.start).replace("{end}",e.end);return(0,s.jsx)("p",{className:"mg-pager__range","aria-live":"polite",children:n})}function u({jumpToLabel:a="Go to page",jumpToAction:r="Go",onPageChange:t,totalPages:l,isLoading:o=!1}){const[i,g]=n(""),p=e(e=>{e.preventDefault();const a=parseInt(i,10);if(Number.isNaN(a)||a<1)return;let n=a;null!=l&&(n=Math.min(n,l)),n=Math.max(1,n),t(n),g("")},[i,t,l]),u="mg-pager-jump-input";return(0,s.jsxs)("form",{className:"mg-pager__jump",onSubmit:p,children:[(0,s.jsx)("label",{className:"mg-pager__jump-label",htmlFor:u,children:a}),(0,s.jsx)("input",{id:u,className:"mg-pager__jump-input",type:"number",min:1,max:null!=l?l:void 0,value:i,onChange:e=>g(e.target.value),disabled:o,"aria-label":a}),(0,s.jsx)("button",{type:"submit",className:"mg-pager__jump-btn",disabled:o||!i,children:r})]})}function c({page:e,totalPages:a=null,onPageChange:n,isLoading:r=!1,layout:t="centered",ariaLabel:l="Pagination",range:o,rangeLabel:i,showJumpTo:c=!1,jumpToLabel:m,jumpToAction:b,emptyState:d,emptyAction:L,prevLabel:h="Previous",nextLabel:x="Next",goPrevLabel:f="Go to previous page",goNextLabel:y="Go to next page",pageLabel:v="Page {page}",currentPageLabel:_="Page {page}, current page",pageOfLabel:j="Page {page} of {total}"}){return d?(0,s.jsx)("nav",{className:"mg-pager","aria-label":l,children:(0,s.jsxs)("p",{className:"mg-pager__notice",children:[d,L&&(0,s.jsxs)(s.Fragment,{children:[" ",(0,s.jsx)("button",{type:"button",className:"mg-pager__notice-action",onClick:L.onClick,children:L.label})]})]})}):"bar"===t?(0,s.jsxs)("nav",{className:"mg-pager","aria-label":l,children:[(0,s.jsxs)("div",{className:"mg-pager__bar",children:[o&&(0,s.jsx)(p,{range:o,rangeLabel:i}),(0,s.jsx)(g,{page:e,totalPages:a,onPageChange:n,isLoading:r,prevLabel:h,nextLabel:x,goPrevLabel:f,goNextLabel:y,pageLabel:v,currentPageLabel:_}),c&&(0,s.jsx)(u,{jumpToLabel:m,jumpToAction:b,onPageChange:n,totalPages:a,isLoading:r})]}),(0,s.jsx)("div",{className:"mg-u-sr-only","aria-live":"polite",children:"function"==typeof j?j({page:e,total:a??""}):String(j).replace(/\{page\}/g,e).replace(/\{total\}/g,a??"")})]}):(0,s.jsxs)("nav",{className:"mg-pager","aria-label":l,children:[(0,s.jsx)(g,{page:e,totalPages:a,onPageChange:n,isLoading:r,prevLabel:h,nextLabel:x,goPrevLabel:f,goNextLabel:y,pageLabel:v,currentPageLabel:_}),(0,s.jsx)("div",{className:"mg-u-sr-only","aria-live":"polite",children:String(j).replace(/\{page\}/g,e).replace(/\{total\}/g,a??"")})]})}g.propTypes={page:i().number.isRequired,totalPages:i().number,onPageChange:i().func.isRequired,isLoading:i().bool,prevLabel:i().string,nextLabel:i().string,goPrevLabel:i().string,goNextLabel:i().string,pageLabel:i().string,currentPageLabel:i().string},p.propTypes={range:i().shape({start:i().number.isRequired,end:i().number.isRequired}),rangeLabel:i().string},u.propTypes={jumpToLabel:i().string,jumpToAction:i().string,onPageChange:i().func.isRequired,totalPages:i().number,isLoading:i().bool},c.propTypes={page:i().number.isRequired,totalPages:i().number,onPageChange:i().func.isRequired,isLoading:i().bool,layout:i().oneOf(["centered","bar"]),ariaLabel:i().string,range:i().shape({start:i().number.isRequired,end:i().number.isRequired}),rangeLabel:i().string,showJumpTo:i().bool,jumpToLabel:i().string,jumpToAction:i().string,emptyState:i().string,emptyAction:i().shape({label:i().string.isRequired,onClick:i().func.isRequired}),prevLabel:i().oneOfType([i().string,i().func]),nextLabel:i().oneOfType([i().string,i().func]),goPrevLabel:i().oneOfType([i().string,i().func]),goNextLabel:i().oneOfType([i().string,i().func]),pageLabel:i().oneOfType([i().string,i().func]),currentPageLabel:i().oneOfType([i().string,i().func]),pageOfLabel:i().oneOfType([i().string,i().func])};const m=c;function b(e){const{dataset:a}=e;return{page:a.page?parseInt(a.page,10):1,totalPages:a.totalPages?parseInt(a.totalPages,10):null,layout:a.layout||"centered",showJumpTo:"true"===a.showJumpTo,ariaLabel:a.ariaLabel||"Pagination",rangeLabel:a.rangeLabel||void 0,jumpToLabel:a.jumpToLabel||void 0,jumpToAction:a.jumpToAction||void 0,prevLabel:a.prevLabel||void 0,nextLabel:a.nextLabel||void 0,goPrevLabel:a.goPrevLabel||void 0,goNextLabel:a.goNextLabel||void 0,pageLabel:a.pageLabel||void 0,currentPageLabel:a.currentPageLabel||void 0,pageOfLabel:a.pageOfLabel||void 0}}export{c as Pager,m as default,b 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see QuoteHighlight.js.LICENSE.txt */
6
6
  import"react";var e={2694(e,t,r){var a=r(6925);function i(){}function n(){}n.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,n,o){if(o!==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 t(){return e}e.isRequired=e;var r={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:n,resetWarningCache:i};return r.PropTypes=r,r}},5556(e,t,r){e.exports=r(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var r=Symbol.for("react.transitional.element");function a(e,t,a){var i=null;if(void 0!==a&&(i=""+a),void 0!==t.key&&(i=""+t.key),"key"in t)for(var n in a={},t)"key"!==n&&(a[n]=t[n]);else a=t;return t=a.ref,{$$typeof:r,type:e,key:i,ref:void 0!==t?t:null,props:a}}Symbol.for("react.fragment"),t.jsx=a,t.jsxs=a},4848(e,t,r){e.exports=r(9698)}},t={};function r(a){var i=t[a];if(void 0!==i)return i.exports;var n=t[a]={exports:{}};return e[a](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a=r(5556),i=r.n(a),n=r(4848);const o=({quote:e,attribution:t,attributionTitle:r,imageSrc:a,imageAlt:i,backgroundColor:o="light",variant:s="line",alignment:l="full",className:c="",...u})=>{const m="mg-quote-highlight",p=!!a;return(0,n.jsxs)("section",{className:`${m} ${m}--${o} ${m}--${s} ${m}--${l} ${p?`${m}--has-image`:""} ${c}`,...u,children:[(0,n.jsxs)("div",{className:`${m}__content`,children:[(0,n.jsx)("blockquote",{className:`${m}__quote`,children:"string"!=typeof e||e.includes("<")?(0,n.jsx)("span",{dangerouslySetInnerHTML:{__html:e}}):(0,n.jsx)("p",{children:e})}),"line"===s&&(0,n.jsx)("div",{className:`${m}__separator`}),(t||r||p)&&(0,n.jsx)("div",{className:`${m}__attribution`,children:(0,n.jsxs)("div",{className:`${m}__attribution-wrapper`,children:[p&&(0,n.jsx)("div",{className:`${m}__portrait-container`,children:(0,n.jsx)("img",{src:a,alt:i||`${t||"Quote"} image`,className:`${m}__portrait`})}),(t||r)&&(0,n.jsxs)("div",{className:`${m}__attribution-text`,children:[t&&(0,n.jsx)("p",{className:`${m}__attribution-name`,dangerouslySetInnerHTML:{__html:t}}),r&&(0,n.jsx)("p",{className:`${m}__attribution-title`,dangerouslySetInnerHTML:{__html:r}})]})]})})]}),"image"===s&&p&&(0,n.jsx)("div",{className:`${m}__image-container`,children:(0,n.jsx)("img",{src:a,alt:i||`${t||"Quote"} image`,className:`${m}__image`})})]})};o.propTypes={quote:i().string.isRequired,attribution:i().string,attributionTitle:i().string,imageSrc:i().string,imageAlt:i().string,backgroundColor:i().oneOf(["light","dark","bright"]),variant:i().oneOf(["line","image"]),alignment:i().oneOf(["full","left","right"]),className:i().string};const s=o;function l(e){const{dataset:t}=e;return{quote:t.quote||"",attribution:t.attribution||void 0,attributionTitle:t.attributionTitle||void 0,imageSrc:t.imageSrc||void 0,imageAlt:t.imageAlt||void 0,backgroundColor:t.backgroundColor||"light",variant:t.variant||"line",alignment:t.alignment||"full"}}export{s as default,l 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see Radio.js.LICENSE.txt */
6
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,i){if(i!==a){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 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"},9698(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},4848(e,r,o){e.exports=o(9698)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},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(5556),n=a.n(t),i=a(4848);function l({id:r,name:o,label:a,value:t,checked:n,defaultChecked:l,onChange:s,disabled:c=!1,error:p=!1,errorText:d,labelPosition:f="after",className:m,...u}){const b=e(),h=r||b,y=p&&d?`${h}-error`:void 0,v=["mg-form-check__input","mg-form-check__input--radio",c&&"mg-form-check__input--disabled",p&&"mg-form-check__input--error"].filter(Boolean).join(" "),g=a&&(0,i.jsx)("label",{className:"mg-form-check__label",htmlFor:h,children:a});return(0,i.jsxs)("div",{className:["mg-form-check",m].filter(Boolean).join(" "),children:["before"===f&&g,(0,i.jsx)("input",{className:v,type:"radio",id:h,name:o,value:t,checked:n,defaultChecked:l,onChange:s,disabled:c,"aria-invalid":p||void 0,"aria-describedby":y,...a?{}:{"aria-label":t},...u}),"after"===f&&g,p&&d&&(0,i.jsx)("p",{className:"mg-form-error",id:y,role:"alert",children:d})]})}l.propTypes={id:n().string,name:n().string,label:n().string,value:n().string,checked:n().bool,defaultChecked:n().bool,onChange:n().func,disabled:n().bool,error:n().bool,errorText:n().string,labelPosition:n().oneOf(["before","after"]),className:n().string};const s=l;export{l as Radio,s 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see ScrollContainer.js.LICENSE.txt */
6
6
  import{default as e,useCallback as r,useEffect as t,useMemo as n,useRef as o}from"react";var s={2694(e,r,t){var n=t(6925);function o(){}function s(){}s.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,s,l){if(l!==n){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 t={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:s,resetWarningCache:o};return t.PropTypes=t,t}},5556(e,r,t){e.exports=t(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,r){var t=Symbol.for("react.transitional.element");function n(e,r,n){var o=null;if(void 0!==n&&(o=""+n),void 0!==r.key&&(o=""+r.key),"key"in r)for(var s in n={},r)"key"!==s&&(n[s]=r[s]);else n=r;return r=n.ref,{$$typeof:t,type:e,key:o,ref:void 0!==r?r:null,props:n}}Symbol.for("react.fragment"),r.jsx=n,r.jsxs=n},4848(e,r,t){e.exports=t(9698)}},l={};function i(e){var r=l[e];if(void 0!==r)return r.exports;var t=l[e]={exports:{}};return s[e](t,t.exports,i),t.exports}i.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return i.d(r,{a:r}),r},i.d=(e,r)=>{for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r);var a=i(5556),c=i.n(a),u=i(4848);const d={scrollLeftLabel:"Scroll left",scrollRightLabel:"Scroll right"},m=e.memo(({onScroll:e,leftButtonRef:r,rightButtonRef:t,scrollLeftLabel:n="Scroll left",scrollRightLabel:o="Scroll right"})=>(0,u.jsxs)("nav",{className:"mg-scroll__nav",children:[(0,u.jsx)("button",{ref:r,className:"mg-scroll__nav-button",onClick:()=>e("left"),"aria-label":n,children:"←"}),(0,u.jsx)("button",{ref:t,className:"mg-scroll__nav-button",onClick:()=>e("right"),"aria-label":o,children:"→"})]}));m.propTypes={onScroll:c().func.isRequired,leftButtonRef:c().object.isRequired,rightButtonRef:c().object.isRequired,scrollLeftLabel:c().string,scrollRightLabel:c().string};const g=({children:s,height:l="auto",minWidth:i="auto",itemWidth:a="auto",padding:c="0",className:g="",showArrows:p=!1,stepSize:h=null,labels:f={},...v})=>{const{scrollLeftLabel:b,scrollRightLabel:L}={...d,...f},w=o(null),y=o(null),_=o(null),S=o(null),x=o(!1),E=o({isDragging:!1,hasDragged:!1,startX:0,startScrollLeft:0}),R=r(()=>{x.current="ontouchstart"in window&&/Mobi|Android|iPhone|iPad/i.test(navigator.userAgent)},[]),j=r(e=>{if(!w.current)return;const r=h||w.current.clientWidth/2,t=w.current.scrollLeft+("right"===e?r:-r);w.current.scrollTo({left:t,behavior:"smooth"})},[h]),T=r(()=>{if(!w.current||!p||x.current)return;const{scrollLeft:e,scrollWidth:r,clientWidth:t}=w.current,n=e>0,o=e+t<r;_.current&&(_.current.disabled=!n),S.current&&(S.current.disabled=!o)},[p]),D=r(e=>{!w.current||e.type.includes("mouse")&&x.current||e.type.includes("mouse")&&(E.current={...E.current,isDragging:!0,hasDragged:!1,startX:e.pageX,startScrollLeft:w.current.scrollLeft},e.preventDefault())},[]),k=r(e=>{if(E.current.isDragging&&w.current&&(!e.type.includes("mouse")||!x.current)&&e.type.includes("mouse")){const r=e.pageX;if(Math.abs(E.current.startX-r)>10){e.preventDefault(),E.current.hasDragged=!0;const t=E.current.startX-r;w.current.scrollLeft=E.current.startScrollLeft+t,T()}}},[T]),W=r(e=>{E.current.isDragging&&(E.current.isDragging=!1);const r=e.pageX;Math.abs(E.current.startX-r)<2&&e.target.href&&(window.parent.location.href=e.target.href)},[]),O=r(e=>{E.current.hasDragged&&(e.preventDefault(),e.stopPropagation())},[]),P=n(()=>({"--scroll-height":l,"--scroll-min-width":i,"--scroll-padding":c,"--scroll-item-width":a}),[l,i,c,a]),M=n(()=>["mg-scroll__container",l&&"mg-scroll__container--custom-height",i&&"mg-scroll__container--custom-width",c&&"mg-scroll__container--custom-padding",a&&"mg-scroll__container--custom-item-width",x.current&&"mg-scroll__container--mobile",g].filter(Boolean).join(" "),[l,i,c,a,g]);return t(()=>{R(),T();const e=w.current;return e&&(e.addEventListener("scroll",T,{passive:!0}),window.addEventListener("resize",T,{passive:!0}),x.current||(e.addEventListener("mousedown",D),window.addEventListener("mousemove",k),window.addEventListener("mouseup",W),window.addEventListener("mouseleave",W)),e.addEventListener("click",O,{capture:!0})),()=>{e&&(e.removeEventListener("scroll",T),window.removeEventListener("resize",T),x.current||(e.removeEventListener("mousedown",D),window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",W),window.removeEventListener("mouseleave",W)),e.removeEventListener("click",O,{capture:!0}))}},[R,T,D,k,W,O]),(0,u.jsxs)("section",{className:"mg-scroll"+(x.current?" mg-scroll--mobile":""),children:[p&&!x.current&&(0,u.jsx)(m,{onScroll:j,leftButtonRef:_,rightButtonRef:S,scrollLeftLabel:b,scrollRightLabel:L}),(0,u.jsx)("div",{ref:w,className:M,style:P,...v,children:(0,u.jsx)("div",{ref:y,className:"mg-scroll__content"+(x.current?"":" mg-grid"),children:Array.isArray(s)&&!e.isValidElement(s[0])?s.map((e,r)=>(0,u.jsx)("div",{className:"mg-scroll__item-wrapper",children:(0,u.jsx)("div",{dangerouslySetInnerHTML:{__html:String(e)}})},r)):e.Children.map(s,e=>(0,u.jsx)("div",{className:"mg-scroll__item-wrapper",children:e}))})})]})};g.propTypes={children:c().node.isRequired,height:c().string,minWidth:c().string,itemWidth:c().string,padding:c().string,className:c().string,showArrows:c().bool,stepSize:c().number,labels:c().shape({scrollLeftLabel:c().string,scrollRightLabel:c().string})};const p=e.memo(g);function h(e){const{dataset:r}=e,t={height:r.height||"auto",minWidth:r.minWidth||"auto",itemWidth:r.itemWidth||"auto",padding:r.padding||"0",showArrows:"true"===r.showArrows,stepSize:r.stepSize?parseInt(r.stepSize,10):null},n=[],o=(new DOMParser).parseFromString(e.innerHTML,"text/html").querySelector(".mg-scroll__content");return o?Array.from(o.children).forEach(e=>{n.push(e.outerHTML)}):e.innerHTML.trim()&&n.push(e.innerHTML),t.children=n,t}export{p as default,h 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see Select.js.LICENSE.txt */
6
6
  import{useId as e}from"react";var r={2694(e,r,o){var a=o(6925);function l(){}function n(){}n.resetWarningCache=l,e.exports=function(){function e(e,r,o,l,n,t){if(t!==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:l};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"},9698(e,r){var o=Symbol.for("react.transitional.element");function a(e,r,a){var l=null;if(void 0!==a&&(l=""+a),void 0!==r.key&&(l=""+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:l,ref:void 0!==r?r:null,props:a}}Symbol.for("react.fragment"),r.jsx=a,r.jsxs=a},4848(e,r,o){e.exports=o(9698)}},o={};function a(e){var l=o[e];if(void 0!==l)return l.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return a.d(r,{a:r}),r},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 l=a(5556),n=a.n(l),t=a(4848);const i=[];function s({id:r,name:o,label:a,hideLabel:l=!1,options:n=i,placeholder:s,value:d,defaultValue:p,onChange:c,disabled:f=!1,required:u=!1,helpText:m,error:b=!1,errorText:g,className:v,...h}){const y=e(),x=r||y,j=m?`${x}-help`:void 0,T=b&&g?`${x}-error`:void 0,O=[j,T].filter(Boolean).join(" ")||void 0,_=["mg-form-select",f&&"mg-form-select--disabled",b&&"mg-form-select--error"].filter(Boolean).join(" "),k=["mg-form-label",l&&"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",v].filter(Boolean).join(" "),children:[a&&(0,t.jsx)("label",{className:k,htmlFor:x,children:a}),(0,t.jsxs)("select",{className:_,id:x,name:o,value:d,defaultValue:p,onChange:c,disabled:f,required:u,"aria-describedby":O,"aria-invalid":b||void 0,...a?{}:{"aria-label":s||"Select"},...h,children:[s&&(0,t.jsx)("option",{value:"",disabled:!0,children:s}),n.map(e=>(0,t.jsx)("option",{value:e.value,disabled:e.disabled,children:e.label},e.value))]}),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})]})}s.propTypes={id:n().string,name:n().string,label:n().string,hideLabel:n().bool,options:n().arrayOf(n().shape({value:n().string.isRequired,label:n().string.isRequired,disabled: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 d=s;export{s as Select,d 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see ShareButtons.js.LICENSE.txt */
6
6
  import{useEffect as e,useRef as t,useState as n}from"react";var r={6320(e){var t={single_source_shortest_paths:function(e,n,r){var o={},a={};a[n]=0;var i,s,l,c,u,d,h,g=t.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(l in s=(i=g.pop()).value,c=i.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=a[l],(void 0===a[l]||h>d)&&(a[l]=d,g.push(l,d),o[l]=s));if(void 0!==r&&void 0===a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=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 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 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"},7583(e,t,n){const r=n(1333),o=n(157),a=n(7899),i=n(6756);function s(e,t,n,a,i){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=a=void 0):2!==l||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,i){try{const i=o.create(n,a);r(e(i,t,a))}catch(e){i(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(i=n,n=t,t=a=void 0):3===l&&(t.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0));try{const r=o.create(n,a);i(null,e(r,t,a))}catch(e){i(e)}}t.create=o.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return i.render(e,n)})},1333(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(e,t,n){const r=n(6886).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-o;return a.push(6),a.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},1433(e,t,n){const r=n(208),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=a},9899(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},8820(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},5822(e,t,n){const r=n(208);function o(e){this.mode=r.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},7518(e,t,n){const r=n(9953),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},9953(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},7756(e,t,n){const r=n(6886).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},4565(e,t,n){const r=n(6886),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},2731(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},4861(e,t,n){const r=n(208),o=n(6886);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=a},1332(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,a=null,i=null;for(let s=0;s<t;s++){r=o=0,a=i=null;for(let l=0;l<t;l++){let t=e.get(s,l);t===a?r++:(r>=5&&(n+=r-5+3),a=t,r=1),t=e.get(l,s),t===i?o++:(o>=5&&(n+=o-5+3),i=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let a=0;a<t;a++){r=o=0;for(let i=0;i<t;i++)r=r<<1&2047|e.get(a,i),i>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(i,a),i>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let a=0;a<r;a++)t.isReserved(a,o)||t.xor(a,o,n(e,a,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,o=i)}return o}},208(e,t,n){const r=n(1878),o=n(7044);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},4357(e,t,n){const r=n(208);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},4713(e,t,n){const r=n(2731);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},157(e,t,n){const r=n(6886),o=n(9953),a=n(9899),i=n(8820),s=n(6421),l=n(7756),c=n(1332),u=n(7518),d=n(4764),h=n(1427),g=n(4565),f=n(208),p=n(9801);function m(e,t,n){const r=e.size,o=g.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=1==(o>>a&1),a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let g;if(Array.isArray(e))g=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=p.rawSplit(e);r=h.getBestVersionForData(t,n)}g=p.fromString(e,r||40)}}const y=h.getBestVersionForData(g,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const b=function(e,t,n){const o=new a;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(o)});const i=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),a=o-u.getTotalCodewordsCount(t,n),i=u.getBlocksCount(t,n),s=i-o%i,l=Math.floor(o/i),c=Math.floor(a/i),h=c+1,g=l-c,f=new d(g);let p=0;const m=new Array(i),y=new Array(i);let b=0;const w=new Uint8Array(e.buffer);for(let e=0;e<i;e++){const t=e<s?c:h;m[e]=w.slice(p,p+t),y[e]=f.encode(m[e]),p+=t,b=Math.max(b,t)}const C=new Uint8Array(o);let E,x,v=0;for(E=0;E<b;E++)for(x=0;x<i;x++)E<m[x].length&&(C[v++]=m[x][E]);for(E=0;E<g;E++)for(x=0;x<i;x++)C[v++]=y[x][E];return C}(o,e,t)}(t,n,g),w=r.getSymbolSize(t),C=new i(w);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,a+r,!0,!0):e.set(o+t,a+r,!1,!0))}}(C,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(C),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(C,t),m(C,n,0),t>=7&&function(e,t){const n=e.size,r=h.getEncodedBits(t);let o,a,i;for(let t=0;t<18;t++)o=Math.floor(t/3),a=t%3+n-8-3,i=1==(r>>t&1),e.set(o,a,i,!0),e.set(a,o,i,!0)}(C,t),function(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;i<t.length&&(r=1==(t[i]>>>a&1)),e.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(C,b),isNaN(o)&&(o=c.getBestMask(C,m.bind(null,C,n))),c.applyMask(o,C),m(C,n,o),{modules:C,version:t,errorCorrectionLevel:n,maskPattern:o,segments:g}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,a,i=o.M;return void 0!==t&&(i=o.from(t.errorCorrectionLevel,o.M),n=h.from(t.version),a=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,i,a)}},4764(e,t,n){const r=n(4713);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},7044(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},9801(e,t,n){const r=n(208),o=n(4357),a=n(1433),i=n(5822),s=n(4861),l=n(7044),c=n(6886),u=n(6320);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function g(e){const t=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,a;return c.isKanjiModeEnabled()?(o=h(l.BYTE,r.BYTE,e),a=h(l.KANJI,r.KANJI,e)):(o=h(l.BYTE_KANJI,r.BYTE,e),a=[]),t.concat(n,o,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function p(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(g(e,c.isKanjiModeEnabled())),a=function(e,t){const n={},o={start:{}};let a=["start"];for(let i=0;i<e.length;i++){const s=e[i],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<a.length;e++){const i=a[e];n[i]&&n[i].node.mode===c.mode?(o[i][u]=f(n[i].lastCount+c.length,c.mode)-f(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),o[i][u]=f(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=l}for(let e=0;e<a.length;e++)o[a[e]].end=0;return{map:o,table:n}}(o,n),i=u.find_path(a.map,"start","end"),s=[];for(let e=1;e<i.length-1;e++)s.push(a.table[i[e]].node);return t.fromArray(s.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(g(e,c.isKanjiModeEnabled()))}},6886(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},1878(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},1427(e,t,n){const r=n(6886),o=n(7518),a=n(9953),i=n(208),s=n(1878),l=r.getBCHDigit(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===i.MIXED)return a;const l=a-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},7899(e,t,n){const r=n(2726);t.render=function(e,t,n){let o=n,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(e.modules.size,o),s=a.getContext("2d"),l=s.createImageData(i,i);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,i),s.putImageData(l,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=t.render(e,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},6756(e,t,n){const r=n(2726);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const i=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=i?a("M",c+n,.5+u+n):a("m",o,0),o=0,i=!1),c+1<t&&e[l+1]||(r+=a("h",s),s=0)):o++}return r}(l,s,i.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,g),g}},2726(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,a=n.modules.data,i=t.getScale(o,r),s=Math.floor((o+2*r.margin)*i),l=r.margin*i,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;t>=l&&n>=l&&t<s-l&&n<s-l&&(d=c[a[Math.floor((t-l)/i)*o+Math.floor((n-l)/i)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},9698(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},4848(e,t,n){e.exports=n(9698)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=a(5556),s=a.n(i),l=a(7583);const c=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');var u=a(4848);const d="Check out this link: ",h="Sharing Link",g={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},f=({isOpen:r,onClose:o,qrCodeDataUrl:a,onCopy:i,onDownload:s,sharedLink:l,copiedLabel:c="Image copied",titleLabel:d="QR code",descriptionLabel:h="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:g="Close modal",copyImageLabel:f="Copy image",downloadImageLabel:p="Download image",closeMessageLabel:m="Close message"})=>{const y=t(null),[b,w]=n(!1),C=t(r);return r!==C.current&&(C.current=r,r&&w(!1)),e(()=>{const e=e=>{"Escape"===e.key&&o()},t=e=>{y.current&&!y.current.contains(e.target)&&o()};return r&&(document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.body.style.overflow="unset"}},[r,o]),r?(0,u.jsx)("div",{"data-vf-google-analytics-region":"share-qr-code",className:"mg-modal-overlay",style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,u.jsxs)("div",{ref:y,className:"mg-modal",style:{backgroundColor:"white",borderRadius:"8px",padding:"24px",maxWidth:"500px",width:"90%",maxHeight:"90vh",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,u.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",flexShrink:0},children:[(0,u.jsx)("h3",{children:d}),(0,u.jsx)("button",{onClick:o,style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"4px",borderRadius:"4px",color:"#666"},"aria-label":g,children:"×"})]}),(0,u.jsx)("p",{children:h}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",paddingRight:"8px"},children:a&&(0,u.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,u.jsx)("img",{src:a,alt:"QR Code",style:{maxWidth:"100%",maxHeight:"220px",height:"auto"}}),(0,u.jsx)("div",{style:{textAlign:"left"},children:(0,u.jsx)("code",{className:"mg-code--block",children:(()=>{const e=new URL(l);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()})})]})}),(0,u.jsx)("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:b?`${c}`:""}),(0,u.jsxs)("div",{style:{marginTop:"16px",flexShrink:0,display:"flex",gap:"8px",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,u.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[(0,u.jsx)("button",{onClick:async()=>{try{await i(),w(!0),setTimeout(()=>{w(!1)},2e3)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:b,children:b?c:f}),(0,u.jsx)("button",{onClick:s,className:"mg-button mg-button-secondary",children:p})]}),(0,u.jsx)("button",{onClick:o,className:"mg-button mg-button-secondary",style:{marginLeft:"auto"},children:m})]})]})}):null},p=({labels:e={},SharingSubject:t,SharingTextBody:r,...o})=>{const a={...g,...e},[i,s]=n(!1),[p,y]=n(null),b=(()=>{const e=document.querySelector('link[rel="shortlink"]');return e?e.href:window.location.href})(),w=e=>{if("QRCode"===e)C();else if("WebShare"===e&&navigator.share)navigator.share({title:t??h,text:r??d,url:b}).catch(e=>console.error("Error sharing",e));else{var n=(e=>{let n=c[e];const o=encodeURIComponent(t??h),a=encodeURIComponent(r??d)+encodeURIComponent(b);return n.replace("[SHARING_TEXT_SUBJECT]",o).replace("[SHARING_TEXT_BODY]",a)})(e);"Mail"===e?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},C=async()=>{try{const e=new URL(b);e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box");const t=e.toString(),n=await l.toDataURL(t,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});y(n),s(!0)}catch(e){console.error("Error generating QR code:",e),alert("Failed to generate QR code. Please try again.")}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...o,children:[(0,u.jsx)("header",{className:"mg-share__header",children:a.mainLabel}),(0,u.jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>w("WebShare"),"aria-label":a.shareUsingDevice,title:a.shareUsingDevice,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>w("LinkedIn"),"aria-label":a.shareOnLinkedIn,className:"mg-share__button",title:a.shareOnLinkedIn,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>w("Facebook"),"aria-label":a.shareOnFacebook,title:a.shareOnFacebook,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>w("Twitter"),"aria-label":a.shareOnX,className:"mg-share__button",title:a.shareOnX,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>w("Mail"),"aria-label":a.shareViaEmail,className:"mg-share__button",title:a.shareViaEmail,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: QR Code",onClick:()=>w("QRCode"),"aria-label":a.generateQRCode,className:"mg-share__button",title:a.generateQRCode,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,u.jsx)(m,{className:"mg-share__copy-button",copiedLabel:a.onCopy,copyToClipboardLabel:a.copyToClipboard,sharedLink:b})]}),(0,u.jsx)(f,{isOpen:i,onClose:()=>{s(!1),p&&(URL.revokeObjectURL(p),y(null))},qrCodeDataUrl:p,onCopy:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new ClipboardItem({"image/png":t});await navigator.clipboard.write([n])}}catch(e){console.error("Error copying QR code to clipboard:",e),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new URL(b);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const e=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");e&&(r+=`-${e}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:b,copiedLabel:a.onCopy,titleLabel:a.qrCodeTitle,descriptionLabel:a.qrCodeDescription,closeModalLabel:a.closeModal,copyImageLabel:a.copyImage,downloadImageLabel:a.downloadImage,closeMessageLabel:a.closeMessage})]})};function m({copiedLabel:e,sharedLink:t,className:r,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=n(!1);let s=t;return t.startsWith("https://")?s=t.replace("https://",""):t.startsWith("http://")&&(s=t.replace("http://","")),(0,u.jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:r,onClick:()=>(navigator.clipboard.writeText(t),void i(!0)),children:[(0,u.jsx)("div",{className:"mg-share__clip-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,u.jsx)("div",{className:"mg-share__copy-text",children:a?e:s}),(0,u.jsx)("div",{className:"mg-share__stack-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}f.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,qrCodeDataUrl:s().string,onCopy:s().func.isRequired,onDownload:s().func.isRequired,sharedLink:s().string.isRequired,copiedLabel:s().string},p.propTypes={labels:s().shape({mainLabel:s().string,onCopy:s().string,qrCodeTitle:s().string,qrCodeDescription:s().string,closeModal:s().string,copyImage:s().string,downloadImage:s().string,closeMessage:s().string,shareUsingDevice:s().string,shareOnLinkedIn:s().string,shareOnFacebook:s().string,shareOnX:s().string,shareViaEmail:s().string,generateQRCode:s().string,copyToClipboard:s().string}),SharingSubject:s().string,SharingTextBody:s().string},m.propTypes={copiedLabel:s().string.isRequired,sharedLink:s().string.isRequired,className:s().string,copyToClipboardLabel:s().string};const y=p;function b(e){const{dataset:t}=e;return{labels:{mainLabel:t.mainLabel||"Share this",onCopy:t.onCopyLabel||"Link copied"},SharingSubject:t.sharingSubject||"Sharing Link",SharingTextBody:t.sharingBody||""}}export{m as CopyButton,y as default,b 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-06-19T12:53:34.453Z
3
+ * Compiled on: 2026-07-06T14:31:03.210Z
4
4
  */
5
5
  /*! For license information please see ShowMore.js.LICENSE.txt */
6
6
  import{default as e,useEffect as t}from"react";var o={2694(e,t,o){var a=o(6925);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,s,n){if(n!==a){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 o={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:s,resetWarningCache:r};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var o=Symbol.for("react.transitional.element");function a(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var s in a={},t)"key"!==s&&(a[s]=t[s]);else a=t;return t=a.ref,{$$typeof:o,type:e,key:r,ref:void 0!==t?t:null,props:a}}Symbol.for("react.fragment"),t.jsx=a,t.jsxs=a},4848(e,t,o){e.exports=o(9698)}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var s=a[e]={exports:{}};return o[e](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{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 s=r(5556),n=r.n(s);function l(e){(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(t=>{if(!e&&t.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(t.dataset.mgShowMoreInitialized)return;t.dataset.mgShowMoreInitialized="true",t.dataset.dataVfGoogleAnalyticsLabel="Show more: "+t.dataset.mgShowMoreLabelCollapsed||0;const o=t.dataset.mgShowMoreTarget||".mg-show-more--container",a=document.querySelector(o);a?(t.addEventListener("click",e=>{e.preventDefault(),a.classList.toggle("mg-show-more--collapsed"),t.textContent=a.classList.contains("mg-show-more--collapsed")?t.dataset.mgShowMoreLabelCollapsed||"Show more":t.dataset.mgShowMoreLabelOpen||"Show less",a.classList.contains("mg-show-more--collapsed")?t.classList.remove("mg-show-more--button--open"):t.classList.add("mg-show-more--button--open")}),a.addEventListener("click",()=>{a.classList.contains("mg-show-more--collapsed")&&t.click()}),t.click()):console.warn(`[mg-show-more] Target not found: "${o}"`)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>l(),!1):l();var i=r(4848);const c=[];function p({data:o=c}){return t(()=>{l()},[]),(0,i.jsxs)(e.Fragment,{children:[" ",o.map((t,o)=>(0,i.jsxs)(e.Fragment,{children:[(0,i.jsx)("div",{className:t.collapsable_wrapper_class,children:t.collapsable_text}),(0,i.jsx)("a",{href:"#",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-target":`.${t.collapsable_wrapper_class}`,"data-mg-show-more-label-open":"Show less themes","data-mg-show-more-label-collapsed":"Show more themes",children:t.button_text})]},o))]})}p.propTypes={data:n().arrayOf(n().shape({button_text:n().string.isRequired,collapsable_wrapper_class:n().string.isRequired,collapsable_text:n().string.isRequired})).isRequired};const m=p;export{p as ShowMore,m as default};