@undrr/undrr-mangrove 1.8.1 → 1.8.2

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 (86) hide show
  1. package/README.md +4 -4
  2. package/components/BookCard.js +2 -2
  3. package/components/BookCard.js.LICENSE.txt +2 -2
  4. package/components/Breadcrumbs.js +2 -3
  5. package/components/Checkbox.js +2 -3
  6. package/components/Chips.js +2 -3
  7. package/components/CtaButton.js +2 -3
  8. package/components/EmbedContainer.js +2 -3
  9. package/components/Footer.js +2 -2
  10. package/components/Footer.js.LICENSE.txt +1 -1
  11. package/components/FormErrorSummary.js +2 -3
  12. package/components/FormGroup.js +2 -3
  13. package/components/FullWidth.js +2 -3
  14. package/components/Gallery.js +2 -2
  15. package/components/Gallery.js.LICENSE.txt +1 -1
  16. package/components/Hero.js +2 -2
  17. package/components/Hero.js.LICENSE.txt +1 -1
  18. package/components/HighlightBox.js +2 -3
  19. package/components/HorizontalBookCard.js +2 -2
  20. package/components/HorizontalBookCard.js.LICENSE.txt +2 -2
  21. package/components/HorizontalCard.js +2 -2
  22. package/components/HorizontalCard.js.LICENSE.txt +2 -2
  23. package/components/IconCard.js +2 -2
  24. package/components/IconCard.js.LICENSE.txt +2 -2
  25. package/components/Loader.js +2 -3
  26. package/components/MegaMenu.js +2 -2
  27. package/components/MegaMenu.js.LICENSE.txt +1 -1
  28. package/components/PageHeader.js +2 -3
  29. package/components/Pager.js +2 -2
  30. package/components/Pager.js.LICENSE.txt +1 -1
  31. package/components/QuoteHighlight.js +2 -3
  32. package/components/Radio.js +2 -3
  33. package/components/ScrollContainer.js +2 -3
  34. package/components/Select.js +2 -3
  35. package/components/ShareButtons.js +2 -2
  36. package/components/ShareButtons.js.LICENSE.txt +1 -1
  37. package/components/ShowMore.js +2 -3
  38. package/components/StatsCard.js +2 -2
  39. package/components/StatsCard.js.LICENSE.txt +1 -11
  40. package/components/SyndicationSearchWidget.js +2 -2
  41. package/components/SyndicationSearchWidget.js.LICENSE.txt +1 -1
  42. package/components/Tab.js +2 -3
  43. package/components/TextCta.js +2 -2
  44. package/components/TextCta.js.LICENSE.txt +1 -11
  45. package/components/TextInput.js +2 -3
  46. package/components/Textarea.js +2 -3
  47. package/components/VerticalCard.js +2 -2
  48. package/components/VerticalCard.js.LICENSE.txt +2 -2
  49. package/components/hydrate.js +1 -1
  50. package/css/style-delta.css +4 -4
  51. package/css/style-delta.css.map +1 -1
  52. package/css/style-gutenberg.css +2 -2
  53. package/css/style-gutenberg.css.map +1 -1
  54. package/css/style-irp-legacy.css +4 -4
  55. package/css/style-irp-legacy.css.map +1 -1
  56. package/css/style-irp.css +4 -4
  57. package/css/style-irp.css.map +1 -1
  58. package/css/style-legacy.css +5 -5
  59. package/css/style-legacy.css.map +1 -1
  60. package/css/style-mcr-legacy.css +4 -4
  61. package/css/style-mcr-legacy.css.map +1 -1
  62. package/css/style-mcr.css +4 -4
  63. package/css/style-mcr.css.map +1 -1
  64. package/css/style-preventionweb-legacy.css +4 -4
  65. package/css/style-preventionweb-legacy.css.map +1 -1
  66. package/css/style-preventionweb.css +4 -4
  67. package/css/style-preventionweb.css.map +1 -1
  68. package/css/style.css +5 -5
  69. package/css/style.css.map +1 -1
  70. package/error-pages/401.html +1 -1
  71. package/error-pages/403.html +1 -1
  72. package/error-pages/404.html +1 -1
  73. package/error-pages/429.html +1 -1
  74. package/error-pages/500.html +1 -1
  75. package/error-pages/502.html +1 -1
  76. package/error-pages/503.html +1 -1
  77. package/error-pages/504.html +1 -1
  78. package/error-pages/5xx.html +1 -1
  79. package/error-pages/challenge.html +1 -1
  80. package/error-pages/managed-challenge.html +1 -1
  81. package/package.json +1 -1
  82. package/scss/Atom/Icons/_icon-definitions.scss +2 -2
  83. package/scss/Atom/Layout/Grid/grid.scss +31 -0
  84. package/scss/Components/Cards/Card/card.scss +4 -3
  85. package/scss/Components/SyndicationSearchWidget/_deprecated-teaser-hide.scss +19 -0
  86. package/scss/Components/SyndicationSearchWidget/syndication-search-widget.scss +5 -15
