@undrr/undrr-mangrove 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/BookCard.js +1 -1
- package/components/Breadcrumbs.js +1 -1
- package/components/Checkbox.js +1 -1
- package/components/Chips.js +1 -1
- package/components/ContentCard.js +1 -1
- package/components/ContentTeaser.js +1 -1
- package/components/CopyButton.js +2 -2
- package/components/CtaButton.js +1 -1
- package/components/Drawer.js +2 -2
- package/components/Drawer.js.LICENSE.txt +1 -1
- package/components/DrupalContentPatterns.js +1 -1
- package/components/EmbedContainer.js +1 -1
- package/components/Footer.js +1 -1
- package/components/FormAction.js +1 -1
- package/components/FormErrorSummary.js +1 -1
- package/components/FormGroup.js +1 -1
- package/components/FullWidth.js +1 -1
- package/components/Gallery.js +2 -2
- package/components/Hero.js +1 -1
- package/components/HighlightBox.js +1 -1
- package/components/HorizontalBookCard.js +2 -2
- package/components/HorizontalBookCard.js.LICENSE.txt +1 -1
- package/components/HorizontalCard.js +2 -2
- package/components/HorizontalCard.js.LICENSE.txt +1 -1
- package/components/IconCard.js +2 -2
- package/components/IconCard.js.LICENSE.txt +1 -1
- package/components/Legend.js +1 -1
- package/components/Loader.js +1 -1
- package/components/MegaMenu.js +2 -2
- package/components/Notice.js +1 -1
- package/components/PageHeader.js +1 -1
- package/components/Pager.js +1 -1
- package/components/ProgressBar.js +1 -1
- package/components/QuoteHighlight.js +2 -2
- package/components/QuoteHighlight.js.LICENSE.txt +1 -1
- package/components/Radio.js +1 -1
- package/components/Range.js +1 -1
- package/components/ScrollContainer.js +2 -2
- package/components/SegmentedControl.js +1 -1
- package/components/Select.js +1 -1
- package/components/ServiceNotice.js +2 -2
- package/components/ShareButtons.js +2 -2
- package/components/ShowMore.js +1 -1
- package/components/SkipLink.js +1 -1
- package/components/StatsCard.js +2 -2
- package/components/StatsCard.js.LICENSE.txt +1 -1
- package/components/SyndicationSearchWidget.js +2 -2
- package/components/Tab.js +2 -2
- package/components/TextCta.js +2 -2
- package/components/TextCta.js.LICENSE.txt +1 -1
- package/components/TextInput.js +1 -1
- package/components/Textarea.js +1 -1
- package/components/Tree.js +1 -1
- package/components/UserFeedback.js +2 -2
- package/components/VerticalCard.js +2 -2
- package/components/VerticalCard.js.LICENSE.txt +1 -1
- package/components/hydrate.js +1 -1
- package/css/style-all.css +4 -4
- package/css/style-all.css.map +1 -1
- package/css/style-delta.css +4 -4
- package/css/style-delta.css.map +1 -1
- package/css/style-gutenberg.css +1 -1
- package/css/style-irp.css +4 -4
- package/css/style-irp.css.map +1 -1
- package/css/style-mcr.css +4 -4
- package/css/style-mcr.css.map +1 -1
- package/css/style-preventionweb.css +4 -4
- package/css/style-preventionweb.css.map +1 -1
- package/css/style.css +4 -4
- package/css/style.css.map +1 -1
- package/docs/EDITORIAL-MANUAL.md +1 -1
- package/error-pages/401.html +1 -1
- package/error-pages/403.html +1 -1
- package/error-pages/404.html +1 -1
- package/error-pages/429.html +1 -1
- package/error-pages/500.html +1 -1
- package/error-pages/502.html +1 -1
- package/error-pages/503.html +1 -1
- package/error-pages/504.html +1 -1
- package/error-pages/5xx.html +1 -1
- package/error-pages/challenge.html +1 -1
- package/error-pages/managed-challenge.html +1 -1
- package/package.json +1 -1
- package/scss/Components/MegaMenu/mega-menu.scss +57 -33
- package/scss/assets/scss/_variables.scss +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Storybook: https://mangrove.undrr.org/
|
|
4
4
|
* LLMs context: https://mangrove.undrr.org/llms.txt
|
|
5
5
|
* Repository: https://github.com/PreventionWeb/undrr-mangrove
|
|
6
|
-
* Compiled on: 2026-10-
|
|
6
|
+
* Compiled on: 2026-10-27T09:44:34.250Z
|
|
7
7
|
*/
|
|
8
8
|
/*! For license information please see HorizontalBookCard.js.LICENSE.txt */
|
|
9
|
-
import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=e}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),v||(v=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const A=W(Array.prototype.forEach);Array.prototype.indexOf;const w=W(Array.prototype.lastIndexOf),x=W(Array.prototype.pop),_=W(Array.prototype.push);Array.prototype.slice;const E=W(Array.prototype.splice),O=Array.isArray,k=W(String.prototype.toLowerCase),N=W(String.prototype.toString),D=W(String.prototype.match),C=W(String.prototype.replace),R=W(String.prototype.indexOf),I=W(String.prototype.trim),L=W(Number.prototype.toString),P=W(Boolean.prototype.toString),z="undefined"==typeof BigInt?null:W(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:W(Symbol.prototype.toString),j=W(Object.prototype.hasOwnProperty),U=W(Object.prototype.toString),F=W(RegExp.prototype.test),H=(B=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(B,e)});var B;function W(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(t,e,r)}}function Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(p&&p(t,null),!O(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)j(t,e)||(t[e]=null);return t}function q(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];j(t,o)&&(O(i)?e[o]=G(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=q(i):e[o]=i)}return e}function $(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return W(n.get);if("function"==typeof n.value)return W(n.value)}t=d(t)}return function(){return null}}const V=y(["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"]),X=y(["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"]),K=y(["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"]),Z=y(["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"]),J=y(["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"]),Q=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=y(["#text"]),et=y(["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"]),nt=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rt=y(["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"]),ot=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),lt=g(/\${[\w\W]*/g),ct=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),st=g(/^aria-[\-\w]+$/),ut=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=g(/^(?:\w+script|data):/i),pt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=g(/^html$/i),dt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=g(/<[/\w!]/g),yt=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),bt=g(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=y(Y({},Tt)),vt=function(){const t={};return A(Tt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),y(t)}(),At=function(){return"undefined"==typeof window?null:window},wt=function(t,e,n,r){return j(t,e)&&O(t[e])?Y(r.base?q(r.base):{},t[e],r.transform):n},xt=function(t,e,n){const r=j(t,e)?t[e]:void 0;return r&&"object"==typeof r?q(r):n()};var _t=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:At();const n=e=>t(e);if(n.version="3.4.16",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,p=e.trustedTypes,m=c.prototype,d=$(m,"cloneNode"),h=$(m,"remove"),T=$(m,"removeAttributeNode"),S=$(m,"nextSibling"),v=$(m,"childNodes"),B=$(m,"parentNode"),W=$(m,"shadowRoot"),G=$(m,"attributes"),Tt=l&&l.prototype?$(l.prototype,"nodeType"):null,_t=l&&l.prototype?$(l.prototype,"nodeName"):null,Et=l&&l.prototype?$(l.prototype,"ownerDocument"):null,Ot=function(t){return Tt?Tt(t):t.nodeType},kt=function(t){return _t?_t(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Nt,Dt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw H('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.')},Pt=function(t){Lt(),It++;try{return Nt.createHTML(t)}finally{It--}},zt=r,Mt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof B&&Mt&&void 0!==Mt.createHTMLDocument;const Wt=it,Yt=at,Gt=lt,qt=ct,$t=st,Vt=ft,Xt=pt,Kt=dt;let Zt=ut,Jt=null;const Qt=Y({},[...V,...X,...K,...J,...tt]);let te=null;const ee=Y({},[...et,...nt,...rt,...ot]);let ne=Object.seal(b(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ie=Object.seal(b(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ye=!1,ge=!1,be=!1,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let we=!0,xe=!1,_e={},Ee=null;const Oe=Y({},["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 ke=null;const Ne=Y({},["audio","video","img","source","image","track"]);let De=null;const Ce=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Pe=Le,ze=!1,Me=null;const je=Y({},[Re,Ie,Le],N),Ue=y(["mi","mo","mn","ms","mtext"]);let Fe=Y({},Ue);const He=y(["annotation-xml"]);let Be=Y({},He);const We=Y({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Ve=r.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?N:k,Jt=wt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=wt(t,"ALLOWED_ATTR",ee,{transform:qe}),Me=wt(t,"ALLOWED_NAMESPACES",je,{transform:N}),De=wt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),ke=wt(t,"ADD_DATA_URI_TAGS",Ne,{transform:qe,base:Ne}),Ee=wt(t,"FORBID_CONTENTS",Oe,{transform:qe}),re=wt(t,"FORBID_TAGS",q({}),{transform:qe}),oe=wt(t,"FORBID_ATTR",q({}),{transform:qe}),_e=!!j(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),ae=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ge=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Te=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,xe=t.IN_PLACE||!1,Zt=function(t){try{return F(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ut,Pe="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=xt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>Y({},Ue)),Be=xt(t,"HTML_INTEGRATION_POINTS",()=>Y({},He));const e=xt(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ne=b(null),j(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),j(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),j(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ge=!0),_e&&(Jt=Y({},tt),te=b(null),!0===_e.html&&(Y(Jt,V),Y(te,et)),!0===_e.svg&&(Y(Jt,X),Y(te,nt),Y(te,ot)),!0===_e.svgFilters&&(Y(Jt,K),Y(te,nt),Y(te,ot)),!0===_e.mathMl&&(Y(Jt,J),Y(te,rt),Y(te,ot))),ie.tagCheck=null,ie.attributeCheck=null,j(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),Y(Jt,t.ADD_TAGS,qe))),j(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),Y(te,t.ADD_ATTR,qe))),j(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(Ee===Oe&&(Ee=q(Ee)),Y(Ee,t.ADD_FORBID_CONTENTS,qe)),we&&(Jt["#text"]=!0),pe&&Y(Jt,["html","head","body"]),Jt.table&&(Y(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Nt;Nt=t.TRUSTED_TYPES_POLICY;try{Ct=Pt("")}catch(t){throw Nt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Nt=void 0,Ct=""):(void 0===Nt&&(Rt||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,i),Rt=!0),Nt=Dt),Nt&&"string"==typeof Ct&&(Ct=Pt("")));y&&y(t),$e=t},Ze=Y({},[...X,...K,...Z]),Je=Y({},[...J,...Q]),Qe=function(t){_(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(h(t),!B(t))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=v(t);if(e){const t=[];A(e,e=>{_(t,e)}),A(t,t=>{try{h(t)}catch(t){}})}const n=G(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ge||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=G(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[qe(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Ot(t)&&rn(t);const n=v(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ye)t="<remove></remove>"+t;else{const e=D(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Pe===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Nt?Pt(t):t;if(Pe===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Mt.createDocument(Pe,"template",null);try{e.documentElement.innerHTML=ze?Ct:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Pe===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=Et?Et(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=C(t,Wt," "),t=C(t,Yt," "),C(t,Gt," ")},un=function(t){var e;t.normalize();const n=Et?Et(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&A(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=_t?_t(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==G(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Tt(t)||t.childNodes!==v(t))},pn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return 11===Tt(t)}catch(t){return!1}},mn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Tt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,$e)})}const hn=function(t,e){if(t instanceof RegExp)return F(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},yn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?q(e):e},gn=function(t,e){return t!==e&&null===B(t)&&(xe&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),gn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=qe(kt(t));if(Jt=yn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),gn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&F(ht,t.textContent)&&F(ht,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&F(vt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!F(yt,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ie.tagCheck instanceof Function&&ie.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!Ee[e]){const e=B(t),r=v(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?d(r[o],!0):r[o];e.insertBefore(i,S(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Ot(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Pe,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Me[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Re?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Re&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Me[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&F(gt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),gn(t,e)},Tn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Se&&("id"===e||"name"===e)&&(n in r||n in Ve))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!F(qt,e))||!(!ae||!F($t,e))||(o?!(!De[e]&&!F(Zt,C(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!ke[t])&&(!ce||F(Vt,C(n,Xt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=Y({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(t){return!Sn[k(t)]&&F(Kt,t)},An=function(t,e,n,r){if(Nt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Pt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return Nt.createScriptURL(t)}finally{It--}}(r)}return r},wn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},xn=function(t,e){if(dn(Bt.beforeSanitizeAttributes,t,null),gn(t,e))return;const r=t.attributes;if(!r||fn(t))return;te=yn(Bt.uponSanitizeAttribute,te,ee,he);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let i=r.length;const a=qe(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=qe(l),f=s;let p="value"===l?f:I(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,e),p=Ae+p,m=!0),fe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&D(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&F(bt,p)?nn(l,t,e):(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&x(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},_n=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),xn(e,t),pn(e.content)&&_n(e.content),1===Ot(e)){const t=W(e);pn(t)&&(En(t),_n(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},En=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){_n(t.shadow);continue}const n=t.node,r=1===Ot(n),o=v(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=_t?_t(n):null;if("string"==typeof t&&"template"===qe(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=W(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return L(t);case"boolean":return P(t);case"bigint":return z?z(t):"0";case"symbol":return M?M(t):"Symbol()";case"undefined":default:return U(t);case"function":case"object":{if(null===t)return U(t);const e=t,n=$(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:U(t)}return U(t)}}}(t)))throw H("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ke(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=xe&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ot(t);if(7===n||8===n&&F(yt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=qe(kt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=v(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=kt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||re[n])throw en(t),H("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),H("root node is clobbered and cannot be sanitized in-place");try{En(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),En(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return Nt&&Te?Pt(t):t;if(r=ln(t),!r)return ge?null:Te?Ct:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),xn(a,s),pn(a.content)&&_n(a.content)}catch(e){throw c&&(en(t),A(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(A(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw H("a node selected for removal could not be safely returned; refusing to sanitize in place");return ue&&un(t),t}if(ge){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&F(mt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),Nt&&Te?Pt(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,Nt=Dt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ke({});const r=qe(t),o=qe(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&j(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(j(Bt,t)){if(void 0!==e){const n=w(Bt[t],e);return-1===n?void 0:E(Bt[t],n,1)[0]}return x(Bt[t])}},n.removeHooks=function(t){j(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Et({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Ot(t){return"string"==typeof t&&""!==t.trim()?t:null}function kt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Nt({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),Et.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},kt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Nt.propTypes={label:a().string,link:a().string};const Dt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function Ct({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Ot(t.link),a=Ot(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Dt("mg-card","mg-card__hc","mg-card-book__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Nt,{label:t.label1,link:i}),(0,r().jsx)(Nt,{label:t.label2,link:i})]}),(0,r().jsx)(kt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:_t.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(Et,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}Ct.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{Ct as HorizontalBookCard};
|
|
9
|
+
import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=e}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),v||(v=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const A=q(Array.prototype.forEach);Array.prototype.indexOf;const w=q(Array.prototype.lastIndexOf),x=q(Array.prototype.pop),_=q(Array.prototype.push),E=q(Array.prototype.slice),O=q(Array.prototype.splice),k=Array.isArray,N=$(Set),D=q(Set.prototype.add),C=q(Set.prototype.has),R=q(String.prototype.toLowerCase),I=q(String.prototype.toString),L=q(String.prototype.match),z=q(String.prototype.replace),P=q(String.prototype.indexOf),M=q(String.prototype.trim),j=q(Number.prototype.toString),U=q(Boolean.prototype.toString),F="undefined"==typeof BigInt?null:q(BigInt.prototype.toString),H="undefined"==typeof Symbol?null:q(Symbol.prototype.toString),B=q(Object.prototype.hasOwnProperty),W=q(Object.prototype.toString),Y=q(RegExp.prototype.test),G=$(TypeError);function q(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(t,e,r)}}function $(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return v(t,n)}}function V(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;if(p&&p(t,null),!k(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function X(t){for(let e=0;e<t.length;e++)B(t,e)||(t[e]=null);return t}function K(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];B(t,o)&&(k(i)?e[o]=X(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=K(i):e[o]=i)}return e}function Z(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return q(n.get);if("function"==typeof n.value)return q(n.value)}t=d(t)}return function(){return null}}const J=y(["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=y(["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"]),tt=y(["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"]),et=y(["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"]),nt=y(["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"]),rt=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ot=y(["#text"]),it=y(["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"]),at=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lt=y(["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"]),ct=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),st=g(/{{[\w\W]*|^[\w\W]*}}/g),ut=g(/<%[\w\W]*|^[\w\W]*%>/g),ft=g(/\${[\w\W]*/g),pt=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),mt=g(/^aria-[\-\w]+$/),dt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ht=g(/^(?:\w+script|data):/i),yt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gt=g(/^html$/i),bt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=g(/<[/\w!]/g),St=g(/<[/\w]/g),vt=g(/<\/no(script|embed|frames)/i),At=g(/\/>/i),wt=y(V({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),xt=function(){return"undefined"==typeof window?null:window},_t=function(t,e,n,r){return B(t,e)&&k(t[e])?V(r.base?K(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=B(t,e)?t[e]:void 0;return r&&"object"==typeof r?K(r):n()};var Ot=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt();const n=e=>t(e);if(n.version="3.4.17",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,p=e.trustedTypes,m=c.prototype,T=Z(m,"cloneNode"),S=Z(m,"remove"),v=Z(m,"removeAttributeNode"),$=Z(m,"nextSibling"),X=Z(m,"childNodes"),Ot=Z(m,"parentNode"),kt=Z(m,"shadowRoot"),Nt=Z(m,"attributes"),Dt=l&&l.prototype?Z(l.prototype,"nodeType"):null,Ct=l&&l.prototype?Z(l.prototype,"nodeName"):null,Rt=l&&l.prototype?Z(l.prototype,"ownerDocument"):null,It=function(t){return Dt?Dt(t):t.nodeType},Lt=function(t){return Ct?Ct(t):t.nodeName},zt=function(t){for(;null!==t;){const e=h(t,"namespaceURI");if(e)return e.get?q(e.get):null;t=d(t)}return null}(m),Pt=function(t){return zt?zt(t):t.namespaceURI};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Mt,jt,Ut="",Ft=!1,Ht=0;const Bt=function(){if(Ht>0)throw G('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.')},Wt=function(t){Bt(),Ht++;try{return Mt.createHTML(t)}finally{Ht--}},Yt=r,Gt=Yt.implementation,qt=Yt.createNodeIterator,$t=Yt.createDocumentFragment,Vt=Yt.getElementsByTagName,Xt=o.importNode;let Kt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof Ot&&Gt&&void 0!==Gt.createHTMLDocument;const Zt=st,Jt=ut,Qt=ft,te=pt,ee=mt,ne=ht,re=yt,oe=bt;let ie=dt,ae=null;const le=V({},[...J,...Q,...tt,...nt,...ot]);let ce=null;const se=V({},[...it,...at,...lt,...ct]);let ue=Object.seal(b(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}})),fe=null,pe=null;const me=Object.seal(b(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,he=!0,ye=!1,ge=!0,be=!1,Te=!0,Se=!1,ve=!1,Ae=null,we=null,xe=!1,_e=!1,Ee=!1,Oe=!1,ke=!0,Ne=!1;const De="user-content-";let Ce=!0,Re=!1,Ie=null,Le={},ze=null;const Pe=V({},["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 Me=null;const je=V({},["audio","video","img","source","image","track"]);let Ue=null;const Fe=V({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ye=We,Ge=!1,qe=null;const $e=V({},[He,Be,We],I),Ve=y(["mi","mo","mn","ms","mtext"]);let Xe=V({},Ve);const Ke=y(["annotation-xml"]);let Ze=V({},Ke);const Je=V({},["title","style","font","a","script"]);let Qe=null;const tn=["application/xhtml+xml","text/html"];let en=null,nn=null;const rn=r.createElement("form"),on=function(t){return t instanceof RegExp||t instanceof Function},an=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(nn&&nn===t)return;t&&"object"==typeof t||(t={}),t=K(t),Qe=-1===tn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,en="application/xhtml+xml"===Qe?I:R,ae=_t(t,"ALLOWED_TAGS",le,{transform:en}),ce=_t(t,"ALLOWED_ATTR",se,{transform:en}),qe=_t(t,"ALLOWED_NAMESPACES",$e,{transform:I}),Ue=_t(t,"ADD_URI_SAFE_ATTR",Fe,{transform:en,base:Fe}),Me=_t(t,"ADD_DATA_URI_TAGS",je,{transform:en,base:je}),ze=_t(t,"FORBID_CONTENTS",Pe,{transform:en}),fe=_t(t,"FORBID_TAGS",K({}),{transform:en}),pe=_t(t,"FORBID_ATTR",K({}),{transform:en}),Le=!!B(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?K(t.USE_PROFILES):t.USE_PROFILES),de=!1!==t.ALLOW_ARIA_ATTR,he=!1!==t.ALLOW_DATA_ATTR,ye=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,be=t.SAFE_FOR_TEMPLATES||!1,Te=!1!==t.SAFE_FOR_XML,Se=t.WHOLE_DOCUMENT||!1,_e=t.RETURN_DOM||!1,Ee=t.RETURN_DOM_FRAGMENT||!1,Oe=t.RETURN_TRUSTED_TYPE||!1,xe=t.FORCE_BODY||!1,ke=!1!==t.SANITIZE_DOM,Ne=t.SANITIZE_NAMED_PROPS||!1,Ce=!1!==t.KEEP_CONTENT,Re=t.IN_PLACE||!1,ie=function(t){try{return Y(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:dt,Ye="string"==typeof t.NAMESPACE?t.NAMESPACE:We,Xe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>V({},Ve)),Ze=Et(t,"HTML_INTEGRATION_POINTS",()=>V({},Ke));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ue=b(null),B(e,"tagNameCheck")&&on(e.tagNameCheck)&&(ue.tagNameCheck=e.tagNameCheck),B(e,"attributeNameCheck")&&on(e.attributeNameCheck)&&(ue.attributeNameCheck=e.attributeNameCheck),B(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ue.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ue),be&&(he=!1),Ee&&(_e=!0),Le&&(ae=V({},ot),ce=b(null),!0===Le.html&&(V(ae,J),V(ce,it)),!0===Le.svg&&(V(ae,Q),V(ce,at),V(ce,ct)),!0===Le.svgFilters&&(V(ae,tt),V(ce,at),V(ce,ct)),!0===Le.mathMl&&(V(ae,nt),V(ce,lt),V(ce,ct))),me.tagCheck=null,me.attributeCheck=null,B(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?me.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(ae===le&&(ae=K(ae)),V(ae,t.ADD_TAGS,en))),B(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?me.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(ce===se&&(ce=K(ce)),V(ce,t.ADD_ATTR,en))),B(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ze===Pe&&(ze=K(ze)),V(ze,t.ADD_FORBID_CONTENTS,en)),Ce&&(ae["#text"]=!0),Se&&V(ae,["html","head","body"]),ae.table&&(V(ae,["tbody"]),delete fe.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Mt;Mt=t.TRUSTED_TYPES_POLICY;try{Ut=Wt("")}catch(t){throw Mt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Mt=void 0,Ut=""):(void 0===Mt&&(Ft||(jt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,i),Ft=!0),Mt=jt),Mt&&"string"==typeof Ut&&(Ut=Wt("")));y&&y(t),nn=t},ln=V({},[...Q,...tt,...et]),cn=V({},[...nt,...rt]),sn=function(t){_(n.removed,{element:t});try{Ot(t).removeChild(t)}catch(e){if(S(t),!Ot(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(t,e,n){try{v(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},fn=function(t){hn(t);const e=X(t);e&&A(E(e),t=>{try{S(t)}catch(t){}});const n=1===It(t)?Nt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&un(t,r,o)}},pn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?v(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(_e||Ee)try{sn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},mn=function(t){const e=Nt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||ce[en(o)]||un(t,r,o)}},dn=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[t];for(;r.length>0;){const t=r.pop();if(!1===e(t))continue;if(n&&1===It(t)){const e=kt(t);En(e)&&r.push(e)}const o=X(t);if(o)for(let t=o.length-1;t>=0;--t)r.push(o[t])}},hn=function(t){dn(t,t=>{1===It(t)&&mn(t)})},yn=function(t){const e=[];return dn(t,t=>{e.push(t)},!0),e},gn=function(t,e){let r=!1;return A(n.removed,e=>{e.element&&(r=r||e.element===t,hn(e.element))}),function(t,e){const n=N();A(yn(t),t=>{1===It(t)&&D(n,t)}),A(e,t=>{1!==It(t)||C(n,t)||mn(t)})}(t,e),r},bn=function(t,e,n,r){const o=vn(t);let i;for(;i=o.nextNode();)C(r,i)&&!C(Ie,i)&&(e&&kn(Kt.uponSanitizeShadowNode,i,null),Rn(i,n),Un(i,n),En(i.content)&&Fn(i.content))},Tn=function(t,e){return!!Te&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},Sn=function(t){let e=null,n=null;if(xe)t="<remove></remove>"+t;else{const e=L(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qe&&Ye===We&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Mt?Wt(t):t;if(Ye===We)try{e=(new u).parseFromString(o,Qe)}catch(t){}if(!e||!e.documentElement){e=Gt.createDocument(Ye,"template",null);try{e.documentElement.innerHTML=Ge?Ut:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ye===We?Vt.call(e,Se?"html":"body")[0]:Se?e.documentElement:i},vn=function(t){const e=Rt?Rt(t):t.ownerDocument;return qt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},An=function(t){return t=z(t,Zt," "),t=z(t,Jt," "),z(t,Qt," ")},wn=function(t){var e;xn(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&A(n,t=>{En(t.content)&&wn(t.content)})},xn=function(t){t.normalize();const e=Rt?Rt(t):t.ownerDocument,n=qt.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=An(r.data),r=n.nextNode()},_n=function(t){const e=Ct?Ct(t):null;return"string"==typeof e&&"form"===en(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Nt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Dt(t)||t.childNodes!==X(t))},En=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return 11===Dt(t)}catch(t){return!1}},On=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Dt(t)}catch(t){return!1}};function kn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,nn)})}const Nn=function(t,e){if(t instanceof RegExp)return Y(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},Dn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?K(e):e},Cn=function(t,e){return t!==e&&null===Ot(t)&&(Re&&hn(t),!0)},Rn=function(t,e){if(Ie&&D(Ie,t),kn(Kt.beforeSanitizeElements,t,null),Cn(t,e))return!0;if(_n(t))return sn(t),!0;const r=en(Lt(t));if(ae=Dn(Kt.uponSanitizeElement,ae,le,Ae),kn(Kt.uponSanitizeElement,t,{tagName:r,allowedTags:ae}),Cn(t,e))return!0;if(function(t,e){return!!(Te&&t.hasChildNodes()&&!On(t.firstElementChild)&&Y(Tt,t.textContent)&&Y(Tt,t.innerHTML))||!!(Te&&wt[e]&&1===It(t)&&Pt(t)===We&&(On(t.firstElementChild)||"string"==typeof t.textContent&&Y(Tt,t.textContent)))||7===t.nodeType||!(!Te||8!==t.nodeType||!Y(St,t.data))}(t,r))return sn(t),!0;if(fe[r]||!(me.tagCheck instanceof Function&&me.tagCheck(r))&&!ae[r]){const n=function(t,e,n){if(!fe[e]&&zn(e)&&Nn(ue.tagNameCheck,e))return!1;if(Ce&&!ze[e]&&!ze[R(e)]){const e=Ot(t),r=X(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?T(r[o],!0):r[o];e.insertBefore(i,$(t))}}return sn(t),!0}(t,r,e);return!(!1!==n||(kn(Kt.afterSanitizeElements,t,null),!Cn(t,e)))||n}if(1===It(t)&&!function(t){const e=Pt(t),n=R(Lt(t)),r=Ot(t);let o,i;return r&&1===It(r)?(o={namespaceURI:Pt(r)},i=R(Lt(r))):(o={namespaceURI:Ye},i="template"),!!qe[e]&&(e===Be?function(t,e,n){return e.namespaceURI===We?"svg"===t:e.namespaceURI===He?"svg"===t&&("annotation-xml"===n||Xe[n]):Boolean(ln[t])}(n,o,i):e===He?function(t,e,n){return e.namespaceURI===We?"math"===t:e.namespaceURI===Be?"math"===t&&Ze[n]:Boolean(cn[t])}(n,o,i):e===We?function(t,e,n){return!(e.namespaceURI===Be&&!Ze[n])&&!(e.namespaceURI===He&&!Xe[n])&&!cn[t]&&(Je[t]||!ln[t])}(n,o,i):!("application/xhtml+xml"!==Qe||!qe[e]))}(t))return sn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&Y(vt,t.innerHTML))return sn(t),!0;if(be&&3===t.nodeType){const e=An(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return kn(Kt.afterSanitizeElements,t,null),Cn(t,e)},In=function(t,e,n){if(pe[e])return!1;if(Tn(e,t))return!1;if(ke&&("id"===e||"name"===e)&&(n in r||n in rn))return!1;const o=ce[e]||me.attributeCheck instanceof Function&&me.attributeCheck(e,t);return!(!he||!Y(te,e))||!(!de||!Y(ee,e))||(o?!(!Ue[e]&&!Y(ie,z(n,re,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==P(n,"data:")||!Me[t])&&(!ye||Y(ne,z(n,re,"")))&&n):zn(t)&&Nn(ue.tagNameCheck,t)&&Nn(ue.attributeNameCheck,e,t)||"is"===e&&ue.allowCustomizedBuiltInElements&&Nn(ue.tagNameCheck,n))},Ln=V({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zn=function(t){return!Ln[R(t)]&&Y(oe,t)},Pn=function(t,e,n,r){if(Mt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Wt(r);case"TrustedScriptURL":return function(t){Bt(),Ht++;try{return Mt.createScriptURL(t)}finally{Ht--}}(r)}return r},Mn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!_n(t)||(sn(t),!1)}catch(n){return pn(e,t),!1}},jn=function(t,e){return!(!Te||!Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===R(t)&&null!==L(e,"href")},Un=function(t,e){if(kn(Kt.beforeSanitizeAttributes,t,null),Cn(t,e))return;const r=t.attributes;if(!r||_n(t))return;ce=Dn(Kt.uponSanitizeAttribute,ce,se,we);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0};let i=r.length;const a=en(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=en(l),f=s;let p="value"===l?f:M(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,kn(Kt.uponSanitizeAttribute,t,o),p=o.attrValue,!Ne||"id"!==u&&"name"!==u||0===P(p,De)||(pn(l,t,e),p=De+p,m=!0),jn(l,p)?pn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!ge&&Y(At,p)?pn(l,t,e):(be&&(p=An(p)),In(a,u,p)?(p=Pn(a,u,c,p),p!==f&&Mn(t,l,c,p)&&m&&x(n.removed)):pn(l,t,e)))}kn(Kt.afterSanitizeAttributes,t,null),Cn(t,e)},Fn=function(t){let e=null;const n=vn(t);for(kn(Kt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(kn(Kt.uponSanitizeShadowNode,e,null),Rn(e,t),Un(e,t),En(e.content)&&Fn(e.content),1===It(e)){const t=kt(e);En(t)&&(Hn(t),Fn(t))}be&&xn(t),kn(Kt.afterSanitizeShadowDOM,t,null)},Hn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Fn(t.shadow);continue}const n=t.node,r=1===It(n),o=X(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Ct?Ct(n):null;if("string"==typeof t&&"template"===en(t)){const t=n.content;En(t)&&e.push({node:t,shadow:null})}}if(r){const t=kt(n);En(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(Ge=!t,Ge&&(t="\x3c!--\x3e"),"string"!=typeof t&&!On(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return j(t);case"boolean":return U(t);case"bigint":return F?F(t):"0";case"symbol":return H?H(t):"Symbol()";case"undefined":default:return W(t);case"function":case"object":{if(null===t)return W(t);const e=t,n=Z(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:W(t)}return W(t)}}}(t)))throw G("dirty is not a string, aborting");if(!n.isSupported)return t;ve?(ae=Ae,ce=we):an(e),(Kt.uponSanitizeElement.length>0||Kt.uponSanitizeAttribute.length>0)&&(ae=K(ae)),Kt.uponSanitizeAttribute.length>0&&(ce=K(ce)),n.removed=[];const c=Re&&"string"!=typeof t&&On(t);let s=[];const u=Ie;if(c){Te&&dn(t,t=>{const e=It(t);if(7===e||8===e&&Y(St,t.data)){try{S(t)}catch(t){}return!1}if(1===e){const e=t,n=en(Lt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&Tn("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=Lt(t);if("string"==typeof e){const n=en(e);if(!ae[n]||fe[n])throw fn(t),G("root node is forbidden and cannot be sanitized in-place")}if(_n(t))throw fn(t),G("root node is clobbered and cannot be sanitized in-place");s=yn(t),Ie=N()}else if(On(t))r=Sn("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Hn(r);else{if(!_e&&!be&&!Se&&-1===t.indexOf("<"))return Mt&&Oe?Wt(t):t;if(r=Sn(t),!r)return _e?null:Oe?Ut:""}r&&xe&&sn(r.firstChild);const f=c?t:r;try{c&&Hn(t);const e=vn(f);for(;a=e.nextNode();)Rn(a,f),Un(a,f),En(a.content)&&Fn(a.content);c&&function(t,e){const n=Ie;let r=null;const o=()=>(r||(r=N(),A(e,t=>{D(r,t)})),r);for(let e=0;;e++){const r=yn(t),i=[t];let a=!1;if(A(r,t=>{11===It(t)?_(i,t):a||C(n,t)||(a=C(o(),t))}),!a)return;if(e>=8)throw G("the tree kept changing during in-place sanitization; refusing to return it");A(i,(e,n)=>{bn(e,n>0,t,o())})}}(t,s)}catch(e){throw c&&(fn(t),gn(t,s)),e}finally{Ie=u}if(c){if(gn(t,s))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return be&&wn(t),t}if(_e){if(be&&wn(r),Ee)for(l=$t.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ce.shadowroot||ce.shadowrootmode)&&(l=Xt.call(o,l,!0)),l}let p=Se?r.outerHTML:r.innerHTML;return Se&&ae["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Y(gt,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),be&&(p=An(p)),Mt&&Oe?Wt(p):p},n.setConfig=function(){an(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ve=!0,Ae=ae,we=ce},n.clearConfig=function(){nn=null,ve=!1,Ae=null,we=null,Mt=jt,Ut=""},n.isValidAttribute=function(t,e,n){nn||an({});const r=en(t),o=en(e);return("string"!=typeof n||!(jn(e,n)||!ge&&Y(At,n)))&&In(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&B(Kt,t)&&_(Kt[t],e)},n.removeHook=function(t,e){if(B(Kt,t)){if(void 0!==e){const n=w(Kt[t],e);return-1===n?void 0:O(Kt[t],n,1)[0]}return x(Kt[t])}},n.removeHooks=function(t){B(Kt,t)&&(Kt[t]=[])},n.removeAllHooks=function(){Kt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function kt({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Nt(t){return"string"==typeof t&&""!==t.trim()?t:null}function Dt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Ct({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),kt.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},Dt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Ct.propTypes={label:a().string,link:a().string};const Rt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function It({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Nt(t.link),a=Nt(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Rt("mg-card","mg-card__hc","mg-card-book__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Ct,{label:t.label1,link:i}),(0,r().jsx)(Ct,{label:t.label2,link:i})]}),(0,r().jsx)(Dt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:Ot.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(kt,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}It.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{It as HorizontalBookCard};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.4.
|
|
1
|
+
/*! @license DOMPurify 3.4.17 | (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.17/LICENSE */
|
|
2
2
|
|
|
3
3
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
4
4
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Storybook: https://mangrove.undrr.org/
|
|
4
4
|
* LLMs context: https://mangrove.undrr.org/llms.txt
|
|
5
5
|
* Repository: https://github.com/PreventionWeb/undrr-mangrove
|
|
6
|
-
* Compiled on: 2026-10-
|
|
6
|
+
* Compiled on: 2026-10-27T09:44:34.250Z
|
|
7
7
|
*/
|
|
8
8
|
/*! For license information please see HorizontalCard.js.LICENSE.txt */
|
|
9
|
-
import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=e}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),v||(v=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const A=W(Array.prototype.forEach);Array.prototype.indexOf;const w=W(Array.prototype.lastIndexOf),x=W(Array.prototype.pop),_=W(Array.prototype.push);Array.prototype.slice;const E=W(Array.prototype.splice),O=Array.isArray,k=W(String.prototype.toLowerCase),N=W(String.prototype.toString),D=W(String.prototype.match),C=W(String.prototype.replace),R=W(String.prototype.indexOf),I=W(String.prototype.trim),L=W(Number.prototype.toString),P=W(Boolean.prototype.toString),z="undefined"==typeof BigInt?null:W(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:W(Symbol.prototype.toString),j=W(Object.prototype.hasOwnProperty),U=W(Object.prototype.toString),F=W(RegExp.prototype.test),H=(B=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return v(B,e)});var B;function W(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(t,e,r)}}function Y(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:k;if(p&&p(t,null),!O(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function G(t){for(let e=0;e<t.length;e++)j(t,e)||(t[e]=null);return t}function q(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];j(t,o)&&(O(i)?e[o]=G(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=q(i):e[o]=i)}return e}function $(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return W(n.get);if("function"==typeof n.value)return W(n.value)}t=d(t)}return function(){return null}}const V=y(["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"]),X=y(["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"]),K=y(["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"]),Z=y(["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"]),J=y(["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"]),Q=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),tt=y(["#text"]),et=y(["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"]),nt=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),rt=y(["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"]),ot=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),it=g(/{{[\w\W]*|^[\w\W]*}}/g),at=g(/<%[\w\W]*|^[\w\W]*%>/g),lt=g(/\${[\w\W]*/g),ct=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),st=g(/^aria-[\-\w]+$/),ut=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ft=g(/^(?:\w+script|data):/i),pt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mt=g(/^html$/i),dt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),ht=g(/<[/\w!]/g),yt=g(/<[/\w]/g),gt=g(/<\/no(script|embed|frames)/i),bt=g(/\/>/i),Tt=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],St=y(Y({},Tt)),vt=function(){const t={};return A(Tt,e=>{t[e]=g(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),y(t)}(),At=function(){return"undefined"==typeof window?null:window},wt=function(t,e,n,r){return j(t,e)&&O(t[e])?Y(r.base?q(r.base):{},t[e],r.transform):n},xt=function(t,e,n){const r=j(t,e)?t[e]:void 0;return r&&"object"==typeof r?q(r):n()};var _t=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:At();const n=e=>t(e);if(n.version="3.4.16",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,p=e.trustedTypes,m=c.prototype,d=$(m,"cloneNode"),h=$(m,"remove"),T=$(m,"removeAttributeNode"),S=$(m,"nextSibling"),v=$(m,"childNodes"),B=$(m,"parentNode"),W=$(m,"shadowRoot"),G=$(m,"attributes"),Tt=l&&l.prototype?$(l.prototype,"nodeType"):null,_t=l&&l.prototype?$(l.prototype,"nodeName"):null,Et=l&&l.prototype?$(l.prototype,"ownerDocument"):null,Ot=function(t){return Tt?Tt(t):t.nodeType},kt=function(t){return _t?_t(t):t.nodeName};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Nt,Dt,Ct="",Rt=!1,It=0;const Lt=function(){if(It>0)throw H('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.')},Pt=function(t){Lt(),It++;try{return Nt.createHTML(t)}finally{It--}},zt=r,Mt=zt.implementation,jt=zt.createNodeIterator,Ut=zt.createDocumentFragment,Ft=zt.getElementsByTagName,Ht=o.importNode;let Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof B&&Mt&&void 0!==Mt.createHTMLDocument;const Wt=it,Yt=at,Gt=lt,qt=ct,$t=st,Vt=ft,Xt=pt,Kt=dt;let Zt=ut,Jt=null;const Qt=Y({},[...V,...X,...K,...J,...tt]);let te=null;const ee=Y({},[...et,...nt,...rt,...ot]);let ne=Object.seal(b(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),re=null,oe=null;const ie=Object.seal(b(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ae=!0,le=!0,ce=!1,se=!0,ue=!1,fe=!0,pe=!1,me=!1,de=null,he=null,ye=!1,ge=!1,be=!1,Te=!1,Se=!0,ve=!1;const Ae="user-content-";let we=!0,xe=!1,_e={},Ee=null;const Oe=Y({},["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 ke=null;const Ne=Y({},["audio","video","img","source","image","track"]);let De=null;const Ce=Y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Re="http://www.w3.org/1998/Math/MathML",Ie="http://www.w3.org/2000/svg",Le="http://www.w3.org/1999/xhtml";let Pe=Le,ze=!1,Me=null;const je=Y({},[Re,Ie,Le],N),Ue=y(["mi","mo","mn","ms","mtext"]);let Fe=Y({},Ue);const He=y(["annotation-xml"]);let Be=Y({},He);const We=Y({},["title","style","font","a","script"]);let Ye=null;const Ge=["application/xhtml+xml","text/html"];let qe=null,$e=null;const Ve=r.createElement("form"),Xe=function(t){return t instanceof RegExp||t instanceof Function},Ke=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if($e&&$e===t)return;t&&"object"==typeof t||(t={}),t=q(t),Ye=-1===Ge.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ye?N:k,Jt=wt(t,"ALLOWED_TAGS",Qt,{transform:qe}),te=wt(t,"ALLOWED_ATTR",ee,{transform:qe}),Me=wt(t,"ALLOWED_NAMESPACES",je,{transform:N}),De=wt(t,"ADD_URI_SAFE_ATTR",Ce,{transform:qe,base:Ce}),ke=wt(t,"ADD_DATA_URI_TAGS",Ne,{transform:qe,base:Ne}),Ee=wt(t,"FORBID_CONTENTS",Oe,{transform:qe}),re=wt(t,"FORBID_TAGS",q({}),{transform:qe}),oe=wt(t,"FORBID_ATTR",q({}),{transform:qe}),_e=!!j(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?q(t.USE_PROFILES):t.USE_PROFILES),ae=!1!==t.ALLOW_ARIA_ATTR,le=!1!==t.ALLOW_DATA_ATTR,ce=t.ALLOW_UNKNOWN_PROTOCOLS||!1,se=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,ue=t.SAFE_FOR_TEMPLATES||!1,fe=!1!==t.SAFE_FOR_XML,pe=t.WHOLE_DOCUMENT||!1,ge=t.RETURN_DOM||!1,be=t.RETURN_DOM_FRAGMENT||!1,Te=t.RETURN_TRUSTED_TYPE||!1,ye=t.FORCE_BODY||!1,Se=!1!==t.SANITIZE_DOM,ve=t.SANITIZE_NAMED_PROPS||!1,we=!1!==t.KEEP_CONTENT,xe=t.IN_PLACE||!1,Zt=function(t){try{return F(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:ut,Pe="string"==typeof t.NAMESPACE?t.NAMESPACE:Le,Fe=xt(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>Y({},Ue)),Be=xt(t,"HTML_INTEGRATION_POINTS",()=>Y({},He));const e=xt(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ne=b(null),j(e,"tagNameCheck")&&Xe(e.tagNameCheck)&&(ne.tagNameCheck=e.tagNameCheck),j(e,"attributeNameCheck")&&Xe(e.attributeNameCheck)&&(ne.attributeNameCheck=e.attributeNameCheck),j(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ne),ue&&(le=!1),be&&(ge=!0),_e&&(Jt=Y({},tt),te=b(null),!0===_e.html&&(Y(Jt,V),Y(te,et)),!0===_e.svg&&(Y(Jt,X),Y(te,nt),Y(te,ot)),!0===_e.svgFilters&&(Y(Jt,K),Y(te,nt),Y(te,ot)),!0===_e.mathMl&&(Y(Jt,J),Y(te,rt),Y(te,ot))),ie.tagCheck=null,ie.attributeCheck=null,j(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?ie.tagCheck=t.ADD_TAGS:O(t.ADD_TAGS)&&(Jt===Qt&&(Jt=q(Jt)),Y(Jt,t.ADD_TAGS,qe))),j(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?ie.attributeCheck=t.ADD_ATTR:O(t.ADD_ATTR)&&(te===ee&&(te=q(te)),Y(te,t.ADD_ATTR,qe))),j(t,"ADD_FORBID_CONTENTS")&&O(t.ADD_FORBID_CONTENTS)&&(Ee===Oe&&(Ee=q(Ee)),Y(Ee,t.ADD_FORBID_CONTENTS,qe)),we&&(Jt["#text"]=!0),pe&&Y(Jt,["html","head","body"]),Jt.table&&(Y(Jt,["tbody"]),delete re.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Nt;Nt=t.TRUSTED_TYPES_POLICY;try{Ct=Pt("")}catch(t){throw Nt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Nt=void 0,Ct=""):(void 0===Nt&&(Rt||(Dt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,i),Rt=!0),Nt=Dt),Nt&&"string"==typeof Ct&&(Ct=Pt("")));y&&y(t),$e=t},Ze=Y({},[...X,...K,...Z]),Je=Y({},[...J,...Q]),Qe=function(t){_(n.removed,{element:t});try{B(t).removeChild(t)}catch(e){if(h(t),!B(t))throw H("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},tn=function(t,e,n){try{T(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},en=function(t){on(t);const e=v(t);if(e){const t=[];A(e,e=>{_(t,e)}),A(t,t=>{try{h(t)}catch(t){}})}const n=G(t);if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&tn(t,r,o)}},nn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?T(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(ge||be)try{Qe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},rn=function(t){const e=G(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||te[qe(o)]||tn(t,r,o)}},on=function(t){const e=[t];for(;e.length>0;){const t=e.pop();1===Ot(t)&&rn(t);const n=v(t);if(n)for(let t=n.length-1;t>=0;--t)e.push(n[t])}},an=function(t,e){return!!fe&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},ln=function(t){let e=null,n=null;if(ye)t="<remove></remove>"+t;else{const e=D(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Ye&&Pe===Le&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Nt?Pt(t):t;if(Pe===Le)try{e=(new u).parseFromString(o,Ye)}catch(t){}if(!e||!e.documentElement){e=Mt.createDocument(Pe,"template",null);try{e.documentElement.innerHTML=ze?Ct:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Pe===Le?Ft.call(e,pe?"html":"body")[0]:pe?e.documentElement:i},cn=function(t){const e=Et?Et(t):t.ownerDocument;return jt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},sn=function(t){return t=C(t,Wt," "),t=C(t,Yt," "),C(t,Gt," ")},un=function(t){var e;t.normalize();const n=Et?Et(t):t.ownerDocument,r=jt.call(n||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let o=r.nextNode();for(;o;)o.data=sn(o.data),o=r.nextNode();const i=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");i&&A(i,t=>{pn(t.content)&&un(t.content)})},fn=function(t){const e=_t?_t(t):null;return"string"==typeof e&&"form"===qe(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==G(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Tt(t)||t.childNodes!==v(t))},pn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return 11===Tt(t)}catch(t){return!1}},mn=function(t){if(!Tt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Tt(t)}catch(t){return!1}};function dn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,$e)})}const hn=function(t,e){if(t instanceof RegExp)return F(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},yn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?q(e):e},gn=function(t,e){return t!==e&&null===B(t)&&(xe&&on(t),!0)},bn=function(t,e){if(dn(Bt.beforeSanitizeElements,t,null),gn(t,e))return!0;if(fn(t))return Qe(t),!0;const r=qe(kt(t));if(Jt=yn(Bt.uponSanitizeElement,Jt,Qt,de),dn(Bt.uponSanitizeElement,t,{tagName:r,allowedTags:Jt}),gn(t,e))return!0;if(function(t,e){return!!(fe&&t.hasChildNodes()&&!mn(t.firstElementChild)&&F(ht,t.textContent)&&F(ht,t.innerHTML))||!!(fe&&t.namespaceURI===Le&&St[e]&&(mn(t.firstElementChild)||"string"==typeof t.textContent&&F(vt[e],t.textContent)))||7===t.nodeType||!(!fe||8!==t.nodeType||!F(yt,t.data))}(t,r))return Qe(t),!0;if(re[r]||!(ie.tagCheck instanceof Function&&ie.tagCheck(r))&&!Jt[r]){const n=function(t,e,n){if(!re[e]&&vn(e)&&hn(ne.tagNameCheck,e))return!1;if(we&&!Ee[e]){const e=B(t),r=v(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?d(r[o],!0):r[o];e.insertBefore(i,S(t))}}return Qe(t),!0}(t,r,e);return!(!1!==n||(dn(Bt.afterSanitizeElements,t,null),!gn(t,e)))||n}if(1===Ot(t)&&!function(t){let e=B(t);e&&e.tagName||(e={namespaceURI:Pe,tagName:"template"});const n=k(t.tagName),r=k(e.tagName);return!!Me[t.namespaceURI]&&(t.namespaceURI===Ie?function(t,e,n){return e.namespaceURI===Le?"svg"===t:e.namespaceURI===Re?"svg"===t&&("annotation-xml"===n||Fe[n]):Boolean(Ze[t])}(n,e,r):t.namespaceURI===Re?function(t,e,n){return e.namespaceURI===Le?"math"===t:e.namespaceURI===Ie?"math"===t&&Be[n]:Boolean(Je[t])}(n,e,r):t.namespaceURI===Le?function(t,e,n){return!(e.namespaceURI===Ie&&!Be[n])&&!(e.namespaceURI===Re&&!Fe[n])&&!Je[t]&&(We[t]||!Ze[t])}(n,e,r):!("application/xhtml+xml"!==Ye||!Me[t.namespaceURI]))}(t))return Qe(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&F(gt,t.innerHTML))return Qe(t),!0;if(ue&&3===t.nodeType){const e=sn(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return dn(Bt.afterSanitizeElements,t,null),gn(t,e)},Tn=function(t,e,n){if(oe[e])return!1;if(an(e,t))return!1;if(Se&&("id"===e||"name"===e)&&(n in r||n in Ve))return!1;const o=te[e]||ie.attributeCheck instanceof Function&&ie.attributeCheck(e,t);return!(!le||!F(qt,e))||!(!ae||!F($t,e))||(o?!(!De[e]&&!F(Zt,C(n,Xt,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==R(n,"data:")||!ke[t])&&(!ce||F(Vt,C(n,Xt,"")))&&n):vn(t)&&hn(ne.tagNameCheck,t)&&hn(ne.attributeNameCheck,e,t)||"is"===e&&ne.allowCustomizedBuiltInElements&&hn(ne.tagNameCheck,n))},Sn=Y({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),vn=function(t){return!Sn[k(t)]&&F(Kt,t)},An=function(t,e,n,r){if(Nt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Pt(r);case"TrustedScriptURL":return function(t){Lt(),It++;try{return Nt.createScriptURL(t)}finally{It--}}(r)}return r},wn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!fn(t)||(Qe(t),!1)}catch(n){return nn(e,t),!1}},xn=function(t,e){if(dn(Bt.beforeSanitizeAttributes,t,null),gn(t,e))return;const r=t.attributes;if(!r||fn(t))return;te=yn(Bt.uponSanitizeAttribute,te,ee,he);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let i=r.length;const a=qe(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=qe(l),f=s;let p="value"===l?f:I(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,dn(Bt.uponSanitizeAttribute,t,o),p=o.attrValue,!ve||"id"!==u&&"name"!==u||0===R(p,Ae)||(nn(l,t,e),p=Ae+p,m=!0),fe&&F(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,p)||"attributename"===u&&D(p,"href")?nn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!se&&F(bt,p)?nn(l,t,e):(ue&&(p=sn(p)),Tn(a,u,p)?(p=An(a,u,c,p),p!==f&&wn(t,l,c,p)&&m&&x(n.removed)):nn(l,t,e)))}dn(Bt.afterSanitizeAttributes,t,null),gn(t,e)},_n=function(t){let e=null;const n=cn(t);for(dn(Bt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(dn(Bt.uponSanitizeShadowNode,e,null),bn(e,t),xn(e,t),pn(e.content)&&_n(e.content),1===Ot(e)){const t=W(e);pn(t)&&(En(t),_n(t))}dn(Bt.afterSanitizeShadowDOM,t,null)},En=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){_n(t.shadow);continue}const n=t.node,r=1===Ot(n),o=v(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=_t?_t(n):null;if("string"==typeof t&&"template"===qe(t)){const t=n.content;pn(t)&&e.push({node:t,shadow:null})}}if(r){const t=W(n);pn(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(ze=!t,ze&&(t="\x3c!--\x3e"),"string"!=typeof t&&!mn(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return L(t);case"boolean":return P(t);case"bigint":return z?z(t):"0";case"symbol":return M?M(t):"Symbol()";case"undefined":default:return U(t);case"function":case"object":{if(null===t)return U(t);const e=t,n=$(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:U(t)}return U(t)}}}(t)))throw H("dirty is not a string, aborting");if(!n.isSupported)return t;me?(Jt=de,te=he):Ke(e),(Bt.uponSanitizeElement.length>0||Bt.uponSanitizeAttribute.length>0)&&(Jt=q(Jt)),Bt.uponSanitizeAttribute.length>0&&(te=q(te)),n.removed=[];const c=xe&&"string"!=typeof t&&mn(t);if(c){!function(t){if(!fe)return;const e=[t];for(;e.length>0;){const t=e.pop(),n=Ot(t);if(7===n||8===n&&F(yt,t.data)){try{h(t)}catch(t){}continue}if(1===n){const e=t,n=qe(kt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&an("for",n)&&e.removeAttribute("for")}catch(t){}}const r=v(t);if(r)for(let t=r.length-1;t>=0;--t)e.push(r[t])}}(t);const e=kt(t);if("string"==typeof e){const n=qe(e);if(!Jt[n]||re[n])throw en(t),H("root node is forbidden and cannot be sanitized in-place")}if(fn(t))throw en(t),H("root node is clobbered and cannot be sanitized in-place");try{En(t)}catch(e){throw en(t),e}}else if(mn(t))r=ln("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),En(r);else{if(!ge&&!ue&&!pe&&-1===t.indexOf("<"))return Nt&&Te?Pt(t):t;if(r=ln(t),!r)return ge?null:Te?Ct:""}r&&ye&&Qe(r.firstChild);const s=c?t:r;try{const t=cn(s);for(;a=t.nextNode();)bn(a,s),xn(a,s),pn(a.content)&&_n(a.content)}catch(e){throw c&&(en(t),A(n.removed,t=>{t.element&&on(t.element)})),e}if(c){let e=!1;if(A(n.removed,n=>{n.element&&(n.element===t&&(e=!0),on(n.element))}),e)throw H("a node selected for removal could not be safely returned; refusing to sanitize in place");return ue&&un(t),t}if(ge){if(ue&&un(r),be)for(l=Ut.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(te.shadowroot||te.shadowrootmode)&&(l=Ht.call(o,l,!0)),l}let u=pe?r.outerHTML:r.innerHTML;return pe&&Jt["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&F(mt,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),ue&&(u=sn(u)),Nt&&Te?Pt(u):u},n.setConfig=function(){Ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),me=!0,de=Jt,he=te},n.clearConfig=function(){$e=null,me=!1,de=null,he=null,Nt=Dt,Ct=""},n.isValidAttribute=function(t,e,n){$e||Ke({});const r=qe(t),o=qe(e);return Tn(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&j(Bt,t)&&_(Bt[t],e)},n.removeHook=function(t,e){if(j(Bt,t)){if(void 0!==e){const n=w(Bt[t],e);return-1===n?void 0:E(Bt[t],n,1)[0]}return x(Bt[t])}},n.removeHooks=function(t){j(Bt,t)&&(Bt[t]=[])},n.removeAllHooks=function(){Bt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Et({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Ot(t){return"string"==typeof t&&""!==t.trim()?t:null}function kt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Nt({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),Et.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},kt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Nt.propTypes={label:a().string,link:a().string};const Dt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function Ct({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Ot(t.link),a=Ot(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Dt("mg-card","mg-card__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Nt,{label:t.label1,link:i}),(0,r().jsx)(Nt,{label:t.label2,link:i})]}),(0,r().jsx)(kt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:_t.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(Et,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}Ct.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{Ct as HorizontalCard};
|
|
9
|
+
import"react";var t={2694(t,e,n){var r=n(6925);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},5556(t,e,n){t.exports=n(2694)()},6925(t){t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}};const e={};function n(r){const o=e[r];if(void 0!==o)return o.exports;const i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.n=t=>{const e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.cw=t=>{var e;return()=>{if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var r=n.cw(function(t,e){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(t,e,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==e.key&&(o=""+e.key),"key"in e)for(var i in r={},e)"key"!==i&&(r[i]=e[i]);else r=e;return e=r.ref,{$$typeof:n,type:t,key:o,ref:void 0!==e?e:null,props:r}}e.Fragment=r,e.jsx=o,e.jsxs=o}),o=n.cw(function(t,e){t.exports=r()}),i=n(5556),a=n.n(i);function l(t,e){this.v=t,this.k=e}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,l=[],c=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==e);c=!0);}catch(t){s=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){var e,n;function r(e,n){try{var i=t[e](n),a=i.value,c=a instanceof l;Promise.resolve(c?a.v:a).then(function(n){if(c){var l="return"===e&&a.k?e:"next";if(!a.k||n.done)return r(l,n);n=t[l](n).value}o(!!i.done,n)},function(t){r("throw",t)})}catch(t){o(2,t)}}function o(t,o){2===t?e.reject(o):e.resolve({value:o,done:t}),(e=e.next)?r(e.key,e.arg):n=null}this._invoke=function(t,o){return new Promise(function(i,a){var l={key:t,arg:o,resolve:i,reject:a,next:null};n?n=n.next=l:(e=n=l,r(t,o))})},"function"!=typeof t.return&&(this.return=void 0)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(t){return this._invoke("next",t)},u.prototype.throw=function(t){return this._invoke("throw",t)},u.prototype.return=function(t){return this._invoke("return",t)};const f=Object.entries,p=Object.setPrototypeOf,m=Object.isFrozen,d=Object.getPrototypeOf,h=Object.getOwnPropertyDescriptor;let y=Object.freeze,g=Object.seal,b=Object.create,T="undefined"!=typeof Reflect&&Reflect,S=T.apply,v=T.construct;y||(y=function(t){return t}),g||(g=function(t){return t}),S||(S=function(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return t.apply(e,r)}),v||(v=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new t(...n)});const A=q(Array.prototype.forEach);Array.prototype.indexOf;const w=q(Array.prototype.lastIndexOf),x=q(Array.prototype.pop),_=q(Array.prototype.push),E=q(Array.prototype.slice),O=q(Array.prototype.splice),k=Array.isArray,N=$(Set),D=q(Set.prototype.add),C=q(Set.prototype.has),R=q(String.prototype.toLowerCase),I=q(String.prototype.toString),L=q(String.prototype.match),z=q(String.prototype.replace),P=q(String.prototype.indexOf),M=q(String.prototype.trim),j=q(Number.prototype.toString),U=q(Boolean.prototype.toString),F="undefined"==typeof BigInt?null:q(BigInt.prototype.toString),H="undefined"==typeof Symbol?null:q(Symbol.prototype.toString),B=q(Object.prototype.hasOwnProperty),W=q(Object.prototype.toString),Y=q(RegExp.prototype.test),G=$(TypeError);function q(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return S(t,e,r)}}function $(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return v(t,n)}}function V(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;if(p&&p(t,null),!k(e))return t;let r=e.length;for(;r--;){let o=e[r];if("string"==typeof o){const t=n(o);t!==o&&(m(e)||(e[r]=t),o=t)}t[o]=!0}return t}function X(t){for(let e=0;e<t.length;e++)B(t,e)||(t[e]=null);return t}function K(t){const e=b(null);for(const r of f(t)){var n=s(r,2);const o=n[0],i=n[1];B(t,o)&&(k(i)?e[o]=X(i):i&&"object"==typeof i&&i.constructor===Object?e[o]=K(i):e[o]=i)}return e}function Z(t,e){for(;null!==t;){const n=h(t,e);if(n){if(n.get)return q(n.get);if("function"==typeof n.value)return q(n.value)}t=d(t)}return function(){return null}}const J=y(["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=y(["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"]),tt=y(["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"]),et=y(["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"]),nt=y(["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"]),rt=y(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ot=y(["#text"]),it=y(["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"]),at=y(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),lt=y(["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"]),ct=y(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),st=g(/{{[\w\W]*|^[\w\W]*}}/g),ut=g(/<%[\w\W]*|^[\w\W]*%>/g),ft=g(/\${[\w\W]*/g),pt=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),mt=g(/^aria-[\-\w]+$/),dt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ht=g(/^(?:\w+script|data):/i),yt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gt=g(/^html$/i),bt=g(/^[a-z][.\w]*(-[.\w]+)+$/i),Tt=g(/<[/\w!]/g),St=g(/<[/\w]/g),vt=g(/<\/no(script|embed|frames)/i),At=g(/\/>/i),wt=y(V({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),xt=function(){return"undefined"==typeof window?null:window},_t=function(t,e,n,r){return B(t,e)&&k(t[e])?V(r.base?K(r.base):{},t[e],r.transform):n},Et=function(t,e,n){const r=B(t,e)?t[e]:void 0;return r&&"object"==typeof r?K(r):n()};var Ot=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:xt();const n=e=>t(e);if(n.version="3.4.17",n.removed=[],!e||!e.document||9!==e.document.nodeType||!e.Element)return n.isSupported=!1,n;let r=e.document;const o=r,i=o.currentScript;e.DocumentFragment;const a=e.HTMLTemplateElement,l=e.Node,c=e.Element,s=e.NodeFilter;void 0===e.NamedNodeMap&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const u=e.DOMParser,p=e.trustedTypes,m=c.prototype,T=Z(m,"cloneNode"),S=Z(m,"remove"),v=Z(m,"removeAttributeNode"),$=Z(m,"nextSibling"),X=Z(m,"childNodes"),Ot=Z(m,"parentNode"),kt=Z(m,"shadowRoot"),Nt=Z(m,"attributes"),Dt=l&&l.prototype?Z(l.prototype,"nodeType"):null,Ct=l&&l.prototype?Z(l.prototype,"nodeName"):null,Rt=l&&l.prototype?Z(l.prototype,"ownerDocument"):null,It=function(t){return Dt?Dt(t):t.nodeType},Lt=function(t){return Ct?Ct(t):t.nodeName},zt=function(t){for(;null!==t;){const e=h(t,"namespaceURI");if(e)return e.get?q(e.get):null;t=d(t)}return null}(m),Pt=function(t){return zt?zt(t):t.namespaceURI};if("function"==typeof a){const t=r.createElement("template");t.content&&t.content.ownerDocument&&(r=t.content.ownerDocument)}let Mt,jt,Ut="",Ft=!1,Ht=0;const Bt=function(){if(Ht>0)throw G('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.')},Wt=function(t){Bt(),Ht++;try{return Mt.createHTML(t)}finally{Ht--}},Yt=r,Gt=Yt.implementation,qt=Yt.createNodeIterator,$t=Yt.createDocumentFragment,Vt=Yt.getElementsByTagName,Xt=o.importNode;let Kt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof f&&"function"==typeof Ot&&Gt&&void 0!==Gt.createHTMLDocument;const Zt=st,Jt=ut,Qt=ft,te=pt,ee=mt,ne=ht,re=yt,oe=bt;let ie=dt,ae=null;const le=V({},[...J,...Q,...tt,...nt,...ot]);let ce=null;const se=V({},[...it,...at,...lt,...ct]);let ue=Object.seal(b(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}})),fe=null,pe=null;const me=Object.seal(b(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let de=!0,he=!0,ye=!1,ge=!0,be=!1,Te=!0,Se=!1,ve=!1,Ae=null,we=null,xe=!1,_e=!1,Ee=!1,Oe=!1,ke=!0,Ne=!1;const De="user-content-";let Ce=!0,Re=!1,Ie=null,Le={},ze=null;const Pe=V({},["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 Me=null;const je=V({},["audio","video","img","source","image","track"]);let Ue=null;const Fe=V({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),He="http://www.w3.org/1998/Math/MathML",Be="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let Ye=We,Ge=!1,qe=null;const $e=V({},[He,Be,We],I),Ve=y(["mi","mo","mn","ms","mtext"]);let Xe=V({},Ve);const Ke=y(["annotation-xml"]);let Ze=V({},Ke);const Je=V({},["title","style","font","a","script"]);let Qe=null;const tn=["application/xhtml+xml","text/html"];let en=null,nn=null;const rn=r.createElement("form"),on=function(t){return t instanceof RegExp||t instanceof Function},an=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(nn&&nn===t)return;t&&"object"==typeof t||(t={}),t=K(t),Qe=-1===tn.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,en="application/xhtml+xml"===Qe?I:R,ae=_t(t,"ALLOWED_TAGS",le,{transform:en}),ce=_t(t,"ALLOWED_ATTR",se,{transform:en}),qe=_t(t,"ALLOWED_NAMESPACES",$e,{transform:I}),Ue=_t(t,"ADD_URI_SAFE_ATTR",Fe,{transform:en,base:Fe}),Me=_t(t,"ADD_DATA_URI_TAGS",je,{transform:en,base:je}),ze=_t(t,"FORBID_CONTENTS",Pe,{transform:en}),fe=_t(t,"FORBID_TAGS",K({}),{transform:en}),pe=_t(t,"FORBID_ATTR",K({}),{transform:en}),Le=!!B(t,"USE_PROFILES")&&(t.USE_PROFILES&&"object"==typeof t.USE_PROFILES?K(t.USE_PROFILES):t.USE_PROFILES),de=!1!==t.ALLOW_ARIA_ATTR,he=!1!==t.ALLOW_DATA_ATTR,ye=t.ALLOW_UNKNOWN_PROTOCOLS||!1,ge=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,be=t.SAFE_FOR_TEMPLATES||!1,Te=!1!==t.SAFE_FOR_XML,Se=t.WHOLE_DOCUMENT||!1,_e=t.RETURN_DOM||!1,Ee=t.RETURN_DOM_FRAGMENT||!1,Oe=t.RETURN_TRUSTED_TYPE||!1,xe=t.FORCE_BODY||!1,ke=!1!==t.SANITIZE_DOM,Ne=t.SANITIZE_NAMED_PROPS||!1,Ce=!1!==t.KEEP_CONTENT,Re=t.IN_PLACE||!1,ie=function(t){try{return Y(t,""),!0}catch(t){return!1}}(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:dt,Ye="string"==typeof t.NAMESPACE?t.NAMESPACE:We,Xe=Et(t,"MATHML_TEXT_INTEGRATION_POINTS",()=>V({},Ve)),Ze=Et(t,"HTML_INTEGRATION_POINTS",()=>V({},Ke));const e=Et(t,"CUSTOM_ELEMENT_HANDLING",()=>b(null));if(ue=b(null),B(e,"tagNameCheck")&&on(e.tagNameCheck)&&(ue.tagNameCheck=e.tagNameCheck),B(e,"attributeNameCheck")&&on(e.attributeNameCheck)&&(ue.attributeNameCheck=e.attributeNameCheck),B(e,"allowCustomizedBuiltInElements")&&"boolean"==typeof e.allowCustomizedBuiltInElements&&(ue.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),g(ue),be&&(he=!1),Ee&&(_e=!0),Le&&(ae=V({},ot),ce=b(null),!0===Le.html&&(V(ae,J),V(ce,it)),!0===Le.svg&&(V(ae,Q),V(ce,at),V(ce,ct)),!0===Le.svgFilters&&(V(ae,tt),V(ce,at),V(ce,ct)),!0===Le.mathMl&&(V(ae,nt),V(ce,lt),V(ce,ct))),me.tagCheck=null,me.attributeCheck=null,B(t,"ADD_TAGS")&&("function"==typeof t.ADD_TAGS?me.tagCheck=t.ADD_TAGS:k(t.ADD_TAGS)&&(ae===le&&(ae=K(ae)),V(ae,t.ADD_TAGS,en))),B(t,"ADD_ATTR")&&("function"==typeof t.ADD_ATTR?me.attributeCheck=t.ADD_ATTR:k(t.ADD_ATTR)&&(ce===se&&(ce=K(ce)),V(ce,t.ADD_ATTR,en))),B(t,"ADD_FORBID_CONTENTS")&&k(t.ADD_FORBID_CONTENTS)&&(ze===Pe&&(ze=K(ze)),V(ze,t.ADD_FORBID_CONTENTS,en)),Ce&&(ae["#text"]=!0),Se&&V(ae,["html","head","body"]),ae.table&&(V(ae,["tbody"]),delete fe.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw G('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const e=Mt;Mt=t.TRUSTED_TYPES_POLICY;try{Ut=Wt("")}catch(t){throw Mt=e,t}}else null===t.TRUSTED_TYPES_POLICY?(Mt=void 0,Ut=""):(void 0===Mt&&(Ft||(jt=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";e&&e.hasAttribute(r)&&(n=e.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(p,i),Ft=!0),Mt=jt),Mt&&"string"==typeof Ut&&(Ut=Wt("")));y&&y(t),nn=t},ln=V({},[...Q,...tt,...et]),cn=V({},[...nt,...rt]),sn=function(t){_(n.removed,{element:t});try{Ot(t).removeChild(t)}catch(e){if(S(t),!Ot(t))throw G("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},un=function(t,e,n){try{v(t,e)}catch(e){try{t.removeAttribute(n)}catch(t){}}},fn=function(t){hn(t);const e=X(t);e&&A(E(e),t=>{try{S(t)}catch(t){}});const n=1===It(t)?Nt(t):null;if(n)for(let e=n.length-1;e>=0;--e){const r=n[e],o=r&&r.name;"string"==typeof o&&un(t,r,o)}},pn=function(t,e,r){if(!r)try{r=e.getAttributeNode(t)}catch(t){r=null}_(n.removed,{attribute:r||null,from:e});try{r?v(e,r):e.removeAttribute(t)}catch(n){try{e.removeAttribute(t)}catch(t){}}if("is"===t)if(_e||Ee)try{sn(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},mn=function(t){const e=Nt(t);if(e)for(let n=e.length-1;n>=0;--n){const r=e[n],o=r&&r.name;"string"!=typeof o||ce[en(o)]||un(t,r,o)}},dn=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=[t];for(;r.length>0;){const t=r.pop();if(!1===e(t))continue;if(n&&1===It(t)){const e=kt(t);En(e)&&r.push(e)}const o=X(t);if(o)for(let t=o.length-1;t>=0;--t)r.push(o[t])}},hn=function(t){dn(t,t=>{1===It(t)&&mn(t)})},yn=function(t){const e=[];return dn(t,t=>{e.push(t)},!0),e},gn=function(t,e){let r=!1;return A(n.removed,e=>{e.element&&(r=r||e.element===t,hn(e.element))}),function(t,e){const n=N();A(yn(t),t=>{1===It(t)&&D(n,t)}),A(e,t=>{1!==It(t)||C(n,t)||mn(t)})}(t,e),r},bn=function(t,e,n,r){const o=vn(t);let i;for(;i=o.nextNode();)C(r,i)&&!C(Ie,i)&&(e&&kn(Kt.uponSanitizeShadowNode,i,null),Rn(i,n),Un(i,n),En(i.content)&&Fn(i.content))},Tn=function(t,e){return!!Te&&("patchsrc"===t||"for"===t&&"label"!==e&&"output"!==e)},Sn=function(t){let e=null,n=null;if(xe)t="<remove></remove>"+t;else{const e=L(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===Qe&&Ye===We&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=Mt?Wt(t):t;if(Ye===We)try{e=(new u).parseFromString(o,Qe)}catch(t){}if(!e||!e.documentElement){e=Gt.createDocument(Ye,"template",null);try{e.documentElement.innerHTML=Ge?Ut:o}catch(t){}}const i=e.body||e.documentElement;return t&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),Ye===We?Vt.call(e,Se?"html":"body")[0]:Se?e.documentElement:i},vn=function(t){const e=Rt?Rt(t):t.ownerDocument;return qt.call(e||t,t,s.SHOW_ELEMENT|s.SHOW_COMMENT|s.SHOW_TEXT|s.SHOW_PROCESSING_INSTRUCTION|s.SHOW_CDATA_SECTION,null)},An=function(t){return t=z(t,Zt," "),t=z(t,Jt," "),z(t,Qt," ")},wn=function(t){var e;xn(t);const n=null===(e=t.querySelectorAll)||void 0===e?void 0:e.call(t,"template");n&&A(n,t=>{En(t.content)&&wn(t.content)})},xn=function(t){t.normalize();const e=Rt?Rt(t):t.ownerDocument,n=qt.call(e||t,t,s.SHOW_TEXT|s.SHOW_COMMENT|s.SHOW_CDATA_SECTION|s.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=An(r.data),r=n.nextNode()},_n=function(t){const e=Ct?Ct(t):null;return"string"==typeof e&&"form"===en(e)&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||t.attributes!==Nt(t)||"function"!=typeof t.removeAttribute||"function"!=typeof t.removeAttributeNode||"function"!=typeof t.getAttributeNode||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes||t.nodeType!==Dt(t)||t.childNodes!==X(t))},En=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return 11===Dt(t)}catch(t){return!1}},On=function(t){if(!Dt||"object"!=typeof t||null===t)return!1;try{return"number"==typeof Dt(t)}catch(t){return!1}};function kn(t,e,r){0!==t.length&&A(t,t=>{t.call(n,e,r,nn)})}const Nn=function(t,e){if(t instanceof RegExp)return Y(t,e);if(t instanceof Function){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Boolean(t(e,...r))}return!1},Dn=function(t,e,n,r){return 0===t.length?e:e===n||e===r?K(e):e},Cn=function(t,e){return t!==e&&null===Ot(t)&&(Re&&hn(t),!0)},Rn=function(t,e){if(Ie&&D(Ie,t),kn(Kt.beforeSanitizeElements,t,null),Cn(t,e))return!0;if(_n(t))return sn(t),!0;const r=en(Lt(t));if(ae=Dn(Kt.uponSanitizeElement,ae,le,Ae),kn(Kt.uponSanitizeElement,t,{tagName:r,allowedTags:ae}),Cn(t,e))return!0;if(function(t,e){return!!(Te&&t.hasChildNodes()&&!On(t.firstElementChild)&&Y(Tt,t.textContent)&&Y(Tt,t.innerHTML))||!!(Te&&wt[e]&&1===It(t)&&Pt(t)===We&&(On(t.firstElementChild)||"string"==typeof t.textContent&&Y(Tt,t.textContent)))||7===t.nodeType||!(!Te||8!==t.nodeType||!Y(St,t.data))}(t,r))return sn(t),!0;if(fe[r]||!(me.tagCheck instanceof Function&&me.tagCheck(r))&&!ae[r]){const n=function(t,e,n){if(!fe[e]&&zn(e)&&Nn(ue.tagNameCheck,e))return!1;if(Ce&&!ze[e]&&!ze[R(e)]){const e=Ot(t),r=X(t);if(r&&e)for(let o=r.length-1;o>=0;--o){const i=t===n?T(r[o],!0):r[o];e.insertBefore(i,$(t))}}return sn(t),!0}(t,r,e);return!(!1!==n||(kn(Kt.afterSanitizeElements,t,null),!Cn(t,e)))||n}if(1===It(t)&&!function(t){const e=Pt(t),n=R(Lt(t)),r=Ot(t);let o,i;return r&&1===It(r)?(o={namespaceURI:Pt(r)},i=R(Lt(r))):(o={namespaceURI:Ye},i="template"),!!qe[e]&&(e===Be?function(t,e,n){return e.namespaceURI===We?"svg"===t:e.namespaceURI===He?"svg"===t&&("annotation-xml"===n||Xe[n]):Boolean(ln[t])}(n,o,i):e===He?function(t,e,n){return e.namespaceURI===We?"math"===t:e.namespaceURI===Be?"math"===t&&Ze[n]:Boolean(cn[t])}(n,o,i):e===We?function(t,e,n){return!(e.namespaceURI===Be&&!Ze[n])&&!(e.namespaceURI===He&&!Xe[n])&&!cn[t]&&(Je[t]||!ln[t])}(n,o,i):!("application/xhtml+xml"!==Qe||!qe[e]))}(t))return sn(t),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&Y(vt,t.innerHTML))return sn(t),!0;if(be&&3===t.nodeType){const e=An(t.textContent);t.textContent!==e&&(_(n.removed,{element:t.cloneNode()}),t.textContent=e)}return kn(Kt.afterSanitizeElements,t,null),Cn(t,e)},In=function(t,e,n){if(pe[e])return!1;if(Tn(e,t))return!1;if(ke&&("id"===e||"name"===e)&&(n in r||n in rn))return!1;const o=ce[e]||me.attributeCheck instanceof Function&&me.attributeCheck(e,t);return!(!he||!Y(te,e))||!(!de||!Y(ee,e))||(o?!(!Ue[e]&&!Y(ie,z(n,re,""))&&("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==P(n,"data:")||!Me[t])&&(!ye||Y(ne,z(n,re,"")))&&n):zn(t)&&Nn(ue.tagNameCheck,t)&&Nn(ue.attributeNameCheck,e,t)||"is"===e&&ue.allowCustomizedBuiltInElements&&Nn(ue.tagNameCheck,n))},Ln=V({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),zn=function(t){return!Ln[R(t)]&&Y(oe,t)},Pn=function(t,e,n,r){if(Mt&&"object"==typeof p&&"function"==typeof p.getAttributeType&&!n)switch(p.getAttributeType(t,e)){case"TrustedHTML":return Wt(r);case"TrustedScriptURL":return function(t){Bt(),Ht++;try{return Mt.createScriptURL(t)}finally{Ht--}}(r)}return r},Mn=function(t,e,n,r){try{return n?t.setAttributeNS(n,e,r):t.setAttribute(e,r),!_n(t)||(sn(t),!1)}catch(n){return pn(e,t),!1}},jn=function(t,e){return!(!Te||!Y(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,e))||"attributename"===R(t)&&null!==L(e,"href")},Un=function(t,e){if(kn(Kt.beforeSanitizeAttributes,t,null),Cn(t,e))return;const r=t.attributes;if(!r||_n(t))return;ce=Dn(Kt.uponSanitizeAttribute,ce,se,we);const o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ce,forceKeepAttr:void 0};let i=r.length;const a=en(t.nodeName);for(;i--;){const e=r[i],l=e.name,c=e.namespaceURI,s=e.value,u=en(l),f=s;let p="value"===l?f:M(f),m=!1;o.attrName=u,o.attrValue=p,o.keepAttr=!0,o.forceKeepAttr=void 0,kn(Kt.uponSanitizeAttribute,t,o),p=o.attrValue,!Ne||"id"!==u&&"name"!==u||0===P(p,De)||(pn(l,t,e),p=De+p,m=!0),jn(l,p)?pn(l,t,e):o.forceKeepAttr||(!o.keepAttr||!ge&&Y(At,p)?pn(l,t,e):(be&&(p=An(p)),In(a,u,p)?(p=Pn(a,u,c,p),p!==f&&Mn(t,l,c,p)&&m&&x(n.removed)):pn(l,t,e)))}kn(Kt.afterSanitizeAttributes,t,null),Cn(t,e)},Fn=function(t){let e=null;const n=vn(t);for(kn(Kt.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(kn(Kt.uponSanitizeShadowNode,e,null),Rn(e,t),Un(e,t),En(e.content)&&Fn(e.content),1===It(e)){const t=kt(e);En(t)&&(Hn(t),Fn(t))}be&&xn(t),kn(Kt.afterSanitizeShadowDOM,t,null)},Hn=function(t){const e=[{node:t,shadow:null}];for(;e.length>0;){const t=e.pop();if(t.shadow){Fn(t.shadow);continue}const n=t.node,r=1===It(n),o=X(n);if(o)for(let t=o.length-1;t>=0;--t)e.push({node:o[t],shadow:null});if(r){const t=Ct?Ct(n):null;if("string"==typeof t&&"template"===en(t)){const t=n.content;En(t)&&e.push({node:t,shadow:null})}}if(r){const t=kt(n);En(t)&&e.push({node:null,shadow:t},{node:t,shadow:null})}}};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,a=null,l=null;if(Ge=!t,Ge&&(t="\x3c!--\x3e"),"string"!=typeof t&&!On(t)&&"string"!=typeof(t=function(t){switch(typeof t){case"string":return t;case"number":return j(t);case"boolean":return U(t);case"bigint":return F?F(t):"0";case"symbol":return H?H(t):"Symbol()";case"undefined":default:return W(t);case"function":case"object":{if(null===t)return W(t);const e=t,n=Z(e,"toString");if("function"==typeof n){const t=n(e);return"string"==typeof t?t:W(t)}return W(t)}}}(t)))throw G("dirty is not a string, aborting");if(!n.isSupported)return t;ve?(ae=Ae,ce=we):an(e),(Kt.uponSanitizeElement.length>0||Kt.uponSanitizeAttribute.length>0)&&(ae=K(ae)),Kt.uponSanitizeAttribute.length>0&&(ce=K(ce)),n.removed=[];const c=Re&&"string"!=typeof t&&On(t);let s=[];const u=Ie;if(c){Te&&dn(t,t=>{const e=It(t);if(7===e||8===e&&Y(St,t.data)){try{S(t)}catch(t){}return!1}if(1===e){const e=t,n=en(Lt(t));try{e.hasAttribute&&e.hasAttribute("patchsrc")&&e.removeAttribute("patchsrc"),e.hasAttribute&&e.hasAttribute("for")&&Tn("for",n)&&e.removeAttribute("for")}catch(t){}}return!0});const e=Lt(t);if("string"==typeof e){const n=en(e);if(!ae[n]||fe[n])throw fn(t),G("root node is forbidden and cannot be sanitized in-place")}if(_n(t))throw fn(t),G("root node is clobbered and cannot be sanitized in-place");s=yn(t),Ie=N()}else if(On(t))r=Sn("\x3c!----\x3e"),i=r.ownerDocument.importNode(t,!0),1===i.nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i),Hn(r);else{if(!_e&&!be&&!Se&&-1===t.indexOf("<"))return Mt&&Oe?Wt(t):t;if(r=Sn(t),!r)return _e?null:Oe?Ut:""}r&&xe&&sn(r.firstChild);const f=c?t:r;try{c&&Hn(t);const e=vn(f);for(;a=e.nextNode();)Rn(a,f),Un(a,f),En(a.content)&&Fn(a.content);c&&function(t,e){const n=Ie;let r=null;const o=()=>(r||(r=N(),A(e,t=>{D(r,t)})),r);for(let e=0;;e++){const r=yn(t),i=[t];let a=!1;if(A(r,t=>{11===It(t)?_(i,t):a||C(n,t)||(a=C(o(),t))}),!a)return;if(e>=8)throw G("the tree kept changing during in-place sanitization; refusing to return it");A(i,(e,n)=>{bn(e,n>0,t,o())})}}(t,s)}catch(e){throw c&&(fn(t),gn(t,s)),e}finally{Ie=u}if(c){if(gn(t,s))throw G("a node selected for removal could not be safely returned; refusing to sanitize in place");return be&&wn(t),t}if(_e){if(be&&wn(r),Ee)for(l=$t.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(ce.shadowroot||ce.shadowrootmode)&&(l=Xt.call(o,l,!0)),l}let p=Se?r.outerHTML:r.innerHTML;return Se&&ae["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Y(gt,r.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+p),be&&(p=An(p)),Mt&&Oe?Wt(p):p},n.setConfig=function(){an(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),ve=!0,Ae=ae,we=ce},n.clearConfig=function(){nn=null,ve=!1,Ae=null,we=null,Mt=jt,Ut=""},n.isValidAttribute=function(t,e,n){nn||an({});const r=en(t),o=en(e);return("string"!=typeof n||!(jn(e,n)||!ge&&Y(At,n)))&&In(r,o,n)},n.addHook=function(t,e){"function"==typeof e&&B(Kt,t)&&_(Kt[t],e)},n.removeHook=function(t,e){if(B(Kt,t)){if(void 0!==e){const n=w(Kt[t],e);return-1===n?void 0:O(Kt[t],n,1)[0]}return x(Kt[t])}},n.removeHooks=function(t){B(Kt,t)&&(Kt[t]=[])},n.removeAllHooks=function(){Kt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function kt({label:t,Type:e="Primary",Variant:n="Default",Outline:o=!1,State:i="Default",href:a="#",onClick:l,className:c,...s}){const u="Disabled"===i,f=["mg-button","CTA"===n&&"mg-button-cta","mg-button-"+("Secondary"===e?"secondary":"primary"),o&&"mg-button-outline",u&&"disabled",c].filter(Boolean).join(" ");return(0,r().jsx)("a",{className:f,...s,...u?{"aria-disabled":"true",tabIndex:-1}:{href:a,onClick:l},children:t})}function Nt(t){return"string"==typeof t&&""!==t.trim()?t:null}function Dt({title:t,link:e=null,target:n,rel:o}){const i=t?.trim();return(0,r().jsx)("header",{className:"mg-card__title",children:e?(0,r().jsx)("a",{href:e,target:n,rel:o,children:i}):i})}function Ct({label:t,link:e=null}){return t?e?(0,r().jsx)("a",{href:e,className:"mg-card__label mg-card__label--active",children:t}):(0,r().jsx)("span",{className:"mg-card__label",children:t}):null}o(),kt.propTypes={label:a().string.isRequired,Type:a().oneOf(["Primary","Secondary"]),Variant:a().oneOf(["Default","CTA"]),Outline:a().bool,State:a().oneOf(["Default","Disabled"]),href:a().string,onClick:a().func,className:a().string},Dt.propTypes={title:a().string,link:a().string,target:a().string,rel:a().string},Ct.propTypes={label:a().string,link:a().string};const Rt=(...t)=>t.filter(Boolean).length>0?t.filter(Boolean).join(" "):null;function It({data:t,variant:e="primary",className:n}){const o=e&&"primary"!==e?`mg-card--${e}`:null;return(0,r().jsx)(r().Fragment,{children:t.map((t,e)=>{const i=Nt(t.link),a=Nt(t.buttonLink)??i;return(0,r().jsxs)("article",{className:Rt("mg-card","mg-card__hc",o,!i&&"mg-card--no-link",n),children:[t.imgback&&(0,r().jsx)("div",{className:"mg-card__visual",children:(0,r().jsx)("img",{src:t.imgback,alt:t.imgalt,className:"mg-card__image"})}),(0,r().jsxs)("div",{className:"mg-card__content",children:[(t.label1||t.label2)&&(0,r().jsxs)("div",{className:"mg-card__meta",children:[(0,r().jsx)(Ct,{label:t.label1,link:i}),(0,r().jsx)(Ct,{label:t.label2,link:i})]}),(0,r().jsx)(Dt,{title:t.title,link:i,target:t.target,rel:t.rel}),t.summaryText&&(0,r().jsx)("p",{className:"mg-card__summary",dangerouslySetInnerHTML:{__html:Ot.sanitize(t.summaryText)}}),t.button&&a&&(0,r().jsx)(kt,{Type:"Primary",Variant:"CTA",label:t.button,href:a,target:t.target,rel:t.rel})]})]},e)})})}It.propTypes={data:a().array.isRequired,variant:a().oneOf(["primary","secondary","tertiary","quaternary"]),className:a().string};export{It as HorizontalCard};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.4.
|
|
1
|
+
/*! @license DOMPurify 3.4.17 | (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.17/LICENSE */
|
|
2
2
|
|
|
3
3
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
4
4
|
|