@undrr/undrr-mangrove 2.0.0-alpha.2 → 2.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +4 -4
  2. package/components/BookCard.js +2 -2
  3. package/components/Breadcrumbs.js +2 -2
  4. package/components/Checkbox.js +2 -2
  5. package/components/Chips.js +2 -2
  6. package/components/CtaButton.js +2 -2
  7. package/components/EmbedContainer.js +2 -2
  8. package/components/Footer.js +2 -2
  9. package/components/FormAction.js +2 -2
  10. package/components/FormErrorSummary.js +2 -2
  11. package/components/FormGroup.js +2 -2
  12. package/components/FullWidth.js +2 -2
  13. package/components/Gallery.js +2 -2
  14. package/components/Hero.js +2 -2
  15. package/components/HighlightBox.js +2 -2
  16. package/components/HorizontalBookCard.js +2 -2
  17. package/components/HorizontalCard.js +2 -2
  18. package/components/IconCard.js +2 -2
  19. package/components/Loader.js +2 -2
  20. package/components/MegaMenu.js +2 -2
  21. package/components/PageHeader.js +2 -2
  22. package/components/Pager.js +2 -2
  23. package/components/QuoteHighlight.js +2 -2
  24. package/components/Radio.js +2 -2
  25. package/components/ScrollContainer.js +2 -2
  26. package/components/Select.js +2 -2
  27. package/components/ShareButtons.js +2 -2
  28. package/components/ShowMore.js +2 -2
  29. package/components/StatsCard.js +2 -2
  30. package/components/SyndicationSearchWidget.js +2 -2
  31. package/components/Tab.js +2 -2
  32. package/components/TextCta.js +2 -2
  33. package/components/TextInput.js +2 -2
  34. package/components/Textarea.js +2 -2
  35. package/components/UserFeedback.js +2 -2
  36. package/components/VerticalCard.js +2 -2
  37. package/components/hydrate.js +1 -1
  38. package/css/style-all.css +286 -42
  39. package/css/style-all.css.map +1 -1
  40. package/css/style-delta.css +286 -42
  41. package/css/style-delta.css.map +1 -1
  42. package/css/style-gutenberg.css +254 -13
  43. package/css/style-gutenberg.css.map +1 -1
  44. package/css/style-irp.css +286 -42
  45. package/css/style-irp.css.map +1 -1
  46. package/css/style-mcr.css +286 -42
  47. package/css/style-mcr.css.map +1 -1
  48. package/css/style-preventionweb.css +286 -42
  49. package/css/style-preventionweb.css.map +1 -1
  50. package/css/style.css +285 -41
  51. package/css/style.css.map +1 -1
  52. package/error-pages/401.html +1 -1
  53. package/error-pages/403.html +1 -1
  54. package/error-pages/404.html +1 -1
  55. package/error-pages/429.html +1 -1
  56. package/error-pages/500.html +1 -1
  57. package/error-pages/502.html +1 -1
  58. package/error-pages/503.html +1 -1
  59. package/error-pages/504.html +1 -1
  60. package/error-pages/5xx.html +1 -1
  61. package/error-pages/challenge.html +1 -1
  62. package/error-pages/managed-challenge.html +1 -1
  63. package/js/tabs.js +577 -401
  64. package/package.json +10 -10
  65. package/scss/Atom/BaseTypography/Code/code.scss +3 -3
  66. package/scss/Atom/EmptyState/empty-state.scss +117 -0
  67. package/scss/Atom/ReachElement/Details/details.scss +1 -1
  68. package/scss/Atom/StatusLabel/status-label.scss +64 -0
  69. package/scss/Atom/Tag/tag.scss +1 -8
  70. package/scss/Components/Boilerplate/boilerplate.scss +1 -2
  71. package/scss/Components/Breadcrumbs/breadcrumbs.scss +1 -8
  72. package/scss/Components/Buttons/Chips/chips.scss +7 -10
  73. package/scss/Components/Buttons/CtaButton/cta-button.scss +19 -22
  74. package/scss/Components/Buttons/ShareButtons/share-buttons.scss +9 -13
  75. package/scss/Components/Cards/Card/card.scss +13 -13
  76. package/scss/Components/Cards/StatsCard/stats-card.scss +5 -14
  77. package/scss/Components/CookieConsentBanner/cookie-consent-banner.scss +2 -10
  78. package/scss/Components/Footer/footer.scss +1 -8
  79. package/scss/Components/Forms/_form-base.scss +49 -37
  80. package/scss/Components/Gallery/gallery.scss +13 -16
  81. package/scss/Components/Hero/hero.scss +4 -19
  82. package/scss/Components/MegaMenu/mega-menu.scss +337 -22
  83. package/scss/Components/OnThisPageNav/on-this-page-nav.scss +2 -10
  84. package/scss/Components/Pager/pager.scss +1 -2
  85. package/scss/Components/PreviewAccess/preview-access.scss +21 -29
  86. package/scss/Components/Snackbar/snackbar.scss +1 -1
  87. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +13 -15
  88. package/scss/Components/Tab/tab.scss +269 -123
  89. package/scss/Components/TextCta/text-cta.scss +1 -1
  90. package/scss/Components/UserFeedback/user-feedback.scss +2 -8
  91. package/scss/assets/fonts/noto-kufi-arabic/noto-kufi-arabic.scss +73 -3
  92. package/scss/assets/fonts/noto-sans-arabic/noto-sans-arabic.scss +79 -0
  93. package/scss/assets/scss/_components.scss +2 -0
  94. package/scss/assets/scss/_fonts.scss +158 -2
  95. package/scss/assets/scss/_foundational.scss +45 -30
  96. package/scss/assets/scss/_mixins.scss +53 -8
  97. package/scss/assets/scss/_theme-delta.scss +6 -63
  98. package/scss/assets/scss/_theme-irp.scss +6 -34
  99. package/scss/assets/scss/_theme-mcr.scss +7 -52
  100. package/scss/assets/scss/_theme-preventionweb.scss +6 -32
  101. package/scss/assets/scss/_tokens-data-viz.scss +300 -0
  102. package/scss/assets/scss/_tokens-tabs.scss +32 -0
  103. package/scss/assets/scss/_utility.scss +4 -6
  104. package/scss/assets/scss/_variables.scss +221 -300
  105. package/scss/assets/scss/generated/_tokens-delta.scss +248 -0
  106. package/scss/assets/scss/generated/_tokens-irp.scss +114 -0
  107. package/scss/assets/scss/generated/_tokens-mangrove.scss +607 -0
  108. package/scss/assets/scss/generated/_tokens-mcr.scss +135 -0
  109. package/scss/assets/scss/generated/_tokens-preventionweb.scss +101 -0
  110. package/scss/assets/fonts/dubai/dubai.scss +0 -9
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-01T16:47:31.865Z
3
+ * Compiled on: 2026-09-09T07:00:30.610Z
4
4
  */
5
5
  /*! For license information please see ShareButtons.js.LICENSE.txt */
6
- import{useEffect as e,useRef as t,useState as n}from"react";var r={6320(e){var t={single_source_shortest_paths:function(e,n,r){var o={},a={};a[n]=0;var i,s,l,c,u,d,h,g=t.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(l in s=(i=g.pop()).value,c=i.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=a[l],(void 0===a[l]||h>d)&&(a[l]=d,g.push(l,d),o[l]=s));if(void 0!==r&&void 0===a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7583(e,t,n){const r=n(1333),o=n(157),a=n(7899),i=n(6756);function s(e,t,n,a,i){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=a=void 0):2!==l||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,i){try{const i=o.create(n,a);r(e(i,t,a))}catch(e){i(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(i=n,n=t,t=a=void 0):3===l&&(t.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0));try{const r=o.create(n,a);i(null,e(r,t,a))}catch(e){i(e)}}t.create=o.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return i.render(e,n)})},1333(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(e,t,n){const r=n(6886).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-o;return a.push(6),a.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},1433(e,t,n){const r=n(208),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=a},9899(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},8820(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},5822(e,t,n){const r=n(208);function o(e){this.mode=r.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},7518(e,t,n){const r=n(9953),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},9953(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},7756(e,t,n){const r=n(6886).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},4565(e,t,n){const r=n(6886),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},2731(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},4861(e,t,n){const r=n(208),o=n(6886);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=a},1332(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,a=null,i=null;for(let s=0;s<t;s++){r=o=0,a=i=null;for(let l=0;l<t;l++){let t=e.get(s,l);t===a?r++:(r>=5&&(n+=r-5+3),a=t,r=1),t=e.get(l,s),t===i?o++:(o>=5&&(n+=o-5+3),i=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let a=0;a<t;a++){r=o=0;for(let i=0;i<t;i++)r=r<<1&2047|e.get(a,i),i>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(i,a),i>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let a=0;a<r;a++)t.isReserved(a,o)||t.xor(a,o,n(e,a,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,o=i)}return o}},208(e,t,n){const r=n(1878),o=n(7044);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},4357(e,t,n){const r=n(208);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},4713(e,t,n){const r=n(2731);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},157(e,t,n){const r=n(6886),o=n(9953),a=n(9899),i=n(8820),s=n(6421),l=n(7756),c=n(1332),u=n(7518),d=n(4764),h=n(1427),g=n(4565),f=n(208),p=n(9801);function m(e,t,n){const r=e.size,o=g.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=1==(o>>a&1),a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let g;if(Array.isArray(e))g=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=p.rawSplit(e);r=h.getBestVersionForData(t,n)}g=p.fromString(e,r||40)}}const y=h.getBestVersionForData(g,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const b=function(e,t,n){const o=new a;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(o)});const i=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),a=o-u.getTotalCodewordsCount(t,n),i=u.getBlocksCount(t,n),s=i-o%i,l=Math.floor(o/i),c=Math.floor(a/i),h=c+1,g=l-c,f=new d(g);let p=0;const m=new Array(i),y=new Array(i);let b=0;const w=new Uint8Array(e.buffer);for(let e=0;e<i;e++){const t=e<s?c:h;m[e]=w.slice(p,p+t),y[e]=f.encode(m[e]),p+=t,b=Math.max(b,t)}const C=new Uint8Array(o);let E,x,v=0;for(E=0;E<b;E++)for(x=0;x<i;x++)E<m[x].length&&(C[v++]=m[x][E]);for(E=0;E<g;E++)for(x=0;x<i;x++)C[v++]=y[x][E];return C}(o,e,t)}(t,n,g),w=r.getSymbolSize(t),C=new i(w);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,a+r,!0,!0):e.set(o+t,a+r,!1,!0))}}(C,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(C),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(C,t),m(C,n,0),t>=7&&function(e,t){const n=e.size,r=h.getEncodedBits(t);let o,a,i;for(let t=0;t<18;t++)o=Math.floor(t/3),a=t%3+n-8-3,i=1==(r>>t&1),e.set(o,a,i,!0),e.set(a,o,i,!0)}(C,t),function(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;i<t.length&&(r=1==(t[i]>>>a&1)),e.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(C,b),isNaN(o)&&(o=c.getBestMask(C,m.bind(null,C,n))),c.applyMask(o,C),m(C,n,o),{modules:C,version:t,errorCorrectionLevel:n,maskPattern:o,segments:g}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,a,i=o.M;return void 0!==t&&(i=o.from(t.errorCorrectionLevel,o.M),n=h.from(t.version),a=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,i,a)}},4764(e,t,n){const r=n(4713);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},7044(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},9801(e,t,n){const r=n(208),o=n(4357),a=n(1433),i=n(5822),s=n(4861),l=n(7044),c=n(6886),u=n(6320);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function g(e){const t=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,a;return c.isKanjiModeEnabled()?(o=h(l.BYTE,r.BYTE,e),a=h(l.KANJI,r.KANJI,e)):(o=h(l.BYTE_KANJI,r.BYTE,e),a=[]),t.concat(n,o,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function p(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(g(e,c.isKanjiModeEnabled())),a=function(e,t){const n={},o={start:{}};let a=["start"];for(let i=0;i<e.length;i++){const s=e[i],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<a.length;e++){const i=a[e];n[i]&&n[i].node.mode===c.mode?(o[i][u]=f(n[i].lastCount+c.length,c.mode)-f(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),o[i][u]=f(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=l}for(let e=0;e<a.length;e++)o[a[e]].end=0;return{map:o,table:n}}(o,n),i=u.find_path(a.map,"start","end"),s=[];for(let e=1;e<i.length-1;e++)s.push(a.table[i[e]].node);return t.fromArray(s.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(g(e,c.isKanjiModeEnabled()))}},6886(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},1878(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},1427(e,t,n){const r=n(6886),o=n(7518),a=n(9953),i=n(208),s=n(1878),l=r.getBCHDigit(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===i.MIXED)return a;const l=a-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},7899(e,t,n){const r=n(2726);t.render=function(e,t,n){let o=n,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(e.modules.size,o),s=a.getContext("2d"),l=s.createImageData(i,i);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,i),s.putImageData(l,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=t.render(e,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},6756(e,t,n){const r=n(2726);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const i=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=i?a("M",c+n,.5+u+n):a("m",o,0),o=0,i=!1),c+1<t&&e[l+1]||(r+=a("h",s),s=0)):o++}return r}(l,s,i.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,g),g}},2726(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,a=n.modules.data,i=t.getScale(o,r),s=Math.floor((o+2*r.margin)*i),l=r.margin*i,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;t>=l&&n>=l&&t<s-l&&n<s-l&&(d=c[a[Math.floor((t-l)/i)*o+Math.floor((n-l)/i)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},9698(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},4848(e,t,n){e.exports=n(9698)}};const o={};function a(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++];a.o(e,r)?0===o&&n++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=a(5556),s=a.n(i),l=a(7583);const c=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');var u=a(4848);const d="Check out this link: ",h="Sharing Link",g={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},f=({isOpen:r,onClose:o,qrCodeDataUrl:a,onCopy:i,onDownload:s,sharedLink:l,copiedLabel:c="Image copied",titleLabel:d="QR code",descriptionLabel:h="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:g="Close modal",copyImageLabel:f="Copy image",downloadImageLabel:p="Download image",closeMessageLabel:m="Close message"})=>{const y=t(null),[b,w]=n(!1),C=t(r);return r!==C.current&&(C.current=r,r&&w(!1)),e(()=>{const e=e=>{"Escape"===e.key&&o()},t=e=>{y.current&&!y.current.contains(e.target)&&o()};return r&&(document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.body.style.overflow="unset"}},[r,o]),r?(0,u.jsx)("div",{"data-vf-google-analytics-region":"share-qr-code",className:"mg-modal-overlay",style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,u.jsxs)("div",{ref:y,className:"mg-modal",style:{backgroundColor:"white",borderRadius:"8px",padding:"24px",maxWidth:"500px",width:"90%",maxHeight:"90vh",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,u.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",flexShrink:0},children:[(0,u.jsx)("h3",{children:d}),(0,u.jsx)("button",{onClick:o,style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"4px",borderRadius:"4px",color:"#666"},"aria-label":g,children:"×"})]}),(0,u.jsx)("p",{children:h}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",paddingRight:"8px"},children:a&&(0,u.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,u.jsx)("img",{src:a,alt:"QR Code",style:{maxWidth:"100%",maxHeight:"220px",height:"auto"}}),(0,u.jsx)("div",{style:{textAlign:"left"},children:(0,u.jsx)("code",{className:"mg-code--block",children:(()=>{const e=new URL(l);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()})})]})}),(0,u.jsx)("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:b?`${c}`:""}),(0,u.jsxs)("div",{style:{marginTop:"16px",flexShrink:0,display:"flex",gap:"8px",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,u.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[(0,u.jsx)("button",{onClick:async()=>{try{await i(),w(!0),setTimeout(()=>{w(!1)},2e3)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:b,children:b?c:f}),(0,u.jsx)("button",{onClick:s,className:"mg-button mg-button-secondary",children:p})]}),(0,u.jsx)("button",{onClick:o,className:"mg-button mg-button-secondary",style:{marginLeft:"auto"},children:m})]})]})}):null},p=({labels:e={},SharingSubject:t,SharingTextBody:r,...o})=>{const a={...g,...e},[i,s]=n(!1),[p,y]=n(null),b=(()=>{const e=document.querySelector('link[rel="shortlink"]');return e?e.href:window.location.href})(),w=e=>{if("QRCode"===e)C();else if("WebShare"===e&&navigator.share)navigator.share({title:t??h,text:r??d,url:b}).catch(e=>console.error("Error sharing",e));else{var n=(e=>{let n=c[e];const o=encodeURIComponent(t??h),a=encodeURIComponent(r??d)+encodeURIComponent(b);return n.replace("[SHARING_TEXT_SUBJECT]",o).replace("[SHARING_TEXT_BODY]",a)})(e);"Mail"===e?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},C=async()=>{try{const e=new URL(b);e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box");const t=e.toString(),n=await l.toDataURL(t,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});y(n),s(!0)}catch(e){console.error("Error generating QR code:",e),alert("Failed to generate QR code. Please try again.")}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...o,children:[(0,u.jsx)("header",{className:"mg-share__header",children:a.mainLabel}),(0,u.jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>w("WebShare"),"aria-label":a.shareUsingDevice,title:a.shareUsingDevice,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>w("LinkedIn"),"aria-label":a.shareOnLinkedIn,className:"mg-share__button",title:a.shareOnLinkedIn,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>w("Facebook"),"aria-label":a.shareOnFacebook,title:a.shareOnFacebook,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>w("Twitter"),"aria-label":a.shareOnX,className:"mg-share__button",title:a.shareOnX,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>w("Mail"),"aria-label":a.shareViaEmail,className:"mg-share__button",title:a.shareViaEmail,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: QR Code",onClick:()=>w("QRCode"),"aria-label":a.generateQRCode,className:"mg-share__button",title:a.generateQRCode,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,u.jsx)(m,{className:"mg-share__copy-button",copiedLabel:a.onCopy,copyToClipboardLabel:a.copyToClipboard,sharedLink:b})]}),(0,u.jsx)(f,{isOpen:i,onClose:()=>{s(!1),p&&(URL.revokeObjectURL(p),y(null))},qrCodeDataUrl:p,onCopy:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new ClipboardItem({"image/png":t});await navigator.clipboard.write([n])}}catch(e){console.error("Error copying QR code to clipboard:",e),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new URL(b);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const e=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");e&&(r+=`-${e}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:b,copiedLabel:a.onCopy,titleLabel:a.qrCodeTitle,descriptionLabel:a.qrCodeDescription,closeModalLabel:a.closeModal,copyImageLabel:a.copyImage,downloadImageLabel:a.downloadImage,closeMessageLabel:a.closeMessage})]})};function m({copiedLabel:e,sharedLink:t,className:r,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=n(!1);let s=t;return t.startsWith("https://")?s=t.replace("https://",""):t.startsWith("http://")&&(s=t.replace("http://","")),(0,u.jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:r,onClick:()=>(navigator.clipboard.writeText(t),void i(!0)),children:[(0,u.jsx)("div",{className:"mg-share__clip-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,u.jsx)("div",{className:"mg-share__copy-text",children:a?e:s}),(0,u.jsx)("div",{className:"mg-share__stack-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}f.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,qrCodeDataUrl:s().string,onCopy:s().func.isRequired,onDownload:s().func.isRequired,sharedLink:s().string.isRequired,copiedLabel:s().string},p.propTypes={labels:s().shape({mainLabel:s().string,onCopy:s().string,qrCodeTitle:s().string,qrCodeDescription:s().string,closeModal:s().string,copyImage:s().string,downloadImage:s().string,closeMessage:s().string,shareUsingDevice:s().string,shareOnLinkedIn:s().string,shareOnFacebook:s().string,shareOnX:s().string,shareViaEmail:s().string,generateQRCode:s().string,copyToClipboard:s().string}),SharingSubject:s().string,SharingTextBody:s().string},m.propTypes={copiedLabel:s().string.isRequired,sharedLink:s().string.isRequired,className:s().string,copyToClipboardLabel:s().string};const y=p;function b(e){const{dataset:t}=e;return{labels:{mainLabel:t.mainLabel||"Share this",onCopy:t.onCopyLabel||"Link copied"},SharingSubject:t.sharingSubject||"Sharing Link",SharingTextBody:t.sharingBody||""}}export{m as CopyButton,y as default,b as fromElement};
6
+ import{useEffect as e,useRef as t,useState as n}from"react";var r={5519(e){var t={single_source_shortest_paths:function(e,n,r){var o={},a={};a[n]=0;var i,s,l,c,u,d,h,g=t.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(l in s=(i=g.pop()).value,c=i.cost,u=e[s]||{})u.hasOwnProperty(l)&&(d=c+u[l],h=a[l],(void 0===a[l]||h>d)&&(a[l]=d,g.push(l,d),o[l]=s));if(void 0!==r&&void 0===a[r]){var f=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(f)}return o},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},7261(e,t,n){var r=n(654);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},8433(e,t,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},110(e,t,n){const r=n(5256),o=n(3376),a=n(6754),i=n(4699);function s(e,t,n,a,i){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(n=t,t=a=void 0):2!==l||t.getContext||(a=n,n=t,t=void 0),new Promise(function(r,i){try{const i=o.create(n,a);r(e(i,t,a))}catch(e){i(e)}})}if(l<2)throw new Error("Too few arguments provided");2===l?(i=n,n=t,t=a=void 0):3===l&&(t.getContext&&void 0===i?(i=a,a=void 0):(i=a,a=n,n=t,t=void 0));try{const r=o.create(n,a);i(null,e(r,t,a))}catch(e){i(e)}}t.create=o.create,t.toCanvas=s.bind(null,a.render),t.toDataURL=s.bind(null,a.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return i.render(e,n)})},5256(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},2386(e,t,n){const r=n(5621).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),a=[n-7];for(let e=1;e<t-1;e++)a[e]=a[e-1]-o;return a.push(6),a.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),o=r.length;for(let e=0;e<o;e++)for(let t=0;t<o;t++)0===e&&0===t||0===e&&t===o-1||e===o-1&&0===t||n.push([r[e],r[t]]);return n}},1526(e,t,n){const r=n(929),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function a(e){this.mode=r.ALPHANUMERIC,this.data=e}a.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=a},6442(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1==(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},6185(e){function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},9005(e,t,n){const r=n(929);function o(e){this.mode=r.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}o.getBitsLength=function(e){return 8*e},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=o},9977(e,t,n){const r=n(3188),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],a=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}}},3188(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(e){return n}}},5161(e,t,n){const r=n(5621).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},5338(e,t,n){const r=n(5621),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let a=n<<10;for(;r.getBCHDigit(a)-o>=0;)a^=1335<<r.getBCHDigit(a)-o;return 21522^(n<<10|a)}},1154(e,t){const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let e=255;e<512;e++)n[e]=n[e-255]}(),t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},5380(e,t,n){const r=n(929),o=n(5621);function a(e){this.mode=r.KANJI,this.data=e}a.getBitsLength=function(e){return 13*e},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=a},1717(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function n(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let n=0,r=0,o=0,a=null,i=null;for(let s=0;s<t;s++){r=o=0,a=i=null;for(let l=0;l<t;l++){let t=e.get(s,l);t===a?r++:(r>=5&&(n+=r-5+3),a=t,r=1),t=e.get(l,s),t===i?o++:(o>=5&&(n+=o-5+3),i=t,o=1)}r>=5&&(n+=r-5+3),o>=5&&(n+=o-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let o=0;o<t-1;o++){const t=e.get(r,o)+e.get(r,o+1)+e.get(r+1,o)+e.get(r+1,o+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,o=0;for(let a=0;a<t;a++){r=o=0;for(let i=0;i<t;i++)r=r<<1&2047|e.get(a,i),i>=10&&(1488===r||93===r)&&n++,o=o<<1&2047|e.get(i,a),i>=10&&(1488===o||93===o)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const r=t.size;for(let o=0;o<r;o++)for(let a=0;a<r;a++)t.isReserved(a,o)||t.xor(a,o,n(e,a,o))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let o=0,a=1/0;for(let i=0;i<r;i++){n(i),t.applyMask(i,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(i,e),r<a&&(a=r,o=i)}return o}},929(e,t,n){const r=n(5589),o=n(8419);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(e){return n}}},1904(e,t,n){const r=n(929);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},3524(e,t,n){const r=n(1154);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let a=0;a<t.length;a++)n[o+a]^=r.mul(e[o],t[a]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let o=0;o<t.length;o++)n[o]^=r.mul(t[o],e);let o=0;for(;o<n.length&&0===n[o];)o++;n=n.slice(o)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let o=0;o<e;o++)n=t.mul(n,new Uint8Array([1,r.exp(o)]));return n}},3376(e,t,n){const r=n(5621),o=n(3188),a=n(6442),i=n(6185),s=n(2386),l=n(5161),c=n(1717),u=n(9977),d=n(7861),h=n(1072),g=n(5338),f=n(929),p=n(1096);function m(e,t,n){const r=e.size,o=g.getEncodedBits(t,n);let a,i;for(a=0;a<15;a++)i=1==(o>>a&1),a<6?e.set(a,8,i,!0):a<8?e.set(a+1,8,i,!0):e.set(r-15+a,8,i,!0),a<8?e.set(8,r-a-1,i,!0):a<9?e.set(8,15-a-1+1,i,!0):e.set(8,15-a-1,i,!0);e.set(r-8,8,1,!0)}function y(e,t,n,o){let g;if(Array.isArray(e))g=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=p.rawSplit(e);r=h.getBestVersionForData(t,n)}g=p.fromString(e,r||40)}}const y=h.getBestVersionForData(g,n);if(!y)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<y)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+y+".\n")}else t=y;const b=function(e,t,n){const o=new a;n.forEach(function(t){o.put(t.mode.bit,4),o.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(o)});const i=8*(r.getSymbolTotalCodewords(e)-u.getTotalCodewordsCount(e,t));for(o.getLengthInBits()+4<=i&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);const s=(i-o.getLengthInBits())/8;for(let e=0;e<s;e++)o.put(e%2?17:236,8);return function(e,t,n){const o=r.getSymbolTotalCodewords(t),a=o-u.getTotalCodewordsCount(t,n),i=u.getBlocksCount(t,n),s=i-o%i,l=Math.floor(o/i),c=Math.floor(a/i),h=c+1,g=l-c,f=new d(g);let p=0;const m=new Array(i),y=new Array(i);let b=0;const w=new Uint8Array(e.buffer);for(let e=0;e<i;e++){const t=e<s?c:h;m[e]=w.slice(p,p+t),y[e]=f.encode(m[e]),p+=t,b=Math.max(b,t)}const C=new Uint8Array(o);let E,x,v=0;for(E=0;E<b;E++)for(x=0;x<i;x++)E<m[x].length&&(C[v++]=m[x][E]);for(E=0;E<g;E++)for(x=0;x<i;x++)C[v++]=y[x][E];return C}(o,e,t)}(t,n,g),w=r.getSymbolSize(t),C=new i(w);return function(e,t){const n=e.size,r=l.getPositions(t);for(let t=0;t<r.length;t++){const o=r[t][0],a=r[t][1];for(let t=-1;t<=7;t++)if(!(o+t<=-1||n<=o+t))for(let r=-1;r<=7;r++)a+r<=-1||n<=a+r||(t>=0&&t<=6&&(0===r||6===r)||r>=0&&r<=6&&(0===t||6===t)||t>=2&&t<=4&&r>=2&&r<=4?e.set(o+t,a+r,!0,!0):e.set(o+t,a+r,!1,!0))}}(C,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2==0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(C),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const r=n[t][0],o=n[t][1];for(let t=-2;t<=2;t++)for(let n=-2;n<=2;n++)-2===t||2===t||-2===n||2===n||0===t&&0===n?e.set(r+t,o+n,!0,!0):e.set(r+t,o+n,!1,!0)}}(C,t),m(C,n,0),t>=7&&function(e,t){const n=e.size,r=h.getEncodedBits(t);let o,a,i;for(let t=0;t<18;t++)o=Math.floor(t/3),a=t%3+n-8-3,i=1==(r>>t&1),e.set(o,a,i,!0),e.set(a,o,i,!0)}(C,t),function(e,t){const n=e.size;let r=-1,o=n-1,a=7,i=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(o,s-n)){let r=!1;i<t.length&&(r=1==(t[i]>>>a&1)),e.set(o,s-n,r),a--,-1===a&&(i++,a=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}(C,b),isNaN(o)&&(o=c.getBestMask(C,m.bind(null,C,n))),c.applyMask(o,C),m(C,n,o),{modules:C,version:t,errorCorrectionLevel:n,maskPattern:o,segments:g}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,a,i=o.M;return void 0!==t&&(i=o.from(t.errorCorrectionLevel,o.M),n=h.from(t.version),a=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),y(e,n,i,a)}},7861(e,t,n){const r=n(3524);function o(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),o=this.degree-n.length;if(o>0){const e=new Uint8Array(this.degree);return e.set(n,o),e}return n},e.exports=o},8419(e,t){const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const a=new RegExp("^"+r+"$"),i=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return a.test(e)},t.testNumeric=function(e){return i.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},1096(e,t,n){const r=n(929),o=n(1904),a=n(1526),i=n(9005),s=n(5380),l=n(8419),c=n(5621),u=n(5519);function d(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const r=[];let o;for(;null!==(o=e.exec(n));)r.push({data:o[0],index:o.index,mode:t,length:o[0].length});return r}function g(e){const t=h(l.NUMERIC,r.NUMERIC,e),n=h(l.ALPHANUMERIC,r.ALPHANUMERIC,e);let o,a;return c.isKanjiModeEnabled()?(o=h(l.BYTE,r.BYTE,e),a=h(l.KANJI,r.KANJI,e)):(o=h(l.BYTE_KANJI,r.BYTE,e),a=[]),t.concat(n,o,a).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function f(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return a.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return i.getBitsLength(e)}}function p(e,t){let n;const l=r.getBestModeForData(e);if(n=r.from(t,l),n!==r.BYTE&&n.bit<l.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(l));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new o(e);case r.ALPHANUMERIC:return new a(e);case r.KANJI:return new s(e);case r.BYTE:return new i(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(p(t,null)):t.data&&e.push(p(t.data,t.mode)),e},[])},t.fromString=function(e,n){const o=function(e){const t=[];for(let n=0;n<e.length;n++){const o=e[n];switch(o.mode){case r.NUMERIC:t.push([o,{data:o.data,mode:r.ALPHANUMERIC,length:o.length},{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.ALPHANUMERIC:t.push([o,{data:o.data,mode:r.BYTE,length:o.length}]);break;case r.KANJI:t.push([o,{data:o.data,mode:r.BYTE,length:d(o.data)}]);break;case r.BYTE:t.push([{data:o.data,mode:r.BYTE,length:d(o.data)}])}}return t}(g(e,c.isKanjiModeEnabled())),a=function(e,t){const n={},o={start:{}};let a=["start"];for(let i=0;i<e.length;i++){const s=e[i],l=[];for(let e=0;e<s.length;e++){const c=s[e],u=""+i+e;l.push(u),n[u]={node:c,lastCount:0},o[u]={};for(let e=0;e<a.length;e++){const i=a[e];n[i]&&n[i].node.mode===c.mode?(o[i][u]=f(n[i].lastCount+c.length,c.mode)-f(n[i].lastCount,c.mode),n[i].lastCount+=c.length):(n[i]&&(n[i].lastCount=c.length),o[i][u]=f(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}a=l}for(let e=0;e<a.length;e++)o[a[e]].end=0;return{map:o,table:n}}(o,n),i=u.find_path(a.map,"start","end"),s=[];for(let e=1;e<i.length-1;e++)s.push(a.table[i[e]].node);return t.fromArray(s.reduce(function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[]))},t.rawSplit=function(e){return t.fromArray(g(e,c.isKanjiModeEnabled()))}},5621(e,t){let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},5589(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},1072(e,t,n){const r=n(5621),o=n(9977),a=n(3188),i=n(929),s=n(5589),l=r.getBCHDigit(7973);function c(e,t){return i.getCharCountIndicator(e,t)+4}function u(e,t){let n=0;return e.forEach(function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()}),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=i.BYTE);const a=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===i.MIXED)return a;const l=a-c(n,e);switch(n){case i.NUMERIC:return Math.floor(l/10*3);case i.ALPHANUMERIC:return Math.floor(l/11*2);case i.KANJI:return Math.floor(l/13);case i.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,n){let r;const o=a.from(n,a.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(u(e,r)<=t.getCapacity(r,n,i.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-l>=0;)t^=7973<<r.getBCHDigit(t)-l;return e<<12|t}},6754(e,t,n){const r=n(8206);t.render=function(e,t,n){let o=n,a=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);const i=r.getImageWidth(e.modules.size,o),s=a.getContext("2d"),l=s.createImageData(i,i);return r.qrToImageData(l.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,a,i),s.putImageData(l,0,0),a},t.renderToDataURL=function(e,n,r){let o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});const a=t.render(e,n,o),i=o.type||"image/png",s=o.rendererOpts||{};return a.toDataURL(i,s.quality)}},4699(e,t,n){const r=n(8206);function o(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function a(e,t,n){let r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){const i=r.getOptions(t),s=e.modules.size,l=e.modules.data,c=s+2*i.margin,u=i.color.light.a?"<path "+o(i.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",d="<path "+o(i.color.dark,"stroke")+' d="'+function(e,t,n){let r="",o=0,i=!1,s=0;for(let l=0;l<e.length;l++){const c=Math.floor(l%t),u=Math.floor(l/t);c||i||(i=!0),e[l]?(s++,l>0&&c>0&&e[l-1]||(r+=i?a("M",c+n,.5+u+n):a("m",o,0),o=0,i=!1),c+1<t&&e[l+1]||(r+=a("h",s),s=0)):o++}return r}(l,s,i.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(i.width?'width="'+i.width+'" height="'+i.width+'" ':"")+h+' shape-rendering="crispEdges">'+u+d+"</svg>\n";return"function"==typeof n&&n(null,g),g}},8206(e,t){function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map(function(e){return[e,e]}))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const o=n.modules.size,a=n.modules.data,i=t.getScale(o,r),s=Math.floor((o+2*r.margin)*i),l=r.margin*i,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let u=4*(t*s+n),d=r.color.light;t>=l&&n>=l&&t<s-l&&n<s-l&&(d=c[a[Math.floor((t-l)/i)*o+Math.floor((n-l)/i)]?1:0]),e[u++]=d.r,e[u++]=d.g,e[u++]=d.b,e[u]=d.a}}},9755(e,t){var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=o,t.jsxs=o},2783(e,t,n){e.exports=n(9755)}};const o={};function a(e){const t=o[e];if(void 0!==t)return t.exports;const n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var r=t[n++],o=t[n++];a.o(e,r)?0===o&&n++:0===o?Object.defineProperty(e,r,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,r,{enumerable:!0,get:o})}else for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=a(8433),s=a.n(i),l=a(110);const c=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');var u=a(2783);const d="Check out this link: ",h="Sharing Link",g={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},f=({isOpen:r,onClose:o,qrCodeDataUrl:a,onCopy:i,onDownload:s,sharedLink:l,copiedLabel:c="Image copied",titleLabel:d="QR code",descriptionLabel:h="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:g="Close modal",copyImageLabel:f="Copy image",downloadImageLabel:p="Download image",closeMessageLabel:m="Close message"})=>{const y=t(null),[b,w]=n(!1),C=t(r);return r!==C.current&&(C.current=r,r&&w(!1)),e(()=>{const e=e=>{"Escape"===e.key&&o()},t=e=>{y.current&&!y.current.contains(e.target)&&o()};return r&&(document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.body.style.overflow="unset"}},[r,o]),r?(0,u.jsx)("div",{"data-vf-google-analytics-region":"share-qr-code",className:"mg-modal-overlay",style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,u.jsxs)("div",{ref:y,className:"mg-modal",style:{backgroundColor:"white",borderRadius:"8px",padding:"24px",maxWidth:"500px",width:"90%",maxHeight:"90vh",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,u.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",flexShrink:0},children:[(0,u.jsx)("h3",{children:d}),(0,u.jsx)("button",{onClick:o,style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"4px",borderRadius:"4px",color:"#666"},"aria-label":g,children:"×"})]}),(0,u.jsx)("p",{children:h}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",paddingRight:"8px"},children:a&&(0,u.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,u.jsx)("img",{src:a,alt:"QR Code",style:{maxWidth:"100%",maxHeight:"220px",height:"auto"}}),(0,u.jsx)("div",{style:{textAlign:"left"},children:(0,u.jsx)("code",{className:"mg-code--block",children:(()=>{const e=new URL(l);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()})})]})}),(0,u.jsx)("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:b?`${c}`:""}),(0,u.jsxs)("div",{style:{marginTop:"16px",flexShrink:0,display:"flex",gap:"8px",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,u.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[(0,u.jsx)("button",{onClick:async()=>{try{await i(),w(!0),setTimeout(()=>{w(!1)},2e3)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:b,children:b?c:f}),(0,u.jsx)("button",{onClick:s,className:"mg-button mg-button-secondary",children:p})]}),(0,u.jsx)("button",{onClick:o,className:"mg-button mg-button-secondary",style:{marginLeft:"auto"},children:m})]})]})}):null},p=({labels:e={},SharingSubject:t,SharingTextBody:r,...o})=>{const a={...g,...e},[i,s]=n(!1),[p,y]=n(null),b=(()=>{const e=document.querySelector('link[rel="shortlink"]');return e?e.href:window.location.href})(),w=e=>{if("QRCode"===e)C();else if("WebShare"===e&&navigator.share)navigator.share({title:t??h,text:r??d,url:b}).catch(e=>console.error("Error sharing",e));else{var n=(e=>{let n=c[e];const o=encodeURIComponent(t??h),a=encodeURIComponent(r??d)+encodeURIComponent(b);return n.replace("[SHARING_TEXT_SUBJECT]",o).replace("[SHARING_TEXT_BODY]",a)})(e);"Mail"===e?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},C=async()=>{try{const e=new URL(b);e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box");const t=e.toString(),n=await l.toDataURL(t,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});y(n),s(!0)}catch(e){console.error("Error generating QR code:",e),alert("Failed to generate QR code. Please try again.")}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...o,children:[(0,u.jsx)("header",{className:"mg-share__header",children:a.mainLabel}),(0,u.jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>w("WebShare"),"aria-label":a.shareUsingDevice,title:a.shareUsingDevice,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>w("LinkedIn"),"aria-label":a.shareOnLinkedIn,className:"mg-share__button",title:a.shareOnLinkedIn,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>w("Facebook"),"aria-label":a.shareOnFacebook,title:a.shareOnFacebook,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>w("Twitter"),"aria-label":a.shareOnX,className:"mg-share__button",title:a.shareOnX,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>w("Mail"),"aria-label":a.shareViaEmail,className:"mg-share__button",title:a.shareViaEmail,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: QR Code",onClick:()=>w("QRCode"),"aria-label":a.generateQRCode,className:"mg-share__button",title:a.generateQRCode,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,u.jsx)(m,{className:"mg-share__copy-button",copiedLabel:a.onCopy,copyToClipboardLabel:a.copyToClipboard,sharedLink:b})]}),(0,u.jsx)(f,{isOpen:i,onClose:()=>{s(!1),p&&(URL.revokeObjectURL(p),y(null))},qrCodeDataUrl:p,onCopy:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new ClipboardItem({"image/png":t});await navigator.clipboard.write([n])}}catch(e){console.error("Error copying QR code to clipboard:",e),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new URL(b);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const e=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");e&&(r+=`-${e}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:b,copiedLabel:a.onCopy,titleLabel:a.qrCodeTitle,descriptionLabel:a.qrCodeDescription,closeModalLabel:a.closeModal,copyImageLabel:a.copyImage,downloadImageLabel:a.downloadImage,closeMessageLabel:a.closeMessage})]})};function m({copiedLabel:e,sharedLink:t,className:r,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=n(!1);let s=t;return t.startsWith("https://")?s=t.replace("https://",""):t.startsWith("http://")&&(s=t.replace("http://","")),(0,u.jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:r,onClick:()=>(navigator.clipboard.writeText(t),void i(!0)),children:[(0,u.jsx)("div",{className:"mg-share__clip-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,u.jsx)("div",{className:"mg-share__copy-text",children:a?e:s}),(0,u.jsx)("div",{className:"mg-share__stack-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}f.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,qrCodeDataUrl:s().string,onCopy:s().func.isRequired,onDownload:s().func.isRequired,sharedLink:s().string.isRequired,copiedLabel:s().string},p.propTypes={labels:s().shape({mainLabel:s().string,onCopy:s().string,qrCodeTitle:s().string,qrCodeDescription:s().string,closeModal:s().string,copyImage:s().string,downloadImage:s().string,closeMessage:s().string,shareUsingDevice:s().string,shareOnLinkedIn:s().string,shareOnFacebook:s().string,shareOnX:s().string,shareViaEmail:s().string,generateQRCode:s().string,copyToClipboard:s().string}),SharingSubject:s().string,SharingTextBody:s().string},m.propTypes={copiedLabel:s().string.isRequired,sharedLink:s().string.isRequired,className:s().string,copyToClipboardLabel:s().string};const y=p;function b(e){const{dataset:t}=e;return{labels:{mainLabel:t.mainLabel||"Share this",onCopy:t.onCopyLabel||"Link copied"},SharingSubject:t.sharingSubject||"Sharing Link",SharingTextBody:t.sharingBody||""}}export{m as CopyButton,y as default,b as fromElement};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-01T16:47:31.865Z
3
+ * Compiled on: 2026-09-09T07:00:30.610Z
4
4
  */
5
5
  /*! For license information please see ShowMore.js.LICENSE.txt */
6
- import{default as e,useEffect as t}from"react";var o={2694(e,t,o){var r=o(6925);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,t,o,a,s,n){if(n!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:a};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var o=Symbol.for("react.transitional.element");function r(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:o,type:e,key:a,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},4848(e,t,o){e.exports=o(9698)}};const r={};function a(e){const t=r[e];if(void 0!==t)return t.exports;const s=r[e]={exports:{}};return o[e](s,s.exports,a),s.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],s=t[o++];a.o(e,r)?0===s&&o++:0===s?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:s})}else for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=a(5556),n=a.n(s);function l(e){(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(t=>{if(!e&&t.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(t.dataset.mgShowMoreInitialized)return;t.dataset.mgShowMoreInitialized="true",t.dataset.dataVfGoogleAnalyticsLabel="Show more: "+t.dataset.mgShowMoreLabelCollapsed||0;const o=t.dataset.mgShowMoreTarget||".mg-show-more--container",r=document.querySelector(o);r?(t.addEventListener("click",e=>{e.preventDefault(),r.classList.toggle("mg-show-more--collapsed"),t.textContent=r.classList.contains("mg-show-more--collapsed")?t.dataset.mgShowMoreLabelCollapsed||"Show more":t.dataset.mgShowMoreLabelOpen||"Show less",r.classList.contains("mg-show-more--collapsed")?t.classList.remove("mg-show-more--button--open"):t.classList.add("mg-show-more--button--open")}),r.addEventListener("click",()=>{r.classList.contains("mg-show-more--collapsed")&&t.click()}),t.click()):console.warn(`[mg-show-more] Target not found: "${o}"`)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>l(),!1):l();var i=a(4848);const c=[];function p({data:o=c}){return t(()=>{l()},[]),(0,i.jsxs)(e.Fragment,{children:[" ",o.map((t,o)=>(0,i.jsxs)(e.Fragment,{children:[(0,i.jsx)("div",{className:t.collapsable_wrapper_class,children:t.collapsable_text}),(0,i.jsx)("a",{href:"#",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-target":`.${t.collapsable_wrapper_class}`,"data-mg-show-more-label-open":"Show less themes","data-mg-show-more-label-collapsed":"Show more themes",children:t.button_text})]},o))]})}p.propTypes={data:n().arrayOf(n().shape({button_text:n().string.isRequired,collapsable_wrapper_class:n().string.isRequired,collapsable_text:n().string.isRequired})).isRequired};const m=p;export{p as ShowMore,m as default};
6
+ import{default as e,useEffect as t}from"react";var o={7261(e,t,o){var r=o(654);function a(){}function s(){}s.resetWarningCache=a,e.exports=function(){function e(e,t,o,a,s,n){if(n!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:a};return o.PropTypes=o,o}},8433(e,t,o){e.exports=o(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,t){var o=Symbol.for("react.transitional.element");function r(e,t,r){var a=null;if(void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),"key"in t)for(var s in r={},t)"key"!==s&&(r[s]=t[s]);else r=t;return t=r.ref,{$$typeof:o,type:e,key:a,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},2783(e,t,o){e.exports=o(9755)}};const r={};function a(e){const t=r[e];if(void 0!==t)return t.exports;const s=r[e]={exports:{}};return o[e](s,s.exports,a),s.exports}a.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var r=t[o++],s=t[o++];a.o(e,r)?0===s&&o++:0===s?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:s})}else for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=a(8433),n=a.n(s);function l(e){(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(t=>{if(!e&&t.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(t.dataset.mgShowMoreInitialized)return;t.dataset.mgShowMoreInitialized="true",t.dataset.dataVfGoogleAnalyticsLabel="Show more: "+t.dataset.mgShowMoreLabelCollapsed||0;const o=t.dataset.mgShowMoreTarget||".mg-show-more--container",r=document.querySelector(o);r?(t.addEventListener("click",e=>{e.preventDefault(),r.classList.toggle("mg-show-more--collapsed"),t.textContent=r.classList.contains("mg-show-more--collapsed")?t.dataset.mgShowMoreLabelCollapsed||"Show more":t.dataset.mgShowMoreLabelOpen||"Show less",r.classList.contains("mg-show-more--collapsed")?t.classList.remove("mg-show-more--button--open"):t.classList.add("mg-show-more--button--open")}),r.addEventListener("click",()=>{r.classList.contains("mg-show-more--collapsed")&&t.click()}),t.click()):console.warn(`[mg-show-more] Target not found: "${o}"`)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>l(),!1):l();var i=a(2783);const c=[];function p({data:o=c}){return t(()=>{l()},[]),(0,i.jsxs)(e.Fragment,{children:[" ",o.map((t,o)=>(0,i.jsxs)(e.Fragment,{children:[(0,i.jsx)("div",{className:t.collapsable_wrapper_class,children:t.collapsable_text}),(0,i.jsx)("a",{href:"#",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-target":`.${t.collapsable_wrapper_class}`,"data-mg-show-more-label-open":"Show less themes","data-mg-show-more-label-collapsed":"Show more themes",children:t.button_text})]},o))]})}p.propTypes={data:n().arrayOf(n().shape({button_text:n().string.isRequired,collapsable_wrapper_class:n().string.isRequired,collapsable_text:n().string.isRequired})).isRequired};const m=p;export{p as ShowMore,m as default};
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-09-01T16:47:31.865Z
3
+ * Compiled on: 2026-09-09T07:00:30.610Z
4
4
  */
5
5
  /*! For license information please see StatsCard.js.LICENSE.txt */
6
- import"react";var e={2694(e,t,n){var r=n(6925);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},5556(e,t,n){e.exports=n(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},4848(e,t,n){e.exports=n(9698)}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],a=t[r++];n.o(e,o)?0===a&&r++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(5556),o=n.n(r),a=n(4848);const i=({type:e=2,children:t,className:n,tabIndex:r,...o})=>{const i=`h${Math.min(Math.max(parseInt(e,10)||2,1),6)}`;return(0,a.jsx)(i,{className:n,tabIndex:r,...o,children:t})};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const S=H(Array.prototype.forEach),N=H(Array.prototype.lastIndexOf),E=H(Array.prototype.pop),_=H(Array.prototype.push),A=H(Array.prototype.splice),v=Array.isArray,O=H(String.prototype.toLowerCase),w=H(String.prototype.toString),x=H(String.prototype.match),k=H(String.prototype.replace),R=H(String.prototype.indexOf),I=H(String.prototype.trim),D=H(Number.prototype.toString),C=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),P=H(Object.prototype.hasOwnProperty),z=H(Object.prototype.toString),U=H(RegExp.prototype.test),j=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(F,t)});var F;function H(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(u&&u(e,null),!v(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(f(t)||(t[r]=e),o=e)}e[o]=!0}return e}function W(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}function G(e){const t=g(null);for(const r of c(e)){var n=s(r,2);const o=n[0],a=n[1];P(e,o)&&(v(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=G(a):t[o]=a)}return t}function Y(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=m(e)}return function(){return null}}const $=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),te=d(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),se=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),me=h(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=function(){return"undefined"==typeof window?null:window},be=function(e,t,n,r){return P(e,t)&&v(e[t])?B(r.base?G(r.base):{},e[t],r.transform):n};var Te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,s=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,p=s.prototype,y=Y(p,"cloneNode"),b=Y(p,"remove"),T=Y(p,"nextSibling"),F=Y(p,"childNodes"),H=Y(p,"parentNode"),W=Y(p,"shadowRoot"),Te=Y(p,"attributes"),Se=l&&l.prototype?Y(l.prototype,"nodeType"):null,Ne=l&&l.prototype?Y(l.prototype,"nodeName"):null;if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Ee,_e,Ae="",ve=!1,Oe=0;const we=function(){if(Oe>0)throw j('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},xe=function(e){we(),Oe++;try{return Ee.createHTML(e)}finally{Oe--}},ke=r,Re=ke.implementation,Ie=ke.createNodeIterator,De=ke.createDocumentFragment,Ce=ke.getElementsByTagName,Le=o.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof H&&Re&&void 0!==Re.createHTMLDocument;const Pe=re,ze=oe,Ue=ae,je=ie,Fe=le,He=ce,Be=ue,We=me;let Ge=se,Ye=null;const $e=B({},[...$,...q,...X,...V,...J]);let qe=null;const Xe=B({},[...Q,...ee,...te,...ne]);let Ke=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ve=null,Ze=null;const Je=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,rt=!1,ot=!0,at=!1,it=!1,lt=null,st=null,ct=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Nt=null;const Et=B({},["audio","video","img","source","image","track"]);let _t=null;const At=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let xt=wt,kt=!1,Rt=null;const It=B({},[vt,Ot,wt],w),Dt=d(["mi","mo","mn","ms","mtext"]);let Ct=B({},Dt);const Lt=d(["annotation-xml"]);let Mt=B({},Lt);const Pt=B({},["title","style","font","a","script"]);let zt=null;const Ut=["application/xhtml+xml","text/html"];let jt=null,Ft=null;const Ht=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ft&&Ft===e)return;e&&"object"==typeof e||(e={}),e=G(e),zt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,jt="application/xhtml+xml"===zt?w:O,Ye=be(e,"ALLOWED_TAGS",$e,{transform:jt}),qe=be(e,"ALLOWED_ATTR",Xe,{transform:jt}),Rt=be(e,"ALLOWED_NAMESPACES",It,{transform:w}),_t=be(e,"ADD_URI_SAFE_ATTR",At,{transform:jt,base:At}),Nt=be(e,"ADD_DATA_URI_TAGS",Et,{transform:jt,base:Et}),Tt=be(e,"FORBID_CONTENTS",St,{transform:jt}),Ve=be(e,"FORBID_TAGS",G({}),{transform:jt}),Ze=be(e,"FORBID_ATTR",G({}),{transform:jt}),bt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,ot=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,ct=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:se,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,Ct=P(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?G(e.MATHML_TEXT_INTEGRATION_POINTS):B({},Dt),Mt=P(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?G(e.HTML_INTEGRATION_POINTS):B({},Lt);const t=P(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?G(e.CUSTOM_ELEMENT_HANDLING):g(null);if(Ke=g(null),P(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ke.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ke.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(Ke),rt&&(et=!1),ft&&(ut=!0),bt&&(Ye=B({},J),qe=g(null),!0===bt.html&&(B(Ye,$),B(qe,Q)),!0===bt.svg&&(B(Ye,q),B(qe,ee),B(qe,ne)),!0===bt.svgFilters&&(B(Ye,X),B(qe,ee),B(qe,ne)),!0===bt.mathMl&&(B(Ye,V),B(qe,te),B(qe,ne))),Je.tagCheck=null,Je.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ye===$e&&(Ye=G(Ye)),B(Ye,e.ADD_TAGS,jt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(qe===Xe&&(qe=G(qe)),B(qe,e.ADD_ATTR,jt))),P(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&B(_t,e.ADD_URI_SAFE_ATTR,jt),P(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.FORBID_CONTENTS,jt)),P(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&B(Ye,["html","head","body"]),Ye.table&&(B(Ye,["tbody"]),delete Ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ee;Ee=e.TRUSTED_TYPES_POLICY;try{Ae=xe("")}catch(e){throw Ee=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ee=void 0,Ae=""):(void 0===Ee&&(ve||(_e=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,a),ve=!0),Ee=_e),Ee&&"string"==typeof Ae&&(Ae=xe("")));d&&d(e),Ft=e},Gt=B({},[...q,...X,...K]),Yt=B({},[...V,...Z]),$t=function(e){_(n.removed,{element:e});try{H(e).removeChild(e)}catch(t){if(b(e),!H(e))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},qt=function(e){Vt(e);const t=F(e);if(t){const e=[];S(t,t=>{_(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Xt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{$t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Kt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!qe[jt(o)])try{e.removeAttribute(o)}catch(e){}}},Vt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(ct)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ee?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=Re.createDocument(xt,"template",null);try{t.documentElement.innerHTML=kt?Ae:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),xt===wt?Ce.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return Ie.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=k(e,Pe," "),e=k(e,ze," "),k(e,Ue," ")},en=function(e){var t;e.normalize();const n=Ie.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=Qt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&S(o,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Ne?Ne(e):null;return"string"==typeof t&&"form"===jt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==F(e))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function on(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,Ft)})}const an=function(e,t){if(on(Me.beforeSanitizeElements,e,null),e!==t&&null===H(e))return!0;if(tn(e))return $t(e),!0;const r=jt(Ne?Ne(e):e.nodeName);if(on(Me.uponSanitizeElement,e,{tagName:r,allowedTags:Ye}),e!==t&&null===H(e))return!0;if(function(e,t){return!!(ot&&e.hasChildNodes()&&!rn(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!U(de,e.data))}(e,r))return $t(e),!0;if(Ve[r]||!(Je.tagCheck instanceof Function&&Je.tagCheck(r))&&!Ye[r]){const t=function(e,t){if(!Ve[t]&&cn(t)){if(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,t))return!1;if(Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=H(e),n=F(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=yt?n[r]:y(n[r],!0);t.insertBefore(o,T(e))}}return $t(e),!0}(e,r);return!1===t&&on(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=H(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Rt[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===wt?"svg"===e:t.namespaceURI===vt?"svg"===e&&("annotation-xml"===n||Ct[n]):Boolean(Gt[e])}(n,t,r):e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===wt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===wt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===vt&&!Ct[n])&&!Yt[e]&&(Pt[e]||!Gt[e])}(n,t,r):!("application/xhtml+xml"!==zt||!Rt[e.namespaceURI]))}(e))return $t(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(he,e.innerHTML))return $t(e),!0;if(rt&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)}return on(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(ot&&"patchsrc"===t)return!1;if(ot&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=qe[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&U(je,t));else if(Qe&&U(Fe,t));else if(o){if(_t[t]);else if(U(Ge,k(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!Nt[e])if(tt&&!U(He,k(n,Be,"")));else if(n)return!1}else if(!(cn(e)&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,e)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(e))&&(Ke.attributeNameCheck instanceof RegExp&&U(Ke.attributeNameCheck,t)||Ke.attributeNameCheck instanceof Function&&Ke.attributeNameCheck(t,e))||"is"===t&&Ke.allowCustomizedBuiltInElements&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,n)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(n))))return!1;return!0},sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cn=function(e){return!sn[O(e)]&&U(We,e)},un=function(e,t,n,r){if(Ee&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(r);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ee.createScriptURL(e)}finally{Oe--}}(r)}return r},fn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),tn(e)?$t(e):E(n.removed)}catch(n){Xt(t,e)}},mn=function(e){on(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0};let r=t.length;const o=jt(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,s=a.value,c=jt(i),u=s;let f="value"===i?u:I(u);n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,on(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==c&&"name"!==c||0===R(f,ht)||(Xt(i,e),f=ht+f),ot&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===c&&x(f,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&U(ge,f)?Xt(i,e):(rt&&(f=Qt(f)),ln(o,c,f)?(f=un(o,c,l,f),f!==u&&fn(e,i,l,f)):Xt(i,e)))}on(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(on(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(on(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Se?Se(t):t.nodeType)){const e=W(t);nn(e)&&(dn(e),pn(e))}on(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=F(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ne?Ne(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(r){const e=W(n);nn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return D(e);case"boolean":return C(e);case"bigint":return L?L(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return z(e);case"function":case"object":{if(null===e)return z(e);const t=e,n=Y(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:z(e)}return z(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;it?(Ye=lt,qe=st):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=G(Ye)),Me.uponSanitizeAttribute.length>0&&(qe=G(qe)),n.removed=[];const s=yt&&"string"!=typeof e&&rn(e);if(s){!function(e){if(!ot)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&U(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=jt(Ne?Ne(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=F(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne?Ne(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ve[n])throw qt(e),j("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw qt(e),j("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw qt(e),t}}else if(rn(e))r=Zt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),dn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ee&&mt?xe(e):e;if(r=Zt(e),!r)return ut?null:mt?Ae:""}r&&ct&&$t(r.firstChild);const c=s?e:r,u=Jt(c);try{for(;i=u.nextNode();)an(i,c),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw s&&(qt(e),S(n.removed,e=>{e.element&&Vt(e.element)})),t}if(s)return S(n.removed,e=>{e.element&&Vt(e.element)}),rt&&en(e),e;if(ut){if(rt&&en(r),ft)for(l=De.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(qe.shadowroot||qe.shadowrootmode)&&(l=Le.call(o,l,!0)),l}let f=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(fe,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),rt&&(f=Qt(f)),Ee&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,st=qe},n.clearConfig=function(){Ft=null,it=!1,lt=null,st=null,Ee=_e,Ae=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const r=jt(e),o=jt(t);return ln(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Me,e)&&_(Me[e],t)},n.removeHook=function(e,t){if(P(Me,e)){if(void 0!==t){const n=N(Me[e],t);return-1===n?void 0:A(Me[e],n,1)[0]}return E(Me[e])}},n.removeHooks=function(e){P(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Se({icon:e,label:t,value:n,bottomLabel:r,summaryText:o,link:i,className:l="",...s}){const c="mg-stats-card-item",u=["mg-card",c,i&&`${c}--linked`,l].filter(Boolean).join(" "),f=i?(0,a.jsx)("a",{href:i,className:`${c}__value`,children:n}):(0,a.jsx)("data",{className:`${c}__value`,value:n,children:n});return(0,a.jsxs)("article",{className:u,...s,children:[e&&(0,a.jsx)("span",{className:`${c}__icon`,"aria-hidden":"true",children:(0,a.jsx)("span",{className:e})}),t&&(0,a.jsx)("span",{className:`${c}__label`,children:t}),f,r&&(0,a.jsx)("strong",{className:`${c}__bottom-label`,children:r}),o&&(0,a.jsx)("p",{className:`${c}__summary`,dangerouslySetInnerHTML:{__html:Te.sanitize(o)}})]})}Se.propTypes={icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string,className:o().string};const Ne=[];function Ee({title:e,stats:t=Ne,variant:n="default",className:r="",...o}){const l="mg-stats-card",s=t.length;let c="mg-grid";s>0&&s<=12?c=`mg-grid mg-grid__col-${s}`:s>12&&(c="mg-grid mg-grid--auto-fit");const u=[l,n&&`${l}--${n}`,r].filter(Boolean).join(" ");return(0,a.jsxs)("section",{className:u,"aria-label":e||"Statistics",...o,children:[e&&(0,a.jsx)(i,{type:"2",children:e}),(0,a.jsx)("div",{className:c,children:t.map((e,t)=>(0,a.jsx)(Se,{icon:e.icon,label:e.label,value:e.value,bottomLabel:e.bottomLabel,summaryText:e.summaryText,link:e.link},t))})]})}Ee.propTypes={title:o().string,stats:o().arrayOf(o().shape({icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string})),variant:o().oneOf(["default","compact","highlighted","negative"]),className:o().string};const _e=Ee;function Ae(e){const{dataset:t}=e,n={title:t.title||void 0,variant:t.variant||"default",className:t.className||""};try{n.stats=t.stats?JSON.parse(t.stats):[]}catch{n.stats=[]}return n}export{Ee as StatsCard,_e as default,Ae as fromElement};
6
+ import"react";var e={7261(e,t,n){var r=n(654);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:o};return n.PropTypes=n,n}},8433(e,t,n){e.exports=n(7261)()},654(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9755(e,t){var n=Symbol.for("react.transitional.element");function r(e,t,r){var o=null;if(void 0!==r&&(o=""+r),void 0!==t.key&&(o=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:o,ref:void 0!==t?t:null,props:r}}Symbol.for("react.fragment"),t.jsx=r,t.jsxs=r},2783(e,t,n){e.exports=n(9755)}};const t={};function n(r){const o=t[r];if(void 0!==o)return o.exports;const a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{if(Array.isArray(t))for(var r=0;r<t.length;){var o=t[r++],a=t[r++];n.o(e,o)?0===a&&r++:0===a?Object.defineProperty(e,o,{enumerable:!0,value:t[r++]}):Object.defineProperty(e,o,{enumerable:!0,get:a})}else for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r=n(8433),o=n.n(r),a=n(2783);const i=({type:e=2,children:t,className:n,tabIndex:r,...o})=>{const i=`h${Math.min(Math.max(parseInt(e,10)||2,1),6)}`;return(0,a.jsx)(i,{className:n,tabIndex:r,...o,children:t})};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const c=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const S=H(Array.prototype.forEach),N=H(Array.prototype.lastIndexOf),E=H(Array.prototype.pop),_=H(Array.prototype.push),A=H(Array.prototype.splice),v=Array.isArray,O=H(String.prototype.toLowerCase),w=H(String.prototype.toString),x=H(String.prototype.match),k=H(String.prototype.replace),R=H(String.prototype.indexOf),I=H(String.prototype.trim),D=H(Number.prototype.toString),C=H(Boolean.prototype.toString),L="undefined"==typeof BigInt?null:H(BigInt.prototype.toString),M="undefined"==typeof Symbol?null:H(Symbol.prototype.toString),P=H(Object.prototype.hasOwnProperty),z=H(Object.prototype.toString),U=H(RegExp.prototype.test),j=(F=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T(F,t)});var F;function H(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return b(e,t,r)}}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;if(u&&u(e,null),!v(t))return e;let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(f(t)||(t[r]=e),o=e)}e[o]=!0}return e}function W(e){for(let t=0;t<e.length;t++)P(e,t)||(e[t]=null);return e}function G(e){const t=g(null);for(const r of c(e)){var n=s(r,2);const o=n[0],a=n[1];P(e,o)&&(v(a)?t[o]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[o]=G(a):t[o]=a)}return t}function Y(e,t){for(;null!==e;){const n=p(e,t);if(n){if(n.get)return H(n.get);if("function"==typeof n.value)return H(n.value)}e=m(e)}return function(){return null}}const $=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),X=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),V=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ee=d(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),te=d(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ne=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),re=h(/{{[\w\W]*|^[\w\W]*}}/g),oe=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),se=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ce=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),me=h(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=function(){return"undefined"==typeof window?null:window},be=function(e,t,n,r){return P(e,t)&&v(e[t])?B(r.base?G(r.base):{},e[t],r.transform):n};var Te=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ye();const n=t=>e(t);if(n.version="3.4.12",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,s=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,p=s.prototype,y=Y(p,"cloneNode"),b=Y(p,"remove"),T=Y(p,"nextSibling"),F=Y(p,"childNodes"),H=Y(p,"parentNode"),W=Y(p,"shadowRoot"),Te=Y(p,"attributes"),Se=l&&l.prototype?Y(l.prototype,"nodeType"):null,Ne=l&&l.prototype?Y(l.prototype,"nodeName"):null;if("function"==typeof i){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let Ee,_e,Ae="",ve=!1,Oe=0;const we=function(){if(Oe>0)throw j('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},xe=function(e){we(),Oe++;try{return Ee.createHTML(e)}finally{Oe--}},ke=r,Re=ke.implementation,Ie=ke.createNodeIterator,De=ke.createDocumentFragment,Ce=ke.getElementsByTagName,Le=o.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof c&&"function"==typeof H&&Re&&void 0!==Re.createHTMLDocument;const Pe=re,ze=oe,Ue=ae,je=ie,Fe=le,He=ce,Be=ue,We=me;let Ge=se,Ye=null;const $e=B({},[...$,...q,...X,...V,...J]);let qe=null;const Xe=B({},[...Q,...ee,...te,...ne]);let Ke=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ve=null,Ze=null;const Je=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,rt=!1,ot=!0,at=!1,it=!1,lt=null,st=null,ct=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const St=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Nt=null;const Et=B({},["audio","video","img","source","image","track"]);let _t=null;const At=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),vt="http://www.w3.org/1998/Math/MathML",Ot="http://www.w3.org/2000/svg",wt="http://www.w3.org/1999/xhtml";let xt=wt,kt=!1,Rt=null;const It=B({},[vt,Ot,wt],w),Dt=d(["mi","mo","mn","ms","mtext"]);let Ct=B({},Dt);const Lt=d(["annotation-xml"]);let Mt=B({},Lt);const Pt=B({},["title","style","font","a","script"]);let zt=null;const Ut=["application/xhtml+xml","text/html"];let jt=null,Ft=null;const Ht=r.createElement("form"),Bt=function(e){return e instanceof RegExp||e instanceof Function},Wt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ft&&Ft===e)return;e&&"object"==typeof e||(e={}),e=G(e),zt=-1===Ut.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,jt="application/xhtml+xml"===zt?w:O,Ye=be(e,"ALLOWED_TAGS",$e,{transform:jt}),qe=be(e,"ALLOWED_ATTR",Xe,{transform:jt}),Rt=be(e,"ALLOWED_NAMESPACES",It,{transform:w}),_t=be(e,"ADD_URI_SAFE_ATTR",At,{transform:jt,base:At}),Nt=be(e,"ADD_DATA_URI_TAGS",Et,{transform:jt,base:Et}),Tt=be(e,"FORBID_CONTENTS",St,{transform:jt}),Ve=be(e,"FORBID_TAGS",G({}),{transform:jt}),Ze=be(e,"FORBID_ATTR",G({}),{transform:jt}),bt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,rt=e.SAFE_FOR_TEMPLATES||!1,ot=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,ct=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:se,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,Ct=P(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&"object"==typeof e.MATHML_TEXT_INTEGRATION_POINTS?G(e.MATHML_TEXT_INTEGRATION_POINTS):B({},Dt),Mt=P(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&"object"==typeof e.HTML_INTEGRATION_POINTS?G(e.HTML_INTEGRATION_POINTS):B({},Lt);const t=P(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&"object"==typeof e.CUSTOM_ELEMENT_HANDLING?G(e.CUSTOM_ELEMENT_HANDLING):g(null);if(Ke=g(null),P(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Ke.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Ke.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Ke.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(Ke),rt&&(et=!1),ft&&(ut=!0),bt&&(Ye=B({},J),qe=g(null),!0===bt.html&&(B(Ye,$),B(qe,Q)),!0===bt.svg&&(B(Ye,q),B(qe,ee),B(qe,ne)),!0===bt.svgFilters&&(B(Ye,X),B(qe,ee),B(qe,ne)),!0===bt.mathMl&&(B(Ye,V),B(qe,te),B(qe,ne))),Je.tagCheck=null,Je.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ye===$e&&(Ye=G(Ye)),B(Ye,e.ADD_TAGS,jt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&(qe===Xe&&(qe=G(qe)),B(qe,e.ADD_ATTR,jt))),P(e,"ADD_URI_SAFE_ATTR")&&v(e.ADD_URI_SAFE_ATTR)&&B(_t,e.ADD_URI_SAFE_ATTR,jt),P(e,"FORBID_CONTENTS")&&v(e.FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.FORBID_CONTENTS,jt)),P(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Tt===St&&(Tt=G(Tt)),B(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&B(Ye,["html","head","body"]),Ye.table&&(B(Ye,["tbody"]),delete Ve.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ee;Ee=e.TRUSTED_TYPES_POLICY;try{Ae=xe("")}catch(e){throw Ee=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ee=void 0,Ae=""):(void 0===Ee&&(ve||(_e=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,a),ve=!0),Ee=_e),Ee&&"string"==typeof Ae&&(Ae=xe("")));d&&d(e),Ft=e},Gt=B({},[...q,...X,...K]),Yt=B({},[...V,...Z]),$t=function(e){_(n.removed,{element:e});try{H(e).removeChild(e)}catch(t){if(b(e),!H(e))throw j("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},qt=function(e){Vt(e);const t=F(e);if(t){const e=[];S(t,t=>{_(e,t)}),S(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const r=n[t],o=r&&r.name;if("string"==typeof o)try{e.removeAttribute(o)}catch(e){}}},Xt=function(e,t){try{_(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ut||ft)try{$t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Kt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const r=t[n],o=r&&r.name;if("string"==typeof o&&!qe[jt(o)])try{e.removeAttribute(o)}catch(e){}}},Vt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(ct)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=Ee?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(o,zt)}catch(e){}if(!t||!t.documentElement){t=Re.createDocument(xt,"template",null);try{t.documentElement.innerHTML=kt?Ae:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),xt===wt?Ce.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return Ie.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Qt=function(e){return e=k(e,Pe," "),e=k(e,ze," "),k(e,Ue," ")},en=function(e){var t;e.normalize();const n=Ie.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let r=n.nextNode();for(;r;)r.data=Qt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&S(o,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Ne?Ne(e):null;return"string"==typeof t&&"form"===jt(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==Te(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==Se(e)||e.childNodes!==F(e))},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},rn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function on(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,Ft)})}const an=function(e,t){if(on(Me.beforeSanitizeElements,e,null),e!==t&&null===H(e))return!0;if(tn(e))return $t(e),!0;const r=jt(Ne?Ne(e):e.nodeName);if(on(Me.uponSanitizeElement,e,{tagName:r,allowedTags:Ye}),e!==t&&null===H(e))return!0;if(function(e,t){return!!(ot&&e.hasChildNodes()&&!rn(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!rn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!U(de,e.data))}(e,r))return $t(e),!0;if(Ve[r]||!(Je.tagCheck instanceof Function&&Je.tagCheck(r))&&!Ye[r]){const t=function(e,t){if(!Ve[t]&&cn(t)){if(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,t))return!1;if(Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=H(e),n=F(e);if(n&&t)for(let r=n.length-1;r>=0;--r){const o=yt?n[r]:y(n[r],!0);t.insertBefore(o,T(e))}}return $t(e),!0}(e,r);return!1===t&&on(Me.afterSanitizeElements,e,null),t}if(1===(Se?Se(e):e.nodeType)&&!function(e){let t=H(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=O(e.tagName),r=O(t.tagName);return!!Rt[e.namespaceURI]&&(e.namespaceURI===Ot?function(e,t,n){return t.namespaceURI===wt?"svg"===e:t.namespaceURI===vt?"svg"===e&&("annotation-xml"===n||Ct[n]):Boolean(Gt[e])}(n,t,r):e.namespaceURI===vt?function(e,t,n){return t.namespaceURI===wt?"math"===e:t.namespaceURI===Ot?"math"===e&&Mt[n]:Boolean(Yt[e])}(n,t,r):e.namespaceURI===wt?function(e,t,n){return!(t.namespaceURI===Ot&&!Mt[n])&&!(t.namespaceURI===vt&&!Ct[n])&&!Yt[e]&&(Pt[e]||!Gt[e])}(n,t,r):!("application/xhtml+xml"!==zt||!Rt[e.namespaceURI]))}(e))return $t(e),!0;if(("noscript"===r||"noembed"===r||"noframes"===r)&&U(he,e.innerHTML))return $t(e),!0;if(rt&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)}return on(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(ot&&"patchsrc"===t)return!1;if(ot&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=qe[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&U(je,t));else if(Qe&&U(Fe,t));else if(o){if(_t[t]);else if(U(Ge,k(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!Nt[e])if(tt&&!U(He,k(n,Be,"")));else if(n)return!1}else if(!(cn(e)&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,e)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(e))&&(Ke.attributeNameCheck instanceof RegExp&&U(Ke.attributeNameCheck,t)||Ke.attributeNameCheck instanceof Function&&Ke.attributeNameCheck(t,e))||"is"===t&&Ke.allowCustomizedBuiltInElements&&(Ke.tagNameCheck instanceof RegExp&&U(Ke.tagNameCheck,n)||Ke.tagNameCheck instanceof Function&&Ke.tagNameCheck(n))))return!1;return!0},sn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),cn=function(e){return!sn[O(e)]&&U(We,e)},un=function(e,t,n,r){if(Ee&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(r);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ee.createScriptURL(e)}finally{Oe--}}(r)}return r},fn=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),tn(e)?$t(e):E(n.removed)}catch(n){Xt(t,e)}},mn=function(e){on(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:qe,forceKeepAttr:void 0};let r=t.length;const o=jt(e.nodeName);for(;r--;){const a=t[r],i=a.name,l=a.namespaceURI,s=a.value,c=jt(i),u=s;let f="value"===i?u:I(u);n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,on(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==c&&"name"!==c||0===R(f,ht)||(Xt(i,e),f=ht+f),ot&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===c&&x(f,"href")?Xt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&U(ge,f)?Xt(i,e):(rt&&(f=Qt(f)),ln(o,c,f)?(f=un(o,c,l,f),f!==u&&fn(e,i,l,f)):Xt(i,e)))}on(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(on(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(on(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Se?Se(t):t.nodeType)){const e=W(t);nn(e)&&(dn(e),pn(e))}on(Me.afterSanitizeShadowDOM,e,null)},dn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){pn(e.shadow);continue}const n=e.node,r=1===(Se?Se(n):n.nodeType),o=F(n);if(o)for(let e=o.length-1;e>=0;--e)t.push({node:o[e],shadow:null});if(r){const e=Ne?Ne(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(r){const e=W(n);nn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!rn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return D(e);case"boolean":return C(e);case"bigint":return L?L(e):"0";case"symbol":return M?M(e):"Symbol()";case"undefined":default:return z(e);case"function":case"object":{if(null===e)return z(e);const t=e,n=Y(t,"toString");if("function"==typeof n){const e=n(t);return"string"==typeof e?e:z(e)}return z(e)}}}(e)))throw j("dirty is not a string, aborting");if(!n.isSupported)return e;it?(Ye=lt,qe=st):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=G(Ye)),Me.uponSanitizeAttribute.length>0&&(qe=G(qe)),n.removed=[];const s=yt&&"string"!=typeof e&&rn(e);if(s){!function(e){if(!ot)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Se?Se(e):e.nodeType;if(7===n||8===n&&U(de,e.data)){try{b(e)}catch(e){}continue}if(1===n){const t=e,n=jt(Ne?Ne(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&"label"!==n&&"output"!==n&&t.removeAttribute("for")}catch(e){}}const r=F(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}}(e);const t=Ne?Ne(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ve[n])throw qt(e),j("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw qt(e),j("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw qt(e),t}}else if(rn(e))r=Zt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),dn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ee&&mt?xe(e):e;if(r=Zt(e),!r)return ut?null:mt?Ae:""}r&&ct&&$t(r.firstChild);const c=s?e:r,u=Jt(c);try{for(;i=u.nextNode();)an(i,c),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw s&&(qt(e),S(n.removed,e=>{e.element&&Vt(e.element)})),t}if(s)return S(n.removed,e=>{e.element&&Vt(e.element)}),rt&&en(e),e;if(ut){if(rt&&en(r),ft)for(l=De.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(qe.shadowroot||qe.shadowrootmode)&&(l=Le.call(o,l,!0)),l}let f=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(fe,r.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+f),rt&&(f=Qt(f)),Ee&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,st=qe},n.clearConfig=function(){Ft=null,it=!1,lt=null,st=null,Ee=_e,Ae=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const r=jt(e),o=jt(t);return ln(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&P(Me,e)&&_(Me[e],t)},n.removeHook=function(e,t){if(P(Me,e)){if(void 0!==t){const n=N(Me[e],t);return-1===n?void 0:A(Me[e],n,1)[0]}return E(Me[e])}},n.removeHooks=function(e){P(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Se({icon:e,label:t,value:n,bottomLabel:r,summaryText:o,link:i,className:l="",...s}){const c="mg-stats-card-item",u=["mg-card",c,i&&`${c}--linked`,l].filter(Boolean).join(" "),f=i?(0,a.jsx)("a",{href:i,className:`${c}__value`,children:n}):(0,a.jsx)("data",{className:`${c}__value`,value:n,children:n});return(0,a.jsxs)("article",{className:u,...s,children:[e&&(0,a.jsx)("span",{className:`${c}__icon`,"aria-hidden":"true",children:(0,a.jsx)("span",{className:e})}),t&&(0,a.jsx)("span",{className:`${c}__label`,children:t}),f,r&&(0,a.jsx)("strong",{className:`${c}__bottom-label`,children:r}),o&&(0,a.jsx)("p",{className:`${c}__summary`,dangerouslySetInnerHTML:{__html:Te.sanitize(o)}})]})}Se.propTypes={icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string,className:o().string};const Ne=[];function Ee({title:e,stats:t=Ne,variant:n="default",className:r="",...o}){const l="mg-stats-card",s=t.length;let c="mg-grid";s>0&&s<=12?c=`mg-grid mg-grid__col-${s}`:s>12&&(c="mg-grid mg-grid--auto-fit");const u=[l,n&&`${l}--${n}`,r].filter(Boolean).join(" ");return(0,a.jsxs)("section",{className:u,"aria-label":e||"Statistics",...o,children:[e&&(0,a.jsx)(i,{type:"2",children:e}),(0,a.jsx)("div",{className:c,children:t.map((e,t)=>(0,a.jsx)(Se,{icon:e.icon,label:e.label,value:e.value,bottomLabel:e.bottomLabel,summaryText:e.summaryText,link:e.link},t))})]})}Ee.propTypes={title:o().string,stats:o().arrayOf(o().shape({icon:o().string,label:o().string,value:o().oneOfType([o().string,o().number]).isRequired,bottomLabel:o().string,summaryText:o().string,link:o().string})),variant:o().oneOf(["default","compact","highlighted","negative"]),className:o().string};const _e=Ee;function Ae(e){const{dataset:t}=e,n={title:t.title||void 0,variant:t.variant||"default",className:t.className||""};try{n.stats=t.stats?JSON.parse(t.stats):[]}catch{n.stats=[]}return n}export{Ee as StatsCard,_e as default,Ae as fromElement};