@@ -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-07-06T14:31:03.210Z
3
+ * Compiled on: 2026-08-27T20:32:00.846Z
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)}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i=a(5556),s=a.n(i),l=a(7583);const c=JSON.parse('{"Mail":"mailto:?subject=[SHARING_TEXT_SUBJECT]&body=[SHARING_TEXT_BODY]","Facebook":"https://facebook.com/sharer/sharer.php?u=[SHARING_TEXT_BODY]","LinkedIn":"https://www.linkedin.com/sharing/share-offsite/?url=[SHARING_TEXT_BODY]","Twitter":"https://twitter.com/intent/tweet?text=[SHARING_TEXT_BODY]"}');var u=a(4848);const d="Check out this link: ",h="Sharing Link",g={mainLabel:"Share this",onCopy:"Copied",qrCodeTitle:"QR code",qrCodeDescription:"This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModal:"Close modal",copyImage:"Copy image",downloadImage:"Download image",closeMessage:"Close message",shareUsingDevice:"Share using your device",shareOnLinkedIn:"Share on LinkedIn",shareOnFacebook:"Share on Facebook",shareOnX:"Share on X",shareViaEmail:"Share via Email",generateQRCode:"Generate QR Code",copyToClipboard:"Copy to Clipboard"},f=({isOpen:r,onClose:o,qrCodeDataUrl:a,onCopy:i,onDownload:s,sharedLink:l,copiedLabel:c="Image copied",titleLabel:d="QR code",descriptionLabel:h="This QR code contains the link below. You can copy the image or add it to your printed or display materials.",closeModalLabel:g="Close modal",copyImageLabel:f="Copy image",downloadImageLabel:p="Download image",closeMessageLabel:m="Close message"})=>{const y=t(null),[b,w]=n(!1),C=t(r);return r!==C.current&&(C.current=r,r&&w(!1)),e(()=>{const e=e=>{"Escape"===e.key&&o()},t=e=>{y.current&&!y.current.contains(e.target)&&o()};return r&&(document.addEventListener("keydown",e),document.addEventListener("mousedown",t),document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",e),document.removeEventListener("mousedown",t),document.body.style.overflow="unset"}},[r,o]),r?(0,u.jsx)("div",{"data-vf-google-analytics-region":"share-qr-code",className:"mg-modal-overlay",style:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1e3},children:(0,u.jsxs)("div",{ref:y,className:"mg-modal",style:{backgroundColor:"white",borderRadius:"8px",padding:"24px",maxWidth:"500px",width:"90%",maxHeight:"90vh",boxShadow:"0 4px 20px rgba(0, 0, 0, 0.15)",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,u.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",flexShrink:0},children:[(0,u.jsx)("h3",{children:d}),(0,u.jsx)("button",{onClick:o,style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"4px",borderRadius:"4px",color:"#666"},"aria-label":g,children:"×"})]}),(0,u.jsx)("p",{children:h}),(0,u.jsx)("div",{style:{flex:1,overflowY:"auto",paddingRight:"8px"},children:a&&(0,u.jsxs)("div",{style:{marginBottom:"16px"},children:[(0,u.jsx)("img",{src:a,alt:"QR Code",style:{maxWidth:"100%",maxHeight:"220px",height:"auto"}}),(0,u.jsx)("div",{style:{textAlign:"left"},children:(0,u.jsx)("code",{className:"mg-code--block",children:(()=>{const e=new URL(l);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()})})]})}),(0,u.jsx)("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:b?`${c}`:""}),(0,u.jsxs)("div",{style:{marginTop:"16px",flexShrink:0,display:"flex",gap:"8px",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,u.jsxs)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[(0,u.jsx)("button",{onClick:async()=>{try{await i(),w(!0),setTimeout(()=>{w(!1)},2e3)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:b,children:b?c:f}),(0,u.jsx)("button",{onClick:s,className:"mg-button mg-button-secondary",children:p})]}),(0,u.jsx)("button",{onClick:o,className:"mg-button mg-button-secondary",style:{marginLeft:"auto"},children:m})]})]})}):null},p=({labels:e={},SharingSubject:t,SharingTextBody:r,...o})=>{const a={...g,...e},[i,s]=n(!1),[p,y]=n(null),b=(()=>{const e=document.querySelector('link[rel="shortlink"]');return e?e.href:window.location.href})(),w=e=>{if("QRCode"===e)C();else if("WebShare"===e&&navigator.share)navigator.share({title:t??h,text:r??d,url:b}).catch(e=>console.error("Error sharing",e));else{var n=(e=>{let n=c[e];const o=encodeURIComponent(t??h),a=encodeURIComponent(r??d)+encodeURIComponent(b);return n.replace("[SHARING_TEXT_SUBJECT]",o).replace("[SHARING_TEXT_BODY]",a)})(e);"Mail"===e?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},C=async()=>{try{const e=new URL(b);e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box");const t=e.toString(),n=await l.toDataURL(t,{width:1024,margin:2,color:{dark:"#000000",light:"#FFFFFF"}});y(n),s(!0)}catch(e){console.error("Error generating QR code:",e),alert("Failed to generate QR code. Please try again.")}};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...o,children:[(0,u.jsx)("header",{className:"mg-share__header",children:a.mainLabel}),(0,u.jsxs)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>w("WebShare"),"aria-label":a.shareUsingDevice,title:a.shareUsingDevice,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>w("LinkedIn"),"aria-label":a.shareOnLinkedIn,className:"mg-share__button",title:a.shareOnLinkedIn,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>w("Facebook"),"aria-label":a.shareOnFacebook,title:a.shareOnFacebook,className:"mg-share__button",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>w("Twitter"),"aria-label":a.shareOnX,className:"mg-share__button",title:a.shareOnX,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>w("Mail"),"aria-label":a.shareViaEmail,className:"mg-share__button",title:a.shareViaEmail,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"})}),(0,u.jsx)("button",{"data-vf-analytics-label":"Social share: QR Code",onClick:()=>w("QRCode"),"aria-label":a.generateQRCode,className:"mg-share__button",title:a.generateQRCode,children:(0,u.jsx)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"})})]}),(0,u.jsx)(m,{className:"mg-share__copy-button",copiedLabel:a.onCopy,copyToClipboardLabel:a.copyToClipboard,sharedLink:b})]}),(0,u.jsx)(f,{isOpen:i,onClose:()=>{s(!1),p&&(URL.revokeObjectURL(p),y(null))},qrCodeDataUrl:p,onCopy:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new ClipboardItem({"image/png":t});await navigator.clipboard.write([n])}}catch(e){console.error("Error copying QR code to clipboard:",e),alert("Failed to copy QR code to clipboard. Please check browser permissions.")}},onDownload:async()=>{try{if(p){const e=await fetch(p),t=await e.blob(),n=new URL(b);let r="qr-code";if(n.hostname&&(r+=`-${n.hostname.replace(/^www\./,"").replace(/\./g,"-")}`),n.pathname&&"/"!==n.pathname){const e=n.pathname.replace(/^\//,"").replace(/\/$/,"").replace(/[^a-zA-Z0-9-_]/g,"-").replace(/-+/g,"-").replace(/^-|-$/g,"");e&&(r+=`-${e}`)}r=r.substring(0,100)+".png";const o=URL.createObjectURL(t),a=document.createElement("a");a.href=o,a.download=r,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:b,copiedLabel:a.onCopy,titleLabel:a.qrCodeTitle,descriptionLabel:a.qrCodeDescription,closeModalLabel:a.closeModal,copyImageLabel:a.copyImage,downloadImageLabel:a.downloadImage,closeMessageLabel:a.closeMessage})]})};function m({copiedLabel:e,sharedLink:t,className:r,copyToClipboardLabel:o="Copy to Clipboard"}){const[a,i]=n(!1);let s=t;return t.startsWith("https://")?s=t.replace("https://",""):t.startsWith("http://")&&(s=t.replace("http://","")),(0,u.jsxs)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":o,title:o,className:r,onClick:()=>(navigator.clipboard.writeText(t),void i(!0)),children:[(0,u.jsx)("div",{className:"mg-share__clip-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"})}),(0,u.jsx)("div",{className:"mg-share__copy-text",children:a?e:s}),(0,u.jsx)("div",{className:"mg-share__stack-icon",children:(0,u.jsx)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"})})]})}f.propTypes={isOpen:s().bool.isRequired,onClose:s().func.isRequired,qrCodeDataUrl:s().string,onCopy:s().func.isRequired,onDownload:s().func.isRequired,sharedLink:s().string.isRequired,copiedLabel:s().string},p.propTypes={labels:s().shape({mainLabel:s().string,onCopy:s().string,qrCodeTitle:s().string,qrCodeDescription:s().string,closeModal:s().string,copyImage:s().string,downloadImage:s().string,closeMessage:s().string,shareUsingDevice:s().string,shareOnLinkedIn:s().string,shareOnFacebook:s().string,shareOnX:s().string,shareViaEmail:s().string,generateQRCode:s().string,copyToClipboard:s().string}),SharingSubject:s().string,SharingTextBody:s().string},m.propTypes={copiedLabel:s().string.isRequired,sharedLink:s().string.isRequired,className:s().string,copyToClipboardLabel:s().string};const y=p;function b(e){const{dataset:t}=e;return{labels:{mainLabel:t.mainLabel||"Share this",onCopy:t.onCopyLabel||"Link copied"},SharingSubject:t.sharingSubject||"Sharing Link",SharingTextBody:t.sharingBody||""}}export{m as CopyButton,y as default,b as fromElement};
6
+ import{useEffect as e,useRef as t,useState as n}from"react";var o={6320(e){var t={single_source_shortest_paths:function(e,n,o){var r={},i={};i[n]=0;var a,s,c,l,d,u,h,g=t.PriorityQueue.make();for(g.push(n,0);!g.empty();)for(c in s=(a=g.pop()).value,l=a.cost,d=e[s]||{})d.hasOwnProperty(c)&&(u=l+d[c],h=i[c],(void 0===i[c]||h>u)&&(i[c]=u,g.push(c,u),r[c]=s));if(void 0!==o&&void 0===i[o]){var f=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(f)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(e,n,o){var r=t.single_source_shortest_paths(e,n,o);return t.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(e){var n,o=t.PriorityQueue,r={};for(n in e=e||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=e.sorter||o.default_sorter,r},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 o=n(6925);function r(){}function i(){}i.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,i,a){if(a!==o){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:i,resetWarningCache:r};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 o=n(1333),r=n(157),i=n(7899),a=n(6756);function s(e,t,n,i,a){const s=[].slice.call(arguments,1),c=s.length,l="function"==typeof s[c-1];if(!l&&!o())throw new Error("Callback required as last argument");if(!l){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise(function(o,a){try{const a=r.create(n,i);o(e(a,t,i))}catch(e){a(e)}})}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0));try{const o=r.create(n,i);a(null,e(o,t,i))}catch(e){a(e)}}t.create=r.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,n){return a.render(e,n)})},1333(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6421(e,t,n){const o=n(6886).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=o(e),r=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-r;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],o=t.getRowColCoords(e),r=o.length;for(let e=0;e<r;e++)for(let t=0;t<r;t++)0===e&&0===t||0===e&&t===r-1||e===r-1&&0===t||n.push([o[e],o[t]]);return n}},1433(e,t,n){const o=n(208),r=["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 i(e){this.mode=o.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*r.indexOf(this.data[t]);n+=r.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(r.indexOf(this.data[t]),6)},e.exports=i},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,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!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 o=n(208);function r(e){this.mode=o.BYTE,this.data="string"==typeof e?(new TextEncoder).encode(e):new Uint8Array(e)}r.getBitsLength=function(e){return 8*e},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=r},7518(e,t,n){const o=n(9953),r=[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],i=[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 o.L:return r[4*(e-1)+0];case o.M:return r[4*(e-1)+1];case o.Q:return r[4*(e-1)+2];case o.H:return r[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case o.L:return i[4*(e-1)+0];case o.M:return i[4*(e-1)+1];case o.Q:return i[4*(e-1)+2];case o.H:return i[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 o=n(6886).getSymbolSize;t.getPositions=function(e){const t=o(e);return[[0,0],[t-7,0],[0,t-7]]}},4565(e,t,n){const o=n(6886),r=o.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;o.getBCHDigit(i)-r>=0;)i^=1335<<o.getBCHDigit(i)-r;return 21522^(n<<10|i)}},2731(e,t){const n=new Uint8Array(512),o=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,o[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[o[e]+o[t]]}},4861(e,t,n){const o=n(208),r=n(6886);function i(e){this.mode=o.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=r.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=i},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,o){switch(e){case t.Patterns.PATTERN000:return(n+o)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(n+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return n*o%2+n*o%3==0;case t.Patterns.PATTERN110:return(n*o%2+n*o%3)%2==0;case t.Patterns.PATTERN111:return(n*o%3+(n+o)%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,o=0,r=0,i=null,a=null;for(let s=0;s<t;s++){o=r=0,i=a=null;for(let c=0;c<t;c++){let t=e.get(s,c);t===i?o++:(o>=5&&(n+=o-5+3),i=t,o=1),t=e.get(c,s),t===a?r++:(r>=5&&(n+=r-5+3),a=t,r=1)}o>=5&&(n+=o-5+3),r>=5&&(n+=r-5+3)}return n},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let o=0;o<t-1;o++)for(let r=0;r<t-1;r++){const t=e.get(o,r)+e.get(o,r+1)+e.get(o+1,r)+e.get(o+1,r+1);4!==t&&0!==t||n++}return 3*n},t.getPenaltyN3=function(e){const t=e.size;let n=0,o=0,r=0;for(let i=0;i<t;i++){o=r=0;for(let a=0;a<t;a++)o=o<<1&2047|e.get(i,a),a>=10&&(1488===o||93===o)&&n++,r=r<<1&2047|e.get(a,i),a>=10&&(1488===r||93===r)&&n++}return 40*n},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let o=0;o<n;o++)t+=e.data[o];return 10*Math.abs(Math.ceil(100*t/n/5)-10)},t.applyMask=function(e,t){const o=t.size;for(let r=0;r<o;r++)for(let i=0;i<o;i++)t.isReserved(i,r)||t.xor(i,r,n(e,i,r))},t.getBestMask=function(e,n){const o=Object.keys(t.Patterns).length;let r=0,i=1/0;for(let a=0;a<o;a++){n(a),t.applyMask(a,e);const o=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),o<i&&(i=o,r=a)}return r}},208(e,t,n){const o=n(1878),r=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(!o.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 r.testNumeric(e)?t.NUMERIC:r.testAlphanumeric(e)?t.ALPHANUMERIC:r.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 o=n(208);function r(e){this.mode=o.NUMERIC,this.data=e.toString()}r.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(e){let t,n,o;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),o=parseInt(n,10),e.put(o,10);const r=this.data.length-t;r>0&&(n=this.data.substr(t),o=parseInt(n,10),e.put(o,3*r+1))},e.exports=r},4713(e,t,n){const o=n(2731);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]^=o.mul(e[r],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let r=0;r<t.length;r++)n[r]^=o.mul(t[r],e);let r=0;for(;r<n.length&&0===n[r];)r++;n=n.slice(r)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let r=0;r<e;r++)n=t.mul(n,new Uint8Array([1,o.exp(r)]));return n}},157(e,t,n){const o=n(6886),r=n(9953),i=n(9899),a=n(8820),s=n(6421),c=n(7756),l=n(1332),d=n(7518),u=n(4764),h=n(1427),g=n(4565),f=n(208),p=n(9801);function m(e,t,n){const o=e.size,r=g.getEncodedBits(t,n);let i,a;for(i=0;i<15;i++)a=1==(r>>i&1),i<6?e.set(i,8,a,!0):i<8?e.set(i+1,8,a,!0):e.set(o-15+i,8,a,!0),i<8?e.set(8,o-i-1,a,!0):i<9?e.set(8,15-i-1+1,a,!0):e.set(8,15-i-1,a,!0);e.set(o-8,8,1,!0)}function y(e,t,n,r){let g;if(Array.isArray(e))g=p.fromArray(e);else{if("string"!=typeof e)throw new Error("Invalid data");{let o=t;if(!o){const t=p.rawSplit(e);o=h.getBestVersionForData(t,n)}g=p.fromString(e,o||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 r=new i;n.forEach(function(t){r.put(t.mode.bit,4),r.put(t.getLength(),f.getCharCountIndicator(t.mode,e)),t.write(r)});const a=8*(o.getSymbolTotalCodewords(e)-d.getTotalCodewordsCount(e,t));for(r.getLengthInBits()+4<=a&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(0);const s=(a-r.getLengthInBits())/8;for(let e=0;e<s;e++)r.put(e%2?17:236,8);return function(e,t,n){const r=o.getSymbolTotalCodewords(t),i=r-d.getTotalCodewordsCount(t,n),a=d.getBlocksCount(t,n),s=a-r%a,c=Math.floor(r/a),l=Math.floor(i/a),h=l+1,g=c-l,f=new u(g);let p=0;const m=new Array(a),y=new Array(a);let b=0;const w=new Uint8Array(e.buffer);for(let e=0;e<a;e++){const t=e<s?l:h;m[e]=w.slice(p,p+t),y[e]=f.encode(m[e]),p+=t,b=Math.max(b,t)}const E=new Uint8Array(r);let v,C,x=0;for(v=0;v<b;v++)for(C=0;C<a;C++)v<m[C].length&&(E[x++]=m[C][v]);for(v=0;v<g;v++)for(C=0;C<a;C++)E[x++]=y[C][v];return E}(r,e,t)}(t,n,g),w=o.getSymbolSize(t),E=new a(w);return function(e,t){const n=e.size,o=c.getPositions(t);for(let t=0;t<o.length;t++){const r=o[t][0],i=o[t][1];for(let t=-1;t<=7;t++)if(!(r+t<=-1||n<=r+t))for(let o=-1;o<=7;o++)i+o<=-1||n<=i+o||(t>=0&&t<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===t||6===t)||t>=2&&t<=4&&o>=2&&o<=4?e.set(r+t,i+o,!0,!0):e.set(r+t,i+o,!1,!0))}}(E,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)}}(E),function(e,t){const n=s.getPositions(t);for(let t=0;t<n.length;t++){const o=n[t][0],r=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(o+t,r+n,!0,!0):e.set(o+t,r+n,!1,!0)}}(E,t),m(E,n,0),t>=7&&function(e,t){const n=e.size,o=h.getEncodedBits(t);let r,i,a;for(let t=0;t<18;t++)r=Math.floor(t/3),i=t%3+n-8-3,a=1==(o>>t&1),e.set(r,i,a,!0),e.set(i,r,a,!0)}(E,t),function(e,t){const n=e.size;let o=-1,r=n-1,i=7,a=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(r,s-n)){let o=!1;a<t.length&&(o=1==(t[a]>>>i&1)),e.set(r,s-n,o),i--,-1===i&&(a++,i=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}(E,b),isNaN(r)&&(r=l.getBestMask(E,m.bind(null,E,n))),l.applyMask(r,E),m(E,n,r),{modules:E,version:t,errorCorrectionLevel:n,maskPattern:r,segments:g}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");let n,i,a=r.M;return void 0!==t&&(a=r.from(t.errorCorrectionLevel,r.M),n=h.from(t.version),i=l.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),y(e,n,a,i)}},4764(e,t,n){const o=n(4713);function r(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}r.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},r.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=o.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){const e=new Uint8Array(this.degree);return e.set(n,r),e}return n},e.exports=r},7044(e,t){const n="[0-9]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const r="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";t.KANJI=new RegExp(o,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(r,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+o+"$"),a=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},9801(e,t,n){const o=n(208),r=n(4357),i=n(1433),a=n(5822),s=n(4861),c=n(7044),l=n(6886),d=n(6320);function u(e){return unescape(encodeURIComponent(e)).length}function h(e,t,n){const o=[];let r;for(;null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function g(e){const t=h(c.NUMERIC,o.NUMERIC,e),n=h(c.ALPHANUMERIC,o.ALPHANUMERIC,e);let r,i;return l.isKanjiModeEnabled()?(r=h(c.BYTE,o.BYTE,e),i=h(c.KANJI,o.KANJI,e)):(r=h(c.BYTE_KANJI,o.BYTE,e),i=[]),t.concat(n,r,i).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 o.NUMERIC:return r.getBitsLength(e);case o.ALPHANUMERIC:return i.getBitsLength(e);case o.KANJI:return s.getBitsLength(e);case o.BYTE:return a.getBitsLength(e)}}function p(e,t){let n;const c=o.getBestModeForData(e);if(n=o.from(t,c),n!==o.BYTE&&n.bit<c.bit)throw new Error('"'+e+'" cannot be encoded with mode '+o.toString(n)+".\n Suggested mode is: "+o.toString(c));switch(n!==o.KANJI||l.isKanjiModeEnabled()||(n=o.BYTE),n){case o.NUMERIC:return new r(e);case o.ALPHANUMERIC:return new i(e);case o.KANJI:return new s(e);case o.BYTE:return new a(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 r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];switch(r.mode){case o.NUMERIC:t.push([r,{data:r.data,mode:o.ALPHANUMERIC,length:r.length},{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.ALPHANUMERIC:t.push([r,{data:r.data,mode:o.BYTE,length:r.length}]);break;case o.KANJI:t.push([r,{data:r.data,mode:o.BYTE,length:u(r.data)}]);break;case o.BYTE:t.push([{data:r.data,mode:o.BYTE,length:u(r.data)}])}}return t}(g(e,l.isKanjiModeEnabled())),i=function(e,t){const n={},r={start:{}};let i=["start"];for(let a=0;a<e.length;a++){const s=e[a],c=[];for(let e=0;e<s.length;e++){const l=s[e],d=""+a+e;c.push(d),n[d]={node:l,lastCount:0},r[d]={};for(let e=0;e<i.length;e++){const a=i[e];n[a]&&n[a].node.mode===l.mode?(r[a][d]=f(n[a].lastCount+l.length,l.mode)-f(n[a].lastCount,l.mode),n[a].lastCount+=l.length):(n[a]&&(n[a].lastCount=l.length),r[a][d]=f(l.length,l.mode)+4+o.getCharCountIndicator(l.mode,t))}}i=c}for(let e=0;e<i.length;e++)r[i[e]].end=0;return{map:r,table:n}}(r,n),a=d.find_path(i.map,"start","end"),s=[];for(let e=1;e<a.length-1;e++)s.push(i.table[a[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,l.isKanjiModeEnabled()))}},6886(e,t){let n;const o=[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 o[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 o=n(6886),r=n(7518),i=n(9953),a=n(208),s=n(1878),c=o.getBCHDigit(7973);function l(e,t){return a.getCharCountIndicator(e,t)+4}function d(e,t){let n=0;return e.forEach(function(e){const o=l(e.mode,t);n+=o+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=a.BYTE);const i=8*(o.getSymbolTotalCodewords(e)-r.getTotalCodewordsCount(e,t));if(n===a.MIXED)return i;const c=i-l(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){let o;const r=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let o=1;o<=40;o++)if(d(e,o)<=t.getCapacity(o,n,a.MIXED))return o}(e,r);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,n,o){for(let r=1;r<=40;r++)if(n<=t.getCapacity(r,o,e))return r}(o.mode,o.getLength(),r)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;o.getBCHDigit(t)-c>=0;)t^=7973<<o.getBCHDigit(t)-c;return e<<12|t}},7899(e,t,n){const o=n(2726);t.render=function(e,t,n){let r=n,i=t;void 0!==r||t&&t.getContext||(r=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),r=o.getOptions(r);const a=o.getImageWidth(e.modules.size,r),s=i.getContext("2d"),c=s.createImageData(a,a);return o.qrToImageData(c.data,e,r),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,i,a),s.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,o){let r=o;void 0!==r||n&&n.getContext||(r=n,n=void 0),r||(r={});const i=t.render(e,n,r),a=r.type||"image/png",s=r.rendererOpts||{};return i.toDataURL(a,s.quality)}},6756(e,t,n){const o=n(2726);function r(e,t){const n=e.a/255,o=t+'="'+e.hex+'"';return n<1?o+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':o}function i(e,t,n){let o=e+t;return void 0!==n&&(o+=" "+n),o}t.render=function(e,t,n){const a=o.getOptions(t),s=e.modules.size,c=e.modules.data,l=s+2*a.margin,d=a.color.light.a?"<path "+r(a.color.light,"fill")+' d="M0 0h'+l+"v"+l+'H0z"/>':"",u="<path "+r(a.color.dark,"stroke")+' d="'+function(e,t,n){let o="",r=0,a=!1,s=0;for(let c=0;c<e.length;c++){const l=Math.floor(c%t),d=Math.floor(c/t);l||a||(a=!0),e[c]?(s++,c>0&&l>0&&e[c-1]||(o+=a?i("M",l+n,.5+d+n):i("m",r,0),r=0,a=!1),l+1<t&&e[c+1]||(o+=i("h",s),s=0)):r++}return o}(c,s,a.margin)+'"/>',h='viewBox="0 0 '+l+" "+l+'"',g='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+h+' shape-rendering="crispEdges">'+d+u+"</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,o=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:o,scale:o?4:r,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 o=t.getScale(e,n);return Math.floor((e+2*n.margin)*o)},t.qrToImageData=function(e,n,o){const r=n.modules.size,i=n.modules.data,a=t.getScale(r,o),s=Math.floor((r+2*o.margin)*a),c=o.margin*a,l=[o.color.light,o.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let d=4*(t*s+n),u=o.color.light;t>=c&&n>=c&&t<s-c&&n<s-c&&(u=l[i[Math.floor((t-c)/a)*r+Math.floor((n-c)/a)]?1:0]),e[d++]=u.r,e[d++]=u.g,e[d++]=u.b,e[d]=u.a}}},1772(e,t){var n=Symbol.for("react.fragment");t.Fragment=n,t.jsxDEV=void 0},5446(e,t,n){e.exports=n(1772)}};const r={};function i(e){const t=r[e];if(void 0!==t)return t.exports;const n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],r=t[n++];i.o(e,o)?0===r&&n++:0===r?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:r})}else for(var o in t)i.o(t,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a=i(5556),s=i.n(a),c=i(7583);const l=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 d=i(5446);const u="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:o,onClose:r,qrCodeDataUrl:i,onCopy:a,onDownload:s,sharedLink:c,copiedLabel:l="Image copied",titleLabel:u="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),E=t(o);return o!==E.current&&(E.current=o,o&&w(!1)),e(()=>{const e=e=>{"Escape"===e.key&&r()},t=e=>{y.current&&!y.current.contains(e.target)&&r()};return o&&(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"}},[o,r]),o?(0,d.jsxDEV)("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,d.jsxDEV)("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,d.jsxDEV)("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"16px",flexShrink:0},children:[(0,d.jsxDEV)("h3",{children:u},void 0,!1),(0,d.jsxDEV)("button",{onClick:r,style:{background:"none",border:"none",fontSize:"24px",cursor:"pointer",padding:"4px",borderRadius:"4px",color:"#666"},"aria-label":g,children:"×"},void 0,!1)]},void 0,!0),(0,d.jsxDEV)("p",{children:h},void 0,!1),(0,d.jsxDEV)("div",{style:{flex:1,overflowY:"auto",paddingRight:"8px"},children:i&&(0,d.jsxDEV)("div",{style:{marginBottom:"16px"},children:[(0,d.jsxDEV)("img",{src:i,alt:"QR Code",style:{maxWidth:"100%",maxHeight:"220px",height:"auto"}},void 0,!1),(0,d.jsxDEV)("div",{style:{textAlign:"left"},children:(0,d.jsxDEV)("code",{className:"mg-code--block",children:(()=>{const e=new URL(c);return e.searchParams.set("utm_source","qr"),e.searchParams.set("utm_medium","web"),e.searchParams.set("utm_campaign","share_box"),e.toString()})()},void 0,!1)},void 0,!1)]},void 0,!0)},void 0,!1),(0,d.jsxDEV)("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"},children:b?`${l}`:""},void 0,!1),(0,d.jsxDEV)("div",{style:{marginTop:"16px",flexShrink:0,display:"flex",gap:"8px",flexWrap:"wrap",justifyContent:"space-between",alignItems:"flex-end"},children:[(0,d.jsxDEV)("div",{style:{display:"flex",gap:"8px",flexWrap:"wrap"},children:[(0,d.jsxDEV)("button",{onClick:async()=>{try{await a(),w(!0),setTimeout(()=>{w(!1)},2e3)}catch(e){console.error("Copy failed:",e)}},className:"mg-button mg-button-primary",disabled:b,children:b?l:f},void 0,!1),(0,d.jsxDEV)("button",{onClick:s,className:"mg-button mg-button-secondary",children:p},void 0,!1)]},void 0,!0),(0,d.jsxDEV)("button",{onClick:r,className:"mg-button mg-button-secondary",style:{marginLeft:"auto"},children:m},void 0,!1)]},void 0,!0)]},void 0,!0)},void 0,!1):null},p=({labels:e={},SharingSubject:t,SharingTextBody:o,...r})=>{const i={...g,...e},[a,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)E();else if("WebShare"===e&&navigator.share)navigator.share({title:t??h,text:o??u,url:b}).catch(e=>console.error("Error sharing",e));else{var n=(e=>{let n=l[e];const r=encodeURIComponent(t??h),i=encodeURIComponent(o??u)+encodeURIComponent(b);return n.replace("[SHARING_TEXT_SUBJECT]",r).replace("[SHARING_TEXT_BODY]",i)})(e);"Mail"===e?window.location.href=n:window.open(n,"_blank","width=600,height=300")}},E=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 c.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,d.jsxDEV)(d.Fragment,{children:[(0,d.jsxDEV)("section",{"data-vf-google-analytics-region":"share-this",className:"mg-share",...r,children:[(0,d.jsxDEV)("header",{className:"mg-share__header",children:i.mainLabel},void 0,!1),(0,d.jsxDEV)("div",{className:"mg-share__buttons",children:[navigator.share&&(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: Web Share API",onClick:()=>w("WebShare"),"aria-label":i.shareUsingDevice,title:i.shareUsingDevice,className:"mg-share__button",children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-share","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: LinkedIn",onClick:()=>w("LinkedIn"),"aria-label":i.shareOnLinkedIn,className:"mg-share__button",title:i.shareOnLinkedIn,children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-linkedin","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: Facebook",onClick:()=>w("Facebook"),"aria-label":i.shareOnFacebook,title:i.shareOnFacebook,className:"mg-share__button",children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-facebook","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: X",onClick:()=>w("Twitter"),"aria-label":i.shareOnX,className:"mg-share__button",title:i.shareOnX,children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-x-social","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: Mail",onClick:()=>w("Mail"),"aria-label":i.shareViaEmail,className:"mg-share__button",title:i.shareViaEmail,children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-envelope","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Social share: QR Code",onClick:()=>w("QRCode"),"aria-label":i.generateQRCode,className:"mg-share__button",title:i.generateQRCode,children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-qrcode","aria-hidden":"true"},void 0,!1)},void 0,!1)]},void 0,!0),(0,d.jsxDEV)(m,{className:"mg-share__copy-button",copiedLabel:i.onCopy,copyToClipboardLabel:i.copyToClipboard,sharedLink:b},void 0,!1)]},void 0,!0),(0,d.jsxDEV)(f,{isOpen:a,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 o="qr-code";if(n.hostname&&(o+=`-${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&&(o+=`-${e}`)}o=o.substring(0,100)+".png";const r=URL.createObjectURL(t),i=document.createElement("a");i.href=r,i.download=o,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(r)}}catch(e){console.error("Error downloading QR code:",e),alert("Failed to download QR code. Please try again.")}},sharedLink:b,copiedLabel:i.onCopy,titleLabel:i.qrCodeTitle,descriptionLabel:i.qrCodeDescription,closeModalLabel:i.closeModal,copyImageLabel:i.copyImage,downloadImageLabel:i.downloadImage,closeMessageLabel:i.closeMessage},void 0,!1)]},void 0,!0)};function m({copiedLabel:e,sharedLink:t,className:o,copyToClipboardLabel:r="Copy to Clipboard"}){const[i,a]=n(!1);let s=t;return t.startsWith("https://")?s=t.replace("https://",""):t.startsWith("http://")&&(s=t.replace("http://","")),(0,d.jsxDEV)("button",{"data-vf-analytics-label":"Quick link copy","aria-label":r,title:r,className:o,onClick:()=>(navigator.clipboard.writeText(t),void a(!0)),children:[(0,d.jsxDEV)("div",{className:"mg-share__clip-icon",children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-link","aria-hidden":"true"},void 0,!1)},void 0,!1),(0,d.jsxDEV)("div",{className:"mg-share__copy-text",children:i?e:s},void 0,!1),(0,d.jsxDEV)("div",{className:"mg-share__stack-icon",children:(0,d.jsxDEV)("span",{className:"mg-icon mg-icon-clone","aria-hidden":"true"},void 0,!1)},void 0,!1)]},void 0,!0)}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
  * @license React
3
- * react-jsx-runtime.production.js
3
+ * react-jsx-dev-runtime.production.js
4
4
  *
5
5
  * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
@@ -1,6 +1,5 @@
1
1
  /*!
2
2
  * This is a UNDRR Mangrove component: https://github.com/unisdr/undrr-mangrove?tab=readme-ov-file
3
- * Compiled on: 2026-07-06T14:31:03.210Z
3
+ * Compiled on: 2026-08-27T20:32:00.846Z
4
4
  */
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 a=o(6925);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,s,n){if(n!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9698(e,t){var o=Symbol.for("react.transitional.element");function a(e,t,a){var r=null;if(void 0!==a&&(r=""+a),void 0!==t.key&&(r=""+t.key),"key"in t)for(var s in a={},t)"key"!==s&&(a[s]=t[s]);else a=t;return t=a.ref,{$$typeof:o,type:e,key:r,ref:void 0!==t?t:null,props:a}}Symbol.for("react.fragment"),t.jsx=a,t.jsxs=a},4848(e,t,o){e.exports=o(9698)}},a={};function r(e){var t=a[e];if(void 0!==t)return t.exports;var s=a[e]={exports:{}};return o[e](s,s.exports,r),s.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=r(5556),n=r.n(s);function l(e){(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(t=>{if(!e&&t.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(t.dataset.mgShowMoreInitialized)return;t.dataset.mgShowMoreInitialized="true",t.dataset.dataVfGoogleAnalyticsLabel="Show more: "+t.dataset.mgShowMoreLabelCollapsed||0;const o=t.dataset.mgShowMoreTarget||".mg-show-more--container",a=document.querySelector(o);a?(t.addEventListener("click",e=>{e.preventDefault(),a.classList.toggle("mg-show-more--collapsed"),t.textContent=a.classList.contains("mg-show-more--collapsed")?t.dataset.mgShowMoreLabelCollapsed||"Show more":t.dataset.mgShowMoreLabelOpen||"Show less",a.classList.contains("mg-show-more--collapsed")?t.classList.remove("mg-show-more--button--open"):t.classList.add("mg-show-more--button--open")}),a.addEventListener("click",()=>{a.classList.contains("mg-show-more--collapsed")&&t.click()}),t.click()):console.warn(`[mg-show-more] Target not found: "${o}"`)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>l(),!1):l();var i=r(4848);const c=[];function p({data:o=c}){return t(()=>{l()},[]),(0,i.jsxs)(e.Fragment,{children:[" ",o.map((t,o)=>(0,i.jsxs)(e.Fragment,{children:[(0,i.jsx)("div",{className:t.collapsable_wrapper_class,children:t.collapsable_text}),(0,i.jsx)("a",{href:"#",className:"mg-button mg-button-primary mg-show-more--button","data-mg-show-more":"true","data-mg-show-more-target":`.${t.collapsable_wrapper_class}`,"data-mg-show-more-label-open":"Show less themes","data-mg-show-more-label-collapsed":"Show more themes",children:t.button_text})]},o))]})}p.propTypes={data:n().arrayOf(n().shape({button_text:n().string.isRequired,collapsable_wrapper_class:n().string.isRequired,collapsable_text:n().string.isRequired})).isRequired};const m=p;export{p as ShowMore,m as default};
5
+ import{default as e,useEffect as t}from"react";var o={2694(e,t,o){var a=o(6925);function r(){}function s(){}s.resetWarningCache=r,e.exports=function(){function e(e,t,o,r,s,n){if(n!==a){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:r};return o.PropTypes=o,o}},5556(e,t,o){e.exports=o(2694)()},6925(e){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1772(e,t){Symbol.for("react.fragment"),t.jsxDEV=void 0},5446(e,t,o){e.exports=o(1772)}};const a={};function r(e){const t=a[e];if(void 0!==t)return t.exports;const s=a[e]={exports:{}};return o[e](s,s.exports,r),s.exports}r.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var a=t[o++],s=t[o++];r.o(e,a)?0===s&&o++:0===s?Object.defineProperty(e,a,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,a,{enumerable:!0,get:s})}else for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var s=r(5556),n=r.n(s);function l(e){(e?e instanceof HTMLElement?[e]:e:document.querySelectorAll("[data-mg-show-more]")).forEach(t=>{if(!e&&t.hasAttribute("data-mg-show-more-skip-auto-init"))return;if(t.dataset.mgShowMoreInitialized)return;t.dataset.mgShowMoreInitialized="true",t.dataset.dataVfGoogleAnalyticsLabel="Show more: "+t.dataset.mgShowMoreLabelCollapsed||0;const o=t.dataset.mgShowMoreTarget||".mg-show-more--container",a=document.querySelector(o);a?(t.addEventListener("click",e=>{e.preventDefault(),a.classList.toggle("mg-show-more--collapsed"),t.textContent=a.classList.contains("mg-show-more--collapsed")?t.dataset.mgShowMoreLabelCollapsed||"Show more":t.dataset.mgShowMoreLabelOpen||"Show less",a.classList.contains("mg-show-more--collapsed")?t.classList.remove("mg-show-more--button--open"):t.classList.add("mg-show-more--button--open")}),a.addEventListener("click",()=>{a.classList.contains("mg-show-more--collapsed")&&t.click()}),t.click()):console.warn(`[mg-show-more] Target not found: "${o}"`)})}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",()=>l(),!1):l();var c=r(5446);const i=[];function d({data:o=i}){return t(()=>{l()},[]),(0,c.jsxDEV)(e.Fragment,{children:[" ",o.map((t,o)=>(0,c.jsxDEV)(e.Fragment,{children:[(0,c.jsxDEV)("div",{className:t.collapsable_wrapper_class,children:t.collapsable_text},void 0,!1),(0,c.jsxDEV)("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},void 0,!1)]},o,!0))]},void 0,!0)}d.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=d;export{d 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-07-06T14:31:03.210Z
3
+ * Compiled on: 2026-08-27T20:32:00.846Z
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)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),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.11",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let r=t.document;const o=r,a=o.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,s=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const 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){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){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},Zt=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)},Jt=function(e){return e=k(e,Pe," "),e=k(e,ze," "),k(e,Ue," ")},Qt=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=Jt(r.data),r=n.nextNode();const o=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");o&&S(o,e=>{tn(e.content)&&Qt(e.content)})},en=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))},tn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return 11===Se(e)}catch(e){return!1}},nn=function(e){if(!Se||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Se(e)}catch(e){return!1}};function rn(e,t,r){0!==e.length&&S(e,e=>{e.call(n,t,r,Ft)})}const on=function(e){if(rn(Me.beforeSanitizeElements,e,null),en(e))return $t(e),!0;const t=jt(Ne?Ne(e):e.nodeName);if(rn(Me.uponSanitizeElement,e,{tagName:t,allowedTags:Ye}),function(e,t){return!!(ot&&e.hasChildNodes()&&!nn(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!ot||e.namespaceURI!==wt||"style"!==t||!nn(e.firstElementChild))||7===e.nodeType||!(!ot||8!==e.nodeType||!U(de,e.data))}(e,t))return $t(e),!0;if(Ve[t]||!(Je.tagCheck instanceof Function&&Je.tagCheck(t))&&!Ye[t])return function(e,t){if(!Ve[t]&&sn(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,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"===t||"noembed"===t||"noframes"===t)&&U(he,e.innerHTML))return $t(e),!0;if(rt&&3===e.nodeType){const t=Jt(e.textContent);e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rn(Me.afterSanitizeElements,e,null),!1},an=function(e,t,n){if(Ze[t])return!1;if(pt&&("id"===t||"name"===t)&&(n in r||n in Ht))return!1;const o=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(!(sn(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},ln=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!ln[O(e)]&&U(We,e)},cn=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},un=function(e,t,r,o){try{r?e.setAttributeNS(r,t,o):e.setAttribute(t,o),en(e)?$t(e):E(n.removed)}catch(n){Xt(t,e)}},fn=function(e){rn(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||en(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,rn(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=Jt(f)),an(o,c,f)?(f=cn(o,c,l,f),f!==u&&un(e,i,l,f)):Xt(i,e)))}rn(Me.afterSanitizeAttributes,e,null)},mn=function(e){let t=null;const n=Zt(e);for(rn(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rn(Me.uponSanitizeShadowNode,t,null),on(t),fn(t),tn(t.content)&&mn(t.content),1===(Se?Se(t):t.nodeType)){const e=W(t);tn(e)&&(pn(e),mn(e))}rn(Me.afterSanitizeShadowDOM,e,null)},pn=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){mn(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;tn(e)&&t.push({node:e,shadow:null})}}if(r){const e=W(n);tn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,i=null,l=null;if(kt=!e,kt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!nn(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return 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&&nn(e);if(s){const t=Ne?Ne(e):e.nodeName;if("string"==typeof t){const e=jt(t);if(!Ye[e]||Ve[e])throw j("root node is forbidden and cannot be sanitized in-place")}if(en(e))throw j("root node is clobbered and cannot be sanitized in-place");try{pn(e)}catch(t){throw qt(e),t}}else if(nn(e))r=Vt("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a),pn(a);else{if(!ut&&!rt&&!at&&-1===e.indexOf("<"))return Ee&&mt?xe(e):e;if(r=Vt(e),!r)return ut?null:mt?Ae:""}r&&ct&&$t(r.firstChild);const c=Zt(s?e:r);try{for(;i=c.nextNode();)on(i),fn(i),tn(i.content)&&mn(i.content)}catch(t){throw s&&qt(e),t}if(s)return S(n.removed,e=>{e.element&&function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Se?Se(e):e.nodeType)&&Kt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}}(e.element)}),rt&&Qt(e),e;if(ut){if(rt&&Qt(r),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 u=at?r.outerHTML:r.innerHTML;return at&&Ye["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&U(fe,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),rt&&(u=Jt(u)),Ee&&mt?xe(u):u},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 an(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,c=s>0?`mg-grid mg-grid__col-${s}`:"mg-grid",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={2694(e,t,n){var o=n(6925);function r(){}function a(){}a.resetWarningCache=r,e.exports=function(){function e(e,t,n,r,a,i){if(i!==o){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:r};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"},1772(e,t){Symbol.for("react.fragment"),t.jsxDEV=void 0},5446(e,t,n){e.exports=n(1772)}};const t={};function n(o){const r=t[o];if(void 0!==r)return r.exports;const a=t[o]={exports:{}};return e[o](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 o=0;o<t.length;){var r=t[o++],a=t[o++];n.o(e,r)?0===a&&o++:0===a?Object.defineProperty(e,r,{enumerable:!0,value:t[o++]}):Object.defineProperty(e,r,{enumerable:!0,get:a})}else for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o=n(5556),r=n.n(o),a=n(5446);const i=({type:e=2,children:t,className:n,tabIndex:o,...r})=>{const i=`h${Math.min(Math.max(parseInt(e,10)||2,1),6)}`;return(0,a.jsxDEV)(i,{className:n,tabIndex:o,...r,children:t},void 0,!1)};function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,a,i,l=[],c=!0,s=!1;try{if(a=(n=n.call(e)).next,0===t);else for(;!(c=(o=a.call(n)).done)&&(l.push(o.value),l.length!==t);c=!0);}catch(e){s=!0,r=e}finally{try{if(!c&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const s=Object.entries,u=Object.setPrototypeOf,f=Object.isFrozen,m=Object.getPrototypeOf,p=Object.getOwnPropertyDescriptor;let d=Object.freeze,h=Object.seal,g=Object.create,y="undefined"!=typeof Reflect&&Reflect,b=y.apply,T=y.construct;d||(d=function(e){return e}),h||(h=function(e){return e}),b||(b=function(e,t){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return e.apply(t,o)}),T||(T=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return new e(...n)});const E=H(Array.prototype.forEach),S=H(Array.prototype.lastIndexOf),N=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),D=H(String.prototype.replace),R=H(String.prototype.indexOf),k=H(String.prototype.trim),I=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,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return b(e,t,o)}}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 o=t.length;for(;o--;){let r=t[o];if("string"==typeof r){const e=n(r);e!==r&&(f(t)||(t[o]=e),r=e)}e[r]=!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 o of s(e)){var n=c(o,2);const r=n[0],a=n[1];P(e,r)&&(v(a)?t[r]=W(a):a&&"object"==typeof a&&a.constructor===Object?t[r]=G(a):t[r]=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 V=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),$=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),q=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),X=d(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),K=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Z=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),J=d(["#text"]),Q=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),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"]),oe=h(/{{[\w\W]*|^[\w\W]*}}/g),re=h(/<%[\w\W]*|^[\w\W]*%>/g),ae=h(/\${[\w\W]*/g),ie=h(/^data-[\-\w.\u00B7-\uFFFF]+$/),le=h(/^aria-[\-\w]+$/),ce=h(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),se=h(/^(?:\w+script|data):/i),ue=h(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=h(/^html$/i),me=h(/^[a-z][.\w]*(-[.\w]+)+$/i),pe=h(/<[/\w!]/g),de=h(/<[/\w]/g),he=h(/<\/no(script|embed|frames)/i),ge=h(/\/>/i),ye=function(){return"undefined"==typeof window?null:window},be=function(e,t,n,o){return P(e,t)&&v(e[t])?B(o.base?G(o.base):{},e[t],o.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 o=t.document;const r=o,a=r.currentScript;t.DocumentFragment;const i=t.HTMLTemplateElement,l=t.Node,c=t.Element,u=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const f=t.DOMParser,m=t.trustedTypes,p=c.prototype,y=Y(p,"cloneNode"),b=Y(p,"remove"),T=Y(p,"nextSibling"),F=Y(p,"childNodes"),H=Y(p,"parentNode"),W=Y(p,"shadowRoot"),Te=Y(p,"attributes"),Ee=l&&l.prototype?Y(l.prototype,"nodeType"):null,Se=l&&l.prototype?Y(l.prototype,"nodeName"):null;if("function"==typeof i){const e=o.createElement("template");e.content&&e.content.ownerDocument&&(o=e.content.ownerDocument)}let Ne,_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 Ne.createHTML(e)}finally{Oe--}},De=o,Re=De.implementation,ke=De.createNodeIterator,Ie=De.createDocumentFragment,Ce=De.getElementsByTagName,Le=r.importNode;let Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof s&&"function"==typeof H&&Re&&void 0!==Re.createHTMLDocument;const Pe=oe,ze=re,Ue=ae,je=ie,Fe=le,He=se,Be=ue,We=me;let Ge=ce,Ye=null;const Ve=B({},[...V,...$,...q,...K,...J]);let $e=null;const qe=B({},[...Q,...ee,...te,...ne]);let Xe=Object.seal(g(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ke=null,Ze=null;const Je=Object.seal(g(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Qe=!0,et=!0,tt=!1,nt=!0,ot=!1,rt=!0,at=!1,it=!1,lt=null,ct=null,st=!1,ut=!1,ft=!1,mt=!1,pt=!0,dt=!1;const ht="user-content-";let gt=!0,yt=!1,bt={},Tt=null;const Et=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 St=null;const Nt=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,Dt=!1,Rt=null;const kt=B({},[vt,Ot,wt],w),It=d(["mi","mo","mn","ms","mtext"]);let Ct=B({},It);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=o.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",Ve,{transform:jt}),$e=be(e,"ALLOWED_ATTR",qe,{transform:jt}),Rt=be(e,"ALLOWED_NAMESPACES",kt,{transform:w}),_t=be(e,"ADD_URI_SAFE_ATTR",At,{transform:jt,base:At}),St=be(e,"ADD_DATA_URI_TAGS",Nt,{transform:jt,base:Nt}),Tt=be(e,"FORBID_CONTENTS",Et,{transform:jt}),Ke=be(e,"FORBID_TAGS",G({}),{transform:jt}),Ze=be(e,"FORBID_ATTR",G({}),{transform:jt}),bt=!!P(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?G(e.USE_PROFILES):e.USE_PROFILES),Qe=!1!==e.ALLOW_ARIA_ATTR,et=!1!==e.ALLOW_DATA_ATTR,tt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,nt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ot=e.SAFE_FOR_TEMPLATES||!1,rt=!1!==e.SAFE_FOR_XML,at=e.WHOLE_DOCUMENT||!1,ut=e.RETURN_DOM||!1,ft=e.RETURN_DOM_FRAGMENT||!1,mt=e.RETURN_TRUSTED_TYPE||!1,st=e.FORCE_BODY||!1,pt=!1!==e.SANITIZE_DOM,dt=e.SANITIZE_NAMED_PROPS||!1,gt=!1!==e.KEEP_CONTENT,yt=e.IN_PLACE||!1,Ge=function(e){try{return U(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:ce,xt="string"==typeof e.NAMESPACE?e.NAMESPACE:wt,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({},It),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(Xe=g(null),P(t,"tagNameCheck")&&Bt(t.tagNameCheck)&&(Xe.tagNameCheck=t.tagNameCheck),P(t,"attributeNameCheck")&&Bt(t.attributeNameCheck)&&(Xe.attributeNameCheck=t.attributeNameCheck),P(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(Xe.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),h(Xe),ot&&(et=!1),ft&&(ut=!0),bt&&(Ye=B({},J),$e=g(null),!0===bt.html&&(B(Ye,V),B($e,Q)),!0===bt.svg&&(B(Ye,$),B($e,ee),B($e,ne)),!0===bt.svgFilters&&(B(Ye,q),B($e,ee),B($e,ne)),!0===bt.mathMl&&(B(Ye,K),B($e,te),B($e,ne))),Je.tagCheck=null,Je.attributeCheck=null,P(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?Je.tagCheck=e.ADD_TAGS:v(e.ADD_TAGS)&&(Ye===Ve&&(Ye=G(Ye)),B(Ye,e.ADD_TAGS,jt))),P(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?Je.attributeCheck=e.ADD_ATTR:v(e.ADD_ATTR)&&($e===qe&&($e=G($e)),B($e,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===Et&&(Tt=G(Tt)),B(Tt,e.FORBID_CONTENTS,jt)),P(e,"ADD_FORBID_CONTENTS")&&v(e.ADD_FORBID_CONTENTS)&&(Tt===Et&&(Tt=G(Tt)),B(Tt,e.ADD_FORBID_CONTENTS,jt)),gt&&(Ye["#text"]=!0),at&&B(Ye,["html","head","body"]),Ye.table&&(B(Ye,["tbody"]),delete Ke.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw j('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=Ne;Ne=e.TRUSTED_TYPES_POLICY;try{Ae=xe("")}catch(e){throw Ne=t,e}}else null===e.TRUSTED_TYPES_POLICY?(Ne=void 0,Ae=""):(void 0===Ne&&(ve||(_e=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(m,a),ve=!0),Ne=_e),Ne&&"string"==typeof Ae&&(Ae=xe("")));d&&d(e),Ft=e},Gt=B({},[...$,...q,...X]),Yt=B({},[...K,...Z]),Vt=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")}},$t=function(e){Kt(e);const t=F(e);if(t){const e=[];E(t,t=>{_(e,t)}),E(e,e=>{try{b(e)}catch(e){}})}const n=Te(e);if(n)for(let t=n.length-1;t>=0;--t){const o=n[t],r=o&&o.name;if("string"==typeof r)try{e.removeAttribute(r)}catch(e){}}},qt=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{Vt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Xt=function(e){const t=Te(e);if(t)for(let n=t.length-1;n>=0;--n){const o=t[n],r=o&&o.name;if("string"==typeof r&&!$e[jt(r)])try{e.removeAttribute(r)}catch(e){}}},Kt=function(e){const t=[e];for(;t.length>0;){const e=t.pop();1===(Ee?Ee(e):e.nodeType)&&Xt(e);const n=F(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},Zt=function(e){let t=null,n=null;if(st)e="<remove></remove>"+e;else{const t=x(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===zt&&xt===wt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const r=Ne?xe(e):e;if(xt===wt)try{t=(new f).parseFromString(r,zt)}catch(e){}if(!t||!t.documentElement){t=Re.createDocument(xt,"template",null);try{t.documentElement.innerHTML=Dt?Ae:r}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(o.createTextNode(n),a.childNodes[0]||null),xt===wt?Ce.call(t,at?"html":"body")[0]:at?t.documentElement:a},Jt=function(e){return ke.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=D(e,Pe," "),e=D(e,ze," "),D(e,Ue," ")},en=function(e){var t;e.normalize();const n=ke.call(e.ownerDocument||e,e,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let o=n.nextNode();for(;o;)o.data=Qt(o.data),o=n.nextNode();const r=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");r&&E(r,e=>{nn(e.content)&&en(e.content)})},tn=function(e){const t=Se?Se(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!==Ee(e)||e.childNodes!==F(e))},nn=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return 11===Ee(e)}catch(e){return!1}},on=function(e){if(!Ee||"object"!=typeof e||null===e)return!1;try{return"number"==typeof Ee(e)}catch(e){return!1}};function rn(e,t,o){0!==e.length&&E(e,e=>{e.call(n,t,o,Ft)})}const an=function(e,t){if(rn(Me.beforeSanitizeElements,e,null),e!==t&&null===H(e))return!0;if(tn(e))return Vt(e),!0;const o=jt(Se?Se(e):e.nodeName);if(rn(Me.uponSanitizeElement,e,{tagName:o,allowedTags:Ye}),e!==t&&null===H(e))return!0;if(function(e,t){return!!(rt&&e.hasChildNodes()&&!on(e.firstElementChild)&&U(pe,e.textContent)&&U(pe,e.innerHTML))||!(!rt||e.namespaceURI!==wt||"style"!==t||!on(e.firstElementChild))||7===e.nodeType||!(!rt||8!==e.nodeType||!U(de,e.data))}(e,o))return Vt(e),!0;if(Ke[o]||!(Je.tagCheck instanceof Function&&Je.tagCheck(o))&&!Ye[o]){const t=function(e,t){if(!Ke[t]&&sn(t)){if(Xe.tagNameCheck instanceof RegExp&&U(Xe.tagNameCheck,t))return!1;if(Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(t))return!1}if(gt&&!Tt[t]){const t=H(e),n=F(e);if(n&&t)for(let o=n.length-1;o>=0;--o){const r=yt?n[o]:y(n[o],!0);t.insertBefore(r,T(e))}}return Vt(e),!0}(e,o);return!1===t&&rn(Me.afterSanitizeElements,e,null),t}if(1===(Ee?Ee(e):e.nodeType)&&!function(e){let t=H(e);t&&t.tagName||(t={namespaceURI:xt,tagName:"template"});const n=O(e.tagName),o=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,o):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,o):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,o):!("application/xhtml+xml"!==zt||!Rt[e.namespaceURI]))}(e))return Vt(e),!0;if(("noscript"===o||"noembed"===o||"noframes"===o)&&U(he,e.innerHTML))return Vt(e),!0;if(ot&&3===e.nodeType){const t=Qt(e.textContent);e.textContent!==t&&(_(n.removed,{element:e.cloneNode()}),e.textContent=t)}return rn(Me.afterSanitizeElements,e,null),!1},ln=function(e,t,n){if(Ze[t])return!1;if(rt&&"patchsrc"===t)return!1;if(rt&&"for"===t&&"label"!==e&&"output"!==e)return!1;if(pt&&("id"===t||"name"===t)&&(n in o||n in Ht))return!1;const r=$e[t]||Je.attributeCheck instanceof Function&&Je.attributeCheck(t,e);if(et&&U(je,t));else if(Qe&&U(Fe,t));else if(r){if(_t[t]);else if(U(Ge,D(n,Be,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==R(n,"data:")||!St[e])if(tt&&!U(He,D(n,Be,"")));else if(n)return!1}else if(!(sn(e)&&(Xe.tagNameCheck instanceof RegExp&&U(Xe.tagNameCheck,e)||Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(e))&&(Xe.attributeNameCheck instanceof RegExp&&U(Xe.attributeNameCheck,t)||Xe.attributeNameCheck instanceof Function&&Xe.attributeNameCheck(t,e))||"is"===t&&Xe.allowCustomizedBuiltInElements&&(Xe.tagNameCheck instanceof RegExp&&U(Xe.tagNameCheck,n)||Xe.tagNameCheck instanceof Function&&Xe.tagNameCheck(n))))return!1;return!0},cn=B({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),sn=function(e){return!cn[O(e)]&&U(We,e)},un=function(e,t,n,o){if(Ne&&"object"==typeof m&&"function"==typeof m.getAttributeType&&!n)switch(m.getAttributeType(e,t)){case"TrustedHTML":return xe(o);case"TrustedScriptURL":return function(e){we(),Oe++;try{return Ne.createScriptURL(e)}finally{Oe--}}(o)}return o},fn=function(e,t,o,r){try{o?e.setAttributeNS(o,t,r):e.setAttribute(t,r),tn(e)?Vt(e):N(n.removed)}catch(n){qt(t,e)}},mn=function(e){rn(Me.beforeSanitizeAttributes,e,null);const t=e.attributes;if(!t||tn(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$e,forceKeepAttr:void 0};let o=t.length;const r=jt(e.nodeName);for(;o--;){const a=t[o],i=a.name,l=a.namespaceURI,c=a.value,s=jt(i),u=c;let f="value"===i?u:k(u);n.attrName=s,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,rn(Me.uponSanitizeAttribute,e,n),f=n.attrValue,!dt||"id"!==s&&"name"!==s||0===R(f,ht)||(qt(i,e),f=ht+f),rt&&U(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)||"attributename"===s&&x(f,"href")?qt(i,e):n.forceKeepAttr||(!n.keepAttr||!nt&&U(ge,f)?qt(i,e):(ot&&(f=Qt(f)),ln(r,s,f)?(f=un(r,s,l,f),f!==u&&fn(e,i,l,f)):qt(i,e)))}rn(Me.afterSanitizeAttributes,e,null)},pn=function(e){let t=null;const n=Jt(e);for(rn(Me.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(rn(Me.uponSanitizeShadowNode,t,null),an(t,e),mn(t),nn(t.content)&&pn(t.content),1===(Ee?Ee(t):t.nodeType)){const e=W(t);nn(e)&&(dn(e),pn(e))}rn(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,o=1===(Ee?Ee(n):n.nodeType),r=F(n);if(r)for(let e=r.length-1;e>=0;--e)t.push({node:r[e],shadow:null});if(o){const e=Se?Se(n):null;if("string"==typeof e&&"template"===jt(e)){const e=n.content;nn(e)&&t.push({node:e,shadow:null})}}if(o){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]:{},o=null,a=null,i=null,l=null;if(Dt=!e,Dt&&(e="\x3c!--\x3e"),"string"!=typeof e&&!on(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return I(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,$e=ct):Wt(t),(Me.uponSanitizeElement.length>0||Me.uponSanitizeAttribute.length>0)&&(Ye=G(Ye)),Me.uponSanitizeAttribute.length>0&&($e=G($e)),n.removed=[];const c=yt&&"string"!=typeof e&&on(e);if(c){!function(e){if(!rt)return;const t=[e];for(;t.length>0;){const e=t.pop(),n=Ee?Ee(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(Se?Se(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 o=F(e);if(o)for(let e=o.length-1;e>=0;--e)t.push(o[e])}}(e);const t=Se?Se(e):e.nodeName;if("string"==typeof t){const n=jt(t);if(!Ye[n]||Ke[n])throw $t(e),j("root node is forbidden and cannot be sanitized in-place")}if(tn(e))throw $t(e),j("root node is clobbered and cannot be sanitized in-place");try{dn(e)}catch(t){throw $t(e),t}}else if(on(e))o=Zt("\x3c!----\x3e"),a=o.ownerDocument.importNode(e,!0),1===a.nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?o=a:o.appendChild(a),dn(a);else{if(!ut&&!ot&&!at&&-1===e.indexOf("<"))return Ne&&mt?xe(e):e;if(o=Zt(e),!o)return ut?null:mt?Ae:""}o&&st&&Vt(o.firstChild);const s=c?e:o,u=Jt(s);try{for(;i=u.nextNode();)an(i,s),mn(i),nn(i.content)&&pn(i.content)}catch(t){throw c&&($t(e),E(n.removed,e=>{e.element&&Kt(e.element)})),t}if(c)return E(n.removed,e=>{e.element&&Kt(e.element)}),ot&&en(e),e;if(ut){if(ot&&en(o),ft)for(l=Ie.call(o.ownerDocument);o.firstChild;)l.appendChild(o.firstChild);else l=o;return($e.shadowroot||$e.shadowrootmode)&&(l=Le.call(r,l,!0)),l}let f=at?o.outerHTML:o.innerHTML;return at&&Ye["!doctype"]&&o.ownerDocument&&o.ownerDocument.doctype&&o.ownerDocument.doctype.name&&U(fe,o.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+o.ownerDocument.doctype.name+">\n"+f),ot&&(f=Qt(f)),Ne&&mt?xe(f):f},n.setConfig=function(){Wt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),it=!0,lt=Ye,ct=$e},n.clearConfig=function(){Ft=null,it=!1,lt=null,ct=null,Ne=_e,Ae=""},n.isValidAttribute=function(e,t,n){Ft||Wt({});const o=jt(e),r=jt(t);return ln(o,r,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=S(Me[e],t);return-1===n?void 0:A(Me[e],n,1)[0]}return N(Me[e])}},n.removeHooks=function(e){P(Me,e)&&(Me[e]=[])},n.removeAllHooks=function(){Me={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();function Ee({icon:e,label:t,value:n,bottomLabel:o,summaryText:r,link:i,className:l="",...c}){const s="mg-stats-card-item",u=["mg-card",s,i&&`${s}--linked`,l].filter(Boolean).join(" "),f=i?(0,a.jsxDEV)("a",{href:i,className:`${s}__value`,children:n},void 0,!1):(0,a.jsxDEV)("data",{className:`${s}__value`,value:n,children:n},void 0,!1);return(0,a.jsxDEV)("article",{className:u,...c,children:[e&&(0,a.jsxDEV)("span",{className:`${s}__icon`,"aria-hidden":"true",children:(0,a.jsxDEV)("span",{className:e},void 0,!1)},void 0,!1),t&&(0,a.jsxDEV)("span",{className:`${s}__label`,children:t},void 0,!1),f,o&&(0,a.jsxDEV)("strong",{className:`${s}__bottom-label`,children:o},void 0,!1),r&&(0,a.jsxDEV)("p",{className:`${s}__summary`,dangerouslySetInnerHTML:{__html:Te.sanitize(r)}},void 0,!1)]},void 0,!0)}Ee.propTypes={icon:r().string,label:r().string,value:r().oneOfType([r().string,r().number]).isRequired,bottomLabel:r().string,summaryText:r().string,link:r().string,className:r().string};const Se=[];function Ne({title:e,stats:t=Se,variant:n="default",className:o="",...r}){const l="mg-stats-card",c=t.length;let s="mg-grid";c>0&&c<=12?s=`mg-grid mg-grid__col-${c}`:c>12&&(s="mg-grid mg-grid--auto-fit");const u=[l,n&&`${l}--${n}`,o].filter(Boolean).join(" ");return(0,a.jsxDEV)("section",{className:u,"aria-label":e||"Statistics",...r,children:[e&&(0,a.jsxDEV)(i,{type:"2",children:e},void 0,!1),(0,a.jsxDEV)("div",{className:s,children:t.map((e,t)=>(0,a.jsxDEV)(Ee,{icon:e.icon,label:e.label,value:e.value,bottomLabel:e.bottomLabel,summaryText:e.summaryText,link:e.link},t,!1))},void 0,!1)]},void 0,!0)}Ne.propTypes={title:r().string,stats:r().arrayOf(r().shape({icon:r().string,label:r().string,value:r().oneOfType([r().string,r().number]).isRequired,bottomLabel:r().string,summaryText:r().string,link:r().string})),variant:r().oneOf(["default","compact","highlighted","negative"]),className:r().string};const _e=Ne;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{Ne as StatsCard,_e as default,Ae as fromElement};
@@ -1,11 +1 @@
1
- /*! @license DOMPurify 3.4.11 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.11/LICENSE */
2
-
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
1
+ /*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */