@antistatique/leckerli 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
7
  ## [Unreleased]
8
+ ### Added
9
+ - Added an option to 'Auto Load' Leckerli from a GTM tag
8
10
 
9
11
  ## [1.1.1] - 2023-07-27
10
12
  ### Changed
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # 🍪 Leckerli
2
2
 
3
- > Lightweight (~16kB gzip) and customisable GDPR cookie manager
3
+ > Lightweight (~23kB gzip) and customisable GDPR cookie manager
4
4
 
5
5
  ## 📗 Usage
6
6
 
@@ -14,7 +14,7 @@ To use leckerli into your website, simply add the following CSS/JavaScript in yo
14
14
  <!-- somewhere in the <head /> -->
15
15
  <link
16
16
  rel="stylesheet"
17
- href="//www.unpkg.com/@antistatique/leckerli/dist/assets/leckerli.min.css"
17
+ href="//www.unpkg.com/@antistatique/leckerli@1.1/dist/assets/leckerli.min.css"
18
18
  />
19
19
  </head>
20
20
  <body>
@@ -22,28 +22,15 @@ To use leckerli into your website, simply add the following CSS/JavaScript in yo
22
22
  <script
23
23
  defer
24
24
  type="module"
25
- src="//www.unpkg.com/@antistatique/leckerli/dist/assets/leckerli.min.js"
25
+ src="//www.unpkg.com/@antistatique/leckerli@1.1/dist/assets/leckerli.min.js"
26
26
  ></script>
27
27
  </body>
28
28
  </html>
29
29
  ```
30
30
 
31
- ### GTM approach with CDN
31
+ ### Google Tag Manager
32
32
 
33
- You can also inject a bit of JavaScript to your website to install Leckerli using Google Tag Manager:
34
-
35
- ```js
36
- // For the CSS
37
- const leckerliStyles = document.createElement('link');
38
- leckerliStyles.rel = 'stylesheet';
39
- leckerliStyles.href = '//www.unpkg.com/@antistatique/leckerli/dist/assets/leckerli.min.css';
40
- document.head.appendChild(leckerliStyles);
41
-
42
- // For the JavaScript
43
- const leckerliScript = document.createElement('script');
44
- leckerliScript.src = '//www.unpkg.com/@antistatique/leckerli/dist/assets/leckerli.min.js';
45
- document.body.appendChild(leckerliScript);
46
- ```
33
+ For Google Tag Manager integration, you should use the Leckerli custom tag template, see [GTM integration](./doc/GTM_INTEGRATION.md) for more information.
47
34
 
48
35
  ### Local files
49
36
 
@@ -165,10 +152,6 @@ window.leckerliSettings = {
165
152
 
166
153
  `baseData` is an object of any kind that **will be passed to the final cookie** as well. For example for store consent-id of some sort.
167
154
 
168
- ### enableGtmConsent
169
-
170
- `enableGtmConsent` (`false` by default) enables the **consent update** based on the permissions's slugs, in the `window.dataLayer`. It simplifies Google Tag Manager integration.
171
-
172
155
  ### For example
173
156
 
174
157
  You could have something like:
@@ -208,42 +191,6 @@ You could have something like:
208
191
  </script>
209
192
  ```
210
193
 
211
- Feel free to split the configuration object if you want to set the banner translations in the template of your website and the rest in Google Tag Manager for example:
212
-
213
- ```js
214
- // In your template
215
- window.leckerliSettings = {};
216
- window.leckerliSettings.banner = {
217
- title: 'Nous respectons votre vie privée.',
218
- description: 'Nous utilisons des cookies pour améliorer votre expérience de navigation, diffuser des publicités ou des contenus personnalisés et analyser notre trafic. En cliquant sur « Tout accepter », vous consentez à notre utilisation des cookies.',
219
- accept: 'Accepter tout',
220
- reject: 'Tout rejeter',
221
- customise: 'Personnaliser',
222
- };
223
-
224
- // In GTM
225
- window.leckerliSettings.name = 'website-gdpr';
226
- window.leckerliSettings.baseData = {
227
- consentid: 'b638a4a9-a846-475a-a29b-d2bb596cb735',
228
- };
229
- window.leckerliSettings.banner.settings = [
230
- {
231
- slug: 'settings',
232
- title: 'Préférences',
233
- description: 'Les cookies de préférence permettent à un site web de mémoriser des informations qui modifient le comportement ou l\'apparence du site, comme votre langue préférée ou la région dans laquelle vous vous trouvez.'
234
- },
235
- {
236
- slug: 'ga',
237
- title: 'Google analytics',
238
- description: 'Google Analytics permet de mesurer et d\'analyser le comportement des visiteurs d\'un site internet, en fournissant des données clés sur leur provenance, leur navigation et leur engagement, afin d\'aider à optimiser le site et à améliorer l\'expérience utilisateur.'
239
- },
240
- ];
241
- window.leckerliSettings.permissions = [
242
- 'analytics_storage',
243
- 'personalization_storage',
244
- ];
245
- ```
246
-
247
194
  ## 🩻 Cookie structure
248
195
 
249
196
  With the default settings above, here is the value stored in our cookie:
package/__index.html ADDED
@@ -0,0 +1,50 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>🍪 Leckerli</title>
7
+ </head>
8
+ <body style="background: #cbd5e1; display: grid; place-content: center; font-family: sans-serif; min-height: 100vh;">
9
+ <h1>Your website here 🤗</h1>
10
+ <a href="gtm-basic.html">Go to GTM-Basic.</a>
11
+ <script defer type="module" src="/src/index.tsx"></script>
12
+
13
+ <script>
14
+ // To listen the initialisation
15
+ document.addEventListener('leckerli:initialised', (event) => {
16
+ // to get cookie data OR null if the user's choice has not been made
17
+ console.log('init', event.detail.cookie);
18
+ });
19
+
20
+ // To listen to the permissions / cookie's updates
21
+ document.addEventListener('leckerli:permissions-updated', (event) => {
22
+ // to get cookie data
23
+ console.log('update', event.detail.cookie);
24
+ });
25
+
26
+ // To listen the modal states
27
+ document.addEventListener('leckerli:modal-opened', () => {
28
+ // react to modal opened
29
+ console.log('modal opened')
30
+ });
31
+ document.addEventListener('leckerli:modal-closed', () => {
32
+ // react to modal closed
33
+ console.log('modal closed')
34
+ });
35
+ </script>
36
+
37
+ <style>
38
+ /*
39
+ :root {
40
+ --leckerli-foreground: #fff;
41
+ --leckerli-background: #000;
42
+ --leckerli-primary: #ff0099;
43
+ --leckerli-primary-hover: #d1007e;
44
+ --leckerli-primary-active: #9D005F;
45
+ --leckerli-font: sans-serif;
46
+ }
47
+ */
48
+ </style>
49
+ </body>
50
+ </html>
@@ -0,0 +1 @@
1
+ if(window.leckerliSettings.enableGtmAutoLoad){const e=document.createElement("link");e.rel="stylesheet",e.href="//www.unpkg.com/@antistatique/leckerli@1.2.0/dist/assets/leckerli.min.css",document.head.appendChild(e)}if(window.leckerliSettings.enableGtmAutoLoad){const e=document.createElement("script");e.src="//www.unpkg.com/@antistatique/leckerli@1.2.0/dist/assets/leckerli.min.js",document.body.appendChild(e)}document.addEventListener("leckerli:permissions-updated",e=>{window.leckerliGTMUpdate(e.detail.cookie)});
@@ -1,4 +1,4 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var xe,d,er,ae,hn,tr,kt,nr,Ve={},rr=[],vo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ze=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function or(e){var t=e.parentNode;t&&t.removeChild(e)}function Y(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?xe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return we(e,s,r,i,null)}function we(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++er};return i==null&&d.vnode!=null&&d.vnode(o),o}function ir(){return{current:null}}function X(e){return e.children}function B(e,t){this.props=e,this.context=t}function Re(e,t){if(t==null)return e.__?Re(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Re(e):null}function ar(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ar(e)}}function Ct(e){(!e.__d&&(e.__d=!0)&&ae.push(e)&&!qe.__r++||hn!==d.debounceRendering)&&((hn=d.debounceRendering)||tr)(qe)}function qe(){var e,t,n,r,i,o,s,c;for(ae.sort(kt);e=ae.shift();)e.__d&&(t=ae.length,r=void 0,i=void 0,s=(o=(n=e).__v).__e,(c=n.__P)&&(r=[],(i=J({},o)).__v=o.__v+1,Mt(c,o,i,n.__n,c.ownerSVGElement!==void 0,o.__h!=null?[s]:null,r,s??Re(o),o.__h),_r(r,o),o.__e!=s&&ar(o)),ae.length>t&&ae.sort(kt));qe.__r=0}function sr(e,t,n,r,i,o,s,c,_,h){var l,E,y,p,v,W,S,N=r&&r.__k||rr,I=N.length;for(n.__k=[],l=0;l<t.length;l++)if((p=n.__k[l]=(p=t[l])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?we(null,p,null,null,p):Ze(p)?we(X,{children:p},null,null,null):p.__b>0?we(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(y=N[l])===null||y&&p.key==y.key&&p.type===y.type)N[l]=void 0;else for(E=0;E<I;E++){if((y=N[E])&&p.key==y.key&&p.type===y.type){N[E]=void 0;break}y=null}Mt(e,p,y=y||Ve,i,o,s,c,_,h),v=p.__e,(E=p.ref)&&y.ref!=E&&(S||(S=[]),y.ref&&S.push(y.ref,null,p),S.push(E,p.__c||v,p)),v!=null?(W==null&&(W=v),typeof p.type=="function"&&p.__k===y.__k?p.__d=_=lr(p,_,e):_=cr(e,p,y,N,v,_),typeof n.type=="function"&&(n.__d=_)):_&&y.__e==_&&_.parentNode!=e&&(_=Re(y))}for(n.__e=W,l=I;l--;)N[l]!=null&&(typeof n.type=="function"&&N[l].__e!=null&&N[l].__e==n.__d&&(n.__d=ur(r).nextSibling),pr(N[l],N[l]));if(S)for(l=0;l<S.length;l++)fr(S[l],S[++l],S[++l])}function lr(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?lr(r,t,n):cr(n,r,r,i,r.__e,t));return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ze(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function cr(e,t,n,r,i,o){var s,c,_;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),s=null;else{for(c=o,_=0;(c=c.nextSibling)&&_<r.length;_+=1)if(c==i)break e;e.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function ur(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=ur(n)))return r}return null}function go(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||Ye(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||Ye(e,o,t[o],n[o],r)}function yn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||vo.test(t)?n:n+"px"}function Ye(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||yn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||yn(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?gn:vn,o):e.removeEventListener(t,o?gn:vn,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function vn(e){return this.l[e.type+!1](d.event?d.event(e):e)}function gn(e){return this.l[e.type+!0](d.event?d.event(e):e)}function Mt(e,t,n,r,i,o,s,c,_){var h,l,E,y,p,v,W,S,N,I,w,j,ce,ue,Ae,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(_=n.__h,c=t.__e=n.__e,t.__h=null,o=[c]),(h=d.__b)&&h(t);try{e:if(typeof P=="function"){if(S=t.props,N=(h=P.contextType)&&r[h.__c],I=h?N?N.props.value:h.__:r,n.__c?W=(l=t.__c=n.__c).__=l.__E:("prototype"in P&&P.prototype.render?t.__c=l=new P(S,I):(t.__c=l=new B(S,I),l.constructor=P,l.render=bo),N&&N.sub(l),l.props=S,l.state||(l.state={}),l.context=I,l.__n=r,E=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),P.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J({},l.__s)),J(l.__s,P.getDerivedStateFromProps(S,l.__s))),y=l.props,p=l.state,l.__v=t,E)P.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(P.getDerivedStateFromProps==null&&S!==y&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(S,I),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(S,l.__s,I)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(l.props=S,l.state=l.__s,l.__d=!1),l.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(_e){_e&&(_e.__=t)}),w=0;w<l._sb.length;w++)l.__h.push(l._sb[w]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(S,l.__s,I),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(y,p,v)})}if(l.context=I,l.props=S,l.__P=e,j=d.__r,ce=0,"prototype"in P&&P.prototype.render){for(l.state=l.__s,l.__d=!1,j&&j(t),h=l.render(l.props,l.state,l.context),ue=0;ue<l._sb.length;ue++)l.__h.push(l._sb[ue]);l._sb=[]}else do l.__d=!1,j&&j(t),h=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++ce<25);l.state=l.__s,l.getChildContext!=null&&(r=J(J({},r),l.getChildContext())),E||l.getSnapshotBeforeUpdate==null||(v=l.getSnapshotBeforeUpdate(y,p)),sr(e,Ze(Ae=h!=null&&h.type===X&&h.key==null?h.props.children:h)?Ae:[Ae],t,n,r,i,o,s,c,_),l.base=t.__e,t.__h=null,l.__h.length&&s.push(l),W&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Eo(n.__e,t,n,r,i,o,s,_);(h=d.diffed)&&h(t)}catch(_e){t.__v=null,(_||o!=null)&&(t.__e=c,t.__h=!!_,o[o.indexOf(c)]=null),d.__e(_e,t,n)}}function _r(e,t){d.__c&&d.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){d.__e(r,n.__v)}})}function Eo(e,t,n,r,i,o,s,c){var _,h,l,E=n.props,y=t.props,p=t.type,v=0;if(p==="svg"&&(i=!0),o!=null){for(;v<o.length;v++)if((_=o[v])&&"setAttribute"in _==!!p&&(p?_.localName===p:_.nodeType===3)){e=_,o[v]=null;break}}if(e==null){if(p===null)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,y.is&&y),o=null,c=!1}if(p===null)E===y||c&&e.data===y||(e.data=y);else{if(o=o&&xe.call(e.childNodes),h=(E=n.props||Ve).dangerouslySetInnerHTML,l=y.dangerouslySetInnerHTML,!c){if(o!=null)for(E={},v=0;v<e.attributes.length;v++)E[e.attributes[v].name]=e.attributes[v].value;(l||h)&&(l&&(h&&l.__html==h.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(go(e,y,E,i,c),l)t.__k=[];else if(sr(e,Ze(v=t.props.children)?v:[v],t,n,r,i&&p!=="foreignObject",o,s,o?o[0]:n.__k&&Re(n,0),c),o!=null)for(v=o.length;v--;)o[v]!=null&&or(o[v]);c||("value"in y&&(v=y.value)!==void 0&&(v!==e.value||p==="progress"&&!v||p==="option"&&v!==E.value)&&Ye(e,"value",v,E.value,!1),"checked"in y&&(v=y.checked)!==void 0&&v!==e.checked&&Ye(e,"checked",v,E.checked,!1))}return e}function fr(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){d.__e(r,n)}}function pr(e,t,n){var r,i;if(d.unmount&&d.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||fr(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){d.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&pr(r[i],t,n||typeof e.type!="function");n||e.__e==null||or(e.__e),e.__=e.__e=e.__d=void 0}function bo(e,t,n){return this.constructor(e,n)}function Ee(e,t,n){var r,i,o;d.__&&d.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],Mt(t,e=(!r&&n||t).__k=Y(X,null,[e]),i||Ve,Ve,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?xe.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),_r(o,e)}function dr(e,t){Ee(e,t,dr)}function To(e,t,n){var r,i,o,s,c=J({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:c[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?xe.call(arguments,2):n),we(e.type,c,r||e.key,i||e.ref,null)}function mr(e,t){var n={__c:t="__cC"+nr++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(c){c.__e=!0,Ct(c)})},this.sub=function(s){i.push(s);var c=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),c&&c.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}xe=rr.slice,d={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(c){e=c}throw e}},er=0,B.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ct(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ct(this))},B.prototype.render=X,ae=[],tr=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kt=function(e,t){return e.__v.__b-t.__v.__b},qe.__r=0,nr=0;var ee,T,ht,En,be=0,hr=[],ze=[],bn=d.__b,Tn=d.__r,An=d.diffed,Sn=d.__c,kn=d.unmount;function le(e,t){d.__h&&d.__h(T,e,be||t),be=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ze}),n.__[e]}function De(e){return be=1,Pt(Tr,e)}function Pt(e,t,n){var r=le(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Tr(void 0,t),function(c){var _=r.__N?r.__N[0]:r.__[0],h=r.t(_,c);_!==h&&(r.__N=[h,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.u)){var i=function(c,_,h){if(!r.__c.__H)return!0;var l=r.__c.__H.__.filter(function(y){return y.__c});if(l.every(function(y){return!y.__N}))return!o||o.call(this,c,_,h);var E=!1;return l.forEach(function(y){if(y.__N){var p=y.__[0];y.__=y.__N,y.__N=void 0,p!==y.__[0]&&(E=!0)}}),!(!E&&r.__c.props===c)&&(!o||o.call(this,c,_,h))};T.u=!0;var o=T.shouldComponentUpdate,s=T.componentWillUpdate;T.componentWillUpdate=function(c,_,h){if(this.__e){var l=o;o=void 0,i(c,_,h),o=l}s&&s.call(this,c,_,h)},T.shouldComponentUpdate=i}return r.__N||r.__}function Je(e,t){var n=le(ee++,3);!d.__s&&$t(n.__H,t)&&(n.__=e,n.i=t,T.__H.__h.push(n))}function Le(e,t){var n=le(ee++,4);!d.__s&&$t(n.__H,t)&&(n.__=e,n.i=t,T.__h.push(n))}function yr(e){return be=5,Qe(function(){return{current:e}},[])}function vr(e,t,n){be=6,Le(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Qe(e,t){var n=le(ee++,7);return $t(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function gr(e,t){return be=8,Qe(function(){return e},t)}function Er(e){var t=T.context[e.__c],n=le(ee++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function Ut(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function Ao(e){var t=le(ee++,10),n=De();return t.__=e,T.componentDidCatch||(T.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function br(){var e=le(ee++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function So(){for(var e;e=hr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(Ot),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){T=null,bn&&bn(e)},d.__r=function(e){Tn&&Tn(e),ee=0;var t=(T=e.__c).__H;t&&(ht===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ze,n.__N=n.i=void 0})):(t.__h.forEach(Be),t.__h.forEach(Ot),t.__h=[],ee=0)),ht=T},d.diffed=function(e){An&&An(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(hr.push(t)!==1&&En===d.requestAnimationFrame||((En=d.requestAnimationFrame)||ko)(So)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ze&&(n.__=n.__V),n.i=void 0,n.__V=ze})),ht=T=null},d.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Be),n.__h=n.__h.filter(function(r){return!r.__||Ot(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],d.__e(r,n.__v)}}),Sn&&Sn(e,t)},d.unmount=function(e){kn&&kn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Be(r)}catch(i){t=i}}),n.__H=void 0,t&&d.__e(t,n.__v))};var Cn=typeof requestAnimationFrame=="function";function ko(e){var t,n=function(){clearTimeout(r),Cn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Cn&&(t=requestAnimationFrame(n))}function Be(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Ot(e){var t=T;e.__c=e.__(),T=t}function $t(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Tr(e,t){return typeof t=="function"?t(e):t}/*! js-cookie v3.0.5 | MIT */function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var Co={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function wt(e,t){function n(i,o,s){if(!(typeof document>"u")){s=He({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var _ in s)s[_]&&(c+="; "+_,s[_]!==!0&&(c+="="+s[_].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},c=0;c<o.length;c++){var _=o[c].split("="),h=_.slice(1).join("=");try{var l=decodeURIComponent(_[0]);if(s[l]=e.read(h,l),i===l)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",He({},o,{expires:-1}))},withAttributes:function(i){return wt(this.converter,He({},this.attributes,i))},withConverter:function(i){return wt(He({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Nt=wt(Co,{path:"/"});function C(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function U(e){return function t(n){return arguments.length===0||C(n)?t:e.apply(this,arguments)}}function te(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return C(n)?t:U(function(i){return e(n,i)});default:return C(n)&&C(r)?t:C(n)?U(function(i){return e(i,r)}):C(r)?U(function(i){return e(n,i)}):e(n,r)}}}function Ar(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return C(n)?t:te(function(o,s){return e(n,o,s)});case 2:return C(n)&&C(r)?t:C(n)?te(function(o,s){return e(o,r,s)}):C(r)?te(function(o,s){return e(n,o,s)}):U(function(o){return e(n,r,o)});default:return C(n)&&C(r)&&C(i)?t:C(n)&&C(r)?te(function(o,s){return e(o,s,i)}):C(n)&&C(i)?te(function(o,s){return e(o,r,s)}):C(r)&&C(i)?te(function(o,s){return e(n,o,s)}):C(n)?U(function(o){return e(o,r,i)}):C(r)?U(function(o){return e(n,o,i)}):C(i)?U(function(o){return e(n,r,o)}):e(n,r,i)}}}const Oo=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function On(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function wn(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function wo(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function ne(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function No(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const yt=typeof Object.is=="function"?Object.is:No;var Nn=Object.prototype.toString,Sr=function(){return Nn.call(arguments)==="[object Arguments]"?function(t){return Nn.call(t)==="[object Arguments]"}:function(t){return ne("callee",t)}}(),Ro=!{toString:null}.propertyIsEnumerable("toString"),Rn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],xn=function(){return arguments.propertyIsEnumerable("length")}(),xo=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},Dn=U(typeof Object.keys=="function"&&!xn?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=xn&&Sr(t);for(n in t)ne(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(Ro)for(r=Rn.length-1;r>=0;)n=Rn[r],ne(n,t)&&!xo(i,n)&&(i[i.length]=n),r-=1;return i}),Ln=U(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function In(e,t,n,r){var i=On(e),o=On(t);function s(c,_){return Ft(c,_,n.slice(),r.slice())}return!wn(function(c,_){return!wn(s,_,c)},o,i)}function Ft(e,t,n,r){if(yt(e,t))return!0;var i=Ln(e);if(i!==Ln(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&wo(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&yt(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!yt(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:In(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:In(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Dn(e);if(s.length!==Dn(t).length)return!1;var c=n.concat([e]),_=r.concat([t]);for(o=s.length-1;o>=0;){var h=s[o];if(!(ne(h,t)&&Ft(t[h],e[h],c,_)))return!1;o-=1}return!0}var Do=te(function(t,n){return Ft(t,n,[],[])});function Rt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Lo(e){return Object.prototype.toString.call(e)==="[object String]"}var kr=U(function(t){return t==null});function Io(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var Mo=U(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():Oo(t)?[]:Lo(t)?"":Rt(t)?{}:Sr(t)?function(){return arguments}():Io(t)?t.constructor.from(""):void 0}),Po=U(function(t){return t!=null&&Do(t,Mo(t))});const Uo=Po;var $o=U(function(t){return!kr(t)});const Ht=$o;var Fo=Ar(function(t,n,r){var i={},o;n=n||{},r=r||{};for(o in n)ne(o,n)&&(i[o]=ne(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)ne(o,r)&&!ne(o,i)&&(i[o]=r[o]);return i}),Ho=Ar(function e(t,n,r){return Fo(function(i,o,s){return Rt(o)&&Rt(s)?e(t,o,s):t(i,o,s)},n,r)}),Wo=te(function(t,n){return Ho(function(r,i,o){return o},t,n)});const jo=Wo,Mn=e=>{let t;const n=new Set,r=(_,h)=>{const l=typeof _=="function"?_(t):_;if(!Object.is(l,t)){const E=t;t=h??typeof l!="object"?l:Object.assign({},t,l),n.forEach(y=>y(t,E))}},i=()=>t,c={setState:r,getState:i,subscribe:_=>(n.add(_),()=>n.delete(_)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,c),c},zo=e=>e?Mn(e):Mn;function Cr(e,t){for(var n in t)e[n]=t[n];return e}function xt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function vt(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Xe(e){this.props=e}function Or(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:xt(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Y(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xe.prototype=new B).isPureReactComponent=!0,Xe.prototype.shouldComponentUpdate=function(e,t){return xt(this.props,e)||xt(this.state,t)};var Pn=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Pn&&Pn(e)};var Bo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function wr(e){function t(n){var r=Cr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=Bo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Un=function(e,t){return e==null?null:Q(Q(e).map(t))},Nr={map:Un,forEach:Un,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Go=d.__e;d.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Go(e,t,n,r)};var $n=d.unmount;function Rr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=Cr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Rr(r,t,n)})),e}function xr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return xr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Ne(){this.__u=0,this.t=null,this.__b=null}function Dr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lr(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Y(n,o)}return i.displayName="Lazy",i.__f=!0,i}function ge(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),$n&&$n(e)},(Ne.prototype=new B).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=Dr(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(c):c())};n.__R=s;var c=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=xr(h,h.__c.__P,h.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}},_=t.__h===!0;r.__u++||_||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Ne.prototype.componentWillUnmount=function(){this.t=[]},Ne.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Rr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Y(X,null,e.fallback);return i&&(i.__h=null),[Y(X,null,t.__a?null:e.children),i]};var Fn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Vo(e){return this.getChildContext=function(){return e.context},e.children}function qo(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ee(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ee(Y(Vo,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Ir(e,t){var n=Y(qo,{__v:e,i:t});return n.containerInfo=t,n}(ge.prototype=new B).__a=function(e){var t=this,n=Dr(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Fn(t,e,r)):i()};n?n(o):o()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Fn(e,n,t)})};var Mr=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Xo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ko=/[A-Z0-9]/g,Zo=typeof document<"u",Jo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Pr(e,t,n){return t.__k==null&&(t.textContent=""),Ee(e,t),typeof n=="function"&&n(),e?e.__c:null}function Ur(e,t,n){return dr(e,t),typeof n=="function"&&n(),e?e.__c:null}B.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(B.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hn=d.event;function Qo(){}function ei(){return this.cancelBubble}function ti(){return this.defaultPrevented}d.event=function(e){return Hn&&(e=Hn(e)),e.persist=Qo,e.isPropagationStopped=ei,e.isDefaultPrevented=ti,e.nativeEvent=e};var Wt,ni={enumerable:!1,configurable:!0,get:function(){return this.class}},Wn=d.vnode;d.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var o in n){var s=n[o];if(!(o==="value"&&"defaultValue"in n&&s==null||Zo&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var c=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":c==="ondoubleclick"?o="ondblclick":c!=="onchange"||r!=="input"&&r!=="textarea"||Jo(n.type)?c==="onfocus"?o="onfocusin":c==="onblur"?o="onfocusout":Xo.test(o)?o=c:r.indexOf("-")===-1&&Yo.test(o)?o=o.replace(Ko,"-$&").toLowerCase():s===null&&(s=void 0):c=o="oninput",c==="oninput"&&i[o=c]&&(o="oninputCapture"),i[o]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Q(n.children).forEach(function(_){_.props.selected=i.value.indexOf(_.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Q(n.children).forEach(function(_){_.props.selected=i.multiple?i.defaultValue.indexOf(_.props.value)!=-1:i.defaultValue==_.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",ni)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Mr,Wn&&Wn(e)};var jn=d.__r;d.__r=function(e){jn&&jn(e),Wt=e.__c};var zn=d.diffed;d.diffed=function(e){zn&&zn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Wt=null};var $r={ReactCurrentDispatcher:{current:{readContext:function(e){return Wt.__n[e.__c].props.value}}}},ri="17.0.2";function Fr(e){return Y.bind(null,e)}function jt(e){return!!e&&e.$$typeof===Mr}function Hr(e){return jt(e)?To.apply(null,arguments):e}function Wr(e){return!!e.__k&&(Ee(null,e),!0)}function jr(e){return e&&(e.base||e.nodeType===1&&e)||null}var zr=function(e,t){return e(t)},Br=function(e,t){return e(t)},Gr=X;function zt(e){e()}function Vr(e){return e}function qr(){return[!1,zt]}var Yr=Le;function Xr(e,t){var n=t(),r=De({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Le(function(){i.__=n,i.v=t,vt(i.__,t())||o({h:i})},[e,n,t]),Je(function(){return vt(i.__,i.v())||o({h:i}),e(function(){vt(i.__,i.v())||o({h:i})})},[e]),n}var oi={useState:De,useId:br,useReducer:Pt,useEffect:Je,useLayoutEffect:Le,useInsertionEffect:Yr,useTransition:qr,useDeferredValue:Vr,useSyncExternalStore:Xr,startTransition:zt,useRef:yr,useImperativeHandle:vr,useMemo:Qe,useCallback:gr,useContext:Er,useDebugValue:Ut,version:"17.0.2",Children:Nr,render:Pr,hydrate:Ur,unmountComponentAtNode:Wr,createPortal:Ir,createElement:Y,createContext:mr,createFactory:Fr,cloneElement:Hr,createRef:ir,Fragment:X,isValidElement:jt,findDOMNode:jr,Component:B,PureComponent:Xe,memo:Or,forwardRef:wr,flushSync:Br,unstable_batchedUpdates:zr,StrictMode:Gr,Suspense:Ne,SuspenseList:ge,lazy:Lr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$r};const ii=Object.freeze(Object.defineProperty({__proto__:null,Children:Nr,Component:B,Fragment:X,PureComponent:Xe,StrictMode:Gr,Suspense:Ne,SuspenseList:ge,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:$r,cloneElement:Hr,createContext:mr,createElement:Y,createFactory:Fr,createPortal:Ir,createRef:ir,default:oi,findDOMNode:jr,flushSync:Br,forwardRef:wr,hydrate:Ur,isValidElement:jt,lazy:Lr,memo:Or,render:Pr,startTransition:zt,unmountComponentAtNode:Wr,unstable_batchedUpdates:zr,useCallback:gr,useContext:Er,useDebugValue:Ut,useDeferredValue:Vr,useEffect:Je,useErrorBoundary:Ao,useId:br,useImperativeHandle:vr,useInsertionEffect:Yr,useLayoutEffect:Le,useMemo:Qe,useReducer:Pt,useRef:yr,useState:De,useSyncExternalStore:Xr,useTransition:qr,version:ri},Symbol.toStringTag,{value:"Module"}));function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function si(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Kr={exports:{}},Zr={};const Jr=si(ii);var Qr={exports:{}},eo={};/**
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var xe,d,Qn,ae,hn,er,kt,tr,Ve={},nr=[],yo=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ze=Array.isArray;function J(e,t){for(var n in t)e[n]=t[n];return e}function rr(e){var t=e.parentNode;t&&t.removeChild(e)}function Y(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?xe.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ne(e,s,r,i,null)}function Ne(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:i??++Qn};return i==null&&d.vnode!=null&&d.vnode(o),o}function or(){return{current:null}}function X(e){return e.children}function B(e,t){this.props=e,this.context=t}function Re(e,t){if(t==null)return e.__?Re(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Re(e):null}function ir(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return ir(e)}}function Ot(e){(!e.__d&&(e.__d=!0)&&ae.push(e)&&!qe.__r++||hn!==d.debounceRendering)&&((hn=d.debounceRendering)||er)(qe)}function qe(){var e,t,n,r,i,o,s,u;for(ae.sort(kt);e=ae.shift();)e.__d&&(t=ae.length,r=void 0,i=void 0,s=(o=(n=e).__v).__e,(u=n.__P)&&(r=[],(i=J({},o)).__v=o.__v+1,Mt(u,o,i,n.__n,u.ownerSVGElement!==void 0,o.__h!=null?[s]:null,r,s??Re(o),o.__h),cr(r,o),o.__e!=s&&ir(o)),ae.length>t&&ae.sort(kt));qe.__r=0}function ar(e,t,n,r,i,o,s,u,_,h){var l,E,y,p,v,W,S,w=r&&r.__k||nr,I=w.length;for(n.__k=[],l=0;l<t.length;l++)if((p=n.__k[l]=(p=t[l])==null||typeof p=="boolean"||typeof p=="function"?null:typeof p=="string"||typeof p=="number"||typeof p=="bigint"?Ne(null,p,null,null,p):Ze(p)?Ne(X,{children:p},null,null,null):p.__b>0?Ne(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)!=null){if(p.__=n,p.__b=n.__b+1,(y=w[l])===null||y&&p.key==y.key&&p.type===y.type)w[l]=void 0;else for(E=0;E<I;E++){if((y=w[E])&&p.key==y.key&&p.type===y.type){w[E]=void 0;break}y=null}Mt(e,p,y=y||Ve,i,o,s,u,_,h),v=p.__e,(E=p.ref)&&y.ref!=E&&(S||(S=[]),y.ref&&S.push(y.ref,null,p),S.push(E,p.__c||v,p)),v!=null?(W==null&&(W=v),typeof p.type=="function"&&p.__k===y.__k?p.__d=_=sr(p,_,e):_=lr(e,p,y,w,v,_),typeof n.type=="function"&&(n.__d=_)):_&&y.__e==_&&_.parentNode!=e&&(_=Re(y))}for(n.__e=W,l=I;l--;)w[l]!=null&&(typeof n.type=="function"&&w[l].__e!=null&&w[l].__e==n.__d&&(n.__d=ur(r).nextSibling),fr(w[l],w[l]));if(S)for(l=0;l<S.length;l++)_r(S[l],S[++l],S[++l])}function sr(e,t,n){for(var r,i=e.__k,o=0;i&&o<i.length;o++)(r=i[o])&&(r.__=e,t=typeof r.type=="function"?sr(r,t,n):lr(n,r,r,i,r.__e,t));return t}function Q(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ze(e)?e.some(function(n){Q(n,t)}):t.push(e)),t}function lr(e,t,n,r,i,o){var s,u,_;if(t.__d!==void 0)s=t.__d,t.__d=void 0;else if(n==null||i!=o||i.parentNode==null)e:if(o==null||o.parentNode!==e)e.appendChild(i),s=null;else{for(u=o,_=0;(u=u.nextSibling)&&_<r.length;_+=1)if(u==i)break e;e.insertBefore(i,o),s=o}return s!==void 0?s:i.nextSibling}function ur(e){var t,n,r;if(e.type==null||typeof e.type=="string")return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=ur(n)))return r}return null}function vo(e,t,n,r,i){var o;for(o in n)o==="children"||o==="key"||o in t||Ye(e,o,null,n[o],r);for(o in t)i&&typeof t[o]!="function"||o==="children"||o==="key"||o==="value"||o==="checked"||n[o]===t[o]||Ye(e,o,t[o],n[o],r)}function yn(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||yo.test(t)?n:n+"px"}function Ye(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||yn(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||yn(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r||e.addEventListener(t,o?gn:vn,o):e.removeEventListener(t,o?gn:vn,o);else if(t!=="dangerouslySetInnerHTML"){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function vn(e){return this.l[e.type+!1](d.event?d.event(e):e)}function gn(e){return this.l[e.type+!0](d.event?d.event(e):e)}function Mt(e,t,n,r,i,o,s,u,_){var h,l,E,y,p,v,W,S,w,I,N,j,ue,ce,Ae,P=t.type;if(t.constructor!==void 0)return null;n.__h!=null&&(_=n.__h,u=t.__e=n.__e,t.__h=null,o=[u]),(h=d.__b)&&h(t);try{e:if(typeof P=="function"){if(S=t.props,w=(h=P.contextType)&&r[h.__c],I=h?w?w.props.value:h.__:r,n.__c?W=(l=t.__c=n.__c).__=l.__E:("prototype"in P&&P.prototype.render?t.__c=l=new P(S,I):(t.__c=l=new B(S,I),l.constructor=P,l.render=Eo),w&&w.sub(l),l.props=S,l.state||(l.state={}),l.context=I,l.__n=r,E=l.__d=!0,l.__h=[],l._sb=[]),l.__s==null&&(l.__s=l.state),P.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=J({},l.__s)),J(l.__s,P.getDerivedStateFromProps(S,l.__s))),y=l.props,p=l.state,l.__v=t,E)P.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(P.getDerivedStateFromProps==null&&S!==y&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(S,I),!l.__e&&l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(S,l.__s,I)===!1||t.__v===n.__v){for(t.__v!==n.__v&&(l.props=S,l.state=l.__s,l.__d=!1),l.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(_e){_e&&(_e.__=t)}),N=0;N<l._sb.length;N++)l.__h.push(l._sb[N]);l._sb=[],l.__h.length&&s.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(S,l.__s,I),l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(y,p,v)})}if(l.context=I,l.props=S,l.__P=e,j=d.__r,ue=0,"prototype"in P&&P.prototype.render){for(l.state=l.__s,l.__d=!1,j&&j(t),h=l.render(l.props,l.state,l.context),ce=0;ce<l._sb.length;ce++)l.__h.push(l._sb[ce]);l._sb=[]}else do l.__d=!1,j&&j(t),h=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++ue<25);l.state=l.__s,l.getChildContext!=null&&(r=J(J({},r),l.getChildContext())),E||l.getSnapshotBeforeUpdate==null||(v=l.getSnapshotBeforeUpdate(y,p)),ar(e,Ze(Ae=h!=null&&h.type===X&&h.key==null?h.props.children:h)?Ae:[Ae],t,n,r,i,o,s,u,_),l.base=t.__e,t.__h=null,l.__h.length&&s.push(l),W&&(l.__E=l.__=null),l.__e=!1}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=go(n.__e,t,n,r,i,o,s,_);(h=d.diffed)&&h(t)}catch(_e){t.__v=null,(_||o!=null)&&(t.__e=u,t.__h=!!_,o[o.indexOf(u)]=null),d.__e(_e,t,n)}}function cr(e,t){d.__c&&d.__c(t,e),e.some(function(n){try{e=n.__h,n.__h=[],e.some(function(r){r.call(n)})}catch(r){d.__e(r,n.__v)}})}function go(e,t,n,r,i,o,s,u){var _,h,l,E=n.props,y=t.props,p=t.type,v=0;if(p==="svg"&&(i=!0),o!=null){for(;v<o.length;v++)if((_=o[v])&&"setAttribute"in _==!!p&&(p?_.localName===p:_.nodeType===3)){e=_,o[v]=null;break}}if(e==null){if(p===null)return document.createTextNode(y);e=i?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,y.is&&y),o=null,u=!1}if(p===null)E===y||u&&e.data===y||(e.data=y);else{if(o=o&&xe.call(e.childNodes),h=(E=n.props||Ve).dangerouslySetInnerHTML,l=y.dangerouslySetInnerHTML,!u){if(o!=null)for(E={},v=0;v<e.attributes.length;v++)E[e.attributes[v].name]=e.attributes[v].value;(l||h)&&(l&&(h&&l.__html==h.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(vo(e,y,E,i,u),l)t.__k=[];else if(ar(e,Ze(v=t.props.children)?v:[v],t,n,r,i&&p!=="foreignObject",o,s,o?o[0]:n.__k&&Re(n,0),u),o!=null)for(v=o.length;v--;)o[v]!=null&&rr(o[v]);u||("value"in y&&(v=y.value)!==void 0&&(v!==e.value||p==="progress"&&!v||p==="option"&&v!==E.value)&&Ye(e,"value",v,E.value,!1),"checked"in y&&(v=y.checked)!==void 0&&v!==e.checked&&Ye(e,"checked",v,E.checked,!1))}return e}function _r(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){d.__e(r,n)}}function fr(e,t,n){var r,i;if(d.unmount&&d.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||_r(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){d.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&fr(r[i],t,n||typeof e.type!="function");n||e.__e==null||rr(e.__e),e.__=e.__e=e.__d=void 0}function Eo(e,t,n){return this.constructor(e,n)}function Ee(e,t,n){var r,i,o;d.__&&d.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],Mt(t,e=(!r&&n||t).__k=Y(X,null,[e]),i||Ve,Ve,t.ownerSVGElement!==void 0,!r&&n?[n]:i?null:t.firstChild?xe.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r),cr(o,e)}function pr(e,t){Ee(e,t,pr)}function bo(e,t,n){var r,i,o,s,u=J({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:u[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(u.children=arguments.length>3?xe.call(arguments,2):n),Ne(e.type,u,r||e.key,i||e.ref,null)}function dr(e,t){var n={__c:t="__cC"+tr++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=[],(o={})[t]=this,this.getChildContext=function(){return o},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.some(function(u){u.__e=!0,Ot(u)})},this.sub=function(s){i.push(s);var u=s.componentWillUnmount;s.componentWillUnmount=function(){i.splice(i.indexOf(s),1),u&&u.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}xe=nr.slice,d={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(u){e=u}throw e}},Qn=0,B.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=J({},this.state),typeof e=="function"&&(e=e(J({},n),this.props)),e&&J(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ot(this))},B.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ot(this))},B.prototype.render=X,ae=[],er=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,kt=function(e,t){return e.__v.__b-t.__v.__b},qe.__r=0,tr=0;var ee,T,ht,En,be=0,mr=[],ze=[],bn=d.__b,Tn=d.__r,An=d.diffed,Sn=d.__c,kn=d.unmount;function le(e,t){d.__h&&d.__h(T,e,be||t),be=0;var n=T.__H||(T.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ze}),n.__[e]}function De(e){return be=1,Pt(br,e)}function Pt(e,t,n){var r=le(ee++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):br(void 0,t),function(u){var _=r.__N?r.__N[0]:r.__[0],h=r.t(_,u);_!==h&&(r.__N=[h,r.__[1]],r.__c.setState({}))}],r.__c=T,!T.u)){var i=function(u,_,h){if(!r.__c.__H)return!0;var l=r.__c.__H.__.filter(function(y){return y.__c});if(l.every(function(y){return!y.__N}))return!o||o.call(this,u,_,h);var E=!1;return l.forEach(function(y){if(y.__N){var p=y.__[0];y.__=y.__N,y.__N=void 0,p!==y.__[0]&&(E=!0)}}),!(!E&&r.__c.props===u)&&(!o||o.call(this,u,_,h))};T.u=!0;var o=T.shouldComponentUpdate,s=T.componentWillUpdate;T.componentWillUpdate=function(u,_,h){if(this.__e){var l=o;o=void 0,i(u,_,h),o=l}s&&s.call(this,u,_,h)},T.shouldComponentUpdate=i}return r.__N||r.__}function Je(e,t){var n=le(ee++,3);!d.__s&&$t(n.__H,t)&&(n.__=e,n.i=t,T.__H.__h.push(n))}function Le(e,t){var n=le(ee++,4);!d.__s&&$t(n.__H,t)&&(n.__=e,n.i=t,T.__h.push(n))}function hr(e){return be=5,Qe(function(){return{current:e}},[])}function yr(e,t,n){be=6,Le(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Qe(e,t){var n=le(ee++,7);return $t(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function vr(e,t){return be=8,Qe(function(){return e},t)}function gr(e){var t=T.context[e.__c],n=le(ee++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(T)),t.props.value):e.__}function Ut(e,t){d.useDebugValue&&d.useDebugValue(t?t(e):e)}function To(e){var t=le(ee++,10),n=De();return t.__=e,T.componentDidCatch||(T.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Er(){var e=le(ee++,11);if(!e.__){for(var t=T.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ao(){for(var e;e=mr.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(Ct),e.__H.__h=[]}catch(t){e.__H.__h=[],d.__e(t,e.__v)}}d.__b=function(e){T=null,bn&&bn(e)},d.__r=function(e){Tn&&Tn(e),ee=0;var t=(T=e.__c).__H;t&&(ht===T?(t.__h=[],T.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=ze,n.__N=n.i=void 0})):(t.__h.forEach(Be),t.__h.forEach(Ct),t.__h=[],ee=0)),ht=T},d.diffed=function(e){An&&An(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(mr.push(t)!==1&&En===d.requestAnimationFrame||((En=d.requestAnimationFrame)||So)(Ao)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==ze&&(n.__=n.__V),n.i=void 0,n.__V=ze})),ht=T=null},d.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Be),n.__h=n.__h.filter(function(r){return!r.__||Ct(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],d.__e(r,n.__v)}}),Sn&&Sn(e,t)},d.unmount=function(e){kn&&kn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Be(r)}catch(i){t=i}}),n.__H=void 0,t&&d.__e(t,n.__v))};var On=typeof requestAnimationFrame=="function";function So(e){var t,n=function(){clearTimeout(r),On&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);On&&(t=requestAnimationFrame(n))}function Be(e){var t=T,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),T=t}function Ct(e){var t=T;e.__c=e.__(),T=t}function $t(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function br(e,t){return typeof t=="function"?t(e):t}/*! js-cookie v3.0.5 | MIT */function He(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var ko={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Nt(e,t){function n(i,o,s){if(!(typeof document>"u")){s=He({},t,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var _ in s)s[_]&&(u+="; "+_,s[_]!==!0&&(u+="="+s[_].split(";")[0]));return document.cookie=i+"="+e.write(o,i)+u}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],s={},u=0;u<o.length;u++){var _=o[u].split("="),h=_.slice(1).join("=");try{var l=decodeURIComponent(_[0]);if(s[l]=e.read(h,l),i===l)break}catch{}}return i?s[i]:s}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",He({},o,{expires:-1}))},withAttributes:function(i){return Nt(this.converter,He({},this.attributes,i))},withConverter:function(i){return Nt(He({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var wt=Nt(ko,{path:"/"});function O(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function U(e){return function t(n){return arguments.length===0||O(n)?t:e.apply(this,arguments)}}function te(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return O(n)?t:U(function(i){return e(n,i)});default:return O(n)&&O(r)?t:O(n)?U(function(i){return e(i,r)}):O(r)?U(function(i){return e(n,i)}):e(n,r)}}}function Tr(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return O(n)?t:te(function(o,s){return e(n,o,s)});case 2:return O(n)&&O(r)?t:O(n)?te(function(o,s){return e(o,r,s)}):O(r)?te(function(o,s){return e(n,o,s)}):U(function(o){return e(n,r,o)});default:return O(n)&&O(r)&&O(i)?t:O(n)&&O(r)?te(function(o,s){return e(o,s,i)}):O(n)&&O(i)?te(function(o,s){return e(o,r,s)}):O(r)&&O(i)?te(function(o,s){return e(n,o,s)}):O(n)?U(function(o){return e(o,r,i)}):O(r)?U(function(o){return e(n,o,i)}):O(i)?U(function(o){return e(n,r,o)}):e(n,r,i)}}}const Oo=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function Cn(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function Nn(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function Co(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function ne(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function No(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const yt=typeof Object.is=="function"?Object.is:No;var wn=Object.prototype.toString,Ar=function(){return wn.call(arguments)==="[object Arguments]"?function(t){return wn.call(t)==="[object Arguments]"}:function(t){return ne("callee",t)}}(),wo=!{toString:null}.propertyIsEnumerable("toString"),Rn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],xn=function(){return arguments.propertyIsEnumerable("length")}(),Ro=function(t,n){for(var r=0;r<t.length;){if(t[r]===n)return!0;r+=1}return!1},Dn=U(typeof Object.keys=="function"&&!xn?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var n,r,i=[],o=xn&&Ar(t);for(n in t)ne(n,t)&&(!o||n!=="length")&&(i[i.length]=n);if(wo)for(r=Rn.length-1;r>=0;)n=Rn[r],ne(n,t)&&!Ro(i,n)&&(i[i.length]=n),r-=1;return i}),Ln=U(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function In(e,t,n,r){var i=Cn(e),o=Cn(t);function s(u,_){return Ft(u,_,n.slice(),r.slice())}return!Nn(function(u,_){return!Nn(s,_,u)},o,i)}function Ft(e,t,n,r){if(yt(e,t))return!0;var i=Ln(e);if(i!==Ln(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&Co(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&yt(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!yt(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var o=n.length-1;o>=0;){if(n[o]===e)return r[o]===t;o-=1}switch(i){case"Map":return e.size!==t.size?!1:In(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size!==t.size?!1:In(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var s=Dn(e);if(s.length!==Dn(t).length)return!1;var u=n.concat([e]),_=r.concat([t]);for(o=s.length-1;o>=0;){var h=s[o];if(!(ne(h,t)&&Ft(t[h],e[h],u,_)))return!1;o-=1}return!0}var xo=te(function(t,n){return Ft(t,n,[],[])});function Rt(e){return Object.prototype.toString.call(e)==="[object Object]"}function Do(e){return Object.prototype.toString.call(e)==="[object String]"}var Sr=U(function(t){return t==null});function Lo(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var Io=U(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():Oo(t)?[]:Do(t)?"":Rt(t)?{}:Ar(t)?function(){return arguments}():Lo(t)?t.constructor.from(""):void 0}),Mo=U(function(t){return t!=null&&xo(t,Io(t))});const Po=Mo;var Uo=U(function(t){return!Sr(t)});const Ht=Uo;var $o=Tr(function(t,n,r){var i={},o;n=n||{},r=r||{};for(o in n)ne(o,n)&&(i[o]=ne(o,r)?t(o,n[o],r[o]):n[o]);for(o in r)ne(o,r)&&!ne(o,i)&&(i[o]=r[o]);return i}),Fo=Tr(function e(t,n,r){return $o(function(i,o,s){return Rt(o)&&Rt(s)?e(t,o,s):t(i,o,s)},n,r)}),Ho=te(function(t,n){return Fo(function(r,i,o){return o},t,n)});const Wo=Ho,Mn=e=>{let t;const n=new Set,r=(_,h)=>{const l=typeof _=="function"?_(t):_;if(!Object.is(l,t)){const E=t;t=h??typeof l!="object"?l:Object.assign({},t,l),n.forEach(y=>y(t,E))}},i=()=>t,u={setState:r,getState:i,subscribe:_=>(n.add(_),()=>n.delete(_)),destroy:()=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,i,u),u},jo=e=>e?Mn(e):Mn;function kr(e,t){for(var n in t)e[n]=t[n];return e}function xt(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function vt(e,t){return e===t&&(e!==0||1/e==1/t)||e!=e&&t!=t}function Xe(e){this.props=e}function Or(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:xt(this.props,i)}function r(i){return this.shouldComponentUpdate=n,Y(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xe.prototype=new B).isPureReactComponent=!0,Xe.prototype.shouldComponentUpdate=function(e,t){return xt(this.props,e)||xt(this.state,t)};var Pn=d.__b;d.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Pn&&Pn(e)};var zo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Cr(e){function t(n){var r=kr({},n);return delete r.ref,e(r,n.ref||null)}return t.$$typeof=zo,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Un=function(e,t){return e==null?null:Q(Q(e).map(t))},Nr={map:Un,forEach:Un,count:function(e){return e?Q(e).length:0},only:function(e){var t=Q(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Q},Bo=d.__e;d.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Bo(e,t,n,r)};var $n=d.unmount;function wr(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=kr({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return wr(r,t,n)})),e}function Rr(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Rr(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function we(){this.__u=0,this.t=null,this.__b=null}function xr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Dr(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return Y(n,o)}return i.displayName="Lazy",i.__f=!0,i}function ge(){this.u=null,this.o=null}d.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&e.__h===!0&&(e.type=null),$n&&$n(e)},(we.prototype=new B).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=xr(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(u):u())};n.__R=s;var u=function(){if(!--r.__u){if(r.state.__a){var h=r.state.__a;r.__v.__k[0]=Rr(h,h.__c.__P,h.__c.__O)}var l;for(r.setState({__a:r.__b=null});l=r.t.pop();)l.forceUpdate()}},_=t.__h===!0;r.__u++||_||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},we.prototype.componentWillUnmount=function(){this.t=[]},we.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=wr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Y(X,null,e.fallback);return i&&(i.__h=null),[Y(X,null,t.__a?null:e.children),i]};var Fn=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Go(e){return this.getChildContext=function(){return e.context},e.children}function Vo(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ee(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(r){this.childNodes.push(r),t.i.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Ee(Y(Go,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function Lr(e,t){var n=Y(Vo,{__v:e,i:t});return n.containerInfo=t,n}(ge.prototype=new B).__a=function(e){var t=this,n=xr(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Fn(t,e,r)):i()};n?n(o):o()}},ge.prototype.render=function(e){this.u=null,this.o=new Map;var t=Q(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},ge.prototype.componentDidUpdate=ge.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){Fn(e,n,t)})};var Ir=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,qo=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Yo=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Xo=/[A-Z0-9]/g,Ko=typeof document<"u",Zo=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Mr(e,t,n){return t.__k==null&&(t.textContent=""),Ee(e,t),typeof n=="function"&&n(),e?e.__c:null}function Pr(e,t,n){return pr(e,t),typeof n=="function"&&n(),e?e.__c:null}B.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(B.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Hn=d.event;function Jo(){}function Qo(){return this.cancelBubble}function ei(){return this.defaultPrevented}d.event=function(e){return Hn&&(e=Hn(e)),e.persist=Jo,e.isPropagationStopped=Qo,e.isDefaultPrevented=ei,e.nativeEvent=e};var Wt,ti={enumerable:!1,configurable:!0,get:function(){return this.class}},Wn=d.vnode;d.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={};for(var o in n){var s=n[o];if(!(o==="value"&&"defaultValue"in n&&s==null||Ko&&o==="children"&&r==="noscript"||o==="class"||o==="className")){var u=o.toLowerCase();o==="defaultValue"&&"value"in n&&n.value==null?o="value":o==="download"&&s===!0?s="":u==="ondoubleclick"?o="ondblclick":u!=="onchange"||r!=="input"&&r!=="textarea"||Zo(n.type)?u==="onfocus"?o="onfocusin":u==="onblur"?o="onfocusout":Yo.test(o)?o=u:r.indexOf("-")===-1&&qo.test(o)?o=o.replace(Xo,"-$&").toLowerCase():s===null&&(s=void 0):u=o="oninput",u==="oninput"&&i[o=u]&&(o="oninputCapture"),i[o]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Q(n.children).forEach(function(_){_.props.selected=i.value.indexOf(_.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Q(n.children).forEach(function(_){_.props.selected=i.multiple?i.defaultValue.indexOf(_.props.value)!=-1:i.defaultValue==_.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",ti)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ir,Wn&&Wn(e)};var jn=d.__r;d.__r=function(e){jn&&jn(e),Wt=e.__c};var zn=d.diffed;d.diffed=function(e){zn&&zn(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Wt=null};var Ur={ReactCurrentDispatcher:{current:{readContext:function(e){return Wt.__n[e.__c].props.value}}}},ni="17.0.2";function $r(e){return Y.bind(null,e)}function jt(e){return!!e&&e.$$typeof===Ir}function Fr(e){return jt(e)?bo.apply(null,arguments):e}function Hr(e){return!!e.__k&&(Ee(null,e),!0)}function Wr(e){return e&&(e.base||e.nodeType===1&&e)||null}var jr=function(e,t){return e(t)},zr=function(e,t){return e(t)},Br=X;function zt(e){e()}function Gr(e){return e}function Vr(){return[!1,zt]}var qr=Le;function Yr(e,t){var n=t(),r=De({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Le(function(){i.__=n,i.v=t,vt(i.__,t())||o({h:i})},[e,n,t]),Je(function(){return vt(i.__,i.v())||o({h:i}),e(function(){vt(i.__,i.v())||o({h:i})})},[e]),n}var ri={useState:De,useId:Er,useReducer:Pt,useEffect:Je,useLayoutEffect:Le,useInsertionEffect:qr,useTransition:Vr,useDeferredValue:Gr,useSyncExternalStore:Yr,startTransition:zt,useRef:hr,useImperativeHandle:yr,useMemo:Qe,useCallback:vr,useContext:gr,useDebugValue:Ut,version:"17.0.2",Children:Nr,render:Mr,hydrate:Pr,unmountComponentAtNode:Hr,createPortal:Lr,createElement:Y,createContext:dr,createFactory:$r,cloneElement:Fr,createRef:or,Fragment:X,isValidElement:jt,findDOMNode:Wr,Component:B,PureComponent:Xe,memo:Or,forwardRef:Cr,flushSync:zr,unstable_batchedUpdates:jr,StrictMode:Br,Suspense:we,SuspenseList:ge,lazy:Dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ur};const oi=Object.freeze(Object.defineProperty({__proto__:null,Children:Nr,Component:B,Fragment:X,PureComponent:Xe,StrictMode:Br,Suspense:we,SuspenseList:ge,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Ur,cloneElement:Fr,createContext:dr,createElement:Y,createFactory:$r,createPortal:Lr,createRef:or,default:ri,findDOMNode:Wr,flushSync:zr,forwardRef:Cr,hydrate:Pr,isValidElement:jt,lazy:Dr,memo:Or,render:Mr,startTransition:zt,unmountComponentAtNode:Hr,unstable_batchedUpdates:jr,useCallback:vr,useContext:gr,useDebugValue:Ut,useDeferredValue:Gr,useEffect:Je,useErrorBoundary:To,useId:Er,useImperativeHandle:yr,useInsertionEffect:qr,useLayoutEffect:Le,useMemo:Qe,useReducer:Pt,useRef:hr,useState:De,useSyncExternalStore:Yr,useTransition:Vr,version:ni},Symbol.toStringTag,{value:"Module"}));function ii(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ai(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Xr={exports:{}},Kr={};const Zr=ai(oi);var Jr={exports:{}},Qr={};/**
2
2
  * @license React
3
3
  * use-sync-external-store-shim.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Te=Jr;function li(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ci=typeof Object.is=="function"?Object.is:li,ui=Te.useState,_i=Te.useEffect,fi=Te.useLayoutEffect,pi=Te.useDebugValue;function di(e,t){var n=t(),r=ui({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return fi(function(){i.value=n,i.getSnapshot=t,gt(i)&&o({inst:i})},[e,n,t]),_i(function(){return gt(i)&&o({inst:i}),e(function(){gt(i)&&o({inst:i})})},[e]),pi(n),n}function gt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ci(e,n)}catch{return!0}}function mi(e,t){return t()}var hi=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?mi:di;eo.useSyncExternalStore=Te.useSyncExternalStore!==void 0?Te.useSyncExternalStore:hi;Qr.exports=eo;var yi=Qr.exports;/**
9
+ */var Te=Zr;function si(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var li=typeof Object.is=="function"?Object.is:si,ui=Te.useState,ci=Te.useEffect,_i=Te.useLayoutEffect,fi=Te.useDebugValue;function pi(e,t){var n=t(),r=ui({inst:{value:n,getSnapshot:t}}),i=r[0].inst,o=r[1];return _i(function(){i.value=n,i.getSnapshot=t,gt(i)&&o({inst:i})},[e,n,t]),ci(function(){return gt(i)&&o({inst:i}),e(function(){gt(i)&&o({inst:i})})},[e]),fi(n),n}function gt(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!li(e,n)}catch{return!0}}function di(e,t){return t()}var mi=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?di:pi;Qr.useSyncExternalStore=Te.useSyncExternalStore!==void 0?Te.useSyncExternalStore:mi;Jr.exports=Qr;var hi=Jr.exports;/**
10
10
  * @license React
11
11
  * use-sync-external-store-shim/with-selector.production.min.js
12
12
  *
@@ -14,5 +14,5 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var et=Jr,vi=yi;function gi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ei=typeof Object.is=="function"?Object.is:gi,bi=vi.useSyncExternalStore,Ti=et.useRef,Ai=et.useEffect,Si=et.useMemo,ki=et.useDebugValue;Zr.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=Ti(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Si(function(){function _(p){if(!h){if(h=!0,l=p,p=r(p),i!==void 0&&s.hasValue){var v=s.value;if(i(v,p))return E=v}return E=p}if(v=E,Ei(l,p))return v;var W=r(p);return i!==void 0&&i(v,W)?v:(l=p,E=W)}var h=!1,l,E,y=n===void 0?null:n;return[function(){return _(t())},y===null?void 0:function(){return _(y())}]},[t,n,r,i]);var c=bi(e,o[0],o[1]);return Ai(function(){s.hasValue=!0,s.value=c},[c]),ki(c),c};Kr.exports=Zr;var Ci=Kr.exports;const Oi=ai(Ci),{useSyncExternalStoreWithSelector:wi}=Oi;function Ni(e,t=e.getState,n){const r=wi(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ut(r),r}const Bn=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?zo(e):e,n=(r,i)=>Ni(t,r,i);return Object.assign(n,t),n},Ri=e=>e?Bn(e):Bn,xi={name:"leckerli",banner:{title:"This website uses cookies.",description:'We use cookies to improve your browsing experience, deliver personalised advertising or content and analyse our traffic. By clicking on "Accept all", you consent to our use of cookies.',accept:"Accept all",reject:"Deny",customise:"Customize",save:"Save",settings:[{slug:"settings",title:"Preferences",description:"Preference cookies enable a website to remember information that changes the way the website behaves or looks, like your preferred language or the region that you are in."}]},permissions:["settings"],baseData:{},cookie:{},choiceMade:!1,settingsOpen:!1,domain:window.location.hostname,enableGtmConsent:!1};window.dataLayer=window.dataLayer||[];function Di(e,t,n){window.dataLayer.push(arguments)}const Gn=e=>{Di("consent","update",e.permissions.reduce((t,n)=>({...t,[n]:e.cookie[n]?"granted":"denied"}),{}))},se=jo(xi,window.leckerliSettings??{}),Dt=new Date;Dt.setMonth(Dt.getMonth()+1);const Vn={sameSite:"strict",domain:se.domain,expires:Dt},Ke=Nt.get(se.name);se.cookie=Ht(Ke)?JSON.parse(Ke):se.permissions.reduce((e,t)=>({...e,[t]:!1}),se.baseData);se.choiceMade=Ht(Ke);const Bt=Ri((e,t)=>({...se,init:()=>{const n=t();kr(Ke)&&n.choiceMade&&Nt.set(n.name,JSON.stringify(n.cookie),Vn),n.choiceMade&&n.enableGtmConsent&&Gn(n),document.dispatchEvent(new CustomEvent("leckerli:initialised",{detail:{cookie:n.choiceMade?n.cookie:null}})),document.addEventListener("leckerli:open-banner",()=>t().setChoice(!1)),document.addEventListener("leckerli:close-banner",()=>t().setChoice(!0)),document.addEventListener("leckerli:open-modal",()=>t().setModal(!0)),document.addEventListener("leckerli:close-modal",()=>t().setModal(!1))},propagate(n){const r=t();Nt.set(r.name,JSON.stringify(n),Vn),r.enableGtmConsent&&Gn({...r,cookie:n}),document.dispatchEvent(new CustomEvent("leckerli:permissions-updated",{detail:{cookie:n}}))},setChoice:n=>e(r=>({...r,choiceMade:n})),setModal:n=>e(r=>(document.dispatchEvent(new CustomEvent(`leckerli:modal-${n?"opened":"closed"}`)),{...r,settingsOpen:n})),setPermissions:n=>e(r=>{const i=r.permissions.reduce((o,s)=>({...o,[s]:n[s]??!1}),r.baseData);return r.propagate(i),{...r,choiceMade:!0,cookie:i}}),togglePermission:n=>e(r=>{const i=r.permissions.reduce((o,s)=>(n===s?o[s]=Ht(r.cookie[s])?!r.cookie[s]:!0:o[s]=r.cookie[s]??!1,o),r.baseData);return r.propagate(i),{...r,choiceMade:!0,cookie:i}}),acceptAll:()=>{t().setPermissions(t().permissions.reduce((n,r)=>({...n,[r]:!0}),{}))},rejectAll:()=>{t().setPermissions(t().permissions.reduce((n,r)=>({...n,[r]:!1}),{}))}}));/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:to,setPrototypeOf:qn,isFrozen:Li,getPrototypeOf:Ii,getOwnPropertyDescriptor:Mi}=Object;let{freeze:M,seal:G,create:Pi}=Object,{apply:Lt,construct:It}=typeof Reflect<"u"&&Reflect;Lt||(Lt=function(t,n,r){return t.apply(n,r)});M||(M=function(t){return t});G||(G=function(t){return t});It||(It=function(t,n){return new t(...n)});const Ui=H(Array.prototype.forEach),Yn=H(Array.prototype.pop),Ce=H(Array.prototype.push),Ge=H(String.prototype.toLowerCase),Et=H(String.prototype.toString),$i=H(String.prototype.match),z=H(String.prototype.replace),Fi=H(String.prototype.indexOf),Hi=H(String.prototype.trim),$=H(RegExp.prototype.test),Oe=Wi(TypeError);function H(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Lt(e,t,r)}}function Wi(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return It(e,n)}}function g(e,t,n){var r;n=(r=n)!==null&&r!==void 0?r:Ge,qn&&qn(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){const s=n(o);s!==o&&(Li(t)||(t[i]=s),o=s)}e[o]=!0}return e}function ve(e){const t=Pi(null);for(const[n,r]of to(e))t[n]=r;return t}function We(e,t){for(;e!==null;){const r=Mi(e,t);if(r){if(r.get)return H(r.get);if(typeof r.value=="function")return H(r.value)}e=Ii(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Xn=M(["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","section","select","shadow","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"]),bt=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tt=M(["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"]),ji=M(["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"]),At=M(["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"]),zi=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Kn=M(["#text"]),Zn=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),St=M(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),Jn=M(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),je=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bi=G(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Gi=G(/<%[\w\W]*|[\w\W]*%>/gm),Vi=G(/\${[\w\W]*}/gm),qi=G(/^data-[\-\w.\u00B7-\uFFFF]/),Yi=G(/^aria-[\-\w]+$/),no=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xi=G(/^(?:\w+script|data):/i),Ki=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ro=G(/^html$/i);var Qn=Object.freeze({__proto__:null,MUSTACHE_EXPR:Bi,ERB_EXPR:Gi,TMPLIT_EXPR:Vi,DATA_ATTR:qi,ARIA_ATTR:Yi,IS_ALLOWED_URI:no,IS_SCRIPT_OR_DATA:Xi,ATTR_WHITESPACE:Ki,DOCTYPE_NAME:ro});const Zi=()=>typeof window>"u"?null:window,Ji=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function oo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zi();const t=m=>oo(m);if(t.version="3.0.5",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;const n=e.document,r=n.currentScript;let{document:i}=e;const{DocumentFragment:o,HTMLTemplateElement:s,Node:c,Element:_,NodeFilter:h,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:E,DOMParser:y,trustedTypes:p}=e,v=_.prototype,W=We(v,"cloneNode"),S=We(v,"nextSibling"),N=We(v,"childNodes"),I=We(v,"parentNode");if(typeof s=="function"){const m=i.createElement("template");m.content&&m.content.ownerDocument&&(i=m.content.ownerDocument)}let w,j="";const{implementation:ce,createNodeIterator:ue,createDocumentFragment:Ae,getElementsByTagName:P}=i,{importNode:_e}=n;let V={};t.isSupported=typeof to=="function"&&typeof I=="function"&&ce&&ce.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:nt,TMPLIT_EXPR:rt,DATA_ATTR:io,ARIA_ATTR:ao,IS_SCRIPT_OR_DATA:so,ATTR_WHITESPACE:Vt}=Qn;let{IS_ALLOWED_URI:qt}=Qn,R=null;const Yt=g({},[...Xn,...bt,...Tt,...At,...Kn]);let x=null;const Xt=g({},[...Zn,...St,...Jn,...je]);let O=Object.seal(Object.create(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}})),Se=null,ot=null,Kt=!0,it=!0,Zt=!1,Jt=!0,fe=!1,re=!1,at=!1,st=!1,pe=!1,Ie=!1,Me=!1,Qt=!0,en=!1;const lo="user-content-";let lt=!0,ke=!1,de={},me=null;const tn=g({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let nn=null;const rn=g({},["audio","video","img","source","image","track"]);let ct=null;const on=g({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml";let he=K,ut=!1,_t=null;const co=g({},[Pe,Ue,K],Et);let oe;const uo=["application/xhtml+xml","text/html"],_o="text/html";let D,ye=null;const fo=i.createElement("form"),an=function(a){return a instanceof RegExp||a instanceof Function},ft=function(a){if(!(ye&&ye===a)){if((!a||typeof a!="object")&&(a={}),a=ve(a),oe=uo.indexOf(a.PARSER_MEDIA_TYPE)===-1?oe=_o:oe=a.PARSER_MEDIA_TYPE,D=oe==="application/xhtml+xml"?Et:Ge,R="ALLOWED_TAGS"in a?g({},a.ALLOWED_TAGS,D):Yt,x="ALLOWED_ATTR"in a?g({},a.ALLOWED_ATTR,D):Xt,_t="ALLOWED_NAMESPACES"in a?g({},a.ALLOWED_NAMESPACES,Et):co,ct="ADD_URI_SAFE_ATTR"in a?g(ve(on),a.ADD_URI_SAFE_ATTR,D):on,nn="ADD_DATA_URI_TAGS"in a?g(ve(rn),a.ADD_DATA_URI_TAGS,D):rn,me="FORBID_CONTENTS"in a?g({},a.FORBID_CONTENTS,D):tn,Se="FORBID_TAGS"in a?g({},a.FORBID_TAGS,D):{},ot="FORBID_ATTR"in a?g({},a.FORBID_ATTR,D):{},de="USE_PROFILES"in a?a.USE_PROFILES:!1,Kt=a.ALLOW_ARIA_ATTR!==!1,it=a.ALLOW_DATA_ATTR!==!1,Zt=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Jt=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=a.SAFE_FOR_TEMPLATES||!1,re=a.WHOLE_DOCUMENT||!1,pe=a.RETURN_DOM||!1,Ie=a.RETURN_DOM_FRAGMENT||!1,Me=a.RETURN_TRUSTED_TYPE||!1,st=a.FORCE_BODY||!1,Qt=a.SANITIZE_DOM!==!1,en=a.SANITIZE_NAMED_PROPS||!1,lt=a.KEEP_CONTENT!==!1,ke=a.IN_PLACE||!1,qt=a.ALLOWED_URI_REGEXP||no,he=a.NAMESPACE||K,O=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&an(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(O.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&an(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(O.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(O.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(it=!1),Ie&&(pe=!0),de&&(R=g({},[...Kn]),x=[],de.html===!0&&(g(R,Xn),g(x,Zn)),de.svg===!0&&(g(R,bt),g(x,St),g(x,je)),de.svgFilters===!0&&(g(R,Tt),g(x,St),g(x,je)),de.mathMl===!0&&(g(R,At),g(x,Jn),g(x,je))),a.ADD_TAGS&&(R===Yt&&(R=ve(R)),g(R,a.ADD_TAGS,D)),a.ADD_ATTR&&(x===Xt&&(x=ve(x)),g(x,a.ADD_ATTR,D)),a.ADD_URI_SAFE_ATTR&&g(ct,a.ADD_URI_SAFE_ATTR,D),a.FORBID_CONTENTS&&(me===tn&&(me=ve(me)),g(me,a.FORBID_CONTENTS,D)),lt&&(R["#text"]=!0),re&&g(R,["html","head","body"]),R.table&&(g(R,["tbody"]),delete Se.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Oe('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=a.TRUSTED_TYPES_POLICY,j=w.createHTML("")}else w===void 0&&(w=Ji(p,r)),w!==null&&typeof j=="string"&&(j=w.createHTML(""));M&&M(a),ye=a}},sn=g({},["mi","mo","mn","ms","mtext"]),ln=g({},["foreignobject","desc","title","annotation-xml"]),po=g({},["title","style","font","a","script"]),$e=g({},bt);g($e,Tt),g($e,ji);const pt=g({},At);g(pt,zi);const mo=function(a){let u=I(a);(!u||!u.tagName)&&(u={namespaceURI:he,tagName:"template"});const f=Ge(a.tagName),b=Ge(u.tagName);return _t[a.namespaceURI]?a.namespaceURI===Ue?u.namespaceURI===K?f==="svg":u.namespaceURI===Pe?f==="svg"&&(b==="annotation-xml"||sn[b]):!!$e[f]:a.namespaceURI===Pe?u.namespaceURI===K?f==="math":u.namespaceURI===Ue?f==="math"&&ln[b]:!!pt[f]:a.namespaceURI===K?u.namespaceURI===Ue&&!ln[b]||u.namespaceURI===Pe&&!sn[b]?!1:!pt[f]&&(po[f]||!$e[f]):!!(oe==="application/xhtml+xml"&&_t[a.namespaceURI]):!1},ie=function(a){Ce(t.removed,{element:a});try{a.parentNode.removeChild(a)}catch{a.remove()}},dt=function(a,u){try{Ce(t.removed,{attribute:u.getAttributeNode(a),from:u})}catch{Ce(t.removed,{attribute:null,from:u})}if(u.removeAttribute(a),a==="is"&&!x[a])if(pe||Ie)try{ie(u)}catch{}else try{u.setAttribute(a,"")}catch{}},cn=function(a){let u,f;if(st)a="<remove></remove>"+a;else{const F=$i(a,/^[\r\n\t ]+/);f=F&&F[0]}oe==="application/xhtml+xml"&&he===K&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const b=w?w.createHTML(a):a;if(he===K)try{u=new y().parseFromString(b,oe)}catch{}if(!u||!u.documentElement){u=ce.createDocument(he,"template",null);try{u.documentElement.innerHTML=ut?j:b}catch{}}const L=u.body||u.documentElement;return a&&f&&L.insertBefore(i.createTextNode(f),L.childNodes[0]||null),he===K?P.call(u,re?"html":"body")[0]:re?u.documentElement:L},un=function(a){return ue.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},ho=function(a){return a instanceof E&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof l)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Fe=function(a){return typeof c=="object"?a instanceof c:a&&typeof a=="object"&&typeof a.nodeType=="number"&&typeof a.nodeName=="string"},Z=function(a,u,f){V[a]&&Ui(V[a],b=>{b.call(t,u,f,ye)})},_n=function(a){let u;if(Z("beforeSanitizeElements",a,null),ho(a))return ie(a),!0;const f=D(a.nodeName);if(Z("uponSanitizeElement",a,{tagName:f,allowedTags:R}),a.hasChildNodes()&&!Fe(a.firstElementChild)&&(!Fe(a.content)||!Fe(a.content.firstElementChild))&&$(/<[/\w]/g,a.innerHTML)&&$(/<[/\w]/g,a.textContent))return ie(a),!0;if(!R[f]||Se[f]){if(!Se[f]&&pn(f)&&(O.tagNameCheck instanceof RegExp&&$(O.tagNameCheck,f)||O.tagNameCheck instanceof Function&&O.tagNameCheck(f)))return!1;if(lt&&!me[f]){const b=I(a)||a.parentNode,L=N(a)||a.childNodes;if(L&&b){const F=L.length;for(let k=F-1;k>=0;--k)b.insertBefore(W(L[k],!0),S(a))}}return ie(a),!0}return a instanceof _&&!mo(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&$(/<\/no(script|embed|frames)/i,a.innerHTML)?(ie(a),!0):(fe&&a.nodeType===3&&(u=a.textContent,u=z(u,tt," "),u=z(u,nt," "),u=z(u,rt," "),a.textContent!==u&&(Ce(t.removed,{element:a.cloneNode()}),a.textContent=u)),Z("afterSanitizeElements",a,null),!1)},fn=function(a,u,f){if(Qt&&(u==="id"||u==="name")&&(f in i||f in fo))return!1;if(!(it&&!ot[u]&&$(io,u))){if(!(Kt&&$(ao,u))){if(!x[u]||ot[u]){if(!(pn(a)&&(O.tagNameCheck instanceof RegExp&&$(O.tagNameCheck,a)||O.tagNameCheck instanceof Function&&O.tagNameCheck(a))&&(O.attributeNameCheck instanceof RegExp&&$(O.attributeNameCheck,u)||O.attributeNameCheck instanceof Function&&O.attributeNameCheck(u))||u==="is"&&O.allowCustomizedBuiltInElements&&(O.tagNameCheck instanceof RegExp&&$(O.tagNameCheck,f)||O.tagNameCheck instanceof Function&&O.tagNameCheck(f))))return!1}else if(!ct[u]){if(!$(qt,z(f,Vt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&a!=="script"&&Fi(f,"data:")===0&&nn[a])){if(!(Zt&&!$(so,z(f,Vt,"")))){if(f)return!1}}}}}}return!0},pn=function(a){return a.indexOf("-")>0},dn=function(a){let u,f,b,L;Z("beforeSanitizeAttributes",a,null);const{attributes:F}=a;if(!F)return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:x};for(L=F.length;L--;){u=F[L];const{name:q,namespaceURI:mt}=u;if(f=q==="value"?u.value:Hi(u.value),b=D(q),k.attrName=b,k.attrValue=f,k.keepAttr=!0,k.forceKeepAttr=void 0,Z("uponSanitizeAttribute",a,k),f=k.attrValue,k.forceKeepAttr||(dt(q,a),!k.keepAttr))continue;if(!Jt&&$(/\/>/i,f)){dt(q,a);continue}fe&&(f=z(f,tt," "),f=z(f,nt," "),f=z(f,rt," "));const mn=D(a.nodeName);if(fn(mn,b,f)){if(en&&(b==="id"||b==="name")&&(dt(q,a),f=lo+f),w&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!mt)switch(p.getAttributeType(mn,b)){case"TrustedHTML":{f=w.createHTML(f);break}case"TrustedScriptURL":{f=w.createScriptURL(f);break}}try{mt?a.setAttributeNS(mt,q,f):a.setAttribute(q,f),Yn(t.removed)}catch{}}}Z("afterSanitizeAttributes",a,null)},yo=function m(a){let u;const f=un(a);for(Z("beforeSanitizeShadowDOM",a,null);u=f.nextNode();)Z("uponSanitizeShadowNode",u,null),!_n(u)&&(u.content instanceof o&&m(u.content),dn(u));Z("afterSanitizeShadowDOM",a,null)};return t.sanitize=function(m){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,f,b,L;if(ut=!m,ut&&(m="<!-->"),typeof m!="string"&&!Fe(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw Oe("dirty is not a string, aborting")}else throw Oe("toString is not a function");if(!t.isSupported)return m;if(at||ft(a),t.removed=[],typeof m=="string"&&(ke=!1),ke){if(m.nodeName){const q=D(m.nodeName);if(!R[q]||Se[q])throw Oe("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof c)u=cn("<!---->"),f=u.ownerDocument.importNode(m,!0),f.nodeType===1&&f.nodeName==="BODY"||f.nodeName==="HTML"?u=f:u.appendChild(f);else{if(!pe&&!fe&&!re&&m.indexOf("<")===-1)return w&&Me?w.createHTML(m):m;if(u=cn(m),!u)return pe?null:Me?j:""}u&&st&&ie(u.firstChild);const F=un(ke?m:u);for(;b=F.nextNode();)_n(b)||(b.content instanceof o&&yo(b.content),dn(b));if(ke)return m;if(pe){if(Ie)for(L=Ae.call(u.ownerDocument);u.firstChild;)L.appendChild(u.firstChild);else L=u;return(x.shadowroot||x.shadowrootmode)&&(L=_e.call(n,L,!0)),L}let k=re?u.outerHTML:u.innerHTML;return re&&R["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&$(ro,u.ownerDocument.doctype.name)&&(k="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
18
- `+k),fe&&(k=z(k,tt," "),k=z(k,nt," "),k=z(k,rt," ")),w&&Me?w.createHTML(k):k},t.setConfig=function(m){ft(m),at=!0},t.clearConfig=function(){ye=null,at=!1},t.isValidAttribute=function(m,a,u){ye||ft({});const f=D(m),b=D(a);return fn(f,b,u)},t.addHook=function(m,a){typeof a=="function"&&(V[m]=V[m]||[],Ce(V[m],a))},t.removeHook=function(m){if(V[m])return Yn(V[m])},t.removeHooks=function(m){V[m]&&(V[m]=[])},t.removeAllHooks=function(){V={}},t}var Qi=oo(),ea=0;function A(e,t,n,r,i,o){var s,c,_={};for(c in t)c=="ref"?s=t[c]:_[c]=t[c];var h={type:e,props:_,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--ea,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(c in s)_[c]===void 0&&(_[c]=s[c]);return d.vnode&&d.vnode(h),h}const ta=()=>{const{banner:e,acceptAll:t,rejectAll:n,setModal:r}=Bt(),i=["b","i","em","strong","p","ul","li","ol","span","h2","h3","h4","h5","h6","a","div"],o=["href","target"];return A("div",{className:"fixed bottom-0 left-0 max-w-md px-5 py-4 m-2 shadow-md shadow-black/25 z-[9998] bg-background space-y-4 font-primary text-foreground rounded-md banner-wrapper",children:[e.title&&A("h3",{className:"m-0 text-lg font-semibold font-primary md:text-xl banner-title",children:e.title}),e.description&&A("p",{className:"m-0 text-sm leading-snug font-primary md:text-base banner-description",dangerouslySetInnerHTML:{__html:Qi.sanitize(e.description,{USE_PROFILES:{html:!0},ALLOWED_TAGS:i,ALLOWED_ATTR:o})}}),A("div",{className:"pt-2 space-y-2 banner-btns",children:[!Uo(e.settings)&&A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-background font-primary text-primary md:px-3.5 py-1.5 md:py-2.5 border-primary hover:border-primary-hover hover:text-primary-hover active:border-primary-active active:text-primary-active transition-colors banner-btn-customise",onClick:()=>r(!0),children:e.customise}),A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-background font-primary text-primary md:px-3.5 py-1.5 md:py-2.5 border-primary hover:border-primary-hover hover:text-primary-hover active:border-primary-active active:text-primary-active transition-colors banner-btn-reject",onClick:n,children:e.reject}),A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-primary font-primary text-background md:px-3.5 py-1.5 md:py-2.5 border-primary hover:bg-primary-hover hover:border-primary-hover active:bg-primary-active active:border-primary-active transition-colors banner-btn-accept",onClick:t,children:e.accept})]})]})},na=()=>{const{cookie:e,setPermissions:t,banner:n,setModal:r}=Bt(),[i,o]=De(e);return A("div",{className:"fixed bottom-0 left-0 w-full max-w-lg max-h-full px-5 py-4 m-2 overflow-y-auto text-black shadow-md shadow-black/25 z-[9999] bg-background text-foreground font-primary rounded-md",children:[A("div",{className:"space-y-6",children:[A("h3",{className:"w-10/12 m-0 text-xl font-semibold font-primary md:text-2xl",children:n.customise}),n.settings.map(({slug:s,title:c,description:_})=>A("div",{children:[A("div",{className:"flex items-start justify-between",children:[A("h3",{className:"m-0 text-lg font-semibold font-primary",children:c}),A("button",{type:"button",className:`${i[s]?"bg-primary":"bg-gray-200"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 mt-0.5`,role:"switch","aria-checked":"false",onClick:()=>o({...i,[s]:!i[s]}),children:[A("span",{className:"sr-only",children:"Toggle"}),A("span",{"aria-hidden":"true",className:`${i[s]?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-background shadow ring-0 transition duration-200 ease-in-out`})]})]}),A("p",{className:"m-0 mt-2 text-sm leading-snug font-primary md:text-base",children:_})]},`setting-${s}`)),A("div",{className:"pt-4",children:A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-primary font-primary text-background md:px-3.5 py-1.5 md:py-2.5 border-primary hover:bg-primary-hover hover:border-primary-hover active:bg-primary-active active:border-primary-active transition-colors",onClick:()=>{t(i),r(!1)},children:n.save})})]}),A("button",{type:"button",className:"absolute top-0 right-0 w-8 h-8 mt-0 text-xl rounded-full",onClick:()=>r(!1),children:"×"})]})},ra=()=>{const{choiceMade:e,init:t,settingsOpen:n}=Bt();return Je(()=>{t()},[]),A(X,{children:[!e&&!n&&A(ta,{}),n&&A(na,{})]})};const Gt=document.createElement("div");Gt.id="lkrl-wrapper";document.body.appendChild(Gt);Ee(A(ra,{}),Gt);
17
+ */var et=Zr,yi=hi;function vi(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var gi=typeof Object.is=="function"?Object.is:vi,Ei=yi.useSyncExternalStore,bi=et.useRef,Ti=et.useEffect,Ai=et.useMemo,Si=et.useDebugValue;Kr.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var o=bi(null);if(o.current===null){var s={hasValue:!1,value:null};o.current=s}else s=o.current;o=Ai(function(){function _(p){if(!h){if(h=!0,l=p,p=r(p),i!==void 0&&s.hasValue){var v=s.value;if(i(v,p))return E=v}return E=p}if(v=E,gi(l,p))return v;var W=r(p);return i!==void 0&&i(v,W)?v:(l=p,E=W)}var h=!1,l,E,y=n===void 0?null:n;return[function(){return _(t())},y===null?void 0:function(){return _(y())}]},[t,n,r,i]);var u=Ei(e,o[0],o[1]);return Ti(function(){s.hasValue=!0,s.value=u},[u]),Si(u),u};Xr.exports=Kr;var ki=Xr.exports;const Oi=ii(ki),{useSyncExternalStoreWithSelector:Ci}=Oi;function Ni(e,t=e.getState,n){const r=Ci(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return Ut(r),r}const Bn=e=>{({BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1}&&"production")!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?jo(e):e,n=(r,i)=>Ni(t,r,i);return Object.assign(n,t),n},wi=e=>e?Bn(e):Bn,Ri={name:"leckerli",banner:{title:"This website uses cookies.",description:'We use cookies to improve your browsing experience, deliver personalised advertising or content and analyse our traffic. By clicking on "Accept all", you consent to our use of cookies.',accept:"Accept all",reject:"Deny",customise:"Customize",save:"Save",settings:[{slug:"settings",title:"Preferences",description:"Preference cookies enable a website to remember information that changes the way the website behaves or looks, like your preferred language or the region that you are in."}]},permissions:["settings"],baseData:{},cookie:{},choiceMade:!1,settingsOpen:!1,domain:window.location.hostname,enableGtmAutoLoad:!1},se=Wo(Ri,window.leckerliSettings??{}),Dt=new Date;Dt.setMonth(Dt.getMonth()+1);const Gn={sameSite:"strict",domain:se.domain,expires:Dt},Ke=wt.get(se.name);se.cookie=Ht(Ke)?JSON.parse(Ke):se.permissions.reduce((e,t)=>({...e,[t]:!1}),se.baseData);se.choiceMade=Ht(Ke);const Bt=wi((e,t)=>({...se,init:()=>{const n=t();Sr(Ke)&&n.choiceMade&&wt.set(n.name,JSON.stringify(n.cookie),Gn),document.dispatchEvent(new CustomEvent("leckerli:initialised",{detail:{cookie:n.choiceMade?n.cookie:null}})),document.addEventListener("leckerli:open-banner",()=>t().setChoice(!1)),document.addEventListener("leckerli:close-banner",()=>t().setChoice(!0)),document.addEventListener("leckerli:open-modal",()=>t().setModal(!0)),document.addEventListener("leckerli:close-modal",()=>t().setModal(!1))},propagate(n){const r=t();wt.set(r.name,JSON.stringify(n),Gn),document.dispatchEvent(new CustomEvent("leckerli:permissions-updated",{detail:{cookie:n}}))},setChoice:n=>e(r=>({...r,choiceMade:n})),setModal:n=>e(r=>(document.dispatchEvent(new CustomEvent(`leckerli:modal-${n?"opened":"closed"}`)),{...r,settingsOpen:n})),setPermissions:n=>e(r=>{const i=r.permissions.reduce((o,s)=>({...o,[s]:n[s]??!1}),r.baseData);return r.propagate(i),{...r,choiceMade:!0,cookie:i}}),togglePermission:n=>e(r=>{const i=r.permissions.reduce((o,s)=>(n===s?o[s]=Ht(r.cookie[s])?!r.cookie[s]:!0:o[s]=r.cookie[s]??!1,o),r.baseData);return r.propagate(i),{...r,choiceMade:!0,cookie:i}}),acceptAll:()=>{t().setPermissions(t().permissions.reduce((n,r)=>({...n,[r]:!0}),{}))},rejectAll:()=>{t().setPermissions(t().permissions.reduce((n,r)=>({...n,[r]:!1}),{}))}}));/*! @license DOMPurify 3.0.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.5/LICENSE */const{entries:eo,setPrototypeOf:Vn,isFrozen:xi,getPrototypeOf:Di,getOwnPropertyDescriptor:Li}=Object;let{freeze:M,seal:G,create:Ii}=Object,{apply:Lt,construct:It}=typeof Reflect<"u"&&Reflect;Lt||(Lt=function(t,n,r){return t.apply(n,r)});M||(M=function(t){return t});G||(G=function(t){return t});It||(It=function(t,n){return new t(...n)});const Mi=H(Array.prototype.forEach),qn=H(Array.prototype.pop),Oe=H(Array.prototype.push),Ge=H(String.prototype.toLowerCase),Et=H(String.prototype.toString),Pi=H(String.prototype.match),z=H(String.prototype.replace),Ui=H(String.prototype.indexOf),$i=H(String.prototype.trim),$=H(RegExp.prototype.test),Ce=Fi(TypeError);function H(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Lt(e,t,r)}}function Fi(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return It(e,n)}}function g(e,t,n){var r;n=(r=n)!==null&&r!==void 0?r:Ge,Vn&&Vn(e,null);let i=t.length;for(;i--;){let o=t[i];if(typeof o=="string"){const s=n(o);s!==o&&(xi(t)||(t[i]=s),o=s)}e[o]=!0}return e}function ve(e){const t=Ii(null);for(const[n,r]of eo(e))t[n]=r;return t}function We(e,t){for(;e!==null;){const r=Li(e,t);if(r){if(r.get)return H(r.get);if(typeof r.value=="function")return H(r.value)}e=Di(e)}function n(r){return console.warn("fallback value for",r),null}return n}const Yn=M(["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","section","select","shadow","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"]),bt=M(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tt=M(["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"]),Hi=M(["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"]),At=M(["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"]),Wi=M(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Xn=M(["#text"]),Kn=M(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),St=M(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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","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"]),Zn=M(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),je=M(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ji=G(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zi=G(/<%[\w\W]*|[\w\W]*%>/gm),Bi=G(/\${[\w\W]*}/gm),Gi=G(/^data-[\-\w.\u00B7-\uFFFF]/),Vi=G(/^aria-[\-\w]+$/),to=G(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qi=G(/^(?:\w+script|data):/i),Yi=G(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),no=G(/^html$/i);var Jn=Object.freeze({__proto__:null,MUSTACHE_EXPR:ji,ERB_EXPR:zi,TMPLIT_EXPR:Bi,DATA_ATTR:Gi,ARIA_ATTR:Vi,IS_ALLOWED_URI:to,IS_SCRIPT_OR_DATA:qi,ATTR_WHITESPACE:Yi,DOCTYPE_NAME:no});const Xi=()=>typeof window>"u"?null:window,Ki=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(r=n.getAttribute(i));const o="dompurify"+(r?"#"+r:"");try{return t.createPolicy(o,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function ro(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xi();const t=m=>ro(m);if(t.version="3.0.5",t.removed=[],!e||!e.document||e.document.nodeType!==9)return t.isSupported=!1,t;const n=e.document,r=n.currentScript;let{document:i}=e;const{DocumentFragment:o,HTMLTemplateElement:s,Node:u,Element:_,NodeFilter:h,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:E,DOMParser:y,trustedTypes:p}=e,v=_.prototype,W=We(v,"cloneNode"),S=We(v,"nextSibling"),w=We(v,"childNodes"),I=We(v,"parentNode");if(typeof s=="function"){const m=i.createElement("template");m.content&&m.content.ownerDocument&&(i=m.content.ownerDocument)}let N,j="";const{implementation:ue,createNodeIterator:ce,createDocumentFragment:Ae,getElementsByTagName:P}=i,{importNode:_e}=n;let V={};t.isSupported=typeof eo=="function"&&typeof I=="function"&&ue&&ue.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:tt,ERB_EXPR:nt,TMPLIT_EXPR:rt,DATA_ATTR:oo,ARIA_ATTR:io,IS_SCRIPT_OR_DATA:ao,ATTR_WHITESPACE:Vt}=Jn;let{IS_ALLOWED_URI:qt}=Jn,R=null;const Yt=g({},[...Yn,...bt,...Tt,...At,...Xn]);let x=null;const Xt=g({},[...Kn,...St,...Zn,...je]);let C=Object.seal(Object.create(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}})),Se=null,ot=null,Kt=!0,it=!0,Zt=!1,Jt=!0,fe=!1,re=!1,at=!1,st=!1,pe=!1,Ie=!1,Me=!1,Qt=!0,en=!1;const so="user-content-";let lt=!0,ke=!1,de={},me=null;const tn=g({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let nn=null;const rn=g({},["audio","video","img","source","image","track"]);let ut=null;const on=g({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Pe="http://www.w3.org/1998/Math/MathML",Ue="http://www.w3.org/2000/svg",K="http://www.w3.org/1999/xhtml";let he=K,ct=!1,_t=null;const lo=g({},[Pe,Ue,K],Et);let oe;const uo=["application/xhtml+xml","text/html"],co="text/html";let D,ye=null;const _o=i.createElement("form"),an=function(a){return a instanceof RegExp||a instanceof Function},ft=function(a){if(!(ye&&ye===a)){if((!a||typeof a!="object")&&(a={}),a=ve(a),oe=uo.indexOf(a.PARSER_MEDIA_TYPE)===-1?oe=co:oe=a.PARSER_MEDIA_TYPE,D=oe==="application/xhtml+xml"?Et:Ge,R="ALLOWED_TAGS"in a?g({},a.ALLOWED_TAGS,D):Yt,x="ALLOWED_ATTR"in a?g({},a.ALLOWED_ATTR,D):Xt,_t="ALLOWED_NAMESPACES"in a?g({},a.ALLOWED_NAMESPACES,Et):lo,ut="ADD_URI_SAFE_ATTR"in a?g(ve(on),a.ADD_URI_SAFE_ATTR,D):on,nn="ADD_DATA_URI_TAGS"in a?g(ve(rn),a.ADD_DATA_URI_TAGS,D):rn,me="FORBID_CONTENTS"in a?g({},a.FORBID_CONTENTS,D):tn,Se="FORBID_TAGS"in a?g({},a.FORBID_TAGS,D):{},ot="FORBID_ATTR"in a?g({},a.FORBID_ATTR,D):{},de="USE_PROFILES"in a?a.USE_PROFILES:!1,Kt=a.ALLOW_ARIA_ATTR!==!1,it=a.ALLOW_DATA_ATTR!==!1,Zt=a.ALLOW_UNKNOWN_PROTOCOLS||!1,Jt=a.ALLOW_SELF_CLOSE_IN_ATTR!==!1,fe=a.SAFE_FOR_TEMPLATES||!1,re=a.WHOLE_DOCUMENT||!1,pe=a.RETURN_DOM||!1,Ie=a.RETURN_DOM_FRAGMENT||!1,Me=a.RETURN_TRUSTED_TYPE||!1,st=a.FORCE_BODY||!1,Qt=a.SANITIZE_DOM!==!1,en=a.SANITIZE_NAMED_PROPS||!1,lt=a.KEEP_CONTENT!==!1,ke=a.IN_PLACE||!1,qt=a.ALLOWED_URI_REGEXP||to,he=a.NAMESPACE||K,C=a.CUSTOM_ELEMENT_HANDLING||{},a.CUSTOM_ELEMENT_HANDLING&&an(a.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(C.tagNameCheck=a.CUSTOM_ELEMENT_HANDLING.tagNameCheck),a.CUSTOM_ELEMENT_HANDLING&&an(a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(C.attributeNameCheck=a.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),a.CUSTOM_ELEMENT_HANDLING&&typeof a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(C.allowCustomizedBuiltInElements=a.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),fe&&(it=!1),Ie&&(pe=!0),de&&(R=g({},[...Xn]),x=[],de.html===!0&&(g(R,Yn),g(x,Kn)),de.svg===!0&&(g(R,bt),g(x,St),g(x,je)),de.svgFilters===!0&&(g(R,Tt),g(x,St),g(x,je)),de.mathMl===!0&&(g(R,At),g(x,Zn),g(x,je))),a.ADD_TAGS&&(R===Yt&&(R=ve(R)),g(R,a.ADD_TAGS,D)),a.ADD_ATTR&&(x===Xt&&(x=ve(x)),g(x,a.ADD_ATTR,D)),a.ADD_URI_SAFE_ATTR&&g(ut,a.ADD_URI_SAFE_ATTR,D),a.FORBID_CONTENTS&&(me===tn&&(me=ve(me)),g(me,a.FORBID_CONTENTS,D)),lt&&(R["#text"]=!0),re&&g(R,["html","head","body"]),R.table&&(g(R,["tbody"]),delete Se.tbody),a.TRUSTED_TYPES_POLICY){if(typeof a.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ce('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof a.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ce('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');N=a.TRUSTED_TYPES_POLICY,j=N.createHTML("")}else N===void 0&&(N=Ki(p,r)),N!==null&&typeof j=="string"&&(j=N.createHTML(""));M&&M(a),ye=a}},sn=g({},["mi","mo","mn","ms","mtext"]),ln=g({},["foreignobject","desc","title","annotation-xml"]),fo=g({},["title","style","font","a","script"]),$e=g({},bt);g($e,Tt),g($e,Hi);const pt=g({},At);g(pt,Wi);const po=function(a){let c=I(a);(!c||!c.tagName)&&(c={namespaceURI:he,tagName:"template"});const f=Ge(a.tagName),b=Ge(c.tagName);return _t[a.namespaceURI]?a.namespaceURI===Ue?c.namespaceURI===K?f==="svg":c.namespaceURI===Pe?f==="svg"&&(b==="annotation-xml"||sn[b]):!!$e[f]:a.namespaceURI===Pe?c.namespaceURI===K?f==="math":c.namespaceURI===Ue?f==="math"&&ln[b]:!!pt[f]:a.namespaceURI===K?c.namespaceURI===Ue&&!ln[b]||c.namespaceURI===Pe&&!sn[b]?!1:!pt[f]&&(fo[f]||!$e[f]):!!(oe==="application/xhtml+xml"&&_t[a.namespaceURI]):!1},ie=function(a){Oe(t.removed,{element:a});try{a.parentNode.removeChild(a)}catch{a.remove()}},dt=function(a,c){try{Oe(t.removed,{attribute:c.getAttributeNode(a),from:c})}catch{Oe(t.removed,{attribute:null,from:c})}if(c.removeAttribute(a),a==="is"&&!x[a])if(pe||Ie)try{ie(c)}catch{}else try{c.setAttribute(a,"")}catch{}},un=function(a){let c,f;if(st)a="<remove></remove>"+a;else{const F=Pi(a,/^[\r\n\t ]+/);f=F&&F[0]}oe==="application/xhtml+xml"&&he===K&&(a='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+a+"</body></html>");const b=N?N.createHTML(a):a;if(he===K)try{c=new y().parseFromString(b,oe)}catch{}if(!c||!c.documentElement){c=ue.createDocument(he,"template",null);try{c.documentElement.innerHTML=ct?j:b}catch{}}const L=c.body||c.documentElement;return a&&f&&L.insertBefore(i.createTextNode(f),L.childNodes[0]||null),he===K?P.call(c,re?"html":"body")[0]:re?c.documentElement:L},cn=function(a){return ce.call(a.ownerDocument||a,a,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT,null,!1)},mo=function(a){return a instanceof E&&(typeof a.nodeName!="string"||typeof a.textContent!="string"||typeof a.removeChild!="function"||!(a.attributes instanceof l)||typeof a.removeAttribute!="function"||typeof a.setAttribute!="function"||typeof a.namespaceURI!="string"||typeof a.insertBefore!="function"||typeof a.hasChildNodes!="function")},Fe=function(a){return typeof u=="object"?a instanceof u:a&&typeof a=="object"&&typeof a.nodeType=="number"&&typeof a.nodeName=="string"},Z=function(a,c,f){V[a]&&Mi(V[a],b=>{b.call(t,c,f,ye)})},_n=function(a){let c;if(Z("beforeSanitizeElements",a,null),mo(a))return ie(a),!0;const f=D(a.nodeName);if(Z("uponSanitizeElement",a,{tagName:f,allowedTags:R}),a.hasChildNodes()&&!Fe(a.firstElementChild)&&(!Fe(a.content)||!Fe(a.content.firstElementChild))&&$(/<[/\w]/g,a.innerHTML)&&$(/<[/\w]/g,a.textContent))return ie(a),!0;if(!R[f]||Se[f]){if(!Se[f]&&pn(f)&&(C.tagNameCheck instanceof RegExp&&$(C.tagNameCheck,f)||C.tagNameCheck instanceof Function&&C.tagNameCheck(f)))return!1;if(lt&&!me[f]){const b=I(a)||a.parentNode,L=w(a)||a.childNodes;if(L&&b){const F=L.length;for(let k=F-1;k>=0;--k)b.insertBefore(W(L[k],!0),S(a))}}return ie(a),!0}return a instanceof _&&!po(a)||(f==="noscript"||f==="noembed"||f==="noframes")&&$(/<\/no(script|embed|frames)/i,a.innerHTML)?(ie(a),!0):(fe&&a.nodeType===3&&(c=a.textContent,c=z(c,tt," "),c=z(c,nt," "),c=z(c,rt," "),a.textContent!==c&&(Oe(t.removed,{element:a.cloneNode()}),a.textContent=c)),Z("afterSanitizeElements",a,null),!1)},fn=function(a,c,f){if(Qt&&(c==="id"||c==="name")&&(f in i||f in _o))return!1;if(!(it&&!ot[c]&&$(oo,c))){if(!(Kt&&$(io,c))){if(!x[c]||ot[c]){if(!(pn(a)&&(C.tagNameCheck instanceof RegExp&&$(C.tagNameCheck,a)||C.tagNameCheck instanceof Function&&C.tagNameCheck(a))&&(C.attributeNameCheck instanceof RegExp&&$(C.attributeNameCheck,c)||C.attributeNameCheck instanceof Function&&C.attributeNameCheck(c))||c==="is"&&C.allowCustomizedBuiltInElements&&(C.tagNameCheck instanceof RegExp&&$(C.tagNameCheck,f)||C.tagNameCheck instanceof Function&&C.tagNameCheck(f))))return!1}else if(!ut[c]){if(!$(qt,z(f,Vt,""))){if(!((c==="src"||c==="xlink:href"||c==="href")&&a!=="script"&&Ui(f,"data:")===0&&nn[a])){if(!(Zt&&!$(ao,z(f,Vt,"")))){if(f)return!1}}}}}}return!0},pn=function(a){return a.indexOf("-")>0},dn=function(a){let c,f,b,L;Z("beforeSanitizeAttributes",a,null);const{attributes:F}=a;if(!F)return;const k={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:x};for(L=F.length;L--;){c=F[L];const{name:q,namespaceURI:mt}=c;if(f=q==="value"?c.value:$i(c.value),b=D(q),k.attrName=b,k.attrValue=f,k.keepAttr=!0,k.forceKeepAttr=void 0,Z("uponSanitizeAttribute",a,k),f=k.attrValue,k.forceKeepAttr||(dt(q,a),!k.keepAttr))continue;if(!Jt&&$(/\/>/i,f)){dt(q,a);continue}fe&&(f=z(f,tt," "),f=z(f,nt," "),f=z(f,rt," "));const mn=D(a.nodeName);if(fn(mn,b,f)){if(en&&(b==="id"||b==="name")&&(dt(q,a),f=so+f),N&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!mt)switch(p.getAttributeType(mn,b)){case"TrustedHTML":{f=N.createHTML(f);break}case"TrustedScriptURL":{f=N.createScriptURL(f);break}}try{mt?a.setAttributeNS(mt,q,f):a.setAttribute(q,f),qn(t.removed)}catch{}}}Z("afterSanitizeAttributes",a,null)},ho=function m(a){let c;const f=cn(a);for(Z("beforeSanitizeShadowDOM",a,null);c=f.nextNode();)Z("uponSanitizeShadowNode",c,null),!_n(c)&&(c.content instanceof o&&m(c.content),dn(c));Z("afterSanitizeShadowDOM",a,null)};return t.sanitize=function(m){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c,f,b,L;if(ct=!m,ct&&(m="<!-->"),typeof m!="string"&&!Fe(m))if(typeof m.toString=="function"){if(m=m.toString(),typeof m!="string")throw Ce("dirty is not a string, aborting")}else throw Ce("toString is not a function");if(!t.isSupported)return m;if(at||ft(a),t.removed=[],typeof m=="string"&&(ke=!1),ke){if(m.nodeName){const q=D(m.nodeName);if(!R[q]||Se[q])throw Ce("root node is forbidden and cannot be sanitized in-place")}}else if(m instanceof u)c=un("<!---->"),f=c.ownerDocument.importNode(m,!0),f.nodeType===1&&f.nodeName==="BODY"||f.nodeName==="HTML"?c=f:c.appendChild(f);else{if(!pe&&!fe&&!re&&m.indexOf("<")===-1)return N&&Me?N.createHTML(m):m;if(c=un(m),!c)return pe?null:Me?j:""}c&&st&&ie(c.firstChild);const F=cn(ke?m:c);for(;b=F.nextNode();)_n(b)||(b.content instanceof o&&ho(b.content),dn(b));if(ke)return m;if(pe){if(Ie)for(L=Ae.call(c.ownerDocument);c.firstChild;)L.appendChild(c.firstChild);else L=c;return(x.shadowroot||x.shadowrootmode)&&(L=_e.call(n,L,!0)),L}let k=re?c.outerHTML:c.innerHTML;return re&&R["!doctype"]&&c.ownerDocument&&c.ownerDocument.doctype&&c.ownerDocument.doctype.name&&$(no,c.ownerDocument.doctype.name)&&(k="<!DOCTYPE "+c.ownerDocument.doctype.name+`>
18
+ `+k),fe&&(k=z(k,tt," "),k=z(k,nt," "),k=z(k,rt," ")),N&&Me?N.createHTML(k):k},t.setConfig=function(m){ft(m),at=!0},t.clearConfig=function(){ye=null,at=!1},t.isValidAttribute=function(m,a,c){ye||ft({});const f=D(m),b=D(a);return fn(f,b,c)},t.addHook=function(m,a){typeof a=="function"&&(V[m]=V[m]||[],Oe(V[m],a))},t.removeHook=function(m){if(V[m])return qn(V[m])},t.removeHooks=function(m){V[m]&&(V[m]=[])},t.removeAllHooks=function(){V={}},t}var Zi=ro(),Ji=0;function A(e,t,n,r,i,o){var s,u,_={};for(u in t)u=="ref"?s=t[u]:_[u]=t[u];var h={type:e,props:_,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--Ji,__source:i,__self:o};if(typeof e=="function"&&(s=e.defaultProps))for(u in s)_[u]===void 0&&(_[u]=s[u]);return d.vnode&&d.vnode(h),h}const Qi=()=>{const{banner:e,acceptAll:t,rejectAll:n,setModal:r}=Bt(),i=["b","i","em","strong","p","ul","li","ol","span","h2","h3","h4","h5","h6","a","div"],o=["href","target"];return A("div",{className:"fixed bottom-0 left-0 max-w-md px-5 py-4 m-2 shadow-md shadow-black/25 z-[9998] bg-background space-y-4 font-primary text-foreground rounded-md banner-wrapper",children:[e.title&&A("h3",{className:"m-0 text-lg font-semibold font-primary md:text-xl banner-title",children:e.title}),e.description&&A("p",{className:"m-0 text-sm leading-snug font-primary md:text-base banner-description",dangerouslySetInnerHTML:{__html:Zi.sanitize(e.description,{USE_PROFILES:{html:!0},ALLOWED_TAGS:i,ALLOWED_ATTR:o})}}),A("div",{className:"pt-2 space-y-2 banner-btns",children:[!Po(e.settings)&&A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-background font-primary text-primary md:px-3.5 py-1.5 md:py-2.5 border-primary hover:border-primary-hover hover:text-primary-hover active:border-primary-active active:text-primary-active transition-colors banner-btn-customise",onClick:()=>r(!0),children:e.customise}),A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-background font-primary text-primary md:px-3.5 py-1.5 md:py-2.5 border-primary hover:border-primary-hover hover:text-primary-hover active:border-primary-active active:text-primary-active transition-colors banner-btn-reject",onClick:n,children:e.reject}),A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-primary font-primary text-background md:px-3.5 py-1.5 md:py-2.5 border-primary hover:bg-primary-hover hover:border-primary-hover active:bg-primary-active active:border-primary-active transition-colors banner-btn-accept",onClick:t,children:e.accept})]})]})},ea=()=>{const{cookie:e,setPermissions:t,banner:n,setModal:r}=Bt(),[i,o]=De(e);return A("div",{className:"fixed bottom-0 left-0 w-full max-w-lg max-h-full px-5 py-4 m-2 overflow-y-auto text-black shadow-md shadow-black/25 z-[9999] bg-background text-foreground font-primary rounded-md",children:[A("div",{className:"space-y-6",children:[A("h3",{className:"w-10/12 m-0 text-xl font-semibold font-primary md:text-2xl",children:n.customise}),n.settings.map(({slug:s,title:u,description:_})=>A("div",{children:[A("div",{className:"flex items-start justify-between",children:[A("h3",{className:"m-0 text-lg font-semibold font-primary",children:u}),A("button",{type:"button",className:`${i[s]?"bg-primary":"bg-gray-200"} relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 mt-0.5`,role:"switch","aria-checked":"false",onClick:()=>o({...i,[s]:!i[s]}),children:[A("span",{className:"sr-only",children:"Toggle"}),A("span",{"aria-hidden":"true",className:`${i[s]?"translate-x-5":"translate-x-0"} pointer-events-none inline-block h-5 w-5 transform rounded-full bg-background shadow ring-0 transition duration-200 ease-in-out`})]})]}),A("p",{className:"m-0 mt-2 text-sm leading-snug font-primary md:text-base",children:_})]},`setting-${s}`)),A("div",{className:"pt-4",children:A("button",{type:"button",className:"px-2 mr-2 text-sm font-semibold border-2 border-solid rounded bg-primary font-primary text-background md:px-3.5 py-1.5 md:py-2.5 border-primary hover:bg-primary-hover hover:border-primary-hover active:bg-primary-active active:border-primary-active transition-colors",onClick:()=>{t(i),r(!1)},children:n.save})})]}),A("button",{type:"button",className:"absolute top-0 right-0 w-8 h-8 mt-0 text-xl rounded-full",onClick:()=>r(!1),children:"×"})]})},ta=()=>{const{choiceMade:e,init:t,settingsOpen:n}=Bt();return Je(()=>{t()},[]),A(X,{children:[!e&&!n&&A(Qi,{}),n&&A(ea,{})]})};const Gt=document.createElement("div");Gt.id="lkrl-wrapper";document.body.appendChild(Gt);Ee(A(ta,{}),Gt);
@@ -0,0 +1,61 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>🍪 Leckerli - GTM (Basic)</title>
7
+ <!-- Google Tag Manager -->
8
+ <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
9
+ new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
10
+ j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
11
+ 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
12
+ })(window,document,'script','dataLayer','GTM-NGL2FLK');</script>
13
+ <!-- End Google Tag Manager -->
14
+ </head>
15
+ <body style="background: #cbd5e1; display: grid; place-content: center; font-family: sans-serif; min-height: 100vh;">
16
+ <h1>Your website here 🤗 - GTM (Basic)</h1>
17
+
18
+ <script>
19
+ window.leckerliSettings = {
20
+ title: 'This website uses GTM & Google Consent.'
21
+ }
22
+ </script>
23
+
24
+ <script>
25
+ // To listen the initialisation
26
+ document.addEventListener('leckerli:initialised', (event) => {
27
+ // to get cookie data OR null if the user's choice has not been made
28
+ console.log('init', event.detail.cookie);
29
+ });
30
+
31
+ // To listen to the permissions / cookie's updates
32
+ document.addEventListener('leckerli:permissions-updated', (event) => {
33
+ // to get cookie data
34
+ console.log('update', event.detail.cookie);
35
+ });
36
+
37
+ // To listen the modal states
38
+ document.addEventListener('leckerli:modal-opened', () => {
39
+ // react to modal opened
40
+ console.log('modal opened')
41
+ });
42
+ document.addEventListener('leckerli:modal-closed', () => {
43
+ // react to modal closed
44
+ console.log('modal closed')
45
+ });
46
+ </script>
47
+
48
+ <style>
49
+ /*
50
+ :root {
51
+ --leckerli-foreground: #fff;
52
+ --leckerli-background: #000;
53
+ --leckerli-primary: #ff0099;
54
+ --leckerli-primary-hover: #d1007e;
55
+ --leckerli-primary-active: #9D005F;
56
+ --leckerli-font: sans-serif;
57
+ }
58
+ */
59
+ </style>
60
+ </body>
61
+ </html>